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

:root {
  /* ── ground (サイト共通: クリーム地。DESIGN.md v1 ベース継続) ── */
  --bg:           #f6f3ec;
  --bg-2:         #F1EDE3;
  --paper:        #ffffff;
  --ink:          #33414a;
  --ink-2:        #55524B;
  --ink-3:        #8B867C;
  --line:         #e5dfd2;

  /* ── アウトライン (旧 Drops の ink 太枠/オフセット影を site 準拠に軟化) ── */
  --edge:         #DCD5C6;
  --edge-shadow:  rgba(23,115,135, 0.14);

  /* ── アクセント (Design System v2: ティール。旧 blue を置換) ── */
  --blue:         #1d7f96;
  --blue-deep:    #186f83;
  --blue-soft:    #eaf5f7;
  /* 旧 yellow (ハイライト/ストリーク) → teal-light 系 (v2 のゴールド全廃と同扱い) */
  --yellow:       #8dc2cd;
  --yellow-deep:  #186f83;
  --yellow-soft:  #eaf5f7;
  /* 誤答フィードバック → サイト共通 error (#d96c5e) */
  --coral:        #d96c5e;
  --coral-deep:   #B91C1C;
  --coral-soft:   #FBE9E9;
  /* 正答フィードバック → サイト共通 success (#35a06c) */
  --mint:         #35a06c;
  --mint-deep:    #15803D;
  --mint-soft:    #E8F4EC;
  /* カテゴリ識別 hue (機能色。ソース種別チップ用に彩度を落として残置) */
  --purple:       #8B6BB8;
  --purple-deep:  #6D4E9E;
  --purple-soft:  #EFE9F6;
  --orange:       #D98E4A;
  --orange-deep:  #B96F2D;
  --orange-soft:  #F8ECDF;

  /* 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.08);
  --shadow-tile-press: 0 1px 0 0 rgba(42, 38, 48, 0.08);
  --shadow-soft: 0 12px 32px -16px rgba(42, 38, 48, 0.16);
  --shadow-pop: 0 18px 40px -16px rgba(23,115,135, 0.35);

  /* ── type (サイト共通: 本文 Noto Sans JP / 見出し Zen Maru Gothic) ── */
  --font-ui: 'Noto Sans JP', 'Nunito', 'Hiragino Sans', system-ui, sans-serif;
  --font-display: 'Zen Maru Gothic', 'Hiragino Maru Gothic ProN', 'Rounded Mplus 1c', sans-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;
  /* 2026-07-13: overscroll-behavior-y:none / touch-action:manipulation を html,body から撤去。
     実機 iOS Safari でページ全体のタッチスクロールがロックされる既知の組合せ。
     誤タップ防止の touch-action は button 側で維持。 */
}
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: 900;
  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 {
  /* safe center: 収まるときは縦中央、はみ出すときは start にフォールバックして
     スクロール可能に保つ (小さい viewport での見切れ防止)。 */
  justify-content: safe 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(--edge);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 24px;
  box-shadow: 0 3px 0 0 var(--edge-shadow);
}
.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: 900;
  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-display);
  font-weight: 900;
  font-size: clamp(32px, 5vw, 44px);
  line-height: 1.24;
  letter-spacing: 0;
  text-wrap: balance;
  margin: 0 0 16px;
  color: var(--ink);
}
.display__accent {
  /* v2: グラデ文字禁止 → 蛍光マーカー風ハイライト */
  background: linear-gradient(transparent 64%, rgba(141,194,205,0.38) 64% 94%, transparent 94%);
  color: #186f83;
}
.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: 900;
  letter-spacing: 0.01em;
  border-radius: var(--r-pill);
  border: 2px solid var(--edge);
  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(--edge-shadow);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 0 var(--edge-shadow); }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 0 var(--edge-shadow); }

.btn--primary {
  /* サイト共通 v2: ティールグラデ CTA */
  background: linear-gradient(135deg, #186f83 0%, #1d7f96 50%, #8dc2cd 100%);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 24px rgba(29,127,150,0.30);
}
.btn--primary:hover {
  background: linear-gradient(135deg, #186f83 0%, #1d7f96 40%, #8dc2cd 100%);
  box-shadow: 0 8px 40px rgba(29,127,150,0.45);
}

.btn--ghost {
  background: transparent;
  box-shadow: 0 4px 0 0 var(--edge-shadow);
  font-weight: 700;
}
.btn--sm { padding: 12px 20px; font-size: 14px; }

/* プラン表示ゲート: /api/ai-checkout の plans プローブに body クラスで追従
   (plan-intro-on = 初月490円 / plan-yearly-on = 年額9,900円。Stripe 側に実体が
   あるときだけ表示し、看板と中身の乖離を防ぐ) */
.plan-intro-only, .plan-yearly-only { display: none; }
body.plan-intro-on .plan-intro-only { display: inline; }
body.plan-yearly-on .plan-yearly-only { display: inline; }
body.plan-yearly-on .btn.plan-yearly-only { display: inline-flex; margin-top: 10px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: 0 3px 0 0 var(--edge-shadow); }

.iconbtn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--edge);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 0 0 var(--edge-shadow);
  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(--edge);
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 3px 0 0 var(--edge-shadow);
  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(--edge-shadow); }
