/* やり直し英語：スマホを基準に書き、広い画面で足していく */
:root {
  --bg: #fbf7f0; --bg2: #f4eee3; --card: #ffffff; --ink: #1c2333; --ink2: #4b5468; --ink3: #7b8496;
  --line: #e6dfd1; --line2: #d5ccba;
  --brand: #e2552f; --brand-d: #c2401d; --brand-bg: #fdeee8;
  --gold: #c98a06; --gold-bg: #fdf3d7; --coral: #e2552f; --coral-bg: #fdeee8; --blue: #2563c9; --blue-bg: #e8f0fd;
  --teal: #0b8f84; --teal-bg: #dff5f2; --green: #3d8a2e; --green-bg: #e7f4e1; --violet: #6c4bc4; --violet-bg: #efeafb; --orange: #d9730d; --orange-bg: #fdeedd; --pink: #cf3f7c; --pink-bg: #fce9f1; --navy: #2f4a8a; --navy-bg: #e6ecf8; --sky: #0e86c7; --sky-bg: #e0f2fb; --brown: #8a5a2b; --brown-bg: #f5eadd; --red: #c62f3a; --red-bg: #fbe6e8;
  --ok: #1d8a4e; --ok-bg: #e2f5ea; --ng: #cf3a3a; --ng-bg: #fdeaea; --mark: #ffe680;
  --S: #2563c9; --V: #d43d3d; --O: #2b8a3e; --C: #c77700; --M: #7a6a94; --N: #6b7280;
  --sh1: 0 1px 2px rgba(28, 35, 51, .06), 0 2px 8px rgba(28, 35, 51, .05);
  --sh2: 0 4px 10px rgba(28, 35, 51, .07), 0 14px 34px rgba(28, 35, 51, .09);
  --r: 16px; --r-s: 10px; --hd: 58px; --fs: 16.5px;
  --jp: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --en: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Noto Sans", sans-serif;
  color-scheme: light;
}
:root[data-font="l"] { --fs: 18.5px; }
:root[data-font="xl"] { --fs: 20.5px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --dark: 1; } }
:root[data-theme="dark"] { --dark: 1; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12161f; --bg2: #171c27; --card: #1c2230; --ink: #edf0f6; --ink2: #b8c0d0; --ink3: #8b94a7; --line: #2b3345; --line2: #3a4459;
    --brand: #ff7a52; --brand-d: #ff9473; --brand-bg: #3a2019; --gold: #f2bd4b; --gold-bg: #3a2f14; --coral: #ff7a52; --coral-bg: #3a2019; --blue: #7aa7ff; --blue-bg: #1a2742;
    --teal: #4fd1c5; --teal-bg: #12322f; --green: #86d172; --green-bg: #1c3118; --violet: #b19cf5; --violet-bg: #2a2244; --orange: #ffb066; --orange-bg: #3a2812; --pink: #ff8fbd; --pink-bg: #3b1a2a; --navy: #9db6f2; --navy-bg: #1b2540; --sky: #6cc8f5; --sky-bg: #12303f; --brown: #d9a871; --brown-bg: #33261a; --red: #ff8a92; --red-bg: #3d1a1d;
    --ok: #5fd08e; --ok-bg: #153224; --ng: #ff8080; --ng-bg: #3d1c1c; --mark: #6b5a10;
    --S: #7aa7ff; --V: #ff8080; --O: #7fd18f; --C: #f2b556; --M: #b9a8d6; --N: #9aa3b5;
    --sh1: 0 1px 2px rgba(0, 0, 0, .4); --sh2: 0 10px 30px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12161f; --bg2: #171c27; --card: #1c2230; --ink: #edf0f6; --ink2: #b8c0d0; --ink3: #8b94a7; --line: #2b3345; --line2: #3a4459;
  --brand: #ff7a52; --brand-d: #ff9473; --brand-bg: #3a2019; --gold: #f2bd4b; --gold-bg: #3a2f14; --coral: #ff7a52; --coral-bg: #3a2019; --blue: #7aa7ff; --blue-bg: #1a2742;
  --teal: #4fd1c5; --teal-bg: #12322f; --green: #86d172; --green-bg: #1c3118; --violet: #b19cf5; --violet-bg: #2a2244; --orange: #ffb066; --orange-bg: #3a2812; --pink: #ff8fbd; --pink-bg: #3b1a2a; --navy: #9db6f2; --navy-bg: #1b2540; --sky: #6cc8f5; --sky-bg: #12303f; --brown: #d9a871; --brown-bg: #33261a; --red: #ff8a92; --red-bg: #3d1a1d;
  --ok: #5fd08e; --ok-bg: #153224; --ng: #ff8080; --ng-bg: #3d1c1c; --mark: #6b5a10;
  --S: #7aa7ff; --V: #ff8080; --O: #7fd18f; --C: #f2b556; --M: #b9a8d6; --N: #9aa3b5;
  --sh1: 0 1px 2px rgba(0, 0, 0, .4); --sh2: 0 10px 30px rgba(0, 0, 0, .5); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hd) + 14px); overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--jp); line-height: 1.85; overflow-wrap: anywhere; word-break: normal; line-break: strict; -webkit-font-smoothing: antialiased; overflow-x: clip; min-height: 100vh; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { line-height: 1.4; font-feature-settings: "palt"; letter-spacing: .01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; }
mark { background: linear-gradient(transparent 55%, var(--mark) 55%); color: inherit; font-weight: 700; padding: 0 .1em; }
.en { font-family: var(--en); font-weight: 600; letter-spacing: .005em; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: .6em 1em; z-index: 100; border-radius: 0 0 8px 0; }
.skip:focus { left: 0; }
.wrap { width: min(100% - 32px, 1120px); margin-inline: auto; }
.narrow { width: min(100% - 32px, 760px); margin-inline: auto; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ── ヘッダー ── */
.readbar { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 60; pointer-events: none; }
.readbar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--gold)); }
.hd { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.hd-in { height: var(--hd); display: flex; align-items: center; gap: 10px; width: min(100% - 24px, 1240px); margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; margin-right: auto; min-width: 0; }
.logo-m { width: 38px; height: 38px; border-radius: 11px; display: block; box-shadow: 0 3px 10px rgba(217, 58, 28, .32); flex: none; overflow: hidden; } .logo-m svg { display: block; width: 100%; height: 100%; }
.logo-t { display: grid; line-height: 1.15; }
.logo-t b { font-size: 17px; font-weight: 900; letter-spacing: .06em; white-space: nowrap; }
.logo-t small { font-size: 10.5px; font-weight: 800; color: var(--brand-d); letter-spacing: .16em; }
.hd-nav { display: none; }
.hd-btns { display: flex; align-items: center; gap: 2px; }
.ib { width: 44px; height: 44px; border: 0; background: none; border-radius: 12px; display: grid; place-items: center; color: var(--ink); }
.ib:hover { background: var(--bg2); }
.ib .ic { width: 23px; height: 23px; }
.aa { font-family: var(--en); font-weight: 800; font-size: 16px; }
.ib-set { display: none; }
.hd-cta { display: none; }
@media (min-width: 1000px) {
  :root { --hd: 66px; }
  .hd-nav { display: flex; gap: 2px; margin-right: 8px; }
  .hd-nav a { color: var(--ink2); text-decoration: none; font-weight: 700; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; }
  .hd-nav a:hover { background: var(--bg2); color: var(--ink); }
  .hd-nav a[aria-current] { color: var(--brand-d); background: var(--brand-bg); }
  .ib-set { display: grid; }
  .ib-menu { display: none; }
  body.has-side .ib-menu { display: none; }
  .hd-cta { display: inline-flex; align-items: center; gap: 6px; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 800; font-size: 14px; padding: 9px 15px; border-radius: 999px; margin-right: 6px; white-space: nowrap; }
  .hd-cta:hover { background: var(--brand-d); color: #fff; }
  .logo-t b { font-size: 18px; }
}
@media (min-width: 1000px) and (max-width: 1180px) { .hd-nav a { padding: 8px 8px; font-size: 13.5px; } .hd-cta span { display: none; } .hd-cta { padding: 10px; } }

/* ── メニュー（ドロワー） ── */
.scrim { position: fixed; inset: 0; background: rgba(15, 18, 28, .5); z-index: 70; animation: fade .2s; }
.drawer { position: fixed; inset: 0 0 0 auto; width: min(400px, 92vw); background: var(--bg); z-index: 80; display: flex; flex-direction: column; box-shadow: var(--sh2); animation: slide .24s cubic-bezier(.2, .8, .2, 1); }
@keyframes slide { from { transform: translateX(100%); } }
@keyframes fade { from { opacity: 0; } }
.dr-hd { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.dr-body { overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px calc(28px + env(safe-area-inset-bottom)); flex: 1; }
.dr-resume { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--bg); border-radius: var(--r); padding: 13px 16px; text-decoration: none; margin-bottom: 12px; }
.dr-resume span { display: grid; flex: 1; min-width: 0; line-height: 1.4; }
.dr-resume small { font-size: 11.5px; opacity: .75; letter-spacing: .1em; }
.dr-resume b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 6px; }
.dr-quick > * { display: grid; justify-items: center; gap: 3px; padding: 10px 2px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 11.5px; font-weight: 700; line-height: 1.3; text-align: center; }
.dr-quick .ic { width: 22px; height: 22px; color: var(--brand); }
.dr-lb { font-size: 12px; font-weight: 800; color: var(--ink3); letter-spacing: .14em; margin: 18px 6px 8px; }
.dr-pages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dr-pages a { display: flex; align-items: center; gap: 8px; padding: 11px 10px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 700; line-height: 1.35; }
.dr-pages .ic { color: var(--ink3); }
.dr-set { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 16px; }
.dr-set button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 11px; border-radius: 12px; border: 1px dashed var(--line2); background: none; font-size: 13px; font-weight: 700; }

