/* ============================================================
   native-real AI — Drops × subtle esthetic
   ------------------------------------------------------------
   cream background, coral / ink / mint / caramel palette,
   chunky rounded tiles, rounded sans, game-feel animations.
   ============================================================ */

:root {
  /* ── ground (Drops: white-cool) ──────── */
  --bg:           #f4f7fb;
  --bg-2:         #e6edf6;
  --paper:        #ffffff;
  --ink:          #1f2937;
  --ink-2:        #4b5563;
  --ink-3:        #8a93a3;
  --line:         #dde4ee;

  /* ── Drops 6 hues (vivid, flat) ──────── */
  --blue:         #0095ff;
  --blue-deep:    #0078d4;
  --blue-soft:    #d6ecff;
  --yellow:       #ffd93d;
  --yellow-deep:  #e8b500;
  --yellow-soft:  #fff4c4;
  --coral:        #ff6b6b;
  --coral-deep:   #e84a4a;
  --coral-soft:   #ffe1e1;
  --mint:         #4ecdc4;
  --mint-deep:    #2bb5ab;
  --mint-soft:    #d9f5f2;
  --purple:       #a363d9;
  --purple-deep:  #7e3eb8;
  --purple-soft:  #ecdff6;
  --orange:       #ff9e3d;
  --orange-deep:  #e87a00;
  --orange-soft:  #ffe4c4;

  /* legacy aliases (keep working) */
  --caramel:      var(--yellow);
  --caramel-deep: var(--yellow-deep);
  --caramel-soft: var(--yellow-soft);
  --plum:         var(--purple);
  --plum-deep:    var(--purple-deep);
  --plum-soft:    var(--purple-soft);

  /* ── tone for esthetic accent ────────── */
  --gold:         var(--yellow-deep);

  /* ── radii & shadows ─────────────────── */
  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --r-pill: 9999px;
  --shadow-tile: 0 6px 0 0 rgba(42, 38, 48, 0.10);
  --shadow-tile-press: 0 1px 0 0 rgba(42, 38, 48, 0.10);
  --shadow-soft: 0 12px 32px -16px rgba(42, 38, 48, 0.18);
  --shadow-pop: 0 18px 40px -16px rgba(232, 74, 57, 0.35);

  /* ── type ────────────────────────────── */
  --font-ui: 'Nunito', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Rounded Mplus 1c', system-ui, sans-serif;
  --font-display: 'Fraunces', 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', serif;
  --font-num: 'Nunito', 'Hiragino Sans', system-ui, sans-serif;
}

/* ── reset ──────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  margin: 0; padding: 0;
  min-height: 100dvh;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  touch-action: manipulation;
}
html { width: 100%; }
body { width: 100%; position: relative; }
button { touch-action: manipulation; }
body {
  background:
    radial-gradient(900px 700px at 92% -8%, var(--blue-soft) 0%, transparent 55%),
    radial-gradient(900px 700px at -8% 108%, var(--mint-soft) 0%, transparent 55%),
    radial-gradient(700px 500px at 50% 50%, var(--yellow-soft) 0%, transparent 70%),
    var(--bg);
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

button { font-family: inherit; }

/* ── kill old aurora bg ─────────────────────────── */
.aurora { display: none; }

/* ── screens ────────────────────────────────────── */
.screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding:
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-top))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-right))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-bottom))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-left));
  animation: pop-in 0.5s cubic-bezier(.2,.9,.3,1.2) both;
}
[hidden] { display: none !important; }

@keyframes pop-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* ── brand ──────────────────────────────────────── */
.brand {
  position: absolute;
  top:  calc(clamp(16px, 3.5vw, 36px) + env(safe-area-inset-top));
  left: calc(clamp(16px, 3.5vw, 36px) + env(safe-area-inset-left));
  font-size: 15px; font-weight: 800;
  color: var(--ink);
  z-index: 10;
}
.brand__link {
  display: inline-flex; align-items: center; gap: 10px;
  color: inherit; text-decoration: none;
}
.brand__link:hover .brand__name { text-decoration: underline; text-underline-offset: 3px; }
.brand__mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--blue);
  position: relative;
  box-shadow: 0 4px 0 0 var(--blue-deep);
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 16px;
}
.brand__mark::after {
  content: "N";
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-ui);
}
.brand__name em {
  font-style: normal;
  color: var(--blue);
  margin-left: 4px;
  font-weight: 900;
}

/* ── INTRO ──────────────────────────────────────── */
.screen--intro {
  justify-content: center;
  align-items: center;
  text-align: center;
}
.intro__copy { max-width: 520px; width: 100%; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 2px solid var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 24px;
  box-shadow: 0 3px 0 0 var(--ink);
}
.eyebrow::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue);
}
.eyebrow--closed::before { background: var(--ink-3); }

