:root {
  --sea: #1c5c8c;
  --sea-deep: #123c5c;
  --sea-soft: #a9cfe6;
  --sand: #f3e4c8;
  --ink: #22303c;
  --ink-soft: #5c7285;
  --pink: #d9607a;
  --leaf: #4f8f6f;
  --leaf-bg: #e3f1ea;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 22px 24px 40px;
  font-family: "M PLUS Rounded 1c", -apple-system, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: #f4f9fc;
  line-height: 1.8;
  font-size: 14px;
}

h1 { font-size: 20px; font-weight: 800; color: var(--sea-deep); margin: 0 0 10px; }
h2 { font-size: 15px; font-weight: 700; color: var(--ink); margin: 26px 0 8px; border-bottom: 2px solid var(--sea-soft); padding-bottom: 4px; }
p { margin: 8px 0; }
ul, ol { padding-left: 1.4em; margin: 8px 0; }
li { margin: 4px 0; }
a { color: var(--sea); font-weight: 600; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; }
th, td { border: 1px solid var(--sea-soft); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: #e8f2f8; width: 30%; white-space: nowrap; }

/* v0.4.0難易度対応: 難易度比較表(4列)はキー・バリュー表と違い列幅が均等でよいので、
   thのwidth:30%を上書きする。横幅が足りない画面では.table-scrollがoverflow-xでスクロール
   させる(チェックリスト「横スクロールはみ出し禁止」対応、本文全体はスクロールさせない)。 */
.table-scroll { overflow-x: auto; margin: 12px 0; }
.table-scroll table { margin: 0; }
.tag-table th { width: auto; white-space: normal; }
.tag-table td:first-child { white-space: nowrap; font-weight: 700; background: #f6fbfd; }

hr { border: none; border-top: 2px solid var(--sea-soft); margin: 22px 0; }
.meta { color: var(--ink-soft); font-size: 13px; }

.disclaimer {
  background: #fff2c4;
  border: 2px solid var(--sea-soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--ink);
  margin-top: 22px;
}

/* --- 遊び方ページ専用の図解パーツ --- */
.rules-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.rules-hero .hero-icon { font-size: 44px; flex-shrink: 0; }
.rules-hero h1 { margin: 0 0 4px; }

.figure-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 16px 0 10px;
  padding: 16px 14px;
  background: var(--white);
  border: 2px solid var(--sea-soft);
  border-radius: 16px;
}
.figure-caption { text-align: center; color: var(--ink-soft); font-size: 12px; margin: -4px 0 18px; }

.meter-demo { width: 100%; max-width: 320px; height: 16px; border-radius: 999px; background: #e8f2f8; position: relative; overflow: hidden; }
.meter-demo .zone { position: absolute; top: 0; bottom: 0; left: 40%; width: 20%; background: #ffd7de; }
.meter-demo .needle { position: absolute; top: -3px; width: 4px; height: 22px; background: var(--pink); border-radius: 2px; }

.step-list { counter-reset: step; list-style: none; padding: 0; }
.step-list li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  margin: 12px 0;
}
.step-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--sea);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fish-demo-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 14px 0; }
.fish-demo-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--white);
  border: 2px solid var(--sea-soft);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12px;
  min-width: 64px;
}
.fish-demo-dot { border-radius: 50%; }

.status-chip-row { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin: 14px 0; }
.status-chip { padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; border: 2px solid var(--sea); background: var(--white); color: var(--ink); }
.status-chip.good { border-color: var(--leaf); background: var(--leaf-bg); color: #2f6349; }

@media (max-width: 480px) {
  body { padding: 18px 14px 32px; }
  th { width: 34%; white-space: normal; }
}