/* コースの目次 */
.cn { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 6px; --c: var(--brand); --cb: var(--brand-bg); }
.cn-gold { --c: var(--gold); --cb: var(--gold-bg); } .cn-coral { --c: var(--coral); --cb: var(--coral-bg); } .cn-blue { --c: var(--blue); --cb: var(--blue-bg); } .cn-teal { --c: var(--teal); --cb: var(--teal-bg); } .cn-green { --c: var(--green); --cb: var(--green-bg); }
.cn summary { display: flex; align-items: center; gap: 10px; padding: 11px 12px; cursor: pointer; list-style: none; font-weight: 800; font-size: 14.5px; line-height: 1.35; }
.cn summary::-webkit-details-marker { display: none; }
.cn-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--cb); color: var(--c); display: grid; place-items: center; flex: none; }
.cn-t { flex: 1; min-width: 0; }
.cn-p { font-size: 11.5px; font-weight: 700; color: var(--ink3); font-family: var(--en); white-space: nowrap; }
.cn-chev { color: var(--ink3); transition: transform .2s; }
.cn[open] .cn-chev { transform: rotate(90deg); }
.cn-body { padding: 0 8px 10px; }
.cn-ch { font-size: 11.5px; font-weight: 800; color: var(--c); margin: 10px 6px 4px; letter-spacing: .04em; }
.cn-list { list-style: none; margin: 0; padding: 0; }
.cn-list a { display: flex; gap: 8px; align-items: flex-start; padding: 7px 8px; border-radius: 9px; color: var(--ink2); text-decoration: none; font-size: 13.5px; line-height: 1.5; }
.cn-list a:hover { background: var(--bg2); color: var(--ink); }
.cn-list a[aria-current] { background: var(--cb); color: var(--ink); font-weight: 800; }
.cn-ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; margin-top: 2px; display: grid; place-items: center; color: transparent; }
.cn-ck .ic { width: 12px; height: 12px; stroke-width: 3; }
a.is-done .cn-ck { background: var(--ok); border-color: var(--ok); color: #fff; }

/* 検索 */
.sr { position: fixed; inset: 0; z-index: 90; background: rgba(15, 18, 28, .55); padding: 10px; display: grid; align-items: start; animation: fade .15s; }
.sr-box { width: min(100%, 640px); margin: 0 auto; background: var(--bg); border-radius: 18px; box-shadow: var(--sh2); max-height: calc(100dvh - 20px); display: flex; flex-direction: column; overflow: hidden; }
@media (min-width: 700px) { .sr { padding-top: 9vh; } }
.sr-in { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-bottom: 1px solid var(--line); }
.sr-in > .ic { color: var(--ink3); }
.sr-in input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 16px; color: var(--ink); padding: 12px 0; outline: none; }
.sr-res { overflow-y: auto; padding: 8px; }
.sr-hint { color: var(--ink3); font-size: 13.5px; padding: 14px 10px; margin: 0; }
.sr-res a { display: block; padding: 11px 12px; border-radius: 12px; text-decoration: none; color: var(--ink); }
.sr-res a:hover, .sr-res a:focus { background: var(--bg2); }
.sr-res b { display: block; font-size: 14.5px; line-height: 1.45; }
.sr-res small { display: block; color: var(--ink3); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.sr-res em { font-style: normal; font-size: 11px; font-weight: 800; color: var(--brand-d); background: var(--brand-bg); padding: 1px 7px; border-radius: 99px; margin-right: 6px; }

/* ── ボタン・ラベル ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 800; font-size: 15.5px; padding: 14px 24px; text-decoration: none; line-height: 1.3; box-shadow: 0 4px 0 var(--brand-d); transition: transform .1s, box-shadow .1s; }
.btn:hover { transform: translateY(1px); box-shadow: 0 3px 0 var(--brand-d); }
.btn:active { transform: translateY(4px); box-shadow: none; }
.btn-ink { background: var(--ink); color: var(--bg); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink3); }
.btn-s { font-size: 14px; padding: 10px 16px; box-shadow: 0 3px 0 var(--brand-d); }
.btn-ok { background: var(--ok); box-shadow: 0 4px 0 color-mix(in srgb, var(--ok) 70%, #000); }
.chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--line2); background: var(--card); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink2); text-decoration: none; line-height: 1.3; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
a.chip:hover { border-color: var(--brand); color: var(--brand-d); }
.tag { display: inline-block; font-size: 11.5px; font-weight: 800; padding: 2px 9px; border-radius: 999px; background: var(--bg2); color: var(--ink2); letter-spacing: .04em; line-height: 1.6; }

/* ── トップページ ── */
.hero { position: relative; overflow: clip; padding: 34px 0 30px; background: radial-gradient(900px 420px at 85% -10%, color-mix(in srgb, var(--gold) 22%, transparent), transparent 70%), radial-gradient(700px 400px at -10% 30%, color-mix(in srgb, var(--brand) 16%, transparent), transparent 70%); }
.hero-in { display: grid; gap: 26px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--brand-d); background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; margin-bottom: 14px; box-shadow: var(--sh1); }
.hero h1 { font-size: clamp(30px, 8.6vw, 54px); font-weight: 900; margin: 0 0 14px; line-height: 1.22; letter-spacing: .01em; }
.hero h1 span { display: inline-block; white-space: nowrap; }
@media (min-width: 960px) and (max-width: 1180px) { .hero h1 { font-size: 44px; } }
.hero h1 em { font-style: normal; background: linear-gradient(transparent 62%, var(--mark) 62%); }
.hero-lead { font-size: 15.5px; color: var(--ink2); margin-bottom: 20px; max-width: 34em; }
.hero-cta { display: grid; gap: 10px; }
.hero-note { font-size: 12.5px; color: var(--ink3); margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 4px; }
.hero-note .ic { color: var(--ok); width: 15px; height: 15px; stroke-width: 2.6; }
.hero-art { display: grid; gap: 10px; }
.demo { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--sh2); }
.demo-t { font-size: 12px; font-weight: 800; color: var(--ink3); margin: 0 0 10px; letter-spacing: .08em; }
.demo .struct-row { margin: 0; }
.demo-x { margin: 12px 0 0; padding: 10px 12px; background: var(--ng-bg); border-radius: 12px; font-size: 13.5px; line-height: 1.6; }
.demo-x b { color: var(--ng); }
@media (min-width: 620px) { .hero-cta { display: flex; flex-wrap: wrap; } }
@media (min-width: 960px) { .hero { padding: 64px 0 56px; } .hero-in { grid-template-columns: 1.08fr .92fr; gap: 48px; } .hero-lead { font-size: 17px; } }

.sec { padding: 40px 0; }
.sec-alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-hd { margin-bottom: 20px; }
.sec-hd p.k { font-family: var(--en); font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--brand-d); margin: 0 0 4px; text-transform: uppercase; }
.sec-hd h2 { font-size: clamp(22px, 5.6vw, 32px); font-weight: 900; margin: 0 0 6px; }
.sec-hd p { color: var(--ink2); margin: 0; font-size: 15px; max-width: 40em; }
@media (min-width: 960px) { .sec { padding: 64px 0; } .sec-hd { margin-bottom: 30px; } }

.resume { display: none; align-items: center; gap: 14px; background: var(--ink); color: var(--bg); border-radius: 20px; padding: 16px 18px; text-decoration: none; box-shadow: var(--sh2); margin-top: -8px; }
.resume.on { display: flex; }
.resume-r { width: 54px; height: 54px; flex: none; position: relative; display: grid; place-items: center; font-family: var(--en); font-weight: 800; font-size: 13px; }
.resume-r svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.resume span { flex: 1; min-width: 0; display: grid; line-height: 1.45; }
.resume small { font-size: 12px; opacity: .75; }
.resume b { font-size: 15.5px; }

.worries { display: grid; gap: 8px; }
.worry { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14.5px; line-height: 1.5; box-shadow: var(--sh1); }
.worry::before { content: "「"; color: var(--brand); font-weight: 900; font-size: 20px; line-height: 1; }
.worry span { flex: 1; }
.worry .ic { color: var(--ink3); }
.worry:hover { border-color: var(--brand); transform: translateY(-1px); }
@media (min-width: 700px) { .worries { grid-template-columns: 1fr 1fr; gap: 10px; } }
@media (min-width: 1040px) { .worries { grid-template-columns: 1fr 1fr 1fr; } }