.sfx-toggle:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--edge-shadow); }
.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(--edge-shadow); }
  .sfx-toggle svg { width: 19px; height: 19px; }
}
.iconbtn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 0 var(--edge-shadow); }
.iconbtn:active { transform: translateY(2px); box-shadow: 0 1px 0 0 var(--edge-shadow); }

.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: 900;
  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(--edge);
  overflow: hidden;
  position: relative;
  box-shadow: 0 3px 0 0 var(--edge-shadow);
}
.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: 900;
  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(--edge);
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  box-shadow: 0 3px 0 0 var(--edge-shadow);
  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(--edge);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.5vw, 40px);
  box-shadow: 0 8px 0 0 var(--edge-shadow), 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(--edge);
  box-shadow: 0 4px 0 0 var(--edge-shadow);
  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, #eaf5f7 0%, #eaf5f7 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: 900;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-3);
}
.qcard__axis {
  font-size: 17px; font-weight: 900;
  color: var(--ink);
}

.qcard__stem {
  font-family: var(--font-ui);
  font-size: clamp(20px, 2.3vw, 26px);
  font-weight: 900;
  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: 900;
  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(--edge);
  color: var(--ink);
  font-size: 17px;
  font-weight: 900;
  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(--edge);
  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(--edge);
  box-shadow: 0 4px 0 0 var(--edge-shadow);
  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 {
  /* 縦中央寄せ (justify-content:center) は、レポートが viewport より高いと
     はみ出し分が上下ともスクロール不能になる (flexbox の既知の罠)。
     player 画面と同じく flex-start + padding-top にして常にスクロール可能に。 */
  align-items: center; justify-content: flex-start;
  padding-top: clamp(70px, 8vw, 90px);
}
.report {
  width: 100%; max-width: 720px;
  /* flex column 内でカードが viewport 高に押し縮められて内容がはみ出す
     (=スクロール不能で見切れる) のを防ぐ。常に実コンテンツ高を保つ。 */
  flex-shrink: 0;
  background: var(--paper);
  border: 2.5px solid var(--edge);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 44px);
  box-shadow: 0 8px 0 0 var(--edge-shadow), 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(--edge);
  margin-bottom: 28px;
  box-shadow: 0 4px 0 0 var(--edge-shadow);
}
.swing__col { text-align: center; }
.swing__label {
  font-size: 11px;
  font-weight: 900;
  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(--edge);
  text-align: center;
  box-shadow: 0 4px 0 0 var(--edge-shadow);
}
.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: 900;
  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(--edge);
  box-shadow: 0 4px 0 0 var(--edge-shadow);
  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: 900; 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: 900; margin-left: 2px; color: var(--ink-2); }
.mtrack__barTrack {
  height: 8px; border-radius: 9999px;
  background: var(--bg-2); border: 1.5px solid var(--edge); 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: 900; 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(--edge);
  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(--edge);
  box-shadow: 0 4px 0 0 var(--edge-shadow);
}
.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(--edge);
  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(--edge);
}

.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(--edge);
  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(--edge);
  display: flex; align-items: center; gap: 12px;
  box-shadow: 0 3px 0 0 var(--edge-shadow);
}
.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(--edge);
  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: 900; 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(--edge);
  box-shadow: 0 5px 0 0 var(--edge-shadow);
}
.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(--edge);
}
.cooldown__body { flex: 1; }
.cooldown__title {
  font-size: 12px;
  font-weight: 900;
  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__pain {
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.7;
  color: var(--ink-2);
  margin: 0 0 14px;
  font-weight: 700;
}
.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__proof {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin: 22px 0 0;
}
.lp__proofItem {
  padding: 0 clamp(14px, 4vw, 28px);
  text-align: center;
}
.lp__proofItem strong {
  display: block;
  font-size: 20px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.lp__proofItem span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  margin-top: 3px;
  white-space: nowrap;
}
.lp__proofDivider {
  width: 1px;
  background: var(--edge);
}
.lp__proofNote {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--ink-3);
  text-align: center;
}
.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(--edge);
  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: 900;
  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: 900;
  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(--edge);
  background: var(--paper);
  box-shadow: 0 6px 0 0 var(--edge-shadow);
  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: 900;
  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: 900;
  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;
}