.intro__hero {
  position: relative;
  width: 240px; height: 240px;
  margin: 0 auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.intro__bigNum {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 120px;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  position: relative;
  z-index: 2;
}
.intro__bigNum sup {
  font-size: 36px;
  font-weight: 800;
  color: var(--blue);
  vertical-align: top;
  margin-left: 4px;
}
.intro__blob {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.intro__blob svg { width: 100%; height: 100%; }

.intro__lead {
  font-size: 13px;
  color: var(--ink-2);
  margin: 0 0 28px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.display {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}
.display__accent {
  background: linear-gradient(120deg, var(--blue) 0%, var(--purple-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 32px;
  font-weight: 500;
}

/* ── buttons ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 18px 28px;
  font-family: var(--font-ui);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.12s ease;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 5px 0 0 var(--ink);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 0 var(--ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 0 var(--ink); }

.btn--primary {
  background: var(--blue);
  color: white;
  border-color: var(--ink);
  box-shadow: 0 5px 0 0 var(--ink);
}
.btn--primary:hover { background: #1aa1ff; box-shadow: 0 6px 0 0 var(--ink); }

.btn--ghost {
  background: transparent;
  box-shadow: 0 4px 0 0 var(--ink);
  font-weight: 700;
}
.btn--sm { padding: 12px 20px; font-size: 14px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 0 3px 0 0 var(--ink); }

.iconbtn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 0 var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.08s, box-shadow 0.1s;
}

.sfx-toggle {
  position: absolute;
  top:   calc(clamp(16px, 3.5vw, 36px) + env(safe-area-inset-top));
  right: calc(clamp(16px, 3.5vw, 36px) + env(safe-area-inset-right));
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 0 var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  z-index: 10;
  padding: 0;
  transition: transform 0.08s, box-shadow 0.1s;
}
.sfx-toggle:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--ink); }
.sfx-toggle:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--ink); }
.sfx-toggle svg { width: 22px; height: 22px; }
.sfx-toggle[aria-pressed="false"] { background: var(--bg-2); opacity: 0.65; }

@media (max-width: 560px) {
  .sfx-toggle { width: 36px; height: 36px; box-shadow: 0 2px 0 0 var(--ink); }
  .sfx-toggle svg { width: 19px; height: 19px; }
}
.iconbtn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--ink); }
.iconbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--ink); }

.kbd {
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.4);
  border: 1.5px solid rgba(42,38,48,0.18);
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0.05em;
}

.meta {
  margin-top: 14px;
  font-size: 12px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ── PLAYER ─────────────────────────────────────── */
.screen--player {
  justify-content: flex-start;
  gap: 24px;
  padding-top: clamp(70px, 8vw, 90px);
}

.player__topbar {
  display: flex; align-items: center; gap: 16px;
  max-width: 760px; width: 100%; margin: 0 auto;
}
.player__progress {
  flex: 1; height: 12px; border-radius: 8px;
  background: var(--paper);
  border: 2px solid var(--ink);
  overflow: hidden;
  position: relative;
  box-shadow: 0 3px 0 0 var(--ink);
}
.player__progress-fill {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  width: 0%;
  transition: width 0.45s cubic-bezier(.2,.9,.3,1.1);
}
.player__meta {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.streak {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: 0 3px 0 0 var(--ink);
  transition: transform 0.2s;
}
.streak.is-active { background: var(--yellow); color: var(--ink); }
.streak.is-fire { background: var(--coral); color: white; animation: shake 0.4s ease; }
.streak__flame { font-size: 16px; }

.player__body {
  flex: 1;
  display: flex; align-items: flex-start; justify-content: center;
  width: 100%;
  padding-top: 12px;
}

.qcard {
  width: 100%;
  max-width: 720px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 8px 0 0 var(--ink), var(--shadow-soft);
  position: relative;
}
.qcard__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
}
.qcard__icon {
  width: 56px; height: 56px;
  border-radius: 18px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 0 var(--ink);
  flex-shrink: 0;
}
.qcard__icon svg { width: 34px; height: 34px; }
.qcard__icon--coral   { background: var(--coral-soft); }
.qcard__icon--mint    { background: var(--mint-soft); }
.qcard__icon--caramel { background: var(--yellow-soft); }
.qcard__icon--plum    { background: var(--purple-soft); }
.qcard__icon--blue    { background: var(--blue-soft); }

/* メンテナンスバナー (feature_flag kill switch 有効時に LP 上部に表示) */
.lp__maintenance {
  margin: 0 auto 18px;
  padding: 14px 18px;
  max-width: 560px;
  background: linear-gradient(135deg, #fff4e0 0%, #ffe4b8 100%);
  border: 2px solid var(--ink, #2a2630);
  border-radius: 14px;
  box-shadow: 0 4px 0 0 var(--ink, #2a2630);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink, #2a2630);
  text-align: center;
  line-height: 1.55;
}
.lp__maintenance::before {
  content: "🛠 ";
  margin-right: 4px;
}

.qcard__icon--yellow  { background: var(--yellow-soft); }
.qcard__icon--orange  { background: var(--orange-soft); }
.qcard__icon--purple  { background: var(--purple-soft); }

.qcard__labels { display: flex; flex-direction: column; gap: 2px; }
.qcard__source {
  font-size: 11px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.qcard__axis {
  font-size: 17px; font-weight: 800;
  color: var(--ink);
}

.qcard__stem {
  font-family: var(--font-ui);
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 800;
  line-height: 1.55;
  color: var(--ink);
  margin: 0 0 6px;
}
.qcard__ja {
  font-size: 14px;
  color: var(--ink-2);
  margin: 0 0 24px;
  line-height: 1.7;
  font-weight: 600;
}
/* 長文問題: 本文の下に置かれる「設問文」をはっきり質問として見せる */
.qcard__ja--question {
  font-size: 17px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.55;
  margin: 14px 0 22px;
  padding: 14px 16px 14px 18px;
  background: var(--blue-soft);
  border-left: 5px solid var(--blue);
  border-radius: var(--r-md);
}
.qcard__ja--question::before {
  content: "Q";
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; margin-right: 8px;
  background: var(--blue); color: #fff;
  border-radius: 50%;
  font-family: var(--font-num); font-size: 13px; font-weight: 900;
  vertical-align: -3px;
}

/* choices = 2x2 grid of chunky tiles */
.choices {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 560px) {
  .choices { grid-template-columns: 1fr; gap: 11px; }
}
.choices li { display: block; }

.choice {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 22px;
  border-radius: var(--r-lg);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  box-shadow: var(--shadow-tile);
  transition: transform 0.06s ease, box-shadow 0.08s ease, background 0.15s;
  min-height: 72px;
}
.choice:hover { background: var(--bg-2); }
.choice:active { transform: translateY(4px); box-shadow: var(--shadow-tile-press); }
.choice[disabled] { cursor: default; }

.choice__key {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 900;
  color: var(--ink);
  flex-shrink: 0;
  margin-top: 1px;
  flex-shrink: 0;
}
.choice__text { flex: 1; min-width: 0; line-height: 1.5; overflow-wrap: anywhere; }

.choice[data-state="correct"] {
  background: var(--mint);
  color: white;
  border-color: var(--ink);
  animation: pop-correct 0.5s cubic-bezier(.2,.9,.3,1.4);
}
.choice[data-state="correct"] .choice__key {
  background: white; color: var(--mint-deep);
}
.choice[data-state="wrong"] {
  background: var(--coral);
  color: white;
  animation: shake 0.42s ease;
}
.choice[data-state="wrong"] .choice__key {
  background: white; color: var(--coral-deep);
}
.choice[data-state="dimmed"] { opacity: 0.42; }

.feedback {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 2px dashed var(--line);
  display: flex;
  align-items: flex-start;
  gap: 16px;
  animation: pop-in 0.32s cubic-bezier(.2,.9,.3,1.2) both;
}
.feedback__badge {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 0 var(--ink);
  flex-shrink: 0;
}
.feedback__badge[data-correct="true"]  { background: var(--mint); color: white; }
.feedback__badge[data-correct="false"] { background: var(--coral); color: white; }
.feedback__main { flex: 1; }
.feedback__verdict {
  font-size: 18px; font-weight: 900;
  margin: 4px 0 6px;
}
.feedback__verdict[data-correct="true"]  { color: var(--mint-deep); }
.feedback__verdict[data-correct="false"] { color: var(--coral-deep); }
.feedback__expl {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 0 16px;
  font-weight: 500;
}
.feedback__cta {
  display: flex; align-items: center; gap: 10px;
}
/* テスター用: 問題の不備を 1 タップ報告 (cta_event/report-bad-item を送信)。
   控えめなゴースト表現。露出は /ai/ ベータ内のみ。 */
.feedback__report {
  margin-left: auto;
  background: none; border: none;
  color: var(--ink-3);
  font-size: 13px; cursor: pointer;
  padding: 6px 8px; border-radius: 8px;
  transition: color 0.2s ease;
}
.feedback__report:hover { color: var(--ink-2); }
.feedback__report:disabled { opacity: 0.4; cursor: default; }
.feedback__report-done {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 13px;
}

/* ── REPORT ─────────────────────────────────────── */
.screen--report {
  align-items: center; justify-content: center;
  padding-top: clamp(70px, 8vw, 90px);
}
.report {
  width: 100%; max-width: 720px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 8px 0 0 var(--ink), var(--shadow-soft);
}
.report__title {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 36px);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.report__sub {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0 0 28px;
  font-weight: 700;
}

/* big BEFORE → AFTER swing */
.swing {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 24px;
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 2.5px solid var(--ink);
  margin-bottom: 28px;
  box-shadow: 0 4px 0 0 var(--ink);
}
.swing__col { text-align: center; }
.swing__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.swing__num {
  font-family: var(--font-num);
  font-weight: 900;
  font-size: clamp(40px, 6vw, 58px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.swing__num--after { color: var(--blue-deep); }
.swing__arrow {
  font-size: 28px;
  color: var(--ink);
  font-weight: 900;
}

.report__stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.stat {
  padding: 16px 12px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  text-align: center;
  box-shadow: 0 4px 0 0 var(--ink);
}
.stat__num {
  display: block;
  font-family: var(--font-num);
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 900;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

/* ── 長期 mastery (積み上がり) ─────────────── */
.mastery__tracks {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.mtrack {
  padding: 14px 12px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 0 var(--ink);
  display: flex; flex-direction: column; gap: 8px;
}
.mtrack__top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.mtrack__label { font-size: 11px; font-weight: 800; letter-spacing: 0.06em; color: var(--ink-3); }
.mtrack__val { font-family: var(--font-num); font-weight: 900; color: var(--ink); line-height: 1; white-space: nowrap; }
.mtrack__val b { font-size: clamp(20px, 3vw, 26px); font-variant-numeric: tabular-nums; }
.mtrack__unit { font-size: 11px; font-weight: 800; margin-left: 2px; color: var(--ink-2); }
.mtrack__barTrack {
  height: 8px; border-radius: 9999px;
  background: var(--bg-2); border: 1.5px solid var(--ink); overflow: hidden;
}
.mtrack__barFill {
  display: block; height: 100%; width: 0;
  background: var(--mint);
  transition: width 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.mtrack__foot { display: flex; flex-direction: column; gap: 2px; }
.mtrack__reached { font-size: 11px; font-weight: 800; color: var(--ink-3); }
.mtrack__reached[data-on="1"] { color: var(--mint-deep); }
.mtrack__next { font-size: 11px; color: var(--ink-3); }
.mastery__note { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-3); line-height: 1.5; }
.mastery__trend {
  margin: 14px 0 0; padding: 10px 14px;
  border-radius: var(--r-md);
  background: var(--mint-soft);
  border: 2px solid var(--ink);
  font-size: 13px; font-weight: 700; color: var(--ink);
}
.mastery__trend[data-dir="down"] { background: var(--yellow-soft); }

/* ── due-first 成果バナー (今日の復習取り戻し) ─────────── */
.duewin {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 20px; padding: 12px 16px;
  border-radius: var(--r-md);
  background: var(--mint-soft);
  border: 2.5px solid var(--ink);
  box-shadow: 0 4px 0 0 var(--ink);
}
.duewin__icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 9999px;
  background: var(--mint); color: #fff;
  border: 2px solid var(--ink);
  font-weight: 900; font-size: 16px;
}
.duewin__text { margin: 0; font-size: 13.5px; font-weight: 700; color: var(--ink); line-height: 1.5; }
.duewin[data-all="1"] { background: var(--yellow-soft); }

@media (max-width: 480px) {
  .mastery__tracks { gap: 8px; }
  .mtrack { padding: 10px 8px; gap: 6px; }
  .mtrack__val b { font-size: 18px; }
  .mtrack__label { font-size: 11px; }
}

.report__section { margin-bottom: 28px; }
.report__subtitle {
  font-weight: 900;
  font-size: 16px;
  margin: 0 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.report__subtitle::before {
  content: ""; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blue);
  border: 2px solid var(--ink);
}

.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.bar {
  display: grid;
  grid-template-columns: 110px 1fr 48px;
  gap: 14px;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
}
.bar__name { color: var(--ink); }
.bar__track {
  height: 14px; border-radius: 8px;
  background: var(--bg-2);
  border: 2px solid var(--ink);
  overflow: hidden;
}
.bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  border-radius: 6px;
  transition: width 0.6s cubic-bezier(.2,.9,.3,1.1);
}
.bar__val {
  text-align: right; color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-weight: 900;
}

.weak { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.weak__item {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 3px 0 0 var(--ink);
}
.weak__item:nth-child(1) { background: var(--coral-soft); }
.weak__item:nth-child(2) { background: var(--yellow-soft); }
.weak__item:nth-child(3) { background: var(--purple-soft); }
.weak__icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--paper);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.weak__icon svg { width: 24px; height: 24px; }
.weak__body { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.weak__title {
  font-size: 14.5px; font-weight: 800; color: var(--ink);
}
.weak__hint {
  font-size: 12px; color: var(--ink-2); line-height: 1.5; font-weight: 600;
}

.cooldown {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: var(--blue);
  color: var(--paper);
  margin: 8px 0 24px;
  border: 2.5px solid var(--ink);
  box-shadow: 0 5px 0 0 var(--ink);
}
.cooldown__lock {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--yellow);
  color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  border: 2px solid var(--ink);
}
.cooldown__body { flex: 1; }
.cooldown__title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
  margin: 0 0 2px;
}
.cooldown__time {
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}
.cooldown__hint {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}

/* ── LP (landing page) ─────────────────────────── */
.lp {
  min-height: 100dvh;
  padding:
    calc(80px + env(safe-area-inset-top))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-right))
    calc(40px + env(safe-area-inset-bottom))
    calc(clamp(20px, 4vw, 48px) + env(safe-area-inset-left));
  display: flex;
  flex-direction: column;
  gap: clamp(48px, 7vw, 80px);
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}

/* ── LP hero ──────────────────────── */
.lp__hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}
.lp__display {
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin: 18px 0 22px;
}
.lp__lead {
  font-size: clamp(15px, 1.7vw, 18px);
  line-height: 1.8;
  color: var(--ink-2);
  margin: 0 0 32px;
  font-weight: 600;
}
.lp__lead strong { color: var(--ink); font-weight: 900; }
.lp__cta {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.lp__cta-btn { min-width: 220px; }

/* Google Sign-In ボタン (公式ガイドライン準拠)
   https://developers.google.com/identity/branding-guidelines */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 22px 11px 14px;
  background: #fff;
  color: #1f1f1f;
  font-family: 'Roboto', 'Nunito', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 1.5px solid #dadce0;
  border-radius: 9999px;
  cursor: pointer;
  transition: box-shadow 0.15s, background 0.15s;
  box-shadow: 0 1px 2px rgba(60,64,67,0.06), 0 1px 3px rgba(60,64,67,0.04);
  min-width: 240px;
  justify-content: center;
}
.btn-google:hover {
  background: #f8fafd;
  box-shadow: 0 1px 3px rgba(60,64,67,0.10), 0 4px 8px rgba(60,64,67,0.06);
}
.btn-google:active { background: #f1f3f4; }
.btn-google:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.btn-google__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .btn-google { width: 100%; max-width: 320px; }
}
.lp__signal {
  margin: 22px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-3);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}
.lp__signalDot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  border: 1.5px solid var(--ink);
  animation: pulse 1.6s ease-in-out infinite;
}
.lp__signal strong { color: var(--ink); font-weight: 900; }

/* ── LP sign-in hint (1次募集ご登録者向けの小さな導線) ─── */
.lp__signin-hint {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: var(--ink-3);
  text-align: center;
}
.lp__google-disclaimer {
  margin: 8px 0 0;
  font-size: 11.5px;
  color: var(--ink-3);
  text-align: center;
  line-height: 1.5;
}
.lp__signin-link {
  appearance: none;
  background: none;
  border: 0;
  padding: 0;
  margin-left: 4px;
  font: inherit;
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.lp__signin-link:hover { color: var(--coral); }
.lp__signin-hint-sep {
  display: inline-block;
  margin: 0 4px;
  color: var(--ink-3);
}
a.lp__signin-link {
  display: inline;
}
.lp__consent {
  margin: 6px auto 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--ink-3);
  text-align: center;
  max-width: 520px;
}
.lp__consent-link {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lp__consent-link:hover { color: var(--ink); }

/* ── LP shots (iPhone mockups) ────── */
.lp__shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
  align-items: end;
  justify-items: center;
}
.phone {
  margin: 0;
  width: 100%;
  max-width: 240px;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.phone img {
  width: 100%;
  height: auto;
  border-radius: 28px;
  background: var(--ink);
  border: 3px solid var(--ink);
  box-shadow:
    0 18px 40px -16px rgba(31, 41, 55, 0.32),
    0 0 0 4px var(--paper),
    0 0 0 6px var(--ink);
  display: block;
}
.phone figcaption {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  text-align: center;
  letter-spacing: 0.01em;
}
.phone--tilt-l { transform: rotate(-2deg) translateY(-4px); }
.phone--tilt-r { transform: rotate(2deg)  translateY(-4px); }
.phone--tilt-c { transform: scale(1.06); z-index: 2; }

/* ── LP perks ─────────────────────── */
.lp__perks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2vw, 22px);
  max-width: 960px;
  margin: 0 auto;
  width: 100%;
}
.perk {
  padding: 24px 20px 22px;
  border-radius: var(--r-lg);
  border: 2.5px solid var(--ink);
  background: var(--paper);
  box-shadow: 0 6px 0 0 var(--ink);
  position: relative;
}
.perk--coral  { background: var(--coral-soft); }
.perk--yellow { background: var(--yellow-soft); }
.perk--mint   { background: var(--mint-soft); }

.perk__num {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 900;
  color: var(--ink-3);
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.perk__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.perk__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
  font-weight: 600;
}

/* ── FAQ ─────────────────────────── */
.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 4px 8px;
}
.faq__title {
  font-family: var(--font-display, inherit);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.faq__list { margin: 0; padding: 0; }
.faq__q {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
  margin: 18px 0 6px;
  line-height: 1.5;
}
.faq__q::before {
  content: "Q. ";
  color: var(--blue, var(--ink));
  font-weight: 900;
}
.faq__a {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 600;
}
.faq__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.faq__link:hover { color: var(--ink); }

/* ── LP closing CTA ──────────────── */
.lp__closing {
  text-align: center;
  padding: 32px 0;
  border-top: 2px dashed var(--line);
  margin-top: 0;
}
.lp__closingLead {
  margin: 0 0 6px;
  font-size: 14.5px;
  color: var(--ink-2);
  font-weight: 700;
}
.lp__closingSub {
  margin: 0 0 18px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ── waitlist on LP variant ──────── */
.waitlist--lp {
  margin: 0 auto;
  max-width: 560px;
  width: 100%;
}

/* ── LP responsive ───────────────── */
@media (max-width: 880px) {
  .lp__shots { grid-template-columns: 1fr; max-width: 360px; margin: 0 auto; gap: 24px; }
  .phone--tilt-l, .phone--tilt-r, .phone--tilt-c { transform: none; }
  .lp__perks { grid-template-columns: 1fr; max-width: 480px; }
}
@media (max-width: 560px) {
  .lp { padding-top: calc(70px + env(safe-area-inset-top)); gap: 44px; }
  .lp__display { font-size: 30px; }
  .lp__lead { font-size: 14.5px; }
  .lp__cta-btn { min-width: 0; width: 100%; max-width: 360px; }
  .lp__cta { flex-direction: column; align-items: center; }
  .perk { padding: 20px 18px; }
  .perk__title { font-size: 16px; }
  .perk__desc { font-size: 13px; }
  .phone img { border-radius: 22px; }
}

/* ── ai-progress (intro disclaimer + progress bar) ───── */
.ai-progress {
  margin: 28px auto 0;
  max-width: 420px;
  padding: 16px 18px 14px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 0 0 var(--ink);
  text-align: left;
}
.ai-progress--ready {
  background: var(--mint-soft);
  border-color: var(--mint-deep);
  box-shadow: 0 4px 0 0 var(--mint-deep);
}
.ai-progress__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 10px;
}
.ai-progress__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
}
.ai-progress--ready .ai-progress__chip {
  background: var(--mint);
  color: white;
  border-color: var(--ink);
}
.ai-progress__chip::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse 1.4s ease-in-out infinite;
}
.ai-progress--ready .ai-progress__chip::before { background: white; }
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}
.ai-progress__count {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.ai-progress__bar {
  height: 8px;
  background: var(--bg-2);
  border: 2px solid var(--ink);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 10px;
}
.ai-progress__fill {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--blue), var(--mint));
  transition: width 0.6s cubic-bezier(.2,.9,.3,1.1);
}
.ai-progress__note {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-3);
  font-weight: 600;
}

