:root {
  --bg: #f4f6fa; --surface: #ffffff; --surface2: #eef2f8; --line: #dbe1ea;
  --text: #1a2230; --muted: #5d6879; --primary: #1f5fbf; --primary-ink: #ffffff; --primary-soft: #e3ecfb;
  --ok: #138a4c; --ok-soft: #dff5e8; --ng: #c8323b; --ng-soft: #fbe3e4; --warn: #b26a00; --warn-soft: #fff1d9;
  --c-t: #2f6fd6; --c-m: #8a55c9; --c-s: #d98a1c;
  --sel: #1f5fbf; --sel-soft: #dbe8fd;
  --hero1: #1f5fbf; --hero2: #3b82f6;
  --radius: 14px; --shadow: 0 1px 2px rgba(15,23,42,.06), 0 4px 14px rgba(15,23,42,.06);
  --fs: 16px; --tabs-h: 60px; --ease: cubic-bezier(.2,.8,.2,1);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1720; --surface: #17212d; --surface2: #1e2a39; --line: #2b394b;
    --text: #e6ebf2; --muted: #9aa7b8; --primary: #5b9bff; --primary-ink: #0b1220; --primary-soft: #1c2f4d;
    --ok: #3ccf82; --ok-soft: #133526; --ng: #ff6b73; --ng-soft: #3d1a1e; --warn: #ffb547; --warn-soft: #3a2a10;
    --c-t: #5b9bff; --c-m: #b48cf0; --c-s: #f0a944; --sel: #5b9bff; --sel-soft: #1c3256;
    --hero1: #1d4ed8; --hero2: #2563eb; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1720; --surface: #17212d; --surface2: #1e2a39; --line: #2b394b;
  --text: #e6ebf2; --muted: #9aa7b8; --primary: #5b9bff; --primary-ink: #0b1220; --primary-soft: #1c2f4d;
  --ok: #3ccf82; --ok-soft: #133526; --ng: #ff6b73; --ng-soft: #3d1a1e; --warn: #ffb547; --warn-soft: #3a2a10;
  --c-t: #5b9bff; --c-m: #b48cf0; --c-s: #f0a944; --sel: #5b9bff; --sel-soft: #1c3256;
  --hero1: #1d4ed8; --hero2: #2563eb; --shadow: 0 1px 2px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg); color: var(--text); font-size: var(--fs); line-height: 1.6;
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  -webkit-text-size-adjust: 100%; overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
a { color: var(--primary); }
svg.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- アニメーション ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes slideL { from { opacity: 0; transform: translateX(28px); } }
@keyframes slideR { from { opacity: 0; transform: translateX(-28px); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes shake { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: -200px 0; } to { background-position: 200px 0; } }
@keyframes ring { from { stroke-dasharray: 0 999; } }
@keyframes bar { from { width: 0; } }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
.anim-page { animation: fadeUp .28s var(--ease) both; }
.anim-fwd { animation: slideL .26s var(--ease) both; }
.anim-back { animation: slideR .26s var(--ease) both; }
.stagger > * { animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.bar > i { animation: bar .7s var(--ease) both; }
html.no-motion *, html.no-motion *::before, html.no-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- 一般ページ ---------- */
.page { max-width: 760px; margin: 0 auto; padding: calc(8px + var(--safe-t)) 16px calc(var(--tabs-h) + 28px + var(--safe-b)); }
.topbar { display: flex; align-items: center; gap: 8px; min-height: 52px; margin: 0 -4px 6px; position: sticky; top: 0; z-index: 5; background: var(--bg); padding-top: var(--safe-t); }
.topbar h1 { font-size: 1.2rem; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .sub { font-size: .78rem; color: var(--muted); }
.page h2 { font-size: .95rem; margin: 24px 2px 10px; color: var(--muted); font-weight: 700; display: flex; align-items: center; gap: 8px; }
.page h2 .more { margin-left: auto; font-size: .8rem; font-weight: 600; text-decoration: none; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 10px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .center { text-align: center; }
.row { display: flex; align-items: center; gap: 10px; } .row.wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; color: var(--muted); background: var(--surface2); border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.hint svg { width: 18px; height: 18px; margin-top: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); font-weight: 700; cursor: pointer; text-decoration: none; color: var(--text); touch-action: manipulation; user-select: none;
  transition: transform .12s var(--ease), background .2s, box-shadow .2s; }
.btn:active, .action:active, .item:active, .choice:active, .chipbtn:active { transform: scale(.97); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.soft { background: var(--primary-soft); border-color: transparent; color: var(--primary); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--primary); }
.btn.danger { color: var(--ng); }
.btn.danger.fill { background: var(--ng); color: #fff; border-color: var(--ng); }
.btn.block { width: 100%; }
.btn.lg { min-height: 56px; font-size: 1.05rem; }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, .choice:focus-visible, .item:focus-visible, .action:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; border-radius: 12px; cursor: pointer; color: var(--muted); flex: none; touch-action: manipulation; text-decoration: none; transition: background .15s; }
.icon-btn:hover { background: var(--surface2); }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.on { color: #e3a008; } .icon-btn.on svg { fill: currentColor; }

/* ホーム：次にやること */
.hero { position: relative; overflow: hidden; border-radius: 20px; padding: 18px; color: #fff; background: linear-gradient(135deg, var(--hero1), var(--hero2)); box-shadow: 0 10px 30px rgba(31,95,191,.28); }
.hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border-radius: 50%; background: rgba(255,255,255,.08); }
.hero .eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .04em; opacity: .9; display: flex; align-items: center; gap: 6px; }
.hero .eyebrow .pill { background: rgba(255,255,255,.2); padding: 2px 8px; border-radius: 99px; }
.hero h3 { margin: 6px 0 4px; font-size: 1.3rem; line-height: 1.35; }
.hero p { margin: 0 0 14px; font-size: .88rem; opacity: .92; }
.hero .go { width: 100%; min-height: 54px; border: 0; border-radius: 14px; background: #fff; color: var(--hero1); font-weight: 800; font-size: 1.05rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.15); transition: transform .12s; }
.hero .go:active { transform: scale(.97); }
.hero .go svg { width: 20px; height: 20px; animation: bounce 1.6s ease-in-out infinite; }
.hero .alt { display: block; margin: 10px auto 0; background: none; border: 0; color: #fff; opacity: .9; font-size: .82rem; text-decoration: underline; cursor: pointer; min-height: 32px; }

.today { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.ring { width: 84px; height: 84px; }
.ring circle.v { animation: ring 1s var(--ease) both; }
.ring text { font-weight: 800; fill: var(--text); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { background: var(--surface2); border-radius: 10px; padding: 8px 10px; min-width: 0; }
.kpi b { display: block; font-size: 1.1rem; line-height: 1.3; white-space: nowrap; } .kpi span { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.today .kpis { gap: 6px; } .today .kpi { padding: 6px 8px; }

.quick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.chipbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; min-height: 44px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--text); transition: transform .12s; }
.chipbtn .n { background: var(--ng); color: #fff; border-radius: 99px; padding: 0 7px; font-size: .72rem; line-height: 18px; }
.chipbtn svg { width: 18px; height: 18px; }

/* 学習ステップ */
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 10px 0; position: relative; }
.step + .step::before { content: ""; position: absolute; left: 15px; top: -10px; height: 20px; width: 2px; background: var(--line); }
.step .no { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; background: var(--surface2); color: var(--muted); position: relative; z-index: 1; }
.step.done .no { background: var(--ok); color: #fff; }
.step.cur .no { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }
.step .t b { display: block; font-size: .92rem; } .step .t small { color: var(--muted); font-size: .76rem; display: block; line-height: 1.4; }
.step .mini { width: 54px; }
.step.done .t b { color: var(--muted); }

.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.action { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--text); box-shadow: var(--shadow); min-height: 92px; cursor: pointer; text-align: left; transition: transform .12s; }
.action .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.action .ic svg { width: 20px; height: 20px; }
.action b { font-size: .98rem; } .action span { font-size: .78rem; color: var(--muted); line-height: 1.45; }
.action.main { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); grid-column: span 2; }
.action.main span { color: inherit; opacity: .85; } .action.main .ic { background: rgba(255,255,255,.2); color: inherit; }
.badge { display: inline-block; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--ng); color: #fff; font-size: .75rem; font-weight: 700; text-align: center; line-height: 20px; }
.tag-new { display: inline-block; padding: 0 7px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); font-size: .7rem; font-weight: 800; line-height: 18px; vertical-align: 2px; margin-left: 4px; }

.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 58px; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; width: 100%; cursor: pointer; color: var(--text); text-decoration: none; transition: background .15s; }
.item:hover { background: var(--surface2); }
.item:first-child { border-top: 0; }
.item .t { flex: 1; min-width: 0; } .item .t small { display: block; color: var(--muted); font-size: .78rem; }
.item .chev { color: var(--muted); font-size: 1.2rem; }
.item .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--surface2); color: var(--muted); flex: none; }
.item .ic svg { width: 20px; height: 20px; }
.item.danger { color: var(--ng); } .item.danger .ic { background: var(--ng-soft); color: var(--ng); }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

.bar { height: 8px; background: var(--surface2); border-radius: 99px; overflow: hidden; position: relative; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--primary); border-radius: 99px; transition: width .4s var(--ease); }
.bar .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--text); opacity: .5; }
.rate-hi { color: var(--ok); } .rate-mid { color: var(--warn); } .rate-lo { color: var(--ng); }