/* ── LP footer (内部リンク) ───────── */
.lp__footer {
  text-align: center;
  padding: 32px 20px 8px;
  border-top: 2px dashed var(--line);
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lp__footerLogo {
  font-size: 14px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.2px;
}
.lp__footerNav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}
.lp__footerNav a {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.15s ease;
}
.lp__footerNav a:hover { color: var(--ink); }
.lp__footerCopy {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ── 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(--edge);
  border-radius: var(--r-lg);
  box-shadow: 0 4px 0 0 var(--edge-shadow);
  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(--edge);
  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: 900;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.ai-progress__bar {
  height: 8px;
  background: var(--bg-2);
  border: 2px solid var(--edge);
  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(--edge);
  box-shadow: 0 3px 0 0 var(--edge-shadow);
  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(--edge);
  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, #e5dfd2);
  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: 900;
  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, #eaf5f7 0%, #eaf5f7 100%);
  border-color: var(--accent, #1d7f96);
  animation: aiFanfarePulse 1.6s ease-out 1;
}
.ai-status--fanfare .ai-status__icon {
  background: var(--accent, #1d7f96);
  color: white;
  animation: aiFanfareIcon 0.9s cubic-bezier(.2,.9,.3,1.3) 1;
}
.ai-status--fanfare .ai-status__title { color: #14596a; }
@keyframes aiFanfarePulse {
  0%   { box-shadow: 0 0 0 0 rgba(29,127,150,0.45); }
  60%  { box-shadow: 0 0 0 18px rgba(29,127,150,0); }
  100% { box-shadow: 0 0 0 0 rgba(29,127,150,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(--edge);
  box-shadow: 0 6px 0 0 var(--edge-shadow);
  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(--edge);
  box-shadow: 0 3px 0 0 var(--edge-shadow);
}
.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__required {
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid var(--blue-deep);
  border-left-width: 4px;
  border-radius: var(--r-md);
  background: var(--blue-soft);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}
.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(--edge);
}

.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(--edge);
  border-radius: var(--r-pill);
  box-shadow: 0 4px 0 0 var(--edge-shadow);
  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(--edge);
  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(--edge-shadow);
}
.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(--edge-shadow); }
  .player__meta { font-size: 12.5px; gap: 8px; }
  .streak { padding: 5px 10px; font-size: 12px; box-shadow: 0 2px 0 0 var(--edge-shadow); }
  .iconbtn { width: 36px; height: 36px; font-size: 16px; box-shadow: 0 2px 0 0 var(--edge-shadow); }

  .qcard { padding: 20px 18px 22px; border-width: 2px; border-radius: 24px; box-shadow: 0 6px 0 0 var(--edge-shadow); }
  .qcard__head { gap: 10px; margin-bottom: 16px; }
  .qcard__icon { width: 46px; height: 46px; border-radius: 14px; box-shadow: 0 3px 0 0 var(--edge-shadow); }
  .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(--edge-shadow); }
  .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(--edge-shadow); }
  .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(--edge-shadow); }
  .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(--edge-shadow); }
  .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(--edge-shadow); }
  .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(--edge);
  box-shadow: 0 4px 0 0 var(--edge-shadow);
  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: 900;
  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(--edge);
  color: var(--ink);
  font-weight: 900;
  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(--edge);
  border-radius: var(--r-pill);
  box-shadow: 0 3px 0 0 var(--edge-shadow);
  font-size: 12px;
  font-weight: 900;
  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(--edge);
  flex-shrink: 0;
}
.idbadge__label {
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}
.idbadge__mask {
  font-family: var(--font-num);
  font-weight: 900;
  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, #1d7f96);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  border-radius: 9999px;
  border: 1.5px solid #33414a;
  vertical-align: middle;
}
.idbadge__out {
  margin-left: 4px;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 900;
  letter-spacing: 0.02em;
  background: transparent;
  border: 1.5px solid var(--edge);
  border-radius: var(--r-pill);
  cursor: pointer;
  color: var(--ink);
}
.idbadge__out:hover { background: var(--bg-2); }
/* セッション中 (player) と結果 (report) では badge を隠す:
   focus mode で気を散らさない & モバイルで progress/h1 と物理的に重なるのを防ぐ。 */
body:has(#player:not([hidden])) #identityBadge,
body:has(#report:not([hidden])) #identityBadge { display: none; }
@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: 900;
  letter-spacing: 0.02em;
  background: var(--blue-soft);
  color: var(--ink);
  border: 2px solid var(--edge);
  box-shadow: 0 2px 0 0 var(--edge-shadow);
  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(--edge);
  box-shadow: 0 3px 0 0 var(--edge-shadow);
  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: 900;
  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(--edge);
  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(--edge);
  box-shadow: 0 3px 0 0 var(--edge-shadow);
}
.retention__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--purple);
  color: white;
  font-size: 20px;
  font-weight: 900;
  border: 2px solid var(--edge);
  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(--edge-shadow); }
  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(--edge-shadow); }
}