/* ── ai-status (report banner) ─────────────────── */
.ai-status {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--yellow-soft);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 0 var(--ink);
  margin: 4px 0 18px;
}
.ai-status--ready {
  background: var(--mint-soft);
  border-color: var(--mint-deep);
}
.ai-status__icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--yellow);
  border: 2px solid var(--ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
  flex-shrink: 0;
}
.ai-status--ready .ai-status__icon { background: var(--mint); color: white; }
.ai-status__body { flex: 1; min-width: 0; }
.ai-status__title {
  margin: 0 0 2px;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}
.ai-status__sub {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.55;
  font-weight: 600;
}

/* 集合学習 (FSRS パラメータの最終較正情報) — details/summary で折りたたみ */
.calib-info {
  margin: 8px 0 16px;
  padding: 0;
  border: 1px solid var(--line, #e8e4dc);
  border-radius: 10px;
  background: #fff;
}
.calib-info__head {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
}
.calib-info__head::-webkit-details-marker { display: none; }
.calib-info__head::before {
  content: "▸";
  display: inline-block;
  transition: transform 0.15s;
  color: var(--ink-3);
  margin-right: -2px;
}
.calib-info[open] .calib-info__head::before { transform: rotate(90deg); }
.calib-info__chip {
  display: inline-block;
  padding: 2px 8px;
  background: var(--ink, #2a2630);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  border-radius: 9999px;
  flex-shrink: 0;
}
.calib-info__title { flex: 1; }
.calib-info__body {
  padding: 0 14px 12px 14px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--ink-2);
  font-weight: 600;
}
.calib-info__body p { margin: 0 0 8px; }
.calib-info__body ul { margin: 0; padding-left: 18px; }
.calib-info__body li { margin: 2px 0; }
.calib-info__body code {
  font-family: var(--font-num, monospace);
  font-size: 11px;
  background: #f4f1ea;
  padding: 1px 5px;
  border-radius: 4px;
}

/* 30 問達成 (AI 本格稼働) のマイルストーン祝い演出 */
.ai-status--fanfare {
  position: relative;
  background: linear-gradient(135deg, #fff7e6 0%, #fff1d9 100%);
  border-color: var(--accent, #F5A623);
  animation: aiFanfarePulse 1.6s ease-out 1;
}
.ai-status--fanfare .ai-status__icon {
  background: var(--accent, #F5A623);
  color: white;
  animation: aiFanfareIcon 0.9s cubic-bezier(.2,.9,.3,1.3) 1;
}
.ai-status--fanfare .ai-status__title { color: #B6781A; }
@keyframes aiFanfarePulse {
  0%   { box-shadow: 0 0 0 0 rgba(245,166,35,0.45); }
  60%  { box-shadow: 0 0 0 18px rgba(245,166,35,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,166,35,0); }
}
@keyframes aiFanfareIcon {
  0%   { transform: scale(0.6) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.2) rotate(8deg); opacity: 1; }
  100% { transform: scale(1) rotate(0); opacity: 1; }
}

@media (max-width: 560px) {
  .ai-progress { margin-top: 22px; padding: 14px 16px 12px; }
  .ai-progress__note { font-size: 11px; }
  .ai-status { padding: 10px 12px; }
  .ai-status__icon { width: 32px; height: 32px; font-size: 15px; }
}

/* ── waitlist ─────────────────────────────────── */
.waitlist {
  margin: 28px 0 24px;
  padding: 26px 24px 22px;
  border-radius: var(--r-lg);
  background:
    radial-gradient(600px 360px at -10% -30%, var(--coral-soft) 0%, transparent 60%),
    radial-gradient(500px 300px at 110% 130%, var(--yellow-soft) 0%, transparent 55%),
    var(--paper);
  border: 2.5px solid var(--ink);
  box-shadow: 0 6px 0 0 var(--ink);
  position: relative;
}
.waitlist::before {
  content: "BETA OPEN";
  position: absolute;
  top: -12px; left: 20px;
  padding: 4px 12px;
  background: var(--coral);
  color: white;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.16em;
  border-radius: var(--r-pill);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 0 var(--ink);
}
.waitlist__title {
  margin: 6px 0 10px;
  font-family: var(--font-ui);
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.waitlist__lead {
  margin: 0 0 18px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.7;
  font-weight: 600;
}
.waitlist__lead strong { color: var(--ink); font-weight: 900; }

.waitlist__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 18px;
}
.waitlist__perks li {
  position: relative;
  padding-left: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
}
.waitlist__perks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 2px solid var(--ink);
}

.waitlist__form {
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 10px;
}
.waitlist__form input[type="email"] {
  width: 100%;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 0 4px 0 0 var(--ink);
  outline: none;
  transition: box-shadow 0.1s ease;
  -webkit-appearance: none;
  appearance: none;
}
.waitlist__form input[type="email"]:focus {
  box-shadow: 0 4px 0 0 var(--blue);
  border-color: var(--blue);
}
.waitlist__form input[type="email"]::placeholder {
  color: var(--ink-3);
  font-weight: 600;
}
.waitlist__form input[type="email"][aria-invalid="true"] {
  border-color: var(--coral-deep);
  box-shadow: 0 4px 0 0 var(--coral-deep);
}
.waitlist__submit { width: 100%; }

.waitlist__fineprint {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 600;
  text-align: center;
  letter-spacing: 0.02em;
  line-height: 1.6;
}
.waitlist__fineprint-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.waitlist__fineprint-link:hover { color: var(--ink); }

.waitlist__done {
  text-align: center;
  padding: 18px 0 6px;
  animation: pop-in 0.5s cubic-bezier(.2,.9,.3,1.3) both;
}
.waitlist__doneIcon {
  width: 56px; height: 56px;
  margin: 0 auto 12px;
  background: var(--mint);
  border: 2.5px solid var(--ink);
  border-radius: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  color: white;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 4px 0 0 var(--ink);
}
.waitlist__doneTitle {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 900;
  color: var(--ink);
}
.waitlist__doneSub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  font-weight: 600;
}

@media (max-width: 560px) {
  .waitlist { padding: 22px 18px 18px; margin: 22px 0 18px; }
  .waitlist__perks { grid-template-columns: 1fr; gap: 6px; }
  .waitlist__title { font-size: 22px; }
  .waitlist__lead { font-size: 13px; }
  .waitlist__form input[type="email"] { font-size: 16px; padding: 14px 16px; }
}

.report__plan {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  font-weight: 600;
  padding: 16px 18px;
  background: var(--blue-soft);
  border: 2px dashed var(--blue-deep);
  border-radius: var(--r-md);
}

.report__cta {
  display: flex; gap: 12px; margin-top: 28px;
  flex-wrap: wrap;
}

/* ── animations ─────────────────────────────────── */
@keyframes pop-correct {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.06) rotate(-1deg); }
  70%  { transform: scale(0.98) rotate(0.5deg); }
  100% { transform: scale(1); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  15%      { transform: translateX(-6px); }
  30%      { transform: translateX(5px); }
  45%      { transform: translateX(-4px); }
  60%      { transform: translateX(3px); }
  75%      { transform: translateX(-2px); }
}
@keyframes bigNum {
  0%   { transform: scale(0.6); opacity: 0; }
  60%  { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); }
}