.seg { display: flex; background: var(--surface2); border-radius: 12px; padding: 3px; gap: 3px; }
.seg button { flex: 1; border: 0; background: none; padding: 8px 10px; border-radius: 9px; min-height: 42px; cursor: pointer; font-weight: 700; color: var(--muted); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg.inline { display: inline-flex; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; min-height: 60px; border-top: 1px solid var(--line); }
.switch:first-child { border-top: 0; }
.toggle { position: relative; width: 52px; height: 30px; flex: none; }
.toggle input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.toggle i { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: .2s; }
.toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.toggle input:checked + i { background: var(--primary); } .toggle input:checked + i::after { transform: translateX(22px); }

input[type="search"], input[type="text"], input[type="date"] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-height: 48px; }
.search { position: relative; } .search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; }
.search input { padding-left: 40px; }

.tabs { position: fixed; left: 0; right: 0; bottom: 0; height: calc(var(--tabs-h) + var(--safe-b)); padding-bottom: var(--safe-b); display: flex; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); z-index: 20; transition: transform .25s var(--ease); }
.tabs a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .7rem; color: var(--muted); text-decoration: none; position: relative; }
.tabs svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s var(--ease); }
.tabs a[aria-current="page"] { color: var(--primary); font-weight: 700; }
.tabs a[aria-current="page"] svg { transform: translateY(-2px); }
.tabs a[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
body.quiz-mode .tabs, body.no-tabs .tabs { transform: translateY(110%); }

/* ---------- 問題画面（スクロール不要の固定レイアウト） ---------- */
.quiz { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; height: 100dvh;
  padding-top: var(--safe-t); background: var(--bg); --qf: 1; }
.qbar { display: flex; align-items: center; gap: 8px; padding: 6px 8px; background: var(--surface); border-bottom: 1px solid var(--line); }
.qprog { flex: 1; min-width: 0; }
.qprog .lbl { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); line-height: 1.3; margin-bottom: 3px; }
.qprog .lbl span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qprog .lbl b { color: var(--text); }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: .95rem; padding: 4px 8px; border-radius: 8px; background: var(--surface2); }
.timer.low { color: var(--ng); background: var(--ng-soft); animation: pop 1s ease-in-out infinite; }

