/* ===================================================
   ジーバーイングリッシュ / G-BAH ENGLISH
   Modern / Warm / Clean / Friendly / Adult
   - 本文18px以上 / 行間1.8
   - 押せる大きさは最低52px / リンクは色と下線で示す
   - 本文とボタンのコントラストは実測で確認済み
=================================================== */

:root {
  --navy:      #17324D;   /* 見出し・文字・信頼感 */
  --blue:      #3B82B6;   /* さし色（大きい文字・線・アイコン） */
  --blue-dark: #2C6790;   /* 小さい文字でブルーを使うとき */
  --lightblue: #F3F8FC;   /* セクション背景 */
  --mint:      #EAF7F3;   /* セクション背景 */
  --orange:    #FF9E3D;   /* CTA。文字はネイビーを載せる */
  --orange-lt: #FDEEE0;   /* ラベルなどの下地 */
  --orange-tx: #A85A12;   /* オレンジ系の文字 */
  --green:     #1B7A46;
  --green-lt:  #E4F3EA;
  --ink:       #344454;   /* 本文 */
  --ink-sub:   #5B6B7B;
  --muted:     #8E9CAB;
  --line:      #E3E9EF;
  --white:     #ffffff;
  --radius:    16px;
  --shadow:    0 2px 14px rgba(23, 50, 77, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic",
               "Meiryo", sans-serif;
  font-size: 18px;
  line-height: 1.8;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { color: var(--navy); line-height: 1.4; }
p { margin: 0 0 1.2em; }

a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 4px; }
a:hover { color: var(--blue); }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* 共通のアイコン枠 */
.ic {
  width: 48px; height: 48px; border-radius: 12px; background: var(--lightblue);
  display: flex; align-items: center; justify-content: center;
}
.ic svg {
  width: 26px; height: 26px; stroke: var(--blue); fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}

/* ---------- ヘッダー ---------- */
.header { background: var(--white); border-bottom: 1px solid var(--line); }
.header a { color: var(--navy); text-decoration: none; }

.header-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: var(--white);
  font-size: 24px; font-weight: 800; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-en { font-size: 19px; font-weight: 800; letter-spacing: .12em; color: var(--navy); }
.brand-jp { font-size: 12px; letter-spacing: .16em; color: var(--muted); }

.faces { display: flex; margin-left: 4px; }
.face {
  width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  background: var(--white);
}
.face img { width: 100%; height: 100%; object-fit: cover; display: block; }

.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.nav a {
  display: flex; align-items: center; min-height: 52px; padding: 0 16px;
  font-size: 17px; font-weight: 700; border-radius: 10px;
  border-bottom: 3px solid transparent;
}
.nav a:hover { color: var(--blue); background: var(--lightblue); }
.nav a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

/* ---------- ヒーロー ---------- */
.hero { background: linear-gradient(180deg, var(--lightblue), var(--white)); padding: 64px 0 0; }
.hero-in {
  display: grid; grid-template-columns: .95fr 1.05fr; grid-template-rows: auto 1fr;
  grid-template-areas: "copy art" "cta art"; gap: 0 32px;
}
.hero-copy { grid-area: copy; align-self: end; }
.hero-cta  { grid-area: cta;  align-self: start; padding-bottom: 40px; }
.hero-art  { grid-area: art;  align-self: end; }
.hero h1 { font-size: 56px; letter-spacing: .01em; margin: 0 0 20px; }
.hero .lead { font-size: 19px; color: var(--ink); margin: 0 0 30px; }
.hero-note { font-size: 15px; color: var(--muted); margin: 12px 0 0; }

/* イラストの上に吹き出しを置く。しっぽは、それぞれの頭の真上から下りる。
   頭の位置は hero.png を実測：アッコ 26%、ケン 71% */
.art { position: relative; max-width: 620px; margin: 0 auto; padding-top: 78px; }
.art img { width: 100%; display: block; }
.hb {
  position: absolute; transform: translateX(-50%);
  background: var(--white); border: 1.5px solid #8A817A; border-radius: 18px;
  padding: 8px 16px; white-space: nowrap; text-align: center;
  font-size: 17px; font-weight: 800; color: var(--navy); line-height: 1.4;
}
.hb small { display: block; font-size: 12px; font-weight: 700; color: var(--orange-tx); }
.hb::after {
  content: ""; position: absolute; bottom: -9px; left: 50%; margin-left: -7px;
  width: 14px; height: 14px; background: var(--white); transform: rotate(45deg);
  border-right: 1.5px solid #8A817A; border-bottom: 1.5px solid #8A817A;
}
.hb-l { left: 26%; top: 26px; }
.hb-r { left: 71%; top: 0; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 62px; padding: 12px 30px;
  font-size: 19px; font-weight: 800;
  border: none; border-radius: 12px; text-decoration: none; cursor: pointer;
}
.btn-main { background: var(--orange); color: var(--navy); box-shadow: 0 3px 0 rgba(23,50,77,.10); }
.btn-main:hover { filter: brightness(1.05); color: var(--navy); }
.btn-blue { background: var(--blue-dark); color: var(--white); }
.btn-blue:hover { background: var(--navy); color: var(--white); }
.btn-line { background: #06c755; color: #06301a; }
.btn-line:hover { background: #05b34c; color: #06301a; }
.btn-sub { background: var(--white); color: var(--navy); border: 2px solid var(--line); }
.btn-sub:hover { background: var(--lightblue); color: var(--navy); border-color: var(--blue); }
.btn-block { display: flex; width: 100%; }

/* ---------- セクション ---------- */
section { padding: 72px 0; }
.sec-title { font-size: 34px; text-align: center; margin: 0 0 10px; }
.sec-note { text-align: center; color: var(--ink-sub); font-size: 17px; margin: 0 0 42px; }

.cards { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.card h3 { font-size: 21px; margin: 14px 0 8px; }
.card p { margin: 0; font-size: 16.5px; color: var(--ink-sub); }
.card .icon { font-size: 34px; line-height: 1; display: block; margin-bottom: 8px; }

/* ---------- ステップ一覧 ---------- */
#steps { background: var(--lightblue); }
.daypart {
  display: flex; align-items: center; gap: 10px;
  font-size: 19px; font-weight: 800; color: var(--navy);
  margin: 34px 0 14px; padding: 0; border: none;
}
.daypart svg {
  width: 22px; height: 22px; stroke: var(--blue); fill: none;
  stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round;
}
.daypart:first-of-type { margin-top: 0; }

.steplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.steplist a, .steplist .locked {
  display: flex; align-items: center; gap: 18px;
  min-height: 74px; padding: 14px 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: 14px;
  text-decoration: none; color: var(--navy); font-size: 19px; font-weight: 700;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
.steplist a::after {
  content: "→"; margin-left: 4px; color: var(--blue);
  font-weight: 800; transition: transform .15s;
}
.steplist a:hover {
  transform: translateY(-2px); border-color: var(--blue);
  box-shadow: var(--shadow); color: var(--navy);
}
.steplist a:hover::after { transform: translateX(4px); }
.num {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800;
}
.locked { color: var(--muted); background: #F7F9FB; }
.locked .num { background: #C3CDD7; }
.tag {
  margin-left: auto; font-size: 13px; font-weight: 800;
  padding: 5px 12px; border-radius: 999px;
  background: var(--green-lt); color: var(--green);
}
.locked .tag { background: #EDF1F5; color: var(--muted); }

/* ---------- 場面別会話 ---------- */
#scenes { background: var(--mint); }
#scenes .ic { background: #DFF3EC; }
#scenes .ic svg { stroke: #1B7A64; }

/* ---------- 無料プレゼント ---------- */
.line-cta {
  background: var(--white); border: 1px solid var(--line); border-radius: 20px;
  padding: 44px; box-shadow: var(--shadow); text-align: center;
  max-width: 760px; margin: 0 auto;
}
.line-cta .gift {
  display: inline-block; background: var(--orange-lt); color: var(--orange-tx);
  font-size: 14px; font-weight: 800; padding: 6px 16px;
  border-radius: 999px; margin-bottom: 16px;
}
.line-cta h2 { font-size: 30px; margin: 0 0 14px; }
.line-cta p { font-size: 17px; color: var(--ink-sub); }

/* ---------- 動画 ---------- */
.video-box {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.video-frame {
  position: relative; width: 100%; padding-top: 56.25%;
  background: var(--navy); border-radius: 12px; overflow: hidden;
}
.video-frame iframe, .video-frame .placeholder {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
.video-frame .placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: var(--white); text-align: center; gap: 10px; padding: 20px;
}
.video-frame .placeholder .big { font-size: 46px; line-height: 1; }
.video-frame .placeholder .t { font-size: 20px; font-weight: 700; }
.video-frame .placeholder .s { font-size: 17px; opacity: .85; }
.video-tip { font-size: 17px; color: var(--ink-sub); margin: 16px 0 0; }

/* ---------- 学習ページ ---------- */
.stephead {
  background: linear-gradient(180deg, var(--lightblue), var(--white));
  border-bottom: 1px solid var(--line); padding: 40px 0;
}
.badge {
  display: inline-block; background: var(--navy); color: var(--white);
  font-size: 15px; font-weight: 800; padding: 6px 18px; border-radius: 999px;
  letter-spacing: .06em;
}
.stephead h1 { font-size: 36px; margin: 16px 0 8px; }
.meta { color: var(--ink-sub); font-size: 17px; margin: 0; }

/* 目次の先頭にならぶ「章を選ぶ」ボタン */
.ch-jump { display: grid; grid-template-columns: repeat(7, 92px); gap: 10px; margin: 20px 0 0; }
.ch-jump a {
  display: flex; align-items: center; justify-content: center;
  min-width: 82px; min-height: 52px; padding: 0 16px;
  background: var(--white); border: 2px solid var(--blue); border-radius: 12px;
  color: var(--blue); font-size: 18px; font-weight: 800;
}
.ch-jump a:hover { background: var(--blue); color: var(--white); }

.block { margin-bottom: 44px; }
.block > h2 {
  font-size: 26px; margin: 0 0 6px;
  padding-left: 14px; border-left: 5px solid var(--blue);
}
.h2note { color: var(--ink-sub); font-size: 17px; margin: 0 0 20px; }

.cast {
  background: var(--lightblue); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; margin-bottom: 40px;
}
.cast p { font-size: 17px; margin: 0 0 10px; }
.cast .cast-note { color: var(--ink-sub); font-size: 16px; margin: 0; }

/* 会話 */
.talk { display: grid; gap: 16px; }
.line-row {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.who {
  display: inline-block; font-size: 14px; font-weight: 800;
  padding: 4px 14px; border-radius: 999px; margin-bottom: 12px;
}
.who.husband { background: #E3EFF8; color: #1B4F7A; }
.who.wife    { background: #FBE8EC; color: #9D174D; }
.en { font-size: 28px; font-weight: 800; line-height: 1.5; margin: 0 0 6px; color: var(--navy); }
.kana { font-size: 18px; color: var(--orange-tx); font-weight: 700; margin: 0 0 6px; }
.ja { font-size: 17px; color: var(--ink-sub); margin: 0 0 16px; }

.speak {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 20px; margin: 0 8px 8px 0;
  font-size: 16px; font-weight: 800; cursor: pointer;
  background: var(--white); color: var(--blue-dark);
  border: 2px solid var(--line); border-radius: 999px;
}
.speak:hover { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.speak.slow { color: var(--orange-tx); }
.speak.slow:hover { background: var(--orange); color: var(--navy); border-color: var(--orange); }
.speak.playing { background: var(--green); border-color: var(--green); color: var(--white); }

/* 解説 */
.note-box {
  background: var(--lightblue); border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: var(--radius); padding: 28px;
}
.note-box.phonics { background: #FFF6EC; border-left-color: var(--orange); }
.note-box h3 { font-size: 21px; margin: 0 0 10px; }
.note-box p { font-size: 17px; }
.note-box p:last-child { margin-bottom: 0; }
.key { background: #FFE9A8; font-weight: 800; padding: 0 4px; border-radius: 4px; }

table.rule {
  width: 100%; border-collapse: collapse; margin: 18px 0;
  font-size: 17px; background: var(--white); border-radius: 10px; overflow: hidden;
}
table.rule th, table.rule td { border: 1px solid var(--line); padding: 12px 14px; text-align: left; }
table.rule th { background: var(--white); width: 46%; font-weight: 800; color: var(--navy); }

/* 練習 */
.quiz {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}
.quiz .q { font-size: 19px; font-weight: 700; color: var(--navy); margin: 0 0 14px; }
.quiz .a { font-size: 21px; font-weight: 800; color: var(--green); margin: 14px 0 0; }
.reveal {
  min-height: 52px; padding: 0 22px; font-size: 16px; font-weight: 800;
  background: var(--white); color: var(--green); cursor: pointer;
  border: 2px solid var(--green); border-radius: 999px;
}
.reveal:hover { background: var(--green); color: var(--white); }

.pager { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; margin-top: 8px; }

/* ---------- フッター ---------- */
.footer { background: var(--navy); color: #C7D4E0; padding: 44px 0; margin-top: 72px; }
.footer a { color: var(--white); }
.f-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-bottom: 20px; }
.f-nav a { font-size: 16px; }
.copy { text-align: center; font-size: 14px; margin: 0; color: #9FB2C4; }

/* ---------- スマートフォン ---------- */
@media (max-width: 860px) {
  body { font-size: 17px; }
  .header-inner { gap: 10px; padding: 12px 20px; }
  .brand-mark { width: 42px; height: 42px; font-size: 22px; }
  .brand-en { font-size: 17px; }
  .faces { display: none; }
  .nav { margin-left: 0; width: 100%; }
  .nav a { flex: 1 1 auto; justify-content: center; padding: 0 10px; font-size: 15px; white-space: nowrap; }

  .hero { padding-top: 44px; }
  .hero-in { grid-template-columns: 1fr; grid-template-rows: none;
             grid-template-areas: "copy" "art" "cta"; gap: 8px; }
  .hero h1 { font-size: 34px; }
  .hero .lead { font-size: 17px; }
  .hero-cta { padding-bottom: 0; margin-top: 20px; }
  .art { padding-top: 62px; }
  .hb { font-size: 13px; padding: 6px 11px; }
  .hb small { font-size: 11px; }
  .hb-l { top: 20px; }

  section { padding: 52px 0; }
  .sec-title { font-size: 27px; }
  .stephead h1 { font-size: 27px; }
  .ch-jump { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .ch-jump a { min-width: 0; padding: 0 6px; font-size: 17px; }
  .block > h2 { font-size: 22px; }
  .en { font-size: 23px; }
  .line-cta { padding: 30px 22px; }
  .line-cta h2 { font-size: 24px; }
  .speak, .reveal { width: 100%; margin: 0 0 10px; }
  .pager { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}


/* ─────────────────────────────────────────────
   カタカナの中で、音がつながる・変わるところ
   原稿で [ ] で囲むと、ここに当たります。
     例）ワ[ラ]ー ユー  →  ラ だけ小さく薄く
   小さくしすぎないこと。読者は60代・70代です。
   0.85倍までにとどめ、色でも示しています。
   ───────────────────────────────────────────── */
.kana .soft {
  font-size: 0.85em;
  color: #2C6790;
  letter-spacing: 0;
}

/* 練習問題の答えの中に置く「聞く」ボタン */
.quiz .a .speak {
  margin-left: 10px;
  vertical-align: middle;
}

/* ---------- 発音の図（フォニックス8枚） ---------- */

/* トップページの一覧 */
.ph-title {
  font-size: 24px; text-align: center; margin: 48px 0 8px;
}
.ph-note {
  text-align: center; color: var(--ink-sub); font-size: 16.5px; margin: 0 0 26px;
}
.ph-grid {
  display: grid; gap: 20px; justify-content: center;
  /* 1枚あたりの上限は 420px。画面が狭いときは幅いっぱいまで縮む */
  grid-template-columns: repeat(auto-fit, minmax(230px, 420px));
}
.ph-item {
  margin: 0; width: 100%; max-width: 420px; justify-self: center;
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow);
}
.ph-item img { width: 100%; height: auto; display: block; }

/* 図そのものが「音を鳴らすボタン」。押せることが分かるように印を出す */
.ph-play {
  display: block; width: 100%;
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
/* 図の上には重ねない。断面図の大事なところが隠れるため、図の下に帯で出す */
.ph-badge {
  display: block; text-align: center;
  background: var(--navy); color: var(--white);
  font-size: 15px; font-weight: 700; line-height: 1;
  padding: 12px 10px;
  border-top: 1px solid var(--line);
}
.ph-play:hover .ph-badge { background: var(--blue-dark); }
.ph-play:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.ph-play.playing .ph-badge { background: var(--green); }
.ph-play.playing .ph-badge::before { content: "▶ "; }
.ph-words {
  display: block; margin-top: 8px;
  font-size: 15.5px; font-weight: 700; color: var(--navy);
}
.ph-item figcaption { padding: 16px 18px 18px; }
.ph-name {
  display: inline-block; font-size: 21px; font-weight: 800; color: var(--navy);
  margin-right: 8px;
}
.ph-voice {
  display: inline-block; font-size: 13px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px; vertical-align: 3px;
}
.ph-voice.is-voiceless { background: var(--lightblue); color: var(--blue-dark); }
.ph-voice.is-voiced    { background: var(--green-lt);  color: var(--green); }
.ph-line {
  display: block; margin-top: 8px;
  font-size: 16px; line-height: 1.7; color: var(--ink-sub);
}
.ph-item .fig-zoom {
  display: inline-block; margin-top: 10px;
  font-size: 15px; font-weight: 700; color: var(--blue-dark);
  text-decoration: underline; text-underline-offset: 3px;
}
.ph-item .fig-zoom::before { content: "🔍 "; }

/* ステップページの「発音ワンポイント」に出す1枚

   説明の文章の右わきに、小さく添える形にしている。
   図が主役ではなく、文章を読みながら口の形をちらっと確かめるためのもの。 */
.note-box.phonics { display: flow-root; }   /* 回り込みをこの枠の中で閉じる */

.phonics-fig {
  float: right; width: 320px; margin: 2px 0 16px 26px;
}
.phonics-fig img {
  width: 100%; height: auto; display: block;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow);
}
.phonics-fig a { display: block; text-decoration: none; }
.phonics-fig figcaption {
  margin: 8px 0 0;
  font-size: 14.5px; line-height: 1.65; color: var(--ink-sub);
}
/* 図の中の文字は小さいので、大きく見る入口をそえる */
.phonics-fig .fig-zoom {
  display: inline-block; margin-top: 4px;
  font-size: 14.5px; font-weight: 700; color: var(--blue-dark);
  text-decoration: underline; text-underline-offset: 3px;
}
.phonics-fig .fig-zoom::before { content: "🔍 "; }
.phonics-fig .fig-more {
  display: inline-block; margin-top: 4px;
  font-size: 14.5px; font-weight: 700; color: var(--blue-dark);
  text-decoration: underline; text-underline-offset: 3px;
}
.phonics-fig .fig-more::before { content: "📖 "; }

/* 「聞く」ボタンは、図の下ではなく必ず文章の下に置く */
.note-box.phonics .speak { clear: both; }

@media (max-width: 860px) {
  .ph-title { font-size: 21px; margin-top: 36px; }
  .ph-grid { gap: 14px; }
  .ph-item figcaption { padding: 13px 14px 15px; }
  .ph-name { font-size: 19px; }
  .ph-line { font-size: 15.5px; }

  /* スマホでは横に回り込ませない。文字が細くなりすぎるため */
  .phonics-fig {
    float: none; width: 100%; max-width: 320px;
    margin: 0 auto 18px;
  }
  .phonics-fig figcaption { font-size: 15.5px; }
}

/* 420pxが2枚ならばない幅では、2列のまま少し縮める。
   そうしないと 800px あたりで1列になり、右半分が空いてしまう */
@media (max-width: 999px) and (min-width: 620px) {
  .ph-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 目次（章ごとの一覧） ---------- */
.chapter { margin-bottom: 48px; }
.ch-head { margin-bottom: 18px; }
.ch-no {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em;
  color: var(--blue-dark); background: var(--lightblue);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 10px;
}
.chapter h2 { font-size: 26px; margin: 0 0 8px; }
.ch-desc { font-size: 16.5px; color: var(--ink-sub); margin: 0 0 10px; }
.ch-note {
  font-size: 15.5px; line-height: 1.75; color: var(--ink-sub);
  background: var(--lightblue); border-radius: 10px;
  padding: 12px 16px; margin: 0 0 12px;
}
.ch-note strong { color: var(--ink); }
.ch-count {
  font-size: 15px; font-weight: 700; color: var(--navy); margin: 0;
  font-variant-numeric: tabular-nums;
}
.ch-count .ch-done { color: var(--green); }

/* すんだ回の印 */
.tag-done { display: none; }
.steplist a.is-done { border-color: var(--green); background: var(--green-lt); }
.steplist a.is-done .num { background: var(--green); }
.steplist a.is-done .tag-done {
  display: inline-block; background: var(--green); color: var(--white);
}

/* ---------- 「この回を終えた」ボタン ---------- */
.done-wrap { text-align: center; margin: 8px 0 26px; }
.done-btn {
  font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
  color: var(--navy); background: var(--white);
  border: 2px solid var(--line); border-radius: 999px;
  padding: 14px 30px;
}
.done-btn:hover { border-color: var(--green); background: var(--green-lt); }
.done-btn.is-done {
  background: var(--green); border-color: var(--green); color: var(--white);
}
.done-btn.is-done::before { content: "✓ "; }
.done-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

/* 「いま何章にいるか」 */
.ch-here {
  text-align: center; font-size: 15px; color: var(--ink-sub);
  margin: 0 0 20px;
}

@media (max-width: 860px) {
  .chapter h2 { font-size: 21px; }
  .done-btn { width: 100%; }
}

/* ---------- トップページの章カード ---------- */
.ch-grid {
  display: grid; gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}
.ch-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 24px 26px; text-decoration: none;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  transition: transform .15s, border-color .15s;
}
.ch-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.ch-card-no {
  align-self: flex-start; font-size: 12.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--blue-dark); background: var(--lightblue);
  padding: 4px 11px; border-radius: 999px;
}
.ch-card-title { font-size: 21px; font-weight: 800; color: var(--navy); line-height: 1.45; }
.ch-card-desc { font-size: 15.5px; color: var(--ink-sub); line-height: 1.75; }
.ch-card-count {
  margin-top: 6px; font-size: 14.5px; font-weight: 700; color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ch-card.has-done { border-color: var(--green); }
.ch-card.has-done .ch-card-count .ch-done { color: var(--green); }

/* ---------- 章のしるし（アイコン） ---------- */
.ch-icon {
  position: absolute; top: 20px; right: 22px;
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--lightblue);
  display: inline-flex; align-items: center; justify-content: center;
}
.ch-icon svg {
  width: 24px; height: 24px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.ch-card { position: relative; padding-right: 78px; }
.ch-head { position: relative; padding-right: 62px; }
.ch-head .ch-icon { top: 0; right: 0; }
.ch-card.has-done .ch-icon { background: var(--green-lt); }
.ch-card.has-done .ch-icon svg { stroke: var(--green); }

@media (max-width: 860px) {
  .ch-icon { width: 36px; height: 36px; top: 18px; right: 18px; }
  .ch-icon svg { width: 21px; height: 21px; }
  .ch-card { padding-right: 68px; }
}