@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: 900; 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(--edge);
  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(--edge);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 12.5px; font-weight: 900;
  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(246,243,236,0)) center top,
    linear-gradient(rgba(246,243,236,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: 900; 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;
}
/* intro: 今日の復習期限・学習日数のミニ表示 */
.intro__todaystat {
  margin: 10px 0 0;
  font-size: 12.5px; font-weight: 700; color: var(--ink-2);
}

/* ── intro: セッションモード (おまかせ / 弱点集中 / 復習優先) ── */
.intro__modes {
  display: flex;
  gap: 8px;
  justify-content: center;
  max-width: 460px;
  margin: 0 auto 16px;
}
.intro-mode {
  flex: 1 1 0;
  min-width: 0;
  min-height: 56px;
  padding: 10px 8px;
  border-radius: var(--r-lg, 16px);
  border: 2px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  text-align: center;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.intro-mode:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--ink-3); }
.intro-mode.is-active {
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: 0 3px 0 0 rgba(29,127,150,0.28);
}
.intro-mode:disabled { cursor: not-allowed; opacity: 0.5; }
.intro-mode__name {
  display: block;
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: 0.01em;
}
.intro-mode__desc {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.4;
}

/* ── report: 連続学習日数 + 明日の復習予告 ─────────────── */
.streakline {
  max-width: 460px;
  margin: 14px auto 0;
  padding: 12px 16px;
  border-radius: var(--r-lg, 16px);
  border: 2px solid var(--edge);
  box-shadow: 0 3px 0 0 var(--edge-shadow);
  background: var(--yellow-soft);
  text-align: left;
}
.streakline__days {
  margin: 0;
  font-size: 13.5px;
  font-weight: 900;
  color: var(--ink);
}
.streakline__tomorrow {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.6;
}
.streakline__days[hidden] + .streakline__tomorrow { margin-top: 0; }

/* LP: 仕組みの 3 ステップ */
.how {
  max-width: 760px;
  margin: 56px auto 0;
  padding: 0 20px;
}
.how__title {
  margin: 0 0 22px;
  font-size: 22px; font-weight: 900; color: var(--ink);
  text-align: center;
  letter-spacing: -0.4px;
}
.how__steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .how__steps { grid-template-columns: repeat(3, 1fr); }
}
.how__step {
  position: relative;
  padding: 18px 16px 16px;
  background: var(--paper, #fff);
  border: 2px solid var(--line);
  border-radius: 18px;
}
.how__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-deep);
  font-size: 14px; font-weight: 900;
}
.how__name {
  margin: 0 0 6px;
  font-size: 15px; font-weight: 900; color: var(--ink);
}
.how__desc {
  margin: 0;
  font-size: 12.5px; font-weight: 600; line-height: 1.75; color: var(--ink-2);
}

