/* キョウテタン — 共テ英語 出た単語・言い換え・予想
   デザイン：書籍の単語帳。生成りの紙 × 墨 × 朱（赤ペン）× 紺。見出し語はセリフ体、見出しは明朝。
   飾りは細い罫線と余白で。絵文字はUIに使わない（単語の絵の代わりだけ）。 */
:root {
  --bg: #f5f2ec;
  --bg2: #ece7de;
  --card: #fffdf9;
  --ink: #1c1b20;
  --sub: #57555c;
  --faint: #8e8b90;
  --line: #e4ded2;
  --line2: #d3cbbc;
  --navy: #1d2b4f;
  --navy2: #2c3d69;
  --brand: #1d2b4f;
  --brand2: #34497d;
  --brand-soft: #e9ecf4;
  --shu: #c8371d;
  --shu-soft: #f8e8e2;
  --gold: #b08a3e;
  --seen: #c8371d;
  --seen-soft: #f8e8e2;
  --pred: #1f6f6b;
  --pred-soft: #e2efed;
  --para: #5b3a8c;
  --para-soft: #eee8f6;
  --phr: #9a6a0e;
  --phr-soft: #f6eedc;
  --multi: #8a2f5b;
  --multi-soft: #f4e5ec;
  --ok: #1f7a4a;
  --ng: #c8371d;
  --h0: #eee9df;
  --h1: #f1d6cb;
  --h2: #e3a690;
  --h3: #d27358;
  --h4: #b8462a;
  --h5: #87280f;
  --shadow: 0 1px 0 rgba(28, 25, 20, .04), 0 10px 28px -16px rgba(28, 25, 20, .22);
  --shadow2: 0 1px 0 rgba(28, 25, 20, .05), 0 22px 50px -24px rgba(28, 25, 20, .35);
  --r: 14px;
  --tabh: 62px;
  --en: "Inter", "Noto Sans JP", system-ui, sans-serif;
  --disp: "Fraunces", "Noto Serif JP", Georgia, serif;
  --serif: "Source Serif 4", Georgia, serif;
  --min: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --jp: "Noto Sans JP", system-ui, -apple-system, "Hiragino Sans", sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121216; --bg2: #1b1b21; --card: #1a1a20; --ink: #ecebef; --sub: #b4b2ba; --faint: #85838c; --line: #2b2a32; --line2: #3a3943;
    --brand: #c9d3ee; --brand2: #dfe5f6; --brand-soft: #232a3d; --navy: #1b2340; --navy2: #26315a;
    --seen: #ec6d4f; --seen-soft: #33201b; --shu: #ec6d4f; --shu-soft: #33201b; --pred: #4fb3aa; --pred-soft: #142a28; --para: #a98be0; --para-soft: #251d36; --phr: #d9a53e; --phr-soft: #2c2412; --multi: #e07aa8; --multi-soft: #321a26;
    --h0: #24232a; --h1: #4a2a21; --h2: #7a3a28; --h3: #b2533a; --h4: #e36f50; --h5: #ffb8a2;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -16px rgba(0, 0, 0, .6); --shadow2: 0 22px 50px -24px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121216; --bg2: #1b1b21; --card: #1a1a20; --ink: #ecebef; --sub: #b4b2ba; --faint: #85838c; --line: #2b2a32; --line2: #3a3943;
  --brand: #c9d3ee; --brand2: #dfe5f6; --brand-soft: #232a3d; --navy: #1b2340; --navy2: #26315a;
  --seen: #ec6d4f; --seen-soft: #33201b; --shu: #ec6d4f; --shu-soft: #33201b; --pred: #4fb3aa; --pred-soft: #142a28; --para: #a98be0; --para-soft: #251d36; --phr: #d9a53e; --phr-soft: #2c2412; --multi: #e07aa8; --multi-soft: #321a26;
  --h0: #24232a; --h1: #4a2a21; --h2: #7a3a28; --h3: #b2533a; --h4: #e36f50; --h5: #ffb8a2;
  --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 28px -16px rgba(0, 0, 0, .6); --shadow2: 0 22px 50px -24px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.75 var(--jp); letter-spacing: .01em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; font-feature-settings: "palt" 1;
}
body::before { content: ""; position: fixed; inset: 0; background-image: var(--grain); pointer-events: none; z-index: 0; opacity: .7; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
.en { font-family: var(--en); }
.serif { font-family: var(--serif); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ico-s { width: 20px; height: 20px; flex: none; }
.icimg { width: 100%; height: 100%; object-fit: contain; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 8px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 11px; color: var(--ink); min-width: 0; flex: 1; }
.logo .mk { width: 36px; height: 36px; flex: none; border-radius: 9px; }
.logo .t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo b { font: 700 17px var(--min); letter-spacing: .08em; white-space: nowrap; }
.logo small { font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: .06em; }
.ib { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--sub); flex: none; }
.ib:hover { background: var(--bg2); }
.ib svg { width: 21px; height: 21px; }

/* ---------- layout ---------- */
main { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 16px 16px calc(var(--tabh) + 34px + env(safe-area-inset-bottom)); min-height: 70vh; }
.sec { margin: 34px 0 12px; display: flex; align-items: baseline; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.sec h2 { margin: 0; font: 700 19px/1.3 var(--min); letter-spacing: .06em; }
.sec .more { margin-left: auto; font-size: 13px; font-weight: 500; }
.sec small { color: var(--faint); font-size: 11.5px; letter-spacing: .04em; }
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px; }
.card + .card { margin-top: 12px; }
.muted { color: var(--sub); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.center { text-align: center; }
hr.sep { border: 0; border-top: 1px solid var(--line); margin: 14px 0; }
.kicker { font: 600 10.5px var(--en); letter-spacing: .22em; text-transform: uppercase; color: var(--faint); }

/* ---------- tabs ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: center;
  background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom);
}
.tabs a { flex: 1; max-width: 150px; height: var(--tabh); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--faint); font-size: 10px; font-weight: 500; letter-spacing: .08em; position: relative; }
.tabs a svg { width: 22px; height: 22px; stroke-width: 1.7; }
.tabs a.on { color: var(--ink); }
.tabs a.on::before { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--shu); border-radius: 0 0 2px 2px; }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(15, 15, 20, .42); z-index: 50; opacity: 0; pointer-events: none; transition: .25s; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(330px, 88vw); z-index: 51; background: var(--card);
  transform: translateX(105%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); overflow-y: auto;
  padding: calc(20px + env(safe-area-inset-top)) 14px 30px; box-shadow: var(--shadow2); border-left: 1px solid var(--line);
}
.drawer.on { transform: none; }
.drawer h3 { font: 600 10.5px var(--en); color: var(--faint); letter-spacing: .22em; margin: 20px 8px 6px; text-transform: uppercase; }
.drawer a, .drawer button.dl { display: flex; align-items: center; gap: 12px; padding: 9px 8px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: 14px; width: 100%; text-align: left; }
.drawer a:hover, .drawer button.dl:hover { background: var(--bg); }
.drawer .ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; flex: none; color: var(--sub); background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.drawer .ico svg { width: 17px; height: 17px; }

/* ---------- chips / badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 13px; border-radius: 99px;
  background: var(--card); border: 1px solid var(--line2); font-size: 12.5px; font-weight: 500; color: var(--sub); white-space: nowrap;
}
.chip.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.bdg { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 4px; font-size: 11px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
.bdg.seen { background: var(--seen-soft); color: var(--seen); }
.bdg.pred { background: var(--pred-soft); color: var(--pred); }
.bdg.para { background: var(--para-soft); color: var(--para); }
.bdg.phr { background: var(--phr-soft); color: var(--phr); }
.bdg.multi { background: var(--multi-soft); color: var(--multi); }
.bdg.gray { background: transparent; color: var(--sub); border: 1px solid var(--line2); }
.bdg.tier { font-family: var(--disp); font-weight: 600; color: #fff; min-width: 22px; justify-content: center; letter-spacing: 0; font-size: 12.5px; }
.tier-S { background: #c8371d; } .tier-A { background: #c26a1b; } .tier-B { background: #1d2b4f; } .tier-C { background: #5c6270; }
.tier-P { background: #1f6f6b; } .tier-M { background: #8a2f5b; } .tier-F { background: #9a6a0e; } .tier-G { background: #2f6f5e; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 12px; font-weight: 700; font-size: 14.5px; background: var(--ink); color: var(--card); letter-spacing: .06em; transition: transform .12s, background .2s;
}
.btn:active { transform: scale(.98); }
.btn.brand { background: var(--navy); color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line2); }
.btn.wide { width: 100%; }
.btn.sm { min-height: 38px; font-size: 13px; padding: 0 14px; border-radius: 10px; }
.say { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: var(--card); color: var(--ink); border: 1px solid var(--line2); position: relative; transition: transform .12s; }
.say:active { transform: scale(.92); }
.say svg { width: 18px; height: 18px; }
.say.playing { background: var(--ink); color: var(--card); border-color: var(--ink); }
.say.playing::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ink); animation: ping 1s infinite; }
.say.sm { width: 32px; height: 32px; }
.say.sm svg { width: 15px; height: 15px; }
.say .vx { position: absolute; right: -4px; bottom: -4px; font: 600 9px var(--en); background: var(--card); color: var(--sub); border: 1px solid var(--line2); border-radius: 99px; padding: 0 4px; line-height: 14px; }
@keyframes ping { from { opacity: .7; transform: scale(1); } to { opacity: 0; transform: scale(1.35); } }

/* ---------- home ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: 18px; padding: 26px 22px 22px; color: #f4efe6;
  background: radial-gradient(80% 70% at 100% 0%, rgba(176, 138, 62, .22), transparent 60%), linear-gradient(170deg, #22305a, #141c36);
  box-shadow: var(--shadow2);
}
.hero::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: 1; mix-blend-mode: overlay; }
.hero::after { content: ""; position: absolute; inset: 9px; border: 1px solid rgba(214, 186, 128, .35); border-radius: 12px; pointer-events: none; }
.hero > * { position: relative; z-index: 1; }
.hero .kick { font: 600 10.5px var(--en); letter-spacing: .26em; color: #d6ba80; text-transform: uppercase; }
.hero h1 { margin: 10px 0 8px; font: 700 clamp(21px, 6.2vw, 36px)/1.42 var(--min); letter-spacing: .04em; }
.hero h1 em { font-style: normal; color: #fff; background: linear-gradient(transparent 70%, rgba(200, 55, 29, .85) 70%); padding: 0 2px; }
.hero p { margin: 0; font-size: 13px; color: rgba(244, 239, 230, .78); max-width: 27em; line-height: 1.8; }
.hero .mascot { position: absolute; right: 2px; bottom: 6px; width: 128px; height: 128px; object-fit: contain; z-index: 1; }
.hero .stats { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin-top: 18px; max-width: calc(100% - 110px); }
.hero .stats div { padding: 0 16px 0 0; margin-right: 16px; border-right: 1px solid rgba(214, 186, 128, .3); }
.hero .stats div:last-child { border: 0; margin: 0; }
.hero .stats b { display: block; font: 600 24px/1.1 var(--disp); color: #fff; letter-spacing: -.01em; }
.hero .stats small { font-size: 10px; color: rgba(244, 239, 230, .7); letter-spacing: .06em; }
.hero .dday { display: inline-flex; align-items: baseline; gap: 6px; margin-top: 16px; font-size: 12px; color: rgba(244, 239, 230, .8); border-top: 1px solid rgba(214, 186, 128, .3); padding-top: 10px; }
.hero .dday b { font: 600 22px var(--disp); color: #d6ba80; }
@media (max-width: 520px) { .hero .stats { grid-template-columns: repeat(2, auto); row-gap: 10px; max-width: calc(100% - 96px); } .hero .stats div:nth-child(2) { border: 0; } .hero .mascot { width: 104px; height: 104px; } }

.today { margin-top: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.go { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 13px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); min-height: 104px; }
.go .gi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--bg); color: var(--navy); border: 1px solid var(--line); overflow: hidden; }
.go .gi svg { width: 19px; height: 19px; }
.go b { font: 700 14.5px var(--jp); margin-top: 9px; letter-spacing: .03em; }
.go small { font-size: 11.5px; color: var(--sub); line-height: 1.5; }
.go.main { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 14px; min-height: 0; padding: 16px; background: var(--ink); color: var(--card); border-color: var(--ink); }
.go.main small { color: color-mix(in srgb, var(--card) 70%, transparent); }
.go.main b { margin: 0; font: 700 16px var(--min); letter-spacing: .08em; }
.go.main .gi { background: transparent; border-color: rgba(255, 255, 255, .25); color: #d6ba80; width: 42px; height: 42px; }
.go.main .gi svg { width: 22px; height: 22px; }
.go .due { position: absolute; top: 12px; right: 12px; font: 600 12px var(--en); background: var(--shu); color: #fff; border-radius: 99px; padding: 1px 9px; }

/* 本の表紙 */
.shelf { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .shelf { grid-template-columns: repeat(3, 1fr); } }
.book {
  position: relative; border-radius: 4px 12px 12px 4px; padding: 16px 14px 13px 20px; color: #f6f1e7; min-height: 150px; display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .1), 0 14px 26px -16px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.book::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); mix-blend-mode: overlay; }
.book::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .05)); }
.book > * { position: relative; z-index: 1; }
.book .frame { position: absolute; inset: 8px 8px 8px 15px; border: 1px solid rgba(240, 222, 182, .32); border-radius: 2px 7px 7px 2px; z-index: 0; }
.book .vol { font: 600 9.5px var(--en); letter-spacing: .24em; color: rgba(240, 222, 182, .85); }
.book .bt { font: 700 15.5px/1.35 var(--min); letter-spacing: .06em; margin-top: 6px; }
.book .bs { font-size: 10.5px; color: rgba(246, 241, 231, .72); margin-top: 3px; line-height: 1.5; }
.book .bn { margin-top: auto; font: 600 26px/1 var(--disp); display: flex; align-items: baseline; gap: 4px; padding-top: 10px; }
.book .bn small { font: 500 10.5px var(--jp); color: rgba(246, 241, 231, .7); }
.book .bar { height: 2px; background: rgba(255, 255, 255, .18); margin-top: 8px; }
.book .bar i { display: block; height: 100%; background: #d6ba80; }
.book .be { position: absolute; right: 12px; top: 12px; width: 30px; height: 30px; opacity: .9; z-index: 1; }
.book .be img { width: 100%; height: 100%; object-fit: contain; }
.book .be svg { width: 100%; height: 100%; color: rgba(240, 222, 182, .7); }

.sister { position: relative; display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r); color: var(--ink); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.sister:first-of-type { margin-top: 26px; }
.sister .sm { width: 46px; height: 46px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--navy); color: #d6ba80; overflow: hidden; }
.sister .sm svg { width: 24px; height: 24px; }
.sister .sm img { width: 100%; height: 100%; object-fit: cover; }
.sister .k { font: 600 9.5px var(--en); letter-spacing: .2em; color: var(--shu); }
.sister b { display: block; font: 700 14.5px var(--jp); letter-spacing: .02em; }
.sister small { display: block; font-size: 11.5px; color: var(--sub); line-height: 1.5; }
.sister .arr { margin-left: auto; color: var(--faint); }
.sister .arr svg { width: 18px; height: 18px; }

/* ---------- word of the day ---------- */
.wod { display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center; }
.wod .pic { width: 96px; height: 96px; border-radius: 12px; display: grid; place-items: center; font-size: 44px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.wod .pic img { width: 100%; height: 100%; object-fit: cover; }
.wod .w { font: 600 32px/1.1 var(--disp); letter-spacing: -.01em; margin-top: 4px; }
.wod .j { font-size: 13.5px; font-weight: 500; margin-top: 4px; color: var(--sub); }

/* ---------- list ---------- */
.search { display: flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 0 14px; height: 48px; }
.search svg { width: 19px; height: 19px; color: var(--faint); flex: none; }
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 16px; min-width: 0; }
.filters { margin: 12px 0 4px; display: grid; gap: 8px; }
.filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.filters .chips::-webkit-scrollbar { display: none; }
.lhead { display: flex; align-items: center; gap: 8px; margin: 14px 2px 8px; font-size: 12px; color: var(--sub); letter-spacing: .04em; }
.lhead select { margin-left: auto; border: 1px solid var(--line2); background: var(--card); border-radius: 8px; padding: 4px 8px; font-size: 12.5px; }
.list { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; color: var(--ink); position: relative; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li:hover { background: var(--bg); }
.li .e { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 22px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.li .e img { width: 100%; height: 100%; object-fit: cover; }
.li .w { font: 600 19px/1.2 var(--disp); display: flex; align-items: baseline; gap: 7px; flex-wrap: wrap; letter-spacing: -.005em; }
.li .w .pos { font: 500 10.5px var(--jp); color: var(--faint); }
.li .j { font-size: 12.5px; color: var(--sub); line-height: 1.5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.li .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.li .n { font: 600 14px var(--disp); color: var(--seen); }
.li .n small { font: 500 10px var(--jp); color: var(--faint); margin-left: 1px; }
.li .n.p { color: var(--pred); font: 600 11px var(--jp); letter-spacing: .08em; }
.li .m { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; }
.m0 { background: transparent; } .m1 { background: #c8371d; } .m2 { background: #d39a2a; } .m3 { background: #3f8f63; } .m4 { background: #1d2b4f; }
.yd { display: flex; gap: 2px; }
.yd i { width: 6px; height: 6px; border-radius: 1px; background: var(--h0); }
.yd i.on { background: var(--seen); }
.more-load { text-align: center; padding: 18px; color: var(--faint); font-size: 12.5px; }
.list > .empty { border: 0; }

/* ---------- word page ---------- */
.wp { position: relative; }
.wtop { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.wtop .rank { margin-left: auto; font: 500 11px var(--en); letter-spacing: .12em; color: var(--faint); text-transform: uppercase; }
.wtop .rank b { font: 600 15px var(--disp); color: var(--ink); letter-spacing: 0; }
.whead { position: relative; border-radius: 16px; overflow: hidden; background: var(--card); box-shadow: var(--shadow2); border: 1px solid var(--line); }
.whead .art { position: relative; height: 216px; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
.whead .art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.whead .art .ghost { position: absolute; left: -6px; bottom: -34px; font: 600 150px/1 var(--disp); letter-spacing: -.04em; color: currentColor; opacity: .07; white-space: nowrap; pointer-events: none; }
.whead .art .medal { position: relative; width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; font-size: 56px; background: var(--card); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--line); }
.whead .art .core { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--card) 94%, transparent); color: var(--ink); border-radius: 8px; padding: 8px 12px; font-size: 13px; font-weight: 500; border: 1px solid var(--line); backdrop-filter: blur(6px); }
.whead .art .core span { font: 600 9.5px var(--en); letter-spacing: .2em; color: var(--shu); flex: none; }
.whead .body { padding: 18px 20px 20px; }
.whead .w { font: 600 clamp(42px, 12vw, 60px)/1 var(--disp); letter-spacing: -.025em; word-break: break-word; font-variation-settings: "opsz" 144; }
.whead .ipa { font: 400 15px var(--serif); color: var(--sub); margin-top: 8px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.whead .ja { margin-top: 12px; font: 700 18.5px/1.6 var(--jp); letter-spacing: .02em; }
.whead .ja .pos { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 4px; border: 1px solid var(--ink); font-size: 11.5px; font-weight: 700; margin-right: 8px; vertical-align: 2px; }
.whead .sense { margin-top: 10px; font-size: 12.5px; color: var(--sub); display: flex; gap: 8px; line-height: 1.7; }
.whead .sense::before { content: "出題"; flex: none; font-size: 10px; font-weight: 700; color: var(--shu); border: 1px solid var(--shu); border-radius: 3px; padding: 0 5px; height: 18px; line-height: 16px; margin-top: 2px; letter-spacing: .1em; }
.whead .sayrow { position: absolute; right: 16px; top: 236px; display: flex; gap: 8px; z-index: 2; }
.whead .sayrow .say { width: 52px; height: 52px; box-shadow: var(--shadow2); }
.whead .sayrow .say svg { width: 22px; height: 22px; }

.blk { margin-top: 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 16px 18px 18px; position: relative; }
.blk > h3 { margin: 0 0 12px; font: 600 10.5px var(--en); letter-spacing: .22em; color: var(--faint); display: flex; align-items: center; gap: 10px; text-transform: uppercase; }
.blk > h3 .jt { font: 700 13.5px var(--min); letter-spacing: .08em; color: var(--ink); text-transform: none; }
.blk > h3 small { letter-spacing: 0; font: 400 11px var(--jp); color: var(--faint); text-transform: none; }

/* 出題マップ */
.hm { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 3px; align-items: center; }
.hm .yl { font: 500 10.5px var(--en); color: var(--faint); text-align: center; letter-spacing: .04em; }
.hm .rl { font-size: 10.5px; font-weight: 500; color: var(--sub); text-align: right; padding-right: 5px; white-space: nowrap; }
.hm .c { height: 26px; border-radius: 3px; background: var(--h0); display: grid; place-items: center; font: 600 11px var(--en); color: transparent; }
.hm .c.v1 { background: var(--h1); color: #7a2a14; } .hm .c.v2 { background: var(--h2); color: #4f170a; } .hm .c.v3 { background: var(--h3); color: #fff; } .hm .c.v4 { background: var(--h4); color: #fff; } .hm .c.v5 { background: var(--h5); color: #fff; }
.hmsum { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--line); }
.hmsum div { padding: 10px 6px 0; text-align: center; border-right: 1px solid var(--line); }
.hmsum div:last-child { border: 0; }
.hmsum b { display: block; font: 600 26px/1.1 var(--disp); color: var(--ink); }
.hmsum b small { font-size: 13px; color: var(--faint); }
.hmsum > div > small { font-size: 10.5px; color: var(--sub); letter-spacing: .04em; }
.hmnote { margin-top: 12px; font-size: 11px; color: var(--faint); line-height: 1.7; }
.rlbar { display: flex; height: 4px; overflow: hidden; margin-top: 14px; background: var(--bg2); }
.rlbar i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; font-size: 11px; color: var(--sub); margin-top: 8px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 0; }

/* 覚え方 */
.hook { background: var(--card); border-left: 3px solid var(--shu); }
.hook p { margin: 0; font: 500 15.5px/1.9 var(--jp); }
.goro { margin-top: 14px; border-radius: var(--r); padding: 18px 18px 16px; position: relative; overflow: hidden; background: var(--navy); color: #f4efe6; box-shadow: var(--shadow); }
.goro::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); mix-blend-mode: overlay; }
.goro::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(214, 186, 128, .35); border-radius: 9px; pointer-events: none; }
.goro .gl { position: relative; font: 600 10px var(--en); letter-spacing: .26em; color: #d6ba80; }
.goro p { position: relative; margin: 8px 0 0; font: 700 18px/1.7 var(--min); letter-spacing: .04em; }

/* 語源ブロック */
.ety { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; border: 1px solid var(--line2); border-radius: 10px; overflow: hidden; width: fit-content; max-width: 100%; }
.ety .pc { display: flex; flex-direction: column; align-items: stretch; min-width: 74px; border-right: 1px solid var(--line2); }
.ety .pc:last-child { border-right: 0; }
.ety .pc b { font: 600 22px/1 var(--disp); padding: 14px 16px 12px; text-align: center; border-top: 3px solid var(--c, var(--shu)); letter-spacing: -.01em; }
.ety .pc span { font-size: 11.5px; font-weight: 500; padding: 6px 8px 8px; text-align: center; color: var(--sub); background: var(--bg); line-height: 1.4; border-top: 1px solid var(--line); }
.ety .plus { display: none; }
.ety .pc:nth-of-type(4n+1) { --c: #1d2b4f; } .ety .pc:nth-of-type(4n+2) { --c: #c8371d; } .ety .pc:nth-of-type(4n+3) { --c: #1f6f6b; } .ety .pc:nth-of-type(4n) { --c: #b08a3e; }
.etyx { margin-top: 14px; font-size: 14px; font-weight: 500; display: flex; gap: 10px; align-items: flex-start; color: var(--ink); }
.etyx::before { content: "→"; color: var(--shu); font-weight: 700; }

/* 例文 */
.ex { display: flex; gap: 12px; align-items: flex-start; }
.ex .t { font: 400 19px/1.65 var(--serif); }
.ex .t mark { background: none; color: var(--shu); font-weight: 600; border-bottom: 1.5px solid var(--shu); padding: 0 1px; }
.ex .tj { font-size: 13px; color: var(--sub); margin-top: 6px; transition: filter .2s; }
.ex .tj.blur { filter: blur(5px); cursor: pointer; user-select: none; }
.qja { transition: filter .2s; }
.qja.blur { filter: blur(5px); cursor: pointer; user-select: none; }

/* 言い換えブリッジ */
.bridge { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; }
.bridge .from { font: 600 21px var(--disp); padding: 6px 0; border-bottom: 2px solid var(--ink); }
.bridge .to { display: flex; flex-wrap: wrap; gap: 6px; position: relative; padding-left: 28px; }
.bridge .to::before { content: ""; position: absolute; left: 0; top: 50%; width: 18px; height: 1px; background: var(--para); }
.bridge .to::after { content: ""; position: absolute; left: 14px; top: calc(50% - 4px); border: 4px solid transparent; border-left: 6px solid var(--para); border-right: 0; }
.bridge .to span { font: 500 15px var(--serif); padding: 4px 12px; border-radius: 4px; background: var(--para-soft); color: var(--para); }
.opp { margin-top: 12px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11px; color: var(--faint); font-weight: 500; letter-spacing: .06em; }
.opp span { font: 500 14px var(--serif); padding: 2px 10px; border-radius: 4px; border: 1px solid var(--line2); color: var(--sub); letter-spacing: 0; }

/* 派生・語法 */
.fam { display: grid; gap: 0; border-top: 1px solid var(--line); }
.fam div { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 12px; align-items: baseline; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.fam b { font: 600 17px var(--disp); }
.fam small { font-size: 12.5px; color: var(--sub); }
.fam small i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--sub); border: 1px solid var(--line2); border-radius: 3px; padding: 0 4px; margin-right: 6px; }
.col li { margin: 4px 0; font-size: 13.5px; }
.col li b { font: 600 15px var(--serif); }
.tip { display: flex; gap: 10px; font-size: 14px; line-height: 1.8; }
.tip .tg { flex: none; font-size: 10px; font-weight: 700; color: var(--shu); border: 1px solid var(--shu); border-radius: 3px; padding: 0 6px; height: 19px; line-height: 17px; margin-top: 4px; letter-spacing: .1em; }
.why { font-size: 13.5px; line-height: 1.8; }
.why .ev { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* 覚えた度 */
.mem { position: sticky; bottom: calc(var(--tabh) + 10px + env(safe-area-inset-bottom)); z-index: 5; margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr) 46px; gap: 5px; padding: 6px; border-radius: 14px; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow2); border: 1px solid var(--line); }
.mem button { height: 44px; border-radius: 9px; font-size: 12px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 6px; color: var(--sub); border: 1px solid transparent; letter-spacing: .04em; }
.mem button i { font-style: normal; width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mem .l1 i { background: #c8371d; } .mem .l2 i { background: #d39a2a; } .mem .l3 i { background: #3f8f63; } .mem .l4 i { background: #1d2b4f; }
.mem button.on { background: var(--ink); color: var(--card); font-weight: 700; }
.mem button.star { font-size: 18px; }
.mem button.star.on { color: #b08a3e; background: transparent; border-color: #b08a3e; }
.pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 14px; }
.pager a { flex: 1; display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); min-width: 0; }
.pager a small { font: 500 10px var(--en); color: var(--faint); letter-spacing: .18em; }
.pager a b { font: 600 17px var(--disp); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pager a.nx { text-align: right; }

/* ---------- flashcards ---------- */
.deckpick { display: grid; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.deck { display: flex; align-items: center; gap: 14px; padding: 13px 16px; color: var(--ink); width: 100%; text-align: left; border-bottom: 1px solid var(--line); }
.deck:last-child { border: 0; }
.deck:hover { background: var(--bg); }
.deck .di { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; flex: none; color: #fff; font: 600 17px var(--disp); overflow: hidden; }
.deck .di img { width: 100%; height: 100%; object-fit: cover; }
.deck .di svg { width: 20px; height: 20px; }
.deck .di.soft { background: var(--bg); color: var(--navy); border: 1px solid var(--line); }
.deck b { display: block; font-size: 14.5px; font-weight: 700; letter-spacing: .02em; }
.deck small { display: block; font-size: 11.5px; color: var(--sub); }
.deck .dn { margin-left: auto; font: 600 18px var(--disp); color: var(--ink); text-align: right; line-height: 1.2; }
.deck .dn small { font: 400 10px var(--jp); color: var(--faint); }
.prog { height: 3px; background: var(--bg2); overflow: hidden; border-radius: 2px; }
.prog i { display: block; height: 100%; background: var(--shu); transition: width .3s; }
.fc-wrap { perspective: 1400px; margin-top: 14px; }
.fc { position: relative; height: min(62vh, 520px); transform-style: preserve-3d; transition: transform .6s cubic-bezier(.2, .8, .2, 1); cursor: pointer; }
.fc.flip { transform: rotateY(180deg); }
.fc .face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 16px; background: var(--card); box-shadow: var(--shadow2); border: 1px solid var(--line); padding: 24px; display: flex; flex-direction: column; overflow: hidden; }
.fc .face::after { content: ""; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }
.fc .back { transform: rotateY(180deg); overflow-y: auto; }
.fc .front { align-items: center; justify-content: center; text-align: center; }
.fc .front .fe { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; font-size: 58px; margin-bottom: 22px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; }
.fc .front .fe img { width: 100%; height: 100%; object-fit: cover; }
.fc .front .fw { font: 600 clamp(44px, 13vw, 64px)/1.05 var(--disp); letter-spacing: -.025em; word-break: break-word; }
.fc .front .fh { margin-top: 18px; font-size: 12px; color: var(--faint); display: flex; gap: 8px; align-items: center; }
.fc .back .bw { font: 600 28px var(--disp); }
.fc .back .bj { font: 700 19px/1.55 var(--jp); margin: 6px 0 12px; }
.fc .back .bh { border-left: 3px solid var(--shu); padding: 4px 0 4px 12px; font-size: 14px; font-weight: 500; line-height: 1.8; }
.fc .back .bg2 { margin-top: 8px; background: var(--navy); color: #f4efe6; border-radius: 8px; padding: 8px 12px; font: 700 14px/1.6 var(--min); }
.fc .back .bx { margin-top: 12px; font: 400 16px/1.6 var(--serif); }
.fc .back .bx mark { background: none; color: var(--shu); font-weight: 600; }
.fc .back .bxj { font-size: 12.5px; color: var(--sub); }
.fc-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.fc-btns button { height: 56px; border-radius: 12px; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; background: var(--card); border: 1px solid var(--line2); color: var(--ink); letter-spacing: .04em; }
.fc-btns button small { font-size: 10.5px; font-weight: 400; color: var(--faint); }
.fc-btns .b1 { border-top: 3px solid #c8371d; } .fc-btns .b2 { border-top: 3px solid #d39a2a; } .fc-btns .b3 { border-top: 3px solid #3f8f63; }
.fc.swl { animation: swl .32s ease-in forwards; } .fc.swr { animation: swr .32s ease-in forwards; }
@keyframes swl { to { transform: translateX(-120%) rotate(-10deg); opacity: 0; } }
@keyframes swr { to { transform: translateX(120%) rotate(10deg); opacity: 0; } }

/* ---------- quiz ---------- */
.qz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.qz-top .prog { flex: 1; }
.qz-top b { font: 600 15px var(--disp); color: var(--sub); }
.qcard { background: var(--card); border-radius: 16px; box-shadow: var(--shadow2); border: 1px solid var(--line); padding: 26px 20px; text-align: center; position: relative; }
.qcard::after { content: ""; position: absolute; inset: 7px; border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }
.qcard .qk { font: 600 10.5px var(--en); letter-spacing: .2em; color: var(--shu); }
.qcard .qk:not(:empty) { text-transform: uppercase; }
.qcard .qw { font: 600 clamp(36px, 11vw, 52px)/1.1 var(--disp); margin: 14px 0 6px; word-break: break-word; letter-spacing: -.02em; }
.qcard .qj { font: 700 21px/1.6 var(--jp); margin: 12px 0; }
.qcard .qs { font: 400 18px/1.7 var(--serif); margin: 14px 0 4px; text-align: left; }
.qcard .qs u { text-decoration: none; border-bottom: 2px solid var(--ink); }
.qcard .qe { font-size: 50px; }
.opts { display: grid; gap: 8px; margin-top: 14px; }
.opt { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); text-align: left; font-size: 15px; font-weight: 500; transition: transform .1s, background .2s; }
.opt .no { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font: 600 12px var(--en); border: 1px solid var(--line2); color: var(--sub); flex: none; }
.opt.en { font: 500 18px var(--serif); }
.opt:active { transform: scale(.985); }
.opt.ok { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--card)); color: var(--ok); font-weight: 700; }
.opt.ok .no { background: var(--ok); border-color: var(--ok); color: #fff; }
.opt.ng { border-color: var(--ng); background: color-mix(in srgb, var(--ng) 9%, var(--card)); color: var(--ng); animation: shake .3s; }
.opt.ng .no { background: var(--ng); border-color: var(--ng); color: #fff; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.qfb { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; display: none; }
.qfb.on { display: block; animation: up .25s; }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
.result { text-align: center; padding: 28px 18px; }
.result h2 { font: 700 20px var(--min); letter-spacing: .06em; }
.result .sc { font: 600 68px/1 var(--disp); color: var(--ink); letter-spacing: -.03em; }
.ring { width: 150px; height: 150px; margin: 0 auto; }

/* ---------- paraphrase cards ---------- */
.pc2 { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--line); padding: 14px 16px 16px; position: relative; }
.pc2 + .pc2 { margin-top: 10px; }
.pc2 .src { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.pc2 .src .ex { font-size: 11.5px; font-weight: 500; color: var(--sub); letter-spacing: .02em; }
.pc2 .pair { display: grid; grid-template-columns: 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.pc2 .side { padding: 11px 14px; }
.pc2 .side.f { background: var(--card); }
.pc2 .side.t { background: var(--para-soft); }
.pc2 .side .lb { font: 600 9.5px var(--en); letter-spacing: .2em; color: var(--faint); }
.pc2 .side.t .lb { color: var(--para); }
.pc2 .side .e2 { font: 500 17.5px/1.5 var(--serif); }
.pc2 .side .j2 { font-size: 12px; color: var(--sub); }
.pc2 .arrow { display: flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: 700; color: var(--para); padding: 3px 14px; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); letter-spacing: .1em; }
.pc2 .arrow::before { content: "↓"; font-size: 12px; }
.pc2 .how { margin-top: 10px; font-size: 13.5px; line-height: 1.75; }
.pc2 .pex { margin-top: 10px; font: 400 14.5px/1.6 var(--serif); color: var(--sub); display: flex; gap: 10px; align-items: flex-start; }

/* ---------- themes ---------- */
.themes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 640px) { .themes { grid-template-columns: repeat(3, 1fr); } }
.th { position: relative; border-radius: 12px; overflow: hidden; min-height: 132px; color: #fff; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; box-shadow: var(--shadow); }
.th img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.th::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(10, 10, 20, .62)); }
.th::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); mix-blend-mode: overlay; z-index: 1; }
.th > * { position: relative; z-index: 2; }
.th .te { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; color: rgba(255, 255, 255, .8); }
.th .te svg, .th .te img { width: 100%; height: 100%; }
.th b { font: 700 15px var(--min); letter-spacing: .06em; text-shadow: 0 1px 6px rgba(0, 0, 0, .35); }
.th small { font: 500 11.5px var(--en); opacity: .85; letter-spacing: .04em; }

/* ---------- analysis ---------- */
.bars { display: grid; gap: 4px; }
.bars .br { display: grid; grid-template-columns: 96px 1fr 40px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink); }
.bars .br b { font: 500 15px var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .br .tr { height: 12px; background: var(--bg2); overflow: hidden; display: flex; }
.bars .br .tr i { display: block; height: 100%; }
.bars .br span { font: 600 13px var(--disp); text-align: right; color: var(--sub); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpi b { display: block; font: 600 28px/1.1 var(--disp); letter-spacing: -.01em; }
.kpi small { font-size: 11px; color: var(--sub); line-height: 1.5; display: block; margin-top: 4px; }
.prose { font-size: 14.5px; line-height: 1.95; }
.prose h2 { font: 700 21px var(--min); letter-spacing: .06em; }
.prose h3 { font: 700 15.5px var(--min); margin: 24px 0 6px; letter-spacing: .06em; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.prose ul { padding-left: 1.2em; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: calc(var(--tabh) + 22px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--card); padding: 10px 18px; border-radius: 99px; font-size: 13px; font-weight: 500; opacity: 0; transition: .25s; z-index: 70; pointer-events: none; white-space: nowrap; letter-spacing: .04em; }
.toast.on { opacity: 1; transform: translateX(-50%); }
.empty { text-align: center; padding: 44px 10px; color: var(--faint); }
.empty .ee { font-size: 40px; }
.player { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabh) + 10px + env(safe-area-inset-bottom)); z-index: 45; max-width: 736px; margin: 0 auto; background: var(--navy); color: #f4efe6; border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow2); }
.player .pw { font: 600 19px var(--disp); }
.player .pj { font-size: 12px; opacity: .8; }
.player button { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; flex: none; }
.player button svg { width: 18px; height: 18px; }
.foot { margin-top: 44px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--faint); line-height: 1.95; }
.foot a { color: var(--sub); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 3px; }
.fade-in { animation: up .35s both; }
.seg { display: inline-flex; background: var(--bg2); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 500; color: var(--sub); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-weight: 700; }
@media (min-width: 900px) {
  main { padding-top: 24px; }
  .whead { display: grid; grid-template-columns: 300px 1fr; }
  .whead .art { height: auto; min-height: 290px; border-bottom: 0; border-right: 1px solid var(--line); }
  .whead .sayrow { top: auto; bottom: 20px; right: 20px; }
}
@media print { .top, .tabs, .mem, .player { display: none !important; } body::before { display: none; } }

/* ---------- 単語テストの印刷 ---------- */
.pform .pf { margin-bottom: 14px; }
.pform label { display: block; font-size: 11.5px; font-weight: 700; color: var(--sub); margin-bottom: 6px; letter-spacing: .06em; }
.pform label.row { display: flex; font-weight: 500; color: var(--ink); font-size: 13.5px; margin: 4px 0; letter-spacing: 0; }
.pform input:not([type=checkbox]), .pform select, .pform textarea { width: 100%; border: 1px solid var(--line2); background: var(--bg); border-radius: 8px; padding: 8px 10px; font-size: 15px; }
.pform .row input { width: auto; }
.pform .chips { flex-wrap: wrap; }
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 10px; }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, 1fr); } }
.pv-note { margin: 16px 2px 8px; }
.sheets { display: grid; gap: 16px; }
.sheet { background: #fff; color: #111; width: 210mm; max-width: none; margin: 0 auto; padding: 12mm 12mm 10mm; box-shadow: var(--shadow2); border-radius: 2px; font: 400 var(--fs, 11pt)/1.55 var(--jp); min-height: 120mm; display: flex; flex-direction: column; }
.sheet .en { font-family: var(--serif); }
.sheet .serif { font-family: var(--serif); }
.sh-head { display: flex; align-items: flex-end; gap: 12px; border-bottom: 2px solid #111; padding-bottom: 6px; margin-bottom: 10px; }
.sh-head > div:first-child { flex: 1; }
.sh-t { font: 700 1.55em/1.25 var(--min); letter-spacing: .06em; }
.sh-s { font-size: .8em; color: #555; }
.sh-name { display: flex; gap: 6px; font-size: .8em; }
.sh-name span { border: 1px solid #111; border-radius: 2px; padding: 4px 8px; min-width: 70px; height: 34px; }
.sh-name span:nth-child(2) { min-width: 130px; }
.sh-name .sc { text-align: right; min-width: 64px; font-weight: 700; display: flex; align-items: flex-end; justify-content: flex-end; }
.sheet ol.qs { margin: 0; padding: 0; list-style: none; counter-reset: q; display: grid; gap: 7px 18px; flex: 1; align-content: start; }
.sheet ol.c2 { grid-template-columns: 1fr 1fr; } .sheet ol.c3 { grid-template-columns: 1fr 1fr 1fr; }
.sheet ol.qs > li { counter-increment: q; position: relative; padding-left: 2em; break-inside: avoid; border-bottom: 1px dotted #bbb; padding-bottom: 5px; }
.sheet ol.qs > li::before { content: "(" counter(q) ")"; position: absolute; left: 0; top: 0; font-family: var(--serif); font-weight: 600; color: #333; font-size: .92em; }
.sheet .qq { font-weight: 700; }
.sheet .qq.en { font-size: 1.15em; font-weight: 600; }
.sheet .aa { min-height: 1.6em; border-bottom: 1px solid #555; margin-top: 2px; }
.sheet .op { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; font-size: .92em; }
.sheet .qj { font-size: .8em; color: #555; }
.sheet .red { color: #c8371d; font-weight: 700; }
.sheet ol.key > li { border-bottom: 1px dotted #ddd; font-size: .95em; }
.sheet ol.lst > li .lrow { display: grid; grid-template-columns: 1fr auto 1.25fr; gap: 8px; align-items: baseline; }
.sheet ol.lst > li .lj { border-left: 1px dashed #999; padding-left: 8px; font-size: .9em; }
.sheet ol.lst > li .pos { font-size: .75em; color: #666; }
.sh-foot { margin-top: 8px; font-size: 7.5pt; color: #888; text-align: right; }
@media print {
  @page { size: A4; margin: 11mm 12mm; }
  body { background: #fff !important; }
  .top, .tabs, .noprint, .toast, .scrim, .drawer, #main > .sec, .foot, .lvbar { display: none !important; }
  main { padding: 0 !important; max-width: none !important; }
  .sheets { display: block; zoom: 1 !important; }
  .sheet { box-shadow: none; border-radius: 0; max-width: none; width: auto; min-height: 0; padding: 0; display: block; page-break-after: always; break-after: page; }
  .sheet ol.qs { display: block; columns: var(--cols, 1); column-gap: 8mm; }
  .sheet ol.qs > li { margin-bottom: 6px; }
  .sheet:last-child { page-break-after: auto; break-after: auto; }
}

/* ---------- ゲーム ---------- */
.lvbar { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px 14px; margin: 4px 0 6px; }
.lvbar b { font: 600 17px var(--disp); color: var(--ink); }
.lvbar .prog { flex: 1; height: 4px; }
.lvbar small { font: 500 11.5px var(--en); color: var(--faint); letter-spacing: .04em; }
.result .lvbar { max-width: 340px; margin: 14px auto 0; box-shadow: none; background: var(--bg); }
.games { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 560px) { .games { grid-template-columns: repeat(3, 1fr); } }
.gm { position: relative; overflow: hidden; color: #f4efe6; text-align: left; border-radius: 14px; padding: 16px; min-height: 118px; display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .12s; }
.gm::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); mix-blend-mode: overlay; }
.gm::after { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(240, 222, 182, .3); border-radius: 9px; pointer-events: none; }
.gm > * { position: relative; z-index: 1; }
.gm:active { transform: scale(.98); }
.gm .ge { width: 34px; height: 34px; color: #d6ba80; }
.gm .ge svg, .gm .ge img { width: 100%; height: 100%; }
.gm b { font: 700 16px var(--min); margin-top: 10px; letter-spacing: .06em; }
.gm small { font-size: 11.5px; opacity: .8; }
.gm .gb { position: absolute; top: 14px; right: 14px; font: 500 11px var(--en); border: 1px solid rgba(240, 222, 182, .4); border-radius: 99px; padding: 1px 10px; letter-spacing: .04em; }
.hud { display: flex; gap: 16px; justify-content: flex-end; align-items: center; font: 600 17px var(--disp); }
.hud .ht.warn { color: var(--ng); animation: pulse .5s infinite alternate; }
@keyframes pulse { to { transform: scale(1.15); } }
.qcard.game { min-height: 160px; display: flex; flex-direction: column; justify-content: center; }
.combo { text-align: center; font: 700 19px var(--min); color: var(--shu); height: 30px; margin-top: 10px; opacity: 0; letter-spacing: .06em; }
.combo.on { animation: pop .9s ease-out; }
@keyframes pop { 0% { opacity: 0; transform: scale(.6); } 20% { opacity: 1; transform: scale(1.15); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: translateY(-14px); } }
.pm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
@media (min-width: 560px) { .pm { grid-template-columns: repeat(4, 1fr); } }
.pmc { min-height: 88px; border-radius: 12px; background: var(--card); border: 1px solid var(--line2); box-shadow: var(--shadow); padding: 8px; font-size: 13px; font-weight: 500; line-height: 1.4; transition: transform .15s, opacity .3s; }
.pmc.en { font: 600 18px var(--disp); }
.pmc.sel { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); transform: scale(1.03); }
.pmc.bad { border-color: var(--ng); box-shadow: 0 0 0 2px var(--ng); animation: shake .3s; }
.pmc.done { opacity: 0; transform: scale(.85); pointer-events: none; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 7px; height: 12px; border-radius: 1px; animation: fall 1.9s cubic-bezier(.3, .6, .5, 1) forwards; }
@keyframes fall { to { top: 105%; transform: rotate(540deg) translateX(40px); } }

/* ---------- モーション ---------- */
.whead .art video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero video.mascot { object-fit: contain; }
.th video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.anim .ety .pc { opacity: 0; transform: translateY(14px) scale(.96); animation: piece .5s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * .22s + .15s); }
.anim .etyx { opacity: 0; transform: translateY(8px); animation: piece .5s ease forwards; animation-delay: calc(var(--n, 2) * .22s + .35s); }
@keyframes piece { to { opacity: 1; transform: none; } }
.anim .hm .c { transform: scale(.4); opacity: 0; animation: cell .35s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 18ms + .1s); }
@keyframes cell { to { transform: none; opacity: 1; } }
.anim .bridge .to::before { transform-origin: left; transform: scaleX(0); animation: draw .45s ease forwards .2s; }
.anim .bridge .to span { opacity: 0; transform: translateX(-8px); animation: piece .4s ease forwards; animation-delay: calc(var(--i, 0) * .12s + .45s); }
@keyframes draw { to { transform: scaleX(1); } }
.whead .art .medal { animation: float 6s ease-in-out infinite; }
.whead .art .ghost { animation: drift 26s linear infinite alternate; }
@keyframes float { 50% { transform: translateY(-5px); } }
@keyframes drift { to { transform: translateX(-30%); } }
.hero .flow { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.hero .flow span { position: absolute; left: 0; white-space: nowrap; font: italic 600 15px var(--disp); color: rgba(214, 186, 128, .16); animation: flow linear infinite; }
@keyframes flow { from { transform: translateX(110vw); } to { transform: translateX(-60vw); } }
.rlbar i { transform-origin: left; animation: grow .8s cubic-bezier(.2, .8, .2, 1) both .4s; }
@keyframes grow { from { transform: scaleX(0); } }
.book { transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; }
.book:hover { transform: translateY(-3px) rotate(-.4deg); }
.book .bar i { transform-origin: left; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both .3s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero .flow { display: none; }
}

/* ---------- 一覧・ページ送り・目次・上へ ---------- */
.filters .chips { flex-wrap: wrap; overflow: visible; }
.filters .chips.hide { display: none; }
.fold { justify-self: start; font-size: 12.5px; font-weight: 500; color: var(--sub); padding: 4px 2px; }
.fold span { font-size: 10px; }
.li .grow { display: block; overflow: hidden; }
.li .w, .li .j { display: block; }
.li .w { display: flex; }
.li .rt { min-width: 52px; }
.jump { display: flex; flex-wrap: wrap; gap: 5px; margin: 4px 0 10px; }
.jump button { min-width: 34px; height: 30px; padding: 0 9px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); font: 500 12px var(--en); color: var(--sub); }
.jump button.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.pg { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 14px 0; }
.pg b { font: 500 13px var(--en); color: var(--sub); }
.pg button { height: 42px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); font-size: 13px; font-weight: 700; }
.toc { position: sticky; top: 59px; z-index: 6; display: flex; flex-wrap: wrap; gap: 5px; overflow: visible; margin: 12px -16px 0; padding: 8px 16px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.toc::-webkit-scrollbar { display: none; }
.toc a { flex: none; font-size: 11.5px; font-weight: 700; color: var(--sub); padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line2); background: var(--card); }
.totop { position: fixed; right: 14px; bottom: calc(var(--tabh) + 84px + env(safe-area-inset-bottom)); z-index: 44; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--card); display: grid; place-items: center; box-shadow: var(--shadow2); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: .25s; }
.totop.on { opacity: .92; transform: none; pointer-events: auto; }
.totop svg { width: 20px; height: 20px; }
@media print { .totop, .toc { display: none !important; } }

/* ---------- 特集・記憶法・マーカー・決め手 ---------- */
.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat a { display: flex; flex-direction: column; gap: 3px; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); position: relative; overflow: hidden; }
.feat a::after { content: ""; position: absolute; right: -24px; top: -24px; width: 80px; height: 80px; border-radius: 50%; background: var(--shu-soft); }
.feat .fi { width: 34px; height: 34px; color: var(--shu); position: relative; z-index: 1; }
.feat .fi svg, .feat .fi img { width: 100%; height: 100%; }
.feat b { font: 700 14.5px var(--min); letter-spacing: .04em; margin-top: 6px; position: relative; z-index: 1; }
.feat small { font-size: 11.5px; color: var(--sub); line-height: 1.5; position: relative; z-index: 1; }
.curve { width: 100%; height: auto; }
.cal { display: grid; grid-template-columns: repeat(14, 1fr); gap: 3px; align-items: end; height: 120px; }
.cal div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 2px; }
.cal i { display: block; width: 100%; background: var(--shu); border-radius: 2px 2px 0 0; min-height: 2px; }
.cal b { font: 600 10px var(--en); color: var(--sub); }
.cal small { font-size: 8.5px; color: var(--faint); writing-mode: vertical-rl; height: 34px; }
.stages { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.stages span { font-size: 11px; color: var(--sub); border: 1px solid var(--line2); border-radius: 99px; padding: 2px 10px; }
.stages b { font: 600 12px var(--disp); color: var(--ink); margin-left: 5px; }
.gaps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; }
.gaps span { display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--sub); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 10px; }
.gaps span b { font: 600 10px var(--en); color: var(--shu); letter-spacing: .1em; }
.gaps i { font-style: normal; color: var(--faint); }
.pims { min-height: 230px; display: flex; flex-direction: column; justify-content: center; }
.ring2 { height: 3px; margin: 14px auto 0; width: 70%; background: linear-gradient(90deg, var(--shu) var(--p, 0%), var(--bg2) var(--p, 0%)); border-radius: 2px; }
.pmlist { display: grid; gap: 4px; margin-top: 16px; }
.pmlist div { display: flex; justify-content: space-between; align-items: center; font: 500 15px var(--serif); padding: 6px 10px; border-bottom: 1px solid var(--line); }
.pmlist span { display: flex; gap: 3px; }
.pmlist i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line2); }
.pmlist i.on { background: var(--shu); border-color: var(--shu); }
.mkhero { border-left: 3px solid var(--shu); }
.mtoc { top: 59px; }
.mkc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.mkc + .mkc { margin-top: 10px; }
.mkc.basic { border-left: 3px solid var(--shu); }
.mkh { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.mw { font: 600 22px var(--disp); letter-spacing: -.01em; }
.mja { font-size: 14px; font-weight: 700; }
.mn { margin-left: auto; font: 500 11px var(--en); color: var(--faint); }
.mn b { font: 600 16px var(--disp); color: var(--ink); margin: 0 6px 0 2px; }
.mnext { margin-top: 8px; display: flex; gap: 10px; align-items: baseline; font-size: 14px; font-weight: 500; }
.mnext span { flex: none; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--navy); border-radius: 4px; padding: 1px 7px; }
.mstrip { display: grid; grid-template-columns: 18px repeat(6, 1fr); gap: 2px; margin-top: 10px; max-width: 320px; }
.mstrip .yl { font: 500 9.5px var(--en); color: var(--faint); text-align: center; }
.mstrip .rl { font: 600 10px var(--en); color: var(--sub); }
.mstrip .c { height: 16px; border-radius: 2px; background: var(--h0); font: 600 9px var(--en); display: grid; place-items: center; color: transparent; }
.mstrip .c.v1 { background: var(--h1); color: #7a2a14; } .mstrip .c.v2 { background: var(--h2); color: #4f170a; } .mstrip .c.v3 { background: var(--h3); color: #fff; } .mstrip .c.v4 { background: var(--h4); color: #fff; } .mstrip .c.v5 { background: var(--h5); color: #fff; }
.key .kw { font: 600 22px var(--disp); }
.key .kw a { color: var(--ink); border-bottom: 1px solid var(--line2); }
.trap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.trap span { display: inline-flex; align-items: center; gap: 6px; font: 500 16px var(--serif); padding: 3px 4px 3px 12px; border: 1px solid var(--line2); border-radius: 99px; }
.trap i { font-style: normal; color: var(--shu); font-weight: 700; }
.jsel { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--sub); width: 100%; }
.jsel select { flex: 1; border: 1px solid var(--line2); background: var(--card); border-radius: 9px; padding: 8px; font-size: 14px; }

/* 横スクロールは使わない（はみ出して切れて見えるため） */
.chips, .filters .chips, .toc, .jump, .seg { flex-wrap: wrap !important; overflow: visible !important; }
main { overflow-x: clip; }
.blk > h3 { flex-wrap: wrap; row-gap: 2px; }
.blk > h3 small { flex-basis: 100%; }
@media (max-width: 380px) { .mem button { font-size: 11px; gap: 4px; letter-spacing: 0; } .mem { grid-template-columns: repeat(4, 1fr) 40px; } }

/* ---------- コンパクトな行（タップで開く） ---------- */
.fsel { width: 100%; border: 1px solid var(--line2); background: var(--card); border-radius: 10px; padding: 9px 10px; font-size: 14px; }
.filters { gap: 8px; }
.clist { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.crow { border-bottom: 1px solid var(--line); }
.crow:last-child { border-bottom: 0; }
.crow .ch { display: grid; grid-template-columns: 1fr auto 1fr; gap: 4px 8px; align-items: center; padding: 11px 14px; cursor: pointer; position: relative; padding-right: 30px; }
.clist .chead { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; padding: 8px 30px 8px 14px; font-size: 11.5px; font-weight: 700; color: var(--sub); border-bottom: 1px solid var(--line, rgba(0,0,0,.08)); }
.clist .chead span:nth-child(2) { width: 1em; }
.clist .chead span:last-child { color: var(--para); }
.crow .ch::after { content: "▾"; position: absolute; right: 12px; top: 12px; font-size: 11px; color: var(--faint); transition: transform .2s; }
.crow.open .ch::after { transform: rotate(180deg); }
.crow .cf { font: 500 14.5px/1.4 var(--serif); }
.crow .ct { font: 600 14.5px/1.4 var(--serif); color: var(--para); }
.crow .ca { color: var(--shu); font-weight: 700; }
.crow .cm { grid-column: 1 / -1; font-size: 10.5px; color: var(--faint); letter-spacing: .03em; }
.crow .ch:has(.ckw) { grid-template-columns: auto auto 1fr; }
.crow .ckw { font: 600 18px var(--disp); }
.crow .cb { display: none; padding: 0 14px 14px; }
.crow.open .cb { display: block; animation: up .2s; }
.crow.open { background: color-mix(in srgb, var(--bg) 55%, var(--card)); }
.cpair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cpair div { border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font: 500 14px/1.5 var(--serif); background: var(--card); }
.cpair div:last-child { background: var(--para-soft); }
.cpair small { display: block; font: 700 9.5px var(--jp); letter-spacing: .1em; color: var(--faint); }
.cpair em { display: block; font: 400 12px var(--jp); color: var(--sub); font-style: normal; margin-top: 2px; }
.cmeta { font-size: 11.5px; color: var(--sub); margin: 8px 0 4px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pex { margin-top: 8px; font: 400 14px/1.6 var(--serif); color: var(--sub); display: flex; gap: 10px; align-items: flex-start; }
details.mcat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 0 14px; margin-top: 10px; }
details.mcat > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 0; cursor: pointer; }
details.mcat > summary::-webkit-details-marker { display: none; }
details.mcat > summary b { font: 700 15px var(--min); letter-spacing: .04em; flex: 1; }
details.mcat > summary span { font: 600 12px var(--en); color: var(--faint); }
details.mcat > summary::after { content: "▾"; color: var(--faint); font-size: 12px; }
details.mcat[open] > summary::after { transform: rotate(180deg); }
details.mcat[open] { padding-bottom: 14px; }
.mchips { display: flex; flex-wrap: wrap; gap: 6px; }
.mchip { display: inline-flex; align-items: baseline; gap: 5px; padding: 6px 11px; border-radius: 8px; border: 1px solid var(--line2); background: var(--card); font: 600 14px var(--disp); }
.mchip.basic { border-color: var(--shu); }
.mchip small { font: 500 10px var(--en); color: var(--faint); }
.mchip.on { background: var(--ink); color: var(--card); border-color: var(--ink); }
.mchip.on small { color: color-mix(in srgb, var(--card) 70%, transparent); }
.mdet:not(:empty) { margin-top: 12px; }
.mdet .mkc { box-shadow: none; background: var(--bg); }

.pexs .pex + .pex { margin-top: 6px; }
.pex .pl { display: inline-block; font: 700 9.5px var(--jp); color: #fff; background: var(--sub); border-radius: 3px; padding: 0 5px; margin-right: 6px; vertical-align: 2px; }
.pex + .pex .pl { background: var(--para); }

/* ---------- トップの説明・カバー率・プラン・3ステップ・勉強法 ---------- */
.intro { margin-top: 16px; }
.ib1 { display: flex; flex-wrap: wrap; gap: 6px; }
.tagx { font-size: 11.5px; font-weight: 700; color: var(--navy); border: 1px solid var(--navy); border-radius: 4px; padding: 2px 8px; letter-spacing: .04em; }
:root[data-theme="dark"] .tagx { color: var(--brand); border-color: var(--brand); }
.ih { margin: 12px 0 6px; font: 700 clamp(20px, 5.6vw, 27px)/1.5 var(--min); letter-spacing: .03em; }
.ih b { color: var(--shu); }
.ip { margin: 0; font-size: 14px; line-height: 1.9; color: var(--sub); }
.ip b { color: var(--ink); }
.cover { margin-top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.cvh span { font-size: 12px; font-weight: 700; color: var(--shu); letter-spacing: .06em; }
.cvbig { display: flex; align-items: center; gap: 14px; margin: 8px 0 12px; }
.cvbig > b { font: 600 56px/1 var(--disp); color: var(--navy); letter-spacing: -.03em; }
:root[data-theme="dark"] .cvbig > b { color: var(--brand); }
.cvbig > b small { font-size: 26px; }
.cvbig > span { font-size: 13.5px; line-height: 1.7; }
.cvbig > span b { color: var(--shu); }
.cvbars { display: grid; gap: 5px; }
.cvr { display: grid; grid-template-columns: 96px 1fr 46px; gap: 8px; align-items: center; font-size: 12px; }
.cvr i { height: 10px; background: var(--bg2); border-radius: 2px; overflow: hidden; display: block; }
.cvr em { display: block; height: 100%; background: linear-gradient(90deg, var(--navy), var(--shu)); transform-origin: left; animation: grow 1.1s cubic-bezier(.2, .8, .2, 1) both var(--d, 0s); }
.cvr b { font: 600 13px var(--disp); text-align: right; }
.cvn { margin: 10px 0 0; font-size: 10.5px; color: var(--faint); line-height: 1.6; }
.plan { margin-top: 12px; display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; background: var(--navy); color: #f4efe6; border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.plan .pl1 { display: flex; flex-direction: column; align-items: center; line-height: 1.1; font-size: 11px; color: rgba(244, 239, 230, .75); }
.plan .pl1 b { font: 600 40px var(--disp); color: #d6ba80; }
.plan .pl2 { font-size: 13.5px; line-height: 1.7; }
.plan .pl2 .big { font: 700 20px var(--min); color: #fff; }
.plan .btn { grid-column: 1 / -1; background: var(--shu); }
.st3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.st3 a { display: block; padding: 12px 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); box-shadow: var(--shadow); }
.st3 b { display: block; font: 700 15px var(--min); letter-spacing: .04em; }
.st3 span { font-size: 12.5px; color: var(--sub); line-height: 1.6; }
.hwlead p { margin: 0; line-height: 1.9; font-size: 14px; }
details.hw { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); margin-top: 10px; padding: 0 16px; }
details.hw > summary { list-style: none; cursor: pointer; padding: 14px 0; font: 700 15px var(--min); letter-spacing: .03em; display: flex; justify-content: space-between; gap: 10px; }
details.hw > summary::-webkit-details-marker { display: none; }
details.hw > summary::after { content: "▾"; color: var(--faint); }
details.hw[open] > summary::after { transform: rotate(180deg); }
.hwb { padding-bottom: 16px; font-size: 14px; line-height: 1.85; }
.why3 { display: grid; gap: 8px; }
.why3 div { border-left: 3px solid var(--shu); padding: 2px 0 2px 12px; }
.why3 b { display: block; font-weight: 700; }
.why3 span { font-size: 13px; color: var(--sub); }
.rules { padding-left: 1.3em; margin: 0; }
.rules li { margin: 6px 0; }
.menus { display: grid; gap: 8px; }
.menus div { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.menus b { font: 600 17px var(--disp); }
.menus span { font-size: 12.5px; }
.menus a { font-size: 12px; font-weight: 700; }
.plan2 { width: 100%; border-collapse: collapse; font-size: 13px; }
.plan2 th { text-align: left; white-space: nowrap; padding: 8px 10px 8px 0; vertical-align: top; color: var(--sub); }
.plan2 td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.plan2 tr.on th, .plan2 tr.on td { color: var(--shu); font-weight: 700; }
.faq2 dt { font-weight: 700; margin-top: 10px; }
.faq2 dd { margin: 2px 0 0; color: var(--sub); font-size: 13px; }

.logo b { font: 700 14px/1.3 var(--min); letter-spacing: .02em; white-space: normal; }
.logo small { font-size: 10.5px; }
.hero h1 .h1s { display: block; margin-top: 6px; font: 500 clamp(13px, 3.8vw, 16px)/1.6 var(--jp); color: rgba(244, 239, 230, .85); letter-spacing: .04em; }
.hero h1 em { background: none; color: #ffd8a8; }
/* ホームのタイトル：何の単語帳か一目で（共通テスト英語 R・L／キョウテタン） */
.hero .hn { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: calc(100% - 96px); }
.hero .hn-b { display: inline-block; padding: 4px 10px; border-radius: 999px; background: #c8371d; color: #fff; font: 700 12px/1.3 var(--jp); letter-spacing: .12em; }
.hero h1.hn-t { margin: 2px 0 0; display: flex; flex-direction: column; gap: 2px; font-family: var(--min); letter-spacing: .03em; }
.hero .hn-1 { font: 700 clamp(24px, 7vw, 40px)/1.25 var(--min); color: #fff; }
.hero .hn-1 b { color: #d6ba80; }
.hero .hn-2 { font: 700 clamp(20px, 5.6vw, 30px)/1.3 var(--min); color: #d6ba80; }
.hero .hn-2 small { font-size: .62em; color: rgba(244, 239, 230, .85); margin-left: 2px; }
.hero .hn-s { font-size: 12.5px; color: rgba(244, 239, 230, .85); letter-spacing: .06em; }
.hero p.hn-tag { margin: 14px 0 6px; padding-top: 12px; border-top: 1px solid rgba(214, 186, 128, .3); font: 700 clamp(15px, 4.4vw, 20px)/1.55 var(--min); color: #f5efe4; max-width: none; }
.hero p.hn-tag em { font-style: normal; color: #ffd8a8; }
@media (max-width: 520px) { .hero .hn { max-width: 100%; } }
.nw { display: inline-block; }

/* ---------- パラフレーズ：本文 → 正解 を上下2行、言いかわった所に下線 ---------- */
.pl1 { display: grid; grid-template-columns: 2.9em 1fr; gap: 10px; align-items: baseline; }
.pl1 + .pl1 { margin-top: 7px; }
.plb { font: 700 11.5px/1 var(--jp); text-align: center; padding: 5px 0; border-radius: 5px; background: var(--bg2); color: var(--sub); position: relative; top: -2px; }
.pl1.to .plb { background: var(--para); color: #fff; }
.ptx { font: 500 16px/1.6 var(--serif); color: var(--ink); min-width: 0; overflow-wrap: anywhere; }
.pl1.to .ptx { color: var(--para); font-weight: 600; }
.ptx .hl { font-weight: 700; text-decoration: underline 2.5px var(--shu); text-underline-offset: 4px; text-decoration-skip-ink: none; }
.pl1.to .ptx .hl { text-decoration-color: var(--para); }
.ptx em { display: none; font: 400 13px/1.6 var(--jp); font-style: normal; color: var(--sub); margin-top: 2px; }
.prow.open .ptx em, .pxe2 .ptx em { display: block; }
.pwh { margin-top: 8px; padding-left: calc(2.9em + 10px); font: 600 12px/1.5 var(--jp); color: var(--sub); }
.prow .ch { display: block; padding: 14px 34px 12px 14px; }
.prow .ch::after { top: 18px; }
.prow .cb { padding: 2px 14px 16px; }
.pxe2 { background: var(--bg); border-radius: 10px; padding: 12px 12px 10px; margin-top: 12px; }
.pxe2 .pwh { margin-top: 6px; }
.ppt { background: var(--para-soft); border-radius: 10px; padding: 10px 13px 12px; }
.ppt-h { font: 700 12.5px var(--jp); color: var(--para); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ppt-h span { font: 700 11px var(--jp); color: var(--sub); background: var(--card); border-radius: 4px; padding: 2px 7px; }
.ppt p { margin: 6px 0 0; font: 500 15px/1.75 var(--jp); color: var(--ink); }
.ppt p .en { font: 600 15.5px var(--serif); color: var(--para); }
.pexh { font: 700 12.5px var(--jp); color: var(--sub); margin: 16px 0 0; }
.prow .pex { color: var(--ink); font-size: 15px; }
.prow .pex .faint { color: var(--sub); font-size: 13px; }
.prow .pex .pl { font-size: 11px; padding: 1px 6px; }
.hlk { font-weight: 700; text-decoration: underline 2.5px var(--shu); text-underline-offset: 3px; }
/* 開けることが一目で分かるボタン（行のどこを押しても開く） */
.prow .ch::after { content: none; }
.prow .ch { padding-right: 14px; }
.prow .pwh { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.pmore { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font: 700 12.5px/1 var(--jp); color: var(--para); background: var(--para-soft); border: 1.5px solid var(--para); border-radius: 999px; padding: 7px 12px; }
.pmore::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.pmore b { font-weight: 700; }
.pmore .c, .prow.open .pmore .o { display: none; }
.prow.open .pmore .c { display: inline; }
.prow.open .pmore { background: var(--card); color: var(--sub); border-color: var(--line2); }
.prow.open .pmore::after { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) { .prow:not(.open) .ch:hover .pmore { background: var(--para); color: #fff; } }
.lnote { margin: -2px 2px 10px; font-size: 11.5px; line-height: 1.7; color: var(--sub); }
.lnote b { color: var(--ink); }
.lnote.hide { display: none; }