.intro__bigNum, .swing__num { animation: bigNum 0.7s cubic-bezier(.2,.9,.3,1.3) both; }

/* ── responsive ─────────────────────────────────── */

/* tablet ~ small laptop tweaks */
@media (max-width: 720px) {
  .intro__hero { width: 200px; height: 200px; margin-bottom: 4px; }
  .intro__bigNum { font-size: 96px; }
  .intro__bigNum sup { font-size: 30px; }
}

/* phone — main mobile target */
@media (max-width: 560px) {
  .screen { gap: 18px; }
  .screen--player { padding-top: calc(64px + env(safe-area-inset-top)); gap: 16px; }
  .screen--report { padding-top: calc(64px + env(safe-area-inset-top)); }

  .brand { font-size: 14px; gap: 8px; }
  .brand__mark { width: 28px; height: 28px; border-radius: 9px; font-size: 14px; box-shadow: 0 3px 0 0 var(--blue-deep); }

  .intro__hero { width: 168px; height: 168px; }
  .intro__bigNum { font-size: 80px; }
  .intro__bigNum sup { font-size: 24px; }
  .display { font-size: 28px; }
  .lead { font-size: 14px; }
  .eyebrow { font-size: 11px; padding: 5px 12px; }

  .btn { padding: 16px 22px; font-size: 15px; width: 100%; max-width: 360px; }
  .btn--sm { padding: 14px 18px; font-size: 14px; width: auto; }

  /* player */
  .player__topbar { gap: 10px; }
  .player__progress { height: 10px; box-shadow: 0 2px 0 0 var(--ink); }
  .player__meta { font-size: 12.5px; gap: 8px; }
  .streak { padding: 5px 10px; font-size: 12px; box-shadow: 0 2px 0 0 var(--ink); }
  .iconbtn { width: 36px; height: 36px; font-size: 16px; box-shadow: 0 2px 0 0 var(--ink); }

  .qcard { padding: 20px 18px 22px; border-width: 2px; border-radius: 24px; box-shadow: 0 6px 0 0 var(--ink); }
  .qcard__head { gap: 10px; margin-bottom: 16px; }
  .qcard__icon { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 3px 0 0 var(--ink); }
  .qcard__icon svg { width: 28px; height: 28px; }
  .qcard__source { font-size: 11px; }
  .qcard__axis { font-size: 15px; }
  .qcard__stem { font-size: 19px; line-height: 1.5; }
  .qcard__ja { font-size: 12.5px; margin-bottom: 18px; }

  .choices { grid-template-columns: 1fr; gap: 10px; }
  .choice {
    padding: 18px 18px;
    min-height: 62px;
    font-size: 16px;
    border-width: 2px;
    border-radius: 18px;
  }
  .choice__key { width: 28px; height: 28px; border-radius: 8px; font-size: 12px; }

  .feedback { margin-top: 18px; padding-top: 16px; gap: 12px; }
  .feedback__badge { width: 44px; height: 44px; font-size: 20px; box-shadow: 0 3px 0 0 var(--ink); }
  .feedback__verdict { font-size: 16px; }
  .feedback__expl { font-size: 13px; line-height: 1.7; }

  /* report */
  .report { padding: 22px 18px; border-width: 2px; border-radius: 24px; box-shadow: 0 6px 0 0 var(--ink); }
  .report__title { font-size: 24px; }
  .report__sub { font-size: 11.5px; margin-bottom: 20px; }

  .swing { grid-template-columns: 1fr auto 1fr; gap: 10px; padding: 18px 14px; }
  .swing__arrow { transform: none; font-size: 22px; }
  .swing__num { font-size: 36px; }
  .swing__label { font-size: 11px; letter-spacing: 0.1em; margin-bottom: 4px; }

  .report__stats { gap: 8px; margin-bottom: 22px; }
  .stat { padding: 12px 4px; border-width: 2px; border-radius: 14px; box-shadow: 0 3px 0 0 var(--ink); }
  .stat__num { font-size: 22px; }
  .stat__label { font-size: 11px; letter-spacing: 0.06em; }

  .report__section { margin-bottom: 22px; }
  .report__subtitle { font-size: 14px; }
  .report__subtitle::before { width: 10px; height: 10px; }

  .bar { grid-template-columns: 80px 1fr 40px; gap: 8px; font-size: 12.5px; }
  .bar__track { height: 12px; }

  .weak__item { padding: 12px 14px; border-width: 2px; border-radius: 14px; box-shadow: 0 3px 0 0 var(--ink); }
  .weak__icon { width: 38px; height: 38px; border-radius: 10px; }
  .weak__icon svg { width: 22px; height: 22px; }
  .weak__title { font-size: 13.5px; }
  .weak__hint { font-size: 11.5px; line-height: 1.5; }

  .cooldown { padding: 14px 16px; border-radius: 18px; gap: 12px; box-shadow: 0 4px 0 0 var(--ink); }
  .cooldown__lock { width: 40px; height: 40px; border-radius: 10px; font-size: 18px; }
  .cooldown__title { font-size: 10.5px; }
  .cooldown__time { font-size: 19px; }

  .report__plan { font-size: 13.5px; padding: 14px 16px; line-height: 1.7; }
  .report__cta { gap: 10px; margin-top: 22px; flex-direction: column; }
  .report__cta .btn { width: 100%; max-width: none; }
}