/* 英語力3分診断への導線 (LP) */
.lp__diagnose {
  margin: 8px 0 0;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2);
}
.lp__diagnose a {
  font-weight: 900;
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* report: 習熟マップ (source × axis) */
.skillmap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.skillmap__cell {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 44px;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: var(--paper, #fff);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
}
.skillmap__label {
  font-size: 12.5px; font-weight: 700; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.skillmap__bar {
  display: block; height: 8px;
  background: var(--line);
  border-radius: 999px; overflow: hidden;
}
.skillmap__bar i {
  display: block; height: 100%;
  border-radius: 999px;
  transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.skillmap__cell[data-level="low"]  .skillmap__bar i { background: var(--coral-deep, #e0604f); }
.skillmap__cell[data-level="mid"]  .skillmap__bar i { background: #186f83; } /* 機能色: 弱→強の信号スケール中段 (ブランド色とは独立) */
.skillmap__cell[data-level="high"] .skillmap__bar i { background: var(--mint-deep, #2f9e77); }
.skillmap__rate {
  font-size: 12.5px; font-weight: 900; color: var(--ink-2);
  text-align: right; font-variant-numeric: tabular-nums;
}

/* 答え合わせ後の「正解の発音を聞く」ボタン */
.fb-say {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 0 0 10px;
  padding: 9px 16px;
  min-height: 40px;
  background: var(--blue-soft);
  border: 1.5px solid var(--blue-deep);
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px; font-weight: 900; color: var(--blue-deep);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}
.fb-say:hover { transform: translateY(-1px); }
.fb-say:active { transform: translateY(0); }
.fb-say svg { flex: none; }
/* 出題時に隠していた和訳の開示 */
.fb-ja {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 600; line-height: 1.7; color: var(--ink-2);
}
.fb-ja::before { content: "和訳: "; font-weight: 900; color: var(--ink-3); }
/* 忘れかけの記憶を取り戻した時の払い戻し (間隔反復の「効いてる感」) */
.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: 900; 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 プラン ──
   .pro-cta      = Stripe 直課金 CTA (billing configured のときだけ表示 = 主経路)
   .pro-cta-alt  = note 合言葉 CTA (billing 休眠時のフォールバック = 既存メンバー互換)
   .pro-hide     = Pro 会員に見せないアップセル要素 */
.pro-cta { display: none; }
body.billing-on .pro-cta { display: block; }
.pro-cta-alt { display: block; }
body.billing-on .pro-cta-alt { display: none; }
/* 既に Pro 会員ならアップセルは出さない (払い済みへの勧誘は信頼を損なう) */
body.is-pro .pro-cta,
body.is-pro .pro-cta-alt,
body.is-pro .pro-hide { display: none; }

/* Free / Pro 比較表 (常時表示。料金と差を隠さない) */
.plan-table { width: 100%; border-collapse: collapse; margin: 18px 0 6px; font-size: 13px; }
.plan-table th, .plan-table td {
  padding: 10px 8px;
  border-bottom: 1.5px solid var(--line);
  text-align: left;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.55;
}
.plan-table th { font-size: 11.5px; letter-spacing: 0.08em; color: var(--ink-3); }
.plan-table th:nth-child(2), .plan-table td:nth-child(2),
.plan-table th:nth-child(3), .plan-table td:nth-child(3) { text-align: center; }
.plan-table td:first-child { color: var(--ink); }
.plan-table td:nth-child(3) { color: var(--blue-deep, #1d7f96); font-weight: 900; }
.plan-table tr:last-child td { border-bottom: none; }
.pro-plan { max-width: 560px; margin: 48px auto; padding: 0 20px; }
.pro-plan__card {
  background: var(--paper);
  border: 2.5px solid var(--edge);
  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); }
/* 課金 CTA は Design System v3 のメイン CTA (コーラル押しボタン) に統一 (2026-07-14)。
   ティールは学習系アクション、コーラルは転換アクションで役割を分ける */
.btn--upgrade {
  width: 100%;
  max-width: 320px;
  background: #ef8577;
  border-color: transparent;
  box-shadow: 0 4px 0 #d96c5e;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.btn--upgrade:hover {
  background: #f0937f;
  box-shadow: 0 4px 0 #d96c5e, 0 6px 16px rgba(239,133,119,0.35);
}
.btn--upgrade:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #d96c5e;
}

/* ── hero の Pro バナー (LP 上で Pro を目立たせる恒久導線・2026-07-15) ── */
.lp__proChip {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 14px auto 0;
  padding: 12px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(239,133,119,0.10), rgba(239,133,119,0.04));
  border: 2px solid #f0a496;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.lp__proChip:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(239,133,119,0.28);
}
.lp__proChipBadge {
  flex: 0 0 auto;
  padding: 5px 12px;
  border-radius: 9999px;
  background: #ef8577;
  box-shadow: 0 3px 0 #d96c5e;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
}
.lp__proChipBody { flex: 1; min-width: 0; text-align: left; }
.lp__proChipMain {
  display: block;
  font-size: 13.5px;
  font-weight: 900;
  line-height: 1.45;
  color: var(--ink, #33414a);
}
.lp__proChipSub {
  display: block;
  margin-top: 1px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2, #5b6a73);
}
.lp__proChipArrow {
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  color: #e2695a;
}
body.is-pro .lp__proChip { display: none; }

/* クロージングの Pro 導線 */
.lp__closingPro {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 700;
}
.lp__closingPro a { color: #e2695a; text-decoration: underline; }
body.is-pro .lp__closingPro { display: none; }

/* ── Pro 限定要素のロック表示 (Free には正直に「解放待ち」を見せる) ── */
.due--locked {
  border: 1.5px dashed var(--line, #e5dfd2);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--bg, #f8fafc);
  list-style: none;
}
.due__lockText {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-2, #5b6a73);
  margin: 0 0 8px;
}
.due__lockCta,
.retention__lockCta,
.skillmap__lockCta {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  color: #d96c5e;
  text-decoration: underline;
  cursor: pointer;
}
.retention--locked [data-r] { opacity: 0.45; }
.retention__lock { margin: 8px 0 0; }
.skillmap__lock {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-2, #5b6a73);
  margin: 10px 0 0;
}

/* Pro 会員のサブスク管理リンク (is-pro のときだけ表示) */
.pro-manage { display: none; }
body.is-pro .pro-manage { display: block; }
body.is-pro .pro-cta-alt { display: none; }
.pro-manage-link,
.pw-manage-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--blue-deep, #1d7f96);
  text-decoration: underline;
  cursor: pointer;
}

/* 購入直後のウェルカムモーダル */
#proWelcome {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(31, 41, 55, 0.55);
}
#proWelcome .pw-box {
  max-width: 440px;
  width: 100%;
  background: var(--paper, #fff);
  border: 2px solid var(--line, #e5dfd2);
  border-radius: 20px;
  padding: 26px 22px;
  box-shadow: 0 18px 50px rgba(31, 41, 55, 0.22);
  text-align: center;
}
#proWelcome .pw-kicker {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  color: var(--ink-3, #9aa4ab);
  margin-bottom: 8px;
}
#proWelcome .pw-title {
  font-size: 21px;
  font-weight: 900;
  color: var(--ink, #33414a);
  margin-bottom: 14px;
}
#proWelcome .pw-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  text-align: left;
}
#proWelcome .pw-list li {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--ink-2, #5b6a73);
  padding: 4px 0;
}
#proWelcome .pw-note {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3, #9aa4ab);
  margin-bottom: 14px;
}
#proWelcome .pw-cta { width: 100%; max-width: 320px; }
#proWelcome .pw-close {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  min-height: 44px;
  background: transparent;
  border: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-3, #9aa4ab);
  cursor: pointer;
}
#proWelcome .pw-manage { margin: 6px 0 0; }
#proWelcome .pw-manage-link { font-size: 11.5px; color: var(--ink-3, #9aa4ab); }

/* 無料上限パネル (introCooldown 流用時) */
.intro__cooldown--limit { border-color: var(--blue); background: var(--blue-soft); }
.intro__cooldown--limit .btn--upgrade { margin-top: 12px; }
/* revealLimitPanel が読み上げのため tabindex=-1 でフォーカスを移す。
   操作対象ではないコンテナなのでフォーカスリングは出さない (中の CTA 側は従来どおり) */
#freeLimitPanel:focus { outline: none; }

/* ── レポート末尾の Pro アップセル (waitlist と排他表示) ── */
body.billing-on #waitlist { display: none; }
.pro-upsell {
  margin-top: 28px;
  background: var(--paper);
  border: 2.5px solid var(--edge);
  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;
}

/* ── 料金セクション v2: プランカード (2026-07-18 転換率改善) ──
   .pro-plan__card (単一カード) → .plan-cards (FREE/PRO 2 カード) へ移行。
   比較表 .plan-table は .plan-detail (details) 内に温存。 */
.pro-plan { max-width: 800px; text-align: center; }
.plan-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin: 22px 0 14px;
  align-items: stretch;
}
@media (min-width: 680px) { .plan-cards { grid-template-columns: 5fr 6fr; } }
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--edge);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-tile);
  padding: 26px 22px 22px;
  text-align: left;
}
.plan-card--pro {
  border: 2.5px solid #f0a496;
  box-shadow: 0 6px 0 0 rgba(217,108,94,0.14), var(--shadow-soft);
}
.plan-card__flag {
  position: absolute; top: -13px; left: 20px;
  padding: 4px 14px;
  border-radius: var(--r-pill);
  background: #ef8577;
  box-shadow: 0 3px 0 #d96c5e;
  color: #fff;
  font-size: 12px; font-weight: 900; letter-spacing: 0.08em;
  white-space: nowrap;
}
.plan-card__name {
  margin: 0 0 2px;
  font-size: 12.5px; font-weight: 900; letter-spacing: 0.16em;
  color: var(--ink-3);
}
.plan-card__name--pro { color: #e2695a; }
.plan-card__price { margin: 0; color: var(--ink); font-family: var(--font-num); }
.plan-card__price strong { font-size: clamp(38px, 7vw, 48px); font-weight: 900; letter-spacing: -1px; }
.plan-card__unit { font-size: 14px; font-weight: 800; color: var(--ink-2); margin-left: 3px; }
.plan-card__unit em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.plan-card__tagline { margin: 2px 0 16px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.plan-card--pro .plan-card__tagline { color: #d96c5e; }
.plan-card__perks {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.plan-card__perks li {
  position: relative; padding-left: 24px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); line-height: 1.62;
}
.plan-card__perks li strong { color: var(--ink); font-weight: 900; }
.plan-card__perks li::before {
  content: ''; position: absolute; left: 0; top: 0.3em;
  width: 15px; height: 15px; 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;
}
.plan-card__perks--pro li::before { background: #ef8577; }
.plan-card__cta { width: 100%; margin-top: auto; }
.plan-card--pro .pro-cta { margin-top: auto; }
.plan-card--pro .btn--upgrade { max-width: none; }
.plan-trust {
  list-style: none; margin: 14px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.plan-trust li {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--mint-soft);
  color: var(--mint-deep);
  font-size: 11px; font-weight: 800;
  white-space: nowrap;
}
.plan-detail { margin: 6px 0 0; text-align: left; }
.plan-detail summary {
  cursor: pointer;
  text-align: center;
  min-height: 44px;
  padding: 11px 10px;
  border-radius: 12px;
  font-size: 13px; font-weight: 800;
  color: var(--blue-deep);
}
.plan-detail summary:hover { background: var(--blue-soft); }
.plan-detail[open] summary { color: var(--ink-2); }

/* レポート末尾アップセルの perk リスト + 価格行 */
.pro-upsell__perks { margin-bottom: 14px; }
.pro-upsell__price { margin: 0 0 16px; font-size: 14px; font-weight: 900; color: var(--ink); }

/* ── LP モバイル追従 CTA (hero CTA 通過後に表示。drawer 貫通防止のため z-index 200 以下) ── */
.lp__sticky {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: flex; align-items: center; gap: 10px;
  padding: 10px clamp(14px, 4vw, 20px) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1.5px solid var(--line);
  box-shadow: 0 -8px 24px rgba(23,115,135,0.10);
}
.lp__stickyStart { flex: 1; min-height: 52px; font-size: 14.5px; }
.lp__stickyPro {
  flex: 0 0 auto;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-width: 74px; min-height: 52px;
  padding: 6px 12px;
  border-radius: 16px;
  border: 2px solid #f0a496;
  background: linear-gradient(135deg, rgba(239,133,119,0.12), rgba(239,133,119,0.05));
  text-decoration: none;
}
.lp__stickyProLabel { font-size: 11px; font-weight: 900; letter-spacing: 0.12em; color: #e2695a; }
.lp__stickyProPrice { font-size: 12px; font-weight: 900; color: var(--ink); white-space: nowrap; }
@media (min-width: 721px) { .lp__sticky { display: none !important; } }
@media (max-width: 720px) { .lp__footer { padding-bottom: 108px; } }
.pro-plan__note a { color: var(--ink-2); }

/* ── 転換タッチポイント強化 (2026-07-18 第2弾) ── */
/* アンカー遷移の着地余白 + スムーススクロール (reduced-motion 尊重) */
#pricing { scroll-margin-top: 16px; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* 体験終了の継続案内オーバーレイ (2026-08-10・1端末1回) */
.trialend {
  position: fixed; inset: 0; z-index: 190; /* sticky CTA 規約: 200 以下 */
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(31, 41, 46, 0.45);
}
.trialend__card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  max-width: 420px; width: 100%;
  max-height: 86vh; overflow-y: auto;
  padding: 24px 22px 18px;
  text-align: center;
  box-shadow: 0 18px 48px rgba(31, 41, 46, 0.25);
}
.trialend__badge {
  display: inline-block; margin: 0 0 10px;
  padding: 4px 12px; border-radius: 9999px;
  background: var(--coral-soft); color: var(--coral-deep);
  font-size: 11.5px; font-weight: 800;
}
.trialend__title { margin: 0 0 8px; font-size: 17px; font-weight: 900; color: var(--ink); line-height: 1.45; }
.trialend__body { margin: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.6; text-align: left; }
.trialend .limit-perks { margin: 10px 0 14px; }
.trialend .btn--upgrade { width: 100%; }
.trialend__price { margin: 8px 0 0; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.trialend__dismiss {
  background: none; border: none; padding: 10px 4px 2px; cursor: pointer;
  color: var(--ink-3); text-decoration: underline;
  font-size: 12px; font-weight: 700; font-family: inherit;
}

/* 無料上限パネル内の Pro perk ミニリスト */
.limit-perks {
  list-style: none;
  margin: 10px 0 12px;
  padding: 0;
  text-align: left;
  display: flex; flex-direction: column; gap: 7px;
}
.limit-perks li {
  position: relative; padding-left: 22px;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); line-height: 1.55;
}
.limit-perks li strong { color: var(--ink); font-weight: 900; }
.limit-perks li::before {
  content: ''; position: absolute; left: 0; top: 0.28em;
  width: 14px; height: 14px; border-radius: 50%;
  background: #ef8577;
  -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;
}
.limit-price { margin: 8px 0 0; font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.limit-price--yearly { margin-top: 4px; }
.limit-yearly-btn {
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--ink-3); text-decoration: underline;
  font-size: 11.5px; font-weight: 700; font-family: inherit;
}
/* 上限パネルのパーソナライズ行 (復習期限 N 問): 通常 hint より一段強調 */
.limit-due-line {
  background: rgba(239, 133, 119, 0.10);
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 700;
}
.limit-due-line strong { font-weight: 900; }

/* レポート内ロック CTA を下線テキスト → コーラル押しボタン (小) に統一。
   タップ面積とアフォーダンスを揃えて report 経由の転換を拾う */
.due__lockCta,
.retention__lockCta,
.skillmap__lockCta {
  display: inline-block;
  margin-top: 4px;
  padding: 9px 16px;
  min-height: 40px;
  background: #ef8577;
  border: none;
  border-radius: var(--r-pill);
  box-shadow: 0 3px 0 #d96c5e;
  color: #fff;
  font-size: 12.5px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}
.due__lockCta:active,
.retention__lockCta:active,
.skillmap__lockCta:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #d96c5e;
}
.skillmap__lock { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }

/* ── intro 画面 v2 (2026-07-18 デザイン見直し) ──
   巨大ブロブ + LP コピー再掲でモバイル縦積みのままだった intro を
   「今日のダッシュボード」として圧縮。CTA をファーストビューに引き上げる */
.intro__hero { width: 176px; height: 176px; margin-bottom: 6px; }
.intro__bigNum { font-size: 88px; }
.intro__bigNum sup { font-size: 26px; }
.intro__lead { margin-bottom: 14px; }
.screen--intro .display {
  font-size: clamp(22px, 3.2vw, 28px);
  line-height: 1.3;
  margin-bottom: 10px;
}
.screen--intro .lead {
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0 auto 22px;
  max-width: 40em;
}
@media (max-width: 560px) {
  .intro__hero { width: 150px; height: 150px; }
  .intro__bigNum { font-size: 72px; }
  .intro__bigNum sup { font-size: 22px; }
  .screen--intro .display { font-size: 21px; }
}

/* 今日の状態チップ (復習期限 / 連続 / 学習日数) — CTA より上で今日の文脈を先に見せる */
.intro__todaystat {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 16px;
}
.intro__todaystat[hidden] { display: none; }
.tstat {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--paper);
  border: 1.5px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-2);
  white-space: nowrap;
}
.tstat--due { background: var(--coral-soft); border-color: #f0a496; color: #c85a4c; }
.tstat--streak { background: var(--yellow-soft); border-color: var(--teal-pale, #cfe3e8); color: var(--blue-deep); }

/* デスクトップ: 間延び対策としてカードに収める */
@media (min-width: 900px) {
  .screen--intro .intro__copy {
    max-width: 640px;
    background: var(--paper);
    border: 2px solid var(--edge);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow-tile), var(--shadow-soft);
    padding: 36px 48px 32px;
  }
}

/* モバイルのログインバッジ折り返し対策: ラベルはドットに任せて省略、
   メールマスクは ellipsis (intro の eyebrow への重なり防止) */
@media (max-width: 560px) {
  .idbadge { max-width: calc(100vw - 24px); flex-wrap: nowrap; }
  .idbadge__label { display: none; }
  .idbadge__mask {
    min-width: 0;
    max-width: 44vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}
.idbadge__out { white-space: nowrap; }

/* ── 2026-07-30 LP midashi（訴求LP文法 design-v2 併用の調整層）── */
.lp__secTitle {
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: clamp(20px, 3.6vw, 24px);
  line-height: 1.55;
  letter-spacing: 0;
  text-wrap: balance;
  text-align: center;
  color: var(--text-1, rgba(26, 26, 26, 0.88));
  margin: 40px auto 18px;
  max-width: 22em;
}
.lp__whysWrap { text-align: center; }
.lp__whysWrap .lp__secTitle { margin-top: 0; }
.lp__whys {
  max-width: 560px;
  margin: 0 auto;
  text-align: left;
}
.lp__whys .check-line { font-size: 14.5px; margin: 6px 0; }
.lp__whysClose {
  margin: 18px auto 0;
  max-width: 34em;
  font-weight: 700;
  color: #14596a;
  line-height: 1.9;
}
.lp__hero .hero-badges { margin: 18px 0 6px; }
.lp__hero .hero-price { margin-bottom: 10px; }
.lp__hero .cta-micro { margin-top: 12px; }
.pro-plan .cta-micro { margin: 16px 0 4px; }

/* ── 2026-07-30 Free/Pro 再設計（測る/潰す）── */
.pro-plan__lead {
  text-align: center;
  max-width: 32em;
  margin: 6px auto 20px;
  color: var(--ink-2, rgba(26,26,26,0.62));
  line-height: 1.85;
}
.plan-card__nameSub {
  margin: 0 0 8px;
  font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink, #1a1a1a);
}
.plan-card--pro .plan-card__nameSub { color: #e2695a; }
/* 体験中バッジ（PRO バッジと同型・色だけコーラル寄せ） */
.idbadge__tier--trial {
  background: #ef8577;
  letter-spacing: 0.02em;
}

/* ── Pro の声: レポート末尾の 1 問アンケート ──────────────
   自由記述を持たない固定選択式。選択肢は cta_event に id で載る。 */
.provoice {
  margin: 24px 0 8px;
  padding: 16px 18px;
  background: var(--bg-2);
  border: 1px solid var(--edge);
  border-radius: 14px;
}
.provoice__q {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
}
.provoice__opts { display: grid; gap: 8px; }
.provoice__opt {
  appearance: none;
  text-align: left;
  padding: 10px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: 9999px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.provoice__opt:hover { border-color: var(--blue); background: var(--blue-soft); }
.provoice__opt:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.provoice__opt:disabled { opacity: .5; cursor: default; }
.provoice__foot { margin-top: 10px; text-align: right; }
.provoice__skip {
  appearance: none; background: none; border: 0;
  font: inherit; font-size: 12px; color: var(--ink-3);
  cursor: pointer; padding: 4px 6px;
}
.provoice__skip:hover { color: var(--ink-2); text-decoration: underline; }
.provoice__done {
  margin: 24px 0 8px;
  padding: 14px 18px;
  font-size: 13px;
  color: var(--ink-2);
  background: var(--blue-soft);
  border: 1px solid var(--edge);
  border-radius: 14px;
}
