/* 原田英語の多読ジュニア — 絵本の紙のような、やさしい見た目 */
/* hidden 属性は必ず隠す（.player の display:flex などに負けて、朗読のない話にも押しても鳴らない再生バーが出ていた） */
[hidden] { display: none !important; }
:root {
  --paper: #fdf8ee;
  --paper2: #f6eedc;
  --card: #fffdf7;
  --ink: #3b2f25;
  --ink2: #6d5d4f;
  --line: #e7dcc6;
  --leaf: #4f8a3c;
  --leaf2: #e3f0d4;
  --sky: #3f86c6;
  --sky2: #dcecf9;
  --berry: #d9534f;
  --berry2: #fbe1df;
  --sun: #f2b632;
  --sun2: #fdf0cc;
  --plum: #8a5cb8;
  --plum2: #efe5f8;
  --hl: #ffe27a;
  --hl-word: #ffb84d;
  --shadow: 0 2px 0 rgba(90, 64, 30, 0.08), 0 8px 24px rgba(90, 64, 30, 0.08);
  --r: 18px;
  --en: 'Andika', 'Fredoka', system-ui, sans-serif;
  --ja: 'Zen Maru Gothic', 'M PLUS Rounded 1c', 'Hiragino Maru Gothic ProN', system-ui, sans-serif;
  --head: 'Fredoka', 'Zen Maru Gothic', system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme='night'] {
  --paper: #1d2236;
  --paper2: #252b44;
  --card: #283050;
  --ink: #f1ead8;
  --ink2: #c3bba6;
  --line: #3b4466;
  --leaf: #8fd07a;
  --leaf2: #2c3d38;
  --sky: #8cc3f2;
  --sky2: #263a55;
  --berry: #ff8f8a;
  --berry2: #4a2f3b;
  --sun: #ffd166;
  --sun2: #4a4130;
  --plum: #c9a7ee;
  --plum2: #3a3155;
  --hl: #5b4f1f;
  --hl-word: #c8892a;
  --shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  background-image: radial-gradient(rgba(150, 110, 60, 0.05) 1px, transparent 1px);
  background-size: 18px 18px;
  color: var(--ink);
  font-family: var(--ja);
  line-height: 1.75;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
a { color: var(--sky); }
button { font: inherit; color: inherit; cursor: pointer; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.en { font-family: var(--en); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ヘッダー */
.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 10px; height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 42px; height: 42px; }
.brand b { font-family: var(--head); font-size: 1.15rem; white-space: nowrap; }
.brand small { display: block; font-size: 0.68rem; color: var(--ink2); line-height: 1.1; white-space: nowrap; }
.nav { display: flex; }
@media (min-width: 861px) { .nav { position: fixed; top: 0; right: max(16px, calc((100vw - 1120px) / 2 + 16px)); height: 60px; align-items: center; z-index: 51; } }
html, body { overflow-x: clip; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink); font-size: 0.7rem; padding: 4px 8px; border-radius: 12px; }
.nav-links a img { width: 30px; height: 30px; }
.nav-links a:hover, .nav-links a[aria-current] { background: var(--sun2); }
.nav-head, .nav-more, .nav-shade { display: none; }
/* ハンバーガー（スマホ・タブレット） */
.hamburger { display: none; margin-left: auto; align-items: center; gap: 6px; background: var(--card); border: 2px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 10px; font-weight: 700; font-size: 0.82rem; color: var(--ink); min-height: 44px; }
.hamburger .bars { display: inline-flex; flex-direction: column; gap: 4px; width: 22px; }
.hamburger .bars i { display: block; height: 3px; border-radius: 2px; background: var(--ink); }
@media (max-width: 860px) {
  .hamburger { display: inline-flex; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); z-index: 80; flex-direction: column; background: var(--paper); box-shadow: -10px 0 30px rgba(0,0,0,.25); padding: 12px 14px 24px; overflow-y: auto; transform: translateX(105%); transition: transform .25s ease; visibility: hidden; }
  .nav.open { transform: none; visibility: visible; }
  .nav-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-family: var(--head); font-size: 1.1rem; }
  .nav-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper2); font-size: 1.6rem; line-height: 1; color: var(--ink); }
  .nav-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nav-links a { background: var(--card); border: 1px solid var(--line); padding: 10px 4px; font-size: 0.85rem; font-weight: 700; min-height: 76px; justify-content: center; }
  .nav-links a img { width: 36px; height: 36px; }
  .nav-more { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
  .nav-more a:not(.btn) { display: flex; align-items: center; gap: 8px; padding: 10px 6px; color: var(--ink); text-decoration: none; font-weight: 700; border-radius: 10px; }
  .nav-more a:not(.btn) img { width: 28px; height: 28px; }
  .nav-more .btn { justify-content: center; margin-top: 4px; }
  .nav-shade:not([hidden]) { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 70; }
  body.nav-open { overflow: hidden; }
}
/* 上へもどるボタン */
.to-top { position: fixed; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 60; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--sky); color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; opacity: 0; transform: translateY(16px) scale(.8); pointer-events: none; transition: opacity .2s, transform .2s; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
body.has-player .to-top { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* 共通の部品 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; border: 0;
  background: var(--leaf); color: #fff; font-weight: 700; text-decoration: none;
  box-shadow: 0 4px 0 color-mix(in srgb, var(--leaf) 60%, #000);
  transition: transform 0.1s, box-shadow 0.1s;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--leaf) 60%, #000); }
.btn.sun { background: var(--sun); color: #3b2f25; box-shadow: 0 4px 0 #c48f1d; }
.btn.sky { background: var(--sky); box-shadow: 0 4px 0 #2b6496; }
.btn.berry { background: var(--berry); box-shadow: 0 4px 0 #a83a37; }
.btn.ghost { background: var(--card); color: var(--ink); border: 2px solid var(--line); box-shadow: none; }
.btn img { width: 26px; height: 26px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--paper2); font-size: 0.78rem; color: var(--ink2); white-space: nowrap; }
.chip img { width: 18px; height: 18px; }
.chip.ok { background: var(--leaf2); color: var(--leaf); font-weight: 700; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); }
.sec { padding: 40px 0; }
.sec-h { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; font-family: var(--head); font-size: clamp(1.3rem, 3.4vw, 1.8rem); line-height: 1.3; }
.sec-h img { width: 52px; height: 52px; flex: none; }
.sec-h small { display: block; font-size: 0.8rem; color: var(--ink2); font-family: var(--ja); font-weight: 400; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
.muted { color: var(--ink2); }
.stars { color: var(--sun); letter-spacing: -1px; white-space: nowrap; }

/* ヒーロー */
.hero { position: relative; overflow: hidden; border-radius: 0 0 36px 36px; background: #cfe6f6; }
.hero > img.bg { width: 100%; height: clamp(360px, 52vw, 560px); object-fit: cover; display: block; }
.hero .copy {
  position: absolute; left: 0; right: 0; top: 0; padding: clamp(18px, 4vw, 48px) 16px;
  max-width: 1120px; margin: 0 auto;
}
.hero h1 {
  margin: 0; font-family: var(--head); font-size: clamp(1.9rem, 5.6vw, 3.6rem); line-height: 1.15; color: #2d2418;
  text-shadow: 0 2px 0 #fff, 0 0 18px rgba(255, 255, 255, 0.9);
}
.hero h1 small { display: block; font-size: 0.42em; font-family: var(--ja); color: #4a3a28; margin-bottom: 6px; }
.hero .lead { margin: 12px 0 18px; max-width: 30em; font-size: clamp(0.92rem, 2.2vw, 1.12rem); font-weight: 700; color: #2d2418; text-shadow: 0 0 10px #fff, 0 0 4px #fff; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 640px) {
  .hero > img.bg { height: 300px; object-position: 70% 50%; }
  .hero .copy { position: relative; background: var(--paper); padding: 16px; }
  .hero h1, .hero .lead { text-shadow: none; color: var(--ink); }
  .hero h1 small { color: var(--ink2); }
}

/* 本物宣言 */
.genuine { margin-top: -28px; position: relative; z-index: 2; }
.genuine .card { padding: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.genuine .g { text-align: center; }
.genuine .g img { width: 64px; height: 64px; }
.genuine .g b { display: block; font-size: 1.02rem; }
.genuine .g span { font-size: 0.8rem; color: var(--ink2); }
.genuine .num { font-family: var(--head); font-size: 1.6rem; color: var(--leaf); }
@media (max-width: 760px) { .genuine .card { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pledge { position: relative; padding: 30px 26px 24px; background: var(--card); }
.pledge::before { content: ''; position: absolute; inset: 8px; border: 2px dashed color-mix(in srgb, var(--sun) 70%, var(--line)); border-radius: calc(var(--r) - 6px); pointer-events: none; }
.pledge .seal { position: absolute; top: -18px; right: 16px; width: 84px; height: 84px; transform: rotate(10deg); filter: drop-shadow(0 4px 6px rgba(0,0,0,.18)); }
.pledge h2 { margin: 0 70px 12px 0; font-family: var(--head); }
.pledge ul { margin: 0; padding: 0; list-style: none; }
.pledge li { position: relative; margin: 10px 0; padding-left: 34px; line-height: 1.75; }
.pledge li img.chk { position: absolute; left: 0; top: 2px; width: 26px; height: 26px; }

/* 作品カード */
.story-card { display: flex; flex-direction: column; text-decoration: none; color: var(--ink); overflow: hidden; transition: transform 0.15s; position: relative; }
.story-card:hover { transform: translateY(-3px) rotate(-0.4deg); }
.story-card .pic { aspect-ratio: 4/3; background: var(--paper2); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.story-card .pic img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 6px; }
:root[data-theme='night'] .story-card .pic img { mix-blend-mode: normal; }
.story-card .t { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.story-card .t b { font-size: 0.98rem; line-height: 1.35; }
.story-card .t .en { font-size: 0.84rem; color: var(--ink2); line-height: 1.3; }
.story-card .meta { margin-top: auto; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 0.76rem; }
.story-card .done { position: absolute; top: 8px; right: 8px; width: 54px; height: 54px; transform: rotate(12deg); filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }

/* 本棚 */
.shelf { margin-bottom: 34px; }
.shelf-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.shelf-h img { width: 48px; height: 48px; flex: none; }
.shelf-h h3 { margin: 0; font-family: var(--head); font-size: 1.25rem; line-height: 1.3; }
.shelf-h p { margin: 0; font-size: 0.82rem; color: var(--ink2); }
.shelf-h a { margin-left: auto; white-space: nowrap; font-size: 0.85rem; flex: none; }
.row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 14px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; }
.row > * { scroll-snap-align: start; }
.coll-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
.coll-tile { display: flex; gap: 12px; align-items: center; padding: 14px; text-decoration: none; color: var(--ink); }
.coll-tile img { width: 64px; height: 64px; flex: none; }
.coll-tile b { display: block; font-size: 1.05rem; }
.coll-tile span { font-size: 0.8rem; color: var(--ink2); }

/* 今日の1話 */
.today { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; overflow: hidden; }
.today .pic { background: var(--paper2); display: flex; align-items: center; justify-content: center; min-height: 240px; }
.today .pic img { max-height: 320px; object-fit: contain; mix-blend-mode: multiply; padding: 12px; }
.today .t { padding: 22px; }
.today .t .tag { display: inline-block; background: var(--berry); color: #fff; font-weight: 700; padding: 2px 12px; border-radius: 999px; font-size: 0.8rem; }
.today h3 { margin: 8px 0 4px; font-size: 1.4rem; line-height: 1.35; }
@media (max-width: 700px) { .today { grid-template-columns: 1fr; } }

/* フッター */
footer { margin-top: 50px; padding: 30px 0 110px; background: var(--paper2); border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--ink2); }
footer .cols { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); }
footer a { color: var(--ink); }
footer h4 { margin: 0 0 6px; color: var(--ink); }

/* ---------------------------------------------------------- 読むページ */
.reader-head { padding-top: 22px; padding-bottom: 8px; } /* 左右は .narrow の 16px を残す（0 にするとスマホで文字が画面のふちにくっついていた） */
.crumbs { font-size: 0.8rem; color: var(--ink2); }
.crumbs a { color: var(--ink2); }
.reader-head h1 { margin: 6px 0 2px; font-family: var(--en); font-size: clamp(1.6rem, 4.6vw, 2.4rem); line-height: 1.2; }
.reader-head .ja-title { font-size: clamp(1rem, 2.8vw, 1.25rem); font-weight: 700; color: var(--ink2); }
.reader-head .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.sum { padding: 14px 16px; margin: 12px 0; display: flex; gap: 12px; align-items: flex-start; }
.sum img { width: 56px; height: 56px; flex: none; }
.sum p { margin: 0; }

.tools { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.tool { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font-size: 0.85rem; font-weight: 700; }
.tool img { width: 24px; height: 24px; }
a.tool { color: inherit; text-decoration: none; }
.tool[aria-pressed='true'] { border-color: var(--leaf); background: var(--leaf2); color: var(--leaf); }

.book { padding-bottom: 20px; }
.page { margin: 0 0 18px; }
.page .ill { display: flex; justify-content: center; margin: 10px 0 14px; }
.page .ill img { max-height: 460px; width: auto; border-radius: 6px; mix-blend-mode: multiply; cursor: zoom-in; }
:root[data-theme='night'] .page .ill img { mix-blend-mode: normal; opacity: 0.92; }
.text { font-family: var(--en); font-size: var(--fs, 1.38rem); line-height: 1.9; }
.text p { margin: 0 0 0.6em; }
.text .poem { margin: 0.4em 0 1em 0.6em; }
.text .poem .u { display: block; width: fit-content; }
.text .cap { font-size: 0.82em; color: var(--ink2); font-style: italic; text-align: center; }
.text .moral { margin-top: 0.8em; padding: 12px 16px; background: var(--sun2); border-radius: 14px; font-weight: 700; display: block; }
.text h3 { font-family: var(--en); font-size: 1.05em; margin: 1.2em 0 0.4em; }
.u { border-radius: 6px; padding: 1px 2px; cursor: pointer; transition: background 0.15s; -webkit-tap-highlight-color: transparent; }
.u:hover { background: color-mix(in srgb, var(--hl) 35%, transparent); }
/* 2026-11-06 ユーザー「光ものだけでいい。文のマーカーがうざったい」→ 単語が光る文は文の背景を付けない。単語の時刻がない文だけ文ごと光らせる */
.u.now:not(:has(.w[data-k])) { background: var(--hl); box-shadow: 0 0 0 2px var(--hl); }
.w { border-radius: 4px; transition: background 0.08s, color 0.08s; }
.w.now { background: var(--hl-word); color: #2a1b00; }
.w.said { color: inherit; }
.u .ja { display: none; }
.show-ja .u .ja, .u.open .ja { display: block; font-family: var(--ja); font-size: 0.66em; color: var(--sky); line-height: 1.6; margin: 2px 0 6px; font-weight: 700; }
.text .poem .u .ja { margin-left: 0.4em; }
.cj { text-decoration: underline dotted 2px color-mix(in srgb, var(--sky) 55%, transparent); text-underline-offset: 4px; }

/* プレーヤー（下に固定） */
.player {
  position: fixed; left: 50%; bottom: 10px; transform: translateX(-50%);
  width: min(760px, calc(100% - 16px)); z-index: 60;
  background: var(--card); border: 2px solid var(--line); border-radius: 26px; box-shadow: 0 10px 30px rgba(60, 40, 10, 0.2);
  padding: 8px 12px; display: flex; align-items: center; gap: 8px;
}
.player .play { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--leaf); display: flex; align-items: center; justify-content: center; flex: none; box-shadow: 0 4px 0 #2f5a22; }
.player .play img { width: 44px; height: 44px; }
.player .play:active { transform: translateY(3px); box-shadow: 0 1px 0 #2f5a22; }
.player .mid { flex: 1; min-width: 0; }
.player .who { font-size: 0.72rem; color: var(--ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player .bar { height: 10px; background: var(--paper2); border-radius: 99px; overflow: hidden; cursor: pointer; margin-top: 4px; }
.player .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--sun), var(--berry)); border-radius: 99px; }
.player .pb { background: none; border: 0; padding: 4px; display: flex; flex-direction: column; align-items: center; font-size: 0.62rem; color: var(--ink2); flex: none; min-width: 40px; }
.player .pb img { width: 30px; height: 30px; }
.player .pb[aria-pressed='true'] { color: var(--leaf); font-weight: 700; }
@media (max-width: 520px) {
  .player { gap: 4px; padding: 6px 8px; }
  .player .pb { min-width: 34px; }
  .player .pb img { width: 26px; height: 26px; }
  .player .hide-s { display: none; }
}

/* 単語カード */
.wordpop {
  position: fixed; z-index: 80; width: min(320px, calc(100% - 20px)); background: var(--card); border: 2px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); padding: 14px; font-family: var(--ja);
}
.wordpop .hw { font-family: var(--en); font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.wordpop .hw img.pic { width: 64px; height: 64px; margin-left: auto; }
.wordpop .mean { margin: 6px 0; font-size: 1rem; }
.wordpop .lv { font-size: 0.75rem; color: var(--ink2); }
.wordpop .acts { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.wordpop .acts button { border: 2px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px 12px; font-weight: 700; font-size: 0.85rem; display: inline-flex; align-items: center; gap: 4px; }
.wordpop .acts img { width: 22px; height: 22px; }
.wordpop .x { position: absolute; right: 8px; top: 4px; border: 0; background: none; font-size: 1.4rem; color: var(--ink2); }

/* 読み終わり */
.finish { text-align: center; padding: 26px 18px; margin: 20px 0; }
.finish img.m { width: 140px; height: 140px; }
.finish h2 { margin: 6px 0; font-family: var(--head); }
.finish .acts { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* 出典台帳 */
.ledger { padding: 20px; margin: 24px 0; font-size: 0.9rem; }
.ledger h2 { margin: 0 0 10px; display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 1.25rem; }
.ledger h2 img { width: 40px; height: 40px; }
.ledger dl { display: grid; grid-template-columns: 8em minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.ledger dt { font-weight: 700; color: var(--ink2); }
.ledger dd { margin: 0; overflow-wrap: anywhere; }
.ledger .meter { height: 12px; border-radius: 99px; background: var(--paper2); overflow: hidden; margin-top: 4px; max-width: 260px; }
.ledger .meter i { display: block; height: 100%; background: var(--leaf); }
.ledger table { width: 100%; border-collapse: collapse; font-size: 0.82rem; margin-top: 6px; }
.ledger td, .ledger th { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: left; }
.ledger tr.win td { font-weight: 700; color: var(--leaf); }
@media (max-width: 560px) { .ledger dl { grid-template-columns: 1fr; } .ledger dt { margin-top: 6px; } }

/* モーダル（クイズ・ごほうび） */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(40, 28, 10, 0.55); display: flex; align-items: center; justify-content: center; padding: 12px; }
.modal .box { width: min(560px, 100%); max-height: calc(100vh - 24px); overflow: auto; background: var(--card); border-radius: 26px; padding: 22px; position: relative; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.modal .close { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 1.8rem; color: var(--ink2); }
.quiz-q { font-size: 1.2rem; font-weight: 700; margin: 8px 0 14px; display: flex; gap: 10px; align-items: center; }
.quiz-q img { width: 70px; height: 70px; flex: none; }
.quiz-c { display: grid; gap: 10px; }
.quiz-c button { text-align: left; padding: 14px 16px; border-radius: 16px; border: 3px solid var(--line); background: var(--paper); font-size: 1.05rem; font-weight: 700; transition: transform 0.1s; }
.quiz-c button:hover { transform: scale(1.02); border-color: var(--sky); }
.quiz-c button.ok { border-color: var(--leaf); background: var(--leaf2); }
.quiz-c button.ng { border-color: var(--berry); background: var(--berry2); opacity: 0.8; }
.quiz-ex { margin-top: 12px; padding: 12px; border-radius: 14px; background: var(--sky2); }
.quiz-prog { display: flex; gap: 6px; justify-content: center; }
.quiz-prog i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.quiz-prog i.on { background: var(--sun); }
.stamp-get { text-align: center; }
.stamp-get img.st { width: 180px; height: 180px; animation: stampin 0.7s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes stampin { from { transform: scale(2.6) rotate(-30deg); opacity: 0; } to { transform: scale(1) rotate(-8deg); opacity: 1; } }

/* 紙ふぶき */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 120; }

/* 森 */
.forest-stage { position: relative; aspect-ratio: 16/9; border-radius: 24px; overflow: hidden; background: #bfe0f3; box-shadow: var(--shadow); }
.forest-stage > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.forest-stage .it { position: absolute; transform: translate(-50%, -100%); pointer-events: none; filter: drop-shadow(0 4px 3px rgba(0,0,0,.18)); animation: grow 0.8s cubic-bezier(.2, 1.5, .4, 1) both; }
@keyframes grow { from { transform: translate(-50%, -100%) scale(0); } to { transform: translate(-50%, -100%) scale(1); } }
.stampbook { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); }
.stampbook a { text-align: center; text-decoration: none; color: var(--ink2); font-size: 0.7rem; line-height: 1.3; }
.stampbook img { width: 84px; height: 84px; transform: rotate(-6deg); }
.stampbook .empty { width: 84px; height: 84px; border-radius: 50%; border: 3px dashed var(--line); margin: 0 auto; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; color: var(--line); }

/* 拡大の絵 */
.zoom { position: fixed; inset: 0; z-index: 110; background: rgba(20, 14, 6, 0.85); display: flex; align-items: center; justify-content: center; padding: 16px; cursor: zoom-out; }
.zoom img { max-width: 100%; max-height: 100%; background: #fffdf5; border-radius: 8px; }

/* 検索・絞りこみ */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.filters input { flex: 1 1 220px; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font: inherit; color: var(--ink); }
.filters select { max-width: 100%; padding: 8px 12px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font: inherit; color: var(--ink); }

/* 文章ページ */
.prose h2 { font-family: var(--head); margin-top: 1.8em; }
.prose p, .prose li { font-size: 1rem; }
.prose .box { padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); margin: 14px 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 8px 0; }
.faq summary { font-weight: 700; cursor: pointer; }

/* 印刷（賞状） */
@media print {
  body { background: #fff; }
  .top, footer, .player, .no-print { display: none !important; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
/* ブランド名「原田英語の 多読ベストジュニア」・フッターのボタン */
.brand span { display: flex; flex-direction: column; }
.brand small { font-weight: 700; color: var(--berry); font-size: 0.72rem; }
.ft-brand { margin-bottom: 18px; }
.ft-brand p { margin: 6px 0; }
.ft-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px !important; }
.ft-btns .btn { padding: 8px 16px; font-size: 0.9rem; }
.x-btn { background: #111; color: #fff !important; box-shadow: 0 4px 0 #000; }
.x-btn span { font-weight: 700; margin-right: 4px; }
.for-all .card h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 1.05rem; }
.for-all .card h3 img { width: 34px; height: 34px; }
.for-all .card p { margin: 0; font-size: 0.92rem; line-height: 1.75; }
.card.who { margin-top: 14px; line-height: 1.9; background: var(--leaf2); }
.more-btn { display: block; margin: 18px auto 0; min-width: 240px; }
.result-info { margin: 4px 0 8px; font-size: 0.85rem; }
details.ledger-coll { margin: 10px 0; }
details.ledger-coll > summary { cursor: pointer; font-weight: 700; padding: 10px 14px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); list-style: none; }
details.ledger-coll > summary::after { content: ' ▼'; font-size: 0.75rem; color: var(--ink2); }
details.ledger-coll[open] > summary::after { content: ' ▲'; }
/* ヒーローの文字は、絵の上に半透明の紙を敷いて読みやすく（広い画面のとき） */
@media (min-width: 641px) {
  .hero .lead { background: rgba(255, 252, 244, 0.86); border-radius: 18px; padding: 12px 16px; text-shadow: none; box-shadow: 0 6px 20px rgba(0,0,0,.08); }
  .hero h1 small { color: var(--berry); font-weight: 700; }
}
@media (max-width: 640px) {
  .hero .cta .btn { flex: 1 1 calc(50% - 10px); justify-content: center; }
  .hero .cta .btn:first-child { flex-basis: 100%; }
}
@media (max-width: 640px) {
  .genuine { margin-top: 18px; }
  .hero .cta .btn { white-space: nowrap; font-size: 0.92rem; padding-left: 10px; padding-right: 10px; }
  .hero .cta .btn img { width: 24px; height: 24px; }
  .hero { padding-bottom: 6px; }
}
.for-all .card { padding: 20px 22px; }
.for-all .card h3 { line-height: 1.4; margin-bottom: 10px; }
.card.who { padding: 18px 22px; }
@media (max-width: 640px) { .for-all .card { padding: 18px 18px; } }

/* 自分でスクロールして読んでいる文が見えなくなったとき */
.follow-back { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(100px + env(safe-area-inset-bottom)); z-index: 61; border: 0; border-radius: 99px; padding: 11px 20px; background: var(--berry, #c0456a); color: #fff; font: inherit; font-weight: 700; font-size: .95rem; box-shadow: 0 6px 16px rgba(0,0,0,.25); white-space: nowrap; cursor: pointer; }
.follow-back[hidden] { display: none; }
/* なぜなに Q&A */
.why-qs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.why-q { padding: 14px 16px; }
.why-q summary { cursor: pointer; font-weight: 700; line-height: 1.6; }
.why-q summary b { color: var(--berry); }
.why-q p { margin: 10px 0 0; line-height: 1.8; }
.why-q[hidden] { display: none; }
/* リンク集 */
.grid.links { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.link-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; color: var(--ink); text-decoration: none; }
.link-card b { line-height: 1.5; color: var(--sky); }
.link-card p { margin: 0; line-height: 1.75; font-size: .92rem; }
.link-card .lk-top { display: flex; flex-wrap: wrap; gap: 4px; }
.link-card .pop { display: flex; align-items: center; gap: 4px; color: var(--ink2); }
.link-card .pop img { width: 18px; height: 18px; }
.link-card .lk-note { color: var(--berry); line-height: 1.6; }
.link-card[hidden] { display: none; }
.link-toc { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 14px 18px; margin: 14px 0 6px; }
.link-toc a { font-weight: 700; }
.tbl-wrap { overflow-x: auto; margin-top: 10px; }
table.states { width: 100%; border-collapse: collapse; background: var(--card); font-size: .92rem; }
table.states th, table.states td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.states th { background: var(--paper2); }
table.states tr[hidden] { display: none; }
.st-quiz { padding: 16px 18px; margin-top: 12px; }
.st-quiz .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.st-quiz .acts .btn { flex: 1 1 140px; line-height: 1.3; }

/* ===== 姉妹サイト「多読ベスト」の紹介（多読ベストの絵をそのまま大きく） ===== */
.tb-promo { margin: 34px 0; }
.tb-card { position: relative; display: block; min-height: 300px; padding: 30px 32px; border-radius: 28px; text-decoration: none; color: #fff; background: #1d1a3a; border: 3px solid #f2c45a; box-shadow: 0 14px 40px rgba(20, 10, 60, .35); overflow: hidden; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.tb-card .tb-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; z-index: -2; animation: kenburns 22s ease-in-out infinite alternate; }
.tb-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 14, 48, .92) 0%, rgba(18, 14, 48, .78) 42%, rgba(18, 14, 48, .15) 75%, transparent); }
.tb-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 45%, transparent 60%); transform: translateX(-120%); pointer-events: none; }
.tb-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(20, 10, 60, .45); }
.tb-card:hover::after { animation: shine 1.1s ease; }
.tb-copy { position: relative; max-width: 560px; }
.tb-kicker { display: inline-block; font-weight: 700; letter-spacing: .12em; color: #ffd76a; font-size: .8rem; border: 1px solid rgba(255, 215, 106, .6); border-radius: 99px; padding: 2px 12px; }
.tb-copy h2 { margin: 10px 0 10px; font-family: var(--head); font-size: clamp(1.3rem, 3.6vw, 1.9rem); line-height: 1.4; color: #fff; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.tb-copy h2 b { color: #ffd76a; }
.tb-copy p { margin: 0 0 14px; line-height: 1.9; color: rgba(255,255,255,.92); }
.tb-copy p b { color: #ffe49a; }
.tb-promo.big .tb-card { padding: 40px 40px 26px; min-height: 520px; }
.tb-promo.big .tb-copy h2 { font-size: clamp(1.6rem, 4.6vw, 2.5rem); }
.tb-stats { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tb-stats li { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 215, 106, .45); backdrop-filter: blur(4px); border-radius: 16px; padding: 10px 6px; text-align: center; }
.tb-stats b { display: block; font-family: var(--head); font-size: clamp(1.4rem, 4.4vw, 2.1rem); color: #ffd76a; line-height: 1.1; }
.tb-stats span { font-size: .78rem; color: rgba(255,255,255,.85); }
.tb-go { font-size: 1.05rem; }
.tb-go .arr { display: inline-block; transition: transform .2s; }
.tb-card:hover .tb-go .arr { transform: translateX(6px); }
.tb-shots { position: relative; display: flex; gap: 12px; margin-top: 26px; overflow: hidden; }
.tb-shots figure { flex: 1 1 0; min-width: 0; margin: 0; border-radius: 14px; overflow: hidden; border: 2px solid rgba(255, 215, 106, .7); box-shadow: 0 6px 18px rgba(0,0,0,.35); background: #000; transition: transform .3s; }
.tb-shots figure:nth-child(odd) { animation: floaty 6s ease-in-out infinite; }
.tb-shots figure:nth-child(even) { animation: floaty 6s 1.5s ease-in-out infinite; }
.tb-shots img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tb-shots figcaption { font-size: .75rem; text-align: center; padding: 3px 4px; color: #ffe49a; background: rgba(18, 14, 48, .85); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-more .nav-tb { display: flex; gap: 8px; align-items: center; background: color-mix(in srgb, var(--sun) 25%, var(--card)); border: 2px solid var(--sun); border-radius: 16px; padding: 8px 12px; }
.nav-more .nav-tb span { display: flex; flex-direction: column; line-height: 1.35; }
.nav-more .nav-tb small { font-size: .75rem; color: var(--ink2); }
@media (max-width: 640px) {
  .tb-card, .tb-promo.big .tb-card { padding: 24px 18px 18px; min-height: 0; }
  .tb-card::before { background: linear-gradient(180deg, rgba(18, 14, 48, .55) 0%, rgba(18, 14, 48, .88) 45%, rgba(18, 14, 48, .95)); }
  .tb-card .tb-bg { object-position: 72% 30%; }
  .tb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-shots figure:nth-child(n+4) { display: none; }
}

/* ===== ゲームの入口タイル（2026-11-05 ユーザー「絵は真ん中でいい」） ===== */
.game-tiles { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.game-tile { position: relative; overflow: hidden; padding: 0; color: var(--ink); text-decoration: none !important; display: flex; flex-direction: column; text-align: center; border-radius: 22px; }
.game-tile .gt-art { aspect-ratio: 16 / 9; overflow: hidden; background: color-mix(in srgb, var(--sky) 20%, var(--card)); }
.game-tile .gt-bg { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.game-tile:hover .gt-bg { transform: scale(1.07); }
.game-tile .gt-ic { margin: -40px auto 0; width: 80px; height: 80px; border-radius: 50%; background: var(--card); box-shadow: 0 6px 16px rgba(0,0,0,.15); display: grid; place-items: center; position: relative; }
.game-tile .gt-ic img { width: 60px; height: 60px; }
.game-tile:hover .gt-ic img { animation: wiggle .5s ease; }
.game-tile .gt-body { padding: 8px 18px 18px; display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.game-tile b { display: block; font-family: var(--head); font-size: 1.25rem; }
.game-tile span { display: block; font-size: .9rem; line-height: 1.65; color: var(--ink2); }
.game-tile .chip { margin-top: 4px; }
.game-tile .gt-go { margin-top: auto; padding-top: 8px; font-style: normal; font-weight: 700; color: var(--berry); }

/* ===== 読むページ：本物の挿絵がない話の絵（AI と明記） ===== */
.page .ill.art { flex-direction: column; align-items: center; }
.page .ill.art img { width: 100%; max-height: none; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; mix-blend-mode: normal; box-shadow: 0 10px 28px rgba(0,0,0,.18); }
.page .ill .ai-note { display: block; margin-top: 6px; font-size: .75rem; color: var(--ink2); text-align: center; }
.story-card .pic img.art, .today .pic img.art { object-fit: cover; mix-blend-mode: normal; padding: 0; width: 100%; height: 100%; max-height: none; }

/* ===== うごき（2026-11-05 ユーザー「動かしてね色々」） ===== */
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@keyframes shine { to { transform: translateX(120%); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(8deg); } }
@keyframes popin { from { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); } to { transform: scale(1); opacity: 1; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.08); } }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 4px 0 #c48f1d, 0 0 0 0 rgba(242, 182, 50, .45); } 50% { box-shadow: 0 4px 0 #c48f1d, 0 0 0 12px rgba(242, 182, 50, 0); } }
/* スクロールで出てくる */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
/* トップの大きな絵はゆっくりズーム、文字は順に */
.hero .bg { animation: kenburns 18s ease-in-out infinite alternate; }
.hero .copy > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero .copy > *:nth-child(2) { animation-delay: .12s; }
.hero .copy > *:nth-child(3) { animation-delay: .24s; }
.hero .copy > *:nth-child(4) { animation-delay: .36s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero .cta .btn.sun { animation: rise .8s .36s both, ctaPulse 2.4s 1.4s ease-in-out infinite; }
/* ちびクロウはふわふわ */
.brand img { transition: transform .3s; }
.brand:hover img { animation: wiggle .6s ease; }
.sec-h > img:first-child { transition: transform .3s; }
.sec-h.in > img:first-child { animation: popin .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.card.pledge .seal { animation: floaty 5s ease-in-out infinite; }
/* カードとボタン */
.card { transition: transform .22s ease, box-shadow .22s ease, opacity .6s ease; }
a.card:hover, .coll-tile:hover, .game-tile:hover, .link-card:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(0,0,0,.16); }
a.card:hover img, .coll-tile:hover img { animation: wiggle .5s ease; }
.btn { transition: transform .15s ease, box-shadow .15s ease, filter .15s; }
.btn:hover { transform: translateY(-2px); filter: brightness(1.05); }
.btn:active { transform: translateY(2px); }
.btn.sun { position: relative; overflow: hidden; }
.btn.sun::after { content: ''; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.btn.sun:hover::after { animation: shine .9s ease; }
.genuine .num { display: inline-block; }
.genuine .g.in > img { animation: popin .6s cubic-bezier(.2, 1.6, .4, 1) both; }
.to-top:hover { transform: translateY(-4px) scale(1.06); }
.nav-links a { transition: transform .15s, background .15s; }
.nav-links a:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}

/* ===== 🔰 このサイトについて ===== */
.wakaba { display: inline-block; vertical-align: -5px; flex: none; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.about-pill { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; color: #3b2f25; font-weight: 700; font-size: .82rem; background: #fffbe6; border: 2px solid #f6c800; border-radius: 999px; padding: 6px 12px 6px 10px; min-height: 40px; white-space: nowrap; transition: transform .15s; }
.about-pill:hover { transform: translateY(-2px); }
.about-pill + .hamburger { margin-left: 8px; }
.about-pill .s { display: none; }
@media (max-width: 520px) {
  .about-pill .l { display: none; } .about-pill .s { display: inline; }
  .about-pill { padding: 5px 10px 5px 8px; font-size: .78rem; min-height: 38px; }
  .hamburger b { display: none; } .hamburger { padding: 6px 10px; }
  .top .brand b { font-size: 1rem; white-space: nowrap; }
}
@media (max-width: 340px) { .about-pill .s { display: none; } .top .brand small { display: none; } }
.nav-more .nav-about { font-weight: 700; background: #fffbe6; border: 2px solid #f6c800; border-radius: 14px; }
.hero-about { margin: 12px 0 0; }
.hero-about a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .9rem; color: #3b2f25; background: rgba(255,255,255,.88); border-radius: 999px; padding: 6px 14px 6px 10px; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.about-hero { position: relative; overflow: hidden; min-height: 340px; display: flex; align-items: flex-end; border-radius: 0 0 36px 36px; isolation: isolate; color: #fff; }
.about-hero > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: kenburns 20s ease-in-out infinite alternate; }
.about-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,14,40,.05) 20%, rgba(20,14,40,.78)); }
.about-hero .wrap { width: 100%; padding-bottom: 30px; }
.ah-copy { max-width: 640px; }
.ah-kicker { display: inline-flex; gap: 6px; align-items: center; margin: 0; font-weight: 700; background: rgba(255,255,255,.92); color: #3b2f25; border-radius: 999px; padding: 4px 14px 4px 10px; font-size: .85rem; }
.about-hero h1 { margin: 10px 0 8px; font-family: var(--head); font-size: clamp(2rem, 6vw, 3.2rem); text-shadow: 0 3px 14px rgba(0,0,0,.45); }
.about-hero p { line-height: 1.9; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.about h2.sec-h { margin-top: 46px; }
.promise { display: grid; gap: 16px; }
.pm { position: relative; background: var(--card); border: 2px solid var(--line); border-radius: 22px; padding: 20px 20px 18px 74px; box-shadow: 0 6px 18px rgba(0,0,0,.06); }
.pm-n { position: absolute; left: 18px; top: 18px; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, var(--berry), var(--sun)); box-shadow: 0 4px 0 rgba(0,0,0,.12); }
.pm h3 { margin: 0 0 6px; font-family: var(--head); font-size: 1.2rem; }
.pm p { margin: 0; line-height: 1.95; }
.pm small { display: block; margin-top: 8px; color: var(--ink2); font-size: .82rem; }
.qa { display: grid; gap: 12px; }
.qa-q { display: flex; gap: 12px; align-items: center; }
.qa-q img { flex: none; }
.qa-q p { margin: 0; font-weight: 700; font-size: 1.05rem; background: var(--paper2); border-radius: 18px 18px 18px 4px; padding: 12px 16px; }
.qa-a { background: var(--card); border-left: 6px solid var(--sun); border-radius: 0 20px 20px 0; padding: 14px 20px; margin: 0 0 18px 30px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.qa-a p { line-height: 1.95; margin: 8px 0; }
.nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0; }
.nums span { background: var(--card); border: 2px solid var(--line); border-radius: 18px; padding: 12px 6px; text-align: center; font-size: .82rem; color: var(--ink2); }
.nums b { display: block; font-family: var(--head); font-size: clamp(1.5rem, 5vw, 2.2rem); color: var(--berry); line-height: 1.15; }
.ai-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ai-cols .card { padding: 16px 18px; }
.ai-cols h3 { margin: 0 0 6px; font-family: var(--head); }
.ai-cols li { line-height: 1.85; margin: 6px 0; }
.prof { padding: 22px; }
.prof-head { display: flex; gap: 14px; align-items: center; }
.prof-head small { color: var(--ink2); font-size: .82rem; }
.prof-head h3 { margin: 2px 0 0; font-family: var(--head); font-size: 1.7rem; }
.prof-head h3 span { font-size: .55em; margin-left: 10px; color: var(--ink2); font-family: var(--ja); }
.prof-owl { animation: floaty 4s ease-in-out infinite; }
.timeline { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-wrap: wrap; gap: 6px 0; }
.timeline li { font-size: .85rem; background: var(--paper2); padding: 4px 12px; border-radius: 999px; }
.timeline li + li::before { content: '→'; margin: 0 6px 0 -4px; color: var(--ink2); }
.timeline li:last-child { background: color-mix(in srgb, var(--sun) 35%, var(--card)); }
.quals { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quals span { font-weight: 700; border: 2px solid var(--sky); color: var(--ink); border-radius: 10px; padding: 3px 12px; font-size: .9rem; }
.quals small { color: var(--ink2); }
.msg { margin: 16px 0; background: linear-gradient(135deg, color-mix(in srgb, var(--sun) 16%, var(--card)), color-mix(in srgb, var(--sky) 12%, var(--card))); border-radius: 18px; padding: 16px 18px; }
.msg b { letter-spacing: .2em; color: var(--berry); font-size: .85rem; }
.msg p { margin: 6px 0 0; line-height: 2; }
.tb-big { display: block; border-radius: 22px; overflow: hidden; border: 3px solid #f2c45a; box-shadow: 0 12px 30px rgba(20,10,60,.25); }
.tb-big img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; transition: transform .5s; }
.tb-big:hover img { transform: scale(1.04); }
.tb-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tb-links a { display: flex; gap: 8px; align-items: center; padding: 12px 14px; background: var(--card); border: 2px solid var(--line); border-radius: 16px; text-decoration: none; color: var(--ink); font-weight: 700; transition: transform .15s; }
.tb-links a:hover { transform: translateY(-3px); border-color: var(--sun); }
.tb-links a img { width: 28px; height: 28px; }
@media (max-width: 640px) {
  .pm { padding: 18px 16px 16px 16px; }
  .pm-n { position: static; margin-bottom: 8px; }
  .qa-a { margin-left: 10px; padding: 12px 14px; }
  .nums, .tb-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-cols { grid-template-columns: 1fr; }
  .about-hero { min-height: 300px; }
}
.narrow.sec, .wrap.sec { padding-left: 16px; padding-right: 16px; }
@media (max-width: 520px) { .top .wrap { gap: 6px; } .top .brand img { width: 36px; height: 36px; } .top .brand b { font-size: .95rem; } }
.nav-links .wk { width: 30px; height: 30px; display: grid; place-items: center; }
.nav-links .wk .wakaba { width: 20px; height: 28px; vertical-align: 0; }
@media (min-width: 861px) { .about-pill { display: none; } }
@media (min-width: 861px) and (max-width: 1060px) { .nav-links a { padding: 4px 5px; } .top .brand small { display: none; } }
/* トップの「6つの理由」は閉じておく（ページが長くなりすぎないように） */
.more-why { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 0 0 14px; }
.more-why > summary { display: flex; align-items: center; gap: 8px; font-weight: 700; cursor: pointer; min-height: 32px; }
.more-why > summary img { width: 24px; height: 24px; }
.more-why[open] > summary { margin-bottom: 12px; }
/* ひる／よるモードのスイッチ（ヘッダー） */
.theme-sw { display: inline-flex; align-items: center; margin-left: 10px; min-height: 40px; padding: 4px 12px 4px 9px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; flex: none; }
.theme-sw > span { display: inline-flex; align-items: center; gap: 4px; }
.theme-sw .sun, :root[data-theme='night'] .theme-sw .moon { display: none; }
:root[data-theme='night'] .theme-sw .sun { display: inline-flex; }
.theme-sw:hover { background: var(--sun2); }
@media (max-width: 480px) {
  .theme-sw { margin-left: 0; padding: 0; width: 36px; min-height: 36px; justify-content: center; } .theme-sw b { display: none; }
  /* スイッチのぶん、「はじめて」は若葉マークだけにして1行に収める（メニューにも「はじめて」がある） */
  .about-pill .s { display: none; }
  .about-pill { padding: 4px 8px; min-height: 36px; }
  .top .brand img { flex: none; }
}

/* English Quiz（原文のあなうめ） */
.eq-sub { display: block; font-size: 0.85rem; font-weight: 400; color: var(--ink2); }
.eq-sent { font-size: 1.25rem; line-height: 1.7; padding: 12px 14px; border-radius: 14px; background: var(--paper); border: 2px dashed var(--line); margin-bottom: 10px; }
.eq-sent .u, .eq-sent .w { cursor: default; }
.eq-blank { display: inline-block; min-width: 4.2em; text-align: center; border-bottom: 3px solid var(--berry); color: var(--berry); font-weight: 700; padding: 0 4px; }
.eq-blank.filled { color: var(--leaf); border-color: var(--leaf); }
.eq-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.eq-tools .btn { padding: 6px 12px; font-size: 0.9rem; }
.eq-tools .btn img { width: 22px; height: 22px; }
.eq-hint, .eq-ja { font-size: 0.95rem; color: var(--ink2); margin: 0 0 10px; }
.eq-c button { text-align: center; font-size: 1.2rem; }
.eq-ans { display: flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 1.1rem; }
.eq-pic { width: 64px; height: 64px; object-fit: contain; border-radius: 12px; background: #fff; }
.eq-say { border: 0; background: none; padding: 0; vertical-align: middle; cursor: pointer; }
.eq-say img { width: 28px; height: 28px; }
/* さがすボタン（ヘッダー・ほんだな・なぜ？） */
.search-sw { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; min-height: 40px; padding: 4px 12px 4px 8px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: .82rem; cursor: pointer; white-space: nowrap; flex: none; }
.search-sw img { width: 26px; height: 26px; }
.search-sw:hover, .search-sw[aria-expanded='true'] { background: var(--sun2); }
.hsearch { border-top: 1px solid var(--line); }
.hsearch-in { max-width: 720px; margin: 0 auto; padding: 10px 16px; display: flex; gap: 8px; }
.hsearch-in input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 999px; border: 2px solid var(--line); background: var(--card); font: inherit; color: var(--ink); }
.sbtn { display: inline-flex; align-items: center; justify-content: center; gap: 4px; flex: none; min-height: 44px; padding: 6px 16px 6px 10px; border-radius: 999px; border: 2px solid #c48f1d; background: var(--sun); color: #3b2f25; font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sbtn img { width: 22px; height: 22px; }
.sbtn:hover { filter: brightness(1.05); }
.sbtn:active { transform: translateY(1px); }
.filters .sbox { flex: 1 1 260px; display: flex; gap: 6px; min-width: 0; }
.filters .sbox input { flex: 1 1 auto; }
.filters, .result-info { scroll-margin-top: 76px; }
.kq-search { scroll-margin-top: 76px; }
@media (min-width: 861px) and (max-width: 1180px) { .search-sw b { display: none; } .search-sw { padding: 4px 7px; } }
@media (max-width: 480px) {
  .search-sw { margin-left: 0; padding: 0; width: 36px; min-height: 36px; justify-content: center; } .search-sw b { display: none; }
  .search-sw img { width: 24px; height: 24px; }
  .sbtn { padding: 6px 12px 6px 8px; }
}
/* さがすボタンのぶん、スマホのヘッダーをつめて「多読ベストジュニア」を1行に収める */
@media (max-width: 480px) {
  .top .wrap { gap: 4px; }
  .top .brand { gap: 4px; }
  .top .brand img { width: 32px; height: 32px; }
  .top .brand b { font-size: .9rem; }
  .about-pill + .hamburger { margin-left: 4px; }
  .hamburger { padding: 6px 8px; }
}
@media (max-width: 374px) { .top .brand small { display: none; } .top .brand b { font-size: .85rem; } }

/* クイズのふりがな */
.furi { line-height: 2; }
.furi rt { font-size: 0.55em; font-weight: 400; color: var(--ink2); letter-spacing: 0; }
.quiz-c.furi button, .g-choices.furi button { line-height: 1.9; }
.furi-sw { display: flex; justify-content: flex-start; margin: 6px 0 -4px; }
.furi-sw button { border: 2px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 3px 12px; font-size: 0.85rem; font-weight: 700; cursor: pointer; }
.furi-sw button[aria-pressed="true"] { border-color: var(--leaf); background: var(--leaf2); }

/* ===== スマホをシュッと（2026-11-07 ユーザー「スマホで見ると長ったらしい＋ダサい。もっとかっこよく、シュッと。情報量はしっかり」）
   方針：情報は消さずに、1列に縦に並んでいたカードを2列・横スクロールにまとめ、余白と文字の大きさを整える ===== */
@media (max-width: 640px) {
  body { line-height: 1.7; }
  .sec { padding: 22px 0; }
  .sec-h { gap: 8px; margin-bottom: 12px; font-size: 1.22rem; letter-spacing: .01em; }
  .sec-h img { width: 40px; height: 40px; }
  .sec-h small { font-size: .74rem; line-height: 1.45; margin-top: 2px; }
  .card { border-radius: 16px; }

  /* ヒーロー：絵は低く、文字は絵に少し重ねた紙の上に */
  .hero { border-radius: 0 0 28px 28px; }
  .hero > img.bg { height: 210px; }
  .hero .copy { margin-top: -26px; border-radius: 24px 24px 0 0; padding: 16px 16px 14px; box-shadow: 0 -6px 18px rgba(60, 40, 10, .08); }
  .hero h1 { font-size: 1.85rem; letter-spacing: .02em; }
  .hero h1 small { font-size: .82rem; color: var(--berry); font-weight: 700; margin-bottom: 2px; }
  .hero .lead { margin: 8px 0 12px; font-size: .86rem; font-weight: 500; line-height: 1.75; }
  .hero .lead b { font-weight: 700; }
  .hero .cta { gap: 8px; }
  .hero .cta .btn { min-height: 46px; }
  .hero-about { margin-top: 10px; }
  .hero-about a { display: flex; font-size: .8rem; line-height: 1.5; padding: 8px 12px; border: 1px solid var(--line); box-shadow: none; }

  /* 数字（1040話・94時間…）：2×2 の横長タイルに */
  .genuine { margin-top: 12px; }
  .genuine .card { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; padding: 14px 12px; }
  .genuine .g { display: grid; grid-template-columns: 38px 1fr; column-gap: 8px; align-items: center; text-align: left; }
  .genuine .g img { width: 38px; height: 38px; grid-row: span 3; align-self: start; }
  .genuine .num { font-size: 1.3rem; line-height: 1.1; }
  .genuine .g b { font-size: .8rem; line-height: 1.35; }
  .genuine .g span { grid-column: 1 / -1; font-size: .66rem; line-height: 1.45; margin-top: 3px; }

  /* 今日のおはなし：絵は低めに */
  .today .pic { min-height: 0; height: 200px; }
  .today .pic img { max-height: 200px; height: 100%; }
  .today .t { padding: 14px 16px 16px; }
  .today h3 { font-size: 1.2rem; margin: 6px 0 2px; }
  .today .t p { font-size: .9rem; line-height: 1.75; margin: 8px 0; }

  /* 横に流れる名作の列 */
  .row { grid-auto-columns: 150px; gap: 10px; padding: 2px 2px 10px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scroll-padding-left: 16px; }

  /* 作品カード（ほんだな・作品集）：2列に */
  .grid:has(> .story-card) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .story-card .t { padding: 8px 10px 10px; gap: 2px; }
  .story-card .t b { font-size: .86rem; line-height: 1.35; }
  .story-card .t .en { font-size: .72rem; }
  .story-card .meta { gap: 4px; font-size: .68rem; margin-top: 4px; }
  .story-card .meta .chip { padding: 1px 7px; font-size: .68rem; }
  .story-card .meta .chip img { width: 14px; height: 14px; }
  .story-card .stars { font-size: .72rem; }
  .story-card .done { width: 40px; height: 40px; }

  /* 作品集・ゲーム・特設のタイル：2列のコンパクトなタイルに */
  .coll-tiles, .grid:has(> .coll-tile) { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* 作品集（29）は3段の横スクロールに：下へ長く並ばず、指で横にめくる */
  .coll-tiles { grid-template-columns: none; grid-template-rows: repeat(3, auto); grid-auto-flow: column; grid-auto-columns: 44%; overflow-x: auto; scroll-snap-type: x proximity; margin: 0 -16px; padding: 2px 16px 10px; scroll-padding-left: 16px; scrollbar-width: thin; }
  .coll-tiles > * { scroll-snap-align: start; }
  .coll-tiles + p, .coll-tiles ~ .swipe-hint { margin-top: 6px; }
  .coll-tile { gap: 8px; padding: 10px; align-items: flex-start; border-radius: 14px; }
  .coll-tile img { width: 38px; height: 38px; }
  .coll-tile b { font-size: .86rem; line-height: 1.35; }
  .coll-tile span { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .68rem; line-height: 1.45; margin-top: 2px; }
  .coll-tile small { font-size: .62rem; }

  /* 本物宣言・使い方の箱 */
  .pledge { padding: 22px 16px 16px; }
  .pledge .seal { width: 64px; height: 64px; top: -14px; right: 10px; }
  .pledge h2 { font-size: 1.2rem; margin-right: 56px; line-height: 1.4; }
  .pledge li { font-size: .88rem; line-height: 1.7; padding-left: 30px; margin: 8px 0; }
  .pledge li img.chk { width: 22px; height: 22px; }
  .card.who { padding: 14px 16px; font-size: .88rem; line-height: 1.8; }
  .more-why { padding: 10px 14px; }
  .for-all .card { padding: 14px 16px; }
  .for-all .card p { font-size: .86rem; }

  /* 姉妹サイトの紹介 */
  .tb-promo { margin: 22px 0; }
  .tb-promo.big .tb-card, .tb-card { padding: 20px 16px 16px; border-radius: 22px; }
  .tb-copy h2, .tb-promo.big .tb-copy h2 { font-size: 1.3rem; }
  .tb-copy p { font-size: .84rem; line-height: 1.75; }
  .tb-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
  .tb-stats li { padding: 8px 2px; border-radius: 12px; }
  .tb-stats b { font-size: 1.15rem; }
  .tb-stats span { display: block; font-size: .6rem; line-height: 1.35; }
  .tb-shots { margin-top: 16px; gap: 8px; }

  /* よくある質問 */
  .faq details { padding: 10px 14px; border-radius: 12px; margin: 6px 0; }
  .faq summary { font-size: .9rem; line-height: 1.55; }
  .faq details p { font-size: .88rem; margin: 8px 0 2px; }

  /* 読むページ */
  .reader-head { padding-top: 14px; }
  .reader-head h1 { font-size: 1.7rem; }
  .reader-head .meta { gap: 4px; margin: 8px 0; }
  .reader-head .meta .chip { font-size: .7rem; padding: 2px 8px; }
  .sum { padding: 12px 14px; gap: 10px; font-size: .9rem; line-height: 1.75; }
  .sum img { width: 44px; height: 44px; }
  .tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 10px 0; }
  .tool { flex-direction: column; justify-content: center; gap: 2px; padding: 7px 4px 6px; border-radius: 14px; font-size: .7rem; line-height: 1.3; text-align: center; min-height: 58px; }
  .tool img { width: 26px; height: 26px; }
  .text { font-size: var(--fs, 1.24rem); line-height: 1.85; }
  .page .ill img { max-height: 380px; }
  .finish { padding: 20px 14px; }
  .finish img.m { width: 96px; height: 96px; }
  .finish h2 { font-size: 1.3rem; }
  .finish .acts { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .finish .acts .btn { width: 100%; min-height: 46px; padding: 10px 12px; font-size: .92rem; }
  .finish .acts + .acts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finish .acts + .acts .btn { font-size: .78rem; line-height: 1.35; padding: 8px 10px; }
  .finish .acts + .acts .btn:only-child { grid-column: 1 / -1; }
  .ledger { padding: 16px 14px; font-size: .82rem; line-height: 1.7; }
  .ledger h2 { font-size: 1.05rem; line-height: 1.4; }
  .ledger h2 img { width: 32px; height: 32px; }

  /* 絞りこみ */
  .filters { gap: 6px; margin: 10px 0 12px; }
  .filters select { flex: 1 1 calc(50% - 6px); font-size: .85rem; padding: 7px 10px; }
  .filters .sbox { flex-basis: 100%; }

  /* フッター */
  footer { margin-top: 30px; padding: 24px 0 100px; font-size: .78rem; line-height: 1.7; }
  footer .cols { grid-template-columns: 1fr; gap: 12px; }
  footer h4 { font-size: .85rem; margin-bottom: 2px; }
  footer .cols p { margin: 4px 0; }
  .ft-brand { margin-bottom: 12px; }
  .ft-btns .btn { flex: 1 1 0; padding: 8px 10px; font-size: .82rem; white-space: nowrap; }
}