/* iPhone SE / 小型機 */
@media (max-width: 380px) {
  .screen { padding-left: max(14px, env(safe-area-inset-left)); padding-right: max(14px, env(safe-area-inset-right)); }
  .intro__hero { width: 148px; height: 148px; }
  .intro__bigNum { font-size: 68px; }
  .intro__bigNum sup { font-size: 20px; }
  .display { font-size: 24px; line-height: 1.22; }
  .lead { font-size: 13.5px; }
  .qcard__stem { font-size: 17px; }
  .swing { gap: 6px; padding: 16px 10px; }
  .swing__num { font-size: 30px; }
  .swing__arrow { font-size: 18px; }
  .stat__num { font-size: 20px; }
}

/* ── intro: cooldown banner ───────────────────────────── */
.intro__cooldown {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  margin: 12px auto 18px;
  max-width: 420px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--coral-soft), var(--yellow-soft));
  border: 2px solid var(--ink);
  box-shadow: 0 4px 0 0 var(--ink);
  text-align: left;
  animation: pop-in 0.4s cubic-bezier(.2,.9,.3,1.2) both;
}
.intro__cooldown-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.intro__cooldown-body { flex: 1; min-width: 0; }
.intro__cooldown-title {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--coral-deep);
}
.intro__cooldown-time {
  margin: 0 0 6px;
  font-family: var(--font-num);
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.intro__cooldown-hint {
  margin: 0;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.6;
  font-weight: 600;
}

/* ── intro: back link ─────────────────────────────────── */
.intro__back {
  margin: 18px 0 0;
}
.intro__backLink {
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-3);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: var(--r-pill);
}
.intro__backLink:hover {
  color: var(--ink);
  background: var(--bg-2);
}
.intro__backLink:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── waitlist: error & typo suggest ───────────────────── */
.waitlist__error {
  margin: 8px 0 0;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--coral-soft);
  border: 1.5px solid var(--coral-deep);
  color: var(--ink);
  font-size: 12.5px;
  line-height: 1.55;
  font-weight: 600;
}
.waitlist__typoSuggest {
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  padding: 2px 8px;
  margin: 0 2px;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 12px;
  font-family: var(--font-num);
}
.waitlist__typoSuggest:hover { background: var(--yellow-soft); }

