/* 英検二次面接 ぜんぶ攻略くん — app.css
   モチーフ：面接ルームのスポットライト × 問題カード。色分けで「型」が一目で分かる。
   横スクロールは作らない（すべて折り返し）。375px とデスクトップで確認。 */
:root {
  --paper: #f5f3ee; --surface: #ffffff; --ink: #15171c; --sub: #5d6372; --faint: #8b90a0;
  --line: #e4e0d6; --soft: #efece4; --mark: #ffe14a; --ok: #0d9b68; --ng: #de3b3b;
  --g2: #2463eb; --gp: #e2492b; --g1: #7a3bea; --brand: #ff5a36; --g: var(--brand);
  --pos-bg: #fff2a8; --pos-tx: #5a4300; --r-bg: #e6eeff; --r-tx: #1d47b8; --ex-bg: #dcf4e8; --ex-tx: #0a6e4a;
  --end-bg: #eceae4; --end-tx: #4b4f5a; --con-bg: #ffe5d8; --con-tx: #a2380f;
  --shadow: 0 1px 2px rgba(20, 22, 28, .05), 0 6px 22px rgba(20, 22, 28, .06);
  --r: 16px; --tab-h: 64px;
  --font: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  --en: "Outfit", "Noto Sans JP", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0f1115; --surface: #181b22; --ink: #eef0f4; --sub: #a6acba; --faint: #7d8392;
  --line: #2a2f3a; --soft: #1f232c; --mark: #ffd93a;
  --pos-bg: #4a3e0a; --pos-tx: #ffe58a; --r-bg: #16264d; --r-tx: #a9c3ff; --ex-bg: #0f3a2a; --ex-tx: #8fe6bf;
  --end-bg: #2a2d35; --end-tx: #c8ccd6; --con-bg: #45220f; --con-tx: #ffb98f;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1115; --surface: #181b22; --ink: #eef0f4; --sub: #a6acba; --faint: #7d8392;
    --line: #2a2f3a; --soft: #1f232c; --mark: #ffd93a;
    --pos-bg: #4a3e0a; --pos-tx: #ffe58a; --r-bg: #16264d; --r-tx: #a9c3ff; --ex-bg: #0f3a2a; --ex-tx: #8fe6bf;
    --end-bg: #2a2d35; --end-tx: #c8ccd6; --con-bg: #45220f; --con-tx: #ffb98f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
[data-grade="2kyu"] { --g: var(--g2); }
[data-grade="pre1"] { --g: var(--gp); }
[data-grade="1kyu"] { --g: var(--g1); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.75; overflow-x: hidden; padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px); }
img, svg { max-width: 100%; }
a { color: var(--g); text-underline-offset: 3px; }
b, strong { font-weight: 700; }
mark { background: linear-gradient(transparent 55%, var(--mark) 55%); color: inherit; padding: 0 .1em; }
:root[data-theme="dark"] mark { background: linear-gradient(transparent 55%, rgba(255, 217, 58, .45) 55%); }
button { font: inherit; color: inherit; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 8px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--g); outline-offset: 2px; border-radius: 6px; }
main { max-width: 980px; margin: 0 auto; padding: 0 16px; }
svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.15em; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 900; font-size: 15px; line-height: 1.1; min-width: 0; }
.brand small { display: block; font-size: 10px; font-weight: 700; color: var(--sub); letter-spacing: .04em; }
.brand img { flex: none; }
.gsw { display: flex; gap: 4px; margin-left: auto; }
.gsw a { text-decoration: none; font-weight: 800; font-size: 13px; padding: 5px 10px; border-radius: 999px; color: var(--sub); border: 1px solid var(--line); background: var(--surface); }
.gsw a.g-2kyu[aria-current] { background: var(--g2); border-color: var(--g2); color: #fff; }
.gsw a.g-pre1[aria-current] { background: var(--gp); border-color: var(--gp); color: #fff; }
.gsw a.g-1kyu[aria-current] { background: var(--g1); border-color: var(--g1); color: #fff; }
.top-act { display: flex; align-items: center; gap: 6px; }
.quota-pill { display: none; align-items: center; gap: 6px; text-decoration: none; font-size: 12px; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 5px 10px; border-radius: 999px; }
.quota-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; width: 34px; height: 34px; display: grid; place-items: center; }
@media (min-width: 720px) { .quota-pill { display: inline-flex; } }
@media (max-width: 420px) { .brand span { font-size: 13px; } .gsw a { padding: 4px 8px; font-size: 12px; } }

/* ---------- bottom tab bar ---------- */
.tabbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); width: min(560px, calc(100% - 20px)); height: var(--tab-h); background: color-mix(in srgb, var(--ink) 94%, transparent); backdrop-filter: blur(14px); border-radius: 22px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); padding: 6px; }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: color-mix(in srgb, var(--paper) 70%, transparent); font-size: 11px; font-weight: 700; border-radius: 16px; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a[aria-current] { color: var(--ink); background: var(--paper); }
.tabbar a[data-nav="mic"] { color: #fff; background: linear-gradient(135deg, var(--brand), #ff2f6d); }
.tabbar a[data-nav="mic"][aria-current] { box-shadow: inset 0 0 0 2px #fff; }

/* ---------- crumbs ---------- */
.crumbs { font-size: 12px; color: var(--sub); padding: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs a { color: var(--sub); }
.crumbs > * + *::before { content: "›"; margin-right: 4px; color: var(--faint); }

/* ---------- common bits ---------- */
.kicker { font-size: 12px; font-weight: 800; letter-spacing: .06em; color: var(--g); margin: 0 0 6px; }
.tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--sub); margin-right: 6px; white-space: nowrap; }
.tag.ok { background: color-mix(in srgb, var(--ok) 15%, transparent); color: var(--ok); }
.cta { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; text-decoration: none; font-weight: 900; font-size: 16px; color: #fff; background: linear-gradient(135deg, var(--brand), #ff2f6d); border: 0; border-radius: 999px; padding: 14px 22px; box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 40%, transparent); transition: transform .15s; }
.cta:hover { transform: translateY(-1px); }
.cta small { font-size: 11px; font-weight: 700; opacity: .9; background: rgba(255, 255, 255, .2); padding: 1px 8px; border-radius: 999px; }
.cta.ghost { background: transparent; color: inherit; border: 2px solid currentColor; box-shadow: none; }
.cta.small { font-size: 14px; padding: 11px 18px; }
.cta svg { width: 20px; height: 20px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip.g-2kyu[aria-pressed="true"] { background: var(--g2); border-color: var(--g2); color: #fff; }
.chip.g-pre1[aria-pressed="true"] { background: var(--gp); border-color: var(--gp); color: #fff; }
.chip.g-1kyu[aria-pressed="true"] { background: var(--g1); border-color: var(--g1); color: #fff; }
.say { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; margin-left: 6px; border: 0; background: color-mix(in srgb, var(--g) 12%, transparent); color: var(--g); border-radius: 999px; min-width: 28px; height: 28px; padding: 0 7px; font-size: 12px; font-weight: 800; }
.say::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z' fill='black'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z' fill='black'/%3E%3Cpath d='M16 8.5a5 5 0 0 1 0 7M18.5 6a8.5 8.5 0 0 1 0 12' stroke='black' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
.say.playing { background: var(--g); color: #fff; animation: pulse 1s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--g) 20%, transparent); } }
.btn-mic { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 14px; border-radius: 999px; padding: 9px 16px; }
.btn-mic.sm { font-size: 13px; padding: 7px 14px; margin-top: 8px; }
.btn-mic svg { width: 18px; height: 18px; }
.btn-done { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; color: var(--sub); }
.btn-done[aria-pressed="true"] { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: var(--ok); color: var(--ok); }
.btn-done[aria-pressed="true"]::before { content: "✓ "; }

/* ---------- sections ---------- */
.sec { margin: 28px 0; }
.sec-h { font-size: 21px; font-weight: 900; line-height: 1.4; margin: 0 0 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.sec-h span { font-family: var(--en); font-size: 12px; font-weight: 800; letter-spacing: .05em; color: #fff; background: var(--g); padding: 2px 10px; border-radius: 999px; }
.more { text-align: right; font-weight: 700; }

/* ---------- home hero ---------- */
.hero { position: relative; margin: 12px -16px 0; padding: 40px 20px 34px; color: #f4f2ec; background: #121318; overflow: hidden; display: grid; gap: 24px; border-radius: 0 0 28px 28px; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 520px; height: 520px; background: radial-gradient(circle, rgba(255, 90, 54, .55), transparent 62%); filter: blur(10px); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -160px; bottom: -220px; width: 520px; height: 520px; background: radial-gradient(circle, rgba(122, 59, 234, .45), transparent 60%); pointer-events: none; }
.hero-in, .hero-demo { position: relative; z-index: 1; }
.hero .kicker { color: #ffb199; }
.hero-h { font-size: clamp(34px, 8.6vw, 60px); line-height: 1.18; font-weight: 900; letter-spacing: -.01em; margin: 0 0 14px; }
.hero-h .u { background: linear-gradient(transparent 62%, #ff5a36 62%); padding: 0 .06em; }
.hero-h .u2 { background: linear-gradient(90deg, #ff8a5c, #ff2f6d, #a66bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 16px; color: #d6d4cf; margin: 0 0 20px; max-width: 34em; }
.hero-sub b { color: #fff; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 24px; }
.stat { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 10px 8px; text-align: center; }
.stat b { display: block; font-family: var(--en); font-size: 26px; font-weight: 900; color: #fff; line-height: 1.1; }
.stat span { font-size: 11px; color: #c9c6bf; }
@media (max-width: 520px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.hero-demo { display: none; }
.demo-card { background: #fff; color: #15171c; border-radius: 20px; padding: 18px; box-shadow: 0 30px 60px rgba(0, 0, 0, .4); transform: rotate(2deg); max-width: 300px; }
.demo-h { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: #5d6372; }
.demo-h span { background: #e2492b; color: #fff; padding: 1px 8px; border-radius: 999px; }
.demo-score { font-family: var(--en); font-size: 64px; font-weight: 900; line-height: 1; margin: 6px 0; }
.demo-score b { color: #ff5a36; }
.demo-bars { display: grid; gap: 6px; }
.demo-bars i { display: block; height: 8px; border-radius: 99px; background: linear-gradient(90deg, #ff5a36 var(--w), #eee var(--w)); }
.demo-c { font-size: 13px; margin: 12px 0 0; background: #fff2a8; padding: 8px 10px; border-radius: 10px; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.5fr 1fr; align-items: center; padding: 56px 40px 46px; margin: 16px 0 0; border-radius: 28px; }
  .hero-demo { display: block; }
}

/* ---------- grade cards ---------- */
.grade-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grade-card { --c: var(--g2); position: relative; display: grid; gap: 4px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px; box-shadow: var(--shadow); overflow: hidden; transition: transform .15s; }
.grade-card:hover { transform: translateY(-2px); }
.grade-card.g-pre1 { --c: var(--gp); }
.grade-card.g-1kyu { --c: var(--g1); }
.grade-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: color-mix(in srgb, var(--c) 14%, transparent); }
.gc-n { font-size: 30px; font-weight: 900; color: var(--c); line-height: 1.2; }
.gc-t { font-size: 13px; font-weight: 700; color: var(--sub); }
.gc-p { font-size: 13px; }
.gc-go { font-size: 13px; font-weight: 800; color: var(--c); margin-top: 6px; }

/* ---------- uroko ---------- */
.uroko { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.uroko-i { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.uroko-i .myth { margin: 0; font-size: 13px; color: var(--ng); font-weight: 700; }
.uroko-i .myth::before { content: "誤解 "; font-size: 11px; background: var(--ng); color: #fff; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.uroko-i .truth { margin: 6px 0; font-weight: 700; font-size: 15px; }
.uroko-i .truth::before { content: "本当 "; font-size: 11px; background: var(--ok); color: #fff; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.uroko-i .ex { margin: 0; font-family: var(--en); font-size: 14px; color: var(--sub); }

/* ---------- features ---------- */
.feat { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.feat-i { display: grid; gap: 4px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.feat-i b { font-size: 16px; }
.feat-i span { font-size: 13px; color: var(--sub); }
.ai-box { background: var(--surface); border: 2px dashed color-mix(in srgb, var(--brand) 50%, var(--line)); border-radius: 20px; padding: 18px; }
.ai-steps { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); counter-reset: s; }
.ai-steps li { background: var(--soft); border-radius: 12px; padding: 10px 12px 10px 44px; position: relative; font-size: 13px; }
.ai-steps li::before { counter-increment: s; content: counter(s); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 900; display: grid; place-items: center; font-family: var(--en); }
.ai-steps b { display: block; font-size: 15px; }

/* ---------- faq ---------- */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; padding: 0 16px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 14px 0; list-style: none; }
.faq summary::before { content: "Q. "; color: var(--g); font-family: var(--en); }
.faq p { margin: 0 0 14px; color: var(--sub); }

/* ---------- grade hero / page head ---------- */
.ghero, .phead { margin: 12px 0 0; padding: 24px 20px; border-radius: 24px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--g) 70%, #fff) 0%, var(--g) 45%, color-mix(in srgb, var(--g) 55%, #000) 100%); position: relative; overflow: hidden; }
.ghero .kicker, .phead .kicker { color: rgba(255, 255, 255, .85); }
.ghero h1, .phead h1 { margin: 0; font-size: clamp(26px, 6vw, 40px); line-height: 1.25; font-weight: 900; }
.ghero h1 small, .phead h1 small { display: block; font-size: .55em; font-weight: 800; opacity: .9; margin-top: 4px; }
.phead h1 .p-i { margin-right: 8px; }
.phead .en-h { font-family: var(--en); font-size: clamp(22px, 5vw, 32px); line-height: 1.3; }
.phead .h-ja { margin: 8px 0 0; opacity: .92; }
.ph-act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.ph-act .say { background: rgba(255, 255, 255, .2); color: #fff; height: 38px; padding: 0 14px; margin: 0; }
.ph-act .btn-mic { background: #fff; color: #15171c; }
.phead.tone-ink { --g: #15171c; background: radial-gradient(120% 160% at 100% 0%, #3a2a5c 0%, #15171c 55%); }
:root[data-theme="dark"] .phead.tone-ink { background: radial-gradient(120% 160% at 100% 0%, #3a2a5c 0%, #1c1f27 60%); }
.ginfo { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ginfo span { background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25); padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.ghero::after, .phead::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px; border: 26px solid rgba(255, 255, 255, .12); border-radius: 50%; }

/* ---------- interview map ---------- */
.map { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); counter-reset: m; }
.map li a { position: relative; display: grid; gap: 2px; height: 100%; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 12px; box-shadow: var(--shadow); transition: transform .15s, border-color .15s; }
.map li a:hover { transform: translateY(-2px); border-color: var(--g); }
.m-n { position: absolute; top: 10px; right: 12px; font-family: var(--en); font-weight: 900; font-size: 13px; color: var(--faint); }
.m-i { font-size: 24px; line-height: 1.2; }
.m-l { font-weight: 900; font-size: 16px; }
.m-s { font-size: 12px; color: var(--sub); line-height: 1.5; }
.m-p { justify-self: start; margin-top: 4px; font-family: var(--en); font-weight: 900; font-size: 13px; color: #fff; background: var(--g); padding: 1px 9px; border-radius: 999px; }
.map-note { font-size: 13px; color: var(--sub); }
.bars { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.bar { display: grid; grid-template-columns: minmax(90px, 9em) 1fr 2.4em; align-items: center; gap: 10px; font-size: 13px; }
.bt { height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; }
.bt i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, color-mix(in srgb, var(--g) 60%, #fff), var(--g)); border-radius: 99px; }
.bar b { font-family: var(--en); font-size: 16px; text-align: right; }
.parts, .banks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.part, .bank { display: grid; gap: 4px; align-content: start; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.part .p-i { font-size: 24px; }
.part b, .bank b { font-size: 16px; }
.part span:not(.p-i), .bank span { font-size: 13px; color: var(--sub); }
.bank.ai { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), var(--surface)); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }

/* ---------- ここだけ3行 ---------- */
.three { margin: 16px 0; background: var(--surface); border: 2px solid var(--ink); border-radius: 18px; padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); }
.three-h { display: inline-block; font-weight: 900; font-size: 13px; background: var(--mark); color: #15171c; padding: 2px 10px; border-radius: 6px; margin-bottom: 8px; }
.three ol { margin: 0; padding-left: 1.4em; }
.three li { margin: 4px 0; font-weight: 700; }
.three p { margin: 6px 0; }
.three-note { font-size: 13px; color: var(--sub); }

/* ---------- tabs ---------- */
.ptabs { margin: 16px 0; }
.tabrow { position: sticky; top: 62px; z-index: 20; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--soft); border-radius: 14px; padding: 4px; }
.tabrow button { border: 0; background: transparent; border-radius: 10px; padding: 9px 4px; font-weight: 800; font-size: 13px; color: var(--sub); line-height: 1.2; }
.tabrow button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.pane { padding: 8px 0; }
.pane-h { font-size: 18px; margin: 12px 0; }
.part-cta { text-align: center; margin: 20px 0; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.pager a { text-decoration: none; font-weight: 800; font-size: 14px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.pager .nx { text-align: right; background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- blocks ---------- */
.b-key { background: var(--ink); color: var(--paper); border-radius: 18px; padding: 16px 18px; margin: 14px 0; }
.b-key-l { font-size: 11px; font-weight: 900; letter-spacing: .08em; color: var(--mark); }
.b-key h4 { margin: 4px 0; font-size: 17px; }
.b-key p { margin: 0; }
.b-key mark { background: linear-gradient(transparent 55%, rgba(255, 225, 74, .55) 55%); }
.b-p { margin: 12px 0; }
.b-h { font-size: 17px; margin: 22px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.b-steps { list-style: none; padding: 0; margin: 14px 0; counter-reset: st; display: grid; gap: 8px; }
.b-steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 50px; }
.b-steps li::before { counter-increment: st; content: counter(st); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--g); color: #fff; font-family: var(--en); font-weight: 900; display: grid; place-items: center; font-size: 14px; }
.b-steps b { display: block; }
.b-steps span { font-size: 14px; color: var(--sub); }
.b-tpl, .b-model { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 14px 0; box-shadow: var(--shadow); }
.b-tpl-h, .b-model-h { font-weight: 800; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.b-tpl .tag { background: var(--g); color: #fff; }
.tpl-en { white-space: pre-wrap; word-break: break-word; font-family: var(--en); font-size: 16px; line-height: 1.8; margin: 0; background: var(--soft); border-radius: 12px; padding: 12px 14px; }
.slot { background: var(--pos-bg); color: var(--pos-tx); font-family: var(--font); font-size: 14px; font-weight: 700; padding: 1px 6px; border-radius: 6px; border: 1px dashed currentColor; }
.b-tpl .ja, .b-model .ja { font-size: 14px; color: var(--sub); margin: 8px 0 0; }
.b-tpl .note { font-size: 13px; margin: 6px 0 0; padding-left: 10px; border-left: 3px solid var(--line); color: var(--sub); }
.b-model .prompt { font-family: var(--en); font-weight: 700; margin: 0 0 6px; color: var(--sub); }
.b-model .en { font-family: var(--en); font-size: 17px; line-height: 1.75; margin: 0; }
.notes { margin: 8px 0 0; padding-left: 1.2em; font-size: 14px; color: var(--sub); }
.ja-d { margin-top: 6px; font-size: 14px; color: var(--sub); }
.ja-d summary { cursor: pointer; font-weight: 700; font-size: 13px; color: var(--g); }
.ja-d p { margin: 6px 0 0; }
.b-tech { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.b-tech li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; }
.b-tech li > b { font-size: 15px; }
.b-tech li > b::before { content: "⚡"; margin-right: 6px; }
.b-tech li > span { font-size: 14px; color: var(--sub); }
.b-tech .ex { font-family: var(--en); font-style: normal; font-size: 15px; background: var(--soft); border-radius: 10px; padding: 6px 10px; margin-top: 4px; }
.b-ngok { display: grid; gap: 8px; margin: 14px 0; }
.ngok { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.ngok p { margin: 4px 0; font-family: var(--en); }
.ngok .ng { color: var(--ng); text-decoration: line-through; text-decoration-thickness: 1px; }
.ngok .ok { color: var(--ink); font-weight: 700; }
.ngok span { font-family: var(--font); font-size: 11px; font-weight: 900; color: #fff; background: var(--ng); border-radius: 4px; padding: 1px 6px; margin-right: 8px; display: inline-block; text-decoration: none; }
.ngok .ok span { background: var(--ok); }
.ngok .why { font-family: var(--font); font-size: 13px; color: var(--sub); }
.b-flow { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 8px; }
.b-flow li { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; align-items: start; }
.b-flow .who { font-size: 11px; font-weight: 900; text-align: center; padding: 4px 0; border-radius: 8px; background: var(--soft); color: var(--sub); }
.b-flow .who-examiner .who { background: #e9e6f8; color: #4a3aa8; }
.b-flow .who-you .who { background: color-mix(in srgb, var(--g) 16%, transparent); color: var(--g); }
:root[data-theme="dark"] .b-flow .who-examiner .who { background: #2b2650; color: #c7bcff; }
.b-flow li > div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.b-flow .who-you > div { background: color-mix(in srgb, var(--g) 6%, var(--surface)); }
.b-flow .who-note > div { background: transparent; border-style: dashed; }
.b-flow .en { font-family: var(--en); font-weight: 600; margin: 0; }
.b-flow .ja { font-size: 13px; color: var(--sub); margin: 0; }
.b-table { margin: 14px 0; }
.b-table table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; font-size: 14px; table-layout: fixed; }
.b-table th { background: var(--ink); color: var(--paper); text-align: left; padding: 8px 10px; font-size: 13px; }
.b-table td { padding: 8px 10px; border-top: 1px solid var(--line); vertical-align: top; word-break: break-word; }
.b-why { background: color-mix(in srgb, #7a3bea 7%, var(--surface)); border: 1px solid color-mix(in srgb, #7a3bea 25%, var(--line)); border-radius: 14px; padding: 10px 14px; margin: 14px 0; }
.b-why summary { cursor: pointer; font-weight: 800; list-style: none; }
.b-why .tag { background: #7a3bea; color: #fff; }
.b-why p { margin: 8px 0 0; font-size: 14px; }
.b-why .src { font-size: 12px; color: var(--sub); }
.b-warn { background: color-mix(in srgb, var(--ng) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ng) 35%, var(--line)); border-radius: 14px; padding: 12px 14px; margin: 14px 0; }
.b-warn b { color: var(--ng); }
.b-warn p { margin: 4px 0 0; font-size: 14px; }
.b-check { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.b-check label { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; }
.b-check input { width: 20px; height: 20px; accent-color: var(--ok); flex: none; margin-top: 3px; }
.b-check input:checked + span { color: var(--sub); text-decoration: line-through; }
.b-phr ul { list-style: none; padding: 0; margin: 8px 0 14px; display: grid; gap: 6px; }
.b-phr li { display: grid; grid-template-columns: 1fr auto; gap: 0 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; align-items: center; }
.b-phr .en { font-family: var(--en); font-weight: 600; }
.b-phr .ja { grid-column: 1; font-size: 13px; color: var(--sub); }
.b-phr .say { grid-row: 1 / span 2; grid-column: 2; }
.b-list { padding-left: 1.2em; }
.b-quote { margin: 14px 0; padding: 10px 16px; border-left: 4px solid var(--g); background: var(--surface); border-radius: 0 12px 12px 0; }

/* ---------- 色分けセグメント ---------- */
.sg { border-radius: 6px; padding: 1px 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.sg i { font-style: normal; font-family: var(--font); font-size: 10px; font-weight: 900; padding: 0 4px; border-radius: 4px; margin-right: 4px; vertical-align: 2px; color: #fff; }
.sg-pos { background: var(--pos-bg); color: var(--pos-tx); font-weight: 700; }
.sg-pos i { background: #b88a00; }
.sg-r { background: var(--r-bg); color: var(--r-tx); }
.sg-r i { background: #2463eb; }
.sg-ex { background: var(--ex-bg); color: var(--ex-tx); }
.sg-ex i { background: #0d9b68; }
.sg-end { background: var(--end-bg); color: var(--end-tx); }
.sg-end i { background: #6b7080; }
.sg-concede { background: var(--con-bg); color: var(--con-tx); }
.sg-concede i { background: #d4561a; }
.tpl-strip { font-family: var(--en); line-height: 2.2; margin: 4px 0; }

/* ---------- filters ---------- */
.filters { margin: 16px 0; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.fcats summary { cursor: pointer; font-size: 13px; font-weight: 800; color: var(--g); margin: 2px 0 8px; }
.filters.folded .frow.cats { display: none; }
.frow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; }
.fsearch { flex: 1 1 200px; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: 14px; }
.sw { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; cursor: pointer; }
.sw input { width: 18px; height: 18px; accent-color: var(--g); }
.fcount { margin: 0; font-size: 12px; color: var(--sub); }
.fold-btn { margin-left: auto; }


/* ---------- Q&A card ---------- */
.qa-list, .tech-list, .phr-list, .topic-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 16px 0; }
.qa { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); content-visibility: auto; contain-intrinsic-block-size: auto 420px; }
.qa[hidden] { display: none; }
.qa-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12px; margin-bottom: 8px; }
.qno { font-family: var(--en); font-weight: 900; font-size: 13px; color: #fff; background: var(--g); padding: 1px 9px; border-radius: 999px; margin-right: 6px; }
.qcat { color: var(--sub); font-weight: 700; }
.hot { color: #c27a00; font-weight: 900; }
.hot.h2 { color: var(--faint); }
.qid { margin-left: auto; color: var(--faint); font-family: var(--en); }
.qa-q { font-family: var(--en); font-size: 18px; line-height: 1.6; }
.qa-q .lead { color: var(--sub); font-weight: 500; }
.qa-ja { font-size: 13px; color: var(--sub); margin: 4px 0 10px; }
.qa-ans { position: relative; display: grid; gap: 10px; }
.side-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--soft); border-radius: 12px; padding: 4px; }
.side-sw button { border: 0; background: transparent; border-radius: 9px; padding: 7px 4px; font-size: 13px; font-weight: 800; color: var(--sub); }
.side-sw button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.ans { position: relative; border-radius: 14px; padding: 12px 14px 10px; background: color-mix(in srgb, var(--soft) 55%, var(--surface)); border: 1px solid var(--line); }
.ans .en { font-family: var(--en); font-size: 16.5px; line-height: 1.95; margin: 0; }
.ans .ja { font-size: 13px; color: var(--sub); margin: 8px 0 0; }
.wc { position: absolute; right: 10px; top: -9px; font-family: var(--en); font-size: 11px; font-weight: 800; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; color: var(--sub); }
.qa-ans[data-side="yes"] .ans-no, .qa-ans[data-side="no"] .ans-yes { display: none; }
@media (min-width: 860px) {
  .qa-ans { grid-template-columns: 1fr 1fr; }
  .qa-ans .side-sw { display: none; }
  .qa-ans .ans-no, .qa-ans .ans-yes { display: block !important; }
  .ans-yes::before, .ans-no::before { position: absolute; left: 12px; top: -10px; font-size: 11px; font-weight: 900; padding: 0 8px; border-radius: 999px; color: #fff; }
  .ans-yes::before { content: "YES / 賛成"; background: var(--ok); }
  .ans-no::before { content: "NO / 反対"; background: var(--ng); }
  .ans { padding-top: 16px; }
}
.reveal { display: none; }
.hide-ans .qa-ans:not(.shown) .ans, .cq-a.hidden:not(.shown) .ma, .speech.hidden:not(.shown) .en { filter: blur(7px); user-select: none; pointer-events: none; }
.hide-ans .qa-ans:not(.shown) .reveal, .cq-a.hidden:not(.shown) .reveal, .speech.hidden:not(.shown) .reveal { display: block; position: absolute; inset: auto 0 0 0; margin: 0 auto 12px; width: max-content; max-width: 90%; border: 0; background: var(--ink); color: var(--paper); font-weight: 800; font-size: 14px; padding: 10px 18px; border-radius: 999px; z-index: 2; box-shadow: var(--shadow); }
.qa-words { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.qa-words li { font-size: 12px; background: var(--soft); border-radius: 10px; padding: 4px 10px; color: var(--sub); }
.qa-words b { font-family: var(--en); color: var(--ink); margin-right: 6px; font-size: 13px; }
.qa-words.big li { font-size: 13px; padding: 6px 12px; }
.qa-tip { font-size: 13px; margin: 10px 0 0; background: color-mix(in srgb, var(--mark) 22%, var(--surface)); border-radius: 12px; padding: 8px 12px; }
.qa-tip span { font-weight: 900; margin-right: 6px; }
.qa-f { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

/* ---------- 予想問題カード ---------- */
.yoso-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.yoso { display: grid; gap: 4px; text-decoration: none; color: var(--ink); background: var(--surface); border: 3px double var(--line); border-radius: 14px; padding: 14px; }
.yoso .yn { font-family: var(--en); font-weight: 900; font-size: 12px; color: var(--g); letter-spacing: .08em; }
.yoso b { font-family: var(--en); font-size: 17px; line-height: 1.35; }
.yoso span:last-child { font-size: 12px; color: var(--sub); }
.pcard { background: var(--surface); border: 4px double var(--ink); border-radius: 8px; padding: 18px; margin: 12px 0 20px; }
.pcard-h { text-align: center; font-size: 11px; font-weight: 900; letter-spacing: .3em; color: var(--sub); }
.pcard-t { text-align: center; font-family: var(--en); font-size: 22px; margin: 4px 0 10px; }
.passage { font-family: var(--en); font-size: 17px; line-height: 1.9; margin: 0; }
.pc-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pc-tools .chip svg { width: 15px; height: 15px; }
.chip.timing { background: var(--ink); color: var(--paper); }
.ch { font-size: 18px; margin: 26px 0 8px; display: flex; align-items: center; gap: 8px; }
.ch::before { content: ""; width: 10px; height: 22px; background: var(--g); border-radius: 4px; }
.first { font-family: var(--en); font-weight: 700; background: var(--soft); border-radius: 12px; padding: 10px 14px; margin: 8px 0; }
.first span { display: block; font-family: var(--font); font-size: 11px; font-weight: 900; color: var(--sub); }
.frames { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .frames.f3 { grid-template-columns: repeat(3, 1fr); } .frames.f4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .frames.f4 { grid-template-columns: repeat(4, 1fr); } }
.frames li { display: grid; gap: 6px; align-content: start; }
.arrow { justify-self: start; font-family: var(--en); font-size: 13px; font-weight: 800; background: var(--ink); color: var(--paper); padding: 2px 10px 2px 8px; border-radius: 6px; position: relative; }
.arrow::before { content: "→ "; }
.frame { position: relative; min-height: 140px; background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 10px, color-mix(in srgb, var(--soft) 70%, var(--surface)) 10px, color-mix(in srgb, var(--soft) 70%, var(--surface)) 20px); border: 2px solid var(--ink); border-radius: 10px; padding: 26px 12px 12px; }
.fn { position: absolute; top: 6px; left: 8px; font-family: var(--en); font-weight: 900; font-size: 12px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); }
.scene { margin: 0; font-size: 14px; background: var(--surface); border-radius: 8px; padding: 6px 8px; }
.bubble { position: relative; margin: 10px 0 0; font-family: var(--en); font-size: 14px; font-weight: 700; background: var(--surface); border: 2px solid var(--ink); border-radius: 14px; padding: 6px 10px; }
.bubble::after { content: ""; position: absolute; left: 18px; bottom: -8px; width: 12px; height: 12px; background: var(--surface); border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.cq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin: 10px 0; box-shadow: var(--shadow); }
.cq-q { font-family: var(--en); font-size: 17px; margin: 0; line-height: 1.6; }
.cq-q .lead { color: var(--sub); }
.cq-a { position: relative; display: grid; gap: 8px; margin-top: 10px; }
.ma { background: color-mix(in srgb, var(--soft) 55%, var(--surface)); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; position: relative; }
.ma .en { font-family: var(--en); font-size: 16px; line-height: 1.85; margin: 0; }
.ma .ja { font-size: 13px; color: var(--sub); margin: 6px 0 0; }
.how { font-size: 13px; margin: 8px 0 0; }
.how span { font-weight: 900; background: var(--mark); color: #15171c; border-radius: 4px; padding: 0 6px; margin-right: 6px; }
.nline i { font-style: normal; font-family: var(--en); font-size: 11px; font-weight: 900; background: var(--ink); color: var(--paper); border-radius: 50%; width: 18px; height: 18px; display: inline-grid; place-items: center; margin-right: 4px; vertical-align: 2px; }

/* ---------- 1級トピック ---------- */
.sides { display: grid; gap: 12px; }
@media (min-width: 760px) { .sides { grid-template-columns: 1fr 1fr; } }
.side { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.side h3 { margin: 0 0 6px; font-size: 15px; }
.side-yes h3 { color: var(--ok); }
.side-no h3 { color: var(--ng); }
.thesis { font-family: var(--en); font-weight: 700; margin: 0 0 8px; background: var(--pos-bg); color: var(--pos-tx); border-radius: 10px; padding: 6px 10px; }
.side ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.side li b { display: inline-block; font-family: var(--en); background: var(--r-bg); color: var(--r-tx); border-radius: 6px; padding: 0 8px; font-size: 13px; margin-bottom: 2px; }
.side li span { display: block; font-family: var(--en); font-size: 15px; }
.speech { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.speech .en { font-family: var(--en); font-size: 16.5px; line-height: 2; margin: 0; }
.topic-i { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); padding: 12px 14px; contain-intrinsic-block-size: auto 90px; }
.ti-n { font-family: var(--en); font-weight: 900; color: var(--g); font-size: 18px; width: 2em; text-align: center; }
.ti-b b { display: block; font-family: var(--en); font-size: 16px; line-height: 1.4; }
.ti-b span { font-size: 12px; color: var(--sub); }
.ti-m { display: grid; justify-items: end; gap: 2px; font-size: 18px; }
.ti-m .tag { margin: 0; }
.ti-m .hot { font-size: 11px; }
.drill { margin-top: 10px; }
.drill-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; counter-reset: d; }
.drill-list li { background: var(--soft); border-radius: 12px; padding: 8px 12px 8px 40px; position: relative; font-family: var(--en); font-weight: 600; }
.drill-list li::before { counter-increment: d; content: counter(d); position: absolute; left: 12px; top: 8px; font-weight: 900; color: var(--g); }
.drill-list a { color: var(--ink); text-decoration: none; }
.drill-timer { font-family: var(--en); font-size: 28px; font-weight: 900; text-align: center; margin: 8px 0; }

/* ---------- テク・フレーズ ---------- */
.cat-h { font-size: 18px; margin: 18px 0 0; display: flex; align-items: center; gap: 8px; }
.cat-h small { font-family: var(--en); font-size: 12px; color: var(--sub); background: var(--soft); border-radius: 999px; padding: 0 8px; }
.cat-h[hidden] { display: none; }
.tech h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.5; }
.tech .star { color: #e2a400; margin-right: 4px; }
.tech p { margin: 4px 0; font-size: 14.5px; }
.tech .en { font-family: var(--en); font-size: 15px; font-weight: 600; background: var(--soft); border-radius: 10px; padding: 6px 10px; }
.tech { contain-intrinsic-block-size: auto 200px; }
.lvs { display: flex; gap: 4px; }
.lv { font-size: 10px; font-weight: 800; border-radius: 999px; padding: 0 8px; color: #fff; background: var(--g2); }
.lv.g-pre1 { background: var(--gp); }
.lv.g-1kyu { background: var(--g1); }
.tech-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); align-items: start; }
.phr { padding: 10px 14px; contain-intrinsic-block-size: auto 110px; }
.phr .en { font-family: var(--en); font-size: 16px; font-weight: 600; margin: 0; }
.phr .ja { font-size: 13px; color: var(--sub); margin: 2px 0 0; }
.phr .use { font-size: 12px; margin: 4px 0 0; color: var(--sub); background: var(--soft); border-radius: 8px; padding: 3px 8px; }

/* ---------- AI練習ページ ---------- */
.quota-card { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-top: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 10px 14px; }
.quota-card b { font-family: var(--en); font-size: 34px; line-height: 1; color: #ffd36b; }
.qc-l { font-size: 13px; font-weight: 700; width: 100%; }
.qc-k { margin-left: auto; color: #fff; font-size: 13px; font-weight: 700; }
.pick-g, .pick-p { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pick-p .chip { font-size: 14px; padding: 8px 14px; }
.draw { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.draw-empty { color: var(--sub); margin: 0; }
.draw-q { font-family: var(--en); font-size: 19px; line-height: 1.6; margin: 0 0 4px; }
.draw-ja { font-size: 13px; color: var(--sub); margin: 0 0 12px; }
.draw-act { display: flex; flex-wrap: wrap; gap: 8px; }
.key-nudge { margin: 12px 0; background: color-mix(in srgb, var(--brand) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--line)); border-radius: 14px; padding: 12px 14px; }
.key-nudge p { margin: 0 0 10px; font-size: 14px; line-height: 1.6; }
.kp-flash { animation: kpflash 1.6s ease; border-radius: 20px; }
@keyframes kpflash { 0%, 60% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 55%, transparent); } 100% { box-shadow: 0 0 0 0 transparent; } }
.mode-sw { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }

/* ---------- 練習モーダル ---------- */
.pm-back { position: fixed; inset: 0; z-index: 90; background: rgba(10, 11, 14, .55); backdrop-filter: blur(4px); display: grid; align-items: end; justify-items: center; }
@media (min-width: 700px) { .pm-back { align-items: center; } }
.pm { width: min(680px, 100%); max-height: 92dvh; overflow-y: auto; background: var(--paper); border-radius: 24px 24px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0, 0, 0, .3); animation: up .25s ease; }
@media (min-width: 700px) { .pm { border-radius: 24px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.pm-h { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.pm-h b { font-size: 15px; }
.pm-x { margin-left: auto; border: 0; background: var(--soft); width: 34px; height: 34px; border-radius: 50%; font-size: 18px; }
.pm-q { font-family: var(--en); font-size: 18px; line-height: 1.6; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 0 0 10px; }
.pm-ctx { font-size: 13px; color: var(--sub); white-space: pre-wrap; max-height: 120px; overflow: auto; background: var(--soft); border-radius: 10px; padding: 8px 10px; margin-bottom: 10px; }
.pm-modes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.stage { display: grid; justify-items: center; gap: 10px; padding: 12px 0; }
.rec-btn { width: 96px; height: 96px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--brand), #ff2f6d); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 45%, transparent); position: relative; }
.rec-btn svg { width: 40px; height: 40px; }
.rec-btn.on { background: #15171c; animation: ring 1.4s infinite; }
.rec-btn.on::after { content: ""; width: 30px; height: 30px; border-radius: 6px; background: #ff3b3b; position: absolute; }
.rec-btn.on svg { display: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 59, .5); } 100% { box-shadow: 0 0 0 26px rgba(255, 59, 59, 0); } }
.big-timer { font-family: var(--en); font-size: 44px; font-weight: 900; line-height: 1; }
.big-timer.prep { color: var(--g1); }
.stage-l { font-size: 13px; font-weight: 800; color: var(--sub); }
.meter { width: 100%; height: 12px; background: var(--soft); border-radius: 99px; overflow: hidden; position: relative; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #22c55e, #84cc16); border-radius: 99px; transition: width .08s; }
.silence { font-size: 13px; font-weight: 800; color: var(--sub); min-height: 1.4em; }
.silence.warn { color: var(--ng); animation: blink .6s infinite alternate; }
@keyframes blink { to { opacity: .45; } }
.live { width: 100%; min-height: 90px; font-family: var(--en); font-size: 16px; line-height: 1.7; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.live .interim { color: var(--faint); }
.pm textarea { width: 100%; min-height: 120px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; font-family: var(--en); font-size: 16px; line-height: 1.7; resize: vertical; }
.mstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 10px 0; }
.mstat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; text-align: center; }
.mstat b { display: block; font-family: var(--en); font-size: 20px; line-height: 1.2; }
.mstat span { font-size: 11px; color: var(--sub); }
.mstat.bad b { color: var(--ng); }
.mstat.good b { color: var(--ok); }
@media (max-width: 400px) { .mstats { grid-template-columns: repeat(2, 1fr); } }
.pm-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0; }
.pm-row .cta { flex: 1 1 auto; }
.pm-note { font-size: 12px; color: var(--sub); margin: 6px 0; }
.pm audio { width: 100%; height: 40px; }
.btn2 { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; font-weight: 700; font-size: 14px; }
.spin { width: 40px; height: 40px; border-radius: 50%; border: 4px solid var(--soft); border-top-color: var(--brand); animation: spin 1s linear infinite; margin: 10px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* 採点結果 */
.res-top { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px; }
.ring { --p: 0; width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(var(--brand) calc(var(--p) * 1%), var(--soft) 0); display: grid; place-items: center; }
.ring > div { width: 82px; height: 82px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; line-height: 1; }
.ring b { font-family: var(--en); font-size: 34px; font-weight: 900; }
.ring small { font-family: var(--en); font-size: 13px; color: var(--sub); }
.res-sum { font-weight: 800; font-size: 15px; margin: 0; }
.res-lv { display: inline-block; font-size: 12px; font-weight: 900; padding: 1px 10px; border-radius: 999px; color: #fff; background: var(--ok); margin-bottom: 4px; }
.res-lv.mid { background: #d98a00; }
.res-lv.low { background: var(--ng); }
.crit { display: grid; gap: 6px; margin: 12px 0; }
.crit div { display: grid; grid-template-columns: 6.5em auto 1fr; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 13px; }
.crit .stars { color: #e2a400; letter-spacing: 1px; white-space: nowrap; }
.crit span:last-child { color: var(--sub); }
@media (max-width: 480px) { .crit div { grid-template-columns: 1fr auto; } .crit span:last-child { grid-column: 1 / -1; } }
.res-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 10px 0; }
.res-box h4 { margin: 0 0 6px; font-size: 14px; }
.res-box ul { margin: 0; padding-left: 1.2em; font-size: 14px; }
.fix { border-top: 1px dashed var(--line); padding: 8px 0; font-size: 14px; }
.fix:first-of-type { border-top: 0; }
.fix .b { font-family: var(--en); color: var(--ng); text-decoration: line-through; }
.fix .a { font-family: var(--en); color: var(--ok); font-weight: 700; }
.fix .w { color: var(--sub); font-size: 13px; }
.better { font-family: var(--en); font-size: 16px; line-height: 1.85; margin: 0; }
.next { background: var(--mark); color: #15171c; font-weight: 800; border-radius: 14px; padding: 10px 14px; margin: 10px 0; }

/* キー設定 */
.ai-provs { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 10px 0; }
.ai-prov { display: grid; gap: 2px; text-align: left; border: 2px solid var(--line); background: var(--surface); border-radius: 14px; padding: 10px 12px; }
.ai-prov.on { border-color: var(--pc, var(--brand)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pc, var(--brand)) 20%, transparent); }
.ai-prov .mk { font-size: 20px; color: var(--pc); }
.ai-prov b { font-size: 16px; }
.ai-prov small { color: var(--sub); }
.ai-prov .tg { font-size: 11px; font-weight: 800; color: var(--sub); }
.ai-prov .tg.free { color: var(--ok); }
.ai-prov .ok { font-size: 11px; font-weight: 800; color: var(--ok); }
.key-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.key-row input, .key-row select { flex: 1 1 220px; min-width: 0; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; font-size: 15px; }
.key-msg { font-size: 13px; margin: 6px 0; }
.key-msg.ok { color: var(--ok); font-weight: 700; }
.key-msg.ng { color: var(--ng); font-weight: 700; }
.guide-steps { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 8px; counter-reset: gs; }
.guide-steps li { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 10px 50px; }
.guide-steps li::before { counter-increment: gs; content: counter(gs); position: absolute; left: 12px; top: 10px; width: 26px; height: 26px; border-radius: 50%; background: var(--pc, var(--brand)); color: #fff; font-weight: 900; display: grid; place-items: center; font-family: var(--en); }
.guide-steps b { display: block; }
.guide-steps span { font-size: 13px; color: var(--sub); }
.guide-steps a.open { display: inline-block; margin-top: 6px; font-weight: 800; font-size: 13px; background: var(--pc, var(--brand)); color: #fff; text-decoration: none; padding: 5px 12px; border-radius: 999px; }
.guide-cost { font-size: 13px; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.guide-cost p { margin: 2px 0; }

/* ---------- footer / toast ---------- */
.foot { margin-top: 40px; background: #121318; color: #c9c6bf; padding: 32px 16px 40px; }
.foot-in { max-width: 980px; margin: 0 auto; }
.foot-brand b { color: #fff; font-size: 17px; }
.foot-brand p { font-size: 13px; margin: 6px 0; }
.foot .by { color: #9a978f; }
.foot-cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 20px 0; }
.foot-cols div { display: grid; gap: 4px; align-content: start; }
.foot-cols b { color: #fff; font-size: 13px; }
.foot-cols a { color: #c9c6bf; font-size: 13px; text-decoration: none; }
.foot-cols a:hover { color: #fff; }
.legal { font-size: 11px; color: #8e8b84; line-height: 1.7; border-top: 1px solid #2a2b31; padding-top: 14px; }
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); z-index: 120; background: var(--ink); color: var(--paper); font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; opacity: 0; pointer-events: none; transition: .25s; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translateX(-50%); }
.count-up { animation: pop .5s; }
@keyframes pop { 50% { transform: scale(1.15); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .top, .tabbar, .foot, .filters, .qa-f, .btn-mic, .say { display: none !important; } body { padding: 0; } }
.nw { display: inline-block; }

/* 模擬面接 */
.mock-btns { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.mock-btns .grade-card { text-align: left; font: inherit; cursor: pointer; }
.mock-steps { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 10px; }
.mock-steps span { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: var(--soft); color: var(--sub); }
.mock-steps span.on { background: var(--brand); color: #fff; }
.mock-steps span.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.mock-ans { margin: 8px 0; }
.mock-ans b { font-size: 13px; }
.mock-ans textarea { min-height: 80px; }
.topic-pick { display: grid; gap: 6px; margin: 8px 0; }
.topic-pick button { text-align: left; font-family: var(--en); font-weight: 600; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 10px 12px; }
.topic-pick button:hover { border-color: var(--g1); }

/* 最新の傾向 */
.trend { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.trend-i { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.trend-i b { display: inline-block; font-size: 12px; font-weight: 900; color: #fff; background: var(--g); border-radius: 6px; padding: 1px 8px; }
.trend-i p { margin: 6px 0 0; font-size: 14px; }

/* 上へ戻るボタン（右下・タブバーの上） */
.totop { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(var(--tab-h) + 22px + env(safe-area-inset-bottom)); z-index: 45; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: var(--paper); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none; transition: opacity .2s, transform .2s; }
.totop svg { width: 22px; height: 22px; stroke-width: 2.6; }
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 1100px) { .totop { right: calc((100vw - 980px) / 2 - 64px); } }

/* ===== コンパクトなリスト（1行＝1問、タップで開く） ===== */
.qa-list, .tech-list, .phr-list { gap: 8px; }
.qa-d { padding: 0; content-visibility: visible; }
.qa-d > summary { list-style: none; cursor: pointer; padding: 12px 40px 12px 14px; position: relative; display: grid; gap: 4px; }
.qa-d > summary::-webkit-details-marker { display: none; }
.qa-d > summary::after { content: ""; position: absolute; right: 16px; top: 50%; width: 9px; height: 9px; border-right: 2.5px solid var(--faint); border-bottom: 2.5px solid var(--faint); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.qa-d[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
.qa-d[open] { box-shadow: 0 0 0 2px var(--g), var(--shadow); }
.qs-top { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.qs-top .qno { margin-right: 0; }
.qs-q { font-family: var(--en); font-size: 16px; line-height: 1.5; font-weight: 600; }
.qs-q .lead { font-weight: 500; color: var(--sub); }
.qs-q h3 { margin: 0; font-family: var(--font); font-size: 15px; }
.qa-body { padding: 0 14px 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.qa-q2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 10px; }
.qa-q2 .say { margin-left: 0; height: 30px; padding: 0 12px; }
.qa-q2 .qa-ja { margin: 0; flex: 1 1 200px; }
.cat-d { background: transparent; }
.cat-d > summary { list-style: none; cursor: pointer; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 0; position: relative; }
.cat-d > summary::-webkit-details-marker { display: none; }
.cat-d > summary::after { content: "＋"; position: absolute; right: 16px; font-weight: 900; color: var(--g); }
.cat-d[open] > summary::after { content: "－"; }
.cat-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 8px 0 4px; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
/* 1問ずつモード */
.flash-back { position: fixed; inset: 0; z-index: 95; background: var(--paper); display: grid; grid-template-rows: auto 1fr auto; }
.flash-top { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.flash-top b { font-family: var(--en); }
.flash-top button { margin-left: auto; }
.flash-body { overflow-y: auto; padding: 16px; max-width: 760px; width: 100%; margin: 0 auto; }
.flash-body .qa-d { box-shadow: none; border: 0; background: transparent; }
.flash-body .qa-d > summary { cursor: default; padding: 0 0 10px; }
.flash-body .qa-d > summary::after { display: none; }
.flash-body .qs-q { font-size: 20px; }
.flash-nav { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.flash-nav button { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 12px 6px; font-weight: 800; font-size: 14px; }
.flash-nav [data-fl-show] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.flash-hide .qa-body > :not(.qa-q2):not(.qa-f) { display: none; }

/* ページ送り */
.pg { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 14px 0 24px; }
.pg button { min-width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); font-weight: 800; font-family: var(--en); }
.pg button[aria-current] { background: var(--g); border-color: var(--g); color: #fff; }
.pg button:disabled { opacity: .35; }
.pg span { color: var(--sub); font-weight: 800; }
.pg .pg-n { width: 100%; text-align: center; font-size: 12px; font-weight: 700; }
/* 1行サマリーは2行まで */
.qs-q { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; }
.qa-d[open] .qs-q { -webkit-line-clamp: unset; display: block; }
.qa-d > summary { padding-top: 10px; padding-bottom: 10px; }

/* 日本語訳は最初は隠す（「和訳」ボタン or ヘッダーの「訳」でいつも表示） */
html:not(.ja-on) .qa-ja:not(.open), html:not(.ja-on) .ans .ja:not(.open), html:not(.ja-on) .ma .ja:not(.open), html:not(.ja-on) .b-flow .ja:not(.open) { display: none; }
.ja-btn { border: 1px dashed var(--line); background: transparent; color: var(--sub); font-size: 11px; font-weight: 800; border-radius: 999px; padding: 2px 10px; margin: 6px 0 0; }
.ja-btn[aria-expanded="true"] { border-style: solid; color: var(--g); }
html.ja-on .ja-btn { display: none; }
.ja-sw { font-weight: 900; font-size: 14px; }
.ja-sw[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
/* スマホのヘッダーを1行に収める */
.gsw a { white-space: nowrap; }
@media (max-width: 430px) {
  .top { gap: 6px; padding: 8px 10px; }
  .brand small { display: none; }
  .brand span { font-size: 12px; white-space: nowrap; }
  .gsw a { padding: 4px 8px; font-size: 12px; }
  .icon-btn { width: 32px; height: 32px; }
  [data-theme-toggle] { display: none; }
}
@media (max-width: 350px) { .brand span { display: none; } }

/* ===== 目立つタブ（2段に折り返す。横スクロールなし） ===== */
.tab-hint { margin: 18px 0 6px; font-size: 13px; font-weight: 900; color: var(--g); }
.tabrow { position: static; display: grid; grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; background: transparent; padding: 0; }
@media (min-width: 760px) { .tabrow { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.tabrow button { background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 10px 4px; font-size: 13.5px; font-weight: 900; color: var(--ink); box-shadow: var(--shadow); }
.tabrow button:hover { border-color: var(--g); }
.tabrow button[aria-selected="true"] { background: var(--g); border-color: var(--g); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--g) 40%, transparent); transform: translateY(-1px); }
.pane { margin-top: 6px; }
/* テンプレ */
.tpl-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.tpl-name { font-family: var(--font); font-size: 15px; }
.tpl-i .tpl-en { margin: 0 0 6px; }
.tpl-q { font-size: 13px; background: var(--soft); border-radius: 10px; padding: 6px 10px; font-family: var(--en); }
.tpl-q span { font-family: var(--font); font-weight: 900; font-size: 11px; margin-right: 6px; color: var(--sub); }
.ura-ex { font-family: var(--en); font-weight: 600; background: var(--soft); border-radius: 10px; padding: 6px 10px; }
/* イラスト */
.frame.has-img { padding: 0; background: #fff; overflow: hidden; min-height: 0; }
.frame.has-img img { display: block; width: 100%; height: auto; }
.frame.has-img .bubble { margin: 8px; }
/* ブランド：原田英語の / 英検二次面接 ぜんぶ攻略くん */
.brand small { display: block !important; font-size: 10px; }
@media (max-width: 430px) { .brand span { font-size: 11.5px; } .gsw a { padding: 4px 7px; } }
@media (max-width: 350px) { .brand span { display: block; font-size: 10.5px; } .gsw a { padding: 3px 5px; font-size: 11px; } }
/* 入りきらないときは「英検二次面接／ぜんぶ攻略くん」の空白で2行に分ける */
@media (max-width: 430px) { .brand span { white-space: normal; word-break: keep-all; } }

.tabrow button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 2px; }
.tabrow .ti { font-size: 18px; line-height: 1; }
.tabrow .tl { font-size: 12.5px; white-space: nowrap; letter-spacing: -.02em; }
.qs-top .hot { white-space: nowrap; flex: none; }
.tpl-i .qs-top .qcat { font-size: 11.5px; line-height: 1.4; }

.stt-wait { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--brand); margin: 8px 0 0; }
.spin.sm { width: 18px; height: 18px; border-width: 3px; margin: 0; }

/* 練習画面の問題カード（絵） */
.pm-card { max-height: 46vh; overflow-y: auto; background: var(--surface); border: 3px double var(--ink); border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.pmc-pass b { display: block; text-align: center; font-family: var(--en); }
.pmc-pass p { font-family: var(--en); font-size: 15px; line-height: 1.7; margin: 4px 0 8px; }
.pmc-first { font-family: var(--en); font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.pmc-fr { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pmc-fr.f3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 520px) { .pmc-fr.f3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pmc-fr li { display: grid; gap: 4px; align-content: start; }
.pmc-fr .arrow { font-size: 11px; }
.pmc-fr .bubble { font-size: 12px; margin: 6px; }

/* SEO：トップの h1・作成者 */
.hero h1.kicker { font-size: 13px; margin: 0 0 6px; }
.author { display: flex; gap: 12px; align-items: center; margin: 32px 0 8px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.author div { display: grid; gap: 2px; }
.author b { font-size: 14px; }
.author span { font-size: 13px; color: var(--sub); }
.author small { font-size: 11px; color: var(--faint); }

/* ===== トップの動き（ヒーロー） ===== */
.hero { isolation: isolate; padding-bottom: 0; }
.hero::before { animation: hx-drift1 14s ease-in-out infinite alternate; }
.hero::after { animation: hx-drift2 17s ease-in-out infinite alternate; }
@keyframes hx-drift1 { to { transform: translate(-90px, 70px) scale(1.15); } }
@keyframes hx-drift2 { to { transform: translate(110px, -60px) scale(1.2); } }
/* マウスについてくる光（パソコン） */
.hero-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0; transition: opacity .4s; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 30%), rgba(255, 138, 92, .22), transparent 70%); }
.hero:hover .hero-glow { opacity: 1; }
/* 細かい格子 */
.hero-in::before { content: ""; position: absolute; inset: -40px -20px; z-index: -1; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 28px 28px; -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at 30% 40%, #000 20%, transparent 70%); }

/* 見出し：1文字ずつ下から */
.hero-h .hc { display: inline-block; animation: hx-rise .7s cubic-bezier(.2, .9, .25, 1.25) backwards; animation-delay: calc(var(--i) * 45ms + .1s); }
@keyframes hx-rise { from { opacity: 0; transform: translateY(.6em) rotate(8deg) scale(.8); filter: blur(6px); } }
/* 「型」の下線を引く */
.hero-h .u { background: linear-gradient(#ff5a36, #ff5a36) no-repeat 0 92% / 100% .34em; animation: hx-draw .5s cubic-bezier(.6, 0, .2, 1) 1s backwards; }
@keyframes hx-draw { from { background-size: 0 .34em; } }
/* 「AI」の色が流れる */
.hero-h .u2 { background: none; color: inherit; }
.hero-h .u2 .hc { background: linear-gradient(90deg, #ff8a5c, #ff2f6d, #a66bff, #ff8a5c) 0 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: hx-rise .7s cubic-bezier(.2, .9, .25, 1.25) backwards, hx-flow 4s linear infinite; animation-delay: calc(var(--i) * 45ms + .1s), 0s; }
@keyframes hx-flow { to { background-position: 300% 0; } }
.hero-sub, .hero-cta, .hero .kicker { animation: hx-fade .7s ease-out backwards; }
.hero .kicker { animation-delay: 0s; }
.hero-sub { animation-delay: .75s; }
.hero-cta { animation-delay: .9s; }
@keyframes hx-fade { from { opacity: 0; transform: translateY(14px); } }
.stat { animation: hx-pop .6s cubic-bezier(.2, .9, .25, 1.3) backwards; animation-delay: calc(var(--i) * 90ms + 1.05s); }
@keyframes hx-pop { from { opacity: 0; transform: translateY(16px) scale(.9); } }

/* ボタンに光が走る＋マイクの波紋 */
.cta-shine { position: relative; overflow: hidden; }
.cta-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent); transform: skewX(-20deg); animation: hx-shine 3.2s ease-in-out 1.8s infinite; pointer-events: none; }
@keyframes hx-shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
.cta-shine svg { border-radius: 50%; animation: hx-ring 2s ease-out 2s infinite; }
@keyframes hx-ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 100% { box-shadow: 0 0 0 12px rgba(255, 255, 255, 0); } }

/* デモ：スマホでも出す */
.hero-demo { display: block; animation: hx-fade .8s ease-out 1.2s backwards; }
.demo-card { position: relative; z-index: 1; max-width: 360px; margin: 0 auto; padding: 16px; transform: none; }
.hero-demo::before { content: ""; position: absolute; top: -2px; bottom: -2px; left: 50%; width: min(364px, 100% + 4px); translate: -50% 0; z-index: 0; border-radius: 22px; background: conic-gradient(from var(--ang, 0deg), #ff5a36, #ff2f6d, #a66bff, #3bb2ff, #ff5a36); animation: hx-spin 6s linear infinite; filter: blur(14px); opacity: .55; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes hx-spin { to { --ang: 360deg; } }
.demo-h { align-items: center; gap: 8px; }
.demo-h .demo-no { background: #e2492b; color: #fff; padding: 1px 8px; border-radius: 999px; }
.demo-h .demo-ai { margin-left: auto; background: none; color: #5d6372; padding: 0; }
.demo-h .demo-rec { display: inline-flex; align-items: center; gap: 4px; background: none; color: #e2492b; padding: 0; font-family: var(--en); letter-spacing: .08em; opacity: .25; transition: opacity .3s; }
.demo-rec i { width: 8px; height: 8px; border-radius: 50%; background: #e2492b; }
.demo-card.is-rec .demo-rec { opacity: 1; }
.demo-card.is-rec .demo-rec i { animation: blink .6s ease-in-out infinite alternate; }
.demo-q, .demo-a { margin: 10px 0 0; font-family: var(--en); font-size: 14px; font-weight: 600; line-height: 1.45; min-height: 4.4em; }
.demo-q { min-height: 3.7em; color: #5d6372; }
.demo-q .who, .demo-a .who { display: block; font-family: var(--font); font-size: 10px; font-weight: 800; color: #8a8f9c; margin-bottom: 1px; }
.caret { display: none; width: 2px; height: 1em; margin-left: 2px; vertical-align: -2px; background: #ff5a36; }
.demo-card.is-rec .caret { display: inline-block; animation: blink .5s steps(1) infinite alternate; }
.demo-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 28px; margin: 6px 0 0; }
.demo-wave i { width: 4px; height: 4px; border-radius: 4px; background: linear-gradient(#ff8a5c, #ff2f6d); }
.demo-card.is-rec .demo-wave i { animation: hx-wave .9s ease-in-out infinite alternate; }
.demo-card.is-rec .demo-wave i:nth-child(3n) { animation-delay: -.3s; } .demo-card.is-rec .demo-wave i:nth-child(3n+1) { animation-delay: -.6s; } .demo-card.is-rec .demo-wave i:nth-child(4n) { animation-duration: .55s; } .demo-card.is-rec .demo-wave i:nth-child(5n) { animation-duration: 1.2s; } .demo-card.is-rec .demo-wave i:nth-child(7n) { animation-duration: .4s; animation-delay: -.15s; }
.demo-card.is-wait .demo-bars em { color: #9aa0ab; }
@keyframes hx-wave { 0% { height: 4px; } 100% { height: 26px; } }
.demo-res { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.demo-score { font-size: 52px; margin: 0; }
.demo-bars { flex: 1; }
.demo-bars i { position: relative; height: 12px; background: #eee; overflow: hidden; }
.demo-bars i::before { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #ff8a5c, #ff2f6d); transform-origin: left; transition: transform .8s cubic-bezier(.2, .9, .25, 1); }
.demo-bars em { position: relative; display: block; font-style: normal; font-size: 9px; font-weight: 800; line-height: 12px; padding-left: 6px; color: #fff; }
.demo-c { transition: transform .4s cubic-bezier(.2, .9, .25, 1.4), opacity .3s; }
/* JS が動いているときの「待ち」状態 */
.demo-card.is-wait .demo-bars i::before { transform: scaleX(0); }
.demo-card.is-wait .demo-c { opacity: 0; transform: translateY(8px) scale(.9); }
.demo-card.is-wait .demo-score b { opacity: .25; }
.demo-card.is-pop .demo-score b { display: inline-block; animation: pop .4s; }

/* フレーズが流れる帯 */
.hero-marq { position: relative; z-index: 1; margin: 4px -20px 0; padding: 12px 0 16px; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marq-track { display: flex; gap: 10px; width: max-content; animation: hx-marq 38s linear infinite; }
.marq-track span { flex: none; font-family: var(--en); font-size: 13px; font-weight: 700; color: #f4f2ec; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.marq-track span:nth-child(3n+1) { color: #ffb199; }
@keyframes hx-marq { to { transform: translateX(-50%); } }
@media (min-width: 860px) {
  .hero-marq { grid-column: 1 / -1; margin: 0 -40px; }
  .demo-card, .hero-demo::before { transform: rotate(2deg); }
}

/* スクロールで出てくる（JS が html に rv-on を付けたときだけ） */
.rv-on .sec { opacity: 0; transform: translateY(28px); transition: opacity .7s ease-out, transform .7s cubic-bezier(.2, .9, .25, 1); }
.rv-on .sec.in { opacity: 1; transform: none; }
.rv-on .sec.in .grade-card, .rv-on .sec.in .uroko-i, .rv-on .sec.in .feat-i { animation: hx-pop .6s cubic-bezier(.2, .9, .25, 1.2) backwards; animation-delay: calc(var(--k, 0) * 70ms + .1s); }
