/* =========================================================
   原田英語の 共通テスト英語 2028 満点ナビ — style.css
   クリーム色＋方眼紙、黒板グリーンのトップ、太い墨の線とずらした影、黄色のアクセント
   ========================================================= */
[hidden] { display: none !important; }
:root {
  --bg: #fdf8ec; --bg2: #f6efdc; --card: #ffffff; --ink: #1d211f; --ink2: #545b56; --ink3: #8a8f8b;
  --line: #1d211f; --soft: #e6dfcc; --grid: rgba(31, 74, 60, 0.07);
  --board: #1f4a3c; --board2: #163a2e; --chalk: #f5f2e8; --chalk2: #c9d6cf; --yellow: #ffd84a; --yellow2: #fff1b0;
  --r-col: #d9534f; --l-col: #2f6fb3; --ok: #2e8b57; --ng: #c8423b; --link: #1f5f99; --mark: #fff0a0;
  --shadow: 4px 4px 0 var(--line); --shadow-sm: 2px 2px 0 var(--line);
  --r: 14px; --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, system-ui, sans-serif;
  --head: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif; --en: 'Source Serif 4', Georgia, serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --bg: #141815; --bg2: #1b201c; --card: #1f2521; --ink: #ecefe9; --ink2: #b3bbb4; --ink3: #8a928c; --line: #0a0c0b; --soft: #333b35; --grid: rgba(255, 255, 255, 0.035); --link: #8fc0ea; --mark: #5b4f17; --yellow2: #4a4116; color-scheme: dark; }
}
:root[data-theme='dark'] { --bg: #141815; --bg2: #1b201c; --card: #1f2521; --ink: #ecefe9; --ink2: #b3bbb4; --ink3: #8a928c; --line: #0a0c0b; --soft: #333b35; --grid: rgba(255, 255, 255, 0.035); --link: #8fc0ea; --mark: #5b4f17; --yellow2: #4a4116; color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; color: var(--ink); font-family: var(--font); font-size: 16.5px; line-height: 1.9; letter-spacing: .03em; overflow-x: hidden;
  background-color: var(--bg); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 24px 24px; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
.prose a, a.link, .call a, .muted a, .small a, .news a, p a { color: var(--link); text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 900; line-height: 1.45; letter-spacing: .04em; }
[lang='en'] { font-family: var(--en); letter-spacing: .01em; }
:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }
.muted { color: var(--ink2); } .small { font-size: 13.5px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 99; background: var(--card); padding: 6px 12px; }
/* マーカーは文字の下3割だけ・淡い黄色。黒板（濃い緑）の上では背景を塗らず、黄色の文字にする */
mark { background: linear-gradient(transparent 68%, var(--mark) 68%); color: inherit; padding: 0 1px; font-weight: 700; }
.hero mark, .page-head mark, .board mark, .notice-bar mark, .tbl th mark, .mpart h2 mark, .site-footer mark { background: none; color: var(--yellow); padding: 0; }

/* ボタン・タグ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 18px; border: 2.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-sm); transition: transform .1s, box-shadow .1s; line-height: 1.4; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--line); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn.pop { background: var(--yellow); color: #1d211f; }
.btn.ghost { background: transparent; }
.btn.sm { padding: 5px 12px; font-size: 13.5px; border-width: 2px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 9px; border: 2px solid var(--line); border-radius: 999px; background: var(--yellow2); line-height: 1.6; white-space: nowrap; }
.kicker { display: inline-block; font-weight: 700; font-size: 13.5px; padding: 3px 12px; border-radius: 999px; background: var(--yellow); color: #1d211f; border: 2px solid var(--line); margin-bottom: 10px; }

/* お知らせバー・ヘッダー */
.notice-bar { background: var(--board2); color: var(--chalk); font-size: 13.5px; }
.notice-bar a { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 6px 12px; text-decoration: none; flex-wrap: wrap; text-align: center; }
.notice-bar .tag { background: var(--yellow); color: #1d211f; border-color: var(--yellow); }
.notice-bar b { color: var(--yellow); font-size: 16px; }
.notice-bar .go { text-decoration: underline; color: var(--chalk2); }
.notice-bar .go-s { display: none; }
@media (max-width: 760px) { .notice-bar a { flex-wrap: nowrap; gap: 6px; white-space: nowrap; } .notice-bar .nb-date, .notice-bar .go-l { display: none; } .notice-bar .go-s { display: inline; } }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 2.5px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 12px; height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark { width: 40px; height: 40px; border-radius: 10px; background: var(--board); color: var(--yellow); display: grid; place-items: center; font-family: var(--head); font-weight: 900; font-size: 21px; border: 2.5px solid var(--line); box-shadow: var(--shadow-sm); flex-shrink: 0; }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-text small { font-size: 11px; color: var(--ink2); }
.logo-text strong { font-family: var(--head); font-weight: 900; font-size: 18px; white-space: nowrap; }
.logo-text em { font-style: normal; background: var(--yellow); color: #1d211f; padding: 0 4px; border-radius: 4px; }
.header-tools { display: flex; gap: 6px; margin-left: auto; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 2.5px solid var(--line); background: var(--card); padding: 0; box-shadow: var(--shadow-sm); }
.icon-btn svg { width: 18px; height: 18px; }
.burger { background: var(--yellow); color: #1d211f; gap: 4px; align-content: center; justify-items: center; }
.burger span { display: block; width: 17px; height: 2.5px; background: #1d211f; border-radius: 2px; }
.main-nav { border-top: 1.5px solid var(--soft); }
.main-nav .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.main-nav a { flex-shrink: 0; text-decoration: none; font-size: 14px; font-weight: 700; padding: 8px 11px; color: var(--ink2); border-bottom: 3px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--ink); }
.main-nav a.on { color: var(--ink); border-bottom-color: var(--yellow); }
@media (max-width: 560px) { .logo-text small { display: none; } .logo-text strong { font-size: 15.5px; } .icon-btn { width: 36px; height: 36px; } }
@media (max-width: 420px) { .logo-text strong .lt-tail { display: none; } .logo-mark { width: 36px; height: 36px; font-size: 19px; } }

/* ドロワー */
.drawer-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .35); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 80; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 92vw); background: var(--bg); border-left: 3px solid var(--line); transform: translateX(105%); transition: transform .25s; z-index: 90; overflow-y: auto; padding: 14px 18px 40px; }
body.menu-open .drawer { transform: none; } body.menu-open .drawer-bg { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; }
.drawer h3 { font-size: 13px; color: var(--ink2); margin: 18px 0 4px; }
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a { display: block; padding: 7px 4px; text-decoration: none; border-bottom: 1px dashed var(--soft); font-weight: 500; }
.search-wrap { margin-top: 12px; }
.search-wrap input { width: 100%; padding: 10px 14px; border: 2.5px solid var(--line); border-radius: 999px; font: inherit; background: var(--card); color: var(--ink); }
.search-results { list-style: none; padding: 0; margin: 6px 0 0; }
.search-results a { display: block; padding: 7px 6px; text-decoration: none; border-bottom: 1px dashed var(--soft); }
.search-results small { display: block; color: var(--ink2); font-size: 12px; }

.crumbs { font-size: 12.5px; color: var(--ink2); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0 0; margin: 0; }
.crumbs li + li::before { content: '›'; margin-right: 4px; }

/* 黒板のトップ */
.hero { background: var(--board); color: var(--chalk); border-bottom: 3px solid var(--line); position: relative; overflow: hidden;
  background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 6px 6px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 32px; align-items: center; padding: 44px 0 52px; }