.qbody { overflow: hidden; padding: 10px 16px 6px; position: relative; font-size: calc(var(--fs) * 1.1 * var(--qf)); line-height: 1.7; }
.qbody.scrolly { overflow-y: auto; overscroll-behavior: contain; }
.qbody.scrolly::after { content: "▼ 続きあり（スクロール）"; position: sticky; bottom: 0; display: block; text-align: center; font-size: .72rem; color: var(--muted); background: linear-gradient(transparent, var(--bg) 50%); padding-top: 14px; transition: opacity .2s; }
.qbody.scrolly.at-end::after { opacity: 0; }
.qmeta { font-size: .78rem; color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-block; padding: 0 8px; border-radius: 99px; background: var(--surface2); font-size: .72rem; line-height: 20px; }
.qtext { word-break: break-word; }
.qtext .box { border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; margin: 6px 0; background: var(--surface); }
.qtext table.t, .exp table.t { border-collapse: collapse; margin: 6px 0; font-size: .9em; background: var(--surface); max-width: 100%; }
.qtext .t th, .qtext .t td, .exp .t th, .exp .t td { border: 1px solid var(--line); padding: 3px 7px; text-align: center; }
.qtext .t th { background: var(--surface2); font-weight: 600; }
.qtext pre, .exp pre { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; overflow-x: auto; font-size: .88em; line-height: 1.5; margin: 6px 0; font-family: ui-monospace, "BIZ UDGothic", Consolas, monospace; }
.tablewrap { overflow-x: auto; max-width: 100%; }
img.fig { display: block; max-width: 100%; max-height: var(--figmax, 34vh); margin: 6px auto; background: #fff; border-radius: 6px; padding: 4px; cursor: zoom-in; object-fit: contain; }

.choices { padding: 6px 12px 8px; display: grid; gap: 8px; font-size: calc(var(--fs) * 1.05 * var(--qf)); }
.choices.grid { grid-template-columns: 1fr 1fr; }
.choices.letters { grid-template-columns: repeat(4, 1fr); }
.choices > .choice { animation: fadeUp .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 40ms + 60ms); }
.choice { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface);
  text-align: left; cursor: pointer; touch-action: manipulation; user-select: none; line-height: 1.45; word-break: break-word; position: relative; transition: border-color .15s, background .15s, transform .12s; }
