/* 学びの選び方 — a study notebook that reads like manga.
   Graph paper, ink lines, blue pen for 大学受験, red pen for TOEIC, one highlighter.
   Display: Dela Gothic One. Lettering: Zen Antique (manga balloons). Body: BIZ UDPGothic (textbook UD).
   All faces are self-hosted subsets (make_fonts.py). */
@font-face { font-family:"Dela Gothic One"; src:url(/assets/fonts/dela-gothic-one.woff2) format("woff2"); font-display:swap; }
@font-face { font-family:"Zen Antique"; src:url(/assets/fonts/zen-antique.woff2) format("woff2"); font-display:swap; }
@font-face { font-family:"BIZ UDPGothic"; src:url(/assets/fonts/biz-udpgothic.woff2) format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"BIZ UDPGothic"; src:url(/assets/fonts/biz-udpgothic-bold.woff2) format("woff2"); font-weight:700; font-display:swap; }

:root {
  --ink:#15171f; --ink-soft:#383d4c; --muted:#596074; --line:#d3d8e4; --grid:#e2e6f0;
  --paper:#f2f4f9; --sheet:#fff; --pen:#2340d0; --red:#d4302a; --marker:#ffe14d; --hl:#ffe14d;
  --accent:var(--pen); --on-accent:#fff; --shadow:var(--ink); --mark-line:var(--sheet);
  --tone:#15171f1f;
  --display:"Dela Gothic One","Hiragino Sans","Hiragino Kaku Gothic ProN",sans-serif;
  --letter:"Zen Antique","Hiragino Mincho ProN","Yu Mincho",serif;
  --body:"BIZ UDPGothic","Hiragino Sans","Hiragino Kaku Gothic ProN","Noto Sans JP","Yu Gothic",Meiryo,sans-serif;
  --frame:3px; --radius:12px; --max:1240px; --gutter:clamp(16px,4vw,48px);
  color-scheme:light;
  font-family:var(--body); color:var(--ink); background:var(--paper); font-synthesis:none;
}
[data-topic="university"] { --accent:var(--pen); }
[data-topic="toeic"] { --accent:var(--red); }