/* ── btn lock-shake (cooldown 連打フィードバック) ─────── */
.btn--lock-shake { animation: shake 0.42s ease; }

/* ── identity badge (header right, beside sfx) ─────────── */
.idbadge {
  position: absolute;
  top:   calc(clamp(16px, 3.5vw, 36px) + env(safe-area-inset-top));
  right: calc(60px + clamp(16px, 3.5vw, 36px) + env(safe-area-inset-right));
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  box-shadow: 0 3px 0 0 var(--ink);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  z-index: 10;
  max-width: min(60vw, 320px);
}
.idbadge__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  border: 1.5px solid var(--ink);
  flex-shrink: 0;
}
.idbadge__label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.idbadge__mask {
  font-family: var(--font-num);
  font-weight: 800;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 18ch;
}
.idbadge__tier {
  display: inline-block;
  padding: 1px 8px;
  margin-right: 6px;
  background: var(--accent, #F5A623);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  border: 1.5px solid #1a1a1a;
  vertical-align: middle;
}
.idbadge__out {
  margin-left: 4px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: transparent;
  border: 1.5px solid var(--ink);
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--ink);
}
.idbadge__out:hover { background: var(--bg-2); }
@media (max-width: 560px) {
  .idbadge {
    top: calc(58px + env(safe-area-inset-top));
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    padding: 5px 10px 5px 8px;
  }
  .idbadge__out { font-size: 11px; padding: 2px 7px; }
  /* 識別バッジが出ている時は LP の上余白を増やす */
  body:has(#identityBadge:not([hidden])) .lp {
    padding-top: calc(110px + env(safe-area-inset-top));
  }
  body:has(#identityBadge:not([hidden])) .screen--intro {
    padding-top: calc(108px + env(safe-area-inset-top));
  }
}