.choices.letters .choice { justify-content: center; min-height: 60px; font-size: 1.3em; font-weight: 700; }
.choice .lt { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface2); font-weight: 700; font-size: .95em; transition: background .15s, color .15s; }
.choices.letters .choice .lt { width: auto; height: auto; background: none; font-size: 1em; }
.choice .ct { flex: 1; min-width: 0; font-size: 1em; }
.choice[aria-pressed="true"] { border-color: var(--sel); background: var(--sel-soft); }
.choice[aria-pressed="true"] .lt { background: var(--sel); color: #fff; }
.choices.letters .choice[aria-pressed="true"] .lt { background: none; color: var(--sel); }
.choice.correct { border-color: var(--ok); background: var(--ok-soft); animation: pop .4s var(--ease) both !important; }
.choice.correct .lt { background: var(--ok); color: #fff; }
.choice.wrong { border-color: var(--ng); background: var(--ng-soft); animation: shake .4s ease both !important; }
.choice.wrong .lt { background: var(--ng); color: #fff; }
.choices.letters .choice.correct .lt, .choices.letters .choice.wrong .lt { background: none; color: inherit; }
.choice.correct::after, .choice.wrong::after { position: absolute; top: 2px; right: 8px; font-weight: 800; font-size: .9em; }
.choice.correct::after { content: "○"; color: var(--ok); } .choice.wrong::after { content: "×"; color: var(--ng); }
.choices.locked .choice { cursor: default; }

.qfoot { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 10px; padding: 8px 12px calc(8px + var(--safe-b)); background: var(--surface); border-top: 1px solid var(--line); }
.qfoot .btn { min-height: 52px; padding: 8px; }

/* 解説シート */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 72dvh; display: flex; flex-direction: column; background: var(--surface); border-radius: 18px 18px 0 0;
  box-shadow: 0 -8px 30px rgba(0,0,0,.18); z-index: 30; animation: up .3s var(--ease); padding-bottom: var(--safe-b); }
.sheet .grab { width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 8px auto 0; }
.sheet .sh-head { display: flex; align-items: center; gap: 10px; padding: 8px 16px 8px; }
.sheet .verdict { font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.sheet .verdict.ok { color: var(--ok); } .sheet .verdict.ng { color: var(--ng); }
.sheet .verdict .mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1rem; animation: pop .45s var(--ease); }
.sheet .verdict.ok .mark { background: var(--ok); } .sheet .verdict.ng .mark { background: var(--ng); }
.sheet .sh-body { overflow-y: auto; padding: 0 16px 8px; overscroll-behavior: contain; }
.exp { line-height: 1.75; }
.src { font-size: .72rem; color: var(--muted); margin-top: 10px; }
.sheet .sh-foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 8px 16px 12px; border-top: 1px solid var(--line); }
.sheet .sh-foot .btn { min-height: 52px; }
.sheet.min .sh-body { display: none; }

.navgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 6px; }
.navgrid button { min-height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 600; position: relative; color: var(--text); transition: transform .12s; }
.navgrid button:active { transform: scale(.94); }
.navgrid button.ans { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.navgrid button.cur { outline: 2px solid var(--primary); }
.navgrid button.flag::after { content: ""; position: absolute; top: 4px; right: 4px; width: 7px; height: 7px; border-radius: 50%; background: var(--warn); }
.navgrid button.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.navgrid button.ng { background: var(--ng-soft); color: var(--ng); border-color: transparent; }

/* モーダル・シート */
.overlay { position: fixed; inset: 0; background: rgba(10,15,25,.5); z-index: 40; display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
.overlay.bottom { place-items: end center; padding: 0; }
.modal { background: var(--surface); border-radius: 18px; width: 100%; max-width: 440px; max-height: 86dvh; overflow: auto; padding: 18px; box-shadow: 0 20px 50px rgba(0,0,0,.3); animation: fadeUp .25s var(--ease); }
.overlay.bottom .modal { max-width: 560px; border-radius: 20px 20px 0 0; padding-bottom: calc(18px + var(--safe-b)); animation: up .3s var(--ease); }
.modal h3 { margin: 0 0 8px; font-size: 1.1rem; }
.modal .mbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; position: sticky; bottom: -18px; background: var(--surface); padding: 10px 0 18px; margin-bottom: -18px; }
.modal .opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; min-height: 60px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer; text-align: left; margin-top: 8px; color: var(--text); transition: transform .12s, background .15s; }
.modal .opt:hover { background: var(--surface2); }
.modal .opt:active { transform: scale(.98); }
.modal .opt b { display: block; } .modal .opt small { color: var(--muted); font-size: .78rem; }
.modal .opt .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); flex: none; }
.modal .opt .ic svg { width: 20px; height: 20px; }
.modal .opt:disabled { opacity: .45; cursor: default; }
.zoom { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.92); overflow: auto; touch-action: pan-x pan-y pinch-zoom; animation: fadeIn .2s; }
.zoom img { display: block; background: #fff; margin: calc(56px + var(--safe-t)) auto 24px; width: 96%; max-width: none; padding: 6px; }
.zoom .zbar { position: fixed; top: var(--safe-t); right: 0; left: 0; display: flex; justify-content: flex-end; padding: 8px; }
.zoom .zbar .btn { min-height: 44px; background: rgba(255,255,255,.15); color: #fff; border: 0; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabs-h) + 18px + var(--safe-b)); transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; z-index: 60; font-size: .9rem; animation: fadeUp .25s var(--ease); max-width: 90vw; }
body.quiz-mode .toast { bottom: calc(90px + var(--safe-b)); }

/* ローディング */
.loading { position: fixed; inset: 0; z-index: 70; display: grid; place-content: center; justify-items: center; gap: 14px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(4px); animation: fadeIn .15s; }
.spinner { width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--primary-soft); border-top-color: var(--primary); animation: spin .8s linear infinite; }
.loading p { margin: 0; font-weight: 700; } .loading small { color: var(--muted); min-height: 1.2em; }
.loading small span { animation: fadeUp .2s var(--ease); display: inline-block; }
.skel { border-radius: 12px; background: linear-gradient(90deg, var(--surface2) 0, var(--surface) 50%, var(--surface2) 100%) var(--surface2); background-size: 400px 100%; animation: shimmer 1.2s linear infinite; }

/* オンボーディング */
.intro { position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column; padding: calc(16px + var(--safe-t)) 20px calc(20px + var(--safe-b)); animation: fadeIn .3s; }
.intro .slide { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 460px; margin: 0 auto; width: 100%; animation: slideL .35s var(--ease); }
.intro .art { width: 96px; height: 96px; border-radius: 28px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); margin-bottom: 22px; }
.intro .art svg { width: 48px; height: 48px; }
.intro h2 { font-size: 1.45rem; margin: 0 0 10px; line-height: 1.4; }
.intro p { color: var(--muted); margin: 0 0 8px; }
.intro .dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0; }
.intro .dots i { width: 8px; height: 8px; border-radius: 99px; background: var(--line); transition: width .25s var(--ease), background .25s; }
.intro .dots i.on { width: 22px; background: var(--primary); }
.intro .skip { position: absolute; right: 12px; top: calc(10px + var(--safe-t)); }
.intro .flow { display: grid; gap: 8px; margin-top: 10px; }
.intro .flow div { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .9rem; }
.intro .flow b { width: 26px; height: 26px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-size: .8rem; flex: none; }
.field { display: block; margin-top: 14px; } .field > span { display: block; font-size: .85rem; font-weight: 700; margin-bottom: 6px; }