* { box-sizing:border-box; }
body {
  margin:0; font-size:16px; line-height:1.85; font-feature-settings:"palt" 0;
  background-color:var(--paper);
  background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);
  background-size:28px 28px; background-position:-1px -1px;
}
a { color:var(--ink); text-decoration-line:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:.28em; }
a:hover { text-decoration-thickness:4px; }
a:focus-visible,button:focus-visible,summary:focus-visible,[tabindex]:focus-visible { outline:3px solid var(--pen); outline-offset:4px; border-radius:4px; }
button { font:inherit; cursor:pointer; }
h1,h2,h3,p,figure { margin:0; }
h1,h2,h3 { line-height:1.5; overflow-wrap:anywhere; word-break:auto-phrase; text-wrap:balance; }
h1,h2 { font-family:var(--display); font-weight:400; letter-spacing:.01em; }
h3 { font-size:1.15rem; font-weight:700; }
p { overflow-wrap:anywhere; }
strong,b { font-weight:700; }
img { max-width:100%; height:auto; }
mark { color:inherit; background:linear-gradient(transparent 56%,var(--hl) 56%,var(--hl) 92%,transparent 92%); padding:0 .06em; -webkit-box-decoration-break:clone; box-decoration-break:clone; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
[hidden] { display:none !important; }
.skip { position:absolute; top:-100px; left:16px; background:var(--sheet); padding:12px 20px; z-index:20; border:var(--frame) solid var(--ink); }
.skip:focus { top:8px; }

/* Header: the cover strip of a notebook. */
.site-header { position:relative; z-index:5; display:flex; align-items:center; justify-content:space-between; gap:24px; padding:14px max(var(--gutter),calc((100vw - var(--max))/2)); background:var(--sheet); border-bottom:var(--frame) solid var(--ink); }
.brand { display:flex; align-items:center; gap:12px; color:var(--ink); text-decoration:none; min-height:48px; }
.brand-mark { width:44px; height:44px; flex:none; color:var(--ink); }
.brand-word { height:26px; width:auto; display:block; }
.site-header nav { display:flex; gap:6px; }
.site-header nav a { display:flex; align-items:center; gap:8px; min-height:44px; padding:6px 14px; border-radius:999px; color:var(--ink); text-decoration:none; font-size:.9375rem; font-weight:700; white-space:nowrap; }
.site-header nav a[data-nav="university"]::before,.site-header nav a[data-nav="toeic"]::before { content:""; width:10px; height:10px; border-radius:50%; background:var(--pen); }
.site-header nav a[data-nav="toeic"]::before { background:var(--red); }
.site-header nav a:hover { background:var(--paper); }
.site-header nav a[aria-current] { background:var(--hl); box-shadow:inset 0 0 0 2px var(--ink); }

main { display:block; }
.home-main { max-width:var(--max); margin:auto; padding:0 var(--gutter); }

/* Shared type and controls */
.eyebrow,.story-category { display:inline-block; font-size:.8125rem; font-weight:700; letter-spacing:.04em; color:var(--accent); }
.fine-print,.source-note,.article-meta,.breadcrumbs { font-size:.8125rem; color:var(--muted); line-height:1.85; }
.text-link { display:inline-flex; align-items:center; min-height:44px; padding:8px 0; font-size:.9375rem; font-weight:700; }
.read-label { display:inline-block; margin-top:14px; font-size:.875rem; font-weight:700; text-decoration:underline; text-decoration-color:var(--accent); text-decoration-thickness:2px; text-underline-offset:.28em; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:10px; min-height:52px; max-width:100%; padding:12px 24px; margin:8px 12px 0 0; color:var(--on-accent); background:var(--accent); border:var(--frame) solid var(--ink); border-radius:var(--radius); box-shadow:4px 4px 0 var(--shadow); text-decoration:none; font-size:1rem; font-weight:700; line-height:1.5; }
.button::after { content:"→"; }
.button[download]::after { content:"↓"; }
.button:hover { text-decoration:none; transform:translate(-2px,-2px); box-shadow:6px 6px 0 var(--shadow); }
.button:active { transform:translate(3px,3px); box-shadow:1px 1px 0 var(--shadow); }
.section-heading { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:8px 24px; padding-bottom:24px; }
.section-heading h2 { font-size:clamp(1.6rem,3.2vw,2.6rem); line-height:1.35; }
.section-heading>p,.section-heading>span { font-size:.9375rem; color:var(--muted); }
.section-heading .eyebrow { margin-bottom:8px; }

/* ── Manga system ───────────────────────────────────────── */
.koma-art { position:absolute; inset:0; overflow:hidden; background:#f4f1ea; }
.koma-art img { display:block; width:100%; height:100%; max-width:none; object-fit:cover; object-position:var(--x) var(--y); transform:scale(var(--z)); transform-origin:var(--x) var(--y); }
.koma-tag { position:absolute; z-index:2; top:0; left:0; padding:4px 12px 5px; background:var(--ink); color:#fff; font-size:.8125rem; font-weight:700; line-height:1.5; letter-spacing:.06em; }
.koma-caption { position:absolute; z-index:2; left:0; right:0; bottom:0; display:flex; align-items:center; gap:10px; padding:10px 14px; background:var(--ink); color:#fff; font-size:.875rem; font-weight:700; line-height:1.55; }
.koma-caption>span:last-child { margin-left:auto; font-size:1.1rem; }
.koma-caption b { flex:none; padding:1px 8px; border-radius:999px; background:var(--marker); color:#15171f; font-size:.75rem; }
.bubble { position:absolute; z-index:3; margin:0; padding:.85em 1.1em; max-width:calc(100% - 24px); background:#fff; color:#15171f; border:2.5px solid #15171f; border-radius:1.6em; font-family:var(--letter); font-size:1.0625rem; line-height:1.6; letter-spacing:.03em; text-wrap:pretty; }
.bubble.is-vertical { writing-mode:vertical-rl; text-orientation:mixed; white-space:nowrap; padding:1.1em .75em; border-radius:50% / 30%; max-height:calc(100% - 64px); line-height:1.7; letter-spacing:.08em; }
/* Balloon tail: an ink triangle with a white one laid over it. */
.bubble::before,.bubble::after { content:""; position:absolute; width:22px; height:18px; clip-path:polygon(0 0,100% 0,8% 100%); }
.bubble::before { background:#15171f; left:16%; bottom:-17px; }
.bubble::after { background:#fff; left:calc(16% + 4px); bottom:-11px; width:14px; height:12px; }
.bubble.is-vertical::before { left:-14px; bottom:18%; width:18px; height:22px; clip-path:polygon(100% 0,100% 100%,0 90%); }
.bubble.is-vertical::after { left:-8px; bottom:calc(18% + 4px); width:12px; height:14px; clip-path:polygon(100% 0,100% 100%,0 90%); }
.bubble-guide::before { left:auto; right:16%; clip-path:polygon(0 0,100% 0,92% 100%); }
.bubble-guide::after { left:auto; right:calc(16% + 4px); clip-path:polygon(0 0,100% 0,92% 100%); }
.cast { display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; font-size:.8125rem; color:var(--muted); }
.cast b { padding:1px 10px; margin-left:6px; border:2px solid var(--ink); border-radius:999px; background:var(--sheet); color:var(--ink); font-size:.8125rem; }
.cast b:first-child { margin-left:0; }
.manga-note { margin-top:12px; font-size:.75rem; color:var(--muted); }

/* Cover: two panels cut by one diagonal gutter. */
.cover { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:clamp(32px,5vw,72px); align-items:center; padding:clamp(40px,6vw,80px) 0 clamp(48px,7vw,96px); }
.cover h1 { font-size:clamp(2.75rem,6.6vw,5.75rem); line-height:1.16; letter-spacing:-.01em; }
.h1-kicker { display:table; margin-bottom:22px; padding:6px 14px; background:var(--ink); color:#fff; font-family:var(--body); font-weight:700; font-size:clamp(1rem,1.5vw,1.25rem); letter-spacing:.08em; transform:rotate(-2deg); }
.cover-lead { margin-top:28px; max-width:29em; font-size:1.0625rem; color:var(--ink-soft); }
.cover-links { display:flex; flex-wrap:wrap; margin-top:28px; }
.cover-byline { display:flex; flex-wrap:wrap; gap:4px 14px; margin-top:28px; font-size:.8125rem; color:var(--muted); }
.cover-byline a { color:var(--ink); text-decoration:none; }
.cover-byline b { margin-left:4px; }
.cover-page { position:relative; aspect-ratio:5/6; max-height:min(78vh,720px); width:100%; justify-self:center; padding:0; background:var(--sheet); outline:var(--frame) solid var(--ink); outline-offset:12px; box-shadow:0 0 0 12px var(--sheet),14px 14px 0 12px var(--shadow); }
.cover-koma { position:absolute; left:0; right:0; display:block; background:var(--ink); clip-path:var(--shape); text-decoration:none; color:#fff; }
.cover-koma .koma-art { clip-path:var(--shape-in); }
.cover-koma[data-topic="university"] { top:0; height:56%; --shape:polygon(0 0,100% 0,100% 80%,0 100%); --shape-in:polygon(3px 3px,calc(100% - 3px) 3px,calc(100% - 3px) calc(80% - 4px),3px calc(100% - 4px)); }
.cover-koma[data-topic="toeic"] { bottom:0; height:calc(56% - 14px); --shape:polygon(0 20%,100% 0,100% 100%,0 100%); --shape-in:polygon(3px calc(20% + 4px),calc(100% - 3px) 4px,calc(100% - 3px) calc(100% - 3px),3px calc(100% - 3px)); }
.cover-koma[data-topic="university"] .koma-tag { top:3px; left:3px; background:var(--pen); }
.cover-koma[data-topic="toeic"] .koma-tag { top:4px; left:auto; right:3px; background:var(--red); }
.cover-koma[data-topic="university"] .bubble { top:20px; right:22px; font-size:clamp(1rem,1.7vw,1.375rem); }
.cover-koma[data-topic="toeic"] .bubble { top:calc(9% + 34px); right:22px; font-size:clamp(1rem,1.7vw,1.375rem); }
.cover-koma .koma-caption { right:auto; width:max-content; padding:8px 16px; border-radius:999px; background:#fff; color:#15171f; box-shadow:inset 0 0 0 2.5px #15171f, 3px 3px 0 #15171f; font-size:.9375rem; }
.cover-koma[data-topic="university"] .koma-caption { left:18px; bottom:calc(14% + 6px); }
.cover-koma[data-topic="toeic"] .koma-caption { left:18px; bottom:18px; }
.cover-koma:hover .koma-caption,.cover-koma:focus-visible .koma-caption { background:var(--hl); }
.cover-koma:focus-visible { outline:none; }
.cover-koma:focus-visible .koma-art { filter:brightness(.92); }
.cover-koma .koma-art img { transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.cover-koma:hover .koma-art img { transform:scale(calc(var(--z) * 1.05)); }
.sfx { position:absolute; z-index:4; left:22%; top:46px; font-family:var(--display); font-size:clamp(1.75rem,3.2vw,2.75rem); line-height:1; color:#fff; -webkit-text-stroke:2.5px #15171f; paint-order:stroke fill; transform:rotate(-12deg); letter-spacing:.06em; pointer-events:none; }

/* Home manga pages: each panel is a worry that opens its answer. */
.home-manga { padding:clamp(48px,7vw,96px) 0 clamp(40px,6vw,72px); border-top:var(--frame) solid var(--ink); }
.manga-page { --accent:var(--pen); position:relative; margin-top:36px; padding:18px 18px 22px; background:var(--sheet); border:var(--frame) solid var(--ink); box-shadow:10px 10px 0 var(--accent); }
.manga-page[data-topic="toeic"] { --accent:var(--red); margin-top:56px; }
.page-head { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; padding:2px 4px 16px; }
.page-head h3 { display:flex; align-items:center; gap:10px; font-family:var(--display); font-weight:400; font-size:1.5rem; letter-spacing:.02em; }
.page-head h3::before { content:""; width:14px; height:14px; border-radius:50%; background:var(--accent); }
.page-head .text-link { margin-left:auto; padding:0; }
.koma-grid { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.koma-grid>li { min-width:0; }
.manga-page[data-topic="university"] .koma-grid { grid-template-columns:1.3fr 1fr .9fr; grid-template-rows:300px 260px; grid-template-areas:"a a b" "c d b"; }
.manga-page[data-topic="toeic"] .koma-grid { grid-template-columns:1fr 1fr 1.1fr; grid-template-rows:260px 260px; grid-template-areas:"a b b" "a c c"; }
.koma-grid>li:nth-child(1) { grid-area:a; } .koma-grid>li:nth-child(2) { grid-area:b; }
.koma-grid>li:nth-child(3) { grid-area:c; } .koma-grid>li:nth-child(4) { grid-area:d; }
.grid-koma { position:relative; display:block; height:100%; min-height:200px; overflow:hidden; border:var(--frame) solid var(--ink); color:#fff; text-decoration:none; }
.grid-koma .bubble { top:12px; right:12px; font-size:1.0625rem; }
.grid-koma .bubble:not(.is-vertical) { left:12px; right:auto; max-width:min(80%,18em); }
.grid-koma .koma-art img { transition:transform .5s cubic-bezier(.2,.8,.2,1); }
.grid-koma:hover .koma-art img,.grid-koma:focus-visible .koma-art img { transform:scale(calc(var(--z) * 1.06)); }
.grid-koma:hover .koma-caption,.grid-koma:focus-visible .koma-caption { background:var(--accent); }
.grid-koma:focus-visible { outline:4px solid var(--hl); outline-offset:-7px; }
.home-manga>.manga-note { margin-top:28px; }

/* Article opener: three panels, read left to right. */
.learning-manga { position:relative; margin:8px 0 48px; padding:16px; background:var(--sheet); border:var(--frame) solid var(--ink); box-shadow:10px 10px 0 var(--accent); }
.manga-heading { display:flex; flex-wrap:wrap; align-items:center; gap:8px 20px; padding:0 2px 14px; }
.manga-heading strong { font-family:var(--display); font-weight:400; font-size:1.25rem; }
.manga-panels { list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; counter-reset:koma; }
.manga-panel { position:relative; aspect-ratio:4/5; min-height:320px; overflow:hidden; border:var(--frame) solid var(--ink); background:#fff; }
.manga-panel .koma-art { top:auto; height:66%; border-top:var(--frame) solid var(--ink); }
.manga-panel .bubble { top:40px; left:12px; right:12px; max-width:none; font-size:1rem; }
.manga-panel .bubble.is-vertical { left:auto; right:14px; top:40px; max-height:calc(100% - 56px); }
.manga-panel .bubble-guide:not(.is-vertical)::before { right:22%; }
.manga-panel .koma-tag { background:var(--accent); }
.manga-panel:nth-child(1) .koma-tag { background:var(--ink); }
/* A scene drawn for the article fills the panel; its upper third is left open for the balloon. */
.manga-panel[data-art="scene"] { aspect-ratio:1; }
.manga-panel[data-art="scene"] .koma-art { top:0; height:100%; border-top:0; }
.manga-panel[data-art="scene"] .bubble { box-shadow:3px 3px 0 #15171f33; }
.manga-next { position:absolute; z-index:4; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:48px; padding:10px 14px; background:var(--ink); color:#fff; font-size:.9375rem; font-weight:700; text-decoration:none; }
.manga-next:hover { background:var(--accent); color:var(--on-accent); }
.manga-next:focus-visible { outline:4px solid var(--hl); outline-offset:-4px; }
.learning-manga>.manga-note { margin:12px 2px 0; }

/* Mid-article dialogue on screentone. */
.manga-interlude { display:grid; gap:14px; padding:22px; margin:0 0 30px; border:2.5px solid var(--ink); border-radius:var(--radius); background-color:var(--sheet); background-image:radial-gradient(var(--tone) 1.1px,transparent 1.3px); background-size:7px 7px; }
.talk { display:flex; align-items:flex-start; gap:14px; }
.talk-guide { flex-direction:row-reverse; }
.talk .koma-art { position:relative; inset:auto; flex:none; width:68px; height:68px; border-radius:50%; border:2.5px solid var(--ink); }
.talk p { position:relative; max-width:34em; padding:12px 16px; background:#fff; color:#15171f; border:2.5px solid #15171f; border-radius:18px; font-family:var(--letter); font-size:1rem; line-height:1.8; }
.article-body .manga-interlude p { margin:0; }
.talk-learner p { border-top-left-radius:4px; }
.talk-guide p { border-top-right-radius:4px; }
.talk p b { display:block; font-family:var(--body); font-size:.75rem; color:var(--muted); margin-bottom:2px; }
.talk-guide p b { color:var(--accent); }
#learning-details { scroll-margin-top:24px; }

/* ── Comparison desk ───────────────────────────────────── */
.comparison-desk { position:relative; margin:24px 0 clamp(56px,8vw,96px); padding:clamp(22px,4vw,44px); background:var(--sheet); border:var(--frame) solid var(--ink); box-shadow:10px 10px 0 var(--shadow); }
.desk-heading { display:flex; flex-wrap:wrap; align-items:end; justify-content:space-between; gap:8px 24px; margin-bottom:24px; }
.desk-heading h2 { font-size:clamp(1.75rem,3.4vw,2.6rem); line-height:1.3; }
.desk-heading h2 br,.desk-heading>p br { display:none; }
.desk-heading>p { font-size:.9375rem; color:var(--muted); }
.desk-workspace { min-width:0; }
.desk-controls { display:flex; flex-wrap:wrap; justify-content:space-between; gap:16px 24px; padding-bottom:22px; }
.desk-controls fieldset { border:0; padding:0; margin:0; min-width:0; display:flex; flex-wrap:wrap; gap:8px; }
.desk-controls legend { font-size:.75rem; font-weight:700; color:var(--muted); margin-bottom:8px; }
.desk-controls label { position:relative; cursor:pointer; }
.desk-controls input { position:absolute; opacity:0; width:1px; height:1px; }
.desk-controls label span { display:flex; align-items:center; min-height:44px; padding:8px 18px; border:2.5px solid var(--ink); border-radius:999px; background:var(--sheet); color:var(--ink); font-size:.9375rem; font-weight:700; line-height:1.4; }
.desk-controls label:hover span { background:var(--paper); }
.desk-topics input:checked+span { background:var(--pen); color:var(--on-accent); }
.desk-topics input[value="toeic"]:checked+span { background:var(--red); }
.desk-axes input:checked+span { background:var(--hl); color:#15171f; }
.desk-controls input:focus-visible+span { outline:3px solid var(--pen); outline-offset:3px; }
.desk-note { position:relative; padding:14px 18px 14px 20px; margin-bottom:20px; border-left:6px solid var(--hl); background:var(--paper); font-size:.9375rem; line-height:1.9; }
.desk-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:2.5px solid var(--ink); border-radius:var(--radius); overflow:hidden; }
.desk-card { min-width:0; padding:24px; background:var(--sheet); }
.desk-card+.desk-card { border-left:2.5px solid var(--ink); }
.desk-company { display:inline-block; padding:2px 12px; margin-bottom:18px; border-radius:999px; background:var(--ink); color:var(--sheet); font-size:.875rem; }
.desk-value { font-family:var(--display); font-size:clamp(1.4rem,2.8vw,2.3rem); line-height:1.35; min-height:1.4em; }
.desk-unit { margin-top:10px; font-size:.875rem; line-height:1.7; color:var(--muted); min-height:1.7em; }
.desk-context { margin-top:18px; border-top:2px dashed var(--line); }
.desk-context summary { cursor:pointer; min-height:44px; display:list-item; padding:12px 0 0; font-size:.875rem; font-weight:700; }
.desk-context summary::marker { color:var(--accent); }
.desk-detail { margin-top:12px; font-size:.9375rem; line-height:1.9; }
.desk-card-link { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; margin-top:12px; font-size:.875rem; font-weight:700; }
.desk-bottom { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 24px; margin-top:18px; }
.desk-article-link { display:inline-flex; align-items:center; gap:10px; min-height:44px; font-weight:700; }
.desk-date { font-size:.75rem; color:var(--muted); }

/* ── Furoku: the free printable ────────────────────────── */
.worksheet-feature { position:relative; display:grid; grid-template-columns:240px minmax(0,1fr); gap:clamp(28px,5vw,64px); align-items:center; padding:clamp(28px,5vw,56px); margin:0 0 clamp(56px,8vw,96px); background-color:var(--hl); background-image:radial-gradient(#15171f22 1.2px,transparent 1.4px); background-size:9px 9px; border:var(--frame) solid #15171f; color:#15171f; }
.worksheet-feature::before { content:"付録"; position:absolute; top:-3px; right:28px; padding:10px 12px 14px; background:#15171f; color:#fff; font-family:var(--display); font-size:1.125rem; writing-mode:vertical-rl; letter-spacing:.2em; }
.worksheet-preview { display:block; max-width:200px; margin:auto; transform:rotate(-4deg); border:2.5px solid #15171f; box-shadow:8px 8px 0 #15171f; background:#fff; }
.worksheet-preview img { display:block; width:100%; height:auto; }
.worksheet-feature .eyebrow { color:#15171f; }
.worksheet-feature h2 { font-size:clamp(1.6rem,3vw,2.4rem); line-height:1.4; margin:10px 0 16px; }
.worksheet-feature p:not(.eyebrow):not(.fine-print) { max-width:34em; }
.worksheet-feature .button { --accent:#15171f; --shadow:#fff; margin:22px 0 10px; }
.worksheet-feature .fine-print { color:#15171f; }

/* Writer */
.portal-editor { display:grid; grid-template-columns:280px minmax(0,1fr); gap:clamp(24px,5vw,64px); padding:clamp(40px,6vw,72px) 0 clamp(56px,8vw,96px); border-top:var(--frame) solid var(--ink); }
.editor-signature { display:flex; flex-direction:column; align-items:start; }
.editor-signature>span { font-size:.8125rem; font-weight:700; color:var(--muted); }
.editor-signature>strong { font-family:var(--display); font-weight:400; font-size:3.25rem; line-height:1.2; margin:10px 0; }
.editor-signature>a { font-size:.9375rem; font-weight:700; min-height:44px; padding:8px 0; }
.portal-editor h2 { font-size:clamp(1.4rem,2.6vw,2rem); line-height:1.5; margin-bottom:18px; }
.portal-editor p { max-width:38em; color:var(--ink-soft); }

/* ── Subject hubs ──────────────────────────────────────── */
.hub-intro,.home-intro { padding:clamp(32px,5vw,64px) 0 clamp(24px,4vw,40px); }
.hub-intro h1,.home-intro h1 { font-size:clamp(2.1rem,5vw,4rem); line-height:1.3; margin:12px 0 18px; }
.hub-intro>p:last-child,.home-intro>p:last-child { max-width:36em; font-size:1.0625rem; color:var(--ink-soft); }
.home-main>.breadcrumbs,.exam-hub>.breadcrumbs { padding:24px 0 0; margin:0; max-width:none; }
.concerns { margin:clamp(40px,6vw,72px) 0; }
.concern-links { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; }
.concern-links>a { position:relative; display:block; padding:22px 52px 22px 22px; background:var(--sheet); border:2.5px solid var(--ink); border-radius:var(--radius); color:var(--ink); text-decoration:none; line-height:1.7; }
.concern-links>a:hover { box-shadow:6px 6px 0 var(--accent); transform:translate(-2px,-2px); }
.concern-links>a>span:first-child { display:block; font-size:.8125rem; color:var(--muted); margin-bottom:8px; }
.concern-links strong { display:block; font-size:1.25rem; font-weight:700; }
.concern-links small { display:block; margin-top:8px; font-size:.875rem; color:var(--muted); }
.concern-arrow { position:absolute; right:20px; top:50%; translate:0 -50%; display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--accent); color:var(--on-accent); font-weight:700; }
.exam-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:40px; padding:0 0 clamp(48px,7vw,80px); }
.reading-list { list-style:none; margin:0; padding:0; display:grid; gap:16px; }
.reading-list a { display:block; padding:24px 26px; background:var(--sheet); border:2.5px solid var(--ink); border-radius:var(--radius); color:var(--ink); text-decoration:none; }
.reading-list a:hover { box-shadow:6px 6px 0 var(--accent); transform:translate(-2px,-2px); }
.reading-list h2 { font-family:var(--body); font-weight:700; font-size:1.25rem; line-height:1.6; margin:8px 0 10px; }
.reading-list p { font-size:.9375rem; color:var(--muted); }
.exam-note { height:max-content; position:sticky; top:24px; padding:28px; background:var(--sheet); border:var(--frame) solid var(--ink); box-shadow:8px 8px 0 var(--accent); }
.exam-note h2 { font-size:1.6rem; margin:8px 0 16px; }
.exam-note p { font-size:.9375rem; }
.exam-note .button { font-size:.9375rem; padding:10px 16px; margin:20px 0 0; }
.editorial-panel { margin-top:28px; padding-top:22px; border-top:2px dashed var(--line); }
.editorial-panel h2 { font-family:var(--body); font-weight:700; font-size:1rem; }
.editorial-panel p { font-size:.875rem; color:var(--muted); margin-top:10px; }
.exam-hub>.worksheet-feature { margin-top:clamp(24px,4vw,40px); }

/* TOEIC index */
.home-layout { display:grid; grid-template-columns:minmax(0,1fr) 300px; gap:40px; padding:0 0 clamp(48px,7vw,80px); }
.home-content,.home-sidebar { min-width:0; }
.feature-article { display:grid; grid-template-columns:42% minmax(0,1fr); background:var(--sheet); border:var(--frame) solid var(--ink); box-shadow:8px 8px 0 var(--accent); color:var(--ink); text-decoration:none; overflow:hidden; }
.feature-article:hover h2 { text-decoration:underline; text-decoration-color:var(--accent); }
.comparison-preview { display:grid; grid-template-rows:1fr 1fr; padding:8px 24px; background:var(--paper); border-right:var(--frame) solid var(--ink); }
.comparison-preview>div { display:flex; flex-direction:column; justify-content:center; padding:20px 0; }
.comparison-preview>div+div { border-top:2px dashed var(--line); }
.comparison-preview span,.comparison-preview small { font-size:.8125rem; color:var(--muted); }
.comparison-preview strong { font-family:var(--display); font-weight:400; font-size:1.5rem; margin:6px 0; }
.feature-copy { padding:28px; }
.feature-copy h2 { font-family:var(--body); font-weight:700; font-size:1.375rem; line-height:1.6; margin:8px 0 14px; }
.feature-copy>p:not(.eyebrow) { font-size:.9375rem; color:var(--muted); }
.all-articles { margin-top:56px; }
.article-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.article-item { display:flex; flex-direction:column; background:var(--sheet); border:2.5px solid var(--ink); border-radius:var(--radius); overflow:hidden; color:var(--ink); text-decoration:none; }
.article-item:hover { box-shadow:6px 6px 0 var(--accent); transform:translate(-2px,-2px); }
.article-item>div:last-child { padding:20px 22px 22px; }
.article-graphic { display:flex; flex-direction:column; justify-content:center; min-height:128px; padding:20px 22px; background-color:var(--paper); background-image:radial-gradient(var(--tone) 1.1px,transparent 1.3px); background-size:7px 7px; border-bottom:2.5px solid var(--ink); }
.article-graphic span,.article-graphic small { font-size:.8125rem; color:var(--muted); }
.article-graphic strong { font-family:var(--display); font-weight:400; font-size:1.45rem; margin:4px 0; font-variant-numeric:tabular-nums; }
.article-item h3 { font-size:1.1rem; line-height:1.65; margin:6px 0 10px; }
.article-item p { font-size:.875rem; color:var(--muted); }
.all-articles>.fine-print { margin-top:20px; }
.home-sidebar>section { padding:24px; background:var(--sheet); border:2.5px solid var(--ink); border-radius:var(--radius); }
.home-sidebar>section+section { margin-top:20px; }
.home-sidebar h2 { font-family:var(--body); font-weight:700; font-size:1rem; padding-bottom:12px; border-bottom:2px dashed var(--line); }
.purpose-nav>a { display:block; padding:16px 0; border-bottom:2px dashed var(--line); color:var(--ink); text-decoration:none; font-size:.9375rem; font-weight:700; }
.purpose-nav>a:last-child { border-bottom:0; padding-bottom:0; }
.purpose-nav>a>span { display:block; margin-top:6px; font-size:.8125rem; font-weight:700; color:var(--accent); }
.author-name { font-size:.875rem; font-weight:700; }
.author-name>a { margin-left:8px; font-size:1.1rem; }
.author-panel p,.home-sidebar .editorial-panel p { font-size:.875rem; margin-top:12px; }
.home-sidebar .editorial-panel { margin-top:20px; padding-top:24px; border-top:2.5px solid var(--ink); }

/* ── Articles ──────────────────────────────────────────── */
.breadcrumbs { max-width:var(--max); margin:0 auto; padding:24px var(--gutter) 0; }
.breadcrumbs a { color:var(--muted); }
article { max-width:900px; margin:auto; padding:0 var(--gutter) 40px; }
.reading-article { max-width:var(--max); }
.article-header { max-width:980px; padding:clamp(24px,4vw,44px) 0 clamp(28px,4vw,44px); }
.article-header .eyebrow { padding:2px 12px; border-radius:999px; background:var(--accent); color:var(--on-accent); }
.article-header h1 { font-size:clamp(1.85rem,3.8vw,3.1rem); line-height:1.42; margin:16px 0 20px; }
.title-phrase { display:inline-block; }
.article-header h1 .title-detail { display:block; margin-top:12px; font-family:var(--body); font-weight:700; font-size:.5em; line-height:1.7; color:var(--ink-soft); letter-spacing:0; }
.article-deck { max-width:46em; font-size:1.0625rem; color:var(--ink-soft); line-height:1.95; }
.article-meta { display:flex; flex-wrap:wrap; gap:6px 24px; margin-top:18px; }
.reading-flow { min-width:0; }
.reading-article .reading-flow { display:grid; grid-template-columns:minmax(0,800px) minmax(200px,1fr); gap:clamp(28px,4vw,56px); align-items:start; }
.article-body { min-width:0; padding:clamp(22px,4.5vw,56px); background:var(--sheet); border:var(--frame) solid var(--ink); font-size:1.0625rem; line-height:2; }
.article-body>p { margin:24px 0; }
.article-body>p:first-child { margin-top:0; }
.article-body h2 { font-size:clamp(1.35rem,2.4vw,1.75rem); line-height:1.55; margin:64px 0 24px; scroll-margin-top:24px; }
.article-body h2::before { content:""; display:block; width:56px; height:10px; margin-bottom:16px; background:var(--accent); transform:skewX(-24deg); transform-origin:left; }
.article-body h3 { line-height:1.8; margin:32px 0 12px; padding-left:14px; border-left:5px solid var(--hl); }
.article-body ul,.article-body ol { padding-left:26px; margin:20px 0; }
.article-body li { margin:10px 0; }
.article-body li::marker { color:var(--accent); font-weight:700; }
.summary-box { padding:26px 28px; border:2.5px solid #15171f; border-radius:var(--radius); background:#fff7c2; color:#15171f; }
.summary-box .eyebrow { display:table; margin-bottom:10px; padding:2px 12px; border-radius:999px; background:#15171f; color:#fff; }
.summary-box p { margin:0; }
.summary-box p+p { margin-top:10px; }
.source-note { border-left:4px solid var(--line); padding-left:18px; }
.toc { margin:32px 0 40px; border:2.5px solid var(--ink); border-radius:var(--radius); font-size:.9375rem; background:var(--sheet); }
.toc summary { padding:16px 22px; min-height:44px; font-weight:700; cursor:pointer; }
.toc summary::marker { color:var(--accent); }
.toc[open]>summary { border-bottom:2px dashed var(--line); }
.toc nav { padding:4px 22px 18px; }
.toc ol { margin:12px 0 0; }
.toc a { display:inline-block; padding:3px 0; }
.reading-article .toc { display:none; }
.table-wrap { overflow-x:auto; margin:28px 0; border:2.5px solid var(--ink); border-radius:var(--radius); }
table { width:100%; border-collapse:collapse; font-size:.9375rem; min-width:520px; line-height:1.75; }
.compact-table { min-width:0; }
th,td { padding:16px 18px; text-align:left; vertical-align:top; border-bottom:1.5px solid var(--line); border-right:1.5px solid var(--line); }
th:last-child,td:last-child { border-right:0; }
tr:last-child td,tr:last-child th { border-bottom:0; }
thead th { background:var(--ink); color:var(--sheet); font-weight:700; border-color:var(--ink); }
tbody th { background:var(--paper); font-weight:700; min-width:115px; }
.action-box { margin:40px 0; padding:28px; border:2.5px solid var(--ink); border-radius:var(--radius); background:color-mix(in srgb,var(--accent) 7%,var(--sheet)); }
.action-box h3 { margin:0 0 12px; padding:0; border:0; }
.action-box p { margin:14px 0; }
.article-body .action-box .button { font-size:.9375rem; }
.related { margin-top:36px; padding-top:20px; border-top:2px dashed var(--line); }
.related a { display:block; padding:8px 0; min-height:44px; font-size:.9375rem; font-weight:700; }
.article-author { margin-top:56px; padding:28px; background:var(--paper); border:2.5px solid var(--ink); border-radius:var(--radius); }
.article-author h2 { margin:0 0 16px; font-family:var(--body); font-weight:700; font-size:1.0625rem; }
.article-author h2::before { display:none; }
.article-author p { font-size:.9375rem; margin-top:12px; }
.social-links { display:flex; flex-wrap:wrap; gap:8px 24px; margin-top:12px; }
.social-links a { display:inline-flex; align-items:center; min-height:44px; font-size:.9375rem; font-weight:700; }
.worksheet-inline { display:flow-root; }
.worksheet-inline>img { width:140px; float:right; margin:0 0 20px 26px; border:2.5px solid var(--ink); transform:rotate(2deg); }
.worksheet-inline h2 { margin:0 0 14px; font-family:var(--body); font-weight:700; font-size:1.3rem; }
.worksheet-inline h2::before { display:none; }
.decision-title { font-size:1rem; font-weight:700; margin-bottom:14px; }
.decision-pair { display:grid; grid-template-columns:1fr 1fr; border:2.5px solid var(--ink); border-radius:var(--radius); overflow:hidden; }
.decision-pair>div { padding:24px; background:var(--sheet); }
.decision-pair>div+div { border-left:2.5px solid var(--ink); background:var(--paper); }
.decision-name { display:inline-block; padding:1px 12px; border-radius:999px; background:var(--ink); color:var(--sheet); font-size:.9375rem; font-weight:700; }
.decision-benefit { font-size:1rem; line-height:1.7; margin-top:12px; }
.decision-benefit strong { font-family:var(--display); font-weight:400; font-size:1.5rem; }
.decision-pair dl { margin:18px 0 0; }
.decision-pair dl>div { display:grid; grid-template-columns:4.5em 1fr; gap:8px; margin-top:10px; font-size:.875rem; line-height:1.8; }
.decision-pair dt { color:var(--muted); } .decision-pair dd { margin:0; }
.decision-note { font-size:.875rem; color:var(--muted); margin-top:16px; }
.decision-jumps { display:flex; flex-wrap:wrap; gap:4px 24px; margin-top:12px; font-size:.9375rem; }
.decision-jumps a { font-weight:700; padding:8px 0; min-height:44px; }
.budget-visual,.cost-figure,.schedule-figure { margin:28px 0; padding:26px; background:var(--paper); border:2.5px solid var(--ink); border-radius:var(--radius); }
.budget-visual figcaption,.cost-figure figcaption,.schedule-figure figcaption { font-size:1rem; font-weight:700; margin-bottom:18px; }
.budget-parts { display:flex; align-items:stretch; gap:10px; }
.budget-parts>div { flex:1; padding:16px 14px; background:var(--sheet); border:2px solid var(--ink); border-top:6px solid var(--accent); border-radius:8px; line-height:1.7; }
.budget-parts>div>span { display:block; color:var(--muted); font-size:.875rem; margin-top:8px; }
.budget-parts>b { align-self:center; color:var(--accent); }
.budget-visual>p { border-top:2px dashed var(--line); margin-top:18px; padding-top:14px; font-size:.9375rem; }
.cost-bar { display:flex; gap:3px; height:30px; border:2px solid var(--ink); }
.cost-bar span:nth-child(1) { background:var(--accent); }
.cost-bar span:nth-child(2) { background:color-mix(in srgb,var(--accent) 55%,var(--sheet)); }
.cost-bar span:nth-child(3) { background:var(--hl); }
.cost-labels { display:flex; flex-wrap:wrap; gap:14px 28px; margin:18px 0; }
.cost-labels dt { font-size:.8125rem; color:var(--muted); }
.cost-labels dd { margin:0; font-weight:700; font-size:.9375rem; }
.cost-total { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:baseline; gap:12px; padding-top:14px; border-top:2px dashed var(--line); font-size:.875rem; }
.cost-total strong { font-family:var(--display); font-weight:400; font-size:1.9rem; font-variant-numeric:tabular-nums; }
.cost-total strong span { font-size:1rem; margin-left:5px; }
.week-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:10px; text-align:center; }
.week-grid>div>span { font-size:.875rem; color:var(--muted); }
.time-bar { height:100px; display:flex; align-items:flex-end; margin:8px 0; background:var(--sheet); border:2px solid var(--ink); }
.time-bar i { width:100%; background:var(--accent); }
.week-grid strong { font-size:1.15rem; }
.week-grid small { font-size:.75rem; font-weight:400; margin-left:2px; }
.schedule-figure>p { margin-top:14px; font-size:.875rem; }
.article-rail { position:sticky; top:24px; min-width:0; max-height:calc(100dvh - 48px); overflow:auto; padding:22px; background:var(--sheet); border:2.5px solid var(--ink); border-radius:var(--radius); font-size:.875rem; }
.article-rail nav>p { font-weight:700; margin-bottom:10px; }
.article-rail ol { list-style:none; padding:0; margin:0; counter-reset:rail; }
.article-rail li { counter-increment:rail; }
.article-rail a { display:grid; grid-template-columns:1.6em 1fr; padding:7px 0; min-height:44px; line-height:1.7; color:var(--ink-soft); text-decoration:none; }
.article-rail a::before { content:counter(rail); font-family:var(--display); color:var(--accent); }
.article-rail a:hover { color:var(--ink); text-decoration:underline; text-decoration-color:var(--accent); }
.article-rail .rail-back { display:block; margin-top:14px; padding-top:14px; border-top:2px dashed var(--line); font-weight:700; color:var(--ink); }
.article-rail .rail-back::before { content:none; }
article:not(.reading-article) .article-body { margin-bottom:24px; }

/* Footer */
.site-footer { display:flex; flex-wrap:wrap; justify-content:space-between; align-items:flex-start; gap:24px; padding:48px max(var(--gutter),calc((100vw - var(--max))/2)); background:#15171f; color:#fff; border-top:var(--frame) solid #15171f; }
.footer-brand { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; --mark-line:#15171f; }
.footer-brand .brand-mark { color:#fff; width:48px; height:48px; }
.footer-brand .brand-word { height:30px; }
.site-footer p { margin-top:12px; font-size:.875rem; color:#c5c9d6; }
.site-footer nav { display:flex; flex-wrap:wrap; gap:4px 28px; font-size:.875rem; }
.site-footer nav a { display:inline-flex; align-items:center; min-height:44px; color:#fff; text-decoration-color:var(--marker); }
.site-footer>small { width:100%; font-size:.75rem; color:#9ba1b3; }

/* ── Motion: the cover inks in, balloons pop, panels rise as you read ── */
@media (prefers-reduced-motion:no-preference) {
  .cover-koma { animation:koma-in .8s cubic-bezier(.2,.8,.2,1) both; }
  .cover-koma[data-topic="toeic"] { animation-delay:.14s; }
  .cover .bubble { animation:pop .55s cubic-bezier(.3,1.5,.5,1) .55s both; }
  .cover .cover-koma[data-topic="toeic"] .bubble { animation-delay:.72s; }
  .sfx { animation:sfx 1s cubic-bezier(.3,1.5,.5,1) .95s both; }
  .h1-kicker { animation:kicker .6s cubic-bezier(.3,1.5,.5,1) .1s both; }
  .button,.concern-links>a,.reading-list a,.article-item { transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease; }
  .koma-caption,.desk-controls label span { transition:background-color .18s ease,color .18s ease; }
  @supports (animation-timeline:view()) {
    .koma-grid>li,.manga-panel,.manga-interlude { animation:rise linear both; animation-timeline:view(); animation-range:entry 0% entry 55%; }
  }
}
@keyframes koma-in { from { opacity:0; transform:translateY(28px) rotate(-1deg); } }
@keyframes pop { from { opacity:0; transform:scale(.4); } }
@keyframes sfx { from { opacity:0; transform:rotate(-30deg) scale(.3); } }
@keyframes kicker { from { opacity:0; transform:rotate(-14deg) translateY(-8px); } }
@keyframes rise { from { opacity:0; transform:translateY(36px); } }

/* ── Layout breakpoints ────────────────────────────────── */
@media (max-width:1100px) {
  .reading-article .reading-flow { grid-template-columns:minmax(0,1fr) 210px; }
  .manga-page[data-topic="university"] .koma-grid { grid-template-rows:260px 230px; }
  .manga-page[data-topic="toeic"] .koma-grid { grid-template-rows:230px 230px; }
}
@media (max-width:900px) {
  .cover { grid-template-columns:1fr; }
  .cover-page { max-width:520px; max-height:none; margin:12px 12px 0 0; }
  .reading-article .reading-flow { display:block; }
  .article-rail { display:none; }
  .reading-article .toc { display:block; }
  .exam-layout,.home-layout { grid-template-columns:1fr; }
  .exam-note { position:static; }
  .concern-links { grid-template-columns:1fr; gap:12px; }
  .portal-editor { grid-template-columns:1fr; gap:16px; }
  .manga-panel { min-height:300px; }
}
@media (max-width:680px) {
  :root { --frame:2.5px; }
  body { background-size:22px 22px; }
  .site-header { flex-wrap:wrap; gap:4px; padding:10px 16px 8px; }
  .brand-mark { width:38px; height:38px; }
  .brand-word { height:22px; }
  .site-header nav { width:100%; justify-content:space-between; gap:0; margin:0 -10px; width:calc(100% + 20px); }
  .site-header nav a { padding:6px 10px; font-size:.875rem; }
  .cover { padding:28px 0 48px; gap:40px; }
  .cover h1 { font-size:clamp(2.4rem,11.5vw,3.4rem); }
  .h1-kicker { margin-bottom:16px; }
  .cover-lead { font-size:1rem; margin-top:22px; }
  .cover-links .button { flex:1 1 100%; margin-right:4px; }
  .cover-page { width:calc(100% - 12px); margin:0 12px 12px 0; aspect-ratio:4/5; outline-offset:8px; box-shadow:0 0 0 8px var(--sheet),10px 10px 0 8px var(--shadow); }
  .cover-koma .bubble { font-size:.9375rem !important; right:14px !important; }
  .cover-koma[data-topic="toeic"] .bubble { top:calc(14% + 30px); }
  .cover-koma .koma-caption { font-size:.8125rem; padding:6px 10px; }
  .sfx { left:24%; top:34px; font-size:1.5rem; }
  .manga-page { padding:12px 12px 14px; box-shadow:6px 6px 0 var(--accent); }
  .page-head { padding:0 2px 12px; }
  .page-head .text-link { margin-left:0; }
  .koma-grid { gap:8px; }
  .manga-page[data-topic="university"] .koma-grid { grid-template-columns:1fr 1fr; grid-template-rows:240px 210px 210px; grid-template-areas:"a a" "b c" "d d"; }
  .manga-page[data-topic="toeic"] .koma-grid { grid-template-columns:1fr 1fr; grid-template-rows:240px 220px; grid-template-areas:"a a" "b c"; }
  .grid-koma { min-height:0; }
  .grid-koma .bubble { font-size:.9375rem; top:8px; right:8px; }
  .grid-koma .bubble:not(.is-vertical) { left:8px; font-size:.875rem; }
  .koma-caption { font-size:.8125rem; padding:8px 10px; gap:6px; }
  .koma-grid>li:nth-child(2) .koma-caption b,.koma-grid>li:nth-child(3) .koma-caption b { display:none; }
  .learning-manga { padding:10px; margin:4px -4px 40px 0; box-shadow:6px 6px 0 var(--accent); }
  .manga-panels { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:82%; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; padding-bottom:6px; scrollbar-width:thin; }
  .manga-panel { scroll-snap-align:start; min-height:0; aspect-ratio:3/4; }
  .manga-panel[data-art="scene"] { aspect-ratio:1; }
  .manga-interlude { padding:14px; gap:12px; }
  .talk { gap:10px; }
  .talk .koma-art { width:52px; height:52px; }
  .talk p { font-size:.9375rem; padding:10px 12px; }
  .comparison-desk { padding:20px 16px; box-shadow:6px 6px 0 var(--shadow); }
  .desk-controls label span { padding:6px 12px; font-size:.875rem; }
  .desk-card { padding:16px 12px; }
  .desk-company { font-size:.75rem; padding:1px 8px; margin-bottom:12px; }
  .desk-value { font-size:clamp(1.05rem,5.2vw,1.4rem); min-height:2.8em; }
  .desk-unit { font-size:.75rem; min-height:5em; }
  .worksheet-feature { grid-template-columns:1fr; padding:28px 20px; }
  .worksheet-feature::before { right:16px; font-size:.9375rem; }
  .worksheet-preview { max-width:150px; margin:0; }
  .editor-signature>strong { font-size:2.4rem; }
  .feature-article { display:block; }
  .comparison-preview { grid-template-columns:1fr 1fr; grid-template-rows:auto; gap:16px; padding:18px; border-right:0; border-bottom:var(--frame) solid var(--ink); }
  .comparison-preview>div { padding:0; }
  .comparison-preview>div+div { border-top:0; border-left:2px dashed var(--line); padding-left:16px; }
  .comparison-preview strong { font-size:1.2rem; }
  .desktop-break { display:none; }
  .article-grid { grid-template-columns:1fr; }
  .reading-list a { padding:20px; }
  .reading-list h2 { font-size:1.15rem; }
  .article-header h1 { font-size:clamp(1.6rem,7.4vw,2.1rem); }
  .article-body { padding:22px 18px; font-size:1rem; line-height:1.95; margin:0 -6px; }
  .article-body h2 { margin-top:48px; }
  .summary-box,.action-box,.article-author { padding:20px; }
  table { font-size:.875rem; }
  th,td { padding:12px 14px; }
  .table-wrap th[scope="row"],.table-wrap thead th:first-child { position:sticky; left:0; z-index:1; }
  .decision-pair { grid-template-columns:1fr; }
  .decision-pair>div+div { border-left:0; border-top:2.5px solid var(--ink); }
  .worksheet-inline>img { width:96px; margin-left:16px; }
  .worksheet-inline .fine-print { clear:both; padding-top:12px; }
  .budget-visual,.cost-figure,.schedule-figure { padding:18px; }
  .budget-parts { flex-direction:column; gap:8px; }
  .week-grid { gap:4px; }
  .week-grid strong { font-size:1rem; }
  .week-grid small { display:block; margin:0; }
  .time-bar { height:80px; }
  .site-footer { padding:36px 20px; }
}
@media (max-width:360px) {
  .site-header nav a { font-size:.8125rem; padding:6px 8px; }
  .site-header nav a[data-nav]::before { display:none; }
}

/* ── Dark: the same notebook under a desk lamp ─────────── */
@media (prefers-color-scheme:dark) {
  :root { --ink:#eceef5; --ink-soft:#c9cddb; --muted:#a2a8ba; --line:#353a4a; --grid:#1b1e29; --paper:#11131a; --sheet:#191c26; --pen:#9aaaff; --red:#ff8a80; --hl:#6e5c00; --on-accent:#0f1117; --shadow:#000; --tone:#ffffff1a; color-scheme:dark; }
  .koma-tag,.koma-caption,.manga-next,.h1-kicker { --ink:#0b0c11; }
  .koma-tag,.h1-kicker { background:#0b0c11; }
  .koma-caption,.manga-next { background:#0b0c11; }
  .cover-koma,.grid-koma,.manga-panel { --ink:#0b0c11; border-color:#0b0c11; }
  .cover-koma .koma-caption { background:#fff; color:#15171f; box-shadow:inset 0 0 0 2.5px #15171f; }
  .cover-koma:hover .koma-caption { background:var(--marker); }
  .cover-page { outline-color:var(--ink); }
  .desk-axes input:checked+span { background:var(--marker); }
  .summary-box { background:#3a3410; color:var(--ink); border-color:var(--ink); }
  .summary-box .eyebrow { background:var(--ink); color:#11131a; }
}

@media print {
  body { background:#fff; }
  .site-header nav,.site-footer,.skip,.social-links,.toc,.article-rail,.desk-controls,.koma-art,.sfx,.cover-page { display:none; }
  .article-body,.comparison-desk,.learning-manga,.manga-page { border:0; box-shadow:none; padding:0; }
  .reading-article .reading-flow { display:block; }
  .manga-panels { display:block; }
  .manga-panel { aspect-ratio:auto; min-height:0; border:0; margin-bottom:8px; }
  .bubble,.manga-panel .bubble { position:static; writing-mode:horizontal-tb; border-radius:12px; max-width:none; }
  .bubble::before,.bubble::after { display:none; }
  .koma-tag,.manga-next,.koma-caption { position:static; display:inline-block; }
  .table-wrap { overflow:visible; }
  table { min-width:0; }
  .desk-context:not([open])>*:not(summary) { display:block; }
  .desk-context::details-content { content-visibility:visible; }
  .desk-context summary { display:none; }
  .article-body h2,.article-body h3 { break-after:avoid; }
  .decision-pair,.summary-box,.manga-panel { break-inside:avoid; }
}

.portal-contact{padding:2rem 0 3rem;border-top:1px solid var(--ink,#15171f)}.portal-contact h2{margin-top:0}
