/* アプリの見た目（アプリの表示名は js/config.js の APP_NAME。ここには書かない）
   同じコースの説明動画と世界をそろえる：
   - 濃いプラム〜赤の地（題・ヒーロー・「いまここ」の帯）／クリームの地（本文）／赤 #C8102E／金のさし色／細い線
   - 小さな英字の見出し（.cap：STAGE 2 / WHAT YOU CAN DO）／英語の題と数字はセリフ体（端末にあるもの。外のフォントは読みこまない）
   - パステル：相手のふきだし #FBE4E6／自分のふきだし #E9F4EC／メモ #FBF1D8
   スマホ幅 375px で横にはみ出さない・押せるものは高さ 48px 以上。
   毎日の仕組み（きょうの札・週の帯・きょうのひとこと・絵はがき・こよみ）と、練習画面の作りこみ（絵の帯・道のステップ・吹き出し・型のブロック・段のボタン）は
   「毎日の仕組み」「練習画面の作りこみ」のかたまりにある（2026-10-11-e）。
   動き（道が色づく・印が入る・画面がすっと入る・押した手ごたえ）は、いちばん下の
   @media (prefers-reduced-motion: no-preference) の中だけ。動きを減らす設定の人には動かさない。音は使わない。 */
:root {
  --bg: #FBF4EC; --paper: #FFFDFA; --red: #C8102E; --red-d: #A50D26; --ink: #2A1F24; --sub: #6E6260; --line: #E9DDD2;
  --plum: #3A1D2B; --plum-2: #55283A; --wine: #8A2C3A; --gold: #E8BD8A; --gold-d: #A9793C;
  --pink: #FBE4E6; --green: #E9F4EC; --yellow: #FBF1D8; --white: #FFFFFF; --ok: #2E7D4F;
  --serif: Didot, "Bodoni 72", "Hoefler Text", Georgia, "Noto Serif", "Times New Roman", serif;
  --hero: linear-gradient(158deg, #3A1D2B 0%, #55283A 48%, #8A2C3A 100%);
  --shadow: 0 1px 2px rgba(58, 29, 43, .05), 0 8px 22px rgba(58, 29, 43, .08);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  font-weight: 500; font-size: 16px; line-height: 1.6;
  word-wrap: break-word; overflow-wrap: anywhere;
}
[hidden] { display: none !important; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }

.app { max-width: 720px; margin: 0 auto; min-height: 100vh; overflow-x: clip; }
.main { padding: 16px 16px 40px; }
.main.has-bar { padding-bottom: 120px; padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
.main.has-bar2 { padding-bottom: 184px; padding-bottom: calc(176px + env(safe-area-inset-bottom)); }
.main.has-barcap { padding-bottom: 148px; padding-bottom: calc(140px + env(safe-area-inset-bottom)); }
.main > * + * { margin-top: 14px; }

/* 小さな英字の見出し */
.cap { display: flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .16em; line-height: 1.4; color: var(--red); text-transform: uppercase; }
.cap:before { content: ""; flex: none; width: 18px; height: 2px; margin-right: 8px; border-radius: 1px; background: currentColor; }
.cap-gold { color: var(--gold); }
.cap-c { justify-content: center; }
.cap-c:before { display: none; }
.cap-s { margin-top: 12px; }

/* ---------- 上の帯 ---------- */
.top { position: -webkit-sticky; position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; min-height: 56px; padding: 4px 8px; }
.back { flex: none; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; text-decoration: none; }
.top-t { flex: 1 1 auto; min-width: 0; padding: 0 4px; }
.top-title { font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top-sub { font-size: 13px; color: var(--sub); line-height: 1.3; }
.top-r { flex: none; display: flex; }
.top-r .chip { margin-left: 6px; padding: 0 12px; }
/* 練習画面：いちばん上に「いまここ」の帯（濃い地・貼りつく）。その下の題の行は、貼りつかない・もどるボタンなし。 */
.band {
  position: -webkit-sticky; position: sticky; top: 0; z-index: 5; display: flex; align-items: center; min-height: 48px;
  padding: 0 12px 0 4px; background: var(--plum); color: var(--white); text-decoration: none;
}
.band > .ic { width: 20px; height: 20px; margin: 0 4px 0 6px; color: rgba(255, 255, 255, .7); }
.band-path { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; white-space: nowrap; overflow: hidden; }
.band-stage { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--gold); }
.band-sep { flex: none; margin: 0 7px; font-size: 14px; line-height: 1; color: rgba(255, 255, 255, .42); }
.band-phase { flex: none; font-size: 13px; font-weight: 800; }
.band-id { min-width: 0; font-size: 12px; color: rgba(255, 255, 255, .78); overflow: hidden; text-overflow: ellipsis; }
.band-step { flex: none; margin-left: 8px; padding: 2px 10px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 12px; font-family: var(--serif); font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.band-step b { font-size: 16px; color: var(--white); }
.top.top-flow { position: static; }
.top-flow .top-in { padding-left: 12px; }
/* 絵の帯に題があるとき：小さい字と切りかえだけの行 */
/* 切りかえ（ゆっくり・訳）は、絵の帯の下のふちに、半分かかる（高さを節約する） */
.top.top-tools { position: relative; z-index: 2; margin-top: -24px; border-bottom: 0; background: transparent; pointer-events: none; }
.top-tools .top-in { align-items: flex-end; min-height: 52px; padding: 0 10px 0 16px; }
.top-tools .top-in > * { pointer-events: auto; }
.top-tools .top-sub { padding-bottom: 2px; font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1.2; color: var(--ink); letter-spacing: .02em; }
.top-tools .chip { box-shadow: 0 2px 8px rgba(58, 29, 43, .16); }
.top-vb { flex: none; margin: 0 6px; color: #D9CBBE; }
.is-sounding .top-vb { color: var(--red); }

/* ---------- アイコン（線画） ---------- */
.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; max-width: 100%;
  min-height: 52px; padding: 10px 16px; border-radius: 14px; border: 2px solid var(--line);
  background: var(--paper); color: var(--ink); font-weight: 700; font-size: 16px; line-height: 1.3;
  text-align: center; text-decoration: none; cursor: pointer;
}
.btn .ic { margin-right: 6px; }
.btn .ic:only-child { margin-right: 0; }
.btn-primary { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 6px 16px rgba(200, 16, 46, .22); }
.btn-primary[disabled] { box-shadow: none; }
.btn-text { background: transparent; border-color: transparent; color: var(--red); }
.btn-s { min-height: 48px; min-width: 48px; padding: 6px 12px; font-size: 14px; border-radius: 12px; }
.btn[disabled] { opacity: .38; cursor: default; }
.btn.is-noaudio { opacity: .3; }
.btn.is-playing { border-color: var(--red); color: var(--red); }
.btn-primary.is-playing { background: var(--red-d); border-color: var(--red-d); color: var(--white); }
.btn.is-on { border-color: var(--red); color: var(--red); }
.btn-book { width: 100%; border-color: var(--red); color: var(--red); }
.btn-wrap { width: 100%; justify-content: flex-start; text-align: left; font-weight: 500; }
.file-in { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
label.btn { position: relative; }

.chip {
  min-height: 48px; padding: 0 16px; border-radius: 24px; border: 2px solid var(--line); background: var(--white);
  font-weight: 700; font-size: 13px; color: var(--sub); cursor: pointer; line-height: 1.2; min-width: 48px;
}
.chip.is-on { border-color: var(--red); color: var(--red); }
.chips { display: flex; flex-wrap: wrap; margin: -4px; }
.chips .chip { margin: 4px; }

.stack > * { display: flex; width: 100%; }
.stack > * + * { margin-top: 8px; }
.stack-s { margin-top: 8px; }
.pair { display: flex; margin-top: 12px; }
.pair > * { flex: 1 1 0; min-width: 0; }
.pair > * + * { margin-left: 8px; }

/* ---------- 下の帯（親指で届く所） ---------- */
.bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 6; background: rgba(251, 244, 236, .985);
  border-top: 1px solid var(--line); padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom));
  -webkit-transform: translateZ(0); transform: translateZ(0);   /* 下の帯を1枚の面にする（位置を決めた中身の上に重なっても、消えないように） */
}
.bar-in { max-width: 696px; margin: 0 auto; display: flex; }
.bar-in > * { flex: 1 1 0; min-width: 0; min-height: 56px; padding-left: 8px; padding-right: 8px; }
.bar-in > .btn-primary { flex-grow: 1.4; }
.bar-in > * + * { margin-left: 8px; }
/* 2行の大きいボタン（上＝やること／下＝行き先）。完了画面では、上の段＝赤い「ステージにもどる」（幅いっぱい）／下の段＝今あるボタン */
.btn-next, .btn-go { flex-direction: column; padding-top: 7px; padding-bottom: 7px; }
.bar-in.has-next { flex-wrap: wrap; }
.bar-in.has-next > .btn-next { flex: 1 0 100%; margin: 0 0 8px; }
.bar-in.has-next > .btn-next + * { margin-left: 0; }
.bar-in.has-next > .btn-line { min-height: 48px; font-size: 15px; }
.next-m { font-size: 18px; letter-spacing: .02em; }
/* 地図の主役のボタンの上：小さく「きょうの1つ」（Skool のページ・説明動画の言い方とそろえる。1日の目標＝ミッションを1つ。画面の部品として出す） */
.bar.has-cap { padding-top: 7px; }
.bar-cap { display: flex; align-items: center; max-width: 696px; min-height: 22px; margin: 0 auto 6px; padding: 0 4px; font-size: 12px; font-weight: 800; letter-spacing: .1em; line-height: 1.3; color: var(--ink); }
.bar-cap .one-seal { margin-right: 8px; }
.bar-cap-s { margin-left: auto; font-size: 11px; font-weight: 700; letter-spacing: .02em; color: var(--sub); }
.bar-cap.is-done { color: var(--gold-d); letter-spacing: .04em; }
/* きょうの1つ ができた日：ボタンは「もう1つやる」（しずかな見た目＝きょうは、ここまででも大丈夫） */
.btn-go.is-more { background: var(--paper); border-color: var(--red); color: var(--red); box-shadow: none; }
.next-s { display: block; max-width: 100%; font-size: 12px; font-weight: 500; opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar-dark { background: rgba(48, 23, 35, .96); border-top-color: rgba(255, 255, 255, .14); }
.bar-dark .btn-line { background: transparent; border-color: rgba(255, 255, 255, .34); color: var(--white); }

/* ---------- ステップの帯＝地図と同じ「道」（点が線でつながる。終えた点＝印／いま＝赤い輪） ---------- */
.steps { display: flex; padding-top: 2px; }
.step {
  position: relative; flex: 1 1 0; min-width: 0; min-height: 62px; padding: 6px 1px 6px; background: none; border: 0;
  color: var(--sub); cursor: pointer; display: flex; flex-direction: column; align-items: center;
}
.step + .step:before { content: ""; position: absolute; top: 20px; left: calc(-50% + 15px); right: calc(50% + 15px); height: 2px; border-radius: 1px; background: var(--line); }
.step.is-walked + .step.is-walked:before, .step.is-done + .step.is-done:before { background: var(--red); }
.step-n {
  position: relative; z-index: 1; box-sizing: border-box; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1;
}
.step-n .ic { width: 14px; height: 14px; stroke-width: 3; }
.step-l { margin-top: 5px; padding: 0 2px; font-size: 10.5px; font-weight: 700; line-height: 1.25; text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.step.is-done .step-n { background: var(--red); border-color: var(--red); color: var(--white); }
.step.is-now { color: var(--ink); }
.step.is-now .step-l { font-weight: 800; }
.step.is-now .step-n { border: 3px solid var(--red); background: var(--white); color: var(--red); font-size: 15px; }
.step.is-now.is-done .step-n { background: var(--red); color: var(--white); box-shadow: 0 0 0 3px rgba(200, 16, 46, .18); }

.meter { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.meter-fill { height: 100%; background: var(--red); border-radius: 3px; }
/* 1問ごとの進み：点（終えた点＝赤／いま＝輪） */
.meter-dots { display: flex; flex-wrap: wrap; align-items: center; height: auto; min-height: 12px; border-radius: 0; background: none; overflow: visible; }
.md { flex: none; box-sizing: border-box; width: 8px; height: 8px; margin: 2px 6px 2px 0; border-radius: 50%; background: var(--line); }
.md.is-on { background: var(--red); }
.md.is-now { width: 12px; height: 12px; margin-top: 0; margin-bottom: 0; background: var(--white); border: 3px solid var(--red); }

/* ---------- 文字 ---------- */
.ttl h2 { font-size: 22px; font-weight: 800; line-height: 1.35; }
.ttl-sub { margin-top: 4px; font-size: 14px; color: var(--sub); }
.lbl { display: flex; align-items: center; font-size: 14px; font-weight: 700; color: var(--sub); padding-top: 6px; }
.lbl:before { content: ""; flex: none; width: 14px; height: 2px; margin-right: 8px; border-radius: 1px; background: var(--red); }
.sec { font-size: 15px; font-weight: 800; padding-top: 10px; border-top: 1px solid var(--line); }
.convo .sec { margin: 6px 0 10px; }
.sec-sub { font-size: 13px; color: var(--sub); margin-top: 2px; }
.p { font-size: 16px; }
.meta { font-size: 13px; color: var(--sub); }
.note { font-size: 13px; color: var(--sub); }
.soon { font-size: 14px; color: var(--sub); padding: 4px 2px; }
.empty { padding: 32px 8px; text-align: center; color: var(--sub); font-weight: 700; }
.msg { font-size: 14px; font-weight: 700; color: var(--ok); }
.block > * + * { margin-top: 8px; }

.en { font-size: 21px; font-weight: 700; line-height: 1.45; }
.en-m { font-size: 20px; }
.ja { margin-top: 6px; font-size: 15px; color: #4A433E; }
.ja-big { font-size: 20px; font-weight: 700; line-height: 1.5; }
.gp { font-size: 15px; font-weight: 700; }
.tip { margin-top: 4px; font-size: 13px; color: var(--sub); }
.hint { margin-top: 8px; font-size: 17px; font-weight: 700; color: var(--red); }
.hush { font-size: 15px; color: var(--sub); }
.who { margin-bottom: 4px; font-size: 13px; font-weight: 700; color: var(--sub); }

/* 「声に出す」の合図 */
.cue { display: flex; align-items: center; font-size: 15px; font-weight: 800; line-height: 1.45; color: var(--red); }
/* マイクの輪＝あなたの番（ゆっくり光る）。まねして言う所では、待ち時間が外の輪で減っていく（.cue-ring）。 */
.cue-mic { position: relative; flex: none; box-sizing: border-box; width: 40px; height: 40px; margin: 2px 12px 2px 2px; border-radius: 50%; border: 2px solid var(--red); background: var(--white); display: flex; align-items: center; justify-content: center; }
.cue .ic { width: 20px; height: 20px; }
.cue-ring { position: absolute; left: -8px; top: -8px; width: 52px; height: 52px; fill: none; stroke: var(--red); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); }
.cue-ring circle { stroke-dasharray: 1; stroke-dashoffset: 0; }
.cue.is-wait .cue-mic { margin: 8px 16px 8px 8px; border-color: #F0C9CF; }
.cue-t { min-width: 0; }
/* ステップを1つ終えたときの1行：緑の札に、丸い印（印は、ぽんと入る） */
.done-msg { display: flex; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--green); border: 1px solid #CFE5D6; font-size: 17px; font-weight: 800; line-height: 1.45; color: var(--ok); }
.done-msg .ic { box-sizing: border-box; width: 32px; height: 32px; margin-right: 12px; padding: 7px; border-radius: 50%; background: var(--ok); color: var(--white); stroke-width: 3.4; }

/* ---------- ふきだし・メモ ---------- */
.bubble { border-radius: 16px; padding: 14px 16px; border: 1px solid var(--line); }
.bubble-partner { background: var(--pink); border-color: #F3CDD1; border-top-left-radius: 4px; margin-right: 20px; }
.bubble-you { background: var(--green); border-color: #CFE5D6; border-top-right-radius: 4px; margin-left: 20px; }
.bubble-act { display: flex; flex-wrap: wrap; margin: 6px -4px -4px; }
.bubble-act > * { margin: 4px; }
.bubble .btn { background: rgba(255, 255, 255, .85); }
.bubble .btn-text { background: transparent; }
/* 会話の1行：相手＝左（名前の頭文字の丸つき）／自分＝右 */
.talk { display: flex; align-items: flex-start; }
.talk-partner { padding-right: 24px; }
.talk-you { justify-content: flex-end; padding-left: 40px; }
.talk > .bubble { position: relative; flex: 0 1 auto; min-width: 58%; margin: 0; }
.av { flex: none; width: 32px; height: 32px; margin: 2px 8px 0 0; border-radius: 50%; background: var(--plum); color: var(--gold); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1; }
/* 正しい返事をえらんだときの印（ポンと出る） */
.okmark { position: absolute; right: -8px; top: -10px; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px var(--bg); }
.okmark .ic { width: 15px; height: 15px; stroke-width: 3.4; }
.convo > .line + .line { margin-top: 12px; }
.line.is-now .bubble { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }

.memo { background: var(--yellow); border: 1px solid #EFDFAE; border-radius: 12px; padding: 12px 14px; }
.memo-h { font-size: 13px; font-weight: 700; color: #7A6320; margin-bottom: 2px; }
.memo-b { font-size: 16px; font-weight: 700; }
.dots li { position: relative; padding-left: 16px; font-size: 16px; font-weight: 700; }
.dots li:before { content: ""; position: absolute; left: 2px; top: .65em; width: 6px; height: 6px; border-radius: 50%; background: #B89A3A; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.confirm { background: var(--white); border: 2px solid var(--red); border-radius: 14px; padding: 14px; font-weight: 700; }

/* ---------- 一覧の行 ---------- */
.row-link {
  display: flex; align-items: center; min-height: 64px; padding: 10px 12px 10px 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink);
}
.row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.row-k { font-size: 12px; font-weight: 700; color: var(--sub); }
.row-t { font-size: 17px; font-weight: 800; line-height: 1.35; }
.row-e { font-size: 14px; color: var(--sub); }
.row-s { font-size: 13px; color: var(--sub); margin-top: 2px; }
.row-go { flex: none; margin-left: 10px; font-size: 13px; font-weight: 700; color: var(--red); white-space: nowrap; }
.row-done { flex: none; margin-left: 10px; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.row-done .ic { width: 16px; height: 16px; stroke-width: 3; }

/* ---------- ホーム（旅の地図） ---------- */
.ph { display: inline-block; }
/* 上の濃い地（ヒーロー）：左右いっぱい */
.jhero { position: relative; overflow: hidden; margin: -16px -16px 0; padding: 6px 20px 20px; background: var(--hero); color: var(--white); }
.jhero:after { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 189, 138, .3), rgba(232, 189, 138, 0) 68%); pointer-events: none; }
.jhero > * { position: relative; z-index: 1; }
.jh-top { display: flex; align-items: center; min-height: 48px; }
.brand { flex: 1 1 auto; min-width: 0; font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .86); }
.jh-help { flex: none; min-width: 48px; min-height: 48px; margin-right: -8px; padding: 0 8px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gold); text-decoration: none; white-space: nowrap; }
.jh-big { margin-top: 10px; font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1.05; letter-spacing: -.01em; }
.jh-tag { margin-top: 10px; padding-bottom: 6px; font-size: 15px; font-weight: 700; color: var(--gold); }
.jh-stage { display: flex; align-items: baseline; margin-top: 6px; line-height: 1; }
.jh-l { margin-right: 12px; font-size: 13px; font-weight: 800; letter-spacing: .2em; color: rgba(255, 255, 255, .82); }
.jh-n { font-family: var(--serif); font-size: 64px; font-weight: 700; line-height: .95; }
.jh-of { margin-left: 10px; font-family: var(--serif); font-size: 26px; color: rgba(255, 255, 255, .6); }
.jh-t { margin-top: 6px; font-size: 18px; font-weight: 800; line-height: 1.4; }
/* 小さな道：全部のステージの点が1本の線でつながる（クリア＝金の印／いまここ＝白く大きい／とばした＝点線／先＝うすい輪） */
.jrail { display: flex; align-items: center; min-height: 28px; margin-top: 12px; }
.jr-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1.5px solid rgba(255, 255, 255, .36); font-family: var(--serif); font-size: 11px; font-weight: 700; line-height: 1;
  color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums;
}
.jr-n .ic { width: 12px; height: 12px; stroke-width: 3.4; }
.jr-clear { background: var(--gold); border-color: var(--gold); color: var(--plum); }
.jr-now { width: 28px; height: 28px; background: var(--white); border-color: var(--white); color: var(--red); font-size: 15px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .18); }
.jr-skipped { border-style: dashed; }
.jr-empty { opacity: .5; }
.jr-l { flex: 1 1 0; min-width: 2px; height: 2px; background: rgba(255, 255, 255, .24); }
.jr-l.jr-on { background: var(--gold); }
/* はじめての画面：10ステージの絵を小さな丸で1列に */
.jh-strip { display: flex; align-items: center; margin-top: 12px; padding-bottom: 4px; }
.jh-thumbs { flex: none; display: flex; }
.jh-th { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #4C2434; margin-left: -7px; }
.jh-th:first-child { margin-left: 0; }
.jh-th .scene-n { font-size: 11px; }
.jh-count { margin-left: 10px; font-size: 11px; font-weight: 800; letter-spacing: .16em; color: rgba(255, 255, 255, .84); white-space: nowrap; }
.jh-count b { margin-right: 3px; font-family: var(--serif); font-size: 19px; letter-spacing: 0; color: var(--white); }
.jstats { display: flex; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.jstat { flex: 1 1 0; min-width: 0; text-align: left; }
.jstat + .jstat { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .2); }
.jstat-n { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.jstat-n small { margin-left: 4px; font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .62); }
.jstat-l { margin-top: 3px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .78); }

/* はじめに（3択）：やさしい日本語が主役。ルート名は小さく。 */
.start-h { font-size: 20px; font-weight: 800; line-height: 1.45; }
.picks > .pick + .pick { margin-top: 10px; }
.pick {
  display: flex; align-items: center; width: 100%; min-height: 88px; padding: 12px 8px 12px 14px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); cursor: pointer; text-align: left;
}
.pick-n { flex: none; width: 40px; font-family: var(--serif); font-size: 40px; font-weight: 700; line-height: 1; color: var(--red); }
.pick-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.pick-t { font-size: 18px; font-weight: 800; line-height: 1.4; }
.pick-s { margin-top: 5px; font-size: 11px; font-weight: 800; color: var(--sub); letter-spacing: .08em; }
.pick > .ic { margin-left: 4px; width: 20px; height: 20px; color: var(--sub); transform: rotate(180deg); }
.pick.is-on { border: 2px solid var(--red); }
/* 3択の下の小さな点：全部のステージのうち、どこから歩き始めるか */
.sdots { display: flex; align-items: center; height: 12px; margin-top: 8px; }
.sdot { flex: none; width: 6px; height: 6px; margin-right: 5px; border-radius: 50%; background: var(--line); }
.sdot.sd-on { background: #E9AEB7; }
.sdot.sd-start { width: 10px; height: 10px; background: var(--red); box-shadow: 0 0 0 3px rgba(200, 16, 46, .14); }
.pick-now { display: inline-block; margin-left: 8px; padding: 1px 7px; border-radius: 9px; background: var(--red); color: var(--white); font-size: 11px; font-weight: 800; letter-spacing: 0; }

/* 場面の絵のわく（絵が無い・読めないときは、濃い地に番号だけ） */
.scene { position: relative; display: block; overflow: hidden; background: var(--hero); }
.scene-n { position: absolute; left: 0; top: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 22px; font-weight: 700; color: rgba(255, 255, 255, .85); }
.scene-img { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.here { flex: none; padding: 3px 9px; border-radius: 11px; background: var(--red); color: var(--white); font-size: 12px; font-weight: 800; line-height: 1.5; white-space: nowrap; }
.tag-clear, .tag-skip { flex: none; margin-left: 8px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--gold-d); color: var(--gold-d); font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.6; white-space: nowrap; }
.tag-skip { border-color: var(--line); color: var(--sub); letter-spacing: 0; }

/* 地図：左に1本の道（.st-rail）。進んだ所まで色がつく（.st-fill）。道の上に、ステージの点（.st-node）。 */
.map { padding-top: 6px; }
.st { position: relative; padding: 0 0 10px 44px; }
.st-rail { position: absolute; left: 15px; top: 0; bottom: 0; width: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.st.is-first > .st-rail { top: 30px; }
.st-fill { display: block; width: 100%; height: 0; background: linear-gradient(var(--red), var(--wine)); transform-origin: center top; }
.st.is-walked > .st-rail > .st-fill { height: 100%; }
.st.is-walked.is-start > .st-rail > .st-fill { margin-top: 30px; }
.st.is-now > .st-rail > .st-fill { height: 32px; }
.st.is-now.is-start > .st-rail > .st-fill { height: 0; }
.st-node {
  position: absolute; left: 16.5px; top: 18px; z-index: 1; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; background: var(--bg); border: 2px solid var(--line);
  font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1; color: var(--sub);
}
.st-node .ic { width: 14px; height: 14px; stroke-width: 3; }
.st.is-clear > .st-node { background: var(--red); border-color: var(--red); color: var(--white); }
.st.is-skipped > .st-node { border-style: dashed; }
.st.is-now > .st-node { top: 14px; width: 34px; height: 34px; margin-left: -17px; border: 3px solid var(--red); background: var(--white); color: var(--red); font-size: 17px; }
.st-goal { padding-bottom: 0; min-height: 40px; display: flex; align-items: center; }
.st-goal > .st-rail { bottom: 20px; }
.st-goal > .st-node { top: 12px; width: 16px; height: 16px; margin-left: -8px; border-color: var(--gold-d); background: var(--bg); }
.st-goal.is-walked > .st-node { background: var(--gold-d); }
.st-goal > .cap { color: var(--gold-d); }
.st-goal > .cap:before { display: none; }

/* 終わったステージ・先のステージ（小さい行） */
.st-row { display: flex; align-items: center; min-height: 62px; padding: 6px 12px 6px 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.st-thumb { flex: none; width: 50px; height: 50px; border-radius: 10px; }
.st-thumb .scene-n { font-size: 18px; }
.st-main { flex: 1 1 auto; min-width: 0; margin-left: 12px; display: flex; flex-direction: column; }
.st-k { display: flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--sub); }
.st-t { margin-top: 1px; font-size: 15px; font-weight: 800; line-height: 1.35; }
.st-c { flex: none; margin-left: 8px; font-family: var(--serif); font-size: 14px; color: var(--sub); white-space: nowrap; }
/* 先のステージ・とばしたステージ：うすく小さく（押せば開ける） */
.st.is-ahead > .st-row, .st.is-skipped > .st-row, .st.is-empty > .st-row { min-height: 56px; background: transparent; border-color: transparent; padding-top: 2px; padding-bottom: 2px; }
.st.is-ahead .st-thumb, .st.is-skipped .st-thumb, .st.is-empty .st-thumb { width: 44px; height: 44px; opacity: .55; }
.st.is-ahead .st-t, .st.is-skipped .st-t, .st.is-empty .st-t { font-size: 14px; font-weight: 700; color: var(--sub); }
.st.is-ahead > .st-node, .st.is-empty > .st-node { top: 15px; }
.st.is-skipped > .st-node { top: 15px; }

/* いまのステージ（大きく開く） */
.st-card { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.st-pic { height: 0; padding-top: 58%; }
.st-pic .scene-n { font-size: 64px; }
.st-pic > .here { position: absolute; left: 10px; top: 10px; box-shadow: 0 2px 8px rgba(58, 29, 43, .3); }
.st-body { padding: 14px 14px 6px; }
.st-en { margin-top: 6px; font-family: var(--serif); font-size: 25px; font-weight: 700; line-height: 1.15; }
.st-ja { margin-top: 4px; font-size: 15px; font-weight: 800; }
.st-can { margin-top: 4px; font-size: 14px; line-height: 1.6; color: #4A3F42; }
.btn-go { display: flex; width: 100%; min-height: 64px; margin-top: 14px; }
.btn-go .next-m { font-size: 20px; }
.bar-in > .btn-go { margin-top: 0; }
.st-more { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--red); text-decoration: none; }
.st-more .ic { width: 15px; height: 15px; margin-left: 3px; stroke-width: 2.6; transform: rotate(180deg); }

/* 4つの流れの進みぐあい */
.flow { display: flex; margin-top: 14px; }
.flow-i { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.flow-i + .flow-i { margin-left: 6px; }
.flow-bar { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.flow-bar i { display: block; height: 100%; border-radius: 2px; background: var(--red); }
.flow-n { margin-top: 6px; font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1.2; color: var(--sub); }
.flow-l { font-size: 11px; font-weight: 800; line-height: 1.35; color: var(--sub); }
.flow-c { display: flex; align-items: center; min-height: 18px; font-family: var(--serif); font-size: 13px; line-height: 1.3; color: var(--sub); font-variant-numeric: tabular-nums; }
.flow-c .ic { width: 15px; height: 15px; stroke-width: 3; color: var(--ok); }
.flow-i.is-now .flow-n { color: var(--red); }
.flow-i.is-now .flow-l { color: var(--ink); }
.flow-i.is-done .flow-bar i { background: var(--ok); }
.flow-i.is-none { opacity: .5; }
.flow-i.is-none .flow-c { font-family: inherit; font-size: 11px; }

.goal { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: var(--shadow); }
.goal .stack { margin-top: 12px; }
.start-line { padding-top: 4px; text-align: center; }
.start-line .note { font-size: 12px; font-weight: 700; letter-spacing: .04em; }
.start-line .stack { margin-top: 0; }

/* ---------- ステージの画面 ---------- */
.shero { position: relative; overflow: hidden; margin: -16px -16px 0; padding: 0 20px 84px; background: var(--hero); color: var(--white); }
.shero:after { content: ""; position: absolute; right: -70px; top: -90px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 189, 138, .28), rgba(232, 189, 138, 0) 68%); pointer-events: none; }
.shero > * { position: relative; z-index: 1; }
.shero-top { display: flex; align-items: center; min-height: 52px; margin-left: -12px; }
.shero-back { display: flex; align-items: center; min-height: 48px; min-width: 48px; padding: 0 10px 0 4px; color: var(--white); text-decoration: none; font-size: 13px; font-weight: 700; }
.shero-back .ic { width: 20px; height: 20px; margin-right: 2px; }
.shero-top .cap { margin-left: auto; }
.shero-en { margin-top: 8px; font-family: var(--serif); font-size: 33px; font-weight: 700; line-height: 1.1; }
.shero-ja { display: flex; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 16px; font-weight: 800; color: var(--gold); }
.shero-ja .here, .shero-ja .tag-clear, .shero-ja .tag-skip { margin-left: 10px; }
.shero-ja .tag-clear { border-color: var(--gold); color: var(--gold); }
.shero-ja .tag-skip { border-color: rgba(255, 255, 255, .4); color: rgba(255, 255, 255, .8); }
.main > .shero-pic { margin-top: -68px; }
.shero-pic { z-index: 2; height: 0; padding-top: 56%; border-radius: 16px; border: 3px solid var(--paper); box-shadow: 0 12px 30px rgba(58, 29, 43, .28); }
.shero-pic .scene-n { font-size: 72px; }
.can-t { margin-top: 6px; font-size: 16px; font-weight: 700; line-height: 1.6; }
.sprog { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px 12px; }
.sprog-n { font-family: var(--serif); font-size: 15px; color: var(--sub); }
.sprog-n b { font-size: 26px; color: var(--ink); }
.sprog-n span { margin-left: 8px; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; font-size: 12px; font-weight: 700; }
.sprog .flow { margin-top: 8px; }
/* 4つの流れ：左に細い道、番号の丸、その下にミッション */
.phases { padding-top: 4px; }
.phase { position: relative; padding: 0 0 18px 42px; }
.phase:before { content: ""; position: absolute; left: 14px; top: 30px; bottom: 0; width: 2px; background: var(--line); }
.phase:last-child { padding-bottom: 0; }
.phase:last-child:before { display: none; }
.phase-head { display: flex; align-items: center; min-height: 30px; }
.phase-n {
  position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--red); background: var(--bg); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 15px; font-weight: 700; line-height: 1;
}
.phase-n .ic { width: 15px; height: 15px; stroke-width: 3; }
.phase.is-done .phase-n { background: var(--red); color: var(--white); }
.phase.is-none .phase-n { border-color: var(--line); color: var(--sub); }
.phase-l { font-size: 18px; font-weight: 800; line-height: 1.3; }
.phase.is-none .phase-l { color: var(--sub); }
.phase-c { margin-left: auto; font-family: var(--serif); font-size: 15px; color: var(--sub); font-variant-numeric: tabular-nums; }
.phase-none { margin-top: 2px; font-size: 13px; color: var(--sub); }
.phase-list { margin-top: 10px; }
.ms + .ms { margin-top: 8px; }
.ms { display: flex; align-items: center; min-height: 62px; padding: 8px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.ms-mark { flex: none; width: 26px; height: 26px; margin-right: 12px; border-radius: 50%; border: 2px solid var(--line); display: flex; align-items: center; justify-content: center; }
.ms-mark .ic { width: 14px; height: 14px; stroke-width: 3; }
.ms.is-done .ms-mark { background: var(--green); border-color: #9CCBAB; color: var(--ok); }
.ms-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ms-k { font-size: 12px; font-weight: 700; color: var(--sub); }
.ms-t { font-size: 16px; font-weight: 800; line-height: 1.35; }
.ms.is-done .ms-t { color: var(--sub); }
.ms.is-here { border: 2px solid var(--red); box-shadow: 0 6px 18px rgba(200, 16, 46, .12); }
.ms.is-here .ms-mark { border-color: var(--red); }
.ms > .here { margin-left: 10px; }

/* ---------- ステージクリア ---------- */
.main.is-clear { min-height: 100vh; background: var(--hero); color: var(--white); }
.clear { padding: 32px 4px 0; text-align: center; }
.seal { display: block; width: 116px; height: 116px; margin: 22px auto 0; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.seal-wrap { position: relative; width: 116px; height: 116px; margin: 22px auto 0; }
.seal-wrap > .seal { margin: 0; }
/* 金のつぶ：印が入ったときに、輪のまわりへ1回だけ、しずかに散る（動きを減らす設定の人には出さない） */
.spk { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.spk i { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0; }
.spk:nth-child(odd) i { width: 4px; height: 4px; left: -2px; top: -2px; background: var(--white); }
.seal-ring { stroke: var(--gold); stroke-width: 3; }
.seal-check { stroke: var(--white); stroke-width: 6; }
.clear-h { margin-top: 14px; font-family: var(--serif); font-size: 60px; font-weight: 700; line-height: 1; letter-spacing: .01em; }
.clear-t { margin-top: 12px; font-size: 19px; font-weight: 800; color: var(--gold); }
.clear-can { margin: 24px auto 0; max-width: 320px; padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; background: rgba(255, 255, 255, .06); }
.clear-can p + p { margin-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.6; }
.clear-rail { margin: 22px auto 0; max-width: 330px; }
.clear-rail .jrail { margin-top: 0; }
.clear .jstats { margin-top: 20px; }
.clear .jstat { text-align: center; }
.clear .jstat-n { font-size: 34px; }
.clear-call { display: inline-flex; align-items: center; min-height: 48px; margin-top: 14px; padding: 0 8px; font-size: 13px; font-weight: 700; color: var(--gold); }

/* 全部の教材・下のほう */
/* 全部の教材：小さく2列（先生に番号で言われた教材を開くための入口） */
.all-grid { display: flex; flex-wrap: wrap; margin: -4px; }
.all-grid > .all-row { flex: 1 1 calc(50% - 8px); min-width: 0; margin: 4px; }
.all-row { min-height: 52px; padding: 6px 10px 6px 12px; border-radius: 12px; }
.all-row .row-t { font-size: 14px; }
.all-row .row-go { margin-left: 6px; font-family: var(--serif); font-size: 13px; font-weight: 400; color: var(--sub); }
.foot { padding-top: 8px; }
.foot-links { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.foot-a { display: inline-flex; align-items: center; min-height: 48px; padding: 0 8px; font-size: 13px; font-weight: 700; color: var(--sub); }

/* 使い方 */
/* 3つのかたまり：旅の全体（10ステージ）→ 1ステージの中（4つの流れ）→ 1つのミッションの中（やること3つ） */
.gd { position: relative; overflow: hidden; padding: 14px 14px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.gd-map { padding: 16px 16px 14px; background: var(--hero); border: 0; color: var(--white); box-shadow: 0 10px 26px rgba(58, 29, 43, .2); }
.gd-map:after { content: ""; position: absolute; right: -60px; top: -80px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 189, 138, .3), rgba(232, 189, 138, 0) 68%); pointer-events: none; }
.gd-map > * { position: relative; z-index: 1; }
.gd-big { display: flex; align-items: baseline; margin-top: 6px; line-height: 1; }
.gd-big b { margin-right: 8px; font-family: var(--serif); font-size: 46px; font-weight: 700; line-height: .95; }
.gd-big span { font-size: 17px; font-weight: 800; }
.gd-h { margin-top: 6px; font-size: 18px; font-weight: 800; line-height: 1.4; }
.gd-s { margin-top: 10px; font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--sub); }
.gd-map .gd-s { color: rgba(255, 255, 255, .82); }
.gd .cue { margin-top: 12px; }
.gd-flow { display: flex; margin-top: 12px; }
.gd-flow > li { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
.gd-flow > li + li:before { content: ""; position: absolute; left: calc(-50% + 20px); right: calc(50% + 20px); top: 15px; height: 2px; border-radius: 1px; background: var(--line); }
.gd-n {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--red); background: var(--paper); color: var(--red);
  display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1;
}
.gd-flow > li:last-child .gd-n { background: var(--red); color: var(--white); }
.gd-l { margin-top: 6px; font-size: 12px; font-weight: 800; line-height: 1.35; }
.how { display: flex; margin-top: 12px; }
.how > li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; padding: 12px 2px 10px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; text-align: center; }
.how > li + li { margin-left: 8px; }
.how-i { width: 44px; height: 44px; border-radius: 50%; background: var(--pink); color: var(--red); display: flex; align-items: center; justify-content: center; }
.how-n { margin-top: 8px; font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1; color: var(--red); }
.how-t { margin-top: 3px; font-size: 15px; font-weight: 800; line-height: 1.35; }

/* ---------- ミッション完了のカード（4種類の練習の完了画面で共通） ---------- */
.fin { position: relative; overflow: hidden; padding: 16px 16px 14px; border-radius: 18px; background: var(--hero); color: var(--white); box-shadow: 0 10px 26px rgba(58, 29, 43, .22); }
.fin:after { content: ""; position: absolute; right: -60px; top: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 189, 138, .32), rgba(232, 189, 138, 0) 68%); pointer-events: none; }
.fin > * { position: relative; z-index: 1; }
.fin-row { display: flex; align-items: center; }
.fin-seal { flex: none; width: 54px; height: 54px; margin-right: 14px; border-radius: 50%; border: 2px solid var(--gold); display: flex; align-items: center; justify-content: center; }
.fin-seal .ic { width: 28px; height: 28px; stroke-width: 3; }
.fin-main { flex: 1 1 auto; min-width: 0; }
.fin-t { margin-top: 5px; font-size: 19px; font-weight: 800; line-height: 1.4; }
.fin-prog { display: flex; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.fin-k { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .14em; color: var(--gold); white-space: nowrap; }
.fin-pips { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; margin: 0 6px 0 10px; }
.fin-g { display: flex; align-items: center; margin-right: 6px; }
.fin-pip { flex: none; width: 9px; height: 9px; margin: 2px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .42); }
.fin-pip.is-on { background: var(--gold); border-color: var(--gold); }
.fin-pip.is-me { border-color: var(--white); }
.fin-pip.is-me.is-on { background: var(--white); box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }
.fin-c { flex: none; font-family: var(--serif); font-size: 14px; color: rgba(255, 255, 255, .72); white-space: nowrap; font-variant-numeric: tabular-nums; }
.fin-c b { font-size: 21px; color: var(--white); }
/* 完了画面の、今あるボタン（一覧へ・もう一度 など）：本文の下に小さく */
.fin-more { display: flex; padding-top: 6px; }
.fin-more > * { flex: 1 1 0; min-width: 0; min-height: 48px; padding: 6px 8px; border-width: 1px; background: transparent; font-size: 14px; color: var(--sub); box-shadow: none; }
.fin-more > * + * { margin-left: 8px; }
/* 「話した文」が1つ増えた手ごたえ（動きを減らす設定の人には出さない） */
.plus {
  position: fixed; left: 50%; bottom: 96px; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 8; display: flex; align-items: center;
  padding: 5px 14px 5px 12px; border-radius: 18px; background: var(--plum); color: var(--white); font-size: 12px; font-weight: 700; line-height: 1.4;
  white-space: nowrap; box-shadow: 0 6px 16px rgba(58, 29, 43, .3); pointer-events: none; opacity: 0; transform: translateX(-50%);
}
.plus b { margin-right: 8px; font-family: var(--serif); font-size: 17px; line-height: 1.2; color: var(--gold); }

/* ---------- 英文構成 ---------- */
.kata { padding: 18px 12px 16px; border-width: 1px; border-radius: 18px; text-align: center; box-shadow: var(--shadow); }
.kata-f { font-size: 26px; font-weight: 800; line-height: 1.3; color: var(--red); }
.kata-m { margin-top: 10px; font-size: 15px; font-weight: 700; color: var(--sub); }
/* 型を、色つきのブロックで：こい色＝そのまま言う所／金の点線＝入れかえる所（データの「...」「+」「/」の区切りで分ける） */
.kb-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; margin: -3px; }
.kb { margin: 3px; padding: 7px 13px; border-radius: 11px; font-size: 23px; font-weight: 800; line-height: 1.25; }
.kb-fix { background: var(--plum); color: var(--white); }
.kb-slot { min-width: 46px; background: #FBEFD9; box-shadow: inset 0 0 0 2px #E3C297; color: var(--gold-d); }
.kb-slot.kb-ja { font-size: 17px; padding-top: 10px; padding-bottom: 10px; }
.kb-mark { margin: 0 2px 0 -1px; font-size: 23px; font-weight: 800; line-height: 1.25; color: var(--sub); }
.kb-or { flex: 0 0 100%; height: 0; margin: 2px 0; }
.kb-key { display: flex; align-items: center; justify-content: center; margin-top: 12px; font-size: 11px; font-weight: 700; color: var(--sub); }
.kb-key i { display: block; width: 12px; height: 12px; margin-right: 5px; border-radius: 4px; background: var(--plum); }
.kb-key i.is-slot { margin-left: 14px; background: #FBEFD9; box-shadow: inset 0 0 0 1.5px #E3C297; }
/* 例文：型の「そのまま言う所」と「入れかえる所」に、下線で色 */
.ex-fix { box-shadow: inset 0 -3px 0 var(--plum); }
.ex-slot { box-shadow: inset 0 -3px 0 #E3C297; }
/* 入れかえ：ここを変える（入れかわる1か所が、動いて入れかわる） */
.swap-hint { display: flex; align-items: center; font-size: 16px; font-weight: 700; line-height: 1.45; }
.swap-hint .ic { margin-right: 10px; color: var(--gold-d); }
.swap-slot { display: inline-block; margin: 0 2px; padding: 0 6px; border-radius: 8px; background: #FBEFD9; box-shadow: inset 0 0 0 2px #E3C297; }
/* 「言えた／だいたい／まだ」：大きく押しやすく。上に小さな印（○・△・―）。 */
.btn-rate { flex-direction: column; min-height: 68px; padding-top: 9px; padding-bottom: 8px; font-size: 15px; }
.bar-in > .btn-rate { min-height: 68px; flex-grow: 1; }
.bar-in > .btn-rate.btn-primary { flex-grow: 1.25; }
.btn-rate:before { content: ""; display: block; box-sizing: border-box; width: 20px; height: 20px; margin-bottom: 5px; }
.rate-ok:before { border: 3px solid currentColor; border-radius: 50%; }
.rate-mid:before { width: 0; height: 0; border-left: 11px solid transparent; border-right: 11px solid transparent; border-bottom: 19px solid currentColor; opacity: .5; }
.rate-no:before { height: 3px; margin: 9px 0 13px; border-radius: 2px; background: currentColor; opacity: .45; }
.mark { flex: none; width: 1.4em; font-weight: 800; }
.batsu {
  display: flex; align-items: flex-start; padding: 14px 16px; background: #F6EFE8; border: 1px solid var(--line); border-radius: 14px;
  font-size: 20px; font-weight: 700; line-height: 1.45; color: #6F665F;
}
.batsu .mark { color: var(--red); }
.maru { display: flex; align-items: flex-start; }
.maru .mark { color: var(--ok); }
.chk {
  align-items: center; min-height: 52px; padding: 8px 12px; background: var(--white); border: 2px solid var(--line); border-radius: 14px;
  cursor: pointer; text-align: left; font-size: 15px; font-weight: 700; line-height: 1.4;
}
.chk-b {
  flex: none; width: 26px; height: 26px; margin-right: 10px; border-radius: 8px; border: 2px solid var(--line); background: var(--white);
  display: flex; align-items: center; justify-content: center; color: var(--ok);
}
.chk-b .ic { width: 16px; height: 16px; stroke-width: 3; }
.chk-t { flex: 1 1 auto; min-width: 0; }
.chk.is-on { background: var(--green); border-color: #9CCBAB; }
.chk.is-on .chk-b { border-color: #9CCBAB; }
.more-row { min-height: 56px; padding-top: 8px; padding-bottom: 8px; }
.more-row .row-t { font-size: 15px; }

/* ---------- 聞いて返す ---------- */
.choices > .choice + .choice { margin-top: 10px; }
.choice { background: var(--white); border: 2px solid var(--line); border-radius: 14px; }
.choice-row { display: flex; align-items: stretch; }
.choice-b {
  flex: 1 1 auto; min-width: 0; min-height: 60px; padding: 14px 6px 14px 12px; background: none; border: 0;
  display: flex; align-items: flex-start; text-align: left; cursor: pointer;
}
.choice-b[disabled] { cursor: default; }
.choice-row > .btn { flex: none; align-self: center; margin-right: 4px; }
.abc {
  flex: none; width: 28px; height: 28px; margin: 1px 10px 0 0; border-radius: 8px; border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 800; color: var(--sub);
}
.choice > .ja, .choice > .why { margin: 0; padding: 0 14px 12px 50px; }
.why { font-size: 14px; font-weight: 700; color: #8A1C2C; }
.choice.is-wrong { background: #F6EFE8; }
.choice.is-wrong .en { color: #9A9089; }
.choice.is-wrong .abc { border-color: #E3B4BA; color: var(--red); }
.score { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.score-l { font-size: 14px; font-weight: 700; color: var(--sub); }
.score-n { font-size: 40px; font-weight: 800; line-height: 1.2; color: var(--red); }

/* ---------- 表現の行 ---------- */
.phrases > .phrase + .phrase { margin-top: 8px; }
.phrase { display: flex; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 10px 10px 10px 14px; }
.phrase-t { flex: 1 1 auto; min-width: 0; }
.phrase > .btn { flex: none; margin-left: 8px; }
.rel-list { display: flex; flex-wrap: wrap; margin: 4px -4px -4px; }
.rel-list > * { margin: 4px; }
.tag { display: inline-flex; align-items: center; min-height: 32px; padding: 2px 10px; border-radius: 16px; background: var(--white); border: 1px solid var(--line); font-size: 13px; color: var(--sub); }

/* ---------- ロールプレイ ---------- */
/* まねして言う所の待ち時間は、マイクのまわりの輪で見せる（.cue-ring。動きは、いちばん下のかたまりの中）。 */
.tally { display: flex; }
.tally > p { flex: 1 1 0; min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 4px; text-align: center; font-size: 13px; color: var(--sub); }
.tally > p + p { margin-left: 8px; }
.tally b { display: block; font-size: 26px; line-height: 1.2; color: var(--ink); }

/* ---------- チャレンジ ---------- */
.pic { display: block; width: 100%; max-width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--white); }
.timer-box { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: center; }
.timer { font-size: 56px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.rec-on { font-size: 13px; font-weight: 700; color: var(--red); }
.scale { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 13px; color: var(--sub); }
.scale b { display: inline-block; min-width: 1.2em; color: var(--ink); }
.crit { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 10px; }
.crit-h { display: flex; align-items: baseline; }
.crit-n { flex: 1 1 auto; min-width: 0; font-size: 17px; font-weight: 800; }
.crit-k { flex: none; margin-left: 8px; font-family: var(--serif); font-size: 12px; color: var(--sub); }
.crit-f { font-size: 13px; color: var(--sub); }
/* 段のボタン：0〜3 が、階段のように高くなる。えらんだ段までが色づく。 */
.crit-b { display: flex; align-items: flex-end; margin-top: 10px; }
.pt { flex: 1 1 0; min-width: 0; min-height: 50px; padding: 0 0 7px; border: 2px solid var(--line); border-radius: 12px; background: var(--white); font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1; cursor: pointer; display: flex; align-items: flex-end; justify-content: center; }
.pt:nth-child(2) { min-height: 58px; }
.pt:nth-child(3) { min-height: 66px; }
.pt:nth-child(4) { min-height: 74px; }
.pt + .pt { margin-left: 8px; }
.pt.is-under { background: var(--pink); border-color: #F3CDD1; color: var(--wine); }
.pt.is-on { background: var(--red); border-color: var(--red); color: var(--white); box-shadow: 0 6px 14px rgba(200, 16, 46, .2); }
.crit-v { min-height: 20px; margin-top: 8px; font-size: 13px; font-weight: 700; color: var(--wine); }
/* 合計（15点）を大きく */
.sum { display: flex; align-items: center; padding: 12px 16px; border-radius: 16px; background: var(--hero); color: var(--white); font-size: 13px; font-weight: 800; }
.sum-l { flex: none; letter-spacing: .08em; color: var(--gold); }
.sum-bar { flex: 1 1 auto; min-width: 0; display: flex; margin: 0 12px; }
.sum-bar i { flex: 1 1 0; height: 8px; margin-right: 2px; border-radius: 2px; background: rgba(255, 255, 255, .2); }
.sum-bar i.is-on { background: var(--gold); }
.sum b { flex: none; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--white); }
.sum small { flex: none; margin-left: 5px; font-family: var(--serif); font-size: 16px; font-weight: 400; color: rgba(255, 255, 255, .62); }
/* 1回目と2回目を並べる：合計を大きく・項目ごとに2本の棒（上＝1回目／下＝2回目。伸びた所に +1） */
.vs { border-radius: 18px; overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); }
.vs-total { display: flex; align-items: flex-end; justify-content: center; padding: 16px 12px 14px; background: var(--hero); color: var(--white); }
.vs-t { display: flex; flex-direction: column; align-items: center; min-width: 64px; }
.vs-t span { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: rgba(255, 255, 255, .72); }
.vs-t b { margin-top: 4px; font-family: var(--serif); font-size: 34px; line-height: 1; color: rgba(255, 255, 255, .72); }
.vs-t.is-2 span { color: var(--gold); }
.vs-t.is-2 b { font-size: 54px; color: var(--white); }
.vs-arrow { flex: none; width: 26px; height: 2px; margin: 0 10px 16px; background: rgba(255, 255, 255, .4); position: relative; }
.vs-arrow:after { content: ""; position: absolute; right: 0; top: -4px; width: 8px; height: 8px; border-top: 2px solid rgba(255, 255, 255, .6); border-right: 2px solid rgba(255, 255, 255, .6); transform: rotate(45deg); }
.vs-of { margin: 0 0 6px 6px; font-family: var(--serif); font-size: 16px; color: rgba(255, 255, 255, .62); }
.vs-up { flex: none; margin: 0 0 8px 12px; padding: 2px 10px; border-radius: 12px; background: var(--gold); color: var(--plum); font-family: var(--serif); font-size: 16px; font-weight: 700; line-height: 1.3; }
.vs-list { padding: 6px 14px 10px; }
.vs-row { padding: 9px 0; }
.vs-row + .vs-row { border-top: 1px solid var(--line); }
.vs-n { display: flex; align-items: center; font-size: 14px; font-weight: 800; }
.vs-d { margin-left: 8px; padding: 0 7px; border-radius: 9px; background: var(--green); color: var(--ok); font-family: var(--serif); font-size: 12px; line-height: 1.5; }
.vs-bar { display: flex; align-items: center; margin-top: 5px; }
.vs-bar em { flex: none; width: 44px; font-size: 10px; font-style: normal; font-weight: 700; color: var(--sub); }
.vs-bar span { flex: 1 1 auto; min-width: 0; height: 8px; border-radius: 4px; background: #F1E7DD; overflow: hidden; }
.vs-bar i { display: block; height: 100%; border-radius: 4px; background: #CDBFB3; transform-origin: left center; }
.vs-bar.is-2 i { background: var(--red); }
.vs-row.is-up .vs-bar.is-2 i { background: linear-gradient(90deg, var(--red), var(--wine)); }
.vs-bar b { flex: none; width: 22px; text-align: right; font-family: var(--serif); font-size: 15px; line-height: 1; }
.cmp { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; table-layout: fixed; }
.cmp th, .cmp td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.cmp th:first-child { text-align: left; width: 56%; font-weight: 700; }
.cmp thead th { font-size: 12px; color: var(--sub); }
.cmp td { font-size: 18px; font-weight: 800; }
.cmp td.is-up { color: var(--ok); }
.cmp-sum th, .cmp-sum td { border-bottom: 0; background: var(--yellow); }

/* ---------- 記録 ---------- */
.pcard { border-radius: 16px; padding: 16px 18px 16px; background: var(--hero); color: var(--white); }
.pcard .jstats { margin-top: 10px; }
.pgrid { display: flex; flex-wrap: wrap; margin: 4px -7px -7px; }
/* 絵はがき10枚（2列）。クリアしたステージ＝色つき・金のわく／まだ＝うすい線画ふう。押すと、そのステージが開く。 */
.pg { flex: 0 0 calc(50% - 14px); min-width: 0; min-height: 48px; margin: 7px; display: block; text-decoration: none; color: var(--sub); }
.pg-c { display: flex; align-items: center; justify-content: flex-end; margin-top: 7px; padding: 0 2px; font-family: var(--serif); font-size: 12px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.pg-now { margin-right: auto; padding: 1px 7px; border-radius: 9px; background: var(--red); color: var(--white); font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; font-size: 10px; font-weight: 800; }
.pg.is-clear .pg-c { color: var(--gold-d); }
.stats { display: flex; flex-wrap: wrap; margin: 10px -4px -4px; }
.stat { flex: 1 1 40%; min-width: 0; margin: 4px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px 4px; text-align: center; }
.stat-n { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1.2; color: var(--red); }
.stat-l { font-size: 12px; font-weight: 700; }
.stat-u { font-size: 11px; color: var(--sub); }


/* ---------- 毎日の仕組み（きょうの1つ・週の帯・きょうのひとこと・絵はがき・こよみ） ---------- */
.jh-day { margin-top: -2px; padding-bottom: 4px; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: rgba(255, 255, 255, .78); }
/* きょうの1つ の印：金の輪。できたら、金の地にチェック。 */
.one-seal { flex: none; box-sizing: border-box; width: 38px; height: 38px; border-radius: 50%; border: 2px dashed #D9B98F; display: flex; align-items: center; justify-content: center; color: var(--plum); }
.one-seal .ic { width: 19px; height: 19px; stroke-width: 3; }
.one-seal b { font-family: var(--serif); font-size: 18px; font-weight: 700; line-height: 1; color: #C9A06A; }
.one-seal.one-s b { font-size: 10px; }
.one-seal.is-done { border: 2px solid #D2A56C; background: linear-gradient(140deg, #F6DDB6, #DDAE70); box-shadow: 0 0 0 3px rgba(232, 189, 138, .28); }
.one-seal.one-s { width: 18px; height: 18px; border-width: 1.5px; box-shadow: none; }
.one-seal.one-s .ic { width: 10px; height: 10px; stroke-width: 3.6; }
/* 「きょう」の札：上の濃い地に少しかかる。きょうの1つ・今週の7つの点・連続・きょう話した文。 */
.main > .today { margin-top: -16px; }
.today { position: relative; z-index: 2; padding: 13px 14px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.today:before { content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 2px; border-radius: 1px; background: linear-gradient(90deg, rgba(232, 189, 138, 0), var(--gold), rgba(232, 189, 138, 0)); }
.today-top { display: flex; align-items: center; }
.today-main { flex: 1 1 auto; min-width: 0; margin-left: 12px; }
.today-t { font-size: 18px; font-weight: 800; line-height: 1.35; }
.today-s { margin-top: 1px; font-size: 12.5px; font-weight: 700; line-height: 1.5; color: var(--sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.today-nx { display: inline-block; margin-right: 8px; padding: 0 7px; border-radius: 9px; border: 1px solid var(--gold-d); color: var(--gold-d); font-size: 10.5px; font-weight: 800; line-height: 1.6; vertical-align: 1px; }
/* 2日以上あいて戻った人へのひとこと（札のいちばん上に、小さく） */
.today-back { margin: -1px 0 9px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 800; line-height: 1.5; color: var(--wine); }
/* まだの日：札の上の段が、そのまま きょうの1つ へのリンク（右に小さな矢印） */
.today-go { min-height: 48px; margin: -4px -6px; padding: 4px 6px; border-radius: 12px; color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.today-go > .ic { flex: none; width: 18px; height: 18px; margin-left: 6px; color: var(--red); stroke-width: 2.6; transform: rotate(180deg); }
.today-go .today-s { color: var(--wine); }
.today-go:active { background: rgba(200, 16, 46, .06); }
/* ホーム画面に置く案内（小さく・しずかに。とじたら、もう出さない） */
.a2h { padding: 10px 6px 4px 14px; border: 1px dashed #D9B98F; border-radius: 16px; }
.a2h-t { display: flex; align-items: center; padding-right: 8px; font-size: 13.5px; font-weight: 800; line-height: 1.5; }
.a2h-i { flex: none; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: #F6E6CE; color: var(--plum); display: flex; align-items: center; justify-content: center; }
.a2h-i .ic { width: 16px; height: 16px; stroke-width: 2.2; }
.a2h-how { list-style: none; margin: 8px 8px 0 38px; padding: 0; font-size: 13px; line-height: 1.6; color: var(--ink); }
.a2h-how li { display: flex; }
.a2h-how li + li { margin-top: 2px; }
.a2h-how b { flex: none; width: 62px; font-weight: 800; color: var(--gold-d); }
.a2h-how span { flex: 1 1 auto; min-width: 0; }
.a2h-act { display: flex; justify-content: flex-end; margin-top: 2px; }
.a2h-act .btn { flex: none; }
.a2h-x { color: var(--sub); }
.today-mid { display: flex; align-items: center; justify-content: space-between; min-height: 18px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.cap-q { font-size: 10px; color: var(--sub); }
.cap-q:before { display: none; }
.today-streak { font-size: 12px; font-weight: 800; color: var(--gold-d); white-space: nowrap; }
.today-wk { display: flex; align-items: flex-end; margin-top: 6px; }
.today-wk > .wk { flex: 1 1 auto; min-width: 0; }
.today-say { flex: none; margin-left: 8px; display: flex; flex-direction: column; align-items: flex-end; }
.today-say b { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.today-say span { margin-top: 4px; font-size: 10.5px; font-weight: 700; color: var(--sub); white-space: nowrap; }
/* 週の帯：月〜日の7つの点。練習した日＝うすい金／きょうの1つ ができた日＝金にチェック／きょう＝赤い輪／先の日＝点線。 */
.wk { display: flex; }
.wk-d { flex: 1 1 0; min-width: 0; max-width: 34px; display: flex; flex-direction: column; align-items: center; }
.wk-l { font-size: 10px; font-weight: 700; line-height: 1.2; color: var(--sub); }
.wk-dot { box-sizing: border-box; width: 20px; height: 20px; margin-top: 5px; border-radius: 50%; border: 1.5px solid #DCCFC3; display: flex; align-items: center; justify-content: center; color: var(--plum); }
.wk-dot .ic { width: 11px; height: 11px; stroke-width: 3.6; }
.wk-d.is-on .wk-dot { background: #F6E6CE; border-color: #E3C297; }
.wk-d.is-one .wk-dot { background: var(--gold); border-color: #D2A56C; }
.wk-d.is-future .wk-dot { border-style: dashed; opacity: .6; }
.wk-d.is-today .wk-l { font-weight: 800; color: var(--red); }
.wk-d.is-today .wk-dot { box-shadow: 0 0 0 2.5px var(--paper), 0 0 0 4.5px var(--red); }
/* 濃い地の上の週の帯（完了のカード・旅の記録） */
.fin .wk-l, .pweek .wk-l { color: rgba(255, 255, 255, .68); }
.fin .wk-dot, .pweek .wk-dot { border-color: rgba(255, 255, 255, .36); }
.fin .wk-d.is-on .wk-dot, .pweek .wk-d.is-on .wk-dot { background: rgba(232, 189, 138, .34); border-color: rgba(232, 189, 138, .6); }
.fin .wk-d.is-one .wk-dot, .pweek .wk-d.is-one .wk-dot { background: var(--gold); border-color: var(--gold); }
.fin .wk-d.is-today .wk-l, .pweek .wk-d.is-today .wk-l { color: var(--white); }
.fin .wk-d.is-today .wk-dot, .pweek .wk-d.is-today .wk-dot { box-shadow: 0 0 0 2.5px #55283A, 0 0 0 4.5px var(--white); }
.wk-l2 .wk-d { max-width: none; }
.wk-l2 .wk-l { font-size: 11px; }
.wk-l2 .wk-dot { width: 28px; height: 28px; margin-top: 6px; }
.wk-l2 .wk-dot .ic { width: 14px; height: 14px; }
/* 声の棒（アプリのアイコンと同じ形：4本の縦の棒）。音が流れているあいだ動く。 */
.vb { display: inline-flex; align-items: center; height: 16px; }
.vb i { display: block; width: 3px; margin: 0 1.5px; border-radius: 2px; background: currentColor; transform-origin: center; }
.vb i:nth-child(1) { height: 7px; }
.vb i:nth-child(2) { height: 16px; }
.vb i:nth-child(3) { height: 11px; }
.vb i:nth-child(4) { height: 5px; }
/* 音が流れているボタン：再生の印のかわりに、声の棒（ボタンの左） */
.btn.is-playing > .ic-play { display: none; }
.btn.is-playing:before { content: ""; flex: none; width: 15px; height: 16px; margin-right: 7px; background: linear-gradient(currentColor, currentColor) 0 50% / 3px 7px no-repeat, linear-gradient(currentColor, currentColor) 6px 50% / 3px 16px no-repeat, linear-gradient(currentColor, currentColor) 12px 50% / 3px 10px no-repeat; }
.btn-ico.is-playing:before { margin-right: 0; }
/* きょうのひとこと（10秒の口ならし） */
.warm { padding: 12px 14px 12px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.warm-head { display: flex; align-items: center; }
.warm-i { flex: none; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--plum); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.warm-i .vb { height: 13px; }
.warm-i .vb i { width: 2.5px; margin: 0 1px; }
.warm-i .vb i:nth-child(1) { height: 6px; }
.warm-i .vb i:nth-child(2) { height: 13px; }
.warm-i .vb i:nth-child(3) { height: 9px; }
.warm-i .vb i:nth-child(4) { height: 4px; }
.warm-i .ic { width: 14px; height: 14px; stroke-width: 3.2; }
.warm-k { font-size: 14px; font-weight: 800; white-space: nowrap; }
.warm-next { margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--gold-d); }
.warm-s { margin-left: auto; padding-left: 8px; font-size: 11px; font-weight: 700; color: var(--sub); white-space: nowrap; }
.warm-body { display: flex; align-items: center; margin-top: 8px; }
.warm-t { flex: 1 1 auto; min-width: 0; }
.warm-body > .btn { flex: none; margin-left: 10px; }
.warm-en { font-size: 19px; font-weight: 700; line-height: 1.4; }
.warm-ja { margin-top: 2px; font-size: 13px; color: var(--sub); }
.warm-act { display: flex; margin-top: 10px; }
.warm-act > * { flex: 1 1 0; min-width: 0; }
.warm-act > * + * { margin-left: 8px; }
.btn-warm { border-color: #D9B98F; color: var(--plum); }
.warm.is-done { background: transparent; }
.warm.is-done .warm-i { background: var(--gold); color: var(--plum); }
.warm.is-done .warm-en { font-size: 16px; color: #5A4C50; }
.warm.is-done .warm-ja { display: none; }
/* 完了のカードの下の段：きょうの1つ・週の帯・きょう話した文・あしたの1つ・節目 */
.fin-day { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.fin-one { display: flex; align-items: center; font-size: 16px; font-weight: 800; line-height: 1.4; }
.fin-one .one-seal { width: 28px; height: 28px; margin-right: 10px; }
.fin-one .one-seal .ic { width: 14px; height: 14px; stroke-width: 3.4; }
.fin-one-t { min-width: 0; }
.fin-streak { flex: none; margin-left: auto; padding: 0 0 2px 8px; font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.fin-wk { display: flex; align-items: flex-end; margin-top: 10px; }
.fin-wk > .wk { flex: 1 1 auto; min-width: 0; max-width: 250px; }
.fin-foot { margin-top: 12px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .2); }
.fin-say { display: flex; align-items: baseline; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .8); }
.fin-say b { margin-left: 10px; font-family: var(--serif); font-size: 24px; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.fin-mile { display: inline-flex; align-items: baseline; margin-top: 9px; padding: 4px 12px; border-radius: 15px; border: 1px solid var(--gold); font-size: 12px; font-weight: 800; color: var(--gold); }
.fin-mile b { margin: 0 6px; font-family: var(--serif); font-size: 20px; line-height: 1; color: var(--white); }
.fin-nx { display: flex; align-items: center; margin-top: 9px; font-size: 13px; font-weight: 700; }
.fin-nx-k { flex: none; margin-right: 8px; padding: 0 8px; border-radius: 10px; border: 1px solid rgba(232, 189, 138, .7); color: var(--gold); font-size: 10.5px; font-weight: 800; line-height: 1.7; white-space: nowrap; }
.fin-nx-t { min-width: 0; color: rgba(255, 255, 255, .92); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 絵はがき：場面の絵に、金のわく。まだの所は、うすい線画ふう。 */
.pc { position: relative; display: block; padding: 5px 5px 0; border-radius: 5px; background: #FFFDF8; box-shadow: 0 0 0 1px #D8B27A, 0 0 0 3px #FFFDF8, 0 0 0 4px #E8BD8A, 0 8px 18px rgba(58, 29, 43, .16); }
.pc-pic { height: 0; padding-top: 66%; border-radius: 2px; }
.pc-pic .scene-n { font-size: 26px; }
.pc-cap { display: flex; align-items: baseline; padding: 5px 2px 6px; }
.pc-n { flex: none; margin-right: 6px; font-family: var(--serif); font-size: 10px; font-weight: 700; letter-spacing: .04em; color: var(--gold-d); }
.pc-t { min-width: 0; font-family: var(--serif); font-size: 11.5px; font-weight: 700; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-stamp { position: absolute; right: 10px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: rgba(58, 29, 43, .86); border: 1.5px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; }
.pc-stamp .ic { width: 11px; height: 11px; stroke-width: 3.6; }
.pc.is-yet { background: transparent; box-shadow: 0 0 0 1px var(--line); }
.pc.is-yet .pc-pic { background: #F6EEE5; box-shadow: inset 0 0 0 1px #E4D7CB; }
.pc.is-yet .scene-img { filter: grayscale(1) contrast(.55) brightness(1.35); opacity: .22; }
.pc.is-yet .scene-n { color: #C4B5A8; }
.pc.is-yet .pc-n, .pc.is-yet .pc-t { color: #B5A79C; }
.pc-big { width: 236px; max-width: 76%; margin: 0 auto; padding: 8px 8px 0; transform: rotate(-2.5deg); text-align: left; }
.pc-big .pc-cap { padding: 8px 2px 9px; }
.pc-big .pc-n { font-size: 12px; }
.pc-big .pc-t { font-size: 14px; }
.pc-big .pc-stamp { right: 14px; top: 14px; width: 28px; height: 28px; }
.pc-big .pc-stamp .ic { width: 14px; height: 14px; }
.clear-pc { margin-top: 22px; }
.clear-pc-t { margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--gold); }
.clear .seal-wrap, .clear .seal-wrap > .seal { width: 92px; height: 92px; }
.clear .seal-wrap { margin-top: 16px; }
/* 旅の記録：きょうと今週 */
.pweek { position: relative; overflow: hidden; border-radius: 18px; padding: 16px 16px 14px; background: var(--hero); color: var(--white); }
.pweek:after { content: ""; position: absolute; right: -60px; top: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 189, 138, .3), rgba(232, 189, 138, 0) 68%); pointer-events: none; }
.pweek > * { position: relative; z-index: 1; }
.pweek-top { display: flex; align-items: center; justify-content: space-between; }
.pweek-streak { font-size: 12px; font-weight: 800; color: var(--gold); white-space: nowrap; }
.pweek > .wk { margin-top: 14px; }
.pstats { display: flex; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.pstat { flex: 1 1 0; min-width: 0; }
.pstat + .pstat { margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .2); }
.pstat-n { font-family: var(--serif); font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pstat-n small { margin-left: 3px; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .62); }
.pstat-l { margin-top: 3px; font-size: 11px; font-weight: 700; color: rgba(255, 255, 255, .78); }
/* ここ5週間のこよみ */
.cal { padding: 12px 10px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.cal-head, .cal-row { display: flex; }
.cal-head span { flex: 1 1 0; text-align: center; font-size: 10px; font-weight: 700; color: var(--sub); }
.cal-row { margin-top: 5px; }
.cal-d { flex: 1 1 0; min-width: 0; height: 30px; margin: 0 2.5px; border-radius: 8px; background: #F4EAE0; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 11px; line-height: 1; color: #A89A90; font-variant-numeric: tabular-nums; }
.cal-d.is-on { background: #F3DFC4; color: #7A5A2E; }
.cal-d.is-one { background: var(--wine); color: var(--white); }
.cal-d.is-future { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: #C9BBAF; }
.cal-d.is-today { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--red); }
.cal-key { display: flex; align-items: center; margin-top: 10px; padding: 0 3px; font-size: 11px; color: var(--sub); }
.cal-k { flex: none; width: 12px; height: 12px; margin-right: 5px; border-radius: 4px; }
.cal-k.is-one { background: var(--wine); }
.cal-k.is-on { margin-left: 14px; background: #F3DFC4; }
/* 話した文の節目 */
.miles { margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); }
.miles-row { display: flex; justify-content: space-between; }
.mile { flex: none; box-sizing: border-box; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .3); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--serif); color: rgba(255, 255, 255, .62); }
.mile b { font-size: 13px; line-height: 1; }
.mile .ic { width: 11px; height: 11px; margin-bottom: 2px; stroke-width: 3.6; }
.mile.is-got { background: var(--gold); border-color: var(--gold); color: var(--plum); }
.miles-bar { height: 4px; margin-top: 12px; border-radius: 2px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.miles-bar i { display: block; height: 100%; border-radius: 2px; background: var(--gold); }
.miles-next { margin-top: 8px; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .82); }
.miles-next b { margin: 0 2px; font-family: var(--serif); font-size: 18px; line-height: 1; color: var(--white); }
/* 使い方：毎日 */
.gd-day .wk { margin-top: 12px; max-width: 280px; }
/* 地図：クリアしたステージは絵に金のわく・先のステージは絵をうすく・道の終わりに小さな旗と光 */
.st.is-clear .st-thumb { box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--gold); }
.st.is-ahead .st-thumb .scene-img, .st.is-skipped .st-thumb .scene-img, .st.is-empty .st-thumb .scene-img { filter: grayscale(.6) brightness(1.08); }
.goal-art { position: relative; flex: none; width: 36px; height: 36px; margin: 0 6px 0 -4px; display: flex; align-items: center; justify-content: center; color: var(--gold-d); }
.goal-art .ic { position: relative; width: 20px; height: 20px; }
.goal-ray { position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(232, 189, 138, .6), rgba(232, 189, 138, 0) 70%); }
.st-goal.is-walked .goal-art { color: var(--red); }

/* ---------- 練習画面の作りこみ ---------- */
/* 場面の絵の細い帯（ステージに入っている教材だけ）：濃いグラデーションの上に、題と英語の題。右下に声の棒。 */
.strip { height: 76px; }
.strip .scene-n { display: none; }
.strip .scene-img { object-position: center 38%; }
.strip:after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(58, 29, 43, .94) 0%, rgba(58, 29, 43, .78) 44%, rgba(138, 44, 58, .3) 100%); }
.strip-in { position: absolute; left: 16px; right: 60px; top: 0; bottom: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; color: var(--white); }
.strip-t { font-size: 18px; font-weight: 800; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 1px 8px rgba(0, 0, 0, .3); }
.strip-e { margin-top: 2px; font-family: var(--serif); font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strip-vb { position: absolute; right: 18px; top: 13px; z-index: 1; height: 20px; color: rgba(255, 255, 255, .42); }
.strip-vb i { width: 3.5px; margin: 0 2px; }
.strip-vb i:nth-child(1) { height: 9px; }
.strip-vb i:nth-child(2) { height: 20px; }
.strip-vb i:nth-child(3) { height: 14px; }
.strip-vb i:nth-child(4) { height: 6px; }
.is-sounding .strip-vb { color: var(--gold); }
/* 一覧（全部の教材の4つの一覧）：上に濃い見出し・行ごとにステージの小さな札 */
.lhero { position: relative; overflow: hidden; margin: -16px -16px 0; padding: 16px 20px 18px; background: var(--hero); color: var(--white); }
.lhero:after { content: ""; position: absolute; right: -70px; top: -100px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(232, 189, 138, .3), rgba(232, 189, 138, 0) 68%); pointer-events: none; }
.lhero > * { position: relative; z-index: 1; }
.lhero-row { display: flex; align-items: flex-end; margin-top: 6px; }
.lhero h2 { flex: 1 1 auto; min-width: 0; font-size: 24px; font-weight: 800; line-height: 1.3; }
.lhero-c { flex: none; margin-left: 10px; font-family: var(--serif); font-size: 15px; color: rgba(255, 255, 255, .7); white-space: nowrap; }
.lhero-c b { font-size: 28px; line-height: 1; color: var(--white); }
.lhero-s { margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--gold); }
.row-st { align-self: flex-start; margin-bottom: 3px; padding: 0 7px; border-radius: 9px; background: var(--plum); color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .12em; line-height: 1.7; white-space: nowrap; }
.row-link.is-done { background: transparent; }
.row-link.is-done .row-t { color: #5A4C50; }
.row-link.is-done .row-st { background: transparent; box-shadow: inset 0 0 0 1px var(--gold-d); color: var(--gold-d); }

/* 背の低い画面（iPhone SE など）：上の濃い地を低くして、「きょう」の札が下のボタンにかくれないようにする */
@media (max-height: 640px) {
  .jhero:not(.jhero-w) { padding-bottom: 14px; }
  .jhero:not(.jhero-w) > .cap { display: none; }
  .jhero:not(.jhero-w) .jh-stage { margin-top: 0; }
  .jhero:not(.jhero-w) .jh-n { font-size: 46px; }
  .jhero:not(.jhero-w) .jh-of { font-size: 21px; }
  .jhero:not(.jhero-w) .jh-t { margin-top: 3px; font-size: 16px; }
  .jhero:not(.jhero-w) .jrail { margin-top: 8px; }
  .jhero:not(.jhero-w) .jstats { margin-top: 10px; padding-top: 8px; }
  .jhero:not(.jhero-w) .jstat-n { font-size: 22px; }
  .jhero:not(.jhero-w) .jstat-l { margin-top: 1px; }
}
@media (max-width: 350px) {
  .today-t { font-size: 16px; }
  .wk-dot { width: 18px; height: 18px; }
  .wk-l2 .wk-dot { width: 26px; height: 26px; }
  .kb { font-size: 20px; padding: 6px 10px; }
  .strip-t { font-size: 16px; }
  .mile { width: 42px; height: 42px; }
  .vs-t.is-2 b { font-size: 46px; }
  .cue-mic { margin-right: 10px; }
  .step-l { font-size: 9.5px; letter-spacing: -.01em; }
  .jh-th { width: 24px; height: 24px; margin-left: -8px; }
  .jh-count { margin-left: 8px; letter-spacing: .1em; }
  .fin-t { font-size: 17px; }
  .fin-seal { width: 46px; height: 46px; margin-right: 12px; }
}
@media (min-width: 600px) {
  .main { padding: 24px 24px 48px; }
  .en { font-size: 23px; }
  .en-m { font-size: 21px; }
  .step-l { font-size: 13px; }
  .pick-t { font-size: 20px; }
  .start-h { font-size: 22px; }
}
/* ---------- 動き・手ごたえ ----------
   動きを減らす設定（prefers-reduced-motion: reduce）の人には、下のかたまりごと効かない。 */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
@media (prefers-reduced-motion: no-preference) {
  /* 画面の切りかえ：中身が、上から順にすっと入る（画面を移った直後の1回だけ） */
  .main.is-enter > * { animation: rise .42s cubic-bezier(.2, .7, .2, 1) both; }
  .main.is-enter > *:nth-child(2) { animation-delay: .05s; }
  .main.is-enter > *:nth-child(3) { animation-delay: .1s; }
  .main.is-enter > *:nth-child(4) { animation-delay: .15s; }
  .main.is-enter > *:nth-child(5) { animation-delay: .2s; }
  .main.is-enter > *:nth-child(n+6) { animation-delay: .25s; }
  .main.is-enter > .jhero, .main.is-enter > .shero { animation-name: fade; }
  /* 地図：道が、進んだ分だけ上から色づく（1ステージずつ順に。遅れは home.js が入れる） */
  .main.is-enter .st-fill { animation: grow .26s linear both; }
  .main.is-enter .st.is-now > .st-node { animation: pop .5s .35s cubic-bezier(.3, 1.5, .5, 1) both, pulse 2.6s 1s ease-out infinite; }
  /* いまここの点：やわらかく光る */
  .st.is-now > .st-node { animation: pulse 2.6s ease-out infinite; }
  .jr-now { animation: halo 2.6s ease-out infinite; }
  .jr-pop { animation: pop .6s 1.25s cubic-bezier(.3, 1.6, .5, 1) both; }
  /* ミッション完了のカード：すっと入る → 金の輪の印が入る → このミッションの点が光る */
  .fin { animation: rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  .fin-seal { animation: pop .55s .18s cubic-bezier(.3, 1.6, .5, 1) both; }
  .fin-seal .ic path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s .5s ease-out forwards; }
  .fin-pip.is-me.is-on { animation: pop .5s .85s cubic-bezier(.3, 1.8, .5, 1) both; }
  .plus { animation: plus 1.3s ease-out both; }
  .done-msg { animation: rise .4s cubic-bezier(.2, .7, .2, 1) both; }
  .done-msg .ic { animation: pop .5s .12s cubic-bezier(.3, 1.6, .5, 1) both; }
  /* ミッションに印が入る */
  .ms.is-fresh { animation: glow 1.3s .75s ease-out both; }
  .ms.is-fresh .ms-mark { animation: pop .55s .7s cubic-bezier(.3, 1.6, .5, 1) both; }
  .ms.is-fresh .ms-mark .ic path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s 1s ease-out forwards; }
  /* ステージクリア：金の輪がひと回りして、印が入る */
  .seal-ring { stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 60px 60px; animation: draw 1s .15s cubic-bezier(.4, 0, .2, 1) forwards; }
  .seal-check { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .45s .95s ease-out forwards; }
  .spk i { animation: spark .9s 1.3s cubic-bezier(.15, .7, .3, 1) both; }
  .spk:nth-child(odd) i { animation-delay: 1.38s; }
  .main.is-clear .clear-h { animation: rise .6s .5s cubic-bezier(.2, .7, .2, 1) both; }
  .main.is-clear .clear-t { animation: rise .6s .65s cubic-bezier(.2, .7, .2, 1) both; }
  .main.is-clear .clear-can { animation: rise .6s .85s cubic-bezier(.2, .7, .2, 1) both; }
  .main.is-clear .jstats { animation: rise .6s 1s cubic-bezier(.2, .7, .2, 1) both; }
  /* 押した手ごたえ */
  .btn, .chip, .pick, .row-link, .ms, .st-row, .st-card, .step, .pt, .chk, .pg, .choice { transition: transform .09s ease, box-shadow .15s ease, border-color .15s ease, background-color .15s ease; }
  .btn:active, .chip:active, .pick:active, .row-link:active, .ms:active, .st-row:active, .pt:active, .chk:active, .pg:active { transform: scale(.975); }
  .btn[disabled]:active { transform: none; }
  .flow-bar i, .meter-fill { transition: width .4s ease; }

  /* ---- 毎日の仕組み ---- */
  /* きょうの1つ の印：ぽんと入って、チェックが引かれる（画面を開いたとき・完了のカード） */
  .main.is-enter .one-seal.is-done, .fin-one .one-seal { animation: pop .5s .35s cubic-bezier(.3, 1.6, .5, 1) both; }
  .main.is-enter .one-seal.is-done .ic path, .fin-one .one-seal .ic path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw .4s .65s ease-out forwards; }
  .fin-one .one-seal { animation-delay: 1.05s; }
  .fin-one .one-seal .ic path { animation-delay: 1.35s; }
  /* 完了のカード：下の段が順に入る → 週の帯の「きょう」の点に印が入る → 節目 */
  .fin-day { animation: rise .45s .95s cubic-bezier(.2, .7, .2, 1) both; }
  .fin-foot { animation: rise .45s 1.15s cubic-bezier(.2, .7, .2, 1) both; }
  .fin:not(.is-first) .fin-foot { animation-delay: .75s; }
  .wk-d.is-pop .wk-dot { animation: pop .55s 1.55s cubic-bezier(.3, 1.7, .5, 1) both; }
  .fin-mile { animation: pop .5s 1.6s cubic-bezier(.3, 1.5, .5, 1) both; }
  /* 声の棒：音が流れているあいだ、4本が上下する */
  .is-sounding .vb i { animation: vb .5s ease-in-out infinite alternate; }
  .is-sounding .vb i:nth-child(2) { animation-delay: -.18s; }
  .is-sounding .vb i:nth-child(3) { animation-delay: -.36s; }
  .is-sounding .vb i:nth-child(4) { animation-delay: -.09s; }
  .btn.is-playing:before { animation: blink .7s ease-in-out infinite; }
  /* 絵はがき：場面の絵が、金のわくのカードになって入ってくる（ステージクリア） */
  .pc-big { animation: pcin .8s 1.2s cubic-bezier(.2, .8, .2, 1) both; }
  .clear-pc-t { animation: fade .5s 1.9s ease-out both; }
  .main.is-clear .clear-can { animation-delay: 1.7s; }
  .main.is-clear .jstats { animation-delay: 1.85s; }
  /* 道の終わりの光 */
  .goal-ray { animation: ray 3.4s ease-in-out infinite; }

  /* ---- 練習画面の作りこみ ---- */
  /* 画面の中の切りかえ：ふわっと（190ms） */
  .main.is-swap > * { animation: swapin .19s ease-out both; }
  .main.is-swap > .steps { animation: none; }
  /* ステップの道：いまの点が、ゆっくり光る。進んだときは、線がのびて、点が ぽんと入る。 */
  .step.is-now .step-n { animation: pulse 2.6s ease-out infinite; }
  .steps.is-adv .step.is-now .step-n { animation: pop .45s .12s cubic-bezier(.3, 1.6, .5, 1) both, pulse 2.6s .7s ease-out infinite; }
  .steps.is-adv .step.is-now:before { transform-origin: left center; animation: growx .3s ease-out both; }
  /* あなたの番：マイクの輪が、ゆっくり光る。まねして言う所では、外の輪が待ち時間で減っていく。 */
  .cue-mic { animation: pulse 2.6s ease-out infinite; }
  .cue.is-wait .cue-mic { animation: none; }
  .cue-ring circle { animation: ringdown 2s linear forwards; animation-duration: inherit; }
  /* 吹き出しが、下から入ってくる。正しい時＝印がポン／ちがう時＝小さくゆれて、理由が出る。 */
  .talk.is-in, .line.is-in > .talk { animation: msgin .34s cubic-bezier(.2, .7, .2, 1) both; }
  .talk.is-in .okmark { animation: pop .5s .24s cubic-bezier(.3, 1.7, .5, 1) both; }
  .choice.is-in.is-wrong { animation: shake .36s ease-in-out both; }
  .choice.is-in .why { animation: rise .3s .22s ease-out both; }
  /* 型のブロック：1つずつ入る。入れかえ：入れかわる1か所が、上から回って入る。 */
  .main.is-enter .kb, .main.is-swap .kb { animation: pop .4s .1s cubic-bezier(.3, 1.4, .5, 1) both; }
  .main.is-enter .kb:nth-child(2), .main.is-swap .kb:nth-child(2) { animation-delay: .2s; }
  .main.is-enter .kb:nth-child(n+3), .main.is-swap .kb:nth-child(n+3) { animation-delay: .3s; }
  .talk.is-in .swap-slot { animation: flipin .55s .3s cubic-bezier(.3, 1.4, .5, 1) both; }
  /* 1回目と2回目：棒がのびる → 伸びた所に +1 */
  .vs-bar i { animation: growx .6s .2s cubic-bezier(.2, .7, .2, 1) both; }
  .vs-bar.is-2 i { animation-delay: .5s; }
  .vs-up, .vs-d { animation: pop .5s 1.1s cubic-bezier(.3, 1.6, .5, 1) both; }
  .pt, .md, .sum-bar i { transition: background-color .15s ease, border-color .15s ease, transform .09s ease; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes pop { 0% { transform: scale(.3); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200, 16, 46, .38); } 70% { box-shadow: 0 0 0 12px rgba(200, 16, 46, 0); } 100% { box-shadow: 0 0 0 0 rgba(200, 16, 46, 0); } }
@keyframes spark { 0% { opacity: 0; transform: translateY(-50px) scale(.4); } 25% { opacity: 1; } 100% { opacity: 0; transform: translateY(-92px) scale(1); } }
@keyframes halo { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .5); } 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@keyframes plus { 0% { opacity: 0; transform: translate(-50%, 10px); } 16% { opacity: 1; transform: translate(-50%, 0); } 72% { opacity: 1; transform: translate(-50%, -4px); } 100% { opacity: 0; transform: translate(-50%, -18px); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(46, 125, 79, .45); } 100% { box-shadow: 0 0 0 14px rgba(46, 125, 79, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes swapin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes msgin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-5px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-3px); } 88% { transform: translateX(2px); } }
@keyframes flipin { 0% { opacity: 0; transform: translateY(-12px) rotateX(75deg); } 100% { opacity: 1; transform: translateY(0) rotateX(0); } }
@keyframes vb { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes ringdown { to { stroke-dashoffset: 1; } }
@keyframes growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes pcin { 0% { opacity: 0; transform: translateY(46px) rotate(7deg) scale(.9); } 100% { opacity: 1; transform: translateY(0) rotate(-2.5deg) scale(1); } }
@keyframes ray { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.12); } }