/* 結果・分析 */
.score { font-size: 2.8rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.pass { color: var(--ok); } .fail { color: var(--ng); }
.result-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; font-weight: 800; animation: pop .5s var(--ease) .3s both; }
.result-badge.pass { background: var(--ok-soft); } .result-badge.fail { background: var(--ng-soft); }
.midrow { display: grid; grid-template-columns: minmax(0, 1fr) 90px 54px; gap: 10px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--line); cursor: pointer; background: none; border-left: 0; border-right: 0; border-bottom: 0; width: 100%; text-align: left; color: var(--text); min-height: 48px; }
.midrow:first-child { border-top: 0; }
div.midrow { cursor: default; }
.midrow .nm { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.midrow .pc { text-align: right; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }
.heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; overflow-x: auto; }
.heat i { width: 13px; height: 13px; border-radius: 3px; background: var(--surface2); }
.heat i.l1 { background: color-mix(in srgb, var(--primary) 30%, var(--surface2)); }
.heat i.l2 { background: color-mix(in srgb, var(--primary) 55%, var(--surface2)); }
.heat i.l3 { background: color-mix(in srgb, var(--primary) 80%, var(--surface2)); }
.heat i.l4 { background: var(--primary); }
svg.chart { width: 100%; height: auto; display: block; }
svg.chart text { fill: var(--muted); font-size: 10px; }
svg.chart polyline { stroke-dasharray: 1000; animation: draw 1.2s var(--ease) both; }
@keyframes draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .78rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { border: 1px solid var(--line); background: var(--surface); padding: 6px 10px; border-radius: 99px; font-size: .82rem; cursor: pointer; min-height: 36px; color: var(--text); }
.tag b { color: var(--ng); margin-left: 4px; }
.notes img { width: 100%; background: #fff; border-radius: 8px; padding: 6px; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); }
.empty svg { width: 40px; height: 40px; opacity: .5; display: block; margin: 0 auto 8px; }
.prose p { margin: 0 0 10px; } .prose h3 { font-size: 1rem; margin: 18px 0 6px; }
.prose ol, .prose ul { padding-left: 1.3em; margin: 0 0 10px; } .prose li { margin-bottom: 4px; }

/* ---------- PC（横幅が広い場合） ---------- */
.kbd-hint { display: none; font-size: .72rem; color: var(--muted); text-align: center; padding: 0 0 6px; }
@media (min-width: 900px) {
  .quiz { grid-template-columns: minmax(0, 1.25fr) minmax(360px, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
  .qbar { grid-column: 1 / -1; }
  .qbody { grid-row: 2; grid-column: 1; padding: 20px 28px; border-right: 1px solid var(--line); }
  .choices { grid-row: 2; grid-column: 2; align-content: center; padding: 20px; }
  .choices.grid { grid-template-columns: 1fr; }
  .choices.letters { grid-template-columns: 1fr 1fr; }
  .qfoot { grid-column: 1 / -1; max-width: 760px; width: 100%; justify-self: center; background: transparent; border: 0; }
  .sheet { left: auto; right: 16px; bottom: 16px; width: min(520px, 44vw); max-height: calc(100dvh - 120px); border-radius: 18px; }
  .kbd-hint { display: block; grid-column: 1 / -1; }
  .tabs { left: 50%; transform: translateX(-50%); width: 560px; bottom: 12px; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); height: var(--tabs-h); padding-bottom: 0; }
  body.quiz-mode .tabs, body.no-tabs .tabs { transform: translate(-50%, 140%); }
  .home-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; align-items: start; }
  .home-grid h2:first-child { margin-top: 0; }
}
@media (max-height: 560px) { .qbody { padding-top: 4px; } .choice { min-height: 44px; } .qfoot .btn { min-height: 46px; } }

/* ---------- 追加：ヒント・解説シート ---------- */
.hintbtn { width: auto; padding: 0 10px; gap: 4px; display: inline-flex; align-items: center; color: var(--warn); background: var(--warn-soft); height: 36px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.hintbtn svg { width: 18px; height: 18px; }
.hintbtn:hover { background: var(--warn-soft); filter: brightness(.97); }
.hintbox { background: var(--warn-soft); border-radius: 12px; padding: 12px 14px; margin: 6px 0 4px; }
.hintbox b { font-size: 1.05rem; }
.modal h3 svg { width: 20px; height: 20px; vertical-align: -3px; color: var(--warn); }
.choice.elim { opacity: .35; text-decoration: line-through; pointer-events: none; }
.sheet.closing { animation: sheetDown .18s ease-in forwards; }
@keyframes sheetDown { to { transform: translateY(100%); opacity: 0; } }
#third svg { width: 18px; height: 18px; }

/* ---------- iOS のホーム画面アプリ：上部ステータスバーとの重なりを避ける ---------- */
html.ios-pwa { --safe-t: calc(env(safe-area-inset-top, 0px) + 14px); }

/* ---------- スマホのホーム画面アプリ追加案内 ---------- */
.gate { position: fixed; inset: 0; z-index: 90; overflow-y: auto; background: var(--bg); padding: calc(24px + var(--safe-t)) 20px calc(64px + var(--safe-b)); animation: fadeIn .3s; }
.gate-in { max-width: 460px; margin: 0 auto; text-align: center; }
.gate-logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: 0 10px 30px rgba(31,95,191,.3); animation: pop .6s var(--ease); }
.gate h1 { margin: 12px 0 4px; font-size: 1.5rem; }
.gate .lead { margin: 0 0 14px; font-size: 1.02rem; }
.gate-why { list-style: none; padding: 0; margin: 0 auto 16px; display: inline-flex; flex-direction: column; gap: 6px; text-align: left; font-size: .92rem; color: var(--muted); }
.gate-why li { display: flex; gap: 8px; align-items: center; } .gate-why svg { color: var(--ok); width: 18px; height: 18px; }
.gate-steps { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; text-align: left; }
.gate-steps li { display: grid; grid-template-columns: 28px 44px 1fr; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; animation: fadeUp .35s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
.gate-steps .n { width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.gate-steps .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; }
.gate-steps .ic img { width: 34px; height: 34px; border-radius: 8px; }
.gate-steps small { color: var(--muted); font-size: .78rem; display: block; }
.gate-arrow { position: fixed; left: 50%; bottom: calc(6px + var(--safe-b)); transform: translateX(-50%) rotate(-90deg); color: var(--primary); }
.gate-arrow svg { width: 34px; height: 34px; stroke-width: 3; animation: bounce 1.2s ease-in-out infinite; }

/* ---------- 使い方ガイド（図解） ---------- */
.guide .g-hero { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: 18px; color: #fff; background: linear-gradient(135deg, var(--hero1), var(--hero2)); }
.guide .g-hero p { margin: 4px 0 0; font-size: .86rem; opacity: .92; } .guide .g-hero b { font-size: 1.05rem; }
.g-ic { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.2); display: grid; place-items: center; flex: none; } .g-ic svg { width: 28px; height: 28px; }
.g-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding-top: 8px; }
.g-step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 6px 10px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.g-step .n { position: absolute; top: -9px; left: 50%; transform: translateX(-50%); width: 22px; height: 22px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.g-step .ic { width: 36px; height: 36px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); display: grid; place-items: center; } .g-step .ic svg { width: 20px; height: 20px; }
.g-step b { font-size: .8rem; line-height: 1.3; } .g-step small { font-size: .68rem; color: var(--muted); line-height: 1.3; }
@media (max-width: 560px) {
  .g-flow { grid-template-columns: 1fr; gap: 6px; padding-top: 0; }
  .g-step { flex-direction: row; text-align: left; padding: 10px 12px; gap: 10px; }
  .g-step .n { position: static; transform: none; flex: none; }
  .g-step b { font-size: .92rem; } .g-step small { font-size: .78rem; margin-left: auto; text-align: right; }
}
.g-mock-wrap { display: grid; grid-template-columns: 210px 1fr; gap: 18px; align-items: center; }
@media (max-width: 560px) { .g-mock-wrap { grid-template-columns: 1fr; } .g-phone { margin: 0 auto; } }
.g-phone { width: 210px; border: 6px solid var(--text); border-radius: 28px; background: var(--bg); overflow: visible; font-size: 10px; box-shadow: var(--shadow); }
.g-phone > div:first-child { border-radius: 20px 20px 0 0; } .g-phone > div:last-child { border-radius: 0 0 20px 20px; }
.g-phone .pin, .g-legend .pin { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ng); color: #fff; font-size: 10px; font-weight: 800; font-style: normal; flex: none; }
.g-phone .pin { position: absolute; top: -8px; right: -6px; box-shadow: 0 0 0 2px var(--bg); }
.g-bar { display: flex; align-items: center; gap: 6px; padding: 9px 8px; background: var(--surface); border-bottom: 1px solid var(--line); position: relative; }
.g-bar .pin:first-child { left: -6px; right: auto; }
.g-prog { flex: 1; height: 4px; border-radius: 4px; background: var(--surface2); position: relative; } .g-prog::after { content: ""; position: absolute; inset: 0 60% 0 0; background: var(--primary); border-radius: 4px; }
.g-prog i { display: none; }
.g-q { padding: 10px 10px 4px; display: grid; gap: 5px; position: relative; }
.g-line { height: 6px; border-radius: 3px; background: var(--line); } .w9 { width: 92%; } .w7 { width: 70%; } .w8 { width: 82%; }
.g-fig { height: 46px; border: 1px dashed var(--line); border-radius: 6px; display: grid; place-items: center; color: var(--muted); position: relative; }
.g-ch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 8px 10px; position: relative; }
.g-ch > .pin { top: 0; right: 2px; }
.g-ch i, .g-foot i { font-style: normal; border: 1.5px solid var(--line); border-radius: 6px; padding: 5px; text-align: center; background: var(--surface); }
.g-ch i.on { border-color: var(--sel); background: var(--sel-soft); }
.g-foot { display: grid; grid-template-columns: 1fr 1.6fr 1fr; gap: 4px; padding: 6px 8px 10px; background: var(--surface); border-top: 1px solid var(--line); }
.g-foot i.pri { background: var(--primary); color: var(--primary-ink); border-color: var(--primary); position: relative; }
.g-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.g-legend li { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--muted); }
.g-legend li b { display: block; color: var(--text); font-size: .94rem; }
.g-legend .pin { margin-top: 2px; width: 22px; height: 22px; font-size: 12px; }
.g-after { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.g-after .card { padding: 12px; margin: 0 !important; font-size: .86rem; } .g-after p { margin: 6px 0 0; color: var(--muted); font-size: .8rem; }
.g-after svg { width: 16px; height: 16px; vertical-align: -3px; }
@media (max-width: 560px) { .g-after { grid-template-columns: 1fr; } }
.g-badge { display: inline-block; padding: 2px 8px; border-radius: 99px; font-weight: 800; font-size: .78rem; margin-right: 4px; }
.g-badge.ok { background: var(--ok-soft); color: var(--ok); } .g-badge.ng { background: var(--ng-soft); color: var(--ng); }
.g-srs { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.g-srs span { padding: 6px 10px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: .8rem; }
.g-srs span.now { background: var(--primary); color: var(--primary-ink); } .g-srs i { color: var(--muted); font-style: normal; }
.g-feats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .g-feats { grid-template-columns: 1fr 1fr; } }
.g-feat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.g-feat .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); } .g-feat .ic svg { width: 18px; height: 18px; }
.g-feat b { font-size: .9rem; } .g-feat small { color: var(--muted); font-size: .76rem; line-height: 1.45; }
.g-faq details.item { display: block; cursor: default; }
.g-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 32px; }
.g-faq summary::after { content: "＋"; color: var(--muted); transition: transform .2s; } .g-faq details[open] summary::after { transform: rotate(45deg); }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq p { margin: 8px 0 2px; color: var(--muted); font-size: .88rem; }

