/* =============================================================================
 *  Actara 研修アプリ ── スタイル（明るく・写真を活かすデザイン）
 * ============================================================================= */

:root {
  --bg:        #f6f8fb;
  --surface:   #ffffff;
  --ink:       #1c2536;
  --ink-soft:  #5b6678;
  --line:      #e6ebf2;
  --accent:    #2563eb;
  --accent-2:  #38bdf8;
  --good:      #16a34a;
  --bad:       #dc2626;
  --warn:      #d97706;
  --shadow:    0 6px 24px rgba(28, 37, 54, .08);
  --shadow-sm: 0 2px 10px rgba(28, 37, 54, .06);
  --radius:    18px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
               system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

/* ---------- ヘッダー / フッター ---------- */
.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.brand-mark {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.brand-name { font-weight: 700; letter-spacing: .02em; }
.header-spacer { flex: 1; }
.back-btn {
  border: none; background: #eef2f8; color: var(--ink);
  font-size: 15px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
}
.back-btn:hover { background: #e3e9f3; }

.app-footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
  padding: 28px 16px 40px;
}

/* ---------- レイアウト ---------- */
.view {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 18px 10px;
  min-height: 60vh;
  animation: fade .25s ease;
}
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.page-title { font-size: 26px; font-weight: 800; margin: 6px 0 2px; }
.page-sub   { color: var(--ink-soft); margin: 0 0 22px; }

/* ---------- キャリア選択（ホーム） ---------- */
.hero-lead {
  background: linear-gradient(135deg, #eaf2ff, #f0fbff);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px;
  margin-bottom: 26px;
}
.hero-lead h1 { margin: 0 0 6px; font-size: 24px; }
.hero-lead p  { margin: 0; color: var(--ink-soft); }

.section-label {
  font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--ink-soft); text-transform: uppercase;
  margin: 26px 4px 12px;
}

/* ---------- ホーム：機能メニュー ---------- */
.home-menu { display: grid; gap: 14px; }
@media (min-width: 620px) { .home-menu { grid-template-columns: 1fr 1fr; } }
.menu-tile {
  display: flex; align-items: center; gap: 16px;
  width: 100%; text-align: left; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.menu-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #cdd9ea; }
.menu-tile:active { transform: translateY(0); }
.menu-ic {
  flex: 0 0 auto;
  width: 56px; height: 56px; border-radius: 16px;
  display: grid; place-items: center; font-size: 28px;
  background: linear-gradient(135deg, #eaf2ff, #f0fbff);
  border: 1px solid #dde8fb;
}
.menu-tx { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.menu-tx b { font-size: 19px; }
.menu-tx small { font-size: 13px; color: var(--ink-soft); line-height: 1.4; }
.menu-arrow { flex: 0 0 auto; font-size: 26px; color: #c2cddd; font-weight: 700; }

.carrier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.carrier-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  text-align: left;
}
.carrier-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.carrier-cover {
  height: 96px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.carrier-cover::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c, #2563eb), transparent 120%);
  opacity: .92;
}
.carrier-cover .initial {
  position: absolute; right: 14px; bottom: -16px;
  width: 48px; height: 48px; border-radius: 14px;
  background: #fff; color: var(--c, #2563eb);
  display: grid; place-items: center;
  font-weight: 800; font-size: 22px;
  box-shadow: var(--shadow-sm);
  z-index: 1;
}
.carrier-body { padding: 22px 18px 18px; }
.carrier-body h3 { margin: 0 0 2px; font-size: 19px; }
.carrier-body .tag { color: var(--ink-soft); font-size: 13px; }
.carrier-stats {
  display: flex; gap: 14px; margin-top: 14px;
  font-size: 12.5px; color: var(--ink-soft);
}
.carrier-stats b { color: var(--ink); }

/* ---------- キャリア詳細：タブ ---------- */
.carrier-hero {
  border-radius: var(--radius);
  padding: 28px 24px;
  color: #fff;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
  background-size: cover; background-position: center;
}
.carrier-hero h1 { margin: 0; font-size: 28px; }
.carrier-hero p  { margin: 4px 0 0; opacity: .9; }

.tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 22px;
  position: sticky; top: 60px; z-index: 10;
  background: var(--bg); padding: 6px 0;
}
.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14.5px; font-weight: 600;
  cursor: pointer;
  transition: all .12s ease;
}
.tab:hover { border-color: #cdd7e6; }
.tab.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

/* ---------- カード（共通） ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p  { margin: 0; color: var(--ink-soft); }
.pill {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 10px; border-radius: 999px;
  background: #eef2f8; color: var(--ink-soft);
  margin-bottom: 8px;
}
.pill.catch    { background: #fff1e6; color: #b45309; }
.pill.roleplay { background: #e6f4ff; color: #1d4ed8; }

/* ---------- 知識：カテゴリ見出し ---------- */
.cat-head {
  font-size: 15px; font-weight: 800;
  margin: 22px 4px 10px; color: var(--accent);
}

/* ---------- 知識カードの図解（detail） ---------- */
.kdetail { margin-top: 14px; }
.kdetail > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--accent);
  background: #eef4ff; border: 1px solid #d8e6ff;
  padding: 8px 14px; border-radius: 999px;
  transition: background .12s ease;
}
.kdetail > summary::-webkit-details-marker { display: none; }
.kdetail > summary:hover { background: #e2edff; }
.kdetail > summary::after { content: "▾"; font-size: 12px; transition: transform .15s ease; }
.kdetail[open] > summary::after { transform: rotate(180deg); }
.kdetail[open] > summary { border-radius: 12px; margin-bottom: 12px; }
.kdetail-body { animation: fade .2s ease; }

.dx-box {
  background: #f8fafd; border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; margin-bottom: 12px;
}
.dx-title { font-size: 13.5px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }

/* 内訳の各行 */
.dx-line {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 2px; border-bottom: 1px dashed var(--line);
  font-size: 14px;
}
.dx-line > span { color: var(--ink); }
.dx-line > b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dx-line.base > b { color: var(--ink); }
.dx-line.disc > b { color: var(--good); }
.dx-line.total {
  border-bottom: none; margin-top: 4px;
  background: #eaf2ff; border-radius: 10px; padding: 11px 12px;
  font-weight: 800;
}
.dx-line.total > span { font-weight: 700; }
.dx-line.total > b { color: var(--accent); font-size: 18px; }

/* タップで条件を表示する割引行 */
details.dx-line.tappable { display: block; padding: 0; border-bottom: 1px dashed var(--line); }
details.dx-line.tappable > summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 9px 2px; font-size: 14px;
}
details.dx-line.tappable > summary::-webkit-details-marker { display: none; }
details.dx-line.tappable > summary > b { color: var(--good); font-variant-numeric: tabular-nums; }
details.dx-line.tappable > summary::before {
  content: "＋"; color: var(--accent); font-weight: 800; margin-right: 2px; font-size: 12px;
}
details.dx-line.tappable[open] > summary::before { content: "−"; }
.dx-desc { padding: 0 8px 11px 18px; font-size: 12.8px; color: var(--ink-soft); }

/* 棒グラフ（基本→適用後） */
.dx-bars { margin-top: 12px; display: grid; gap: 7px; }
.dx-bar { position: relative; }
.dx-bar > i {
  display: block; height: 26px; border-radius: 7px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.dx-bar > i.muted { background: #d7dfeb; }
.dx-bar > span {
  position: absolute; left: 10px; top: 0; line-height: 26px;
  font-size: 12px; font-weight: 700; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.25); white-space: nowrap;
}

.dx-note { margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; }

/* 段階制の料金表 */
.dx-tiers { display: grid; gap: 8px; }
.dx-tier {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 4px 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 13px;
}
.dx-tier-l { font-weight: 700; font-size: 14px; }
.dx-tier-v { font-weight: 800; color: var(--accent); font-size: 16px; font-variant-numeric: tabular-nums; }
.dx-tier-d { grid-column: 1 / -1; font-size: 12.3px; color: var(--ink-soft); }

/* 家族構成・利用パターン別の具体例 */
.dx-scn { display: grid; gap: 10px; }
details.dx-case {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
}
details.dx-case > summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 13px 15px;
}
details.dx-case > summary::-webkit-details-marker { display: none; }
details.dx-case[open] > summary { border-bottom: 1px solid var(--line); background: #f8fafd; }
.dx-persona { font-size: 13.8px; font-weight: 700; line-height: 1.45; }
.dx-final { white-space: nowrap; color: var(--ink-soft); font-size: 12px; text-align: right; }
.dx-final > b { color: var(--accent); font-size: 20px; font-variant-numeric: tabular-nums; }
.dx-final > small { font-size: 11px; }
.dx-case-body { padding: 12px 15px; }

.dx-ul { margin: 0; padding-left: 18px; font-size: 13.3px; color: var(--ink-soft); }
.dx-ul li { margin: 4px 0; }

/* ---------- 家族人数シミュレーター ---------- */
.dx-sim-ctrl { margin: 12px 0; }
.dx-sim-lbl { font-size: 12.5px; font-weight: 800; color: var(--ink-soft); margin-bottom: 8px; }
.dx-ppl-row, .dx-opt-row { display: flex; gap: 8px; flex-wrap: wrap; }

.dx-ppl {
  flex: 1 1 0; min-width: 52px;
  border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 11px; padding: 11px 8px;
  font-size: 15.5px; font-weight: 800; cursor: pointer;
  transition: all .12s ease; font-variant-numeric: tabular-nums;
}
.dx-ppl:hover { border-color: #b9c6da; }
.dx-ppl.active {
  background: var(--accent); color: #fff; border-color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.dx-opt {
  border: 1.5px solid var(--line); background: #fff; color: var(--ink-soft);
  border-radius: 999px; padding: 8px 13px;
  font-size: 12.5px; font-weight: 700; cursor: pointer;
  transition: all .12s ease;
}
.dx-opt::before { content: "○ "; }
.dx-opt.on { background: #ecfdf3; border-color: #86d9a6; color: var(--good); }
.dx-opt.on::before { content: "✓ "; }

.dx-sim-result { margin-top: 14px; }
.dx-sim-big {
  display: flex; align-items: baseline; gap: 8px;
  background: linear-gradient(135deg, #eaf2ff, #f0fbff);
  border: 1px solid #d8e6ff; border-radius: 14px; padding: 16px 18px;
}
.dx-sim-big > span { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.dx-sim-big > b { font-size: 32px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.dx-sim-big > small { font-size: 12px; color: var(--ink-soft); }
.dx-sim-house { margin-top: 9px; font-size: 13px; color: var(--ink-soft); text-align: right; }
.dx-sim-house > b { color: var(--ink); font-variant-numeric: tabular-nums; }
.dx-sim-breakdown { margin-top: 12px; }

/* サイズ選択（S/M/L）の割引適用例 */
.sz-base { margin: 12px 0 8px; font-size: 13.5px; color: var(--ink-soft); }
.sz-base b { color: var(--ink); font-size: 15px; }
.szrows { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.szrow { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.szrow:last-child { border-bottom: none; }
.szrow.head { background: #f3f6fb; font-size: 12px; font-weight: 700; color: var(--ink-soft); }
.szrow-l { min-width: 0; }
.szrow-y { color: var(--good); font-variant-numeric: tabular-nums; white-space: nowrap; }
.szrow.head .szrow-y { color: var(--ink-soft); }
.szrow-t { font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; min-width: 72px; text-align: right; }
.szrow.head .szrow-t { color: var(--ink-soft); font-weight: 700; }
.sz-low {
  margin-top: 10px; padding: 11px 13px;
  background: #fff7ed; border: 1px solid #fed7aa; border-radius: 10px;
  font-size: 13px; color: #9a3412;
}
.sz-low b { color: #b45309; }
.sz-low-ex { margin-top: 5px; font-size: 12.5px; color: var(--ink-soft); }
.sz-low-ex b { color: var(--accent); font-size: 15px; }

/* ---------- 動画 ---------- */
.video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: #0d1220;
  margin-bottom: 12px;
}
.video-frame iframe,
.video-frame video { width: 100%; height: 100%; border: 0; display: block; }
.video-placeholder {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  color: #aeb9cc; gap: 8px; text-align: center;
  background: repeating-linear-gradient(45deg, #11182b, #11182b 12px, #131c33 12px, #131c33 24px);
}
.video-placeholder .icon { font-size: 34px; }

/* YouTube サムネ（タップで再生） */
.yt-lite { cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 62px; height: 62px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(220, 38, 38, .92); color: #fff; font-size: 24px;
  padding-left: 4px; box-shadow: 0 4px 14px rgba(0,0,0,.35);
  transition: transform .12s ease, background .12s ease;
}
.yt-lite:hover .yt-play { transform: translate(-50%, -50%) scale(1.08); background: #dc2626; }
.yt-card .pill.catch { background: #fee2e2; color: #b91c1c; }
.yt-more {
  display: inline-block; margin: 2px 0 20px;
  font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none;
}
.yt-more:hover { text-decoration: underline; }

/* 動画ページ上部のジャンプ用ナビ */
.vidnav {
  position: sticky; top: 60px; z-index: 12;
  display: flex; gap: 8px; flex-wrap: nowrap; overflow-x: auto;
  background: var(--bg); padding: 8px 0; margin: 0 0 6px;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.vidnav::-webkit-scrollbar { display: none; }
.vidchip {
  flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 999px; padding: 8px 15px;
  font-size: 13.5px; font-weight: 700; cursor: pointer; white-space: nowrap;
  transition: all .12s ease;
}
.vidchip:hover { border-color: #cdd7e6; background: #f3f6fb; }
.vidchip:active { background: var(--accent); color: #fff; border-color: var(--accent); }
.yt-sec { scroll-margin-top: 116px; }

/* MNP：電話発行ボタン（タップで発信） */
.mnp-tel {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  background: #f7faff; border: 1.5px solid #d8e6ff;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
}
.mnp-tel:last-of-type { margin-bottom: 0; }
.mnp-tel:hover { border-color: var(--accent); }
.mnp-tel-l { flex: 1; font-size: 13px; color: var(--ink-soft); font-weight: 700; }
.mnp-tel-n { font-size: 20px; font-weight: 900; color: var(--accent); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.mnp-call { flex: 0 0 auto; font-size: 12px; font-weight: 800; color: #fff; background: var(--accent); border-radius: 999px; padding: 6px 11px; }

/* 知識の動画：スマサポ検索リンク集 */
.ytlink-list { display: grid; gap: 12px; }
.ytlink {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.ytlink:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #cdd9ea; }
.ytlink-badge {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 20px;
}
.ytlink-tx { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ytlink-tx b { font-size: 17px; }
.ytlink-tx small { font-size: 12.5px; color: var(--ink-soft); }
.ytlink-arrow { flex: 0 0 auto; font-size: 20px; color: var(--accent); font-weight: 800; }

/* ---------- ノウハウ：手順 ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 12px 0 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 44px;
  border-bottom: 1px dashed var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 8px;
  width: 28px; height: 28px;
  background: var(--accent); color: #fff;
  border-radius: 8px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 14px;
}

/* ---------- テスト ---------- */
.test-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .test-menu { grid-template-columns: 1fr; } }
.test-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 22px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
}
.test-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.test-card .big { font-size: 30px; }
.test-card h3 { margin: 8px 0 4px; }
.test-card p { color: var(--ink-soft); margin: 0; font-size: 13.5px; }

.q-card { background: var(--surface); border: 1px solid var(--line);
          border-radius: 14px; padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); }
.q-num { font-size: 12.5px; color: var(--ink-soft); font-weight: 700; }
.q-text { font-size: 17px; font-weight: 700; margin: 4px 0 14px; }

.opt {
  display: block; width: 100%; text-align: left;
  border: 1.5px solid var(--line); background: #fff;
  border-radius: 12px; padding: 13px 16px; margin-bottom: 10px;
  font-size: 15px; cursor: pointer; transition: all .1s ease;
}
.opt:hover { border-color: #b9c6da; }
.opt.selected { border-color: var(--accent); background: #f0f6ff; }
.opt.correct  { border-color: var(--good); background: #ecfdf3; }
.opt.wrong    { border-color: var(--bad);  background: #fef2f2; }
.opt .mark { float: right; font-weight: 800; }

textarea.answer {
  width: 100%; min-height: 110px;
  border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-size: 15px; font-family: inherit; resize: vertical;
}
textarea.answer:focus { outline: none; border-color: var(--accent); }

.explain {
  margin-top: 12px; padding: 12px 14px;
  background: #f7faff; border-left: 4px solid var(--accent);
  border-radius: 8px; font-size: 14px; color: var(--ink-soft);
}
.explain.model { background: #f3fdf6; border-color: var(--good); }
.kw { display: inline-block; font-size: 12px; font-weight: 700;
      padding: 2px 9px; border-radius: 999px; margin: 3px 4px 0 0; }
.kw.hit  { background: #ecfdf3; color: var(--good); }
.kw.miss { background: #f1f4f8; color: var(--ink-soft); }

/* ---------- ボタン ---------- */
.btn {
  border: none; border-radius: 12px; cursor: pointer;
  font-size: 15px; font-weight: 700; padding: 13px 22px;
  background: var(--accent); color: #fff;
  box-shadow: var(--shadow-sm); transition: filter .12s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn.ghost { background: #eef2f8; color: var(--ink); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ---------- 結果 ---------- */
.score-hero {
  text-align: center; padding: 30px 20px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eaf2ff, #f0fbff);
  border: 1px solid var(--line); margin-bottom: 18px;
}
.score-hero .score { font-size: 52px; font-weight: 900; color: var(--accent); }
.score-hero .label { color: var(--ink-soft); }

/* ---------- 空状態 ---------- */
.empty {
  text-align: center; color: var(--ink-soft);
  padding: 48px 20px; border: 2px dashed var(--line);
  border-radius: var(--radius); background: var(--surface);
}
.empty .icon { font-size: 40px; opacity: .6; }
.empty p { margin: 10px 0 0; }
.empty code { background: #eef2f8; padding: 2px 7px; border-radius: 6px; font-size: 13px; }