.hero h1 { font-size: clamp(28px, 4.6vw, 50px); margin: 4px 0 14px; color: #fff; }
.hero .hl { color: var(--yellow); }
.hero-lead { color: var(--chalk2); font-size: 16.5px; max-width: 34em; }
.kicker.on-board { background: transparent; color: var(--yellow); border-color: var(--yellow); }
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.hero .btn.ghost { color: var(--chalk); border-color: var(--chalk); box-shadow: none; }
.cd-card { background: var(--card); color: var(--ink); border: 3px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 #0b1a14; padding: 20px 22px; }
.cd-label { margin: 0 0 6px; font-weight: 700; font-size: 14.5px; }
.cd-label small { color: var(--ink2); font-weight: 500; }
.cd-nums { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 8px; }
.cd-nums span { background: var(--board); color: var(--yellow); border-radius: 10px; text-align: center; padding: 6px 2px 2px; border: 2px solid var(--line); }
.cd-nums b { display: block; font-family: var(--head); font-size: clamp(26px, 4vw, 40px); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-nums i { font-style: normal; font-size: 12px; color: var(--chalk2); }
.cd-bar { height: 10px; border: 2px solid var(--line); border-radius: 99px; margin: 14px 0 8px; overflow: hidden; background: var(--bg2); }
.cd-bar span { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--yellow) 0 8px, #f2c200 8px 16px); width: 0; }
.cd-sub { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.cd-sub b { font-size: 18px; color: var(--r-col); }
.cd-note { font-size: 12px; color: var(--ink2); margin: 6px 0 0; line-height: 1.6; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; padding: 28px 0 34px; gap: 22px; } }

/* セクション */
.sec { padding: 34px 0 6px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sec-head h2 { margin: 0; font-size: clamp(22px, 3vw, 28px); }
.sec-head h2 small { font-size: 14px; color: var(--ink2); margin-left: 8px; }
.more { font-weight: 700; font-size: 14px; color: var(--link); }
.band { background: var(--bg2); border-block: 2.5px solid var(--line); margin-top: 34px; padding-bottom: 30px; }
.band-h { font-size: 22px; margin: 34px 0 12px; padding-left: 12px; border-left: 8px solid var(--yellow); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; transition: transform .1s; }
.tile:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--line); }
.tile b { font-family: var(--head); font-size: 17px; }
.tile small { color: var(--ink2); font-size: 13px; line-height: 1.6; }
/* 2026-11-03 原田さん「絵が小さくて見えない」→ 絵をカードの幅いっぱいに */
.tile { padding: 0 0 12px; overflow: hidden; }
.tile b, .tile small { padding-inline: 14px; }
.tile-ico { display: block; width: 100%; aspect-ratio: 3 / 2; height: auto; object-fit: cover; border-bottom: 2.5px solid var(--line); margin-bottom: 8px; transition: transform .25s; }
.tile:hover .tile-ico { transform: scale(1.04); }

/* 今日の練習 */
.daily { display: grid; gap: 14px; }
.d-theme { margin: 0; font-weight: 700; font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.d-card { background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; min-width: 0; }
.d-card h3 { margin: 0 0 8px; font-size: 18px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.d-card h3 small { font-size: 13px; color: var(--ink2); font-weight: 500; }
.d-card .lbl { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; font-family: var(--head); border: 2px solid var(--line); }
.d-r .lbl { background: var(--r-col); } .d-l .lbl { background: var(--l-col); }
.d-title { font-weight: 600; margin: 0 0 4px; }
.d-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 760px) { .d-two { grid-template-columns: 1fr; } }
.d-mind { background: var(--yellow2); } .d-todo { background: color-mix(in srgb, var(--ok) 10%, var(--card)); }
.words { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.words li { border: 2px solid var(--soft); border-radius: 10px; padding: 6px 10px; line-height: 1.6; }
.words b { font-size: 18px; } .words small { display: block; color: var(--ink2); font-size: 12.5px; }
.say { border: 2px solid var(--line); background: var(--yellow); border-radius: 999px; width: 26px; height: 26px; padding: 0; font-size: 13px; line-height: 1; vertical-align: 2px; color: #1d211f; }
.day-nav { display: flex; gap: 10px; align-items: center; justify-content: center; flex-wrap: wrap; margin: 6px 0 16px; }
.day-nav b { font-size: 18px; }
.streak { margin: 16px 0; padding: 10px 14px; border: 2.5px dashed var(--line); border-radius: 12px; text-align: center; }
.today-mini .daily { gap: 12px; }
.archive { list-style: none; padding: 0; display: grid; gap: 8px; }
.archive a { display: grid; grid-template-columns: 130px 1fr; gap: 2px 12px; padding: 10px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; text-decoration: none; }
.archive small { grid-column: 2; color: var(--ink2); }
@media (max-width: 560px) { .archive a { grid-template-columns: 1fr; } .archive small { grid-column: 1; } }

/* 今のフェーズ */
.phase-now { background: var(--card); color: var(--ink); border: 3px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 18px 20px; }
.phase-now.big { margin: 18px 0; }
.pn-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pn-head b { font-family: var(--head); font-size: 20px; }
.pn-head small { color: var(--ink2); width: 100%; }
.pn-cols, .ph-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .pn-cols, .ph-cols { grid-template-columns: 1fr; } }
.phase-now h4, .phases h4 { margin: 12px 0 6px; font-size: 15.5px; }
.goal { margin: 8px 0; }
.menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.menu li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px dashed var(--soft); }
.menu .min { background: var(--board); color: var(--yellow); border-radius: 10px; text-align: center; font-family: var(--head); font-weight: 900; font-size: 20px; line-height: 1.1; padding: 6px 0 4px; border: 2px solid var(--line); }
.menu .min small { display: block; font-size: 10.5px; color: var(--chalk2); }
.menu p { margin: 2px 0 0; font-size: 14px; color: var(--ink2); line-height: 1.7; }
.must, .ng { padding-left: 1.3em; margin: 0; } .ng li::marker { content: '✕ '; color: var(--ng); }
.phases { list-style: none; padding: 0; display: grid; gap: 16px; }
.phases > li { background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.phases > li.now { box-shadow: 0 0 0 4px var(--yellow), var(--shadow); }
.phases h3 { margin: 2px 0; } .ph-when { font-size: 13px; font-weight: 700; color: var(--ink2); }

/* ページの見出し */
/* 下の余白：中身（カード・ゲーム画面）が黒板の帯にくっつかないように（2026-11-06 原田さん「くっつきが気になる」） */
.page-head { background: var(--board); color: var(--chalk); border-bottom: 3px solid var(--line); margin-top: 10px; margin-bottom: 22px; }
.page-head + .layout, .page-head + .ai-wrap { padding-top: 0; }
.ph-grid { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; padding: 26px 0 28px; }
.page-head h1 { margin: 0 0 8px; font-size: clamp(25px, 3.8vw, 38px); color: #fff; }
.page-head .lead { margin: 0; color: var(--chalk2); max-width: 46em; }
.page-head .lead b { color: var(--yellow); }
.page-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; font-size: 13px; }
.ph-img { width: 200px; height: auto; border-radius: 16px; border: 3px solid var(--line); background: var(--chalk); }
@media (max-width: 700px) { .ph-grid { grid-template-columns: 1fr; } .ph-img { width: 130px; justify-self: end; margin-top: -10px; } }

/* 記事 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; padding: 20px 0 30px; align-items: start; }
.toc-side { position: sticky; top: 130px; background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 13.5px; max-height: calc(100vh - 150px); overflow-y: auto; }
.toc-side ol, .toc-inline ol { padding-left: 1.3em; margin: 6px 0 0; }
.toc-side a, .toc-inline a { text-decoration: none; color: var(--ink2); display: block; padding: 2px 0; }
.toc-inline { display: none; background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); padding: 10px 14px; margin-bottom: 14px; }
.toc-inline summary { font-weight: 700; cursor: pointer; }
@media (max-width: 980px) { .layout { grid-template-columns: 1fr; } .toc-side { display: none; } .toc-inline { display: block; } }
.prose { min-width: 0; }
.prose h2 { font-size: clamp(21px, 2.8vw, 26px); margin: 38px 0 12px; padding: 8px 14px; background: var(--card); border: 2.5px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.prose .sec-block:first-of-type h2 { margin-top: 6px; }
.prose h4 { margin: 18px 0 6px; font-size: 17px; }
.tips, .steps { padding: 0; margin: 12px 0; list-style: none; counter-reset: n; display: grid; gap: 8px; }
.tips li, .steps li { counter-increment: n; position: relative; padding: 10px 14px 10px 52px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.tips li::before, .steps li::before { content: counter(n); position: absolute; left: 10px; top: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); border: 2px solid var(--line); font-weight: 900; font-family: var(--head); color: #1d211f; }
.steps li::before { background: var(--board); color: var(--yellow); }
.tips b, .trap b { display: block; }
.trap { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 8px; }
.trap li { padding: 10px 14px 10px 44px; position: relative; border: 2px solid var(--ng); border-radius: 12px; background: color-mix(in srgb, var(--ng) 7%, var(--card)); }
.trap li::before { content: '罠'; position: absolute; left: 10px; top: 10px; background: var(--ng); color: #fff; font-weight: 900; font-size: 12px; border-radius: 6px; padding: 1px 5px; }
.ex { margin: 12px 0; padding: 12px 16px; background: var(--card); border: 2px solid var(--line); border-left-width: 8px; border-radius: 12px; }
.ex .en { margin: 0; font-size: 17px; } .ex .ja { margin: 4px 0 0; color: var(--ink2); font-size: 14.5px; }
.ex figcaption { margin-top: 6px; font-size: 14px; background: var(--yellow2); padding: 4px 10px; border-radius: 8px; }
.whybox { margin: 12px 0; padding: 10px 16px; border: 2px dashed var(--board); border-radius: 12px; background: color-mix(in srgb, var(--board) 6%, var(--card)); }
.whybox p { margin: 2px 0 0; }
.call { margin: 14px 0; padding: 12px 16px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--card); }
.call p { margin: 0; } .call.warn { background: color-mix(in srgb, var(--ng) 9%, var(--card)); } .call.ok { background: color-mix(in srgb, var(--ok) 10%, var(--card)); } .call.info { background: var(--yellow2); }
p.call { display: block; }
.tbl-wrap { overflow-x: auto; margin: 12px 0; border: 2.5px solid var(--line); border-radius: 12px; background: var(--card); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.7; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1.5px solid var(--soft); text-align: left; vertical-align: top; }
.tbl th { background: var(--board); color: var(--chalk); font-weight: 700; white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.faq { display: grid; gap: 8px; margin: 12px 0; }
.faq details { background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.faq summary { padding: 10px 14px; font-weight: 700; cursor: pointer; list-style: none; position: relative; padding-right: 40px; }
.faq summary::after { content: '+'; position: absolute; right: 14px; top: 8px; font-size: 20px; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 14px 12px; }
.faq .tag { margin-left: 8px; font-size: 11px; } .t-off { background: var(--board); color: var(--chalk); }
.checklist { list-style: none; padding: 0; display: grid; gap: 6px; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; background: var(--card); border: 2px solid var(--line); border-radius: 10px; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: 4px; accent-color: var(--board); flex-shrink: 0; }
.checklist small { display: block; color: var(--ink2); }
.linkcards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.linkcards a { display: block; height: 100%; padding: 10px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; text-decoration: none; box-shadow: var(--shadow-sm); }
.linkcards small { display: block; color: var(--ink2); font-size: 13px; line-height: 1.6; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 24px 0; }
.qnav, .ynav { display: flex; gap: 6px; flex-wrap: wrap; margin: 16px 0 4px; }
.qnav a, .ynav a { text-decoration: none; padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; font-size: 14px; }
.qnav a.hot { background: var(--yellow); color: #1d211f; }

/* 問題 */
.quizzes { display: grid; gap: 14px; margin: 12px 0; }
.quiz, .mq { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.d-card .quiz { border: 0; padding: 0; }
.passage { background: var(--bg2); border: 1.5px solid var(--soft); border-radius: 10px; padding: 10px 14px; margin-bottom: 8px; font-size: 16.5px; line-height: 1.8; }
.passage p { margin: 0 0 8px; } .passage p:last-child { margin: 0; }
.qq { font-weight: 700; margin: 4px 0 8px; }
.qq small { font-weight: 500; color: var(--ink2); margin-left: 6px; }
.qn { display: inline-block; background: var(--board); color: var(--yellow); border-radius: 6px; padding: 0 8px; margin-right: 8px; font-size: 13.5px; }
.pts { float: right; font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.choices { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.choices button { width: 100%; display: flex; gap: 10px; align-items: flex-start; text-align: left; padding: 8px 12px; border: 2px solid var(--soft); border-radius: 10px; background: var(--card); line-height: 1.6; position: relative; }
.choices button:hover:not(:disabled) { border-color: var(--line); }
.choices .no { font-weight: 900; flex-shrink: 0; }
.choices button.pick { border-color: var(--line); background: var(--yellow2); box-shadow: var(--shadow-sm); }
.choices.order button.pick::after { content: attr(data-ord); position: absolute; right: 8px; top: 6px; background: var(--board); color: var(--yellow); border-radius: 50%; width: 24px; height: 24px; display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.choices button.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--card)); }
.choices button.ng { border-color: var(--ng); background: color-mix(in srgb, var(--ng) 12%, var(--card)); }
.choices button:disabled { cursor: default; color: inherit; }
.why { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ng) 8%, var(--card)); border: 2px solid var(--ng); font-size: 15px; }
.why.ok, .is-ok .why { background: color-mix(in srgb, var(--ok) 9%, var(--card)); border-color: var(--ok); }
.why .res { font-size: 16px; }
.check-multi { margin-top: 8px; }
.listen, .demo { margin: 16px 0; padding: 14px 16px; background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.listen h4, .demo h4 { margin: 0 0 8px; }
.listen .quiz { border-width: 1.5px; margin-top: 10px; }
.player { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.player .play { background: var(--l-col); color: #fff; }
.player .play.on { background: var(--ng); }
.player .play.on .ic { font-size: 0; } .player .play.on .ic::before { content: '■'; font-size: 13px; }
.speed { display: inline-flex; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; }
.speed button { border: 0; background: var(--card); padding: 2px 9px; font-size: 13px; }
.speed button.on { background: var(--board); color: var(--yellow); }
.pstat { font-size: 13px; color: var(--ink2); }
.script { margin-top: 10px; }
.script summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--link); }
.script .lines { padding-left: 0; list-style: none; margin: 8px 0; }
.script .lines li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 3px 0; border-bottom: 1px dashed var(--soft); }
.script .sp { color: var(--ink2); }
.script .ja { color: var(--ink2); font-size: 14.5px; }
.demo .passage .mk { transition: background .3s; border-radius: 4px; }
.demo .passage .mk.on { background: var(--yellow); color: #1d211f; box-shadow: 0 0 0 2px var(--yellow); }
.demo-cap { font-size: 13px; color: var(--ink2); margin: 10px 0 4px; }
.dsteps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.dstep { width: 100%; text-align: left; display: flex; gap: 10px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 10px; background: var(--card); }
.dstep .n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--board); color: var(--yellow); display: grid; place-items: center; font-weight: 900; font-size: 13px; }
.dstep.on { background: var(--yellow2); }

/* 予想問題 */
.mocks { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 20px 0; }
.mock-card { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; border-top: 10px solid var(--r-col); }
.mock-card.k-L { border-top-color: var(--l-col); }
.mock-card b { font-family: var(--head); font-size: 18px; } .mock-card small { color: var(--ink2); } .mock-card p { margin: 0; font-size: 14px; }
.mock-bar { position: sticky; top: 100px; z-index: 20; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin: 16px 0; background: var(--card); border: 2.5px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); }
.m-time { font-family: var(--head); font-size: 26px; font-variant-numeric: tabular-nums; min-width: 80px; }
.m-time.warn { color: var(--ng); }
.mpart { margin: 26px 0; }
.mpart h2 { font-size: 24px; padding: 6px 14px; background: var(--board); color: var(--chalk); border-radius: 12px; border: 2.5px solid var(--line); }
.mpart h2 small { font-size: 14px; color: var(--yellow); margin-left: 10px; }
.mset { margin: 16px 0; } .mset h3 { font-size: 18px; } .intro { background: var(--bg2); padding: 8px 12px; border-radius: 10px; font-size: 14.5px; }
.materials { display: grid; gap: 12px; margin: 10px 0 14px; }
.materials > div { background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.materials .tbl-wrap { border-width: 2px; padding: 0; }
.m-title { font-weight: 700; margin: 0 0 6px; text-align: center; }
.m-text p { margin: 0 0 10px; } .m-chat p { margin: 0 0 8px; display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.m-chat b { background: var(--yellow2); border-radius: 8px; padding: 0 8px; height: fit-content; }
.mq { margin: 10px 0; } .mq.graded.is-ok { border-color: var(--ok); } .mq.graded.is-ng { border-color: var(--ng); }
.m-result { background: var(--yellow2); border: 3px solid var(--line); border-radius: 16px; padding: 16px 20px; margin: 24px 0; box-shadow: var(--shadow); }

/* 過去問・ダウンロード */
.kyear { margin: 30px 0; }
.kyear h2 { font-size: 24px; margin: 0 0 10px; } .kyear h2 small { font-size: 13px; color: var(--ink2); margin-left: 10px; font-weight: 500; }
.kexams { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 860px) { .kexams { grid-template-columns: 1fr; } }
.kexam { background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow-sm); min-width: 0; }
.kexam h3 { margin: 0 0 6px; font-size: 18px; } .kexam h3 small { font-size: 13px; color: var(--ink2); margin-left: 8px; font-weight: 500; }
.dl-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.dl-row .lbl { font-size: 12px; font-weight: 700; background: var(--board); color: var(--chalk); border-radius: 6px; padding: 1px 8px; }
.dlb { display: inline-flex; gap: 6px; align-items: center; padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 13.5px; font-weight: 700; background: var(--card); }
.dlb small { font-weight: 400; color: var(--ink2); font-size: 11.5px; }
.dlb.r { border-left: 8px solid var(--r-col); } .dlb.l { border-left: 8px solid var(--l-col); }
.dlb:hover { background: var(--yellow2); }
.toshin { background: var(--bg2); padding: 8px 10px; border-radius: 12px; }
.ana summary { cursor: pointer; font-weight: 700; color: var(--link); font-size: 14px; margin-top: 6px; }
.ana .tbl { font-size: 13px; }
.dl-table td, .dl-table th { white-space: nowrap; }
.pdfs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.pdf { display: flex; flex-direction: column; gap: 4px; padding: 10px; background: var(--card); border: 2.5px solid var(--line); border-radius: 12px; text-decoration: none; box-shadow: var(--shadow-sm); }
.pdf img { border: 1.5px solid var(--soft); border-radius: 6px; aspect-ratio: 210/297; object-fit: cover; object-position: top; }
.pdf small { color: var(--ink2); font-size: 12.5px; }

/* YouTube・テク・絞り込み */
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0; }
.filter button { padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; font-size: 14px; }
.filter button small { margin-left: 4px; color: var(--ink2); font-weight: 500; }
.filter button.on { background: var(--board); color: var(--yellow); } .filter button.on small { color: var(--chalk2); }
.yrow { position: relative; margin: 6px 0 4px; }
.yrow .yts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 250px); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; overscroll-behavior-x: contain; }
.yrow .yt { scroll-snap-align: start; }
.yt { display: flex; flex-direction: column; gap: 4px; background: var(--card); border: 2.5px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; padding-bottom: 10px; box-shadow: var(--shadow-sm); }
.yt img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 2px solid var(--line); background: #000; }
.yt > :not(img) { margin-inline: 12px; }
.yt b, .yt p { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; } .yt b { -webkit-line-clamp: 2; } .yt p { -webkit-line-clamp: 3; }
.yarrow { position: absolute; top: 34%; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--yellow); color: #1d211f; font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.yarrow.prev { left: -8px; } .yarrow.next { right: -8px; }
@media (hover: none), (max-width: 640px) { .yarrow { display: none; } }
.ytabs .yrow[hidden] { display: none; }
.ycap { margin-top: 0; }
.yt b { font-size: 14.5px; line-height: 1.5; } .yt small { color: var(--ink2); font-size: 12.5px; } .yt p { margin: 0 12px; font-size: 13px; line-height: 1.6; }
.techs { display: grid; gap: 10px; }
.tech { background: var(--card); border: 2.5px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm); }
.tech summary { padding: 12px 14px; cursor: pointer; list-style: none; display: grid; grid-template-columns: auto auto 1fr; gap: 4px 10px; align-items: center; }
.tech .tno { font-family: var(--head); font-weight: 900; color: var(--ink3); }
.tech .tcat { font-size: 12px; font-weight: 700; padding: 0 8px; border-radius: 6px; background: var(--board); color: var(--chalk); }
.tech .myth { grid-column: 1 / -1; color: var(--ink2); font-size: 14px; }
.tech > div { padding: 0 14px 12px; border-top: 2px dashed var(--soft); }
.truth { background: var(--yellow2); padding: 6px 10px; border-radius: 8px; }