/* ---------- 画面幅別レイアウト ---------- */
@media (min-width: 900px) {
  .wide2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
  .list.exlist { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; background: none; border: 0; overflow: visible; }
  .list.exlist .item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
  .actions { grid-template-columns: repeat(3, 1fr); } .action.main { grid-column: span 3; }
}
/* PC・大画面：左サイドバー */
@media (min-width: 1024px) {
  .tabs { left: 0; top: 0; bottom: 0; right: auto; width: 228px; height: auto; transform: none; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 22px 12px; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; background: var(--surface); backdrop-filter: none; }
  .tabs::before { content: "A免除ドリル"; font-weight: 800; font-size: 1.15rem; padding: 4px 14px 18px; color: var(--text); }
  .tabs a { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; border-radius: 12px; font-size: .95rem; }
  .tabs a:hover { background: var(--surface2); }
  .tabs a[aria-current="page"] { background: var(--primary-soft); }
  .tabs a[aria-current="page"]::before { display: none; }
  .tabs a[aria-current="page"] svg { transform: none; }
  body.quiz-mode .tabs, body.no-tabs .tabs { transform: translateX(-110%); }
  body:not(.quiz-mode) #app { padding-left: 228px; }
  .page { max-width: 1120px; padding: 18px 32px 48px; }
  .topbar h1 { font-size: 1.5rem; }
  .toast { left: calc(50% + 114px); bottom: 28px; }
  body.quiz-mode .toast { left: 50%; }
  .home-grid { grid-template-columns: 1.15fr 1fr; gap: 24px; }
  .hero { padding: 24px; } .hero h3 { font-size: 1.5rem; }
  .kpis.stagger-list { grid-template-columns: repeat(6, 1fr); }
  .list.exlist { grid-template-columns: repeat(3, 1fr); }
  .quiz { grid-template-columns: minmax(0, 1.3fr) minmax(400px, 1fr); }
  .qbody { padding: 28px 40px; }
}
/* タブレット（700〜1023）：余白と押しやすさを拡大 */
@media (min-width: 700px) and (max-width: 1023px) {
  .page { max-width: 840px; padding-left: 24px; padding-right: 24px; }
}
@media (min-width: 700px) and (max-width: 899px) {
  .qbody { padding: 18px 32px 8px; }
  .choices { padding: 8px 28px 14px; gap: 10px; }
  .choice { min-height: 62px; }
  .qfoot { padding-left: 28px; padding-right: 28px; }
}