.road { list-style: none; margin: 0; padding: 0; counter-reset: st; display: grid; gap: 12px; }
.road > li { counter-increment: st; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh1); --c: var(--brand); --cb: var(--brand-bg); }
.road > li.c-gold { --c: var(--gold); --cb: var(--gold-bg); } .road > li.c-coral { --c: var(--coral); --cb: var(--coral-bg); } .road > li.c-blue { --c: var(--blue); --cb: var(--blue-bg); } .road > li.c-teal { --c: var(--teal); --cb: var(--teal-bg); } .road > li.c-green { --c: var(--green); --cb: var(--green-bg); }
.road a.road-a { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px 16px; color: var(--ink); text-decoration: none; }
.road-n { grid-row: span 3; width: 52px; height: 52px; border-radius: 16px; background: var(--cb); color: var(--c); display: grid; place-items: center; position: relative; }
.road-n .ic { width: 26px; height: 26px; }
.road-n::after { content: counter(st); position: absolute; top: -7px; left: -7px; width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font: 800 12px/22px var(--en); text-align: center; }
.road-k { font-size: 12px; font-weight: 800; color: var(--c); margin: 0; }
.road-t { font-size: 18px; font-weight: 900; margin: 0; line-height: 1.4; }
.road-d { font-size: 13.5px; color: var(--ink2); margin: 2px 0 0; line-height: 1.7; }
.road-m { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 12px; color: var(--ink3); font-weight: 700; }
.bar { flex: 1; height: 7px; background: var(--bg2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--c, var(--brand)); border-radius: 99px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.road > li:hover { border-color: var(--c); }
@media (min-width: 760px) { .road { grid-template-columns: 1fr 1fr; gap: 16px; } .road > li:first-child { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .road { grid-template-columns: repeat(6, 1fr); } .road > li { grid-column: span 2; } .road > li:first-child { grid-column: span 2; } .road > li:nth-child(4), .road > li:nth-child(5) { grid-column: span 3; } }

.feats { display: grid; gap: 10px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.feat .ic { width: 28px; height: 28px; color: var(--brand); }
.feat h3 { font-size: 16.5px; margin: 8px 0 4px; font-weight: 900; }
.feat p { font-size: 13.5px; color: var(--ink2); margin: 0; line-height: 1.75; }
@media (min-width: 640px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .feats { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; align-content: start; }
.tile .ic { color: var(--brand); width: 24px; height: 24px; }
.tile b { font-size: 14.5px; line-height: 1.4; }
.tile small { font-size: 12px; color: var(--ink3); line-height: 1.55; }
.tile:hover { border-color: var(--brand); }
@media (min-width: 800px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 12px; } .tile { padding: 18px; } }

/* 姉妹サイトのカード */
.sites { display: grid; gap: 10px; }
@media (min-width: 760px) { .sites { grid-template-columns: 1fr 1fr; } }
.site { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-decoration: none; color: var(--ink); margin: 1.2em 0; box-shadow: var(--sh1); }
.sites .site { margin: 0; }
.site-lv { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; background: var(--cb, var(--green-bg)); color: var(--c, var(--green)); display: grid; place-items: center; font: 800 12px/1.15 var(--en); text-align: center; }
.site b { font-size: 15.5px; line-height: 1.4; }
.site small { grid-column: 2; font-size: 12.5px; color: var(--ink2); line-height: 1.6; }
.site > .ic { grid-row: 1 / span 2; grid-column: 3; color: var(--ink3); }
.site:hover { border-color: var(--c, var(--green)); }

/* ── コースの一覧ページ ── */
.ph { padding: 26px 0 22px; background: linear-gradient(180deg, var(--cb, var(--bg2)), transparent); --c: var(--brand); --cb: var(--brand-bg); }
.ph.c-gold { --c: var(--gold); --cb: var(--gold-bg); } .ph.c-coral { --c: var(--coral); --cb: var(--coral-bg); } .ph.c-blue { --c: var(--blue); --cb: var(--blue-bg); } .ph.c-teal { --c: var(--teal); --cb: var(--teal-bg); } .ph.c-green { --c: var(--green); --cb: var(--green-bg); }
.crumbs { font-size: 12px; color: var(--ink3); margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 2px 6px; }
.crumbs a { color: var(--ink3); }
.ph-k { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--c); margin: 0 0 6px; }
.ph h1 { font-size: clamp(24px, 6.4vw, 38px); font-weight: 900; margin: 0 0 8px; }
.ph p.ph-l { color: var(--ink2); font-size: 15px; margin: 0; max-width: 40em; }
.ph-prog { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 12.5px; font-weight: 700; color: var(--ink2); max-width: 420px; }
.chap { margin: 26px 0; }
.chap h2 { font-size: 18px; font-weight: 900; margin: 0 0 10px; padding-left: 12px; border-left: 5px solid var(--c, var(--brand)); }
.lcards { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: lc var(--start, 0); }
.lcards a { counter-increment: lc; display: grid; grid-template-columns: auto 1fr auto; gap: 2px 12px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 14px; text-decoration: none; color: var(--ink); }
.lcards a::before { content: counter(lc); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--bg2); color: var(--ink2); font: 800 14px/36px var(--en); text-align: center; }
.lcards a.is-done::before { content: "✓"; background: var(--ok); color: #fff; }
.lcards b { font-size: 15px; line-height: 1.45; }
.lcards small { grid-column: 2; font-size: 12.5px; color: var(--ink3); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcards .ic { grid-row: 1 / span 2; grid-column: 3; color: var(--ink3); }
.lcards a:hover { border-color: var(--c, var(--brand)); box-shadow: var(--sh1); }
@media (min-width: 860px) { .lcards { grid-template-columns: 1fr 1fr; gap: 10px; } }

/* ── レッスンページ ── */
.lz { display: grid; gap: 0; width: min(100% - 32px, 760px); margin-inline: auto; padding-bottom: 40px; }
.lz-side, .lz-toc { display: none; }
@media (min-width: 1000px) {
  .lz { width: min(100% - 48px, 1240px); grid-template-columns: 280px minmax(0, 1fr); gap: 44px; align-items: start; }
  .lz-side { display: block; position: sticky; top: calc(var(--hd) + 18px); max-height: calc(100vh - var(--hd) - 36px); overflow-y: auto; padding: 0 4px 20px 0; overscroll-behavior: contain; scrollbar-width: thin; }
  .lz-side .cn { border: 0; background: none; }
  .lz-side .cn summary { padding: 6px 4px 10px; pointer-events: none; }
  .lz-side .cn-chev { display: none; }
  .lz-side .cn-body { padding: 0; }
  .lz-main { max-width: 760px; }
}
@media (min-width: 1320px) {
  .lz { grid-template-columns: 280px minmax(0, 760px) 200px; gap: 40px; justify-content: center; }
  .lz-toc { display: block; position: sticky; top: calc(var(--hd) + 18px); font-size: 12.5px; }
  .lz-toc p { font-weight: 800; color: var(--ink3); letter-spacing: .12em; font-size: 11.5px; margin: 0 0 8px; }
  .lz-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
  .lz-toc a { display: block; padding: 5px 0 5px 12px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink3); text-decoration: none; line-height: 1.5; }
  .lz-toc a:hover { color: var(--ink); }
  .lz-toc a.on { color: var(--brand-d); border-left-color: var(--brand); font-weight: 800; }
}
.lh { padding: 22px 0 6px; }
.lh-m { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; align-items: center; }
.lh-m .tag-c { background: var(--brand-bg); color: var(--brand-d); }
.lh h1 { font-size: clamp(23px, 6.2vw, 34px); font-weight: 900; margin: 0 0 14px; }
.lh-lead { font-size: 1.02rem; color: var(--ink2); margin: 0 0 18px; }
.goals { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin: 0 0 8px; box-shadow: var(--sh1); }
.goals p { font-size: 12.5px; font-weight: 800; color: var(--brand-d); margin: 0 0 6px; letter-spacing: .06em; display: flex; align-items: center; gap: 6px; }
.goals ul { list-style: none; margin: 0; padding: 0; }
.goals li { position: relative; padding-left: 1.7em; font-size: .93rem; line-height: 1.7; margin: 4px 0; font-weight: 600; }
.goals li::before { content: ""; position: absolute; left: 0; top: .3em; width: 1.1em; height: 1.1em; border-radius: 50%; background: var(--ok-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231d8a4e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
.mtoc { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.mtoc summary { padding: 11px 16px; font-weight: 800; font-size: 13.5px; cursor: pointer; color: var(--ink2); }
.mtoc ol { margin: 0; padding: 0 16px 12px 36px; font-size: 13.5px; }
.mtoc li { margin: 4px 0; }
.mtoc a { color: var(--ink2); }
@media (min-width: 1320px) { .mtoc { display: none; } }

.prose { font-size: 1rem; }
.prose > h2 { font-size: clamp(20px, 5.2vw, 25px); font-weight: 900; margin: 2.3em 0 .8em; padding: .5em 0 .5em .75em; border-left: 6px solid var(--brand); background: linear-gradient(90deg, var(--brand-bg), transparent 85%); border-radius: 4px 0 0 4px; }
.prose > h3 { font-size: 1.08rem; font-weight: 900; margin: 1.8em 0 .6em; display: flex; gap: .5em; align-items: baseline; }
.prose > h3::before { content: ""; width: .7em; height: .7em; background: var(--gold); border-radius: 3px; flex: none; transform: translateY(-.05em) rotate(45deg); }
.prose > p { margin: 0 0 1.1em; }
.prose strong { font-weight: 800; background: linear-gradient(transparent 82%, color-mix(in srgb, var(--brand) 35%, transparent) 82%); }
.prose [lang="en"] strong, .prose .en strong { background: none; color: var(--brand-d); }
.list { margin: 0 0 1.2em; padding-left: 0; list-style: none; }
.list li { position: relative; padding-left: 1.3em; margin: .45em 0; }
.list li::before { content: ""; position: absolute; left: .25em; top: .72em; width: .45em; height: .45em; border-radius: 50%; background: var(--brand); }

.box { border-radius: var(--r); padding: 15px 16px 15px; margin: 1.3em 0; border: 1.5px solid; }
.box-t { font-weight: 900; font-size: .93rem; display: flex; align-items: center; gap: 7px; margin: 0 0 6px; line-height: 1.45; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }
.box ul { margin: .3em 0 0; padding-left: 1.2em; }
.box li { margin: .25em 0; }
.box-point { background: var(--gold-bg); border-color: color-mix(in srgb, var(--gold) 45%, transparent); }
.box-point .box-t { color: color-mix(in srgb, var(--gold) 80%, var(--ink)); }
.box-trap { background: var(--ng-bg); border-color: color-mix(in srgb, var(--ng) 35%, transparent); }
.box-trap .box-t { color: var(--ng); }

.formula { margin: 1.3em 0; border-radius: var(--r); background: var(--ink); color: var(--bg); padding: 14px 16px; text-align: center; }
.formula-l { font-size: 11.5px; font-weight: 800; letter-spacing: .2em; opacity: .7; margin: 0 0 4px; }
.formula-m { font-size: 1.12rem; font-weight: 900; margin: 0; line-height: 1.6; }
.formula-m .en { color: #ffd166; }
.formula-n { font-size: .82rem; opacity: .8; margin: 6px 0 0; line-height: 1.6; }
:root[data-theme="dark"] .formula { background: #2a3348; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .formula { background: #2a3348; color: var(--ink); } }

.ex { list-style: none; margin: 1.2em 0; padding: 0; display: grid; gap: 8px; }
.ex li { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px 12px; }
.ex p { margin: 0; }
.ex-en { font-family: var(--en); font-size: 1.1rem; font-weight: 600; line-height: 1.55; }
.ex-ja { font-size: .9rem; color: var(--ink2); line-height: 1.6; margin-top: 2px !important; }
.ex-n { font-size: .82rem; color: var(--ink3); line-height: 1.65; margin: 6px 0 0 !important; padding-top: 6px; border-top: 1px dashed var(--line); }

.ngs { display: grid; gap: 10px; margin: 1.3em 0; }
.ng { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); }
.ng p { margin: 0; padding: 10px 14px; }
.ng-x, .ng-o { display: flex; gap: 10px; align-items: baseline; font-family: var(--en); font-size: 1.06rem; font-weight: 600; line-height: 1.5; }
.ng-x b, .ng-o b { font-family: var(--jp); font-weight: 900; flex: none; width: 1.2em; text-align: center; }
.ng-x { background: var(--ng-bg); color: var(--ink2); }
.ng-x b { color: var(--ng); }
.ng-x span { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ng) 60%, transparent); }
.ng-x strong { color: var(--ng) !important; }
.ng-o { background: var(--ok-bg); }
.ng-o b, .ng-o strong { color: var(--ok) !important; }
.ng-w { font-size: .87rem; color: var(--ink2); line-height: 1.7; }

.tblw { margin: 1.3em 0; }
.tblw figcaption { font-size: .85rem; font-weight: 800; color: var(--ink2); margin-bottom: 6px; }
.tbl { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .9rem; line-height: 1.6; table-layout: fixed; }
.tbl th, .tbl td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl tr:last-child > * { border-bottom: 0; }
.tbl thead th { background: var(--ink); color: var(--bg); font-size: .8rem; font-weight: 800; }
.tbl tbody th { background: var(--bg2); font-weight: 800; }
.tbl-c3 tbody th { width: 24%; } .tbl-c2 tbody th { width: 36%; }
:root[data-theme="dark"] .tbl thead th { background: #2a3348; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tbl thead th { background: #2a3348; color: var(--ink); } }
@media (max-width: 640px) {
  .tbl-stack, .tbl-stack tbody, .tbl-stack tr, .tbl-stack th, .tbl-stack td { display: block; width: auto !important; }
  .tbl-stack { background: none; border: 0; border-radius: 0; overflow: visible; }
  .tbl-stack thead { display: none; }
  .tbl-stack tr { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; overflow: hidden; }
  .tbl-stack tbody th { border-bottom: 0; padding: 9px 14px; }
  .tbl-stack td { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; border-bottom: 1px dashed var(--line); padding: 8px 14px; }
  .tbl-stack td::before { content: attr(data-l); font-size: .76rem; font-weight: 800; color: var(--ink3); }
  .tbl-stack tr td:last-child { border-bottom: 0; }
}

/* 構文の図解 */
.struct { margin: 1.4em 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 12px; box-shadow: var(--sh1); }
.struct figcaption { font-size: .82rem; font-weight: 800; color: var(--ink2); margin-bottom: 10px; }
.struct-row { display: flex; flex-wrap: wrap; gap: 8px 6px; align-items: stretch; }
.ck { display: inline-grid; grid-template-rows: auto auto auto; justify-items: center; align-content: start; border-radius: 10px; padding: 6px 9px 5px; background: color-mix(in srgb, var(--k) 11%, var(--card)); border-bottom: 3px solid var(--k); max-width: 100%; --k: var(--N); }
.ck-S { --k: var(--S); } .ck-V { --k: var(--V); } .ck-O { --k: var(--O); } .ck-C { --k: var(--C); } .ck-M { --k: var(--M); } .ck-N { --k: var(--N); }
.ck-t { font-family: var(--en); font-weight: 700; font-size: 1.08rem; line-height: 1.4; text-align: center; }
.ck-r { font: 800 .68rem/1.5 var(--en); color: #fff; background: var(--k); border-radius: 99px; padding: 0 8px; margin-top: 3px; letter-spacing: .04em; font-family: var(--en), var(--jp); }
:root[data-theme="dark"] .ck-r { color: #12161f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ck-r { color: #12161f; } }
.ck-j { font-size: .74rem; color: var(--ink2); line-height: 1.45; margin-top: 3px; text-align: center; font-family: var(--jp); font-weight: 600; }
.struct-ja { margin: 12px 0 0; font-size: .92rem; line-height: 1.65; display: flex; gap: 8px; align-items: baseline; }
.struct-ja b { flex: none; font-size: .7rem; background: var(--bg2); border-radius: 6px; padding: 1px 7px; color: var(--ink2); }
.struct-n { margin: 8px 0 0; font-size: .84rem; color: var(--ink2); line-height: 1.7; padding-top: 8px; border-top: 1px dashed var(--line); }

/* スラッシュ読み */
.slashes { display: grid; gap: 10px; margin: 1.3em 0; }
.slash { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 13px 14px; }
.slash p { margin: 0; }
.slash-en { font-family: var(--en); font-size: 1.08rem; font-weight: 600; line-height: 1.7; }
.sl { font-style: normal; color: var(--brand); font-weight: 900; margin: 0 .1em; }
.slash-ja { font-size: .9rem; color: var(--ink2); margin-top: 4px !important; line-height: 1.7; }
.slash-pairs { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px dashed var(--line); counter-reset: sp; }
.slash-pairs li { counter-increment: sp; display: grid; grid-template-columns: 1.5em 1fr 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; line-height: 1.55; align-items: baseline; }
.slash-pairs li:last-child { border-bottom: 0; padding-bottom: 0; }
.slash-pairs li::before { content: counter(sp); font: 800 .72rem var(--en); color: var(--brand); }
.slash-pairs span:first-of-type { font-family: var(--en); font-weight: 600; }
.slash-pairs span:last-of-type { color: var(--ink2); }

.steps { list-style: none; margin: 1.3em 0; padding: 0; counter-reset: stp; }
.steps li { counter-increment: stp; position: relative; padding: 0 0 16px 46px; }
.steps li::before { content: counter(stp); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font: 800 15px/32px var(--en); text-align: center; z-index: 1; }
.steps li::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--line2); }
.steps li:last-child { padding-bottom: 0; } .steps li:last-child::after { display: none; }
.steps p { margin: 0; font-size: .93rem; line-height: 1.75; color: var(--ink2); }
.steps .steps-t { font-weight: 900; color: var(--ink); font-size: 1rem; padding-top: 3px; margin-bottom: 2px; }

.talk { margin: 1.4em 0; display: grid; gap: 10px; }
.talk-l { display: flex; gap: 10px; align-items: flex-start; }
.talk-l p { margin: 0; padding: 11px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.75; max-width: 100%; }
.talk-q { justify-content: flex-end; padding-left: 12%; }
.talk-q p { background: var(--blue-bg); border-top-right-radius: 4px; font-weight: 600; }
.talk-owl { padding-right: 4%; }
.talk-owl p { background: var(--card); border: 1px solid var(--line); border-top-left-radius: 4px; }
.owl { border-radius: 50%; flex: none; object-fit: cover; }
.talk-av { width: 42px; height: 42px; background: var(--gold-bg); border: 2px solid var(--gold); }
.owl-fb { display: grid; place-items: center; font-weight: 900; color: var(--gold); font-size: 16px; }

/* 音読用の英文 */
.passage { margin: 1.5em 0; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--sh1); }
.ps-hd { margin-bottom: 10px; }
.ps-t { font-weight: 900; font-size: 1.1rem; margin: 0 0 6px; }
.ps-m { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.ps-m span { font-size: .72rem; font-weight: 800; background: var(--teal-bg); color: var(--teal); border-radius: 99px; padding: 2px 10px; }
.ps-tools { display: flex; gap: 6px; margin: 0 0 6px; }
.ps-tools .chip { padding: 5px 12px; font-size: 12.5px; }
.ps-lines { list-style: none; margin: 0; padding: 0; }
.ps-lines li { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.ps-lines p { margin: 0; }
.ps-en { font-family: var(--en); font-size: 1.12rem; font-weight: 600; line-height: 1.7; }
.ps-ja { font-size: .86rem; color: var(--ink2); line-height: 1.65; margin-top: 2px !important; }
.passage.no-ja .ps-ja { display: none; } .passage.no-sl .sl { display: none; }
.ps-timer { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; align-items: center; }
.ps-timer .btn { grid-column: 1 / -1; }
.ps-tm { background: var(--bg2); border-radius: 12px; padding: 8px 10px; text-align: center; display: grid; line-height: 1.3; }
.ps-tm b { font: 800 1.5rem var(--en); font-variant-numeric: tabular-nums; }
.ps-tm small { font-size: .7rem; color: var(--ink3); font-weight: 700; }
.ps-msg { font-size: .84rem; color: var(--ink2); margin: 10px 0 0; line-height: 1.7; }
.passage.run .ps-tm b[data-ps-time] { color: var(--brand); }
@media (min-width: 620px) { .ps-timer { grid-template-columns: 1fr 1fr auto; } .ps-timer .btn { grid-column: auto; } }

.summary { margin: 1.6em 0; background: var(--teal-bg); border-radius: var(--r); padding: 16px 18px; border: 1.5px solid color-mix(in srgb, var(--teal) 35%, transparent); }
.summary p { font-weight: 900; color: var(--teal); margin: 0 0 6px; font-size: .93rem; display: flex; gap: 7px; align-items: center; }
.summary ul { margin: 0; padding-left: 1.2em; }
.summary li { margin: .35em 0; font-size: .93rem; font-weight: 600; line-height: 1.7; }

/* 確認問題 */
.quiz { margin: 2.4em 0 1.6em; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 18px 16px; box-shadow: 6px 6px 0 var(--line2); }
.quiz h2 { font-size: 1.3rem; font-weight: 900; margin: 0 0 4px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.quiz h2 small { font-size: .78rem; color: var(--ink3); font-weight: 700; }
.quiz-lead { font-size: .86rem; color: var(--ink2); margin: 0 0 12px; }
.qz-top { display: flex; align-items: center; gap: 10px; font: 800 .8rem var(--en); color: var(--ink3); margin-bottom: 14px; }
.qz-q { font-weight: 800; font-size: 1.02rem; line-height: 1.7; margin: 0 0 12px; }
.qz-q .en { font-size: 1.1rem; }
.qz-kind { display: inline-block; font-size: .7rem; font-weight: 800; background: var(--violet-bg); color: var(--violet); border-radius: 99px; padding: 1px 10px; margin-bottom: 6px; }
.qz-opts { display: grid; gap: 8px; }
.qz-opt { text-align: left; border: 1.5px solid var(--line2); background: var(--bg); border-radius: 13px; padding: 12px 14px; font-family: var(--en), var(--jp); font-weight: 600; font-size: 1rem; line-height: 1.5; display: flex; gap: 10px; align-items: baseline; min-height: 48px; }
.qz-opt i { font: 800 .8rem var(--en); color: var(--ink3); flex: none; }
.qz-opt:not(:disabled):hover { border-color: var(--ink); }
.qz-opt.ok { border-color: var(--ok); background: var(--ok-bg); } .qz-opt.ng { border-color: var(--ng); background: var(--ng-bg); }
.qz-opt:disabled { cursor: default; opacity: 1; color: var(--ink); }
.qz-line { min-height: 58px; border: 1.5px dashed var(--line2); border-radius: 13px; padding: 8px; display: flex; flex-wrap: wrap; gap: 6px; align-content: flex-start; margin-bottom: 10px; background: var(--bg); }
.qz-line:empty::before { content: "下の語を順番にタップ"; color: var(--ink3); font-size: .82rem; padding: 8px; }
.qz-bank { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; min-height: 44px; }
.qz-w { border: 1.5px solid var(--line2); background: var(--card); border-radius: 10px; padding: 8px 13px; font-family: var(--en); font-weight: 700; font-size: 1rem; min-height: 42px; box-shadow: 0 2px 0 var(--line2); }
.qz-line .qz-w { border-color: var(--blue); background: var(--blue-bg); box-shadow: none; }
.qz-inp { display: flex; gap: 8px; }
.qz-inp input { flex: 1; min-width: 0; font: 600 1.05rem var(--en); padding: 11px 14px; border-radius: 13px; border: 1.5px solid var(--line2); background: var(--bg); color: var(--ink); }
.qz-inp input.ok { border-color: var(--ok); background: var(--ok-bg); } .qz-inp input.ng { border-color: var(--ng); background: var(--ng-bg); }
.qz-fb { margin-top: 12px; border-radius: 13px; padding: 12px 14px; font-size: .9rem; line-height: 1.75; animation: pop .25s; }
@keyframes pop { from { transform: scale(.97); opacity: 0; } }
.qz-fb b { display: block; font-size: 1rem; margin-bottom: 2px; }
.qz-fb.ok { background: var(--ok-bg); } .qz-fb.ok b { color: var(--ok); }
.qz-fb.ng { background: var(--ng-bg); } .qz-fb.ng b { color: var(--ng); }
.qz-fb .en { font-weight: 700; }
.qz-next { margin-top: 12px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.qz-end { text-align: center; padding: 8px 0; }
.qz-score { font: 900 3rem/1.1 var(--en); margin: 4px 0; }
.qz-score small { font-size: 1.1rem; color: var(--ink3); }
.qz-end p { font-size: .93rem; color: var(--ink2); }
.qz-miss { text-align: left; font-size: .86rem; background: var(--bg2); border-radius: 12px; padding: 10px 14px 10px 30px; margin: 10px 0; }

.done-box { margin: 1.6em 0; text-align: center; }
.done-box .btn { width: 100%; }
.done-box.is-done .btn { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 2px var(--ok); }
.pager { display: grid; gap: 8px; margin: 1.4em 0 0; }
.pager a { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); line-height: 1.45; }
.pager small { font-size: .74rem; font-weight: 800; color: var(--ink3); letter-spacing: .08em; }
.pager b { font-size: .95rem; }
.pager .nx { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .nx small { color: inherit; opacity: .7; }
.pager a:hover { border-color: var(--brand); }
@media (min-width: 620px) { .pager { grid-template-columns: 1fr 1fr; } .pager .nx { text-align: right; grid-column: 2; } .done-box .btn { width: auto; min-width: 320px; } }

/* ── Q&A・用語・表・本 ── */
.page { padding: 8px 0 48px; }
.page h2 { font-size: clamp(19px, 5vw, 24px); font-weight: 900; margin: 2em 0 .7em; padding-left: 12px; border-left: 6px solid var(--brand); }
.catnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.qa { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; }
.qa summary { list-style: none; cursor: pointer; padding: 14px 44px 14px 46px; position: relative; font-weight: 800; font-size: .98rem; line-height: 1.6; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; position: absolute; left: 13px; top: 13px; width: 25px; height: 25px; border-radius: 8px; background: var(--brand); color: #fff; font: 900 14px/25px var(--en); text-align: center; }
.qa summary::after { content: ""; position: absolute; right: 18px; top: 22px; width: 9px; height: 9px; border-right: 2.5px solid var(--ink3); border-bottom: 2.5px solid var(--ink3); transform: rotate(45deg); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(-135deg); top: 26px; }
.qa-a { padding: 0 16px 16px 46px; font-size: .94rem; position: relative; }
.qa-a::before { content: "A"; position: absolute; left: 13px; top: 2px; width: 25px; height: 25px; border-radius: 8px; background: var(--teal-bg); color: var(--teal); font: 900 14px/25px var(--en); text-align: center; }
.qa-a p { margin: 0 0 .8em; }
.qa-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.qa-links .chip { font-size: 12.5px; padding: 6px 12px; }
.gl { display: grid; gap: 8px; }
.gl-i { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 16px; scroll-margin-top: calc(var(--hd) + 14px); }
.gl-i h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 900; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.gl-i h3 small { font-size: .74rem; color: var(--ink3); font-weight: 700; }
.gl-i p { margin: 0; font-size: .92rem; line-height: 1.75; color: var(--ink2); }
.gl-i .gl-ex { margin-top: 6px; font-size: .9rem; padding: 6px 10px; background: var(--bg2); border-radius: 8px; color: var(--ink); }
.gl-i a.gl-more { font-size: .82rem; font-weight: 800; display: inline-block; margin-top: 6px; }
@media (min-width: 860px) { .gl { grid-template-columns: 1fr 1fr; } }
.filter { position: sticky; top: calc(var(--hd) + 6px); z-index: 5; margin: 10px 0 14px; }
.filter input { width: 100%; font: inherit; font-size: 16px; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); box-shadow: var(--sh1); }
.vt-tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.vt { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: .92rem; }
.vt th, .vt td { padding: 8px 6px 8px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.4; }
.vt thead th { background: var(--ink); color: var(--bg); font-size: .74rem; position: sticky; top: var(--hd); z-index: 2; }
.vt td { font-family: var(--en); font-weight: 600; }
.vt td small { display: block; font-family: var(--jp); font-size: .72rem; color: var(--ink3); font-weight: 600; }
.vt tr.grp th { background: var(--bg2); font-size: .8rem; color: var(--ink2); }
.vt.hide-2 td:nth-child(2) span, .vt.hide-3 td:nth-child(3) span { background: var(--bg2); color: transparent; border-radius: 6px; cursor: pointer; user-select: none; }
.vt td span.show { background: var(--mark) !important; color: var(--ink) !important; }
.books { display: grid; gap: 10px; }
.bk { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.bk b { display: block; font-size: 1rem; line-height: 1.5; }
.bk small { display: block; font-size: .78rem; color: var(--ink3); margin: 2px 0 6px; }
.bk p { margin: 0; font-size: .9rem; color: var(--ink2); line-height: 1.7; }
.bk a { font-size: .82rem; font-weight: 800; display: inline-flex; gap: 4px; align-items: center; margin-top: 8px; }
@media (min-width: 860px) { .books { grid-template-columns: 1fr 1fr; } }

/* レベル診断 */
.ck-wrap { max-width: 640px; margin: 0 auto; }
.ck-card { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 20px 16px; box-shadow: 6px 6px 0 var(--line2); }
.rs-lv { text-align: center; padding: 6px 0 10px; }
.rs-lv small { font-size: .8rem; font-weight: 800; color: var(--ink3); letter-spacing: .1em; }
.rs-lv b { display: block; font-size: 1.5rem; font-weight: 900; line-height: 1.4; margin: 2px 0 6px; }
.rs-bars { display: grid; gap: 8px; margin: 14px 0; }
.rs-bar { display: grid; grid-template-columns: 5.5em 1fr 3em; gap: 8px; align-items: center; font-size: .82rem; font-weight: 700; }
.rs-bar span:last-child { text-align: right; font-family: var(--en); }

/* ── フッター・上へ戻る ── */
.ft { background: #151a26; color: #c9cfdb; margin-top: 30px; padding: 36px 0 calc(22px + env(safe-area-inset-bottom)); }
.ft-in { width: min(100% - 32px, 1120px); margin-inline: auto; display: grid; gap: 26px; }
.ft .logo { color: #fff; margin-bottom: 10px; }
.ft .logo-t small { color: #ffb38f; }
.ft-brand p { font-size: 13px; line-height: 1.8; margin: 0; max-width: 30em; }
.ft-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 16px; }
.ft-nav p { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; color: #8f98aa; margin: 0 0 6px; }
.ft-nav a { display: block; color: #e3e7ef; text-decoration: none; font-size: 13.5px; padding: 5px 0; line-height: 1.5; }
.ft-nav a:hover { text-decoration: underline; }
.ft-c { width: min(100% - 32px, 1120px); margin: 26px auto 0; padding-top: 16px; border-top: 1px solid #2b3345; font-size: 11.5px; color: #8f98aa; line-height: 1.7; }
@media (min-width: 860px) { .ft-in { grid-template-columns: 1fr 1.6fr; } .ft-nav { grid-template-columns: repeat(3, 1fr); } }
.totop { position: fixed; right: max(14px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--ink); color: var(--bg); display: grid; place-items: center; box-shadow: var(--sh2); z-index: 40; animation: pop .2s; }
.totop:hover { background: var(--brand-d); color: #fff; }
.totop .ic { width: 24px; height: 24px; stroke-width: 2.4; }
body.lock { overflow: hidden; }
@media print { .hd, .ft, .totop, .lz-side, .lz-toc, .drawer, .scrim, .pager, .done-box, .readbar, .mtoc { display: none !important; } body { background: #fff; } .quiz { box-shadow: none; } }

/* ── 動く図解 ── */
.flip { transform: scaleX(-1); }
.mo { margin: 1.6em 0; background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 16px 14px 14px; box-shadow: 6px 6px 0 var(--line2); scroll-margin-top: calc(var(--hd) + 14px); }
.mo-hd h3 { font-size: 1.12rem; font-weight: 900; margin: 2px 0 4px; line-height: 1.45; display: block; }
.mo-hd h3::before { display: none; }
.mo-hd p { font-size: .86rem; color: var(--ink2); margin: 0; line-height: 1.7; }
.mo-hd .mo-k { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 800; color: #fff; background: var(--violet); border-radius: 99px; padding: 2px 11px 2px 7px; }
:root[data-theme="dark"] .mo-hd .mo-k { color: #12161f; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mo-hd .mo-k { color: #12161f; } }
.mo-stage { position: relative; margin: 14px 0 0; padding: 18px 10px; min-height: 132px; border-radius: 16px; background-color: var(--bg2); background-image: radial-gradient(var(--line2) 1px, transparent 1px); background-size: 18px 18px; display: grid; gap: 12px; align-content: center; }
.mo-row { display: flex; flex-wrap: wrap; gap: 8px 6px; justify-content: center; align-items: center; min-height: 44px; }
.mo-t { display: inline-block; font-family: var(--en); font-weight: 800; font-size: 1.12rem; line-height: 1.3; padding: 8px 12px; border-radius: 11px; background: var(--card); border: 2px solid var(--k); border-bottom-width: 4px; color: var(--ink); will-change: transform; --k: var(--N); }
.mo-t.ja { font-family: var(--jp); font-size: 1rem; }
.mo-S { --k: var(--S); } .mo-V { --k: var(--V); } .mo-O { --k: var(--O); } .mo-C { --k: var(--C); } .mo-M { --k: var(--M); } .mo-t.mo-N { --k: var(--line2); } .mo-t.mo-X { --k: var(--ng); background: var(--ng-bg); color: var(--ng); } .mo-t.mo-G { --k: var(--gold); background: var(--gold-bg); }
.mo-S, .mo-V, .mo-O, .mo-C, .mo-M { background: color-mix(in srgb, var(--k) 12%, var(--card)); }
.mo-t.dim { opacity: .28; }
.mo-t.pop { box-shadow: 0 0 0 4px color-mix(in srgb, var(--k) 30%, transparent); }
.mo-cap { margin: 12px 2px 0; font-size: .93rem; line-height: 1.75; min-height: 5.2em; }
.mo-ctl { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.mo-ctl .ib { border: 1.5px solid var(--line2); }
.mo-ctl .ib:disabled { opacity: .3; }
.mo-dots { flex: 1; display: flex; gap: 6px; justify-content: center; }
.mo-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line2); transition: all .2s; }
.mo-dots i.on { background: var(--brand); width: 24px; border-radius: 99px; }
.mo-links { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 30px; }
.mo-home { max-width: 760px; margin: 0 auto; }
/* 時間の線 */
.mo-sent { text-align: center; }
.mo-sent b { display: block; font-family: var(--en); font-size: 1.12rem; line-height: 1.5; }
.mo-sent small { display: block; font-size: .84rem; color: var(--ink2); }
.mo-tl { position: relative; height: 96px; margin: 4px 6px 0; }
.mo-ax { position: absolute; left: 0; right: 0; top: 56px; height: 3px; background: var(--ink3); border-radius: 3px; }
.mo-ax::after { content: ""; position: absolute; right: -2px; top: -5px; border: 6.5px solid transparent; border-left-color: var(--ink3); border-right: 0; }
.mo-lb { position: absolute; top: 72px; font-size: .68rem; font-weight: 800; color: var(--ink3); }
.mo-now { position: absolute; top: 22px; bottom: 14px; width: 0; border-left: 2px dashed var(--brand); transition: left .5s cubic-bezier(.2, .8, .2, 1); }
.mo-now::before { content: "今"; position: absolute; top: -20px; left: -12px; width: 24px; text-align: center; font-size: .74rem; font-weight: 900; color: var(--brand-d); }
.mo-span, .mo-dot { position: absolute; --k: var(--V); }
.mo-span { top: 46px; height: 22px; border-radius: 99px; background: color-mix(in srgb, var(--k) 55%, transparent); border: 2px solid var(--k); transform-origin: left; }
.mo-dot { top: 46px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--k); border: 3px solid var(--card); box-shadow: 0 0 0 2px var(--k); }
.mo-span span, .mo-dot span { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .72rem; font-weight: 800; color: var(--ink); background: var(--card); border-radius: 6px; padding: 0 6px; border: 1px solid var(--line); }

/* ── PDF・今日の 1 問・そのほか ── */
.dl { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1.5px solid var(--line2); border-radius: 16px; padding: 13px 16px; text-decoration: none; color: var(--ink); margin: 1.2em 0; }
.dl > .ic:first-child { width: 30px; height: 30px; color: var(--ng); }
.dl span { flex: 1; min-width: 0; display: grid; line-height: 1.45; }
.dl b { font-size: .95rem; } .dl small { font-size: .76rem; color: var(--ink3); }
.dl > .ic:last-child { color: var(--brand); }
.dl:hover { border-color: var(--brand); }
.dls { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dls .dl { margin: 0; }
@media (min-width: 860px) { .dls { grid-template-columns: 1fr 1fr; } }
.today { max-width: 760px; margin: 0 auto; }
.today .qz-from { font-size: .8rem; color: var(--ink3); margin: 10px 0 0; }
.ck-owl, .cta-owl { width: 120px; height: 120px; border-radius: 0; }
.resume i[data-streak]:not(:empty) { margin-left: 8px; background: rgba(255, 255, 255, .16); border-radius: 99px; padding: 1px 8px; }
.demo-2 { display: none; }
@media (min-width: 960px) { .demo-2 { display: block; margin-left: 40px; } .hero-art .demo:first-child { margin-right: 40px; } }
.hero-art .ng-w b { background: none; }

/* ── イラスト ── */
.art { display: block; height: auto; }
.hero-img { width: 100%; border-radius: 24px; box-shadow: var(--sh2); aspect-ratio: 3 / 2; object-fit: cover; }
.hero-art { position: relative; }
.hero-art:has(.hero-img) .demo { margin: -34px 12px 0; position: relative; }
.hero-art:has(.hero-img) .demo-2 { display: none; }
.ph-in { display: grid; gap: 14px; align-items: center; }
.ph-art { width: min(46vw, 200px); margin: 0 auto; border-radius: 24px; mix-blend-mode: multiply; }
:root[data-theme="dark"] .ph-art, :root[data-theme="dark"] .road-art, :root[data-theme="dark"] .tile-art, :root[data-theme="dark"] .pr4-art { mix-blend-mode: normal; }
@media (min-width: 760px) { .ph-in { grid-template-columns: 1fr auto; gap: 32px; } .ph-art { width: 220px; } }
.lh-art { width: 100%; max-width: 560px; margin: 0 auto 18px; border-radius: 20px; aspect-ratio: 4 / 3; object-fit: cover; box-shadow: var(--sh1); border: 1px solid var(--line); }
.lcards a.has-art { grid-template-columns: auto 88px 1fr auto; }
.lc-art { grid-row: span 2; width: 88px; height: 66px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.lcards a.has-art small { grid-column: 3; } .lcards a.has-art .ic { grid-column: 4; }
@media (max-width: 420px) { .lcards a.has-art { grid-template-columns: auto 64px 1fr; } .lc-art { width: 64px; height: 48px; } .lcards a.has-art .ic { display: none; } }
.road-art { grid-row: span 3; width: 84px; height: 84px; border-radius: 18px; object-fit: cover; border: 1px solid var(--line); }
.tiles-art .tile { grid-template-columns: 64px 1fr; gap: 2px 12px; align-items: center; }
.tiles-art .tile > .ic, .tile-art { grid-row: span 2; }
.tile-art { width: 64px; height: 64px; border-radius: 14px; object-fit: cover; }
.tiles-art .tile > .ic { width: 40px; height: 40px; justify-self: center; }
@media (max-width: 520px) { .tiles-art { grid-template-columns: 1fr; } }
.box { position: relative; }
.box-owl { position: absolute; right: 8px; top: -22px; width: 52px; height: 52px; border-radius: 0; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .15)); }
.box .box-t { padding-right: 56px; }
.pr4 { display: grid; gap: 10px; }
.pr4-c { display: grid; grid-template-columns: 96px 1fr; gap: 2px 14px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; text-decoration: none; color: var(--ink); box-shadow: var(--sh1); }
.pr4-art, .pr4-c > .ic { grid-row: span 3; width: 96px; height: 96px; border-radius: 16px; object-fit: cover; }
.pr4-c > .ic { padding: 26px; color: var(--brand); background: var(--brand-bg); }
.pr4-c .tag { justify-self: start; background: var(--brand-bg); color: var(--brand-d); }
.pr4-c b { font-size: 1.1rem; font-weight: 900; } .pr4-c small { font-size: .82rem; color: var(--ink2); line-height: 1.65; }
.pr4-c:hover { border-color: var(--brand); transform: translateY(-2px); }
@media (min-width: 760px) { .pr4 { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1100px) { .pr4 { grid-template-columns: repeat(4, 1fr); } .pr4-c { grid-template-columns: 1fr; text-align: left; } .pr4-art, .pr4-c > .ic { grid-row: auto; width: 100%; height: auto; aspect-ratio: 1; } }
@media (min-width: 1100px) { .hd-nav a { padding: 8px 10px; } }
@media (min-width: 1000px) and (max-width: 1240px) { .hd-nav a { padding: 8px 6px; font-size: 13px; } .hd-cta span { display: none; } .hd-cta { padding: 10px; } .logo-t small { display: none; } }

/* ── ゲーム ── */
.g-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; } .g-bar p { margin: 0; font-size: .88rem; color: var(--ink2); }
.g-hub { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (min-width: 760px) { .g-hub { grid-template-columns: repeat(3, 1fr); gap: 14px; } } @media (min-width: 1100px) { .g-hub { grid-template-columns: repeat(4, 1fr); } }
.g-card { text-align: left; display: grid; gap: 4px; align-content: start; background: var(--card); border: 2px solid var(--ink); border-radius: 18px; padding: 14px 13px; box-shadow: 4px 4px 0 var(--line2); transition: transform .1s, box-shadow .1s; min-height: 148px; }
.g-card:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 var(--k, var(--brand)); }
.g-card:active { transform: translate(3px, 3px); box-shadow: none; }
.g-card b { font-size: 1rem; font-weight: 900; line-height: 1.4; } .g-card small { font-size: .76rem; color: var(--ink2); line-height: 1.55; }
.g-tag { justify-self: start; font-size: .66rem; font-weight: 800; border-radius: 99px; padding: 1px 9px; background: var(--k, var(--brand)); color: #fff; }
.g-speed { --k: var(--coral); } .g-order { --k: var(--blue); } .g-hunt { --k: var(--teal); } .g-memory { --k: var(--violet); }
.g-best { margin-top: auto; font-size: .72rem; color: var(--ink3); font-weight: 700; } .g-best i { font-style: normal; font: 800 .95rem var(--en); color: var(--brand-d); }
.g-play { max-width: 640px; margin: 0 auto; scroll-margin-top: calc(var(--hd) + 10px); }
.g-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; } .g-top b { font-size: 1.05rem; }
.g-hud { position: sticky; top: calc(var(--hd) + 4px); z-index: 3; background: var(--bg); padding: 6px 0 8px; }
.g-time { height: 12px; border-radius: 99px; background: var(--bg2); overflow: hidden; border: 1px solid var(--line); } .g-time i { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--green)); border-radius: 99px; transition: width .1s linear; } .g-time i.low { background: var(--ng); }
.g-hud.mem .g-time { display: none; }
.g-stats { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: .84rem; font-weight: 700; color: var(--ink2); } .g-stats b { font: 900 1.3rem var(--en); color: var(--ink); } .g-stats span:last-child { color: var(--ng); letter-spacing: .1em; font-size: 1.05rem; }
.g-combo { color: var(--gold); font-weight: 900; }
.g-stage { background: var(--card); border: 2px solid var(--ink); border-radius: 22px; padding: 18px 14px; box-shadow: 6px 6px 0 var(--line2); min-height: 300px; }
.g-q { text-align: center; min-height: 104px; display: grid; align-content: center; gap: 6px; margin-bottom: 14px; }
.g-q p { margin: 0; font: 800 1.35rem/1.5 var(--en), var(--jp); } .g-q.big p { font-size: 2.2rem; } .g-q small { color: var(--ink2); font-size: .9rem; }
.g-blank { display: inline-block; width: 3.2em; height: 1.25em; border-bottom: 4px solid var(--brand); vertical-align: -.2em; margin: 0 .15em; background: var(--brand-bg); border-radius: 6px 6px 0 0; }
.g-opts { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; } .g-opts.n3 { grid-template-columns: repeat(3, 1fr); } .g-opts.n5 { grid-template-columns: repeat(6, 1fr); } .g-opts.n5 button { grid-column: span 2; } .g-opts.n5 button:nth-child(4) { grid-column: 2 / span 2; }
.g-opts button { min-height: 60px; border-radius: 16px; border: 2px solid var(--ink); background: var(--bg); font: 800 1.12rem var(--en), var(--jp); box-shadow: 0 4px 0 var(--ink); padding: 8px 6px; line-height: 1.3; }
.g-opts button:active:not(:disabled) { transform: translateY(4px); box-shadow: none; }
.g-opts button.ok { background: var(--ok); border-color: var(--ok); color: #fff; box-shadow: none; } .g-opts button.ng { background: var(--ng); border-color: var(--ng); color: #fff; box-shadow: none; animation: shake .3s; }
.g-opts button:disabled { color: var(--ink); cursor: default; } .g-opts button.ok:disabled, .g-opts button.ng:disabled { color: #fff; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.g-why { margin: 12px 0 0; padding: 10px 14px; border-radius: 12px; background: var(--ng-bg); font-size: .92rem; font-weight: 700; text-align: center; line-height: 1.6; }
.g-stage .qz-line.ok { border-color: var(--ok); background: var(--ok-bg); } .g-stage .qz-line.ng { border-color: var(--ng); background: var(--ng-bg); animation: shake .3s; } .g-stage .qz-bank { justify-content: center; }
.g-role { display: inline-block; padding: 2px 14px; border-radius: 99px; color: #fff; background: var(--k); } .r-S { --k: var(--S); } .r-V { --k: var(--V); } .r-O { --k: var(--O); } .r-C { --k: var(--C); } .r-M { --k: var(--M); }
.g-chunks { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.g-chunks button { position: relative; border-radius: 14px; border: 2px solid var(--line2); border-bottom-width: 5px; background: var(--bg); font: 800 1.12rem var(--en); padding: 12px 14px; min-height: 54px; --k: var(--line2); }
.g-chunks button:disabled { color: var(--ink); border-color: var(--k); background: color-mix(in srgb, var(--k) 14%, var(--card)); } .g-chunks button i { position: absolute; top: -10px; right: -6px; font: 800 .7rem var(--en); font-style: normal; background: var(--k); color: #fff; border-radius: 99px; padding: 1px 7px; } .g-chunks button.ng { animation: shake .3s; outline: 3px solid var(--ng); }
.g-mem { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.g-mem button { aspect-ratio: 1; border-radius: 14px; border: 2px solid var(--ink); background: var(--violet); color: transparent; display: grid; place-content: center; gap: 2px; padding: 2px; font: 800 1rem var(--en); box-shadow: 0 3px 0 var(--ink); }
.g-mem button small { font: 700 .62rem var(--jp); } .g-mem button.on, .g-mem button.done { background: var(--card); color: var(--ink); } .g-mem button.done { border-color: var(--ok); background: var(--ok-bg); box-shadow: none; }
.g-res { text-align: center; } .g-res img { width: 120px; height: 120px; } .g-rank { font: 900 4.5rem/1 var(--en); margin: 0; } .r-S.g-rank { color: var(--gold); } .r-A.g-rank { color: var(--brand); } .r-B.g-rank { color: var(--blue); } .r-C.g-rank { color: var(--ink3); }
.g-new { display: inline-block; background: var(--gold); color: #fff; font-weight: 900; font-size: .8rem; border-radius: 99px; padding: 2px 14px; margin: 6px 0 0; } .g-sc { font: 900 2rem var(--en), var(--jp); margin: 6px 0 0; } .g-sub { color: var(--ink2); font-size: .88rem; margin: 2px 0 0; }
.g-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 16px; }
.g-miss { text-align: left; margin-top: 20px; border-top: 1px dashed var(--line2); padding-top: 12px; } .g-miss p { font-weight: 800; font-size: .88rem; margin: 0 0 6px; } .g-miss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .g-miss li { background: var(--bg2); border-radius: 10px; padding: 8px 12px; font: 700 .98rem var(--en); } .g-miss small { display: block; font: 500 .8rem/1.6 var(--jp); color: var(--ink2); }

/* ── 瞬間英作文 ── */
.sk-sec h2 { margin-bottom: .4em; } .sk-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; } .sk-prog { font-size: .8rem; font-weight: 800; color: var(--ok); }
.sk-list { list-style: none; margin: 0; padding: 0; counter-reset: sk; display: grid; gap: 6px; }
.sk-i { counter-increment: sk; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px 9px 40px; position: relative; display: grid; gap: 4px; }
.sk-i::before { content: counter(sk); position: absolute; left: 12px; top: 10px; font: 800 .8rem var(--en); color: var(--ink3); }
.sk-ja { font-weight: 700; font-size: .95rem; line-height: 1.6; }
.sk-en { text-align: left; border: 0; background: var(--bg2); border-radius: 8px; padding: 6px 10px; font: 600 1rem var(--en); min-height: 36px; position: relative; }
.sk-en span { visibility: hidden; } .sk-en.show span, .show-all .sk-en span { visibility: visible; }
.sk-en:not(.show)::after { content: "タップで英文"; position: absolute; inset: 0; display: grid; place-items: center; font: 700 .74rem var(--jp); color: var(--ink3); } .show-all .sk-en::after { display: none; }
.sk-dlg { position: fixed; inset: 0; z-index: 95; background: rgba(15, 18, 28, .6); display: grid; place-items: center; padding: 14px; }
.sk-card { width: min(100%, 560px); background: var(--bg); border-radius: 24px; padding: 18px 18px 22px; box-shadow: var(--sh2); text-align: center; }
.sk-hd { display: flex; justify-content: space-between; align-items: center; } .sk-n { font: 800 .86rem var(--en), var(--jp); color: var(--ink3); margin: 0; }
.sk-q { font-size: 1.4rem; font-weight: 900; line-height: 1.6; margin: 18px 0 8px; min-height: 3.2em; } .sk-h { font-size: .84rem; color: var(--ink2); margin: 0; }
.sk-a { margin: 14px 0 0; background: var(--ok-bg); border-radius: 14px; padding: 12px; } .sk-a p { font: 800 1.3rem/1.5 var(--en); margin: 0; } .sk-a small { display: block; font: 500 .86rem var(--en), var(--jp); color: var(--ink2); margin-top: 4px; }

/* ── 構文ドリル・例文集・計画・マイページ ── */
.dr-prog { font: 800 .8rem var(--en); color: var(--ok); margin-left: 6px; }
.dr-i { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 12px 50px; margin-bottom: 10px; }
.dr-i.is-done { border-color: var(--ok); } .dr-n { position: absolute; left: 12px; top: 13px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg2); font: 800 .8rem/28px var(--en); text-align: center; margin: 0; } .dr-i.is-done .dr-n { background: var(--ok); color: #fff; }
.dr-en { font: 700 1.14rem/1.6 var(--en); margin: 0 0 6px; } .dr-q { font-size: .86rem; color: var(--ink2); margin: 0 0 8px; display: flex; gap: 6px; align-items: flex-start; line-height: 1.6; } .dr-q .ic { color: var(--gold); margin-top: .15em; }
.dr-i summary { cursor: pointer; font-weight: 800; font-size: .88rem; color: var(--brand-d); padding: 6px 0; } .dr-i .struct { box-shadow: none; margin: 8px 0; margin-left: -36px; } .dr-ft { display: flex; flex-wrap: wrap; gap: 6px; margin-left: -36px; }
.rb { background: var(--card); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 8px; padding: 0 14px; } .rb summary { cursor: pointer; padding: 13px 0; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; font-size: .96rem; line-height: 1.5; } .rb summary small { color: var(--ink3); font: 700 .78rem var(--en), var(--jp); white-space: nowrap; } .rb[open] { padding-bottom: 12px; } .rb .ex li { background: var(--bg); }
.pl-w h2 { margin-top: 1.4em; } .pl-list li { display: grid; grid-template-columns: 4em 1fr; align-items: center; gap: 4px; border-bottom: 1px dashed var(--line); } .pl-list small { font-size: .74rem; font-weight: 800; color: var(--ink3); } .pl-list a { font-size: .95rem; } .pl-rest span { font-size: .86rem; color: var(--ink2); padding: 8px; line-height: 1.6; }
.my-top { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 20px; box-shadow: var(--sh1); }
.my-ring { position: relative; width: 132px; height: 132px; display: grid; place-items: center; } .my-ring svg { position: absolute; inset: 0; } .my-ring b { font: 900 2.2rem var(--en); } .my-ring small { font-size: 1rem; }
.my-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; flex: 1; min-width: 240px; } .my-nums div { background: var(--bg2); border-radius: 14px; padding: 10px 6px; text-align: center; display: grid; } .my-nums b { font: 900 1.7rem var(--en); } .my-nums small { font-size: .7rem; color: var(--ink2); font-weight: 700; }
.my-secs { display: grid; gap: 6px; } .my-secs a { display: grid; grid-template-columns: 9.5em 1fr 4em; gap: 10px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; text-decoration: none; color: var(--ink); font-size: .86rem; font-weight: 700; line-height: 1.4; } .my-secs b { text-align: right; font-family: var(--en); }
.my-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; max-width: 320px; } .my-cal i { aspect-ratio: 1; border-radius: 8px; background: var(--bg2); border: 1px solid var(--line); } .my-cal i.on { background: var(--brand); border-color: var(--brand); }
.my-note { font-size: .86rem; color: var(--ink2); } .my-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .my-list li { display: flex; justify-content: space-between; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: .92rem; } .my-list b { font-family: var(--en), var(--jp); white-space: nowrap; }
.my-cert { display: flex; flex-wrap: wrap; gap: 8px; } .my-cert input { flex: 1; min-width: 200px; font: inherit; font-size: 16px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line2); background: var(--card); color: var(--ink); } [data-my] canvas { width: 100%; height: auto; margin-top: 12px; border-radius: 12px; border: 1px solid var(--line); }

.quick { position: relative; margin: 12px 0 0; background: var(--ink); color: var(--bg); border-radius: var(--r); padding: 15px 18px 15px; }
.quick p { font-size: .8rem; font-weight: 800; letter-spacing: .06em; color: #ffcf7a; margin: 0 0 6px; padding-right: 60px; }
.quick ol { margin: 0; padding-left: 1.4em; } .quick li { font-size: .93rem; font-weight: 700; line-height: 1.7; margin: 3px 0; }
.quick .en { color: #ffe2a8; } .quick strong { background: none; color: #ffcf7a; } .quick mark { background: none; color: #ffcf7a; }
.quick-owl { position: absolute; right: 10px; top: -26px; width: 64px; height: 64px; border-radius: 0; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
:root[data-theme="dark"] .quick { background: #2a3348; color: var(--ink); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .quick { background: #2a3348; color: var(--ink); } }


/* ── 第 2 期：色・コース一覧メニュー ── */
.cn-violet, .road > li.c-violet, .ph.c-violet { --c: var(--violet); --cb: var(--violet-bg); }
.cn-orange, .road > li.c-orange, .ph.c-orange { --c: var(--orange); --cb: var(--orange-bg); }
.cn-pink, .road > li.c-pink, .ph.c-pink { --c: var(--pink); --cb: var(--pink-bg); }
.cn-navy, .road > li.c-navy, .ph.c-navy { --c: var(--navy); --cb: var(--navy-bg); }
.cn-sky, .road > li.c-sky, .ph.c-sky { --c: var(--sky); --cb: var(--sky-bg); }
.cn-brown, .road > li.c-brown, .ph.c-brown { --c: var(--brown); --cb: var(--brown-bg); }
.cn-red, .road > li.c-red, .ph.c-red { --c: var(--red); --cb: var(--red-bg); }
.mega { position: static; }
.mega > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 800; font-size: 14.5px; padding: 8px 12px; border-radius: 10px; white-space: nowrap; user-select: none; }
.mega > summary::-webkit-details-marker { display: none; }
.mega > summary .ic { width: 15px; height: 15px; transform: rotate(90deg); transition: transform .2s; }
.mega[open] > summary { background: var(--bg2); } .mega[open] > summary .ic { transform: rotate(-90deg); }
.mega > summary:hover { background: var(--bg2); } .mega > summary[aria-current] { color: var(--brand-d); }
.mega-p { position: absolute; left: 0; right: 0; top: 100%; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -18px rgba(20, 24, 40, .35); padding: 22px max(20px, calc((100vw - 1180px) / 2)) 18px; animation: megaIn .18s ease-out; z-index: 5; max-height: calc(100vh - 70px); overflow: auto; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-6px); } }
.mega-g { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.hd-nav .mega-a { display: flex; gap: 11px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; color: var(--ink); white-space: normal; font-size: inherit; }
.hd-nav .mega-a:hover { background: var(--cb); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.hd-nav .mega-a[aria-current] { background: var(--cb); color: var(--ink); }
.mega-ic { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--cb); color: var(--c); } .mega-ic .ic { width: 21px; height: 21px; }
.mega-a b { display: block; font-size: 15px; font-weight: 800; line-height: 1.35; } .mega-a small { display: block; font-size: 12px; color: var(--ink3); font-weight: 500; line-height: 1.45; }
.mega-f { display: flex; flex-wrap: wrap; gap: 4px 6px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.hd-nav .mega-f a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 99px; background: var(--bg2); color: var(--ink2); } .mega-f a .ic { width: 15px; height: 15px; }
.hd-nav .mega-f a:hover { background: var(--brand-bg); color: var(--brand-d); }
.hd { position: sticky; }
@media (prefers-reduced-motion: reduce) { .mega-p { animation: none; } }

/* ── Q&A：一覧と 1 問 1 ページ ── */
.qx-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; margin: 18px 0 30px; }
.qx-cats a { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.qx-cats a:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: 0 10px 22px -14px rgba(226, 85, 47, .6); }
.qx-cats b { font-size: .92rem; line-height: 1.45; } .qx-cats small { flex: none; font: 800 .74rem var(--en), var(--jp); color: var(--brand-d); background: var(--brand-bg); border-radius: 99px; padding: 2px 9px; }
.qx-sec { margin: 0 0 34px; scroll-margin-top: calc(var(--hd) + 14px); }
.qx-sec > h2 { display: flex; align-items: baseline; gap: 10px; font-size: 1.25rem; margin: 0 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.qx-sec > h2 small { font: 800 .8rem var(--en), var(--jp); color: var(--ink3); }
.qx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
@media (min-width: 900px) { .qx .qx-list { grid-template-columns: 1fr 1fr; } }
.qx-list a { display: flex; gap: 12px; align-items: flex-start; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 13px 12px 13px 14px; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.qx-list a:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand-bg) 45%, var(--card)); }
.qx-list a > span:nth-child(2) { flex: 1; min-width: 0; } .qx-list a > .ic { flex: none; width: 16px; height: 16px; color: var(--ink3); margin-top: .35em; }
.qx-list b { display: block; font-size: .97rem; line-height: 1.55; font-weight: 800; }
.qx-list small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .82rem; color: var(--ink2); line-height: 1.6; margin-top: 4px; }
.qx-q { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--brand); color: #fff; font: 900 15px/28px var(--en); text-align: center; }
.qp-hd { background: radial-gradient(700px 300px at 90% -20%, color-mix(in srgb, var(--gold) 20%, transparent), transparent 70%), var(--bg2); border-bottom: 1px solid var(--line); padding: 22px 0 26px; }
.qp-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; color: var(--brand-d); margin: 10px 0 10px; } .qp-cat .ic { width: 16px; height: 16px; }
.qp-hd h1 { display: flex; gap: 14px; align-items: flex-start; font-size: clamp(1.35rem, 4.6vw, 1.95rem); line-height: 1.5; margin: 0; font-weight: 900; }
.qp-q, .qp-a { flex: none; width: 44px; height: 44px; border-radius: 14px; font: 900 24px/44px var(--en); text-align: center; color: #fff; margin: 0; }
.qp-q { background: var(--brand); box-shadow: 0 6px 14px -6px var(--brand); } .qp-a { background: var(--blue); box-shadow: 0 6px 14px -6px var(--blue); }
.qp-short { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 2px solid var(--blue); border-radius: 18px; padding: 16px 18px; margin: 0 0 26px; box-shadow: 0 14px 30px -22px rgba(37, 99, 201, .7); }
.qp-short p { margin: 0; } .qp-short .qp-k { font-size: .76rem; font-weight: 900; letter-spacing: .12em; color: var(--blue); margin-bottom: 3px; }
.qp-short div > p:last-child { font-size: 1.06rem; font-weight: 700; line-height: 1.8; }
.qp-body > h3:first-child { margin-top: 0; }
.qp-links, .qp-rel { margin-top: 34px; } .qp-links h2, .qp-rel h2 { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; margin: 0 0 12px; } .qp-links h2 .ic { width: 20px; height: 20px; color: var(--brand); }
@media (max-width: 520px) { .qp-q, .qp-a { width: 36px; height: 36px; font-size: 20px; line-height: 36px; border-radius: 11px; } .qp-hd h1 { gap: 10px; } .qp-short { padding: 14px; gap: 10px; } }


/* ── 英文の音声ボタン ── */
.au { float: right; margin: -2px -4px 4px 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg2); color: var(--brand-d); display: grid; place-items: center; cursor: pointer; transition: transform .12s, background .15s, color .15s; }
.au .ic { width: 15px; height: 15px; margin-left: 2px; }
.au:hover { background: var(--brand-bg); transform: scale(1.06); } .au.on { background: var(--brand); border-color: var(--brand); color: #fff; animation: auPulse 1s ease-in-out infinite; }
@keyframes auPulse { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 22%, transparent); } }
.chip-au { background: var(--brand); color: #fff; border-color: var(--brand); } .chip-au .ic { width: 14px; height: 14px; } .chip-au.on { background: var(--ink); border-color: var(--ink); }
.ps-lines li.now { background: color-mix(in srgb, var(--mark) 55%, transparent); border-radius: 10px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--mark) 55%, transparent); }
@media print { .au, [data-au-all], [data-au-rate] { display: none !important; } }
.pn { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 30px; }
.pn a { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-decoration: none; color: var(--ink); min-width: 0; }
.pn a:hover { border-color: var(--brand); } .pn a span { min-width: 0; flex: 1; } .pn small { display: block; font-size: .72rem; color: var(--ink3); font-weight: 700; }
.pn b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .86rem; line-height: 1.5; }
.pn .ic { flex: none; width: 16px; height: 16px; color: var(--ink3); } .pn-p .ic { transform: rotate(180deg); } .pn-n { text-align: right; }
@media (max-width: 520px) { .pn { grid-template-columns: 1fr; } }


/* ── トップ：第 2 期 ── */
.cg { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 620px) { .cg { grid-template-columns: 1fr 1fr; } } @media (min-width: 1000px) { .cg { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.cg > li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh1); transition: transform .15s, border-color .15s, box-shadow .15s; }
.cg > li:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 18px 34px -22px var(--c); }
.cg a { display: flex; gap: 14px; align-items: center; padding: 14px 16px 14px 14px; color: var(--ink); text-decoration: none; height: 100%; }
.cg-art { width: 84px; height: 84px; border-radius: 18px; object-fit: cover; flex: none; background: var(--cb); }
.cg-ic { width: 84px; height: 84px; border-radius: 18px; flex: none; display: grid; place-items: center; background: var(--cb); color: var(--c); } .cg-ic .ic { width: 36px; height: 36px; }
.cg-b { display: grid; gap: 1px; min-width: 0; flex: 1; } .cg-b small { font-size: 11.5px; font-weight: 800; color: var(--c); } .cg-b b { font-size: 17px; font-weight: 900; line-height: 1.4; }
.cg-b > span:not(.road-m) { font-size: 13px; color: var(--ink2); line-height: 1.6; } .cg-b .road-m { margin-top: 6px; }
.kyo { display: grid; gap: 18px; align-items: center; background: linear-gradient(135deg, #1d2a44, #2f4a6b 60%, #3f6b7a); color: #fff; border-radius: 28px; padding: 26px 22px; text-decoration: none; overflow: hidden; box-shadow: 0 24px 50px -28px rgba(20, 30, 60, .8); }
.kyo .k { color: #ffcf8a; font: 800 12px var(--en); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 6px; }
.kyo h2 { font-size: clamp(21px, 5.4vw, 30px); font-weight: 900; line-height: 1.4; margin: 0 0 10px; } .kyo h2 span { font: italic 700 .8em Georgia, "Times New Roman", serif; color: #ffe2b8; letter-spacing: .02em; }
.kyo p { color: #d7e0ee; font-size: 14.5px; line-height: 1.85; margin: 0 0 16px; } .kyo .btn { background: #ffb347; color: #1d2a44; }
.kyo-art { width: 100%; max-width: 300px; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; justify-self: center; box-shadow: 0 16px 30px -16px rgba(0, 0, 0, .6); }
@media (min-width: 800px) { .kyo { grid-template-columns: 1.4fr .6fr; padding: 38px 40px; } }
.pr8 { grid-template-columns: 1fr 1fr; } @media (min-width: 900px) { .pr8 { grid-template-columns: repeat(4, 1fr); } } @media (max-width: 420px) { .pr8 { grid-template-columns: 1fr; } }
.pr8 .pr4-c .tag { white-space: normal; }
.gm3 { display: grid; gap: 14px; } @media (min-width: 800px) { .gm3 { grid-template-columns: repeat(3, 1fr); } }
.gm3-c { position: relative; display: grid; gap: 6px; align-content: start; background: linear-gradient(160deg, #1c2333, #2b2f52); color: #fff; border-radius: 22px; padding: 18px; text-decoration: none; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.gm3-c:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(60, 60, 140, .9); }
.gm3-art { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 14px; margin-bottom: 6px; } .gm3-ic { height: 90px; display: grid; place-items: center; color: #ffb347; } .gm3-ic .ic { width: 46px; height: 46px; }
.gm3-c .tag { justify-self: start; background: #ffb347; color: #1c2333; font-size: 11.5px; font-weight: 900; border-radius: 99px; padding: 2px 10px; }
.gm3-c b { font-size: 19px; font-weight: 900; } .gm3-c small { color: #c9d0e4; font-size: 13.5px; line-height: 1.7; }
.gm3-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font-weight: 900; color: #ffb347; } .gm3-go .ic { width: 16px; height: 16px; }
.demo2 { display: grid; gap: 12px; margin-top: 18px; } @media (min-width: 860px) { .demo2 { grid-template-columns: 1fr 1fr; } }
.home .qx-cats { margin-bottom: 18px; }

/* ===== スマホのトップを短く（横スワイプ・詰めた並び） ===== */
@media (max-width: 640px) {
  .home .sec { padding: 26px 0; }
  .home .sec-hd { margin-bottom: 12px; }
  .home .sec-hd p { font-size: 13.5px; line-height: 1.7; margin-top: 4px; }
  /* 横スワイプの棚 */
  .home .cg, .home .pr8, .home .gm3, .home .feats, .home .sites, .home .demo2 {
    display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-left: -16px; margin-right: -16px; padding: 4px 16px 14px; scroll-padding: 0 16px; scrollbar-width: none;
  }
  .home .cg::-webkit-scrollbar, .home .pr8::-webkit-scrollbar, .home .gm3::-webkit-scrollbar, .home .feats::-webkit-scrollbar, .home .sites::-webkit-scrollbar, .home .demo2::-webkit-scrollbar { display: none; }
  .home .cg > *, .home .pr8 > *, .home .gm3 > *, .home .feats > *, .home .sites > *, .home .demo2 > * { flex: 0 0 78%; scroll-snap-align: start; min-width: 0; margin: 0; }
  .home .demo2 > * { flex-basis: 88%; }
  .home .swipe-hint { display: flex; }
  /* コース：絵を上、文字を下の縦長カードに */
  .home .cg a { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; }
  .home .cg .cg-art { width: 100%; height: 130px; object-fit: cover; border-radius: 14px; }
  /* 練習・ゲーム：絵を低く */
  .home .pr4-art, .home .gm3-art { width: 100%; height: 140px; object-fit: cover; }
  .home .pr4-c small, .home .gm3-c small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  /* 悩み・Q&A 分類：2 列のボタン */
  .home .worries { grid-template-columns: 1fr 1fr; gap: 6px; }
  .home .worry { padding: 10px 10px; font-size: 13px; line-height: 1.45; min-height: 0; }
  .home .worry .ic { display: none; }
  .home .qx-cats { grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; }
  .home .qx-cats a { flex-direction: column; align-items: flex-start; gap: 4px; padding: 9px 10px; }
  .home .qx-cats b { font-size: 12.5px; }
  /* 便利なページ：3 列の小さなタイル */
  .home .tiles { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .home .tile { padding: 8px; gap: 4px; border-radius: 12px; text-align: center; }
  .home .tile-art { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 9px; }
  .home .tile b { font-size: 11.5px; line-height: 1.35; }
  .home .tile small { display: none; }
  /* 教科書の帯 */
  .home .kyo { padding: 20px 18px; gap: 12px; }
  .home .kyo-art { max-width: 150px; }
  .home .kyo p { font-size: 13.5px; line-height: 1.75; margin-bottom: 12px; }
  /* 多読サイト */
  .home .site small { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .home .feat { padding: 14px; }
}
.swipe-hint { display: none; align-items: center; gap: 4px; font-size: 12px; color: var(--ink3); font-weight: 700; margin: -4px 0 4px; }
@media (max-width: 640px) {
  /* トップ画：題のすぐ下に動く絵、説明文は畳む、数字は 3 列で小さく */
  .home .hx-copy { display: contents; }
  .home .hx-in { gap: 14px; }
  .home .hx-h1 { order: 1; margin-bottom: 0; }
  .home .hx-visual { order: 2; }
  .home .hx-cta { order: 3; margin: 0; }
  .home .hx-stats { order: 4; margin: 0; }
  .home .hx-free { order: 5; margin: 0; }
  .home .hx-lead { display: none; }
  .home .hx-stats > div { padding: 6px 6px 4px 0; }
  .home .hx-stats b { font-size: 20px; }
  /* 悩み・Q&A 分類：3 段の横スワイプ */
  .home .worries, .home .qx-cats { grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -16px; margin-right: -16px; padding: 4px 16px 12px; scroll-padding: 0 16px; scrollbar-width: none; }
  .home .worries > *, .home .qx-cats > * { scroll-snap-align: start; }
  .home .worries::-webkit-scrollbar, .home .qx-cats::-webkit-scrollbar { display: none; }
  /* 動く図解：大きい図は 1 つだけに */
  .home .mo-home { display: none; }
  .home .tiles { grid-template-columns: repeat(4, 1fr); }
  .home .tile b { font-size: 10.5px; }
}
@media (max-width: 640px) {
  .home .tiles { grid-template-columns: none; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 29%; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -16px; margin-right: -16px; padding: 4px 16px 12px; scroll-padding: 0 16px; scrollbar-width: none; }
  .home .tiles > * { scroll-snap-align: start; }
  .home .tiles::-webkit-scrollbar { display: none; }
  .home .tile b { font-size: 11.5px; }
}