/* NEWS */
.news { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.news li { display: grid; grid-template-columns: 120px 52px 1fr; gap: 10px; padding: 12px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; align-items: start; }
.news time { font-weight: 700; font-size: 14px; } .news .kind { font-size: 12px; font-weight: 700; text-align: center; border-radius: 6px; padding: 1px 0; background: var(--soft); }
.news .k-official .kind, .news li.k-official .kind { background: var(--board); color: var(--chalk); }
.news p { margin: 4px 0 0; font-size: 14.5px; } .news small { color: var(--ink2); }
@media (max-width: 640px) { .news li { grid-template-columns: auto 1fr; } .news li > div { grid-column: 1 / -1; } }

/* アプリ */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0 24px; }
.app { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.app b { font-family: var(--head); font-size: 17px; } .app b a { text-decoration: none; }
.app p { margin: 0; font-size: 14px; color: var(--ink2); line-height: 1.7; } .app .use { color: var(--ink); font-weight: 700; font-size: 13.5px; }
.app .use::before { content: '使いどころ：'; color: var(--ink2); font-weight: 500; }
.app .tag { width: fit-content; }
.app-btns { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
main.wide .crumbs { display: none; }
.embed-head { padding: 14px 0 6px; } .embed-head h1 { margin: 0; font-size: 24px; } .embed-head p { margin: 2px 0; }
.embed { width: min(1280px, 100% - 16px); margin: 0 auto 20px; border: 3px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.embed iframe { display: block; width: 100%; height: calc(100vh - 170px); min-height: 560px; border: 0; }

/* AIはらだくん */
.ai-banner { display: flex; gap: 18px; align-items: center; background: var(--card); border: 3px solid var(--line); border-radius: 18px; padding: 16px 20px; box-shadow: var(--shadow); }
.ai-face { width: 110px; border-radius: 50%; border: 3px solid var(--line); background: var(--yellow2); flex-shrink: 0; }
@media (max-width: 560px) { .ai-banner { flex-direction: column; text-align: center; } }
.ai-wrap { max-width: 860px; padding: 20px 0 40px; }
.ai-modes { display: flex; gap: 6px; flex-wrap: wrap; }
.ai-modes button { padding: 6px 14px; border: 2.5px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 700; }
.ai-modes button.on { background: var(--board); color: var(--yellow); }
.ai-opts { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0; font-size: 14px; }
.ai-opts select, .ai-opts input { font: inherit; padding: 4px 8px; border: 2px solid var(--line); border-radius: 8px; background: var(--card); color: var(--ink); }
.ai-log { margin: 14px 0; display: grid; gap: 10px; min-height: 160px; }
.msg { max-width: 92%; padding: 10px 14px; border: 2px solid var(--line); border-radius: 16px; line-height: 1.8; }
.msg p { margin: 0; } .msg.me { justify-self: end; background: var(--yellow2); border-bottom-right-radius: 4px; }
.msg.bot { background: var(--card); border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.msg.think { opacity: .7; } .msg.err { border-color: var(--ng); }
.msg .h { display: block; margin-top: 8px; font-family: var(--head); } .msg .li { display: block; padding-left: 1em; text-indent: -1em; } .msg .li::before { content: '・'; }
.ai-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; }
.ai-form textarea { font: inherit; padding: 10px 12px; border: 2.5px solid var(--line); border-radius: 14px; background: var(--card); color: var(--ink); resize: vertical; width: 100%; }
@media (max-width: 560px) { .ai-form { grid-template-columns: 1fr; } }
.ai-left { font-weight: 700; } .ai-left b { font-size: 20px; color: var(--r-col); }
.ai-pass { margin: 8px 0; } .ai-pass summary { cursor: pointer; font-weight: 700; }
.ai-pass form { display: flex; gap: 8px; margin-top: 8px; } .ai-pass input { font: inherit; padding: 6px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); }

/* フッター */
.site-footer { margin-top: 50px; background: var(--board); color: var(--chalk); border-top: 3px solid var(--line); padding: 30px 0 20px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-grid > :first-child { grid-column: 1 / -1; } }
.site-footer .brand { font-family: var(--head); font-weight: 900; font-size: 20px; color: var(--yellow); }
.site-footer h3 { font-size: 14px; color: var(--yellow); margin: 0 0 6px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; } .site-footer li a { text-decoration: none; color: var(--chalk2); line-height: 2; }
.site-footer .note { color: var(--chalk2); font-size: 13px; line-height: 1.8; } .site-footer .note a { color: var(--yellow); }
.copy { margin-top: 20px; font-size: 12.5px; color: var(--chalk2); } .copy a { color: var(--chalk2); }
.to-top { position: fixed; right: 16px; bottom: 16px; width: 46px; height: 46px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--yellow); color: #1d211f; box-shadow: var(--shadow-sm); opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 40; display: grid; place-items: center; padding: 0; }
.to-top.show { opacity: 1; pointer-events: auto; } .to-top svg { width: 20px; }
@media print { .site-header, .notice-bar, .site-footer, .to-top, .share, .toc-side, .mock-bar { display: none !important; } body { background: #fff; } }

/* 朝活受講者の扉 */
.door { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; max-width: 520px; margin: 18px 0 8px; padding: 18px; background: var(--card); border: 3px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.door label { font-weight: 800; width: 100%; }
.door input { flex: 1 1 200px; min-width: 0; font: inherit; padding: 8px 12px; border: 2.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.door-msg { width: 100%; margin: 0; min-height: 1.5em; font-size: 14px; color: var(--ink2); }
#secret-list .tech { padding: 12px 16px; }
#secret-list .tech h3 { margin: 4px 0; font-size: 17px; }
#secret-list .tech p { margin: 4px 0; }
.t-meta { display: flex; gap: 8px; align-items: center; margin: 0; }

/* レベル別 */
.levels { margin: 10px 0 30px; }
.lv { background: var(--card); border: 3px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); padding: 6px 20px 16px; margin-top: 10px; }
.lv h3 { margin: 12px 0 6px; }
.lv-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 760px) { .lv-cols { grid-template-columns: 1fr; } }
.lv-steps { padding-left: 1.2em; } .lv-steps b { display: inline-block; min-width: 6.5em; margin-right: 6px; }
.lv-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 760px) { .lv-pick { grid-template-columns: 1fr; } }
.lv-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: 3px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); }
.lv-card:hover, .lv-card.on { background: var(--yellow2); }
.lv-card .tag { width: fit-content; } .lv-card small { color: var(--ink2); font-size: 13px; }

/* 絵を選ぶ問題（本番と同じく絵だけ。説明は答え合わせのあと） */
.choices.pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choices.pics button { flex-direction: column; align-items: center; padding: 6px; background: #fff; }
.choices.pics img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 6px; }
.choices.pics .no { align-self: flex-start; }
.pic-desc { display: block; margin-top: 6px; font-size: 13px; color: var(--ink2); }

/* 今やること（ズバリ型） */
.zubari { background: var(--board); color: var(--chalk); border: 3px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 18px 14px; margin: 18px 0 8px; }
.zubari h2 { margin: 0 0 12px; color: #fff; font-size: clamp(21px, 5.4vw, 28px); line-height: 1.4; }
.zubari h2 em { font-style: normal; color: var(--yellow); }
.z3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; counter-reset: z; }
.z3 li { background: var(--card); color: var(--ink); border: 3px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 2px; counter-increment: z; }
.z3 li::before { content: counter(z); font-family: var(--head); font-weight: 900; color: var(--board); font-size: 14px; }
.z3 b { font-family: var(--head); font-size: 22px; }
.z3 span { font-weight: 900; font-size: 18px; background: var(--yellow); color: #1d211f; width: fit-content; padding: 0 8px; border-radius: 6px; }
.z3 small { color: var(--ink2); font-size: 13px; line-height: 1.6; }
.z-note { margin: 12px 0 6px; } .z-note b { color: var(--yellow); }
.z-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; }
@media (max-width: 640px) { .z3 { grid-template-columns: 1fr; } .z3 li { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; } .z3 small { width: 100%; } }
.fold { border: 2.5px solid var(--line); border-radius: 12px; background: var(--card); margin: 8px 0; }
.fold > summary { cursor: pointer; padding: 12px 14px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.fold > summary::after { content: '＋'; color: var(--ink2); } .fold[open] > summary::after { content: '－'; }
.fold > summary::-webkit-details-marker { display: none; }
.fold-body { padding: 0 16px 12px; }
.band-h small { font-size: 13px; font-weight: 400; color: var(--ink2); margin-left: 8px; }
.roadmap { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.roadmap details { border: 2.5px solid var(--line); border-radius: 12px; background: var(--card); }
.roadmap summary { cursor: pointer; padding: 10px 14px; list-style: none; display: flex; gap: 10px; align-items: baseline; }
.roadmap summary::-webkit-details-marker { display: none; }
.rm-when { font-size: 13px; color: var(--ink2); min-width: 5.5em; flex-shrink: 0; }
.roadmap li.now details { border-color: var(--board); box-shadow: 0 0 0 3px var(--yellow); }
.roadmap li.now summary b::after { content: ' ← いまここ'; color: var(--r-col); font-size: 13px; }
.phase-now.compact { background: var(--card); border: 3px solid var(--line); border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-sm); }
.pn-line { margin: 0 0 8px; display: flex; flex-direction: column; } .pn-line small { color: var(--ink2); font-size: 13px; }
.pn-chips { list-style: none; padding: 0; margin: 0 0 6px; display: flex; flex-wrap: wrap; gap: 8px; }
.pn-chips li { display: flex; gap: 6px; align-items: baseline; border: 2px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--bg); }
.pn-chips span { font-weight: 900; color: var(--board); }
.plan-page .lv-daily { background: var(--yellow2); border-radius: 8px; padding: 6px 10px; }

.lv-now { padding-left: 1.3em; margin: 4px 0 8px; } .lv-now li { font-weight: 800; margin: 2px 0; }
.lv .lv-who { font-size: 14px; color: var(--ink2); }
@media (max-width: 640px) {
  .roadmap summary { padding: 8px 12px; font-size: 14.5px; line-height: 1.5; }
  .rm-when { min-width: 4.6em; font-size: 12px; }
  .lv { padding: 4px 14px 12px; }
  .zubari { padding: 14px 14px 12px; }
  .z3 li { padding: 8px 12px; }
  .z3 b { font-size: 19px; } .z3 span { font-size: 16px; }
  .site-footer { padding: 20px 0 14px; }
  .site-footer .foot-grid { gap: 10px; }
  .site-footer .foot-grid > div:not(:first-child) { display: none; }
  .site-footer li a { line-height: 1.9; font-size: 13px; }
  .site-footer .note { font-size: 12px; }
}

.d-src { display: inline-block; margin: 0 0 6px; font-size: 12px; font-weight: 700; padding: 1px 8px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--yellow2); }

