/* ==========================================================================
   クチリピ LP v2 — style.css
   配色：朱赤 #A63828 / 暖白 #FFF8EF / 墨 #24201F / 杏 #FFD09A（仮採用）
   M3の色ロール・文字の役割・状態レイヤー・フォーカスと、HIGのアクセシビリティ
   （文字拡大・色だけに頼らない・動きを止められる）を静的CSSに翻訳したもの。
   M3公式コンポーネントの実装ではありません。
   ========================================================================== */

/* ---------- 1. Tokens (light) ---------- */
:root {
  color-scheme: light;
  --red: #A63828;
  --paper: #FFF8EF;
  --ink: #24201F;
  --apricot: #FFD09A;

  --md-primary: var(--red);
  --md-on-primary: var(--paper);
  --md-surface: var(--paper);
  --md-surface-2: #F6E7D6;
  --md-on-surface: var(--ink);
  --md-on-surface-variant: #5B504B;
  --md-outline: #7C6F68;
  --md-outline-variant: #E6D5C3;
  --md-inverse-surface: var(--ink);
  --md-inverse-on-surface: var(--paper);

  --plane-ink-bg: var(--ink);
  --plane-ink-on: var(--paper);
  --plane-red-bg: var(--red);
  --plane-red-on: var(--paper);
  --plane-apricot-bg: var(--apricot);
  --plane-apricot-on: var(--ink);

  --focus: var(--red);
  --focus-on-color: var(--apricot);

  --elev-1: 0 1px 2px rgb(36 32 31 / .12), 0 1px 3px 1px rgb(36 32 31 / .06);
  --elev-2: 0 3px 8px rgb(36 32 31 / .12), 0 12px 28px rgb(36 32 31 / .10);
  --elev-3: 0 6px 14px rgb(36 32 31 / .16), 0 24px 56px rgb(36 32 31 / .18);

  /* Type roles */
  --font-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Noto Sans CJK JP", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-latin: "Helvetica Neue", "Arial Black", Arial, var(--font-sans);
  --font-en: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  --type-display-xl: clamp(2.5rem, 1.5rem + 3.8vw, 4.5rem);
  --type-display-l: clamp(2rem, 1.3rem + 2.8vw, 3.5rem);
  --type-headline: clamp(1.375rem, 1.15rem + .9vw, 1.875rem);
  --type-title-l: 1.375rem;
  --type-title-m: 1.0625rem;
  --type-body-l: 1.0625rem;
  --type-body-m: .9375rem;
  --type-label-l: 1rem;
  --type-label-m: .8125rem;
  --lh-body: 1.85;
  --lh-display: 1.14;

  --shape-s: 8px;
  --shape-m: 14px;
  --shape-l: 24px;
  --shape-full: 999px;

  --gutter: clamp(1rem, 4vw, 3rem);
  --wrap: 78rem;

  --ease-emph: cubic-bezier(.2, 0, 0, 1);
  --ease-decel: cubic-bezier(.05, .7, .1, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- 2. Tokens (dark: system or manual) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --md-primary: #FF9E86;
    --md-on-primary: var(--ink);
    --md-surface: #1A1615;
    --md-surface-2: #231E1C;
    --md-on-surface: #F7EDE2;
    --md-on-surface-variant: #D2C3B8;
    --md-outline: #A29289;
    --md-outline-variant: #3D3431;
    --plane-ink-bg: #2E2623;
    --plane-ink-on: #F7EDE2;
    --plane-red-bg: #7E2A1E;
    --plane-red-on: #FFF1E6;
    --plane-apricot-bg: #3A2C20;
    --plane-apricot-on: #FFE6C7;
    --focus: #FFD09A;
    --elev-1: 0 1px 2px rgb(0 0 0 / .5);
    --elev-2: 0 3px 8px rgb(0 0 0 / .5), 0 12px 28px rgb(0 0 0 / .35);
    --elev-3: 0 6px 14px rgb(0 0 0 / .55), 0 24px 56px rgb(0 0 0 / .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --md-primary: #FF9E86;
  --md-on-primary: var(--ink);
  --md-surface: #1A1615;
  --md-surface-2: #231E1C;
  --md-on-surface: #F7EDE2;
  --md-on-surface-variant: #D2C3B8;
  --md-outline: #A29289;
  --md-outline-variant: #3D3431;
  --plane-ink-bg: #2E2623;
  --plane-ink-on: #F7EDE2;
  --plane-red-bg: #7E2A1E;
  --plane-red-on: #FFF1E6;
  --plane-apricot-bg: #3A2C20;
  --plane-apricot-on: #FFE6C7;
  --focus: #FFD09A;
  --elev-1: 0 1px 2px rgb(0 0 0 / .5);
  --elev-2: 0 3px 8px rgb(0 0 0 / .5), 0 12px 28px rgb(0 0 0 / .35);
  --elev-3: 0 6px 14px rgb(0 0 0 / .55), 0 24px 56px rgb(0 0 0 / .45);
}

/* ---------- 3. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--md-surface);
  color: var(--md-on-surface);
  font-family: var(--font-sans);
  font-size: var(--type-body-l);
  line-height: var(--lh-body);
  line-break: strict;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, .btn, .scene-h, .week-title, .end-title, .fp-big, .h-display {
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.wrap { width: min(100% - (var(--gutter) * 2), var(--wrap)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.plane-ink :focus-visible, .plane-red :focus-visible, .site-footer :focus-visible, .band :focus-visible { outline-color: var(--focus-on-color); }
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: .75rem 1.25rem; border-radius: var(--shape-s); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 1rem; }
section[id], div[id] { scroll-margin-top: 1rem; }

/* ---------- 4. Buttons (M3 common buttons + state layer) ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3rem; padding: .75rem 1.5rem;
  border: 2px solid transparent; border-radius: var(--shape-full);
  font-size: var(--type-label-l); font-weight: 800; line-height: 1.35; letter-spacing: .02em;
  text-align: center; text-decoration: none; cursor: pointer; overflow: hidden;
  transition: transform 160ms var(--ease-emph), background-color 200ms, color 200ms, border-color 200ms;
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: currentColor; opacity: 0; transition: opacity 150ms;
}
.btn:hover::before { opacity: .08; }
.btn:focus-visible::before { opacity: .1; }
.btn:active::before { opacity: .14; }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 3.5rem; padding-inline: 1.75rem; font-size: 1.0625rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--md-primary); color: var(--md-on-primary); }
.btn-outline { border-color: currentColor; background: transparent; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-paper { background: var(--paper); color: var(--red); }

/* ---------- 5. Header ---------- */
.site-header { background: var(--md-surface); color: var(--md-on-surface); position: relative; z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1.5rem; padding-block: .6rem; }
.brand { display: inline-flex; align-items: center; min-height: 3rem; }
.brand-logo { width: auto; height: 2.25rem; }
.page-nav { flex: 1 1 auto; min-width: 0; }
.page-nav ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem; }
.page-nav a {
  display: inline-flex; align-items: center; min-height: 3rem; padding: .25rem .85rem;
  border-radius: var(--shape-full); font-size: .9375rem; font-weight: 700; text-decoration: none; white-space: nowrap;
}
.page-nav a:hover { text-decoration: underline; text-underline-offset: .3em; }
.header-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem .75rem; }
.theme-control { display: flex; align-items: center; gap: .4rem; font-size: var(--type-label-m); font-weight: 800; }
.theme-control select {
  min-height: 3rem; padding: .25rem 2rem .25rem .85rem;
  border: 2px solid var(--md-outline); border-radius: var(--shape-s);
  background: transparent; color: inherit; font-size: .9375rem; font-weight: 700;
  appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1rem center, right .7rem center; background-size: .3rem .3rem; background-repeat: no-repeat;
}
.theme-control select option { color: #24201F; background: #FFF8EF; }
.header-login {
  display: inline-flex; align-items: center; min-height: 3rem; padding: .25rem 1.1rem;
  border: 2px solid transparent; border-radius: var(--shape-full);
  background: var(--md-primary); color: var(--md-on-primary);
  font-size: .9375rem; font-weight: 800; text-decoration: none; white-space: nowrap;
}
@media (max-width: 47.9375em) {
  .page-nav { display: none; }
}
@media (max-width: 29.9375em) {
  .theme-control label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .theme-control select { padding-inline: .6rem 1.8rem; }
  .header-login { padding-inline: .8rem; }
  .brand-logo { height: 2rem; }
}

/* ==========================================================================
   6. SCENE STAGE
   ========================================================================== */
.stage {
  /* scene 0 (light): paper */
  --sc-bg: #FFF8EF; --sc-on: #24201F; --sc-muted: #5B504B; --sc-word: #F5E4CF;
  --g-frame: #A63828; --g-open: #24201F; --g-track: #FFD09A; --g-hi: #A63828;
  --g-card: #FFF8EF; --g-card-line: #24201F; --g-miss: #A63828; --g-bar: #F2D9BD; --g-bar-hi: #A63828;
  --cta-bg: #A63828; --cta-on: #FFF8EF;
  --chip-bg: #FFF8EF; --chip-on: #24201F; --chip-bd: #24201F;
  --tab-sel-bg: #24201F; --tab-sel-on: #FFF8EF;
  --st-focus: #A63828;

  position: relative;
  overflow: clip;
  background: var(--sc-bg);
  color: var(--sc-on);
  transition: background-color 700ms var(--ease-emph), color 500ms;
}
.stage[data-scene="1"], .stage[data-scene="5"] {
  --sc-bg: #24201F; --sc-on: #FFF8EF; --sc-muted: #E3D6CA; --sc-word: #2F2826;
  --g-frame: #FFD09A; --g-open: #A63828; --g-track: #3E3431; --g-hi: #FFD09A;
  --cta-bg: #FFD09A; --cta-on: #24201F;
  --chip-bg: #FFF8EF; --chip-on: #24201F; --chip-bd: #FFF8EF;
  --tab-sel-bg: #FFD09A; --tab-sel-on: #24201F;
  --st-focus: #FFD09A;
}
.stage[data-scene="5"] { --g-frame: #A63828; --g-open: #120F0E; }
.stage[data-scene="2"] {
  --sc-bg: #FFD09A; --sc-on: #24201F; --sc-muted: #4E433E; --sc-word: #F6C282;
  --g-frame: #A63828; --g-open: #24201F; --g-track: #F0B877; --g-hi: #A63828;
  --g-card: #FFF8EF; --g-card-line: #24201F; --g-miss: #A63828;
  --cta-bg: #A63828; --cta-on: #FFF8EF; --tab-sel-bg: #24201F; --tab-sel-on: #FFD09A;
}
.stage[data-scene="3"] {
  --sc-bg: #A63828; --sc-on: #FFF8EF; --sc-muted: #FFE6DA; --sc-word: #B34637;
  --g-frame: #FFD09A; --g-open: #24201F; --g-track: #8E2E21; --g-hi: #FFD09A;
  --g-bar: #C05A4B; --g-bar-hi: #FFD09A;
  --cta-bg: #FFF8EF; --cta-on: #A63828; --chip-bd: #FFF8EF;
  --tab-sel-bg: #FFF8EF; --tab-sel-on: #A63828; --st-focus: #FFD09A;
}
.stage[data-scene="4"] {
  --sc-bg: #F6E7D6; --sc-on: #24201F; --sc-muted: #5B504B; --sc-word: #EDD6BD;
  --g-frame: #A63828; --g-open: #24201F; --g-track: #EAD2B8; --g-hi: #A63828;
}
/* dark theme scene tints */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage[data-scene="0"] { --sc-bg: #1A1615; --sc-on: #F7EDE2; --sc-muted: #D2C3B8; --sc-word: #251F1D; --g-frame: #E0604A; --g-open: #0E0B0A; --g-track: #3A2C20; --g-hi: #FFD09A; --cta-bg: #FFD09A; --cta-on: #24201F; --tab-sel-bg: #F7EDE2; --tab-sel-on: #1A1615; --chip-bd: #F7EDE2; --st-focus: #FFD09A; }
  :root:not([data-theme="light"]) .stage[data-scene="2"] { --sc-bg: #3A2C20; --sc-on: #FFE6C7; --sc-muted: #F2D3AE; --sc-word: #45352A; --g-track: #4E3B2A; --cta-bg: #FFD09A; --cta-on: #24201F; --tab-sel-bg: #FFE6C7; --tab-sel-on: #3A2C20; --st-focus: #FFD09A; }
  :root:not([data-theme="light"]) .stage[data-scene="3"] { --sc-bg: #7E2A1E; --sc-word: #8B3326; --g-bar: #9C4435; }
  :root:not([data-theme="light"]) .stage[data-scene="4"] { --sc-bg: #231E1C; --sc-on: #F7EDE2; --sc-muted: #D2C3B8; --sc-word: #2C2523; --g-frame: #E0604A; --g-open: #0E0B0A; --g-track: #3A302C; --cta-bg: #FFD09A; --cta-on: #24201F; --tab-sel-bg: #F7EDE2; --tab-sel-on: #231E1C; --chip-bd: #F7EDE2; --st-focus: #FFD09A; }
}
:root[data-theme="dark"] .stage[data-scene="0"] { --sc-bg: #1A1615; --sc-on: #F7EDE2; --sc-muted: #D2C3B8; --sc-word: #251F1D; --g-frame: #E0604A; --g-open: #0E0B0A; --g-track: #3A2C20; --g-hi: #FFD09A; --cta-bg: #FFD09A; --cta-on: #24201F; --tab-sel-bg: #F7EDE2; --tab-sel-on: #1A1615; --chip-bd: #F7EDE2; --st-focus: #FFD09A; }
:root[data-theme="dark"] .stage[data-scene="2"] { --sc-bg: #3A2C20; --sc-on: #FFE6C7; --sc-muted: #F2D3AE; --sc-word: #45352A; --g-track: #4E3B2A; --cta-bg: #FFD09A; --cta-on: #24201F; --tab-sel-bg: #FFE6C7; --tab-sel-on: #3A2C20; --st-focus: #FFD09A; }
:root[data-theme="dark"] .stage[data-scene="3"] { --sc-bg: #7E2A1E; --sc-word: #8B3326; --g-bar: #9C4435; }
:root[data-theme="dark"] .stage[data-scene="4"] { --sc-bg: #231E1C; --sc-on: #F7EDE2; --sc-muted: #D2C3B8; --sc-word: #2C2523; --g-frame: #E0604A; --g-open: #0E0B0A; --g-track: #3A302C; --cta-bg: #FFD09A; --cta-on: #24201F; --tab-sel-bg: #F7EDE2; --tab-sel-on: #231E1C; --chip-bd: #F7EDE2; --st-focus: #FFD09A; }

/* Keep the mouth opening legible in every dark-theme scene. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage[data-scene] { --g-open: #FFF8EF; }
}
:root[data-theme="dark"] .stage[data-scene] { --g-open: #FFF8EF; }

.stage :focus-visible { outline-color: var(--st-focus); }

/* giant background word */
.stage-bgword {
  position: absolute;
  left: -.04em; bottom: -.16em;
  font-family: var(--font-latin);
  font-size: clamp(7rem, 3rem + 22vw, 24rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--sc-word);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  transition: color 700ms var(--ease-emph);
}
.stage-bgword span { display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .stage-bgword.is-swap span { animation: word-in 900ms var(--ease-decel) both; }
}
@keyframes word-in { from { transform: translateY(40%) skewX(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }

.stage-inner {
  position: relative;
  width: min(100% - (var(--gutter) * 2), 90rem);
  margin-inline: auto;
  min-height: min(calc(100svh - 4.5rem), 58rem);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;           /* 背の高い本文に引きずられてグラフィックが下がらないよう、両列とも上端そろえ */
  gap: 1rem clamp(1.5rem, 1rem + 3vw, 4rem);
  padding-block: clamp(1rem, .5rem + 2vw, 2.5rem) clamp(2rem, 1rem + 3vw, 3.5rem);
}

/* --- visual --- */
.visual {
  position: relative;
  width: 100%;
  max-width: min(100%, calc(100svh - 10rem));   /* 1画面目にグラフィック全体が収まる大きさ */
  aspect-ratio: 1;
  align-self: start;
  justify-self: center;
  touch-action: pan-y;
  cursor: grab;
}
.visual:active { cursor: grabbing; }
.visual-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.visual-svg g { transform-box: view-box; transform-origin: 300px 300px; }
.visual-svg g, .visual-svg rect, .visual-svg circle, .visual-svg path {
  transition: transform 900ms var(--ease-emph), opacity 500ms var(--ease-emph), fill 600ms, stroke 600ms;
}

/* loop */
.seg { fill: none; stroke: var(--g-track); stroke-width: 26; stroke-linecap: round; }
.seg.is-filled { stroke: var(--g-hi); }
.loop-arrow { fill: var(--g-hi); }
.loop-spin { transition: transform 1100ms var(--ease-emph) !important; }

/* kuchi */
.kuchi-frame { fill: none; stroke: var(--g-frame); stroke-width: 40; }
.kuchi-open { fill: var(--g-open); }
.kuchi-open-wrap { transform-origin: 300px 300px; transition: transform 140ms var(--ease-emph) !important; }
.kuchi-tail { fill: var(--g-frame); opacity: 0; }
.g-kuchi { transform: translate(var(--px, 0px), var(--py, 0px)); }

/* coach ring */
.coach-track { fill: none; stroke: var(--g-track); stroke-width: 18; }
.coach-draw { fill: none; stroke: var(--g-hi); stroke-width: 18; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 300px 300px; transform-box: view-box; }
.node { fill: var(--sc-bg); stroke: var(--g-hi); stroke-width: 6; }

/* quiz cards */
.qc { fill: var(--g-card); stroke: var(--g-card-line); stroke-width: 4; }
.qc.miss { fill: var(--g-miss); stroke: var(--g-miss); }
.bin { fill: none; stroke: var(--sc-on); stroke-width: 5; stroke-dasharray: 14 10; }
.g-quiz rect { transform-box: fill-box; transform-origin: center; }

/* listening ribbon */
.ln { fill: var(--g-bar); }
.ln.is-lit { fill: var(--g-bar-hi); }

/* shadowing */
.echo { fill: none; stroke: var(--g-hi); stroke-width: 10; stroke-linecap: round; }
.follow-frame { fill: none; stroke: var(--sc-on); stroke-width: 18; stroke-dasharray: 22 12; }
.follow-open { fill: var(--sc-on); }
.follow { transform-origin: 455px 300px !important; }
.follow-open { transform-box: fill-box; transform-origin: center; }

/* default: hide all scene groups, then reveal per scene */
.g-loop, .g-coach, .g-quiz, .g-listen, .g-shadow { opacity: 0; }
.g-loop { transform: scale(.85) rotate(-20deg); }
.g-coach { transform: scale(1.25); }
.g-quiz { transform: translateY(40px); }
.g-listen { transform: scale(1.7); }
.g-shadow { transform: translateX(80px); }

.stage[data-scene="0"] .g-loop { opacity: 1; transform: none; }
.stage[data-scene="0"] .g-kuchi { transform: translate(var(--px, 0px), var(--py, 0px)) scale(1); }

.stage[data-scene="1"] .g-coach { opacity: 1; transform: none; }
.stage[data-scene="1"] .g-kuchi { transform: translate(200px, -190px) scale(.34); }
.stage[data-scene="1"] .kuchi-tail { opacity: 1; }
.stage[data-scene="1"] .coach-draw { stroke-dashoffset: 0; transition: stroke-dashoffset 1400ms var(--ease-emph) 200ms; }

.stage[data-scene="2"] .g-quiz { opacity: 1; transform: none; }
.stage[data-scene="2"] .g-kuchi { opacity: 0; transform: translate(0, -240px) scale(.2); }

.stage[data-scene="3"] .g-listen { opacity: 1; transform: none; }
.stage[data-scene="3"] .g-kuchi { opacity: 0; transform: scale(3.2); }

.stage[data-scene="4"] .g-kuchi { transform: translate(-200px, 175px) scale(.4); }
.stage[data-scene="4"] .g-shadow { opacity: 1; transform: translate(10px, 150px) scale(.6); }

.stage[data-scene="5"] .g-kuchi { transform: scale(1.72); }
.stage[data-scene="5"] .kuchi-open-wrap { transform: scale(1.06, 1.12) !important; }
.stage[data-scene="5"] .ov-circle { opacity: 1; transform: none; transition-delay: 250ms; }
.stage[data-scene="5"] .ov-ph { opacity: 1; }
.stage[data-scene="5"] .ov-ph li { transform: translate(-50%, -50%) scale(1); }
.stage[data-scene="5"] .ov-ph li:nth-child(2) { transition-delay: 120ms; }
.stage[data-scene="5"] .ov-ph li:nth-child(3) { transition-delay: 240ms; }
.stage[data-scene="5"] .ov-ph li:nth-child(4) { transition-delay: 360ms; }

/* HTML overlays inside the visual */
.words, .ov { position: absolute; inset: 0; pointer-events: none; }
.words li {
  position: absolute; left: 50%; top: 50%;
  padding: .3em .7em;
  border: 2px solid var(--chip-bd);
  border-radius: var(--shape-full);
  background: var(--chip-bg); color: var(--chip-on);
  font-family: var(--font-en); font-size: clamp(.95rem, .7rem + 1.1vw, 1.5rem); font-weight: 600;
  line-height: 1.2; white-space: nowrap;
  transform: translate(-50%, -50%) scale(.2);
  opacity: 0;
  transition: transform 520ms var(--ease-spring), opacity 260ms;
}
.words li.is-out { opacity: 1; transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) rotate(var(--r, 0deg)); }
.words li.is-gone { opacity: 0; transform: translate(calc(-50% + var(--x) * 1.3), calc(-50% + var(--y) * 1.3)) scale(.6); }
.stage:not([data-scene="0"]) .words li { opacity: 0 !important; }

.ov { opacity: 0; transition: opacity 400ms var(--ease-emph); }
.ov-circle {
  inset: 24%;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--apricot);
  background: #0E0B0A;
  transform: scale(.6);
  transition: opacity 500ms var(--ease-emph), transform 900ms var(--ease-spring);
}
.ov-circle img { width: 100%; height: auto; object-fit: cover; transform: translateY(-6%); }
.ov-ph li {
  position: absolute; transform: translate(-50%, -50%) scale(.3);
  display: grid; place-items: center;
  width: 3.4em; height: 3.4em; border-radius: 50%;
  background: var(--apricot); color: var(--ink);
  font-family: var(--font-en); font-size: clamp(.95rem, .6rem + 1.2vw, 1.5rem); font-weight: 700; font-style: italic;
  transition: transform 700ms var(--ease-spring);
}
.ov-ph li:nth-child(1) { left: 16%; top: 22%; }
.ov-ph li:nth-child(2) { left: 86%; top: 30%; }
.ov-ph li:nth-child(3) { left: 84%; top: 76%; }
.ov-ph li:nth-child(4) { left: 18%; top: 78%; }

.stage.settled[data-scene="2"] .qc4 { transform: translate(-60px, 250px) rotate(-14deg) scale(.55); }
@keyframes card-in { from { transform: translateX(-420px) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes card-drop { to { transform: var(--drop); } }
.qc2 { --drop: translate(140px, 250px) rotate(18deg) scale(.55); }
.qc4 { --drop: translate(-60px, 250px) rotate(-14deg) scale(.55); }
@keyframes talk { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(1); } }
@keyframes echo { from { opacity: 1; transform: translateX(0); } to { opacity: 0; transform: translateX(40px); } }

/* --- copy column --- */
.copy { position: relative; display: grid; gap: 1.25rem; align-content: start; }
.scene-tabs {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-inline: -.25rem; padding: .25rem;
}
.scene-tabs::-webkit-scrollbar { display: none; }
.scene-tabs [role="tab"] {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: .35rem;
  min-height: 2.75rem; padding: .35rem .9rem;
  border: 0; border-radius: var(--shape-full);
  background: transparent; color: var(--sc-on);
  font-size: .875rem; font-weight: 800; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--sc-on) 45%, transparent);
  transition: background-color 250ms, color 250ms, box-shadow 250ms;
}
.scene-tabs [role="tab"][aria-selected="true"] { background: var(--tab-sel-bg); color: var(--tab-sel-on); box-shadow: none; }
.tab-num { font-family: var(--font-en); font-size: .8125rem; opacity: .85; }

.panel { display: grid; gap: 1rem; }
/* 表示していない場面（JSが hidden を付ける）は、冒頭の [hidden] { display:none !important } で消える。
 * どの画面幅でも、自動巡回中でも、高さを確保しない。ここを上書きしないこと。 */
.hero-title { display: grid; gap: .5rem; }
.hero-kicker { font-size: var(--type-title-m); font-weight: 900; letter-spacing: .04em; line-height: 1.4; color: var(--sc-on); }
.hero-main, .scene-h {
  font-size: var(--type-display-xl);
  font-weight: 900;
  line-height: var(--lh-display);
  letter-spacing: -.02em;
}
.scene-h { font-size: var(--type-display-l); }
.lead { font-size: var(--type-title-m); font-weight: 700; line-height: 1.7; color: var(--sc-muted); max-width: 26em; }
.scene-link { color: var(--sc-on); font-weight: 900; text-underline-offset: .25em; text-decoration-thickness: .1em; display: inline-flex; align-items: center; min-height: 3rem; }
@media (prefers-reduced-motion: no-preference) {
  .panel.is-in > * { animation: panel-in 700ms var(--ease-decel) both; }
  .panel.is-in > *:nth-child(2) { animation-delay: 80ms; }
  .panel.is-in > *:nth-child(3) { animation-delay: 160ms; }
}
@keyframes panel-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* speak interaction (scene 0) */
.speak { display: grid; gap: .5rem; padding-top: .25rem; }
.speak-ja { font-size: var(--type-title-l); font-weight: 900; line-height: 1.45; }
.speak-en { font-family: var(--font-en); font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem); line-height: 1.3; min-height: 1.3em; overflow-wrap: normal; }
.speak-en.is-waiting { color: transparent; text-shadow: none; }
.speak-en.is-waiting::before { content: "· · ·"; color: var(--sc-muted); font-family: var(--font-en); letter-spacing: .2em; }
.speak-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .25rem; }
.btn-scene { background: var(--cta-bg); color: var(--cta-on); min-height: 3.25rem; }
.btn-scene .go-again { display: none; }
.speak.has-played .btn-scene .go-first { display: none; }
.speak.has-played .btn-scene .go-again { display: inline; }
.btn-text-scene { background: transparent; color: var(--sc-on); text-decoration: underline; text-underline-offset: .25em; padding-inline: .75rem; }
.rep { display: inline-flex; align-items: baseline; gap: .25rem; font-size: var(--type-label-m); font-weight: 800; color: var(--sc-muted); }
.rep b { font-family: var(--font-en); font-size: 1.75rem; color: var(--sc-on); line-height: 1; }
@media (prefers-reduced-motion: no-preference) {
  .rep b.bump { animation: bump 420ms var(--ease-spring); }
}
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
.rep b { display: inline-block; }
.speak-hint { font-size: var(--type-label-m); font-weight: 700; color: var(--sc-muted); }

/* scene controls */
.scene-ctrl { display: flex; align-items: center; gap: 1rem; }
.round {
  display: grid; place-items: center;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  border: 2px solid var(--sc-on); background: transparent; color: var(--sc-on);
  font-size: 1.375rem; font-weight: 900; cursor: pointer;
  transition: transform 200ms var(--ease-spring), background-color 200ms;
}
.round:hover { transform: scale(1.06); }
.round:active { transform: scale(.94); }
.round-go { background: var(--sc-on); color: var(--sc-bg); }
.scene-count { font-family: var(--font-en); font-size: 1rem; font-weight: 600; letter-spacing: .06em; }
.scene-count b { font-size: 2rem; }

.stage-cta { display: grid; gap: .6rem; justify-items: start; padding-top: .5rem; }
.btn-cta { background: var(--cta-bg); color: var(--cta-on); }
.price-line { display: flex; flex-wrap: wrap; gap: .1rem 1rem; font-size: var(--type-label-m); font-weight: 700; line-height: 1.6; color: var(--sc-muted); }

@media (max-width: 56.1875em) {
  .scene-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .stage-inner { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: .5rem; }
  .visual { width: min(100%, 30rem, 58svh); max-width: min(100%, 30rem, 58svh); }
  .stage-bgword { bottom: auto; top: 18%; font-size: clamp(6rem, 2rem + 26vw, 14rem); }
  .copy { gap: 1rem; }
  .stage-cta .btn { width: 100%; }
}

/* ---------- 7. Repeating band (pausable) ---------- */
.band { position: relative; background: var(--ink); color: var(--apricot); overflow: hidden; }
.band-track { display: flex; width: max-content; }
.band-row {
  display: flex; flex: 0 0 auto; gap: 2.5rem; padding: 1.1rem 1.25rem;
  font-size: clamp(1.5rem, 1rem + 2.4vw, 3.25rem); font-weight: 900; line-height: 1.2; white-space: nowrap;
}
.band-row span:nth-child(3n+2) { font-family: var(--font-en); font-style: italic; font-weight: 500; color: var(--paper); }
.band-row span:nth-child(3n) { color: #FF9E86; }
@media (prefers-reduced-motion: no-preference) {
  .band.is-running .band-track { animation: marquee 32s linear infinite; }
  .band.is-paused .band-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }
.band { padding-bottom: 3.25rem; }
.band-toggle {
  position: absolute; right: var(--gutter); bottom: .5rem;
  min-height: 2.75rem; padding: .25rem .9rem;
  border: 2px solid var(--apricot); border-radius: var(--shape-full);
  background: var(--ink); color: var(--apricot);
  font-size: var(--type-label-m); font-weight: 800; cursor: pointer;
}
.band-toggle .bt-play { display: none; }
.band-toggle[aria-pressed="true"] .bt-pause { display: none; }
.band-toggle[aria-pressed="true"] .bt-play { display: inline; }

/* ---------- 8. Planes (shared) ---------- */
.plane { padding-block: clamp(4rem, 3rem + 5vw, 8rem); }
.plane-paper { background: var(--md-surface); color: var(--md-on-surface); }
.plane-paper2 { background: var(--md-surface-2); color: var(--md-on-surface); }
.plane-ink { background: var(--plane-ink-bg); color: var(--plane-ink-on); }
.plane-red { background: var(--plane-red-bg); color: var(--plane-red-on); }
.plane-apricot { background: var(--plane-apricot-bg); color: var(--plane-apricot-on); }
.kicker { display: flex; align-items: baseline; gap: .6rem; font-size: var(--type-label-m); font-weight: 900; letter-spacing: .12em; color: var(--md-primary); }
.plane-red .kicker, .plane-ink .kicker { color: var(--apricot); }
.kicker-num { font-family: var(--font-en); font-size: 2.25rem; font-weight: 600; letter-spacing: 0; line-height: 1; }
.h-display { margin-top: .75rem; font-size: var(--type-display-l); font-weight: 900; line-height: var(--lh-display); letter-spacing: -.02em; }
.h-section { font-size: var(--type-headline); font-weight: 900; line-height: 1.35; }
.plane-lead { margin-top: 1rem; font-size: var(--type-title-m); font-weight: 700; color: var(--md-on-surface-variant); max-width: 28em; }

/* ---------- 9. Quiz (interactive) ---------- */
.quiz-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.quiz {
  position: relative;
  padding: clamp(1.25rem, 1rem + 1.5vw, 2.25rem);
  border-radius: var(--shape-l);
  background: var(--md-surface-2);
  box-shadow: var(--elev-2);
  display: grid; gap: 1.25rem;
}
.quiz-track { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.quiz > * { min-width: 0; }
.q-tokens { display: flex; flex-wrap: wrap; gap: .5rem; }
.q-token {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px;
  border: 2.5px solid var(--md-on-surface); font-family: var(--font-en); font-weight: 700; font-size: 1.125rem;
  transition: transform 500ms var(--ease-spring), background-color 300ms, color 300ms, opacity 300ms;
}
.q-token.is-now { background: var(--md-on-surface); color: var(--md-surface); transform: translateY(-4px); }
.q-token.is-ok { background: var(--md-primary); color: var(--md-on-primary); border-color: var(--md-primary); }
.q-token.is-ng { background: transparent; border-style: dashed; opacity: .55; }
.review-bin {
  position: relative;
  display: grid; justify-items: center; gap: .1rem;
  min-width: 6rem; padding: .5rem 1rem;
  border: 3px dashed var(--md-primary); border-radius: 18px;
  color: var(--md-primary); font-weight: 900;
}
.review-bin.is-hit { animation: bin-hit 500ms var(--ease-spring); }
@keyframes bin-hit { 40% { transform: scale(1.12) rotate(-3deg); } }
.bin-label { font-size: var(--type-label-m); letter-spacing: .1em; }
.bin-count b { font-family: var(--font-en); font-size: 1.75rem; line-height: 1; }
.fly {
  position: fixed; z-index: 60; pointer-events: none;
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 12px;
  background: var(--md-primary); color: var(--md-on-primary); font-family: var(--font-en); font-weight: 700;
  transition: transform 650ms var(--ease-emph), opacity 650ms;
}
.quiz-list { display: grid; }
.q { display: grid; gap: 1rem; }
.q-en { font-family: var(--font-en); font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.35; overflow-wrap: break-word; }
.q-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .6rem; }
.q-choice {
  min-height: 3.25rem; padding: .5rem 1rem;
  border: 2px solid var(--md-on-surface); border-radius: var(--shape-m);
  background: var(--md-surface); color: var(--md-on-surface);
  font-family: var(--font-en); font-size: 1.125rem; font-weight: 600; cursor: pointer;
  transition: transform 160ms var(--ease-emph), background-color 200ms, color 200ms;
}
.q-choice:hover { transform: translateY(-2px); }
.q-choice:active { transform: scale(.97); }
.q-choice.is-right { background: var(--md-primary); color: var(--md-on-primary); border-color: var(--md-primary); }
.q-choice.is-wrong { text-decoration: line-through; opacity: .6; }
.q-choice[disabled] { cursor: default; }
.q-why { display: none; }
.quiz-feedback { display: grid; gap: .35rem; padding: 1rem 1.25rem; border-radius: var(--shape-m); background: var(--md-surface); }
.fb-mark { font-weight: 900; font-size: var(--type-title-l); color: var(--md-primary); }
.fb-ok, .fb-ng { display: none; }
.quiz-feedback.is-ok .fb-ok, .quiz-feedback.is-ng .fb-ng { display: inline; }
.fb-why { font-size: var(--type-body-m); line-height: 1.8; }
.quiz-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.quiz-done { font-weight: 900; font-size: var(--type-title-m); }
.quiz-done .done-all, .quiz-done .done-some { display: none; }
.quiz-done.all .done-all, .quiz-done.some .done-some { display: inline; }
.quiz-note { font-size: var(--type-label-m); color: var(--md-on-surface-variant); line-height: 1.7; }
.quiz:not(.is-live) .q + .q { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--md-outline-variant); }
.quiz:not(.is-live) .q-why { display: block; font-size: var(--type-body-m); color: var(--md-on-surface-variant); }
@media (max-width: 56.1875em) { .quiz-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 10. Week band ---------- */
.week-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1.5rem 3rem; align-items: center; }
.week-title { font-size: var(--type-display-l); font-weight: 900; line-height: var(--lh-display); }
.week-stamps { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .5rem; }
.week-stamps li { display: grid; justify-items: center; gap: .4rem; font-weight: 900; }
.m { position: relative; display: grid; place-items: center; width: min(100%, 4.25rem); aspect-ratio: 1.1; border: 5px solid currentColor; border-radius: 22%; }
.m i { display: block; width: 52%; height: 40%; border-radius: 20%; background: currentColor; transform: scaleY(.15); transition: transform 400ms var(--ease-spring); }
.week-stamps li.on .m { color: var(--apricot); }
.week-stamps li:not(.on) { opacity: .45; }
.week-band.is-in .week-stamps li.on .m i { transform: scaleY(1); }
.week-band.is-in .week-stamps li:nth-child(2) .m i { transition-delay: 120ms; }
.week-band.is-in .week-stamps li:nth-child(3) .m i { transition-delay: 240ms; }
.week-band.is-in .week-stamps li:nth-child(4) .m i { transition-delay: 360ms; }
.week-band.is-in .week-stamps li:nth-child(5) .m i { transition-delay: 480ms; }
html:not(.js-motion) .week-stamps li.on .m i { transform: none; }
.week-note { grid-column: 1 / -1; font-size: var(--type-body-m); line-height: 1.8; opacity: .95; max-width: 46em; }
@media (max-width: 47.9375em) { .week-grid { grid-template-columns: minmax(0, 1fr); } .m { border-width: 3.5px; } }

/* ---------- 11. Pricing ---------- */
.plans { margin-top: clamp(2rem, 1.5rem + 2vw, 3.5rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.25rem; }
.plan { display: grid; align-content: start; gap: 1.1rem; padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--shape-l); border: 2px solid var(--md-on-surface); }
.plan-m { border: 3px solid var(--md-primary); box-shadow: var(--elev-2); }
.plan-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.plan-top h3 { font-size: var(--type-headline); font-weight: 900; }
.plan-badge { padding: .3rem .8rem; border-radius: var(--shape-s); background: var(--md-primary); color: var(--md-on-primary); font-size: var(--type-label-m); font-weight: 900; }
.plan-badge-line { background: transparent; color: var(--md-on-surface); border: 2px solid var(--md-on-surface); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .5rem; }
.amount { font-family: var(--font-en); font-size: clamp(3.5rem, 2rem + 6vw, 6.25rem); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.plan-m .amount { color: var(--md-primary); }
.unit { font-size: var(--type-title-m); font-weight: 800; }
.plan-terms { display: grid; gap: .35rem; }
.plan-terms li { position: relative; padding-left: 1.4rem; font-size: var(--type-body-m); line-height: 1.7; }
.plan-terms li::before { content: ""; position: absolute; left: 0; top: .55em; width: .7rem; height: .6rem; border: 2.5px solid var(--md-primary); border-radius: 3px; }
.freepaid { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.fp { padding: 1.25rem 1.5rem; border-radius: var(--shape-l); }
.fp-free { border: 2px dashed var(--md-on-surface); }
.fp-paid { background: var(--plane-red-bg); color: var(--plane-red-on); }
.fp-label { font-size: var(--type-label-m); font-weight: 900; letter-spacing: .1em; }
.fp-big { font-size: var(--type-headline); font-weight: 900; line-height: 1.35; }
.terms-line { margin-top: 1.25rem; font-size: var(--type-body-m); line-height: 1.8; color: var(--md-on-surface-variant); }
.more { margin-top: 1.5rem; border-top: 2px solid var(--md-on-surface); }
.more summary { display: flex; align-items: center; min-height: 3.5rem; font-weight: 900; cursor: pointer; }
.more-body { display: grid; gap: 1.5rem; padding-bottom: 1rem; }
.table-wrap { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; font-size: var(--type-body-m); line-height: 1.6; }
.compare caption { text-align: left; font-weight: 900; padding-bottom: .75rem; }
.compare th, .compare td { padding: .8rem .6rem; border-bottom: 1px solid var(--md-outline-variant); text-align: left; vertical-align: top; }
.compare thead th { border-bottom: 2px solid var(--md-on-surface); }
.compare .col-paid { font-weight: 800; }
.kr-offer__table { table-layout: fixed; }
.kr-offer__table col:first-child { width: 40%; }
.kr-offer__table col:not(:first-child) { width: 30%; }
.kr-offer__table th, .kr-offer__table td { padding-inline: .45rem; }
.terms > div { display: grid; grid-template-columns: 10em minmax(0, 1fr); gap: .25rem 1rem; padding-block: .8rem; border-bottom: 1px solid var(--md-outline-variant); font-size: var(--type-body-m); line-height: 1.75; }
.terms dt { font-weight: 900; }
.terms dd { color: var(--md-on-surface-variant); }
@media (max-width: 29.9375em) { .terms > div { grid-template-columns: minmax(0, 1fr); } }
.links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.links a { display: inline-flex; align-items: center; min-height: 3rem; font-weight: 800; color: var(--md-primary); text-underline-offset: .25em; }

/* ---------- 12. About + FAQ ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.about { display: grid; gap: 1.25rem; }
.about .h-section { margin-top: .25rem; }
.about-def { font-size: var(--type-body-l); line-height: 1.9; }
.facts > div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: .25rem 1rem; padding-block: .7rem; border-bottom: 1px solid var(--md-outline-variant); font-size: var(--type-body-m); line-height: 1.75; }
.facts dt { font-weight: 900; }
.about-more { display: grid; gap: .1rem; font-size: var(--type-body-m); line-height: 1.75; }
.about-more span:first-child { font-weight: 900; }
.screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: center; }
.screen { display: grid; gap: .5rem; }
.screen img { border-radius: 18px; box-shadow: var(--elev-2); background: var(--md-surface-2); }
.screen figcaption { font-size: var(--type-label-m); font-weight: 800; color: var(--md-on-surface-variant); text-align: center; }
.screen-photo img { aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.faq-list { display: grid; }
.faq-list .h-section { margin-bottom: .75rem; }
.faq { border-bottom: 1px solid var(--md-outline-variant); }
.faq summary {
  position: relative; display: block; min-height: 3.5rem; padding: 1rem 3rem 1rem 0;
  font-weight: 800; line-height: 1.6; cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: .75rem; top: 1.75rem; width: 1rem; height: 2.5px;
  background: currentColor; transition: transform 300ms var(--ease-emph);
}
.faq summary::after { transform: rotate(90deg); }
.faq[open] summary::after { transform: rotate(0); }
.faq p { padding-bottom: 1.25rem; font-size: var(--type-body-m); line-height: 1.9; color: var(--md-on-surface-variant); }
.faq p a { color: var(--md-primary); font-weight: 800; }
@media (max-width: 56.1875em) { .about-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 13. End ---------- */
.end-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.5rem clamp(2rem, 1rem + 4vw, 5rem); align-items: center; }
.end-mark svg { width: clamp(8rem, 5rem + 14vw, 18rem); height: auto; overflow: visible; }
.em-frame { fill: none; stroke: var(--apricot); stroke-width: 18; }
.em-open { fill: var(--ink); transform-box: fill-box; transform-origin: center; transform: scaleY(.25); }
@media (prefers-reduced-motion: no-preference) {
  .end.is-in .em-open { animation: talk 520ms ease-in-out 3 both; }
}
.end-title { font-size: var(--type-display-xl); font-weight: 900; line-height: var(--lh-display); letter-spacing: -.02em; }
.end .cta-group { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.end-note { margin-top: 1rem; font-size: var(--type-body-m); line-height: 1.8; }
.end-note a { font-weight: 900; text-underline-offset: .25em; display: inline-flex; min-height: 3rem; align-items: center; }
@media (max-width: 47.9375em) { .end-grid { grid-template-columns: minmax(0, 1fr); } .end .btn { width: 100%; } }

/* ---------- 14. Footer ---------- */
.site-footer { background: var(--plane-ink-bg); color: var(--plane-ink-on); padding-block: 3.5rem 2rem; font-size: var(--type-body-m); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
.footer-logo { height: 2.5rem; width: auto; }
.footer-brand p { margin-top: 1rem; line-height: 1.8; opacity: .9; }
.site-footer ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); }
.site-footer li a { display: inline-flex; align-items: center; min-height: 3rem; text-underline-offset: .25em; }
.copyright { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgb(255 248 239 / .2); font-size: var(--type-label-m); opacity: .85; }
@media (max-width: 47.9375em) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 15. Mobile CTA bar ---------- */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: .7rem var(--gutter) calc(.7rem + env(safe-area-inset-bottom));
  background: var(--md-surface); box-shadow: 0 -1px 0 var(--md-outline-variant), var(--elev-2);
  visibility: visible; transition: transform 350ms var(--ease-emph), visibility 0s;
}
.cta-bar.is-off { transform: translateY(110%); visibility: hidden; transition: transform 350ms var(--ease-emph), visibility 0s linear 350ms; }
@media (min-width: 48em), (max-height: 32.5em) { .cta-bar { display: none !important; } }
@media (max-width: 47.9375em) and (min-height: 32.5625em) { body.has-bar { padding-bottom: 5.25rem; } }

/* ---------- 16. Scroll reveal helpers ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js-motion [data-reveal]:not(.is-in) .reveal-slide { transform: translateY(30px); }
}

/* ---------- 17. Missing asset preview (non-production only; see script.js) ---------- */
.is-missing img { display: none; }
.is-missing::after {
  content: attr(data-asset);
  display: grid; place-items: center; min-height: 8rem; aspect-ratio: 1; padding: .75rem;
  border: 2px dashed var(--md-outline); border-radius: 50%;
  font: 700 .75rem/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--md-on-surface-variant); text-align: center;
}
.ov-circle.is-missing::after { border: 0; color: #FFD09A; background: #0E0B0A; }

/* ---------- 18. Reduced motion & forced colors ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important;
  }
  .btn:active, .round:active { transform: none; }
}
@media (forced-colors: active) {
  .btn, .plan, .fp, .quiz, .q-choice, .round, .scene-tabs [role="tab"] { border: 2px solid CanvasText; }
  .stage-bgword { color: transparent; }
}

/* ---------- 19. In-app demos (体験デモ) ---------- */
.visual { container-type: inline-size; }
.demo {
  position: absolute; left: 50%; top: 52%; z-index: 2;
  width: 44%;
  transform: translate(-50%, -46%) scale(.86) rotate(-3deg);
  opacity: 0;
  transition: opacity 450ms var(--ease-emph), transform 800ms var(--ease-spring);
  pointer-events: none;
}
.stage[data-scene="1"] .demo-1, .stage[data-scene="2"] .demo-2, .stage[data-scene="3"] .demo-3, .stage[data-scene="4"] .demo-4 {
  opacity: 1; transform: translate(-50%, -50%) rotate(0deg);
}
.demo-tag {
  position: absolute; left: 50%; top: -1.9em; transform: translateX(-50%);
  padding: .2em .8em; border-radius: var(--shape-full);
  background: var(--cta-bg); color: var(--cta-on);
  font-size: clamp(.6875rem, 2.4cqw, .875rem); font-weight: 900; white-space: nowrap;
}
.phone {
  position: relative; overflow: hidden;
  aspect-ratio: 9 / 17;
  display: flex; flex-direction: column; gap: .6em;
  padding: 14% 8% 9%;
  border: clamp(5px, 1.4cqw, 10px) solid #24201F;
  border-radius: clamp(20px, 7cqw, 44px);
  background: #FFF8EF; color: #24201F;
  box-shadow: var(--elev-3);
  font-size: clamp(9.5px, 2.6cqw, 15px);
  line-height: 1.45;
}
.phone::before {
  content: ""; position: absolute; left: 50%; top: 3.5%; transform: translateX(-50%);
  width: 30%; height: 3.2%; border-radius: 999px; background: #24201F;
}
.ph-title { font-size: 1.45em; font-weight: 900; line-height: 1.25; }
.ph-title-s { font-size: 1.12em; }
.ph-kicker { font-size: .78em; font-weight: 900; letter-spacing: .08em; color: #A63828; }
.ph-bubble { display: flex; align-items: center; gap: .55em; padding: .6em .7em; border-radius: .8em; background: #FFD09A; font-weight: 800; }
.ph-coach { flex: 0 0 auto; display: grid; place-items: center; width: 1.9em; height: 1.65em; border: .26em solid #A63828; border-radius: .42em; }
.ph-coach i { display: block; width: 50%; height: 36%; border-radius: .15em; background: #24201F; }
.ph-menu { display: grid; gap: .45em; }
.ph-menu li { display: flex; align-items: center; gap: .55em; padding: .6em .6em; border: 2px solid #24201F; border-radius: .7em; font-weight: 800; background: #FFF8EF; }
.ph-menu i { flex: 0 0 auto; width: 1.1em; height: 1.1em; border: 2px solid #24201F; border-radius: .3em; position: relative; }
.ph-menu li:first-child i { background: #A63828; border-color: #A63828; }
.ph-menu li:first-child i::after { content: ""; position: absolute; left: 28%; top: 8%; width: 30%; height: 58%; border: solid #FFF8EF; border-width: 0 .18em .18em 0; transform: rotate(40deg); }
.ph-btn { margin-top: auto; padding: .7em; border-radius: 999px; background: #A63828; color: #FFF8EF; text-align: center; font-weight: 900; }

.ph-tabs { display: flex; justify-content: space-between; align-items: center; font-weight: 900; }
.ph-review { display: inline-flex; align-items: center; gap: .3em; }
.ph-badge { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding: 0 .35em; border-radius: 999px; background: #A63828; color: #FFF8EF; font-size: .85em; }
.ph-dots { display: flex; gap: .35em; }
.ph-dots li { width: .8em; height: .8em; border-radius: 50%; border: 2px solid #24201F; }
.ph-dots li:nth-child(-n+2) { background: #24201F; }
.ph-q { font-family: var(--font-en); font-size: 1.12em; line-height: 1.35; font-weight: 600; }
.ph-opts { display: grid; gap: .4em; }
.ph-opts li { padding: .45em .7em; border: 2px solid #24201F; border-radius: .6em; font-family: var(--font-en); font-weight: 600; }
.ph-opts .o-wrong { text-decoration: line-through; color: #6B605A; border-color: #6B605A; }
.ph-opts .o-right { background: #A63828; border-color: #A63828; color: #FFF8EF; }
.ph-fly { position: absolute; right: 7%; top: 10%; padding: .25em .7em; border-radius: 999px; background: #24201F; color: #FFD09A; font-weight: 900; font-size: .85em; opacity: 0; }

.ph-lines { display: grid; gap: .3em; }
.ph-lines li { padding: .4em .5em; border-radius: .5em; font-family: var(--font-en); font-size: .96em; line-height: 1.35; color: #6B605A; }
.ph-lines li:nth-child(2) { background: #FFD09A; color: #24201F; }
.ph-player { margin-top: auto; display: flex; align-items: center; gap: .6em; }
.ph-play { width: 0; height: 0; border-style: solid; border-width: .6em 0 .6em 1em; border-color: transparent transparent transparent #A63828; }
.ph-bar { position: relative; flex: 1 1 auto; height: .45em; border-radius: 999px; background: #E6D5C3; overflow: hidden; }
.ph-bar i { position: absolute; inset: 0; width: 62%; background: #A63828; border-radius: inherit; }

.ph-shadow { font-family: var(--font-en); font-size: 1.35em; line-height: 1.3; font-weight: 600; }
.ph-shadow span { display: inline-block; }
.ph-rows { display: grid; gap: .7em; margin-top: auto; }
.ph-rows p { display: grid; gap: .25em; font-weight: 800; font-size: .85em; }
.ph-bar-a i { width: 100%; }
.ph-bar-b i { width: 82%; background: #24201F; }

/* demo choreography: final state is the base; motion only animates in */
@media (prefers-reduced-motion: no-preference) {
  .stage.enter[data-scene="1"] .ph-bubble { animation: pop-in 500ms var(--ease-spring) 200ms both; }
  .stage.enter[data-scene="1"] .ph-menu li { animation: slide-in 600ms var(--ease-spring) both; }
  .stage.enter[data-scene="1"] .ph-menu li:nth-child(1) { animation-delay: 550ms; }
  .stage.enter[data-scene="1"] .ph-menu li:nth-child(2) { animation-delay: 700ms; }
  .stage.enter[data-scene="1"] .ph-menu li:nth-child(3) { animation-delay: 850ms; }
  .stage.enter[data-scene="1"] .ph-menu li:first-child i { animation: check 400ms var(--ease-spring) 1600ms both; }
  .stage.enter[data-scene="1"] .ph-btn { animation: pop-in 500ms var(--ease-spring) 1150ms both; }

  .stage.enter[data-scene="2"] .ph-dots li:nth-child(2) { animation: dot 300ms ease 300ms both; }
  .stage.enter[data-scene="2"] .ph-q { animation: slide-in 500ms var(--ease-spring) 150ms both; }
  .stage.enter[data-scene="2"] .o-wrong { animation: pick-wrong 900ms ease 700ms both; }
  .stage.enter[data-scene="2"] .o-right { animation: reveal-right 400ms ease 1500ms both; }
  .stage.enter[data-scene="2"] .ph-fly { animation: fly-review 1100ms var(--ease-emph) 1300ms both; }
  .stage.enter[data-scene="2"] .ph-badge { animation: pop-in 450ms var(--ease-spring) 2250ms both; }

  .stage.enter[data-scene="3"] .ph-lines li:nth-child(1) { animation: lit-pass 1300ms ease 300ms both; }
  .stage.enter[data-scene="3"] .ph-lines li:nth-child(2) { animation: lit-stay 600ms ease 1500ms both; }
  .stage.enter[data-scene="3"] .ph-bar i { animation: grow-62 2100ms linear 300ms both; }

  .stage.enter[data-scene="4"] .ph-shadow span { animation: word-lit 700ms ease both; }
  .stage.enter[data-scene="4"] .ph-shadow span:nth-child(2) { animation-delay: 250ms; }
  .stage.enter[data-scene="4"] .ph-shadow span:nth-child(3) { animation-delay: 500ms; }
  .stage.enter[data-scene="4"] .ph-shadow span:nth-child(4) { animation-delay: 750ms; }
  .stage.enter[data-scene="4"] .ph-shadow span:nth-child(5) { animation-delay: 1000ms; }
  .stage.enter[data-scene="4"] .ph-shadow span:nth-child(6) { animation-delay: 1250ms; }
  .stage.enter[data-scene="4"] .ph-bar-a i { animation: grow-100 1600ms linear both; }
  .stage.enter[data-scene="4"] .ph-bar-b i { animation: grow-82 1600ms linear 400ms both; }
}
@keyframes pop-in { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes slide-in { from { transform: translateX(60%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes check { from { background: transparent; border-color: #24201F; transform: scale(.6); } to { transform: none; } }
@keyframes dot { from { background: transparent; } }
@keyframes pick-wrong { 0% { text-decoration: none; background: transparent; color: #24201F; border-color: #24201F; } 25% { background: #24201F; color: #FFF8EF; text-decoration: none; transform: none; } 45% { transform: translateX(-6%); } 60% { transform: translateX(6%); } 75% { transform: translateX(-3%); background: #24201F; color: #FFF8EF; } 100% { text-decoration: line-through; } }
@keyframes reveal-right { from { background: #FFF8EF; color: #24201F; border-color: #24201F; } }
@keyframes fly-review { 0% { opacity: 1; right: 55%; top: 58%; transform: scale(1.1); } 70% { opacity: 1; right: 7%; top: 10%; transform: scale(.9); } 100% { opacity: 0; right: 7%; top: 8%; transform: scale(.6); } }
@keyframes lit-pass { 0% { background: transparent; } 15%, 85% { background: #FFD09A; color: #24201F; } 100% { background: transparent; } }
@keyframes lit-stay { from { background: transparent; color: #6B605A; } }
@keyframes grow-62 { from { width: 0; } }
@keyframes grow-100 { from { width: 0; } }
@keyframes grow-82 { from { width: 0; } }
@keyframes word-lit { 0% { color: inherit; } 40% { color: #A63828; transform: translateY(-.12em); } 100% { color: inherit; transform: none; } }

.steps-inline { display: flex; flex-wrap: wrap; gap: .4rem; counter-reset: st; }
.steps-inline li {
  counter-increment: st;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem .35rem .4rem; border-radius: var(--shape-full);
  background: color-mix(in srgb, var(--sc-on) 12%, transparent);
  font-size: var(--type-body-m); font-weight: 800;
}
.steps-inline li::before {
  content: counter(st); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: var(--cta-bg); color: var(--cta-on); font-family: var(--font-en); font-size: .875rem;
}
.demo-note { display: none; font-size: .75rem; line-height: 1.6; color: var(--sc-muted); }
.stage[data-scene="1"] .demo-note, .stage[data-scene="2"] .demo-note, .stage[data-scene="3"] .demo-note, .stage[data-scene="4"] .demo-note { display: block; }
.ov-realtag {
  inset: auto; left: 50%; top: 17%; transform: translateX(-50%);
  padding: .2em .8em; border-radius: var(--shape-full); background: var(--apricot); color: var(--ink);
  font-size: clamp(.6875rem, 2.4cqw, .875rem); font-weight: 900; white-space: nowrap; z-index: 3;
}
.stage[data-scene="5"] .ov-realtag { opacity: 1; }
@media (max-width: 56.1875em) { .demo { width: 43%; top: 55%; } }

/* intro: 寄り → 引き（一度だけ） */
.js-intro .stage .g-kuchi { transform: scale(2.1); }
.js-intro .stage .g-loop { opacity: 0; transform: scale(.55) rotate(-90deg); }
.js-intro .stage .stage-bgword span { transform: translateY(35%); opacity: 0; }
.stage-bgword span { transition: transform 1200ms var(--ease-decel), opacity 900ms; }

/* ==========================================================================
   カード化（クイズ／ヒーローの日英フレーズ） — 追記ブロック
   既存の規則は消さずに上書きする。左の縦線アクセントは使わない（背景・余白・見出しで区別）。
   ========================================================================== */

/* ---------- A. ヒーローの日英フレーズ：フラッシュカード ---------- */
.stage { --say-bg: #FFFDF8; --say-line: #E6D5C3; --say-deck: #F3E6D6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage { --say-bg: #26201F; --say-line: #3D3431; --say-deck: #1F1A19; }
}
:root[data-theme="dark"] .stage { --say-bg: #26201F; --say-line: #3D3431; --say-deck: #1F1A19; }

.say-card {
  position: relative;
  display: grid; gap: .45rem;
  padding: .95rem 1.15rem 1.05rem;
  margin-right: 8px;                                   /* 後ろのカードの分 */
  border-radius: 20px;
  background: var(--say-bg);
  color: var(--sc-on);
  box-shadow: 7px 7px 0 -1px var(--say-deck), 7px 7px 0 .5px var(--say-line), var(--elev-1);
}
.say-state { display: flex; align-items: center; gap: .5rem; min-height: 2rem; font-size: var(--type-label-m); font-weight: 900; letter-spacing: .08em; color: var(--sc-muted); }
.say-state > span { display: inline-flex; align-items: center; gap: .4rem; }
.say-state-say { display: none !important; }
.speak.is-said .say-state-think { display: none !important; }
.speak.is-said .say-state-say { display: inline-flex !important; padding: .1rem .65rem .1rem .45rem; border-radius: 999px; background: var(--cta-bg); color: var(--cta-on); letter-spacing: .04em; }
.mini-mouth { position: relative; display: inline-block; width: 1.05rem; height: .8rem; border: 2.5px solid currentColor; border-radius: 4px; }
.mini-mouth::after { content: ""; position: absolute; left: 50%; top: 50%; width: 45%; height: 30%; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%); }
.speak.is-said .mini-mouth::after { animation: mini-say 360ms ease-in-out 2; }
@keyframes mini-say { 50% { height: 72%; } }

.say-card .speak-ja { min-height: 2.9em; }             /* 2行ぶんの高さを確保して、文が変わっても揺れない */
.say-en {
  position: relative;
  min-height: 2.6em;
  padding-top: .6rem;
  border-top: 1.5px dashed var(--say-line);            /* 表と裏の折り目（横線） */
  font-family: var(--font-en);
  font-size: clamp(1.25rem, 1rem + .9vw, 1.75rem);
  line-height: 1.3;
}
.say-en .speak-en { font-size: inherit; min-height: 0; }
.speak-en .w { display: inline-block; opacity: .2; transition: opacity 220ms, color 220ms, transform 260ms var(--ease-spring); }
.speak-en .w.is-on { opacity: 1; color: var(--cta-bg); transform: translateY(-.1em); }
.speak-en .w.is-done { opacity: 1; }

/* 考える間：ゆっくり順番に弾む3つの点（3回だけ弾んで止まる。読み込み表示に見せない大きさと間） */
.say-think { position: absolute; left: 0; top: .6rem; display: flex; align-items: center; gap: .55em; height: 1.3em; margin: 0; transition: opacity 200ms, transform 200ms; }
.say-think i { display: block; width: .46em; height: .46em; border-radius: 50%; background: var(--cta-bg); opacity: .5; }
.speak.is-thinking .say-think i { animation: think-bob 1.7s ease-in-out 3 both; }
.speak.is-thinking .say-think i:nth-child(2) { animation-delay: .22s; }
.speak.is-thinking .say-think i:nth-child(3) { animation-delay: .44s; }
@keyframes think-bob {
  0%, 52%, 100% { transform: translateY(0) scale(1); opacity: .5; }
  24% { transform: translateY(-.42em) scale(1.12); opacity: 1; }
}
.speak.is-said .say-think { opacity: 0; transform: translateY(-.3em); visibility: hidden; }

/* 口も「考える」リズムで小さく横に揺れる（開閉の拡大縮小は既存のまま） */
.stage.is-thinking .kuchi-open { transform-box: fill-box; transform-origin: center; animation: kuchi-hmm 1.7s ease-in-out 3 both; }
@keyframes kuchi-hmm { 0%, 100% { transform: scaleX(1); } 30% { transform: scaleX(.84); } 62% { transform: scaleX(1.05); } }
.speak.is-away .say-think i, .stage.is-away .kuchi-open { animation-play-state: paused; }

/* 文の切り替え：カードがめくれて次の1枚が出てくる */
.say-card.is-out { animation: say-out 200ms cubic-bezier(.4, 0, 1, 1) forwards; }
.say-card.is-in { animation: say-in 440ms var(--ease-spring) both; }
@keyframes say-out { to { transform: translate(-18px, -4px) rotate(-2deg); opacity: 0; } }
@keyframes say-in { from { transform: translate(7px, 7px) scale(.97); opacity: .2; } }
.btn-scene[aria-disabled="true"], .btn-text-scene[aria-disabled="true"] { cursor: default; }
.btn-scene[aria-disabled="true"] { opacity: .75; }

/* ---------- B. クイズ：表（問題と4択）→ 裏（判定と解説） ---------- */
.quiz { --deck-1: #EFDFCB; --deck-line: var(--md-outline-variant); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quiz { --deck-1: #2A2321; } }
:root[data-theme="dark"] .quiz { --deck-1: #2A2321; }

.quiz.is-live { overflow: clip; }                                     /* 抜けていくカードは枠の外で消える */
.quiz.is-live .quiz-list { display: grid; padding: 0 14px 14px 0; }  /* 右下に残りのカードの縁 */
.quiz.is-live .quiz-actions { min-height: 3rem; }
.quiz.is-live .quiz-actions .btn { padding-inline: 1.15rem; }
.quiz.is-live .quiz-actions.is-off { visibility: hidden; }
.quiz.is-live .q { grid-area: 1 / 1; display: block; perspective: 1400px; }
.quiz.is-live .q:not(.is-active):not(.is-leaving) { visibility: hidden; }
.quiz.is-live .q.is-leaving { z-index: 2; pointer-events: none; }
.q-card { display: grid; height: 100%; transform-style: preserve-3d; transition: transform 640ms cubic-bezier(.2, .75, .2, 1); }
.q-face {
  grid-area: 1 / 1;
  display: grid; align-content: start; gap: 1rem;
  padding: clamp(1.1rem, .9rem + 1vw, 1.75rem);
  border-radius: 22px;
  border: 2px solid var(--md-on-surface);
  background: var(--md-surface);
  color: var(--md-on-surface);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.q-back { transform: rotateY(180deg); align-content: center; gap: .75rem; border-color: transparent; }
.q.is-flipped .q-card { transform: rotateY(180deg); }
.q.is-ok .q-back { background: var(--md-primary); color: var(--md-on-primary); }
.q.is-ng .q-back { background: var(--plane-ink-bg); color: var(--plane-ink-on); }
.q-verdict { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 900; line-height: 1.2; }
.q-verdict .fb-ok, .q-verdict .fb-ng { display: none; }
.q.is-ok .q-verdict .fb-ok, .q.is-ng .q-verdict .fb-ng { display: inline; }
.q-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; font-family: var(--font-en); font-size: 1.25rem; font-weight: 600; }
.pick-ng { text-decoration: line-through; opacity: .7; }
.pick-ok { padding: .1rem .75rem; border-radius: 10px; }
.q.is-ok .pick-ok { background: var(--md-on-primary); color: var(--md-primary); }
.q.is-ng .pick-ok { background: var(--plane-ink-on); color: var(--plane-ink-bg); }
.q.is-ok .pick-ng, .q.is-ok .pick-arrow { display: none; }
.quiz.is-live .q-back .q-why { display: block; font-size: var(--type-body-m); line-height: 1.85; }
.quiz.is-live .q-back .q-why { color: inherit; }

/* 残りのカードの縁（線ではなく重なった紙で見せる） */
.quiz-list[data-stack="1"] .q.is-active .q-front,
.quiz-list[data-stack="1"] .q.is-active .q-back { box-shadow: 7px 7px 0 -2px var(--deck-1), 7px 7px 0 0 var(--deck-line); }
.quiz-list[data-stack="2"] .q.is-active .q-front,
.quiz-list[data-stack="2"] .q.is-active .q-back { box-shadow: 7px 7px 0 -2px var(--deck-1), 7px 7px 0 0 var(--deck-line), 14px 14px 0 -2px var(--deck-1), 14px 14px 0 0 var(--deck-line); }

/* 次のカードが滑って入る／前のカードが左へ抜ける */
@media (prefers-reduced-motion: no-preference) {
  .quiz.is-live .q.is-entering { animation: deck-in 520ms var(--ease-spring) both; }
  .quiz.is-live .q.is-leaving { animation: deck-out 420ms cubic-bezier(.4, 0, 1, 1) both; }
  .q.is-flipped .q-card { animation: flip-lift 640ms cubic-bezier(.2, .75, .2, 1); }
}
@keyframes deck-in { from { transform: translate(14px, 14px) scale(.96); opacity: 0; } }
@keyframes deck-out { to { transform: translateX(-60%) rotate(-7deg); opacity: 0; } }
@keyframes flip-lift { 0% { transform: rotateY(0) scale(1); } 45% { transform: rotateY(90deg) scale(1.04); } 100% { transform: rotateY(180deg) scale(1); } }

/* 結果カード */
.q-result .q-front { align-content: center; justify-items: start; gap: .75rem; background: var(--md-surface); }
.q-result .quiz-done { display: block; font-size: var(--type-headline); line-height: 1.4; }
.q-result .quiz-done:focus-visible { outline-offset: 6px; }
.result-count { display: flex; align-items: baseline; gap: .3rem; font-weight: 900; color: var(--md-primary); }
.result-label { font-size: var(--type-label-m); letter-spacing: .1em; margin-right: .25rem; }
.result-count b { font-family: var(--font-en); font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 1; }

/* 復習へ飛ぶ小さなカード */
.fly.fly-card { width: 3rem; height: 2.2rem; border-radius: 8px; background: var(--plane-ink-bg); color: var(--plane-ink-on); font-size: .9375rem; box-shadow: var(--elev-2); }

@media (prefers-reduced-motion: reduce) {
  .q-card { transition: none; }
}

/* ---------- ステージ自動巡回（01→06→01） ----------
 * 表示中のパネルだけを本文列の同じ行（見出し・タブの下、申し込みの上）に置く。
 * 見えていないパネルは [hidden] で display:none になるので、高さも余白も取らない。
 * ステージ全体の高さは .stage-inner の min-height と左のグラフィックで保つ。
 * 以前ここで6場面分の高さを確保していたが、01 のように本文が短い場面で
 * 申し込みボタンまでに巨大な空白ができるため、確保はやめた。 */
.stage.is-tour .copy > .panel { grid-row: 3; grid-column: 1; align-self: start; }

/* ---------- ロゴ v5 B：ヒーローの口（口角で上下に分かれて回る口） ----------
 * 外枠は上あご・下あごの2本（.kuchi-line。輪を2周するパスに stroke-dasharray で載せている）。
 * 話すと、上下が口角から少し開く（JSの setMouth が .kuchi-jaw を動かす）。
 * 言い終えると、2本が輪に沿って半周して入れ替わる（.is-turning）。半周で元と同じ形に戻るので、JSが動きなしで元の位置に戻す。
 * 中央の角丸四角（.kuchi-open）と色（--g-frame / --g-open。ダークでは中央が暖白）は今までのまま。
 * reduced-motion のときは半周させない（JS）。開閉は今までどおり一瞬で切り替わる。 */
.kuchi-line { fill: none; stroke: var(--g-frame); stroke-width: 36; stroke-linecap: butt; }
.kuchi-jaw { transition: transform 140ms var(--ease-emph); }
.kuchi-line.is-turning { transition: stroke-dashoffset 900ms cubic-bezier(.55, 0, .15, 1); }

/* ---------- 05 シャドーイングの「追いかける口」もロゴ v5 B の形（口角で上下に分かれた外枠）に ----------
 * 点線にすると口角の切れ目が見分けられないので、実線にする。色・太さは今までの .follow-frame のまま。 */
.follow-frame.follow-jaw { stroke-dasharray: none; stroke-linecap: butt; }

/* ---------- 同じ場面をもう一度押したとき：演出を最初から ----------
 * デモの画面・コーチの輪・発音の円などは、場面が変わるときの transition で入る。同じタブを押し直しても状態が変わらないので、そのままでは動かない。
 * そこで JS が .is-rewind を1フレームだけ付けて「入る前」の状態に戻し、外した瞬間から入り直させる。 */
.stage.is-rewind .visual-svg g, .stage.is-rewind .visual-svg rect, .stage.is-rewind .visual-svg circle, .stage.is-rewind .visual-svg path,
.stage.is-rewind .demo, .stage.is-rewind .ov, .stage.is-rewind .ov li { transition: none !important; }
.stage.is-rewind[data-scene="1"] .g-coach { opacity: 0; transform: scale(1.25); }
.stage.is-rewind[data-scene="1"] .coach-draw { stroke-dashoffset: 100; }
.stage.is-rewind[data-scene="2"] .g-quiz { opacity: 0; transform: translateY(40px); }
.stage.is-rewind[data-scene="3"] .g-listen { opacity: 0; transform: scale(1.7); }
.stage.is-rewind[data-scene="4"] .g-shadow { opacity: 0; transform: translateX(80px); }
.stage.is-rewind .demo { opacity: 0; transform: translate(-50%, -46%) scale(.86) rotate(-3deg); }
.stage.is-rewind[data-scene="5"] .ov-circle { opacity: 0; transform: scale(.6); }
.stage.is-rewind[data-scene="5"] .ov-ph, .stage.is-rewind[data-scene="5"] .ov-realtag { opacity: 0; }
.stage.is-rewind[data-scene="5"] .ov-ph li { transform: translate(-50%, -50%) scale(.3); }

/* ロゴBパッチの修正：上あご・下あごが .visual-svg g の 900ms に負けて、単語の拍（300ms）に遅れていた */
.visual-svg .kuchi-jaw { transition: transform 140ms var(--ease-emph); }

/* ---------- 02〜06 の体験カード（パネルの見出しの下に入る） ----------
 * どの場面でも明るい紙のカード（体験デモの画面と同じ扱い）。02・04・05・06 は説明用のデモで「体験デモ」の札を付け、読み上げない。
 * 03 は下のクイズと同じ3問を、その場で解ける。
 * 止まった状態が完成形。動きは場面に入ったとき（自動巡回・タブ・再タップ・グラフィックのタップ）に .stage.enter で一度だけ流す。 */
.xcard {
  position: relative; width: min(100%, 30rem);
  display: grid; gap: .7rem; align-content: start;
  padding: 1rem 1.1rem 1.15rem; border-radius: 20px;
  background: #FFF8EF; color: #24201F;
  box-shadow: 0 1px 0 rgba(36, 32, 31, .06), 0 14px 30px -16px rgba(0, 0, 0, .45);
}
.xc-tag { justify-self: start; padding: .1em .75em; border-radius: 999px; background: #24201F; color: #FFD09A; font-size: .75rem; font-weight: 900; line-height: 1.7; }
.xc-mouth { width: 1.7rem; height: 1.7rem; flex: none; overflow: visible; }
.xc-mouth path { fill: none; stroke: #A63828; stroke-width: 22; }
.xc-mouth rect { fill: #24201F; transform-box: fill-box; transform-origin: center; }

/* パネルは内容の高さだけを取る（高さの確保をやめたので、カードを引き伸ばす必要はない）。 */

/* 02 今日のメニューが組み上がる */
.xm-head { display: flex; align-items: center; gap: .55rem; font-weight: 900; }
.xm-list { display: grid; gap: .45rem; }
.xm-list li { display: flex; align-items: center; gap: .65rem; min-height: 2.75rem; padding: .35rem .75rem; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px #24201F; font-weight: 800; }
.xm-list b { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: #A63828; color: #FFF8EF; font-family: var(--font-en); font-size: .875rem; }
.xm-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; height: .5rem; }
.xm-bar i { border-radius: 999px; background: #A63828; transform-origin: left center; }

/* 03 その場で解けるフラッシュクイズ */
.xq-top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.xq-dots { display: flex; gap: .4rem; }
.xq-dots li { width: .75rem; height: .75rem; border-radius: 50%; box-shadow: inset 0 0 0 2px #24201F; }
.xq-dots li.is-ok { background: #FFD09A; }
.xq-dots li.is-ng { background: #A63828; box-shadow: none; }
.xq-dots li.is-now { outline: 2px solid #24201F; outline-offset: 2px; }
.xq-bin { display: flex; align-items: baseline; gap: .3rem; padding: .15rem .8rem; border-radius: 999px; background: #24201F; color: #FFD09A; font-size: .8125rem; font-weight: 900; }
.xq-bin b { font-family: var(--font-en); font-size: 1.1rem; color: #FFF8EF; }
.xq-card { display: grid; }
.xq-face { grid-area: 1 / 1; display: grid; gap: .7rem; align-content: start; }
.xq-back { visibility: hidden; }
.xc-quiz.is-back .xq-front { visibility: hidden; }
.xc-quiz.is-back .xq-back { visibility: visible; }
.xq-en { font-family: var(--font-en); font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.xq-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.xq-choices button {
  min-height: 3rem; padding: .35rem .6rem; border-radius: 12px;
  border: 2px solid #24201F; background: #fff; color: #24201F;
  font: 700 1rem/1.2 var(--font-en); cursor: pointer; overflow-wrap: anywhere;
}
.xq-choices button:hover:not(:disabled) { background: #FFD09A; }
.xq-choices button:disabled { cursor: default; }
.xq-choices button:focus-visible, .xq-next:focus-visible { outline: 3px solid #A63828; outline-offset: 2px; }
.xq-verdict { font-size: 1.2rem; font-weight: 900; }
.xq-verdict span { display: none; }
.xc-quiz.is-ok .fb-ok, .xc-quiz.is-ng .fb-ng { display: inline; }
.xc-quiz.is-ng .xq-verdict { color: #A63828; }
.xq-pick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: var(--font-en); font-size: 1.2rem; font-weight: 700; }
.xq-pick s { color: #6B605A; }
.xq-pick .ok { padding: .05em .5em; border-radius: 8px; background: #FFD09A; }
.xq-next { justify-self: start; min-height: 3rem; padding: .5rem 1.3rem; border: 0; border-radius: 999px; background: #24201F; color: #FFF8EF; font-weight: 900; cursor: pointer; }

/* 04 文章と進行表示 */
.xr-title { font-weight: 900; font-size: .9375rem; }
.xr-lines { display: grid; gap: .3rem; }
.xr-lines li { padding: .35rem .55rem; border-radius: 10px; font-family: var(--font-en); font-size: .9375rem; line-height: 1.4; color: #6B605A; }
.xr-lines li:nth-child(2) { background: #FFD09A; color: #24201F; }
.xr-progress { display: flex; align-items: center; gap: .6rem; }
.xr-play { width: 0; height: 0; border-style: solid; border-width: .5em 0 .5em .85em; border-color: transparent transparent transparent #A63828; }
.xr-bar { position: relative; flex: 1 1 auto; height: .45rem; border-radius: 999px; background: #E6D5C3; overflow: hidden; }
.xr-bar i { position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: inherit; background: #A63828; }
.xr-marks { display: flex; gap: .3rem; }
.xr-marks i { width: .55rem; height: .55rem; border-radius: 50%; background: #A63828; }
.xr-marks i:nth-child(3) { background: #E6D5C3; }

/* 05 声を重ねるタイミング */
.xs-lane { display: grid; gap: .25rem; }
.xs-label { font-size: .8125rem; font-weight: 900; color: #6B605A; }
.xs-words { font-family: var(--font-en); font-size: 1.15rem; font-weight: 700; line-height: 1.45; }
.xs-words span { display: inline-block; padding: 0 .12em; border-radius: 6px; }
.xs-you .xs-words { padding-left: .9em; }                 /* すぐ後ろから重ねる（少し遅れて始まる） */
.xs-you .xs-words span { color: #A63828; }

/* 06 音ごとのフィードバック例 */
.xp-word { font-family: var(--font-en); font-size: 2.25rem; font-weight: 800; line-height: 1.1; }
.xp-sounds { display: flex; flex-wrap: wrap; gap: .5rem; }
.xp-sounds li { display: grid; justify-items: center; gap: .35rem; min-width: 4.25rem; padding: .6rem .7rem .5rem; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 2px #E6D5C3; }
.xp-sounds li > span { font-family: var(--font-en); font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.xp-sounds li.is-focus { background: #FFF1E3; box-shadow: inset 0 0 0 3px #A63828; }
.xp-mark { display: grid; place-items: center; width: 1.7rem; height: 1.7rem; }
.xp-ok::before { content: ""; width: .5rem; height: .9rem; margin-top: -.2rem; border: solid #6B605A; border-width: 0 3px 3px 0; transform: rotate(45deg); }

@media (prefers-reduced-motion: no-preference) {
  .stage.enter[data-scene="1"] .xm-head .xc-mouth rect { animation: xc-talk 480ms ease-in-out 200ms 3 both; }
  .stage.enter[data-scene="1"] .xm-list li { animation: xc-deal 520ms var(--ease-spring) both; }
  .stage.enter[data-scene="1"] .xm-list li:nth-child(1) { animation-delay: 700ms; }
  .stage.enter[data-scene="1"] .xm-list li:nth-child(2) { animation-delay: 1000ms; }
  .stage.enter[data-scene="1"] .xm-list li:nth-child(3) { animation-delay: 1300ms; }
  .stage.enter[data-scene="1"] .xm-bar i { animation: xc-grow 360ms var(--ease-emph) both; }
  .stage.enter[data-scene="1"] .xm-bar i:nth-child(1) { animation-delay: 1050ms; }
  .stage.enter[data-scene="1"] .xm-bar i:nth-child(2) { animation-delay: 1350ms; }
  .stage.enter[data-scene="1"] .xm-bar i:nth-child(3) { animation-delay: 1650ms; }

  .stage.enter[data-scene="2"] .xq-card { animation: xc-deal 560ms var(--ease-spring) 250ms both; }
  .stage.enter[data-scene="2"] .xq-choices button { animation: xc-pop 380ms var(--ease-spring) both; }
  .stage.enter[data-scene="2"] .xq-choices button:nth-child(1) { animation-delay: 650ms; }
  .stage.enter[data-scene="2"] .xq-choices button:nth-child(2) { animation-delay: 740ms; }
  .stage.enter[data-scene="2"] .xq-choices button:nth-child(3) { animation-delay: 830ms; }
  .stage.enter[data-scene="2"] .xq-choices button:nth-child(4) { animation-delay: 920ms; }
  .xc-quiz.is-flip .xq-card { animation: xc-flip 420ms var(--ease-emph); }
  .xq-bin.is-hit { animation: xc-pop 420ms var(--ease-spring); }

  .stage.enter[data-scene="3"] .xr-lines li:nth-child(1) { animation: xc-lit-pass 1300ms ease 300ms both; }
  .stage.enter[data-scene="3"] .xr-lines li:nth-child(2) { animation: xc-lit-stay 600ms ease 1500ms both; }
  .stage.enter[data-scene="3"] .xr-bar i { animation: xc-bar 2100ms linear 300ms both; }
  .stage.enter[data-scene="3"] .xr-marks i:nth-child(1) { animation: xc-pop 360ms var(--ease-spring) 900ms both; }
  .stage.enter[data-scene="3"] .xr-marks i:nth-child(2) { animation: xc-pop 360ms var(--ease-spring) 1600ms both; }

  .stage.enter[data-scene="4"] .xs-words span { animation: xc-word 600ms ease both; }
  .stage.enter[data-scene="4"] .xs-model .xs-words span:nth-child(1) { animation-delay: 300ms; }
  .stage.enter[data-scene="4"] .xs-model .xs-words span:nth-child(2) { animation-delay: 580ms; }
  .stage.enter[data-scene="4"] .xs-model .xs-words span:nth-child(3) { animation-delay: 860ms; }
  .stage.enter[data-scene="4"] .xs-model .xs-words span:nth-child(4) { animation-delay: 1140ms; }
  .stage.enter[data-scene="4"] .xs-model .xs-words span:nth-child(5) { animation-delay: 1420ms; }
  .stage.enter[data-scene="4"] .xs-model .xs-words span:nth-child(6) { animation-delay: 1700ms; }
  .stage.enter[data-scene="4"] .xs-you .xs-words span { animation-name: xc-word-you; }
  .stage.enter[data-scene="4"] .xs-you .xs-words span:nth-child(1) { animation-delay: 660ms; }
  .stage.enter[data-scene="4"] .xs-you .xs-words span:nth-child(2) { animation-delay: 940ms; }
  .stage.enter[data-scene="4"] .xs-you .xs-words span:nth-child(3) { animation-delay: 1220ms; }
  .stage.enter[data-scene="4"] .xs-you .xs-words span:nth-child(4) { animation-delay: 1500ms; }
  .stage.enter[data-scene="4"] .xs-you .xs-words span:nth-child(5) { animation-delay: 1780ms; }
  .stage.enter[data-scene="4"] .xs-you .xs-words span:nth-child(6) { animation-delay: 2060ms; }

  .stage.enter[data-scene="5"] .xp-word { animation: xc-deal 520ms var(--ease-spring) 200ms both; }
  .stage.enter[data-scene="5"] .xp-sounds li { animation: xc-pop 420ms var(--ease-spring) both; }
  .stage.enter[data-scene="5"] .xp-sounds li:nth-child(1) { animation-delay: 650ms; }
  .stage.enter[data-scene="5"] .xp-sounds li:nth-child(2) { animation-delay: 800ms; }
  .stage.enter[data-scene="5"] .xp-sounds li:nth-child(3) { animation-delay: 950ms; }
  .stage.enter[data-scene="5"] .xp-sounds li.is-focus { animation: xc-pop 420ms var(--ease-spring) 650ms both, xc-ring 900ms ease 1500ms 2; }
  .stage.enter[data-scene="5"] .xp-sounds .is-focus .xc-mouth rect { animation: xc-talk 480ms ease-in-out 1500ms 3 both; }
}
@keyframes xc-deal { from { opacity: 0; transform: translateY(-18px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes xc-pop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes xc-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes xc-talk { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.2); } }
@keyframes xc-flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(80deg); } 100% { transform: rotateX(0); } }
@keyframes xc-lit-pass { 0% { background: transparent; color: #6B605A; } 20%, 80% { background: #FFD09A; color: #24201F; } 100% { background: transparent; color: #6B605A; } }
@keyframes xc-lit-stay { from { background: transparent; color: #6B605A; } to { background: #FFD09A; color: #24201F; } }
@keyframes xc-bar { from { width: 0; } to { width: 62%; } }
@keyframes xc-word { 0% { background: transparent; } 30% { background: #FFD09A; } 100% { background: transparent; } }
@keyframes xc-word-you { 0% { background: transparent; color: #A63828; } 30% { background: #24201F; color: #FFF8EF; } 100% { background: transparent; color: #A63828; } }
@keyframes xc-ring { 0%, 100% { box-shadow: inset 0 0 0 3px #A63828; } 50% { box-shadow: inset 0 0 0 3px #A63828, 0 0 0 6px rgba(166, 56, 40, .22); } }

/* The full flashcard quiz is embedded once in scene 03. */
.stage-quiz { width: 100%; min-width: 0; color: var(--md-on-surface); scroll-margin-top: 6rem; }
.stage-quiz .q-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stage-quiz .q-en { font-size: clamp(1.15rem, 1rem + .5vw, 1.6rem); }
.stage-quiz .q-face { padding: clamp(.8rem, .6rem + 1vw, 1.4rem); }
.stage-quiz .quiz-note { font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .stage.enter[data-scene="2"] .stage-quiz { animation: xc-deal 560ms var(--ease-spring) 250ms both; }
}

/* Display preferences stay beside the header controls. */
.display-settings { position: relative; }
.display-settings > summary { cursor: pointer; min-height: 3rem; display: flex; align-items: center; padding: .25rem .75rem; font-weight: 700; border-radius: var(--shape-full); }
.display-settings > summary::after { content: "⌄"; margin-left: .4rem; }
.display-settings > summary::-webkit-details-marker { display: none; }
.display-panel { position: absolute; z-index: 20; top: calc(100% + .5rem); right: 0; display: grid; gap: .5rem; min-width: 10rem; padding: .75rem; background: var(--md-surface); color: var(--md-on-surface); border: 1px solid var(--md-outline); border-radius: var(--shape-s); box-shadow: 0 .5rem 1.5rem #0002; }
.display-panel .theme-control select { width: 100%; }
.display-panel .band-toggle { position: static; margin: 0; min-height: 3rem; padding: .5rem .75rem; font-size: .9375rem; border: 1px solid var(--md-outline); color: inherit; background: transparent; }


/* ChatGPT profile component; portrait supplied by the founder. */
.founder-profile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 13fr);
  align-items: start;
  gap: clamp(2rem, 5vw, 5rem);
  min-inline-size: 0;
  padding-block: clamp(1.5rem, 4vw, 3rem);
  color: var(--md-on-surface, #24201F);
  font-family: inherit;
}
.founder-profile, .founder-profile * { box-sizing: border-box; }
.founder-profile :where(h3, p, dl, dt, dd, blockquote) { margin: 0; }
.founder-profile__portrait {
  position: relative;
  inline-size: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #FFD09A;
  background: color-mix(in srgb, var(--md-surface, #FFF8EF) 75%, #FFD09A);
}
.founder-profile__portrait img {
  position: absolute;
  inset: 0;
  display: block;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center 35%;
}
.founder-profile__content { min-inline-size: 0; display: grid; gap: 1.75rem; }
.founder-profile__header { display: grid; gap: .75rem; }
.founder-profile .founder-profile__label { color: var(--md-primary, #A63828); font-size: .875rem; font-weight: 700; line-height: 1.6; }
.founder-profile h3 { font-family: inherit; font-size: clamp(2.25rem, 4vw, 3.5rem); font-weight: 750; line-height: 1.3; letter-spacing: .04em; overflow-wrap: anywhere; }
.founder-profile .founder-profile__role { font-size: 1rem; line-height: 1.6; }
.founder-profile .founder-profile__bio { max-inline-size: 38em; font-size: 1rem; line-height: 1.95; overflow-wrap: anywhere; }
.founder-profile__credentials { display: grid; gap: .625rem; padding-block: 1.25rem; border-block: 1px solid var(--md-outline, #D9C7B8); }
.founder-profile__credentials > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1.5rem; }
.founder-profile__credentials dt { flex: 1 1 10rem; font-size: .9375rem; line-height: 1.6; }
.founder-profile__credentials dd { display: flex; align-items: baseline; gap: .25rem; line-height: 1.3; }
.founder-profile__credentials strong { font-size: 1.75rem; font-weight: 700; font-variant-numeric: lining-nums tabular-nums; }
.founder-profile__credentials dd span { font-size: .9375rem; }
.founder-profile .founder-profile__message { padding: 0; border: 0; background: none; font-style: normal; }
.founder-profile__message::before, .founder-profile__message::after { content: none; }
.founder-profile__message p { max-inline-size: 36em; font-size: 1.0625rem; font-weight: 600; line-height: 1.9; overflow-wrap: anywhere; }
@media (max-width: 48rem) {
  .founder-profile { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .founder-profile__content { gap: 1.5rem; }
}

/* ---------- 01案：迷わず、すぐ始まり、次へ自然に進む（data-hero01="flow"） ----------
 * 01 は練習の実演ではなく入口。今日のメニュー3つが輪の上に決まり、1つずつ口へ入り、輪が埋まり、次へ進み、最後に口の外枠が半周する。
 * 文字は使わない。3つの札の印は、音の波（シャドーイング）・4つの選択肢（クイズ）・文の行（瞬間英作文）の抽象。
 * 止まった状態（reduced-motion）が完成形：3つとも済みの印、輪は一周。
 * 戻すとき：index.html の stage から data-hero01="flow" を消すと、今までの 01（日英カードと単語の輪）に戻る。 */
.g-flow { opacity: 0; }
.stage[data-hero01="flow"][data-scene="0"] .g-flow { opacity: 1; }
.stage[data-hero01="flow"] .g-loop, .stage[data-hero01="flow"] .words, .stage[data-hero01="flow"] .speak { display: none; }
.flow-track { fill: none; stroke: var(--g-track); stroke-width: 26; }
.flow-fill { fill: none; stroke: var(--g-hi); stroke-width: 26; stroke-dasharray: 100; stroke-dashoffset: 0; }
.visual-svg .flow-fill { transform: rotate(-90deg); transform-origin: 300px 300px; transform-box: view-box; }
.flow-cursor-arc { fill: none; stroke: var(--sc-on); stroke-width: 26; stroke-linecap: round; stroke-dasharray: 34 326; stroke-dashoffset: -253; opacity: 0; }
.ft-bg { fill: var(--g-track); stroke: var(--sc-on); stroke-width: 4; }
.ft-g { fill: var(--sc-on); }
.ft-check circle { fill: var(--g-hi); }
.ft-check path { fill: none; stroke: var(--sc-bg); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.visual-svg .ft, .visual-svg .ft-check { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  .stage.enter[data-hero01="flow"][data-scene="0"] .ft1 { animation: ft-life1 7.2s var(--ease-emph) both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .ft2 { animation: ft-life2 7.2s var(--ease-emph) both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .ft3 { animation: ft-life3 7.2s var(--ease-emph) both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .ft1 .ft-bg { animation: ft-fill1 7.2s linear both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .ft2 .ft-bg { animation: ft-fill2 7.2s linear both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .ft3 .ft-bg { animation: ft-fill3 7.2s linear both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .ft1 .ft-check { animation: ft-check1 7.2s var(--ease-spring) both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .ft2 .ft-check { animation: ft-check2 7.2s var(--ease-spring) both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .ft3 .ft-check { animation: ft-check3 7.2s var(--ease-spring) both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .flow-fill { animation: flow-fill 7.2s var(--ease-emph) both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .flow-cursor { animation: flow-cursor 7.2s var(--ease-emph) both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .flow-cursor-arc { animation: flow-cursor-on 7.2s linear both; }
  .stage.enter[data-hero01="flow"][data-scene="0"] .kuchi-open { transform-box: fill-box; transform-origin: center; animation: flow-talk 7.2s ease-in-out both; }
}
/* 札：決まる（ぽんと出る）→ 口へ入る → 済みの印で元の場所へ戻る */
@keyframes ft-life1 { 0% { opacity: 0; transform: scale(.3); } 8% { opacity: 1; transform: none; } 18% { opacity: 1; transform: none; } 25% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } 29% { opacity: 0; transform: scale(.85); } 33%, 100% { opacity: 1; transform: none; } }
@keyframes ft-life2 { 0%, 2% { opacity: 0; transform: scale(.3); } 10% { opacity: 1; transform: none; } 44% { opacity: 1; transform: none; } 51% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } 56% { opacity: 0; transform: scale(.85); } 60%, 100% { opacity: 1; transform: none; } }
@keyframes ft-life3 { 0%, 4% { opacity: 0; transform: scale(.3); } 12.5% { opacity: 1; transform: none; } 71% { opacity: 1; transform: none; } 78% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } 82% { opacity: 0; transform: scale(.85); } 86%, 100% { opacity: 1; transform: none; } }
@keyframes ft-fill1 { 0%, 29% { fill: var(--sc-bg); } 33%, 100% { fill: var(--g-track); } }
@keyframes ft-fill2 { 0%, 56% { fill: var(--sc-bg); } 60%, 100% { fill: var(--g-track); } }
@keyframes ft-fill3 { 0%, 82% { fill: var(--sc-bg); } 86%, 100% { fill: var(--g-track); } }
@keyframes ft-check1 { 0%, 29% { opacity: 0; transform: scale(.4); } 33% { opacity: 1; transform: scale(1.15); } 36%, 100% { opacity: 1; transform: none; } }
@keyframes ft-check2 { 0%, 56% { opacity: 0; transform: scale(.4); } 60% { opacity: 1; transform: scale(1.15); } 63%, 100% { opacity: 1; transform: none; } }
@keyframes ft-check3 { 0%, 82% { opacity: 0; transform: scale(.4); } 86% { opacity: 1; transform: scale(1.15); } 89%, 100% { opacity: 1; transform: none; } }
/* 輪：1つ済むごとに次の札まで埋まる */
@keyframes flow-fill { 0%, 21% { stroke-dashoffset: 100; } 33%, 49% { stroke-dashoffset: 66.67; } 60%, 75% { stroke-dashoffset: 33.33; } 86%, 100% { stroke-dashoffset: 0; } }
/* 今の位置：札から札へ輪の上を進む */
@keyframes flow-cursor { 0%, 33% { transform: rotate(0deg); } 44%, 60% { transform: rotate(120deg); } 71%, 100% { transform: rotate(240deg); } }
@keyframes flow-cursor-on { 0%, 11% { opacity: 0; } 13%, 86% { opacity: 1; } 92%, 100% { opacity: 0; } }
/* 口：札が入るたびに話すように開閉する */
@keyframes flow-talk {
  0%, 18% { transform: scaleY(1); } 20% { transform: scaleY(.35); } 22% { transform: scaleY(1); } 24% { transform: scaleY(.4); } 27% { transform: scaleY(1); }
  44% { transform: scaleY(1); } 46% { transform: scaleY(.35); } 48% { transform: scaleY(1); } 50% { transform: scaleY(.4); } 53% { transform: scaleY(1); }
  71% { transform: scaleY(1); } 73% { transform: scaleY(.35); } 75% { transform: scaleY(1); } 77% { transform: scaleY(.4); } 80%, 100% { transform: scaleY(1); }
}

.about-intro { grid-column: 1 / -1; max-width: 60rem; }
.about-intro .about-def { margin-block-end: 0; }
.founder-profile { padding-block-start: 0; }

/* Coach menu selection reasons */
.xm-reasons { margin-top:.8rem; padding-top:1rem; border-top:1px solid rgba(36,32,31,.2); }
.xm-reasons h3 { font-size:.85rem; font-weight:800; line-height:1.55; margin:0 0 .8rem; }
.xm-reasons dl { display:grid; gap:.8rem; margin:0; }
.xm-reasons dt { color:#A63828; font-size:.82rem; font-weight:900; }
.xm-reasons dd { margin:.15rem 0 0; font-size:.85rem; line-height:1.65; font-weight:500; }

/* ==========================================================================
   下部の再設計(2026-09-24): 01 続けやすい学習設計 / 02 料金 / 03 クチリピと開発者 / FAQ / 締め
   既存の色・文字・形のトークンだけを使う。左の縦線アクセントは使わない。
   動きは [data-reveal] → .is-in(script.js 既存)で1回だけ始まり、有限回で止まる。
   減モーションでは動かさない。反復帯の「動きを止める」中は一時停止する。
   ========================================================================== */

/* ---------- L1. 01 続けやすい学習設計 ---------- */
.lo-flow__head { max-inline-size: 52rem; }
.lo-flow__lead { margin-top: 1.25rem; max-inline-size: 34em; font-size: var(--type-title-m); font-weight: 700; line-height: 1.95; }

.lo-loop {
  --lo-run: 9s;
  position: relative; margin-top: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto;
}
.lo-loop__track { grid-row: 1; position: relative; height: 4.5rem; }
.lo-loop__track::before {
  content: ""; position: absolute; left: 12.5%; right: 12.5%; top: 50%; height: 3px; translate: 0 -50%;
  border-radius: 3px; background: currentColor; opacity: .35;
}
.lo-loop__track::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle, var(--apricot) 0 6px, transparent 7px) 0 50% / 25% 100% repeat-x;
}
.lo-loop__runner { position: absolute; z-index: 1; left: 0; top: 0; width: 25%; height: 100%; display: grid; place-items: center; }
.lo-loop__runner svg { width: 4rem; height: 4rem; overflow: visible; }
.lo-jaw { fill: none; stroke: var(--apricot); stroke-width: 20; }
.lo-open { fill: var(--ink); transform-box: fill-box; transform-origin: center; }
.lo-loop__steps { grid-row: 2; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(.5rem, .25rem + 1vw, 1rem); }
.lo-step {
  display: grid; align-content: start; gap: .35rem;
  padding: clamp(1rem, .75rem + 1vw, 1.5rem) clamp(.9rem, .6rem + 1vw, 1.4rem) clamp(1.1rem, .8rem + 1vw, 1.6rem);
  border-radius: 22px; background: var(--md-surface); color: var(--md-on-surface);
}
.lo-step__num {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--red); color: var(--paper); font-family: var(--font-latin); font-size: .9375rem; font-weight: 900; line-height: 1;
}
.lo-step__t { margin-top: .4rem; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); font-weight: 900; line-height: 1.2; letter-spacing: .02em; }
.lo-step__d { font-size: var(--type-body-m); font-weight: 700; line-height: 1.65; }
.lo-loop__return { grid-row: 3; position: relative; height: 3.75rem; }
.lo-loop__lane { position: absolute; inset: 0 0 .9rem; width: 100%; height: calc(100% - .9rem); overflow: visible; }
.lo-loop__lane path { fill: none; stroke: var(--apricot); stroke-width: 2.5; stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; }
.lo-loop__return::before {
  content: ""; position: absolute; left: 12.5%; top: -.1rem; translate: -50% 0;
  border: 7px solid transparent; border-bottom: 10px solid var(--apricot); border-top: 0;
}
.lo-loop__again {
  position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  padding: .3rem 1rem; border-radius: var(--shape-full); background: var(--plane-red-bg); color: var(--apricot);
  font-size: var(--type-label-m); font-weight: 900; letter-spacing: .12em; white-space: nowrap;
}

/* 週5回の目安(既存の週の帯を 01 の中の墨の面に) */
.lo-week {
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  padding: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  border-radius: calc(var(--shape-l) + 8px); background: var(--plane-ink-bg); color: var(--plane-ink-on);
}
.lo-week .week-title { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 3rem); }

@media (max-width: 47.9375em) {
  .lo-loop { grid-template-columns: 3.75rem minmax(0, 1fr); grid-template-rows: auto auto; column-gap: .5rem; }
  .lo-loop__track { grid-row: 1; grid-column: 1; height: auto; }
  .lo-loop__track::before { left: 50%; right: auto; top: 12.5%; bottom: 12.5%; width: 3px; height: auto; translate: -50% 0; }
  .lo-loop__track::after { background: radial-gradient(circle, var(--apricot) 0 6px, transparent 7px) 50% 0 / 100% 25% repeat-y; }
  .lo-loop__runner { width: 100%; height: 25%; }
  .lo-loop__runner svg { width: 3.25rem; height: 3.25rem; }
  .lo-loop__steps { grid-row: 1; grid-column: 2; grid-template-columns: minmax(0, 1fr); grid-auto-rows: 1fr; }
  .lo-loop__return { grid-row: 2; grid-column: 1 / -1; height: auto; margin-top: 1rem; display: flex; justify-content: center; }
  .lo-loop__lane, .lo-loop__return::before { display: none; }
  .lo-loop__again { position: static; translate: none; background: transparent; border: 2px dashed var(--apricot); }
  .lo-loop__again::before { content: "\21BB\00a0"; }
}

@media (prefers-reduced-motion: no-preference) {
  .lo-loop.is-in .lo-loop__runner { animation: lo-run-x var(--lo-run) var(--ease-emph) 3 backwards; }
  .lo-loop.is-in .lo-step { animation: lo-lit var(--lo-run) linear 3 backwards; }
  .lo-loop.is-in .lo-step:nth-child(2) { animation-delay: calc(var(--lo-run) * .25); }
  .lo-loop.is-in .lo-step:nth-child(3) { animation-delay: calc(var(--lo-run) * .5); }
  .lo-loop.is-in .lo-step:nth-child(4) { animation-delay: calc(var(--lo-run) * .75); }
  .lo-loop.is-in .lo-loop__lane path { animation: lo-lane var(--lo-run) linear 3; }
  .js-motion .lo-loop:not(.is-in) .lo-step { opacity: 0; transform: translateY(24px); }
  .lo-step { transition: opacity 600ms var(--ease-decel), transform 600ms var(--ease-decel); }
  @media (max-width: 47.9375em) {
    .lo-loop.is-in .lo-loop__runner { animation-name: lo-run-y; }
  }
  /* 反復帯の「動きを止める」中は止める */
  body:has([data-band].is-paused) .lo-loop *,
  body:has([data-band].is-paused) .lo-flow * { animation-play-state: paused !important; }
}
@keyframes lo-run-x {
  0% { transform: translateX(0); opacity: 0; }
  3% { opacity: 1; }
  18% { transform: translateX(0); }
  27%, 43% { transform: translateX(100%); }
  52%, 68% { transform: translateX(200%); }
  77% { transform: translateX(300%); }
  92% { transform: translateX(300%); opacity: 1; }
  97%, 100% { transform: translateX(300%); opacity: 0; }
}
@keyframes lo-run-y {
  0% { transform: translateY(0); opacity: 0; }
  3% { opacity: 1; }
  18% { transform: translateY(0); }
  27%, 43% { transform: translateY(100%); }
  52%, 68% { transform: translateY(200%); }
  77% { transform: translateY(300%); }
  92% { transform: translateY(300%); opacity: 1; }
  97%, 100% { transform: translateY(300%); opacity: 0; }
}
@keyframes lo-lit {
  0% { background: var(--md-surface); color: var(--md-on-surface); transform: none; }
  3%, 18% { background: var(--apricot); color: var(--ink); transform: translateY(-6px); }
  23%, 100% { background: var(--md-surface); color: var(--md-on-surface); transform: none; }
}
@keyframes lo-lane { 0%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -42; } }
/* ---------- L2. 02 料金 ---------- */
.lo-plans { grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: clamp(1rem, .5rem + 1.5vw, 1.75rem); align-items: stretch; }
.lo-plan {
  display: flex; flex-direction: column; gap: 1.35rem;
  padding: clamp(1.75rem, 1.1rem + 2.4vw, 3.25rem);
  border: 0; border-radius: calc(var(--shape-l) + 12px); box-shadow: none;
}
.lo-plan .plan-top h3 { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); }
.lo-plan .amount { font-family: var(--font-latin); font-weight: 900; font-size: clamp(3.75rem, 2rem + 6.5vw, 7rem); letter-spacing: -.035em; }
.lo-plan .unit { font-size: var(--type-title-m); font-weight: 900; }
.lo-plan .plan-terms { align-self: start; gap: .5rem; }
.lo-plan .plan-terms li { padding-left: 1.75rem; font-weight: 700; }
.lo-plan .plan-terms li::before {
  left: 0; top: .5em; width: 1.05rem; height: 1.05rem; border: 0; border-radius: 50%;
  background: currentColor; opacity: .9;
  -webkit-mask: radial-gradient(circle, #000 0 .22rem, transparent .24rem); mask: radial-gradient(circle, #000 0 .22rem, transparent .24rem);
}
.lo-plan .btn { margin-top: auto; }
.referral-entry-link { display: block; width: fit-content; padding-block: .65rem; font-size: .9375rem; font-weight: 700; text-underline-offset: .25em; }
.referral-entry { scroll-margin-top: 7rem; font-size: .9375rem; }
.referral-entry summary { cursor: pointer; padding-block: .65rem; font-weight: 700; }
.referral-entry form { margin-top: .5rem; padding: 1.2rem; border-radius: 1.25rem; background: var(--apricot); color: var(--ink); }
.referral-entry label { display: block; margin-bottom: .6rem; font-weight: 800; }
.referral-entry-row { display: flex; flex-wrap: wrap; gap: .65rem; }
.referral-entry input { flex: 1 1 14rem; min-width: 0; width: 100%; padding: .8rem; border: 0; border-radius: .7rem; background: var(--paper); color: var(--ink); font: 600 1rem/1.5 monospace; }
.referral-entry-row .btn { flex: 0 0 auto; margin: 0; min-height: 48px; }
.referral-entry small { display: block; margin-top: .55rem; }
.lo-plan .plan-terms { margin-bottom: .5rem; }
@media (max-width: 29.9375em) { .lo-plan .btn { padding-inline: .9rem; font-size: 1rem; } }

/* 月額: 朱赤の大きな面 */
.lo-plan--m { background: var(--plane-red-bg); color: var(--plane-red-on); box-shadow: var(--elev-2); }
.lo-plan--m .amount { color: inherit; }
.lo-plan--m .plan-badge { background: var(--apricot); color: var(--ink); border-radius: var(--shape-full); padding: .35rem .95rem; }
.lo-plan--m .btn-paper { color: var(--red); }
/* 年額: 暖白より一段濃い面 */
.lo-plan--y { background: var(--md-surface-2); color: var(--md-on-surface); }
.lo-plan--y .plan-badge-line { border-radius: var(--shape-full); padding: .3rem .9rem; }

/* 14日間の無料期間(装飾。意味は下の条件の文で伝える) */
.lo-trial { display: grid; gap: .5rem; }
.lo-trial__days { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)) 2.25rem; gap: 4px; align-items: center; }
.lo-trial__days li { height: .75rem; border-radius: 3px; background: var(--apricot); }
.lo-trial__days::after { content: ""; height: 1.5rem; border-radius: 6px; background: var(--plane-red-on); }
.lo-trial__labels { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--type-label-m); font-weight: 900; letter-spacing: .04em; }

/* 無料版 → 有料プラン */
.lo-fp { margin-top: clamp(1rem, .5rem + 1.5vw, 1.75rem); grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: stretch; gap: .75rem; }
.lo-fp .fp { display: grid; align-content: center; gap: .35rem; padding: clamp(1.25rem, 1rem + 1vw, 1.75rem) clamp(1.25rem, 1rem + 1.2vw, 2rem); border: 0; border-radius: calc(var(--shape-l) + 4px); }
.lo-fp__free { background: var(--md-surface-2); color: var(--md-on-surface); }
.lo-fp__paid { background: var(--plane-ink-bg); color: var(--plane-ink-on); }
.lo-fp__paid .fp-label { color: var(--apricot); }
.lo-fp__free .fp-label { color: var(--md-primary); }
.lo-fp__arrow { align-self: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--apricot); position: relative; }
.lo-fp__arrow::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: .8rem; height: .8rem;
  border-top: 3px solid var(--ink); border-right: 3px solid var(--ink); translate: -2px 0; rotate: 45deg;
}
.lo-price .terms-line { max-inline-size: 52em; }

/* 詳しい条件: 面の開閉 */
.lo-more { margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem); border: 0; border-radius: calc(var(--shape-l) + 4px); background: var(--md-surface-2); padding-inline: clamp(1.25rem, 1rem + 1.2vw, 2rem); }
.lo-more > summary { position: relative; list-style: none; min-height: 4rem; padding-right: 3rem; }
.lo-more > summary::-webkit-details-marker { display: none; }
.lo-more > summary::before, .lo-more > summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 1.1rem; height: 3px; border-radius: 2px; background: var(--md-primary);
  transition: transform 300ms var(--ease-emph);
}
.lo-more > summary::after { transform: rotate(90deg); }
.lo-more[open] > summary::after { transform: rotate(0); }
.lo-more .more-body { padding-bottom: 1.5rem; }

@media (max-width: 47.9375em) {
  .lo-fp { grid-template-columns: minmax(0, 1fr); }
  .lo-fp__arrow { justify-self: center; rotate: 90deg; }
}

@media (prefers-reduced-motion: no-preference) {
  .lo-plan { transition: transform 800ms var(--ease-decel), opacity 600ms var(--ease-decel); }
  .lo-plan--y { transition-delay: 120ms; }
  .js-motion .lo-plans:not(.is-in) .lo-plan { opacity: 0; transform: translateY(32px); }
  .lo-trial__days li { transform-origin: left center; }
  .js-motion .lo-plans:not(.is-in) .lo-trial__days li { transform: scaleX(0); }
  .lo-plans.is-in .lo-trial__days li { transition: transform 260ms var(--ease-decel); }
  .lo-plans.is-in .lo-trial__days li:nth-child(n) { transition-delay: calc(400ms + var(--i, 0) * 45ms); }
  .lo-trial__days li:nth-child(2) { --i: 1; } .lo-trial__days li:nth-child(3) { --i: 2; } .lo-trial__days li:nth-child(4) { --i: 3; }
  .lo-trial__days li:nth-child(5) { --i: 4; } .lo-trial__days li:nth-child(6) { --i: 5; } .lo-trial__days li:nth-child(7) { --i: 6; }
  .lo-trial__days li:nth-child(8) { --i: 7; } .lo-trial__days li:nth-child(9) { --i: 8; } .lo-trial__days li:nth-child(10) { --i: 9; }
  .lo-trial__days li:nth-child(11) { --i: 10; } .lo-trial__days li:nth-child(12) { --i: 11; } .lo-trial__days li:nth-child(13) { --i: 12; }
  .lo-trial__days li:nth-child(14) { --i: 13; }
  .lo-fp .fp, .lo-fp__arrow { transition: transform 700ms var(--ease-decel), opacity 600ms var(--ease-decel); }
  .js-motion .lo-fp:not(.is-in) .fp { opacity: 0; transform: translateY(20px); }
  .js-motion .lo-fp:not(.is-in) .lo-fp__arrow { opacity: 0; transform: translateX(-12px); }
  .lo-fp__arrow { transition-delay: 150ms; } .lo-fp__paid { transition-delay: 260ms; }
  .lo-more[open] .more-body { animation: lo-drop 360ms var(--ease-decel) both; }
}
@keyframes lo-drop { from { opacity: 0; transform: translateY(-8px); } }
/* ---------- L3. 03 クチリピと開発者 ---------- */
.lo-about { overflow-x: clip; }
.lo-about__intro {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: center;
}
.lo-about__def { margin-top: 1.5rem; max-inline-size: 34em; font-size: var(--type-body-l); line-height: 2; }
.lo-facts {
  margin-top: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem;
}
.lo-facts > div { display: grid; gap: .3rem; align-content: start; padding: 1rem 1.15rem; border-radius: var(--shape-m); background: var(--md-surface-2); }
.lo-facts dt { font-size: var(--type-label-m); font-weight: 900; letter-spacing: .08em; color: var(--md-primary); }
.lo-facts dd { font-size: var(--type-body-m); font-weight: 700; line-height: 1.7; }
.lo-about__more { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .9rem; font-size: var(--type-body-m); line-height: 1.8; color: var(--md-on-surface-variant); }
.lo-about__more-label { font-weight: 900; color: var(--md-on-surface); }

/* 画面2枚: 朱赤の大きな面に重ねる */
.lo-screens {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end;
  padding: clamp(2rem, 1.25rem + 3vw, 3.5rem) clamp(1rem, .5rem + 2vw, 2rem) clamp(2.5rem, 1.5rem + 3vw, 4rem);
  border-radius: calc(var(--shape-l) + 8px); background: var(--red);
}
.lo-screen { position: relative; margin: 0; }
.lo-screen img {
  width: 100%; height: auto; aspect-ratio: 414 / 900; object-fit: cover; object-position: top;
  border-radius: 22px; background: var(--paper);
  box-shadow: 0 0 0 5px var(--ink), var(--elev-3);
}
.lo-screen--back { grid-column: 1 / span 7; grid-row: 1; transform: rotate(-5deg) translateY(-6%); }
.lo-screen--front { grid-column: 6 / span 7; grid-row: 1; transform: rotate(4deg) translateY(4%); z-index: 1; }
.lo-screen figcaption {
  position: absolute; left: 50%; bottom: -1.1rem; translate: -50% 0; white-space: nowrap;
  padding: .35rem .85rem; border-radius: var(--shape-full);
  background: var(--paper); color: var(--ink); box-shadow: var(--elev-1);
  font-size: var(--type-label-m); font-weight: 900; line-height: 1.4;
}
.lo-screen--back figcaption { left: 1.25rem; translate: 0 0; }
.lo-screen.is-missing img { visibility: hidden; }

/* 開発者: 写真を主役に */
.lo-founder {
  --lo-photo-r: 28px; --lo-plane-off: 28px;
  margin-top: clamp(5rem, 3rem + 7vw, 10rem);
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 1rem + 5vw, 6rem); align-items: start;
  scroll-margin-top: 1rem;
}
.lo-founder__photo { position: relative; isolation: isolate; margin: 0 0 var(--lo-plane-off) var(--lo-plane-off); }
@media (min-width: 48em) { .lo-founder__photo { position: sticky; top: clamp(1rem, 4vh, 2.5rem); } }
.lo-founder__photo::before {
  content: ""; position: absolute; z-index: -1;
  inset: 18% 30% calc(var(--lo-plane-off) * -1) calc(var(--lo-plane-off) * -1);
  border-radius: var(--lo-photo-r); background: var(--red);
}
.lo-founder__photo picture { display: block; }
.lo-founder__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%;
  border-radius: var(--lo-photo-r); background: #E6E3E0;
}
.lo-founder__body { display: grid; gap: clamp(1.75rem, 1.25rem + 1.5vw, 2.5rem); padding-top: clamp(0rem, -3rem + 6vw, 3.5rem); }
.lo-founder__head { display: grid; gap: .6rem; }
.lo-founder__label { font-size: var(--type-label-m); font-weight: 900; letter-spacing: .14em; color: var(--md-primary); }
.lo-founder__name { font-size: clamp(2.75rem, 1.6rem + 4.2vw, 5.25rem); font-weight: 900; line-height: 1.08; letter-spacing: .06em; }
.lo-founder__role { font-size: var(--type-body-l); font-weight: 800; color: var(--md-on-surface-variant); }
.lo-creds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.5rem, .25rem + 1vw, 1rem); }
.lo-creds > div {
  display: grid; gap: .5rem; align-content: space-between;
  padding: clamp(.85rem, .55rem + 1vw, 1.35rem) clamp(.75rem, .5rem + 1vw, 1.35rem);
  border-radius: var(--shape-m); background: var(--md-surface-2);
}
.lo-creds dt { font-size: var(--type-label-m); font-weight: 800; line-height: 1.35; color: var(--md-on-surface-variant); }
.lo-creds dd { display: flex; align-items: baseline; gap: .15rem; }
.lo-creds strong {
  font-family: var(--font-latin); font-size: clamp(1.9rem, 1.2rem + 2.4vw, 3.1rem); font-weight: 900;
  line-height: 1; letter-spacing: -.02em; color: var(--md-primary); font-variant-numeric: lining-nums tabular-nums;
}
.lo-creds dd span { font-size: .9375rem; font-weight: 900; }
.lo-founder__bio { display: grid; gap: 1.1em; max-inline-size: 34em; font-size: var(--type-body-l); line-height: 2.05; }
.lo-founder__bio p:empty { display: none; }
.lo-founder__quote {
  position: relative; margin: .75rem 0 0;
  padding: clamp(2.6rem, 2.2rem + 1.2vw, 3.1rem) clamp(1.25rem, 1rem + 1.2vw, 2.25rem) clamp(1.5rem, 1.1rem + 1.2vw, 2rem);
  border-radius: var(--shape-l); background: var(--plane-apricot-bg); color: var(--plane-apricot-on);
}
.lo-founder__quote::before {
  content: "\201C"; position: absolute; top: .12em; left: .32em;
  font-family: var(--font-en); font-size: 4.25rem; line-height: 1; color: var(--md-primary);
}
.lo-founder__quote p { font-size: var(--type-title-m); font-weight: 800; line-height: 1.95; }

@media (max-width: 56.1875em) {
  .lo-about__intro { grid-template-columns: minmax(0, 1fr); }
  .lo-screens { max-inline-size: 34rem; }
}
@media (max-width: 47.9375em) {
  /* スマホ: 左右24px。写真 → 名前 → 資格 → 経歴 → ひとこと のまとまりの間は32px以上 */
  .lo-about > .wrap { width: calc(100% - 48px); }
  .lo-facts { grid-template-columns: minmax(0, 1fr); }
  .lo-founder { --lo-photo-r: 22px; --lo-plane-off: 12px; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .lo-founder__photo { margin: 0 var(--lo-plane-off) var(--lo-plane-off) 0; }
  .lo-founder__photo::before { inset: 22% calc(var(--lo-plane-off) * -1) calc(var(--lo-plane-off) * -1) 34%; }
  .lo-founder__body { padding-top: 0; gap: 2.25rem; }
  .lo-founder__head { gap: .5rem; }
  /* 資格は3列に押し込まず、1行ずつ(資格名は左、数字は右) */
  .lo-creds { grid-template-columns: minmax(0, 1fr); gap: .625rem; }
  .lo-creds > div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; }
  .lo-creds dt { font-size: .9375rem; font-weight: 800; }
  .lo-creds strong { font-size: 2rem; }
  .lo-founder__bio { gap: 1.5rem; font-size: 1rem; line-height: 1.8; }
  .lo-founder__quote { margin-top: 0; padding: 2.75rem 1.5rem 1.5rem; }
  .lo-founder__quote p { font-size: 1rem; line-height: 1.8; }
}

/* 動き: 画面に入ったら1回だけ(script.js の [data-reveal] → .is-in。減モーションでは最初から表示) */
@media (prefers-reduced-motion: no-preference) {
  .lo-screen, .lo-founder__photo img, .lo-founder__photo::before, .lo-founder__body > * {
    transition: transform 900ms var(--ease-decel), opacity 700ms var(--ease-decel), clip-path 1000ms var(--ease-emph);
  }
  .js-motion .lo-about__intro:not(.is-in) .lo-screen--back { transform: rotate(-11deg) translate(-8%, 18%); opacity: 0; }
  .js-motion .lo-about__intro:not(.is-in) .lo-screen--front { transform: rotate(10deg) translate(10%, 24%); opacity: 0; }
  .lo-screen--front { transition-delay: 120ms; }
  .js-motion .lo-founder:not(.is-in) .lo-founder__photo img { clip-path: inset(100% 0 0 0 round var(--lo-photo-r)); }
  .lo-founder__photo img { clip-path: inset(0 0 0 0 round var(--lo-photo-r)); }
  .js-motion .lo-founder:not(.is-in) .lo-founder__photo::before { transform: translate(-6%, 6%) scale(.9); opacity: 0; }
  .lo-founder__photo::before { transition-delay: 220ms; }
  .js-motion .lo-founder:not(.is-in) .lo-founder__body > * { transform: translateY(22px); opacity: 0; }
  .lo-founder__body > :nth-child(1) { transition-delay: 250ms; }
  .lo-founder__body > :nth-child(2) { transition-delay: 370ms; }
  .lo-founder__body > :nth-child(3) { transition-delay: 490ms; }
  .lo-founder__body > :nth-child(4) { transition-delay: 610ms; }
}
/* ---------- L4. FAQ ---------- */
.lo-faq__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: start; }
.lo-faq__head { display: grid; gap: 1.5rem; justify-items: start; }
@media (min-width: 56.25em) { .lo-faq__head { position: sticky; top: clamp(1rem, 6vh, 3rem); } }
.lo-faq__mark { width: clamp(5.5rem, 4rem + 5vw, 9rem); height: auto; overflow: visible; }
.lo-faq__mark .lo-faq__jaws { transform-box: view-box; transform-origin: 100px 100px; transform: rotate(-8deg); }
.lo-faq__mark path { fill: none; stroke: var(--md-primary); stroke-width: 20; }
.lo-faq__mark rect { fill: var(--md-on-surface); transform-box: fill-box; transform-origin: center; transform: scale(.72, .42); }
.lo-faq .faq-list { gap: .75rem; }
.lo-faq .faq {
  position: relative; border: 0; border-radius: 20px; background: var(--md-surface);
  box-shadow: 0 0 0 1px var(--md-outline-variant);
  transition: box-shadow 200ms, background-color 200ms;
}
.lo-faq .faq:hover { box-shadow: 0 0 0 2px var(--md-outline); }
.lo-faq .faq[open] { box-shadow: var(--elev-2); }
.lo-faq .faq::before {
  content: "Q" / ""; position: absolute; left: 1.1rem; top: 1.05rem;
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--md-primary); color: var(--md-on-primary);
  font-family: var(--font-latin); font-size: .9375rem; font-weight: 900; line-height: 1;
}
.lo-faq .faq summary { padding: 1.25rem 3.5rem 1.25rem 4rem; font-size: var(--type-body-l); font-weight: 800; }
.lo-faq .faq summary::before, .lo-faq .faq summary::after { right: 1.35rem; top: 50%; width: 1.1rem; height: 3px; margin-top: -1.5px; border-radius: 2px; background: var(--md-primary); }
.lo-faq .faq p { position: relative; padding: 0 1.5rem 1.5rem 4rem; font-size: var(--type-body-m); line-height: 1.95; color: var(--md-on-surface-variant); }
.lo-faq .faq p::before {
  content: "A" / ""; position: absolute; left: 1.1rem; top: -.1rem;
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--apricot); color: var(--ink);
  font-family: var(--font-latin); font-size: .9375rem; font-weight: 900; line-height: 1;
}
@media (max-width: 56.1875em) { .lo-faq__grid { grid-template-columns: minmax(0, 1fr); } .lo-faq__head { grid-template-columns: auto minmax(0, 1fr); align-items: center; } .lo-faq__mark { width: 4.5rem; } }
@media (max-width: 29.9375em) {
  .lo-faq .faq summary { padding: 1.1rem 3rem 1.1rem 3.4rem; font-size: var(--type-body-m); }
  .lo-faq .faq::before, .lo-faq .faq p::before { left: .8rem; width: 1.8rem; height: 1.8rem; }
  .lo-faq .faq p { padding: 0 1.1rem 1.25rem 3.4rem; }
  .lo-faq .faq summary::before, .lo-faq .faq summary::after { right: 1rem; }
}
@media (prefers-reduced-motion: no-preference) {
  .lo-faq .faq[open] p { animation: lo-drop 360ms var(--ease-decel) both; }
  .js-motion .lo-faq__list:not(.is-in) .faq { opacity: 0; transform: translateY(16px); }
  .lo-faq__list .faq { transition: opacity 500ms var(--ease-decel), transform 500ms var(--ease-decel), box-shadow 200ms; }
  .lo-faq__list .faq:nth-child(2) { transition-delay: 60ms; } .lo-faq__list .faq:nth-child(3) { transition-delay: 120ms; }
  .lo-faq__list .faq:nth-child(4) { transition-delay: 180ms; } .lo-faq__list .faq:nth-child(5) { transition-delay: 240ms; }
  .lo-faq__list .faq:nth-child(n+6) { transition-delay: 300ms; }
  .lo-faq__head.is-in .lo-faq__jaws { animation: lo-tilt 1.6s var(--ease-emph) 2 both; }
  .lo-faq__head.is-in .lo-faq__mark rect { animation: lo-think 1.6s ease-in-out 2 both; }
}
@keyframes lo-tilt { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(6deg); } }
@keyframes lo-think { 0%, 100% { transform: scale(.72, .42); } 50% { transform: scale(.5, .3); } }

/* ---------- L5. 締め(B の口を主役に) ---------- */
.lo-end { overflow: clip; }
.lo-end .end-grid { gap: 2rem clamp(2rem, 1rem + 5vw, 6rem); }
.lo-end .end-mark svg { width: clamp(9rem, 5rem + 16vw, 20rem); }
.lo-end__jaws { transform-box: view-box; transform-origin: 100px 100px; }
.lo-end__jaw { fill: none; stroke: var(--apricot); stroke-width: 20; transition: transform 140ms; }
.lo-end .em-open { fill: var(--ink); }
.lo-end .end-title { max-inline-size: 12em; }
@media (prefers-reduced-motion: no-preference) {
  .lo-end.is-in .lo-end__jaw--up { animation: lo-jaw-up 520ms ease-in-out 3 both; }
  .lo-end.is-in .lo-end__jaw--down { animation: lo-jaw-down 520ms ease-in-out 3 both; }
  .lo-end.is-in .lo-end__jaws { animation: lo-half 900ms var(--ease-emph) 1.65s both; }
  .js-motion .lo-end:not(.is-in) .end-title, .js-motion .lo-end:not(.is-in) .cta-group { opacity: 0; transform: translateY(24px); }
  .lo-end .end-title, .lo-end .cta-group { transition: opacity 700ms var(--ease-decel), transform 700ms var(--ease-decel); }
  .lo-end .cta-group { transition-delay: 150ms; }
}
@keyframes lo-jaw-up { 50% { transform: translateY(-9px); } }
@keyframes lo-jaw-down { 50% { transform: translateY(9px); } }
@keyframes lo-half { from { transform: rotate(0); } to { transform: rotate(180deg); } }

/* Ripi: a small companion in the learning scene, along the route, and at the finish. */
.ripi-host--menu { display:flex; justify-content:flex-end; align-items:center; gap:.3rem; min-width:0; margin-block:-.5rem -.25rem; }
.ripi-sign { font-size:.75rem; line-height:1.5; text-align:right; }
.ripi-sign b { display:block; font-size:1.2rem; }
.ripi-play { display:block; flex:none; transform-origin:50% 90%; }
.ripi-play img { display:block; width:100%; height:auto; }
.ripi-host--menu .ripi-play { width:5.5rem; }
.lo-loop__runner .ripi-runner { display:block; width:5rem; height:5rem; object-fit:contain; transform:rotate(-9deg); }
.ripi-end .ripi-play { width:clamp(9rem, 6rem + 14vw, 18rem); }
@media (prefers-reduced-motion:no-preference) {
  .ripi-play.is-playing { animation:ripi-scout 2.8s ease-in-out both; }
  @keyframes ripi-scout {
    0% { transform:translateX(8px) rotate(9deg); }
    17% { transform:translateX(-7px) rotate(-9deg); }
    34% { transform:translateY(-9px) rotate(5deg); }
    49% { transform:translateY(0) rotate(-3deg) scale(1.03,.97); }
    66% { transform:translateX(5px) rotate(8deg); }
    83% { transform:translateY(-4px) rotate(-4deg); }
    100% { transform:none; }
  }
}
@media (max-width:47.9375em) {
  .ripi-host--menu .ripi-play { width:4.5rem; }
  .lo-loop__runner .ripi-runner { width:3.75rem; height:3.75rem; }
  .ripi-end { justify-self:end; margin-block:-1rem; }
}

/* 場面の出し分け・高さ・グラフィックの位置は「6. SCENE STAGE」に一本化した（ここでは上書きしない）。 */
.plane-red .ripi-play img, .plane-red .ripi-runner {
  filter:drop-shadow(2px 0 0 #FFF8EF) drop-shadow(-2px 0 0 #FFF8EF) drop-shadow(0 2px 0 #FFF8EF) drop-shadow(0 -2px 0 #FFF8EF) drop-shadow(0 3px 0 rgb(36 32 31 / .22));
}
.ripi-hero { position:absolute; z-index:3; bottom:1%; left:1%; width:18%; pointer-events:none; }
.ripi-price { float:right; width:clamp(4rem, 8vw, 6rem); margin:-1rem 0 .5rem 1rem; }
.ripi-faq { width:clamp(5.5rem, 9vw, 8rem); margin-bottom:1rem; }

/* Curious companion: location-specific short actions, never a waiting screen. */
@media (prefers-reduced-motion:no-preference) {
 .ripi-hero.is-playing { animation:ripi-peek 2.2s ease-in-out both; }
 .ripi-host--menu .ripi-play.is-playing { animation:ripi-guide 1.8s ease-in-out both; }
 .ripi-faq.is-playing { animation:ripi-listen 2.5s ease-in-out both; }
 .ripi-end .ripi-play.is-playing { animation:ripi-hop 1.6s ease-in-out both; }
 @keyframes ripi-peek { 0%,100%{transform:translate(0,0) rotate(0)} 30%{transform:translate(12px,-8px) rotate(10deg)} 65%{transform:translate(4px,-4px) rotate(-5deg)} }
 @keyframes ripi-guide { 0%,100%{transform:translateX(0)} 40%{transform:translateX(-12px) rotate(-7deg)} 70%{transform:translateX(-5px) rotate(2deg)} }
 @keyframes ripi-listen { 0%,100%{transform:rotate(0)} 30%,60%{transform:rotate(13deg) translateY(-5px)} 80%{transform:rotate(-4deg)} }
 @keyframes ripi-hop { 0%,100%{transform:translateY(0)} 20%{transform:scale(1.06,.94)} 45%{transform:translateY(-18px) rotate(-6deg)} 70%{transform:scale(1.04,.96)} }
}
.stage[data-scene="2"] .ripi-hero img { filter:drop-shadow(2px 0 0 #FFF8EF) drop-shadow(-2px 0 0 #FFF8EF) drop-shadow(0 2px 0 #FFF8EF) drop-shadow(0 -2px 0 #FFF8EF); }

/* The public offer is monthly; annual is offered only after continued membership. */
.plans { grid-template-columns:minmax(0,1fr); max-width:58rem; margin-inline:auto; }
