/* 科学の紹介ページ・トップ・このサイトの目的の見た目（w.py が組み立てるページ。日本語と英語）。色は動画の見た目に合わせる（T/docs/youtube_plan.md の「画面の見た目」） */
:root { --bg: #fbf6ea; --grid: rgba(35,49,90,.05); --ink: #23315a; --ink2: #5b6584; --card: #fff; --edge: #3b2a20;
  --accent: #e8792b; --accent-ink: #c2410c; --soft: #fdebd9; --gray: #eef0f4;
  /* 白い字を載せる地（札・ボタン）。暗い画面でも同じ色にして、白い字とのコントラストを 4.5 以上に保つ（5.18 と 5.77） */
  --badge: #c2410c; --badge-gray: #5b6584; }
@media (prefers-color-scheme: dark) {
  :root { --bg: #151a2b; --grid: rgba(255,255,255,.03); --ink: #e8ebf3; --ink2: #a8b0c6; --card: #1f2640; --edge: #0b0e18;
    --accent: #f08c45; --accent-ink: #fb9a5a; --soft: #3a2a20; --gray: #2a3150; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--ink); background: var(--bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  font: 17px/1.85 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", sans-serif; }
a { color: var(--accent-ink); }
.bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px;
  background: var(--card); border-bottom: 3px solid var(--edge); position: sticky; top: 0; z-index: 2; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 800; text-decoration: none; font-size: 15px; }
.brand img { border-radius: 50%; }
/* 言葉の切り替え（日本語のページは English、英語のページは 日本語。同じ内容の別の言語のページへ移る） */
.lang { margin-left: auto; flex: none; font-size: 14px; font-weight: 700; color: var(--ink); text-decoration: none;
  border: 2px solid var(--edge); border-radius: 999px; padding: 3px 14px; background: var(--bg); }
.lang:hover { background: var(--soft); }
/* サイト内検索（上の帯の「探す」と、開く小窓。find.js）。スマホの帯は虫眼鏡だけ */
.find { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 14px; font-weight: 700;
  color: var(--ink); background: var(--bg); border: 2px solid var(--edge); border-radius: 999px; padding: 3px 14px 3px 10px; cursor: pointer; }
.find + .lang { margin-left: 0; }
.find:hover { background: var(--soft); }
.find svg, .finder svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.find:focus-visible, .lang:focus-visible, .finder-close:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (max-width: 599px) {
  .bar { gap: 8px; padding: 10px 12px; }
  .find { padding: 3px 8px; }
  .find span { display: none; }
}
@media (max-width: 399px) {   /* 幅360pxでも、英語の名前が1行に収まるように（前の名前 Marusuke's Naruhodo Lab のときに決めた） */
  .brand { gap: 6px; font-size: 14px; line-height: 1.3; letter-spacing: -.01em; }
  .lang { padding: 3px 9px; }
}
.finder { width: min(720px, calc(100% - 24px)); max-width: none; max-height: none; margin: 14px auto auto; padding: 0; overflow: visible;
  color: var(--ink); background: var(--card); border: 3px solid var(--edge); border-radius: 14px; box-shadow: 5px 5px 0 var(--edge); }
.finder::backdrop { background: rgba(21,26,43,.5); }
html:has(.finder[open]) { overflow: hidden; }   /* 小窓の後ろのページを動かさない */
.finder-in { display: flex; flex-direction: column; max-height: calc(100dvh - 40px); padding: 14px 14px 6px; }
.finder-top { flex: none; display: flex; align-items: center; gap: 6px; }
.finder form { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 8px 0 12px; color: var(--ink2);
  background: var(--bg); border: 2px solid var(--edge); border-radius: 10px; }
.finder form:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.finder form > svg { flex: none; width: 18px; height: 18px; }
.finder input { flex: 1; min-width: 0; padding: 9px 0; border: 0; outline: none; background: transparent; color: var(--ink);
  font: inherit; font-size: 17px; }   /* 16px より小さいと、iPhone が欄を押したときに画面を拡大する */
.finder-close { all: unset; flex: none; padding: 8px 8px; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ink2); }
.finder-close:hover { background: var(--gray); }
.finder-msg { flex: none; font-size: 14px; color: var(--ink2); margin: 10px 2px 8px; }
.finder-list { list-style: none; padding: 0 2px 4px; margin: 0; overflow-y: auto; min-height: 0; }
.finder-list a { display: block; margin-bottom: 8px; padding: 8px 12px; color: var(--ink); text-decoration: none;
  background: var(--card); border: 2px solid var(--edge); border-radius: 10px; }
.finder-list a:hover, .finder-list a:focus-visible { background: var(--soft); outline: none; }
.finder .ft { display: block; font-weight: 700; line-height: 1.6; }
.finder .fs { display: block; margin-top: 3px; font-size: 14px; line-height: 1.7; color: var(--ink2); overflow-wrap: anywhere; }
.finder .fl { display: inline-block; margin-right: 6px; padding: 0 8px; font-size: 12px; font-weight: 700; line-height: 1.6; color: #fff;
  background: var(--badge-gray); border-radius: 999px; }
.finder mark { padding: 0 1px; border-radius: 3px; font-weight: 700; color: var(--accent-ink); background: var(--soft); }
.finder-list a:hover mark, .finder-list a:focus-visible mark { background: var(--card); }
main { max-width: 720px; margin: 0 auto; padding: 12px 18px 40px; }
.crumb { font-size: 13px; color: var(--ink2); margin: 6px 0 0; }
.crumb a { color: var(--ink2); }
h1 { font-size: 26px; line-height: 1.45; margin: 8px 0 10px; letter-spacing: .01em; }
h2 { font-size: 20px; margin: 36px 0 12px; }
h3 { font-size: 17px; margin: 22px 0 6px; }
/* 記事の見出しの前のアイコン（丸いバッジ。枠は動画とカードと同じこげ茶。34px から大きくした。2026-10-31、利用者。TA620） */
h2.sec { display: flex; align-items: center; gap: 12px; }
.ico { flex: none; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--soft); border: 2px solid var(--edge); color: var(--accent-ink); }
.ico svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
hr { border: 0; border-top: 2px solid var(--edge); opacity: .25; margin: 40px 0 24px; }
/* 題と日付の行のまとまりを、本文と線で分ける（2026-10-31、利用者「すこし上下がつまってないかな？」。TA619） */
.meta { font-size: 13px; color: var(--ink2); margin: 0 0 22px; padding-bottom: 12px;
  border-bottom: 2px solid color-mix(in srgb, var(--ink2) 30%, transparent); }