/* ゲーム一覧・単語集 */
.games, .w-ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.game-card { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: 3px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); text-decoration: none; color: var(--ink); }
.game-card:hover { background: var(--yellow2); }
.game-card b { font-family: var(--head); font-size: 19px; }
.game-card p { margin: 0; font-size: 14px; line-height: 1.7; }
.game-card small { color: var(--ink2); font-size: 12.5px; }
.game-card .tag, .w-rank .tag { width: fit-content; }
.w-rank { padding: 12px 16px; background: var(--card); border: 3px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-sm); }
.w-rank h3 { margin: 4px 0; display: flex; gap: 8px; align-items: center; }
.w-rank p { margin: 0 0 8px; font-size: 14px; }
.g-about { margin-top: 24px; }
.mini-more { display: block; text-align: center; margin-top: 14px; }
@media (max-width: 640px) { .tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .tile { padding: 0 0 10px; } .tile b, .tile small { padding-inline: 10px; } .tile b { font-size: 15px; } .tile small { font-size: 12px; line-height: 1.5; } }

/* 1日に使える時間のコース */
.mins-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0 14px; }
.mins-pick button { min-height: 58px; padding: 6px 4px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; box-shadow: var(--shadow-sm, 2px 2px 0 var(--line)); }
.mins-pick button b { font-family: var(--head); font-size: 18px; }
.mins-pick button small { font-size: 11px; color: var(--ink2); line-height: 1.3; text-align: center; }
.mins-pick button.on { background: var(--yellow); color: #1d1d1d; }
.mins-pick button.on small { color: #3a3a3a; }
.crs { display: none; }
html:not([data-mins]) .crs[data-c="20"], html[data-mins="10"] .crs[data-c="10"], html[data-mins="20"] .crs[data-c="20"], html[data-mins="30"] .crs[data-c="30"], html[data-mins="60"] .crs[data-c="60"] { display: block; }
html:not([data-mins]) span.crs[data-c="20"], html[data-mins="10"] span.crs[data-c="10"], html[data-mins="20"] span.crs[data-c="20"], html[data-mins="30"] span.crs[data-c="30"], html[data-mins="60"] span.crs[data-c="60"] { display: inline; }
.pn-hol { font-size: 13px; color: var(--ink2); margin: 4px 0 8px; }
@media (max-width: 380px) { .mins-pick { gap: 6px; } .mins-pick button b { font-size: 16px; } .mins-pick button small { font-size: 10px; } }

/* 今日の練習：5分版 / 全部 */
.d-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.d-mode button { min-height: 52px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font: inherit; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.d-mode button b { font-family: var(--head); font-size: 16px; }
.d-mode button small { font-size: 11px; color: var(--ink2); }
.d-mode button.on { background: var(--yellow); color: #1d1d1d; }
.d-mode button.on small { color: #3a3a3a; }
.d-shortend { display: none; }
.daily.short .d-more { display: none; }
.daily.short .d-shortend { display: block; padding: 12px 14px; border: 2.5px dashed var(--line); border-radius: 12px; background: var(--card); line-height: 1.8; }
.daily.short .d-shortend .btn { display: block; width: 100%; margin-top: 8px; text-align: center; }
.today-mini .d-mode, .today-mini .d-shortend { display: none !important; }

/* ===== 2026-11-03 高校生向けに楽しく：トップの絵・ステッカー・あそぶ・勉強アイテム ===== */
.hero-side { position: relative; }
.hero-pic { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 70% 30%; border: 3px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 #0b1a14; transform: rotate(1.5deg); }
.hero-side .cd-card { position: relative; margin: -46px 0 0 18px; }
.stickers { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.stickers li { font-family: var(--head); font-weight: 900; font-size: 13.5px; line-height: 1.3; padding: 5px 12px; border: 2.5px solid var(--line); border-radius: 999px; background: var(--yellow); color: #1d211f; box-shadow: 2px 2px 0 #0b1a14; transform: rotate(-2deg); }
.stickers li:nth-child(2n) { background: #fff; transform: rotate(2deg); }
.stickers li:nth-child(3n) { background: #ffb3c7; }
@media (max-width: 860px) { .hero-pic { aspect-ratio: 2 / 1; transform: rotate(-1deg); } .hero-side .cd-card { margin: -30px 6px 0; } }

.pop-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.pop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 18px 0; }
.pop-card { position: relative; display: flex; flex-direction: column; gap: 4px; min-height: 150px; padding: 14px 16px 16px; border: 2.5px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); color: #fff; text-decoration: none; scroll-snap-align: start; overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .28) 0 18%, transparent 19%), radial-gradient(circle at 10% 110%, rgba(255, 255, 255, .18) 0 25%, transparent 26%), linear-gradient(135deg, var(--c1), var(--c2)); transition: transform .12s; }
.pop-card:hover { transform: translate(-2px, -2px) rotate(-.6deg); box-shadow: 6px 6px 0 var(--line); }
.pc-en { font-family: var(--head); font-weight: 900; font-size: 12px; letter-spacing: .16em; color: var(--yellow); }
.pop-card b { font-family: var(--head); font-size: 19px; line-height: 1.35; }
.pop-card small { font-size: 13px; line-height: 1.6; opacity: .92; }
.pc-from { margin-top: auto; padding-top: 6px; font-size: 11.5px; font-weight: 700; opacity: .85; }
.teen-feed { margin: 10px 0 4px; padding: 14px 16px; background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.teen-feed h3 { margin: 0 0 8px; font-size: 17px; } .teen-feed h3 small { margin-left: 8px; font-size: 12px; font-weight: 500; color: var(--ink2); }
.teen-feed ul { list-style: none; padding: 0; margin: 0 0 6px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.teen-feed li a { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; text-decoration: none; }
.teen-feed img { width: 96px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 10px; border: 2px solid var(--line); }
.teen-feed .tf-k { display: inline-block; font-size: 11px; font-weight: 700; color: #fff; background: var(--tc, var(--board)); border-radius: 999px; padding: 0 8px; margin-right: 6px; }
.teen-feed .tf-t { display: block; font-weight: 700; font-size: 14px; line-height: 1.55; }
.teen-feed .tf-h { display: block; font-size: 12.5px; color: var(--ink2); line-height: 1.5; }
.play-how .tips-s { list-style: none; padding: 0; display: grid; gap: 8px; }
.play-how .tips-s li { padding: 10px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 12px; }
.play-how .tips-s b { display: block; font-family: var(--head); }

.items { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 0 0 18px; }
.item { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--card); border: 2.5px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.item .tag { width: fit-content; }
.item b { font-family: var(--head); font-size: 17.5px; }
.item p { margin: 0; font-size: 14px; line-height: 1.75; }
.item .it-tip { color: var(--ink2); font-size: 13px; } .item .it-tip b { font-size: 13px; color: var(--ink); }
.it-lv { color: var(--ok); font-weight: 700; font-size: 12.5px; }
.item .app-btns { margin-top: auto; padding-top: 8px; }
@media (max-width: 640px) { .pop-row { grid-auto-columns: 74%; } .pop-card { min-height: 136px; } .pop-card b { font-size: 17px; } .teen-feed li a { grid-template-columns: 84px 1fr; } .teen-feed img { width: 84px; } }


/* =========================================================
   2026-11-06 とっつきやすく・毎日来たくなる（原田さん）
   下のタブ・3ステップ・おかえりカード・ミッション・おみくじ・マイページ・XPの演出・満点ロードマップ（印刷・PDF）
   ========================================================= */

/* スマホの下のタブ（アプリのように） */
.tabbar { display: none; }
@media (max-width: 760px) {
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--card); border-top: 2.5px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0 2px; text-decoration: none; color: var(--ink2); font-size: 11px; font-weight: 700; border-radius: 10px; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--ink); background: var(--yellow2); }
  .tabbar a.dot::after { content: ''; position: absolute; top: 3px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--r-col); border: 2px solid var(--card); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .to-top { bottom: calc(76px + env(safe-area-inset-bottom)); }
  .main-nav { display: none; }
}

/* ===== トップ（2026-11-06 作り直し）=====
   1画面目＝「4分診断をはじめる」だけ。教室で「4分診断やって」と言われた高2が、開いた瞬間に押せるように。
   2回目からは（.ky-ret）診断の代わりに「おかえり」ダッシュボード。 */
.hx { background: var(--board); color: var(--chalk); border-bottom: 3px solid var(--line); background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 14px 14px; }
.hx-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; align-items: center; padding: 40px 0 44px; }
.hx-count { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--chalk2); }
.hx-count b { color: var(--yellow); font-size: 20px; margin: 0 2px; }
.hx h1 { margin: 0 0 18px; color: #fff; font-size: clamp(27px, 4.2vw, 46px); line-height: 1.35; }
.hx h1 .hl { color: var(--yellow); }
.hx-start { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 54px 14px 16px; border: 3px solid var(--line); border-radius: 20px; background: var(--yellow); color: #1d211f; text-decoration: none; box-shadow: 5px 5px 0 #0b1a14; transition: transform .1s, box-shadow .1s; animation: hx-glow 2.2s ease-in-out infinite; }
.hx-start:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #0b1a14; }
.hx-start:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #0b1a14; }
.hx-start .hx-k { grid-row: 1 / 3; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--board); color: var(--yellow); border: 2.5px solid var(--line); font-family: var(--head); font-weight: 900; font-size: 12px; letter-spacing: .06em; }
.hx-start b { font-family: var(--head); font-weight: 900; font-size: clamp(22px, 3vw, 28px); line-height: 1.25; letter-spacing: .02em; }
.hx-start small { font-size: 13.5px; font-weight: 700; color: #4a4210; line-height: 1.4; }
.hx-arrow { position: absolute; right: 16px; top: 50%; width: 28px; height: 28px; margin-top: -14px; }
.hx-start.done { background: #c9f0d6; animation: none; }
@keyframes hx-glow { 50% { box-shadow: 5px 5px 0 #0b1a14, 0 0 0 7px rgba(255, 216, 74, .28); } }
.hx-get { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hx-get li { display: flex; flex-direction: column; padding: 7px 10px; border: 2px solid rgba(255,255,255,.22); border-radius: 12px; line-height: 1.35; }
.hx-get b { font-size: 14px; color: #fff; } .hx-get small { font-size: 11.5px; color: var(--chalk2); }
.hx-pic { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border: 3px solid var(--line); border-radius: 18px; box-shadow: 6px 6px 0 #0b1a14; transform: rotate(1.2deg); }
@media (max-width: 860px) {
  .hx-grid { grid-template-columns: 1fr; gap: 18px; padding: 18px 0 22px; }
  .hx h1 { font-size: 25px; margin-bottom: 14px; }
  .hx-pic { aspect-ratio: 16 / 7; transform: none; box-shadow: 4px 4px 0 #0b1a14; }
}
@media (max-width: 400px) { .hx-get li { padding: 6px 7px; } .hx-get b { font-size: 12.5px; } .hx-get small { font-size: 10.5px; } }

/* 2回目から：黒板はダッシュボードにする */
.ky-ret .hx { display: none; }
.dash-sec:has(#home-me:empty) { display: none; }
.ky-ret .dash-sec { background: var(--board); border-bottom: 3px solid var(--line); padding: 16px 0 20px; }
.dash { display: grid; gap: 12px; max-width: 760px; margin-inline: auto; }
.dash-hi { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--chalk); }
.dash-who { margin: 0; font-family: var(--head); font-weight: 900; font-size: 20px; color: #fff; line-height: 1.3; }
.dash-who b { display: inline-block; margin: 0 6px; padding: 0 10px; border-radius: 999px; background: var(--yellow); color: #1d211f; font-size: 15px; border: 2px solid var(--line); }
.dash-who span { font-size: 13px; color: var(--chalk2); font-weight: 700; }
.dash-cd { margin: 0; text-align: right; font-size: 12.5px; font-weight: 700; color: var(--chalk2); line-height: 1.2; white-space: nowrap; }
.dash-cd b { display: block; font-family: var(--head); font-size: 28px; color: var(--yellow); }
.dash .me-card { box-shadow: none; border-color: rgba(255,255,255,.18); background: #173a2f; }
.dash .home-mis { background: var(--card); border: 3px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.dash .wc-links .btn { background: transparent; color: var(--chalk); border-color: rgba(255,255,255,.5); box-shadow: none; }
.dash .wc-links .btn:first-child { background: var(--yellow); color: #1d211f; border-color: var(--line); }

/* 満点までの7ステージ */
.sec-lead { margin: -6px 0 12px; color: var(--ink2); font-size: 15px; }
.sec-lead b { color: var(--ink); }
.road { list-style: none; padding: 6px 2px 10px; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; position: relative; }
.road li { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 10px 10px 12px; border: 2.5px solid var(--line); border-radius: 14px; background: var(--card); line-height: 1.35; }
.road li::after { content: ''; position: absolute; top: 50%; right: -10px; width: 10px; height: 3px; background: var(--line); }
.road li:last-child::after { display: none; }
.road .rd-no { font-size: 11px; font-weight: 800; letter-spacing: .05em; color: var(--ink3); }
.road b { font-family: var(--head); font-size: 15px; }
.road small { font-size: 12px; color: var(--ink2); }
.road li.done { background: var(--bg2); opacity: .7; }
.road li.now { background: var(--yellow); color: #1d211f; box-shadow: var(--shadow-sm); transform: translateY(-3px); }
.road li.now .rd-no, .road li.now small { color: #4a4210; }
.road li:last-child { background: var(--board); color: #fff; }
.road li:last-child .rd-no, .road li:last-child small { color: var(--chalk2); }
.road em { position: absolute; top: -12px; right: 8px; font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; background: var(--r-col); color: #fff; border: 2px solid var(--line); }
.road-now { margin-top: 10px; padding: 12px 14px; border: 2.5px dashed var(--line); border-radius: 14px; background: var(--card); }
.road-now p { margin: 0; }
.rn-k { font-size: 12px; font-weight: 800; letter-spacing: .05em; color: var(--ink3); }
.rn-x { font-weight: 700; line-height: 1.7; }
.rn-boss { margin-top: 6px !important; font-size: 14px; color: var(--ink2); line-height: 1.6; }
.rn-boss span { display: inline-block; margin-right: 8px; padding: 0 8px; border-radius: 6px; background: var(--ink); color: var(--bg); font-size: 12px; font-weight: 800; }
@media (max-width: 860px) {
  .road { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 14px 2px 10px; scrollbar-width: thin; }
  .road li { flex: 0 0 132px; scroll-snap-align: start; }
}

/* 毎日やること */
.daily3 { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.daily3 a { position: relative; display: grid; grid-template-columns: 1fr; gap: 2px; height: 100%; padding: 0 0 12px; border: 3px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); text-decoration: none; overflow: hidden; transition: transform .1s, box-shadow .1s; }
.daily3 a:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--line); }
.d3-ico { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 2.5px solid var(--line); margin-bottom: 6px; }
.d3-n { position: absolute; top: 8px; left: 8px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--yellow); color: #1d211f; border: 2.5px solid var(--line); font-family: var(--head); font-weight: 900; font-size: 17px; }
.daily3 b { padding: 0 14px; font-family: var(--head); font-size: 19px; line-height: 1.35; }
.daily3 small { padding: 0 14px; font-size: 13px; color: var(--ink2); line-height: 1.5; }
.daily-sub { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; align-items: start; margin-top: 12px; }
.daily-sub .nextq { margin: 0; }
@media (max-width: 760px) {
  .daily3 { grid-template-columns: 1fr; gap: 10px; }
  .daily3 a { grid-template-columns: 96px 1fr; grid-template-rows: auto auto; column-gap: 12px; padding: 0; align-items: center; }
  .d3-ico { grid-row: 1 / 3; height: 100%; min-height: 76px; aspect-ratio: auto; border-bottom: 0; border-right: 2.5px solid var(--line); margin: 0; }
  .daily3 b { padding: 10px 10px 0 0; font-size: 18px; align-self: end; }
  .daily3 small { padding: 0 10px 10px 0; align-self: start; }
  .d3-n { width: 28px; height: 28px; font-size: 15px; top: 6px; left: 6px; }
  .daily-sub { grid-template-columns: 1fr; }
}

/* 道具箱 */
.more-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.toolbox { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.toolbox a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; text-align: center; }
.tb-ico { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border: 2.5px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .1s; }
.toolbox a:hover .tb-ico { transform: translateY(-2px) rotate(-2deg); }
.toolbox b { font-size: 13.5px; line-height: 1.3; }
@media (max-width: 760px) { .toolbox { grid-template-columns: repeat(4, 1fr); gap: 10px 8px; } .tb-ico { border-radius: 14px; } .toolbox b { font-size: 12px; } }

/* このサイトの約束 */
.promise { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.promise li { display: flex; flex-direction: column; padding: 10px 12px; border-left: 5px solid var(--board); background: var(--card); border-radius: 0 12px 12px 0; line-height: 1.45; }
.promise b { font-size: 14.5px; } .promise small { font-size: 12.5px; color: var(--ink2); }
@media (max-width: 760px) { .promise { grid-template-columns: 1fr 1fr; gap: 8px; } }

@media (prefers-reduced-motion: reduce) { .hx-start { animation: none; } }


/* おかえりカード・レベル */
.welcome { display: grid; gap: 10px; }
.wc-hi { margin: 0; font-family: var(--head); font-weight: 900; font-size: 20px; }
.wc-hi span { font-size: 13px; font-weight: 700; color: var(--ink2); margin-left: 6px; }
.wc-links { display: flex; gap: 8px; flex-wrap: wrap; }
.me-card { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; background: var(--board); color: var(--chalk); border: 3px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; }
.me-lv { width: 62px; height: 62px; border-radius: 16px; background: var(--yellow); color: #1d211f; border: 2.5px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.me-lv small { font-size: 11px; font-weight: 800; } .me-lv b { font-family: var(--head); font-size: 30px; }
.me-title { margin: 0; font-family: var(--head); font-weight: 900; font-size: 18px; color: var(--yellow); line-height: 1.3; }
.me-xp { height: 12px; border: 2px solid var(--line); border-radius: 99px; background: #0e2a20; overflow: hidden; margin: 4px 0 2px; }
.me-xp i { display: block; height: 100%; background: repeating-linear-gradient(45deg, var(--yellow) 0 8px, #f2c200 8px 16px); transition: width .6s ease-out; }
.me-sub { margin: 0; font-size: 12px; color: var(--chalk2); line-height: 1.5; }
.me-streak { display: flex; flex-direction: column; align-items: center; line-height: 1.1; min-width: 52px; }
.me-streak svg { width: 26px; height: 26px; fill: #6b7a72; }
.me-streak.on svg { fill: #ff8a3d; animation: me-flame 1.4s ease-in-out infinite; }
.me-streak b { font-family: var(--head); font-size: 24px; color: #fff; } .me-streak small { font-size: 10.5px; color: var(--chalk2); }
@keyframes me-flame { 50% { transform: scale(1.12) rotate(-4deg); } }

/* 今日のミッション */
.mis { background: var(--card); border: 3px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 12px 14px; position: relative; }
.mis-head { display: flex; align-items: center; gap: 10px; }
.mis-head b { font-family: var(--head); font-size: 18px; }
.mis-count { font-family: var(--head); font-weight: 900; font-size: 15px; background: var(--yellow2); border: 2px solid var(--line); border-radius: 99px; padding: 0 10px; }
.mis-stamp { margin-left: auto; font-family: var(--head); font-weight: 900; letter-spacing: .08em; font-size: 13px; color: var(--ng); border: 3px solid var(--ng); border-radius: 8px; padding: 0 8px; transform: rotate(-8deg); }
.mis-bar { height: 10px; border: 2px solid var(--line); border-radius: 99px; background: var(--bg2); overflow: hidden; margin: 8px 0; }
.mis-bar i { display: block; height: 100%; background: var(--ok); transition: width .4s; }
.mis-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.mis-list label { display: grid; grid-template-columns: 30px 1fr; gap: 8px; align-items: start; cursor: pointer; padding: 6px 8px; border-radius: 10px; border: 2px solid var(--soft); }
.mis-list li.done label { background: color-mix(in srgb, var(--ok) 12%, var(--card)); border-color: var(--ok); }
.mis-list li.bonus label { border-style: dashed; }
.mis-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.mis-box { width: 26px; height: 26px; border: 2.5px solid var(--line); border-radius: 8px; background: var(--card); display: grid; place-items: center; margin-top: 2px; }
.mis-list li.done .mis-box { background: var(--ok); border-color: var(--ok); }
.mis-list li.done .mis-box::after { content: ''; width: 8px; height: 14px; border: solid #fff; border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -2px); }
.mis-list input:focus-visible + .mis-box { outline: 3px solid var(--link); outline-offset: 2px; }
.mis-t { display: flex; flex-direction: column; line-height: 1.5; }
.mis-t b { font-size: 15px; } .mis-t b small { font-weight: 700; color: var(--ink2); }
.mis-t small, .mis-t a { font-size: 12.5px; color: var(--ink2); } .mis-t a { color: var(--link); font-weight: 700; }
.mis-list li.done .mis-t b { text-decoration: line-through; text-decoration-thickness: 2px; }
.mis-note { margin: 8px 0 0; font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.mis.full { border-color: var(--ok); }

/* 次の問題まで */
.nextq:empty { display: none; }
.nextq { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; justify-content: center; margin: 10px 0; padding: 8px 12px; border: 2.5px dashed var(--line); border-radius: 12px; background: var(--card); }
.nextq small { font-weight: 700; color: var(--ink2); }
.nextq b { font-family: var(--head); font-size: 22px; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.nextq span { font-size: 13px; } .nextq em { font-style: normal; font-weight: 800; color: var(--l-col); }
.center-note { text-align: center; color: var(--ink2); }

/* 今日の英語おみくじ */
.omikuji:empty { display: none; }
.omikuji { background: var(--card); border: 3px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px; }
.omi-pre { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.omi-pre b { font-family: var(--head); font-size: 18px; display: block; line-height: 1.3; }
.omi-pre small { color: var(--ink2); font-size: 12.5px; }
.omi-can { width: 50px; height: 64px; border: 3px solid var(--line); border-radius: 10px 10px 14px 14px; background: linear-gradient(#c8423b 0 30%, #fff 30%); display: grid; place-items: end center; padding-bottom: 8px; font-family: var(--head); font-weight: 900; font-size: 20px; color: #c8423b; box-shadow: var(--shadow-sm); }
.omikuji.shake .omi-can { animation: omi-shake .7s; }
@keyframes omi-shake { 10%, 50%, 90% { transform: rotate(-14deg); } 30%, 70% { transform: rotate(14deg); } }
.omikuji.reveal .omi-res { animation: omi-in .5s ease-out; }
@keyframes omi-in { from { transform: scale(.8); opacity: 0; } }
.omi-res { display: grid; gap: 8px; }
.omi-rank { display: flex; align-items: center; gap: 12px; }
.omi-rank small { font-weight: 700; color: var(--ink2); }
.omi-rank b { font-family: var(--head); font-weight: 900; font-size: 40px; line-height: 1; padding: 6px 16px; border: 3px solid var(--line); border-radius: 14px; background: var(--yellow); color: #1d211f; box-shadow: var(--shadow-sm); }
.omi-top .omi-rank b { background: #ff6b6b; color: #fff; }
.omi-kyo .omi-rank b { background: #5b5b6b; color: #fff; }
.omi-x { margin: 0; font-weight: 700; }
.omi-line { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--board); color: var(--chalk); display: flex; flex-direction: column; }
.omi-line span { font-size: 18px; color: #fff; line-height: 1.5; } .omi-line small { color: var(--chalk2); font-size: 13px; }
.omi-lucky { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.omi-lucky > div { border: 2px solid var(--line); border-radius: 10px; padding: 6px 8px; background: var(--bg); }
.omi-lucky dt { font-size: 11.5px; font-weight: 800; color: var(--ink2); }
.omi-lucky dd { margin: 0; line-height: 1.5; } .omi-lucky dd small { display: block; font-size: 12px; color: var(--ink2); }
.omi-lucky .say { font: inherit; font-size: 13px; border: 2px solid var(--line); border-radius: 99px; background: var(--yellow); padding: 0 8px; }
@media (max-width: 560px) { .omi-lucky { grid-template-columns: 1fr; } .omi-lucky > div { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; } }

/* マイページ */
.my { display: grid; gap: 14px; }
.my-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.my-sec { min-width: 0; }
.my-sec.wide { grid-column: 1 / -1; }
.my-sec > h2 { font-size: 19px; margin: 0 0 8px; }
.my-sec:nth-child(n+3) { background: var(--card); border: 3px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-sm); padding: 12px 14px; }
@media (max-width: 760px) { .my-grid { grid-template-columns: 1fr; } }
.cal-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.cal-head b { font-family: var(--head); } .cal-head small { color: var(--ink2); margin-right: auto; }
.cal-head .btn.sm { padding: 0 10px; font-size: 16px; }
.cal-w, .cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-w b { font-size: 11px; color: var(--ink2); }
.cal i { font-style: normal; aspect-ratio: 1; display: grid; place-items: center; border-radius: 8px; font-size: 12px; font-weight: 700; background: var(--bg2); color: var(--ink3); }
.cal i.pad { background: none; }
.cal i.c1 { background: var(--yellow2); color: var(--ink); }
.cal i.c2 { background: #8fd3a8; color: #123; }
.cal i.c3 { background: var(--ok); color: #fff; }
.cal i em { font-style: normal; font-family: var(--head); font-size: 13px; }
.cal i.today { outline: 3px solid var(--line); }
.cal-key { font-size: 11.5px; color: var(--ink2); margin: 6px 0 0; display: flex; gap: 4px 10px; flex-wrap: wrap; align-items: center; }
.cal-key i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; } .cal-key .c1 { background: var(--yellow2); } .cal-key .c2 { background: #8fd3a8; } .cal-key .c3 { background: var(--ok); }
.badges { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.badges li { border: 2.5px solid var(--soft); border-radius: 14px; padding: 8px 10px; display: grid; grid-template-columns: 36px 1fr; column-gap: 8px; align-items: center; background: var(--bg); }
.badges li.got { border-color: var(--line); background: var(--card); box-shadow: var(--shadow-sm); }
.bd-medal { grid-row: 1 / 3; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--bg2); color: var(--ink3); border: 2px solid var(--soft); }
.badges li.got .bd-medal { background: radial-gradient(circle at 35% 30%, #fff3b0, #f2c200 60%, #c99700); color: #7a5a00; border-color: var(--line); }
.badges b { font-size: 13.5px; line-height: 1.3; } .badges small { font-size: 11px; color: var(--ink2); line-height: 1.4; }
.xp-how { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; font-size: 14px; }
.xp-how b { display: inline-block; min-width: 4.4em; color: var(--ok); font-family: var(--head); }
.my-data { width: 100%; font: 12px/1.4 monospace; border: 2px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); padding: 6px; }

/* XP の演出 */
.xp-toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 95; display: flex; flex-direction: column-reverse; gap: 6px; align-items: center; pointer-events: none; }
@media (min-width: 761px) { .xp-toasts { bottom: 24px; } }
.xp-toast { display: flex; gap: 8px; align-items: baseline; background: var(--board); color: var(--chalk); border: 2.5px solid var(--line); border-radius: 99px; padding: 6px 16px; box-shadow: var(--shadow-sm); animation: xp-in .3s ease-out; transition: opacity .4s, transform .4s; }
.xp-toast b { color: var(--yellow); font-family: var(--head); font-size: 17px; } .xp-toast small { font-size: 12.5px; }
.xp-toast.badge { background: var(--yellow); color: #1d211f; } .xp-toast.badge b { color: #1d211f; }
.xp-toast.out { opacity: 0; transform: translateY(10px); }
@keyframes xp-in { from { transform: translateY(16px) scale(.9); opacity: 0; } }
.lvup { position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, .55); display: grid; place-items: center; animation: xp-in .3s; }
.lvup-card { background: var(--board); color: var(--chalk); border: 4px solid var(--yellow); border-radius: 22px; padding: 22px 30px; text-align: center; box-shadow: 0 0 0 6px var(--line), 0 0 40px rgba(255, 216, 74, .5); animation: lv-pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.lvup-k { margin: 0; letter-spacing: .3em; font-weight: 900; color: var(--yellow); font-size: 14px; }
.lvup-n { margin: 0; font-family: var(--head); font-weight: 900; font-size: 56px; line-height: 1.1; color: #fff; }
.lvup-t { margin: 0 0 12px; font-family: var(--head); font-weight: 900; font-size: 20px; color: var(--yellow); }
@keyframes lv-pop { from { transform: scale(.3) rotate(-8deg); } }
.stamp-pop { position: fixed; left: 50%; top: 40%; z-index: 100; transform: translate(-50%, -50%) rotate(-10deg); text-align: center; pointer-events: none; animation: stamp-in .5s cubic-bezier(.2, 1.5, .4, 1), stamp-out .4s 2s forwards; }
.stamp-pop span { display: block; font-family: var(--head); font-weight: 900; font-size: 44px; letter-spacing: .08em; color: var(--ng); border: 6px solid var(--ng); border-radius: 14px; padding: 2px 18px; background: rgba(255, 255, 255, .92); }
.stamp-pop small { display: inline-block; margin-top: 6px; font-weight: 800; background: var(--card); color: var(--ink); border: 2px solid var(--line); border-radius: 99px; padding: 2px 12px; }
@keyframes stamp-in { from { transform: translate(-50%, -50%) rotate(-10deg) scale(2.4); opacity: 0; } }
@keyframes stamp-out { to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .me-streak.on svg, .omikuji.shake .omi-can, .lvup-card, .stamp-pop, .xp-toast { animation: none; } }

/* 計画ページ → ロードマップへの案内 */
.rm-banner { display: grid; gap: 2px; margin: 10px 0 4px; padding: 12px 16px; border: 3px solid var(--line); border-radius: 16px; background: var(--yellow); color: #1d211f; text-decoration: none; box-shadow: var(--shadow); }
.rm-banner b { font-family: var(--head); font-size: 18px; } .rm-banner span { font-size: 13.5px; line-height: 1.6; } .rm-banner em { font-style: normal; font-weight: 900; }

/* =========== 満点ロードマップ =========== */
.roadmap-root { max-width: 860px; margin: 0 auto; }
.rm-intro { background: var(--card); border: 3px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; text-align: center; }
.rm-intro h2 { margin: 6px 0; }
.rm-badge, .rm-kicker { display: inline-block; margin: 0; font-family: var(--head); font-weight: 900; letter-spacing: .14em; font-size: 12px; padding: 2px 12px; border-radius: 999px; background: var(--board); color: var(--yellow); }
.btn.rm-big { font-size: 18px; padding: 12px 24px; margin: 8px 0; }
.rm-samples { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.rm-tools { background: var(--card); border: 3px solid var(--line); border-radius: 16px; padding: 12px 14px; margin: 0 0 14px; box-shadow: var(--shadow-sm); display: grid; gap: 8px; }
.rm-tool-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rm-tool-row .btn.pop { font-size: 16px; padding: 10px 20px; }
.rm-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; font-weight: 700; }
.rm-name input { font: inherit; padding: 4px 12px; border: 2px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); width: 12em; }
.rm-name small { font-weight: 400; color: var(--ink2); font-size: 12px; }
.rm-howpdf summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: var(--link); }
.rm-howpdf ul { margin: 6px 0 0; padding-left: 1.2em; font-size: 13.5px; line-height: 1.7; }
.rm-sample { margin: 0; padding: 6px 10px; border-radius: 10px; background: var(--yellow2); font-size: 14px; font-weight: 700; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rm-doc { display: grid; gap: 16px; }
.rm-sec { background: var(--card); border: 3px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.rm-h { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-size: clamp(19px, 2.6vw, 23px); }
.rm-h span { flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--board); color: var(--yellow); font-size: 17px; border: 2px solid var(--line); }
.rm-small { font-size: 12.5px; color: var(--ink2); line-height: 1.7; margin: 8px 0 0; }
.rm-sec h4 { font-size: 15.5px; margin: 12px 0 6px; }
/* 表紙 */
.rm-cover { background: var(--board); color: var(--chalk); text-align: center; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 6px 6px; }
.rm-cover h2 { margin: 8px 0 0; color: #fff; font-size: clamp(22px, 4.4vw, 34px); line-height: 1.35; }
.rm-who { color: var(--yellow); }
.rm-made { margin: 2px 0 10px; font-size: 12.5px; color: var(--chalk2); }
.rm-id { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.rm-lv, .rm-type { display: flex; flex-direction: column; align-items: center; justify-content: center; border: 3px solid var(--line); border-radius: 16px; padding: 6px 18px 8px; line-height: 1.3; }
.rm-lv { background: var(--yellow); color: #1d211f; } .rm-lv-beginner { background: #d6f2df; } .rm-lv-advanced { background: #ffd2c2; }
.rm-lv b { font-family: var(--head); font-size: 34px; line-height: 1.1; } .rm-lv small { font-size: 12px; font-weight: 700; }
.rm-type { background: var(--card); color: var(--ink); min-width: 13em; }
.rm-type small { font-size: 12px; font-weight: 700; color: var(--ink2); } .rm-type b { font-family: var(--head); font-size: 22px; }
.rm-en { font-size: 11px; letter-spacing: .14em; font-weight: 800; color: var(--r-col); }
.rm-catch { margin: 10px 0; font-family: var(--head); font-weight: 900; font-size: 17px; color: var(--yellow); }
.rm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rm-stat { background: var(--card); color: var(--ink); border: 2.5px solid var(--line); border-radius: 12px; padding: 6px 4px; display: flex; flex-direction: column; line-height: 1.3; }
.rm-stat small { font-size: 11px; font-weight: 700; color: var(--ink2); }
.rm-stat b { font-family: var(--head); font-size: 20px; font-variant-numeric: tabular-nums; } .rm-stat i { font-style: normal; font-size: 12px; margin-left: 2px; }
.rm-cover .rm-small { color: var(--chalk2); }
.rm-type-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; text-align: left; }
.rm-type-box > div { background: var(--card); color: var(--ink); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.rm-type-box h4 { margin: 0 0 2px; font-size: 13.5px; } .rm-type-box p { margin: 0; font-size: 13px; line-height: 1.65; }
.rm-type-box .rm-move { background: var(--yellow2); }
@media (max-width: 640px) { .rm-stats { grid-template-columns: 1fr 1fr; } .rm-type-box { grid-template-columns: 1fr; } }
/* グラフ */
.rm-legend { display: flex; gap: 14px; font-size: 13px; font-weight: 700; }
.rm-legend span::before { content: ''; display: inline-block; width: 18px; height: 4px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.rm-legend .r::before { background: var(--r-col); } .rm-legend .l::before { background: var(--l-col); }
.rm-chart { width: 100%; height: auto; display: block; margin: 4px 0; }
.rm-grid { stroke: var(--soft); stroke-width: 1; } .rm-grid.top { stroke: var(--ok); stroke-dasharray: 4 4; stroke-width: 1.5; }
.rm-vline { stroke: var(--soft); stroke-dasharray: 2 4; }
.rm-ax { fill: var(--ink2); font-size: 12px; font-family: var(--font); } .rm-ax.small { font-size: 10.5px; }
.rm-line { fill: none; stroke-width: 3.5; stroke-linejoin: round; stroke-linecap: round; }
.rm-line.r { stroke: var(--r-col); } .rm-line.l { stroke: var(--l-col); }
.rm-dot { stroke: var(--card); stroke-width: 2; } .rm-dot.r { fill: var(--r-col); } .rm-dot.l { fill: var(--l-col); }
.rm-goal { fill: var(--ok); font-weight: 900; font-size: 13px; font-family: var(--head); }
.rm-tbl { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 6px; }
.rm-tbl th, .rm-tbl td { border-bottom: 1.5px solid var(--soft); padding: 3px 6px; text-align: left; }
.rm-tbl td:nth-child(n+3), .rm-tbl th:nth-child(n+3) { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; width: 3.5em; }
.rm-tbl th.r { color: var(--r-col); } .rm-tbl th.l { color: var(--l-col); }
/* ステージ */
.rm-stabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(44px, 1fr)); gap: 6px; margin: 8px 0 12px; }
.rm-stab { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--bg); line-height: 1.2; position: relative; }
.rm-stab b { font-family: var(--head); font-size: 20px; } .rm-stab small { font-size: 10px; color: var(--ink2); font-weight: 700; }
.rm-stab.on { background: var(--yellow); color: #1d211f; box-shadow: var(--shadow-sm); } .rm-stab.on small { color: #3a3a3a; }
.rm-stab:not(:last-child)::after { content: ''; position: absolute; right: -6px; top: 50%; width: 6px; height: 2.5px; background: var(--line); }
.rm-stage { display: none; border: 2.5px solid var(--line); border-radius: 16px; padding: 12px 14px; background: var(--bg); }
.rm-stage.on { display: block; }
.rm-stage.now { border-width: 3.5px; box-shadow: 0 0 0 4px var(--yellow2); }
.rm-stage header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rm-sno { font-family: var(--head); font-weight: 900; background: var(--board); color: var(--yellow); padding: 1px 10px; border-radius: 8px; font-size: 14px; letter-spacing: .06em; }
.rm-sen { font-weight: 900; letter-spacing: .1em; font-size: 12px; color: var(--ink2); }
.rm-here { margin-left: auto; font-weight: 900; font-size: 12px; background: var(--r-col); color: #fff; border-radius: 99px; padding: 1px 10px; }
.rm-stage h4 { font-size: 20px; margin: 6px 0 2px; } .rm-stage h4 small { display: block; font-size: 12.5px; color: var(--ink2); font-family: var(--font); font-weight: 700; }
.rm-sx { margin: 4px 0 8px; font-size: 14.5px; }
.rm-stage h5 { margin: 6px 0 4px; font-size: 13.5px; }
.rm-quests { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.rm-quests li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14.5px; line-height: 1.6; }
.rm-box { width: 18px; height: 18px; border: 2.5px solid var(--line); border-radius: 5px; margin-top: 3px; background: var(--card); }
.rm-boss { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; margin: 10px 0 6px; padding: 8px 10px; border-radius: 12px; background: var(--board); color: var(--chalk); }
.rm-boss b { font-family: var(--head); font-weight: 900; background: var(--r-col); color: #fff; padding: 2px 10px; border-radius: 8px; font-size: 14px; }
.rm-boss span { font-size: 13.5px; line-height: 1.6; }
.rm-clear { margin: 4px 0; font-size: 14px; } .rm-use { margin: 6px 0 0; font-size: 13px; }
.rm-use a { color: var(--link); font-weight: 700; }
/* 毎日のメニュー・週 */
.rm-course { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.rm-course button { display: flex; flex-direction: column; align-items: center; padding: 6px 2px; border: 2.5px solid var(--line); border-radius: 12px; background: var(--bg); line-height: 1.3; }
.rm-course button b { font-family: var(--head); font-size: 16px; } .rm-course button small { font-size: 11px; color: var(--ink2); }
.rm-course button.on { background: var(--yellow); color: #1d211f; box-shadow: var(--shadow-sm); } .rm-course button.on small { color: #3a3a3a; }
.rm-dayh { margin: 4px 0 6px; font-size: 14px; } .rm-dayh b { font-size: 16px; }
.rm-stack { display: flex; height: 30px; border: 2.5px solid var(--line); border-radius: 10px; overflow: hidden; margin-bottom: 8px; }
.rm-stack i { font-style: normal; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; border-right: 2px solid var(--line); }
.rm-stack i:last-child { border-right: 0; }
.c-v { background: #e0a800; } .c-r { background: var(--r-col); } .c-l { background: var(--l-col); } .c-t { background: var(--ok); }
.rm-stack i.c-v { color: #1d211f; }
.rm-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.rm-menu li { display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: start; }
.rm-min { font-family: var(--head); font-weight: 900; font-size: 22px; text-align: center; border: 2.5px solid var(--line); border-radius: 10px; background: var(--yellow2); line-height: 1.2; padding: 2px 0; }
.rm-min small { font-size: 11px; }
.rm-menu b { font-size: 15px; } .rm-menu p { margin: 0; font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.rm-slot { margin: 10px 0 0; padding: 8px 10px; border-radius: 10px; background: var(--yellow2); font-size: 13.5px; display: flex; flex-direction: column; }
.rm-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.rm-wd { border: 2px solid var(--line); border-radius: 10px; padding: 4px; background: var(--bg); min-width: 0; }
.rm-wd.we { background: var(--yellow2); }
.rm-wd > b { display: block; text-align: center; font-family: var(--head); font-size: 15px; border-bottom: 2px solid var(--soft); margin-bottom: 4px; }
.rm-wd ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 3px; }
.rm-wd li { font-size: 10.5px; line-height: 1.35; font-weight: 700; color: #fff; border-radius: 5px; padding: 2px 3px; overflow-wrap: anywhere; }
.rm-wd li.c-v { color: #1d211f; }
.rm-wd p { margin: 4px 0 0; font-size: 10.5px; line-height: 1.45; color: var(--ink2); }
@media (max-width: 640px) {
  .rm-week { grid-template-columns: 1fr; }
  .rm-wd { display: grid; grid-template-columns: 2em 1fr; gap: 6px; align-items: start; }
  .rm-wd > b { border: 0; margin: 0; }
  .rm-wd ul { display: flex; flex-wrap: wrap; gap: 3px; } .rm-wd li { font-size: 11.5px; padding: 1px 6px; }
  .rm-wd p { grid-column: 2; margin: 0; font-size: 11.5px; }
}
/* 弱点・大問 */
.rm-why { margin: 0 0 8px; font-size: 14.5px; }
.rm-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; counter-reset: st; }
.rm-steps li { display: grid; grid-template-columns: 6em 1fr; gap: 8px; align-items: start; padding: 6px 8px; border-left: 5px solid var(--yellow); background: var(--bg); border-radius: 0 10px 10px 0; font-size: 14px; line-height: 1.6; }
.rm-steps b { font-size: 13px; }
.rm-tip { margin: 8px 0 0; font-size: 14px; }
.rm-fold { margin-top: 10px; } .rm-fold summary { cursor: pointer; font-weight: 800; color: var(--link); }
.rm-other { margin-top: 8px; }
.rm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .rm-two { grid-template-columns: 1fr; } .rm-steps li { grid-template-columns: 1fr; gap: 0; } }
.rm-prio ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
.rm-prio a { font-weight: 800; color: var(--link); } .rm-prio small { display: block; font-size: 12.5px; color: var(--ink2); }
.rm-time { display: flex; height: 44px; border: 2.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.rm-time i { font-style: normal; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; border-right: 2px solid var(--line); min-width: 0; overflow: hidden; }
.rm-time i:last-child { border-right: 0; }
.rm-time b { font-size: 12px; } .rm-time small { font-size: 10px; }
.rm-time .h0 { background: #fde2e1; } .rm-time .h1 { background: #fff1b0; } .rm-time .h2 { background: #d6f2df; } .rm-time .h3 { background: #dbe8fa; } .rm-time .rv { background: var(--board); color: var(--yellow); }
.rm-time i:not(.rv) { color: #1d211f; }
.rm-ng { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; }
.rm-ng li::marker { content: '× '; color: var(--ng); font-weight: 900; }
.rm-tools-list { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.rm-tools-list dt { font-weight: 800; } .rm-tools-list dd { margin: 0 0 0 1em; color: var(--ink2); font-size: 13.5px; }
/* 30日チャレンジ */
.rm-cells { display: grid; grid-template-columns: repeat(10, 1fr); gap: 5px; }
.rm-cell { aspect-ratio: 1; border: 2px solid var(--line); border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; background: var(--card); }
.rm-cell small { font-size: 9.5px; color: var(--ink2); } .rm-cell span { font-family: var(--head); font-weight: 900; font-size: 15px; color: var(--ink3); }
.rm-cell.done { background: var(--ok); } .rm-cell.done small, .rm-cell.done span { color: #fff; }
.rm-cell.today { outline: 3px solid var(--yellow); }
@media (max-width: 560px) { .rm-cells { grid-template-columns: repeat(6, 1fr); } }
.rm-foot { text-align: center; font-size: 12px; color: var(--ink2); margin: 4px 0; }
.rm-next { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 18px 0 0; }

/* ---------- 印刷・PDF（A4たて） ---------- */
@media print {
  @page { size: A4; margin: 11mm 10mm; }
  :root, :root[data-theme='dark'], :root:not([data-theme='light']) { --bg: #fff; --bg2: #f3f1ea; --card: #fff; --ink: #1d211f; --ink2: #4a514c; --ink3: #8a8f8b; --line: #1d211f; --soft: #d8d2c0; --link: #1d211f; --yellow2: #fff3c4; color-scheme: light; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff !important; font-size: 12.5px; line-height: 1.6; padding: 0 !important; }
  .tabbar, .crumbs, .no-print, .xp-toasts, .lvup, .stamp-pop, .rm-next { display: none !important; }
  .rm-printing .page-head, .rm-printing .rm-tools { display: none !important; }
  .wrap { width: 100%; }
  .roadmap-root { max-width: none; }
  .rm-doc { gap: 8px; }
  .rm-sec { box-shadow: none; border-width: 2px; padding: 10px 12px; break-inside: avoid; page-break-inside: avoid; border-radius: 12px; }
  .rm-stages-sec, .rm-day-sec { break-inside: auto; page-break-inside: auto; }
  .rm-stages-sec { break-before: page; page-break-before: always; }
  .rm-weak-sec { break-before: page; page-break-before: always; }
  .rm-stage { display: block !important; break-inside: avoid; page-break-inside: avoid; margin-bottom: 6px; padding: 8px 10px; }
  .rm-stage.now { box-shadow: none; }
  .rm-stage h4 { font-size: 15px; } .rm-sx, .rm-quests li { font-size: 12px; }
  .rm-boss { padding: 4px 8px; margin: 6px 0 4px; } .rm-boss span { font-size: 11.5px; }
  .rm-cover { padding: 12px; }
  .rm-cover h2 { font-size: 24px; }
  .rm-week { grid-template-columns: repeat(7, 1fr) !important; }
  .rm-wd { display: block !important; }
  .rm-wd ul { display: grid !important; } .rm-wd li { font-size: 9px !important; padding: 1px 2px !important; } .rm-wd p { font-size: 9px !important; }
  .rm-stats { grid-template-columns: repeat(4, 1fr) !important; } .rm-type-box { grid-template-columns: repeat(3, 1fr) !important; } .rm-two { grid-template-columns: 1fr 1fr !important; }
  .rm-steps li { grid-template-columns: 6em 1fr !important; }
  .rm-cells { grid-template-columns: repeat(10, 1fr) !important; }
  .rm-chart { max-height: 210px; }
  .rm-h { font-size: 16px; margin-bottom: 6px; } .rm-h span { width: 24px; height: 24px; font-size: 13px; }
  a { text-decoration: none; }
}

/* 4分診断のページ：見出しは1行だけ（スタートボタンを1画面目に） */
.page-head.slim { margin: 0 0 12px; }
.page-head.slim .wrap { padding: 10px 0 12px; }
.page-head.slim h1 { margin: 0; font-size: 22px; }
.page-head.slim h1 small { font-size: 13px; font-weight: 700; color: var(--chalk2); margin-left: 8px; }
.news-mini { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--soft); }
.news-mini li { display: flex; gap: 12px; padding: 9px 2px; border-bottom: 2px solid var(--soft); line-height: 1.55; font-size: 14.5px; }
.news-mini time { flex-shrink: 0; font-weight: 800; color: var(--ink3); min-width: 3.2em; }
.news-mini a { color: var(--ink); text-decoration: none; font-weight: 700; } .news-mini a:hover { text-decoration: underline; }

/* 教室で映すページ（/class/）：QR を大きく。プロジェクターでも後ろの席から読めるように */
.cls { display: grid; grid-template-columns: minmax(260px, 42%) 1fr; gap: 40px; align-items: center; padding: 26px 0 40px; }
.cls:fullscreen { width: 100%; padding: 4vh 5vw; background: var(--bg); }
.cls-qr { text-align: center; }
.cls-qr img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; background: #fff; padding: 12px; border: 4px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.cls-url { margin: 12px 0 0; font-family: var(--en); font-weight: 600; font-size: clamp(15px, 2vw, 24px); word-break: break-all; }
.cls-k { margin: 0; display: inline-block; padding: 2px 14px; border-radius: 999px; background: var(--yellow); border: 2.5px solid var(--line); font-weight: 800; color: #1d211f; }
.cls h1 { margin: 8px 0 16px; font-size: clamp(30px, 4.6vw, 58px); line-height: 1.25; }
.cls-steps { list-style: none; counter-reset: c; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.cls-steps li { counter-increment: c; position: relative; padding: 10px 14px 10px 64px; border: 3px solid var(--line); border-radius: 16px; background: var(--card); display: flex; flex-direction: column; line-height: 1.35; }
.cls-steps li::before { content: counter(c); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--board); color: var(--yellow); font-family: var(--head); font-weight: 900; font-size: 22px; }
.cls-steps b { font-size: clamp(18px, 2.2vw, 26px); font-family: var(--head); } .cls-steps small { font-size: clamp(13px, 1.4vw, 17px); color: var(--ink2); }
.cls-note { font-size: 14px; color: var(--ink2); margin: 0 0 10px; }
.cls:fullscreen .cls-fs { display: none; }
@media (max-width: 760px) { .cls { grid-template-columns: 1fr; gap: 20px; } .cls-qr img { max-width: 260px; } }
/* 映すページは余計なものを出さない（QR を1画面に収める） */
body:has(#cls) .notice-bar, body:has(#cls) .main-nav, body:has(#cls) .crumbs, body:has(#cls) .site-footer, body:has(#cls) .tabbar, body:has(#cls) .to-top { display: none !important; }
body:has(#cls) { padding-bottom: 0; }
@media (min-width: 761px) { .cls { min-height: calc(100vh - 64px); padding: 2vh 0; } .cls-qr img { width: auto; height: min(64vh, 440px); } .cls h1 { font-size: clamp(28px, 3.6vw, 50px); } }
@media (max-width: 400px) { .hx-start { padding: 12px 42px 12px 12px; column-gap: 12px; } .hx-start .hx-k { width: 48px; height: 48px; font-size: 10.5px; } .hx-start b { font-size: 21px; } .hx-arrow { right: 12px; width: 24px; height: 24px; margin-top: -12px; } }
@media (max-width: 760px) { .promise b { font-size: 13px; letter-spacing: 0; } .promise small { font-size: 11.5px; } .promise li { padding: 8px 10px; } }
/* 朝活プリントの解答・解説（/class/<id>/） */
.ck-part { margin: 22px 0 30px; }
.band-h small { font-size: .62em; font-weight: 700; margin-left: 10px; opacity: .8; }
.ck-keygrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.ck-key td.ck-k { font-size: 20px; font-weight: 800; text-align: center; }
.ck-grade { border: 2.5px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--card); }
.ck-row { display: flex; gap: 6px; align-items: center; margin: 0 0 6px; }
.ck-row b { width: 3.2em; font-size: 14px; }
.ck-row button { flex: 1; min-height: 38px; border: 2px solid var(--line); border-radius: 10px; background: var(--bg); font-size: 18px; cursor: pointer; }
.ck-row button.on { background: var(--yellow2); }
.ck-row button.ok { background: color-mix(in srgb, var(--ok) 28%, var(--card)); }
.ck-row button.ng { background: color-mix(in srgb, var(--ng) 22%, var(--card)); text-decoration: line-through; }
.ck-score { margin: 8px 0 0; font-weight: 700; }
.ck-seq { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ck-seq .pstat { font-size: 14px; font-weight: 700; }
.ck-q { border: 2.5px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 14px 0; background: var(--card); }
.ck-q h3 { margin: 0 0 6px; font-size: 20px; } .ck-q h3 small { display: block; font-size: 13.5px; font-weight: 500; color: var(--ink2); }
.ck-q h4 { margin: 12px 0 4px; font-size: 15px; }
.ck-ques { font-family: var(--en); font-weight: 700; margin: 0 0 8px; }
.ck-ans { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; margin: 10px 0 0; padding: 8px 12px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 13%, var(--card)); }
.ck-ans b { font-size: 18px; } .ck-ans small { color: var(--ink2); }
.ck-think { margin: 0; padding-left: 1.4em; } .ck-think li { margin: 0 0 4px; }
.ck-cx { list-style: none; margin: 0; padding: 0; }
.ck-cx li { display: grid; grid-template-columns: 1.6em 1fr; gap: 6px; padding: 6px 0; border-top: 1px dashed var(--line2, #ccc); }
.ck-cx li.ok { background: color-mix(in srgb, var(--ok) 9%, transparent); border-radius: 6px; }
.ck-cx .en { display: block; font-family: var(--en); font-weight: 600; } .ck-cx small { display: block; color: var(--ink2); font-size: 13.5px; }
.call.tip { background: var(--yellow2); }
@media (max-width: 760px) { .ck-keygrid { grid-template-columns: 1fr; } .ck-key th:last-child, .ck-key td:last-child { display: none; } }
.ck-point { margin: 8px 0 0; padding: 6px 10px; border-left: 4px solid var(--line); background: var(--bg); }
.ck-audio { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ck-audio .pstat { flex-basis: 100%; margin: 2px 0 0; font-weight: 700; }
/* 授業用の特別講座（/tokubetsu/） */
.tk-when { display: block; font-size: .5em; margin-top: 4px; letter-spacing: .02em; }
.tk-nav { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; } .tk-nav a { flex-shrink: 0; white-space: nowrap; }
.tk-nav a.on { background: var(--board); color: var(--yellow); }
.tk-sec { margin: 22px 0 28px; }
.tk-flow { list-style: none; counter-reset: f; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk-flow li { counter-increment: f; display: grid; grid-template-columns: 34px 1fr; column-gap: 10px; align-items: center; background: var(--card); border: 2.5px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.tk-flow li::before { content: counter(f); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--line); display: grid; place-items: center; font-weight: 900; }
.tk-flow b { font-size: 16px; } .tk-flow small { color: var(--ink2); font-size: 13.5px; line-height: 1.6; }
.tk-cards a b { font-size: 16px; }
.tk-pic { margin: 14px 0; } .tk-pic img { width: 100%; max-width: 640px; height: auto; border-radius: 14px; border: 3px solid var(--line); display: block; }
.tk-pic figcaption { font-size: 13.5px; color: var(--ink2); margin-top: 6px; }
.tk-pics { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.tk-pics li { position: relative; border: 2px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; }
.tk-pics li .no { position: absolute; top: 4px; left: 6px; font-weight: 900; font-size: 18px; color: #111; background: rgba(255,255,255,.85); border-radius: 6px; padding: 0 3px; }
.tk-pics img { width: 100%; height: auto; display: block; }
.tk-pics.text { grid-template-columns: 1fr 1fr; } .tk-pics.text li { padding: 8px 8px 8px 34px; font-size: 14px; color: #111; }
.tk-map { margin: 10px 0; } .tk-map img { width: 100%; max-width: 380px; height: auto; border: 2px solid var(--line); border-radius: 10px; background: #fff; display: block; }
.tk-doc ul { margin: 4px 0 8px; padding-left: 1.3em; } .tk-h3 { font-weight: 800; margin: 10px 0 2px; }
.tk-quote { display: grid; grid-template-columns: 8.5em 1fr; gap: 8px; margin: 6px 0; } .tk-quote b { font-size: 14px; }
.tk-setx { background: var(--card); border-left: 6px solid var(--yellow); border-radius: 8px; padding: 8px 12px; }
.tk-kexam .ck-grade { margin: 10px 0; }
.tk-kq > summary small { display: block; font-weight: 500; font-size: 13px; color: var(--ink2); }
.tk-rsec h4 { margin: 10px 0 2px; font-size: 15.5px; } .tk-rsec h4 small { font-weight: 500; font-size: 12.5px; margin-left: 8px; color: var(--ink2); } .tk-rsec p { margin: 2px 0; }
@media (max-width: 760px) { .tk-pics { grid-template-columns: 1fr 1fr; } .tk-quote { grid-template-columns: 1fr; gap: 0; } }
.tk-doc { display: block; background: var(--card); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; } .tk-doc p { margin: 0 0 8px; }