/* ── qcard__reason (出題理由バッジ) ────────────────────── */
.qcard__reason {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  margin: 0 0 14px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--blue-soft);
  color: var(--ink);
  border: 2px solid var(--ink);
  box-shadow: 0 2px 0 0 var(--ink);
  animation: pop-in 0.32s cubic-bezier(.2,.9,.3,1.2) both;
}
.qcard__reason::before {
  content: "AI";
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  background: var(--ink);
  color: white;
  border-radius: 6px;
  font-weight: 900;
}
.qcard__reason[data-kind="due"]        { background: var(--coral-soft); }
.qcard__reason[data-kind="due-review"] { background: var(--coral); color: #fff; }
.qcard__reason[data-kind="due-review"]::before { background: #fff; color: var(--coral-deep); }
.qcard__reason[data-kind="echo"]    { background: var(--yellow-soft); }
.qcard__reason[data-kind="novel"]   { background: var(--mint-soft); }
.qcard__reason[data-kind="weakness"]{ background: var(--purple-soft); }
.qcard__reason[data-kind="fit"]     { background: var(--orange-soft); }
@media (max-width: 560px) {
  .qcard__reason { font-size: 11px; padding: 5px 10px; margin-bottom: 10px; }
  .qcard__reason::before { font-size: 11px; padding: 1px 5px; }
}

/* ── due list (あなた専用の弱点履歴) ──────────────────── */
.report__sectionLead {
  margin: -8px 0 14px;
  font-size: 12.5px;
  color: var(--ink-3);
  font-weight: 600;
  line-height: 1.6;
}
.dues {
  list-style: none;
  counter-reset: due;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.due {
  counter-increment: due;
  padding: 14px 16px 12px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 0 var(--ink);
  position: relative;
}
.due::before {
  content: counter(due);
  position: absolute;
  top: -8px; left: -8px;
  width: 22px; height: 22px;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.due__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.due__src {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.due__r {
  font-size: 11.5px;
  font-weight: 900;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  border: 1.5px solid var(--ink);
  background: var(--mint-soft);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.due__r[data-level="low"] { background: var(--coral-soft); }
.due__r[data-level="mid"] { background: var(--yellow-soft); }
.due__r[data-level="ok"]  { background: var(--mint-soft); }
.due__stem {
  margin: 0 0 8px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--ink);
}
.due__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11.5px;
  color: var(--ink-3);
  font-weight: 700;
  flex-wrap: wrap;
}
.due__next { display: inline-flex; align-items: center; gap: 6px; }
.due__nextLabel {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.due__nextDate {
  color: var(--ink);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}
.due__meta {
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
}

/* ── retention forecast banner ─────────────────────────── */
.retention {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  margin: 0 0 22px;
  border-radius: var(--r-md);
  background: linear-gradient(180deg, var(--purple-soft), var(--blue-soft));
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 0 var(--ink);
}
.retention__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--purple);
  color: white;
  font-size: 20px;
  font-weight: 900;
  border: 2px solid var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.retention__title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.retention__lead {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.7;
  font-weight: 600;
}
.retention__lead strong {
  color: var(--purple-deep);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

/* ── waitlist pulse (login誘導ハイライト) ─────────────── */
.waitlist--pulse {
  animation: waitlist-pulse 0.7s cubic-bezier(.2,.9,.3,1.2) both;
}
@keyframes waitlist-pulse {
  0%   { transform: scale(1);    box-shadow: 0 6px 0 0 var(--ink); }
  40%  { transform: scale(1.02); box-shadow: 0 10px 0 0 var(--coral-deep), 0 0 0 6px var(--coral-soft); }
  100% { transform: scale(1);    box-shadow: 0 6px 0 0 var(--ink); }
}

@media (max-width: 560px) {
  .due { padding: 12px 14px 10px; }
  .due__stem { font-size: 13px; }
  .retention { padding: 12px 14px; gap: 10px; }
  .retention__icon { width: 38px; height: 38px; font-size: 18px; }
  .retention__lead { font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

/* ── a11y: キーボードフォーカスの可視化 ─────────────────────
   マウス操作 (:focus) では出さず、キーボード操作 (:focus-visible) の
   ときだけ高コントラストの輪郭を出す。全インタラクティブ要素に適用。
   ファイル末尾に置くことで、同特異性の既存 outline:none より後勝ちさせる。 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 6px;
}
/* 選択肢タイルは少し外側に出してタイル全体を囲う */
.choice:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
/* 青系ボタンの上では青い輪郭が埋もれるので、濃インクの輪郭にする */
.btn--primary:focus-visible,
.choice[data-state="correct"]:focus-visible {
  outline-color: var(--ink);
}

/* ── 解説の自動視覚化 (design-v2-expl.js / NRV2) — /ai/ ブランド配色 ── */
.feedback__expl .v2-expl-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.feedback__expl .v2-expl-list li {
  position: relative; padding-left: 18px;
  font-size: 14px; line-height: 1.75; color: var(--ink-2); font-weight: 600;
}
.feedback__expl .v2-expl-list li::before {
  content: ''; position: absolute; left: 1px; top: 0.58em;
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue);
}
.feedback__expl .v2-expl-p { margin: 0; font-size: 14px; line-height: 1.8; color: var(--ink-2); font-weight: 600; }
.feedback__expl mark.v2-mk {
  background: linear-gradient(transparent 60%, var(--blue-soft) 60%);
  color: var(--blue-deep); font-weight: 800; padding: 0 1px;
}

/* ── 音声つき問題 (audio-mcq / 発音) ── */
.qcard__audio {
  display: flex; align-items: center; gap: 12px;
  margin: 0 0 16px;
}
.qcard__audio--main {
  background: var(--blue-soft);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.qcard__audio-btn {
  width: 56px; height: 56px; flex-shrink: 0;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--blue);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-tile);
  transition: transform 0.06s ease, box-shadow 0.08s ease;
}
.qcard__audio-btn:active { transform: translateY(3px); box-shadow: var(--shadow-tile-press); }
.qcard__audio-btn svg { margin-left: 2px; }
.qcard__audio-label {
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  flex: 1; min-width: 0;
}
.qcard__audio-speed {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 8px 13px;
  border: 2px solid var(--ink);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px; font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-tile-press);
  transition: transform 0.06s ease, background 0.15s, color 0.15s;
}
.qcard__audio-speed:active { transform: translateY(2px); }
.qcard__audio-speed-x { font-family: var(--font-num); font-weight: 900; letter-spacing: -0.5px; }
.qcard__audio-speed.is-on {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue-deep);
}
.qcard__stem--prompt {
  font-size: 17px;
  color: var(--ink-2);
  font-weight: 700;
}
.qcard__stem--passage {
  font-size: 15px;
  line-height: 1.8;
  font-weight: 600;
  white-space: pre-line;
  max-height: 38vh;
  overflow-y: auto;
  padding: 14px 16px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--line);
  /* スクロール影 (Lea Verou): 隠れた続きがある間だけ上下に影。
     端までスクロールすると影が消える → 「下に続く」を確実に伝える。
     --bg = #f4f7fb (244,247,251) の透明版でカバーする。 */
  background:
    linear-gradient(var(--bg) 30%, rgba(244,247,251,0)) center top,
    linear-gradient(rgba(244,247,251,0), var(--bg) 70%) center bottom,
    radial-gradient(farthest-side at 50% 0, rgba(31,41,55,0.16), rgba(31,41,55,0)) center top,
    radial-gradient(farthest-side at 50% 100%, rgba(31,41,55,0.16), rgba(31,41,55,0)) center bottom;
  background-repeat: no-repeat;
  background-size: 100% 34px, 100% 34px, 100% 13px, 100% 13px;
  background-attachment: local, local, scroll, scroll;
  background-color: var(--bg);
}
.fb-transcript {
  margin: 0 0 10px;
  padding: 10px 12px;
  background: var(--blue-soft);
  border-radius: var(--r-md);
  font-size: 15px; font-weight: 700; line-height: 1.6; color: var(--ink);
}
.fb-transcript__ja {
  display: block; margin-top: 4px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
/* 長文問題: 答え合わせ時に開く本文の和訳 */
.fb-passage-ja {
  margin: 12px 0 0;
  border-top: 1.5px dashed var(--line);
  padding-top: 10px;
}
.fb-passage-ja > summary {
  cursor: pointer;
  font-size: 13px; font-weight: 800; color: var(--blue-deep);
  list-style: none;
}
.fb-passage-ja > summary::-webkit-details-marker { display: none; }
.fb-passage-ja > summary::before { content: "▸ "; }
.fb-passage-ja[open] > summary::before { content: "▾ "; }
.fb-passage-ja__body {
  margin: 8px 0 0;
  font-size: 13px; font-weight: 600; line-height: 1.85; color: var(--ink-2);
  white-space: pre-line;
}
/* 忘れかけの記憶を取り戻した時の払い戻し (間隔反復の「効いてる感」) */
.fb-recovered {
  margin: 0 0 10px;
  padding: 11px 13px 11px 40px;
  position: relative;
  background: var(--mint-soft);
  border-radius: var(--r-md);
  font-size: 13.5px; font-weight: 800; line-height: 1.6; color: var(--mint-deep);
}
.fb-recovered::before {
  content: "";
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px;
  background: var(--mint-deep);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
}

/* ── PRO プラン (課金が configured のときだけ表示) ── */
.pro-cta { display: none; }
body.billing-on .pro-cta { display: block; }
/* 既に Pro 会員ならアップセルは出さない (払い済みへの勧誘は信頼を損なう) */
body.is-pro .pro-cta { display: none; }
.pro-plan { max-width: 560px; margin: 48px auto; padding: 0 20px; }
.pro-plan__card {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-tile), var(--shadow-soft);
  padding: 32px 28px;
  text-align: center;
}
.pro-plan__eyebrow {
  margin: 0 0 6px;
  font-size: 12px; font-weight: 900; letter-spacing: 0.18em;
  color: var(--blue-deep);
}
.pro-plan__title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(26px, 4.5vw, 34px);
  color: var(--ink);
}
.pro-plan__price { margin: 0 0 18px; color: var(--ink); }
.pro-plan__price strong {
  font-family: var(--font-num);
  font-size: clamp(44px, 8vw, 56px); font-weight: 900; letter-spacing: -1px;
}
.pro-plan__price span { font-size: 15px; font-weight: 700; color: var(--ink-2); margin-left: 4px; }
.pro-plan__perks {
  list-style: none; margin: 0 auto 22px; padding: 0;
  max-width: 360px; text-align: left;
  display: flex; flex-direction: column; gap: 9px;
}
.pro-plan__perks li {
  position: relative; padding-left: 26px;
  font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.6;
}
.pro-plan__perks li::before {
  content: ''; position: absolute; left: 0; top: 0.32em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--mint);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>') center / contain no-repeat;
}
.pro-plan__note { margin: 14px 0 0; font-size: 11.5px; font-weight: 600; color: var(--ink-3); }
.btn--upgrade { width: 100%; max-width: 320px; }

/* 無料上限パネル (introCooldown 流用時) */
.intro__cooldown--limit { border-color: var(--blue); background: var(--blue-soft); }
.intro__cooldown--limit .btn--upgrade { margin-top: 12px; }

/* ── レポート末尾の Pro アップセル (waitlist と排他表示) ── */
body.billing-on #waitlist { display: none; }
.pro-upsell {
  margin-top: 28px;
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-tile);
  padding: 26px 22px;
  text-align: center;
}
.pro-upsell__title {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  color: var(--ink);
}
.pro-upsell__lead {
  margin: 0 auto 18px; max-width: 420px;
  font-size: 14px; font-weight: 700; color: var(--ink-2); line-height: 1.75;
}