.meta span { display: inline-block; }   /* 項目の途中で折れない */
.preview { font-size: 14px; font-weight: 700; color: #fff; background: var(--ink2); border-radius: 8px; padding: 6px 12px; margin: 10px 0 0; }
.hook p { margin: 0 0 14px; font-size: 17.5px; }   /* 段落の間は行の間より広く（6px では1つの塊に見えた） */
/* つかみの最後の問いは、オレンジの枠のカードで目立たせる（2026-10-31、利用者「もっと目立たせたい」。案A。TA620） */
.hook .ask { display: flex; align-items: flex-start; gap: 12px; font-size: 21px; font-weight: 800; line-height: 1.6;
  background: var(--card); border: 3px solid var(--accent); border-radius: 14px; box-shadow: 5px 5px 0 var(--edge); padding: 14px 18px; margin: 20px 0 26px; }
.hook .qi { flex: none; display: grid; place-items: center; width: 36px; height: 36px; margin-top: 1px; border-radius: 50%; background: var(--badge); color: #fff; }
.hook .qi svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.card { position: relative; background: var(--card); border: 3px solid var(--edge); border-radius: 14px;
  box-shadow: 5px 5px 0 var(--edge); padding: 14px 18px; margin: 18px 0 26px; }
.card h2 { margin: 0 0 6px; }
.tag { display: inline-block; font-size: 13px; font-weight: 800; color: #fff; background: var(--badge);
  border-radius: 999px; padding: 2px 12px; letter-spacing: .04em; }
.tag.gray { background: var(--badge-gray); }
.answer p { margin: 0 0 10px; font-size: 17.5px; }
.answer p:last-of-type { margin-bottom: 0; }
/* ナルは小さすぎたので大きくした（64px→100px、スマホ80px。2026-10-31、利用者。TA621） */
.answer .naru { float: right; width: 100px; height: auto; margin: -4px -6px 4px 12px; transform: scaleX(-1); }
@media (max-width: 599px) { .answer .naru { width: 80px; } }
.answer::after { content: ""; display: block; clear: both; }
.myth .wrong { font-size: 18px; font-weight: 700; color: var(--ink2); margin: 6px 0 8px; }
.myth .x { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--badge);
  color: #fff; font-size: 15px; margin-right: 6px; vertical-align: 2px; }
.myth p { margin: 0 0 10px; }
figure { margin: 0 0 32px; }
figure img, .video img { display: block; width: 100%; height: auto; border: 3px solid var(--edge); border-radius: 10px; }
figcaption { margin-top: 10px; }   /* 本文と同じ字（前は15pxの薄い灰色で読みづらかった。2026-10-31、利用者。TA620） */
/* 図は押すと大きな絵が開く。右上の印で、押せると分かるようにする。開いた絵は、どこを押しても閉じる（w.py の ZOOM_JS） */
figure .zoom { display: block; position: relative; }
figure .zoom-ico { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: rgba(35,49,90,.78); color: #fff; }
.zoom-ico svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.zoomed { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 12px; border: 0; background: transparent; cursor: zoom-out; }
.zoomed[open] { display: grid; place-items: center; }
.zoomed::backdrop { background: rgba(21,26,43,.88); }
.zoomed img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; border: 3px solid var(--edge); border-radius: 10px; background: var(--card); }
.zoom-x { all: unset; position: fixed; top: 12px; right: 12px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(35,49,90,.9); color: #fff; cursor: pointer; }
.zoom-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.zoom-x:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
html:has(.zoomed[open]) { overflow: hidden; }   /* 絵の後ろのページを動かさない */
.video { position: relative; aspect-ratio: 16 / 9; }
.video button { all: unset; cursor: pointer; display: block; position: relative; }
/* 再生の札は右下（サムネイルの真ん中の大事な字を隠さない）。白い字と赤の地は 4.69 */
.video .play { position: absolute; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 6px; height: 42px;
  padding: 0 14px 0 12px; border-radius: 12px; background: #e1251b; color: #fff; font-size: 16px; font-weight: 800;
  font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
.video .play svg { width: 18px; height: 18px; fill: #fff; }
.video button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 12px; }
.video iframe { width: 100%; height: 100%; border: 3px solid var(--edge); border-radius: 10px; }
details { background: var(--card); border: 2px solid var(--edge); border-radius: 10px; margin: 0 0 10px; padding: 0 14px; }
summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
details p { margin: 0 0 12px; }
.chapters { margin-top: 12px; }
.chapters ol { list-style: none; padding: 0; margin: 0 0 10px; }
.chapters a { display: block; text-decoration: none; color: var(--ink); padding: 3px 0; font-size: 15px; }
.chapters .t { display: inline-block; width: 48px; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
/* 動画の台本の全文（字幕から。チャプターごとの見出し） */
.script h3 { font-size: 15.5px; margin: 16px 0 6px; }
.script h3 .t { display: inline-block; width: 48px; color: var(--accent-ink); text-decoration: none; font-variant-numeric: tabular-nums; }
.script .line { display: grid; grid-template-columns: 2.6em minmax(0, 1fr); gap: 8px; font-size: 15.5px; line-height: 1.75; margin: 0 0 8px; }
:lang(en) .script .line { grid-template-columns: 4em minmax(0, 1fr); }
.script .who { color: var(--ink2); font-size: 12.5px; font-weight: 700; padding-top: .25em; }
.script .say { min-width: 0; overflow-wrap: anywhere; }
/* 所長の言葉は吹き出しの形（Tの台本の欄と同じ。色だけに頼らず、形と話し手の欄でも分かる） */
.script .maru .who { color: var(--accent-ink); }
.script .maru .say { justify-self: start; padding: 1px 12px; border: 2px solid var(--accent); border-radius: 14px; background: var(--soft); color: var(--accent-ink); font-weight: 700; }
/* 持ち帰る一言：PCは絵の右に札と文。スマホは絵と札を上に並べ、文を横幅いっぱいに（細長く折れないため） */
.take { display: grid; grid-template-columns: 104px minmax(0, 1fr); grid-template-areas: "img tag" "img text";
  column-gap: 14px; row-gap: 4px; align-items: center; background: var(--soft); }
.take img { grid-area: img; width: 104px; height: auto; }
.take .tag { grid-area: tag; justify-self: start; align-self: end; }
.take p { grid-area: text; align-self: start; margin: 0; font-size: 18px; font-weight: 700; line-height: 1.7; }
/* このサイトの目的の物差しは、短い一言なので大きく（2026-11-07、利用者。TA741） */
.yard p { font-size: 26px; line-height: 1.5; }
@media (max-width: 599px) {
  .take { grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "img tag" "text text"; row-gap: 8px; }
  .take img { width: 64px; }
  .take .tag { align-self: center; }
  .yard p { font-size: 22px; }
}
.sources, .next { padding-left: 20px; }
.sources li { font-size: 16px; margin-bottom: 6px; line-height: 1.6; }
.note { font-size: 14px; color: var(--ink2); background: var(--gray); border-radius: 10px; padding: 10px 14px; }
.next { list-style: none; padding: 0; }
.next li { margin-bottom: 10px; }
.next a { display: block; background: var(--card); border: 2px solid var(--edge); border-radius: 10px; padding: 10px 14px;
  font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.6; }
.next a::after { content: " →"; color: var(--accent-ink); }
.hero { text-align: center; margin: 18px 0 8px; }
.hero h1 { font-size: 28px; }
/* 言葉の切れ目（<wbr>）でだけ折る */
.phrase { word-break: keep-all; overflow-wrap: anywhere; }
.hero p { margin: 0 0 10px; }
.small { font-size: 14px; color: var(--ink2); }
/* このサイトの目的：最初の一文と、番号つきの約束（番号は丸いバッジ。記事のつかみの問いの印と同じ色） */
.lead { font-size: 17.5px; margin: 0 0 8px; }
.promises { list-style: none; counter-reset: promise; padding: 0; margin: 0; }
.promises li { counter-increment: promise; position: relative; background: var(--card); border: 2px solid var(--edge); border-radius: 12px;
  padding: 12px 16px 12px 62px; margin: 0 0 12px; }
.promises li::before { content: counter(promise); position: absolute; left: 14px; top: 13px; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--badge); color: #fff; font-size: 17px; font-weight: 800; }
.promises h3 { font-size: 17.5px; line-height: 1.5; margin: 5px 0 6px; }
.promises p { margin: 0; }
@media (max-width: 599px) { .promises li { padding-left: 56px; } .promises li::before { left: 11px; } }
.button { display: inline-block; padding: 10px 18px; border-radius: 8px; background: var(--badge); color: #fff; text-decoration: none; font-weight: 700; }
/* スマホのトップは紹介を詰めて、最初の画面に記事が見えるようにする */
@media (max-width: 599px) {
  .hero { margin: 10px 0 4px; }
  .hero h1 { font-size: 23px; margin: 4px 0 6px; }
  .hero p { font-size: 15px; line-height: 1.7; margin: 0 0 8px; }
}
.cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .cards { grid-template-columns: repeat(2, 1fr); } }   /* 広い画面は2列（3列だとカードの題とサムネイルの字が小さい。2026-10-30、利用者） */
.cards a { display: block; background: var(--card); border: 3px solid var(--edge); border-radius: 12px; box-shadow: 4px 4px 0 var(--edge);
  overflow: hidden; color: var(--ink); text-decoration: none; }
.cards img { display: block; width: 100%; height: auto; border-bottom: 3px solid var(--edge); }
.cards span { display: block; padding: 10px 12px; font-weight: 700; line-height: 1.6; }
footer { text-align: center; font-size: 13px; color: var(--ink2); padding: 20px 16px 32px; border-top: 3px solid var(--edge); background: var(--card); }
footer a { color: var(--ink2); }
/* PCでは少し広く（1行は約46字まで。長すぎると行の頭に戻るとき目が迷う。2026-10-30、利用者「PCで見てるけど、幅が狭くないかな」） */
@media (min-width: 900px) {
  body { font-size: 18px; }
  main { max-width: 880px; }
}
/* 記事のページの横の列（分類のボタンと記事の一覧）。PCの幅だけに出す。スマホは記事の終わりの「次の問い」（2026-10-31、利用者。TA601）。
   分類のボタンは、ページを移らずに一覧だけを絞る（w.py の SIDE_JS）。選んでいる印は押したボタンの塗りだけ（印を2つにしない）。
   右に置くのは、記事の題（問い）を左上に残すため（このサイトは 問い → 予想 → 答え の順に読む） */
.side { display: none; }
@media (min-width: 1180px) {
  .with-side { display: grid; grid-template-columns: minmax(0, 880px) 270px; column-gap: 28px; justify-content: center; align-items: start; padding: 0 16px; }
  .with-side main { margin: 0; max-width: none; min-width: 0; }
  .side { display: block; position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; margin: 18px 0 40px;
    padding: 14px 12px 4px; background: var(--card); border: 3px solid var(--edge); border-radius: 12px; box-shadow: 4px 4px 0 var(--edge);
    font-size: 15px; line-height: 1.6; }
  .side h2 { font-size: 13px; margin: 0 4px 8px; color: var(--ink2); letter-spacing: .04em; }
  .side ul { list-style: none; padding: 0; margin: 0 0 10px; }
  .side [hidden] { display: none !important; }
  .side a { color: var(--ink); text-decoration: none; border-radius: 8px; }
  .side a:hover { background: var(--soft); }
  .side a:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }
  .side-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 2px 10px; padding-bottom: 12px;
    border-bottom: 2px solid color-mix(in srgb, var(--ink2) 30%, transparent); }
  .side-tabs button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 700; line-height: 1.5;
    color: var(--ink); background: var(--bg); border: 2px solid var(--edge); border-radius: 999px; padding: 2px 12px; cursor: pointer; }
  .side-tabs button:hover { background: var(--soft); }
  .side-tabs button[aria-pressed="true"] { color: #fff; background: var(--badge); }
  .side-tabs button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .side-tabs .n { font-size: 12px; font-weight: 700; color: var(--ink2); }
  .side-tabs button[aria-pressed="true"] .n { color: #fff; }
  /* 区切りの線は、見えている行の間だけ（隠した行の後ろに線が残らないように） */
  .side-new li:not([hidden]) ~ li:not([hidden]) { border-top: 1px dashed color-mix(in srgb, var(--ink2) 40%, transparent); }
  .side-new a, .side-new li[aria-current] { display: block; padding: 8px; font-weight: 700; }
  .side-new li[aria-current] { background: var(--soft); border-radius: 8px; box-shadow: inset 4px 0 0 var(--accent); }
  .side-new .now { display: block; width: fit-content; margin-bottom: 4px; padding: 0 8px; font-size: 11px; line-height: 1.7; color: #fff; background: var(--badge); border-radius: 999px; }
  .side-new .d { display: block; margin-top: 2px; font-size: 12px; font-weight: 400; color: var(--ink2); }
}
/* トップの新しい形（TA644。2026-10-31、利用者「こちらは何か寂しくない？」）：左右に立つ所長とナル（バナーと同じ置き方。ナルは左右反転して内側を向く）、
   新しい問いの大きなカード、分類の見出しのアイコンと件数、カードの公開日と動画の長さ */
.hero2 { display: grid; grid-template-columns: 154px minmax(0, 1fr) 154px; column-gap: 8px; align-items: end; margin: 14px 0 26px; }
.hero2 .who { display: block; width: 154px; height: auto; }
.hero2 .naru { transform: scaleX(-1); }
.hero2 .say { align-self: center; }
.hero2 h1 { margin-top: 0; }
@media (max-width: 599px) {
  .hero2 { grid-template-columns: 1fr 1fr; grid-template-areas: "maru naru" "say say"; column-gap: 6px; margin: 4px 0 18px; }
  .hero2 .maru { grid-area: maru; justify-self: end; }
  .hero2 .naru { grid-area: naru; justify-self: start; }
  .hero2 .say { grid-area: say; padding-bottom: 0; }
  .hero2 .who { width: 80px; height: 120px; }
}
.feature { display: grid; margin: 0 0 14px; background: var(--card); border: 3px solid var(--edge); border-radius: 14px; box-shadow: 5px 5px 0 var(--edge);
  overflow: hidden; color: var(--ink); text-decoration: none; }
.feature img { display: block; width: 100%; height: auto; border-bottom: 3px solid var(--edge); }
.feature .fbody { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 16px 16px; }
.feature .fq { font-size: 21px; font-weight: 800; line-height: 1.5; }
.feature .fh { font-size: 15px; line-height: 1.75; color: var(--ink2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature .cm { font-size: 13px; color: var(--ink2); }
.feature .go { margin-top: 4px; font-size: 15px; font-weight: 700; color: #fff; background: var(--badge); border-radius: 8px; padding: 5px 14px; }
.feature:hover { background: var(--soft); }
.feature:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
/* PCの幅は絵を左に。字の側が絵より高いときも絵を切らず（サムネイルの字が端で切れるため。2026-11-06、利用者。TA726）、上下の余りはカードの地のまま */
@media (min-width: 900px) {
  .feature { grid-template-columns: 460px minmax(0, 1fr); }
  .feature img { height: 100%; object-fit: contain; border-bottom: 0; border-right: 3px solid var(--edge); }
  .feature .fh { -webkit-line-clamp: 2; }
}
h2.sec .n { font-size: 13px; font-weight: 700; line-height: 1.7; color: #fff; background: var(--badge-gray); border-radius: 999px; padding: 0 9px; }
.cards .cm { padding: 0 12px 10px; margin-top: -6px; font-size: 13px; font-weight: 400; color: var(--ink2); }
/* 用語のページ（2026-11-06、利用者「中学生にもわかる世界一わかりやすい用語説明」。TA719・TA723）：1分で解説・たとえ・確認問題・関連用語・用語のカード。
   確認問題の正解と不正解は、色だけでなく ○× の印・線・言葉でも分かるようにする（利用者は赤と緑を見分けにくい） */
.analogy { background: var(--soft); }
.analogy h3 { margin: 8px 0 6px; font-size: 18px; }
.analogy p { margin: 0 0 10px; }
.analogy p:last-child { margin-bottom: 0; }
figure img.svg { background: #fffdf7; }
.quiz { list-style: none; padding: 0; margin: 0; }
.quiz .q { background: var(--card); border: 3px solid var(--edge); border-radius: 14px; box-shadow: 4px 4px 0 var(--edge); padding: 14px 16px 8px; margin: 0 0 18px; }
.quiz .qq { display: flex; align-items: baseline; gap: 10px; margin: 0 0 12px; font-size: 17.5px; font-weight: 700; line-height: 1.7; }
.quiz .qn { flex: none; font-size: 13px; font-weight: 800; color: #fff; background: var(--badge-gray); border-radius: 999px; padding: 1px 10px; }
.quiz .opts { display: grid; gap: 8px; margin: 0 0 12px; }
.quiz .opt { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; cursor: pointer;
  border: 2px solid var(--edge); border-radius: 10px; background: var(--bg); line-height: 1.6; }
.quiz .opt:hover:not(:disabled) { background: var(--soft); }
.quiz .opt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.quiz .ol { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--edge);
  background: var(--card); font-size: 14px; font-weight: 800; }
.quiz .opt:disabled { cursor: default; opacity: .55; }
.quiz .opt.right, .quiz .opt.miss { opacity: 1; }
.quiz .opt.right { border: 3px solid var(--accent); background: var(--soft); font-weight: 700; }
.quiz .opt.right .ol { color: #fff; background: var(--badge); border-color: var(--badge); }
.quiz .opt.right::after, .quiz .opt.miss::after { margin-left: auto; padding-left: 8px; font-size: 20px; font-weight: 800; }
.quiz .opt.right::after { content: "○"; color: var(--accent-ink); }
.quiz .opt.miss::after { content: "×"; color: var(--ink2); }
.quiz .opt.miss > span:last-child { text-decoration: line-through; text-decoration-thickness: 2px; }
.quiz .qa { margin: 0 0 8px; }
.quiz .res { margin: 2px 0 6px; font-size: 18px; font-weight: 800; }
.quiz .q[data-done="ok"] .res { color: var(--accent-ink); }
.quiz .q[data-done="ok"] .res::before { content: "○ "; }
.quiz .q[data-done="ng"] .res::before { content: "× "; }
.quiz-score { display: inline-block; margin: 0 0 10px; padding: 6px 16px; font-size: 17px; font-weight: 800; color: #fff; background: var(--badge); border-radius: 999px; }
.chips { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li > * { display: inline-block; padding: 3px 14px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none;
  background: var(--card); border: 2px solid var(--edge); border-radius: 999px; }
.chips a { background: var(--soft); }
.chips a::after { content: " →"; color: var(--accent-ink); }
.terms { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .terms { grid-template-columns: repeat(2, 1fr); } }
.terms a { display: block; height: 100%; padding: 12px 14px; color: var(--ink); text-decoration: none;
  background: var(--card); border: 3px solid var(--edge); border-radius: 12px; box-shadow: 4px 4px 0 var(--edge); }
.terms a:hover { background: var(--soft); }
.terms a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.terms .tn { display: block; font-size: 18px; font-weight: 800; line-height: 1.5; }
.terms .ts { display: block; margin-top: 4px; font-size: 14.5px; line-height: 1.7; color: var(--ink2); }
.all-terms { margin: 10px 0 0; text-align: right; font-weight: 700; }
/* 用語のページの題の下の「別の呼び名」 */
.aka { margin: -4px 0 6px; font-size: 14px; color: var(--ink2); }
.aka span { display: inline-block; }   /* 名前の途中で折れない */
.quiz .see { margin: 0 0 10px; font-weight: 700; }
.quiz .see a { display: inline-block; }   /* 2行に折れても、押せる所を1つの四角にする */
/* 用語のページの目次（1分で解説のすぐ下。段へ飛ぶ。2026-11-06、利用者。TA723）。スマホでは折り返す */
.toc ul { list-style: none; padding: 0; margin: -10px 0 22px; display: flex; flex-wrap: wrap; gap: 8px; }
.toc a { display: inline-block; padding: 3px 14px; font-size: 15px; font-weight: 700; color: var(--ink); text-decoration: none;
  background: var(--card); border: 2px solid var(--edge); border-radius: 999px; }
.toc a::before { content: "↓ "; color: var(--accent-ink); }
.toc a:hover { background: var(--soft); }
.toc a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* ページの中の段へ飛んだとき、上の帯に見出しが隠れない */
main [id] { scroll-margin-top: 72px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
/* 上へ（1画面ぶん下へ進むと右下に出る。色だけでなく ↑ と字で示す）。--wbar は、Tの下見だけに出る下の帯の高さ（T の w_bar.js が入れる。本番は 0） */
.totop { position: fixed; right: 16px; bottom: calc(16px + var(--wbar, 0px) + env(safe-area-inset-bottom)); z-index: 3; display: inline-flex; align-items: center; gap: 4px;
  font: inherit; font-size: 14px; font-weight: 800; color: var(--ink); background: var(--card); border: 2px solid var(--edge); border-radius: 999px;
  box-shadow: 3px 3px 0 var(--edge); padding: 6px 14px 6px 10px; cursor: pointer; }
.totop[hidden] { display: none; }
.totop svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.totop:hover { background: var(--soft); }
.totop:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
/* PCの横の列（記事のページ）の下の端が、上へのボタンに重ならない */
@media (min-width: 1180px) { .with-side .side { max-height: calc(100vh - 150px - var(--wbar, 0px)); } }
