/* ================================================================
   多読ベスト — style.css
   色はすべて :root のトークン。ダークは [data-theme=dark] と OS 設定（auto）で切り替え
   ================================================================ */
:root {
  --bg: #fffaf3;
  --bg2: #f6efe4;
  --card: #ffffff;
  --ink: #1d1830;
  --ink2: #3b3552;
  --muted: #6d6684;
  --line: #ece3d4;
  --brand: #4b2fb8;
  --brand2: #c2255c;
  --gold: #f08c00;
  --grad: linear-gradient(120deg, #4b2fb8 0%, #9c36b5 45%, #e8590c 100%);
  --shadow: 0 1px 2px rgba(40, 24, 80, 0.06), 0 8px 24px -8px rgba(40, 24, 80, 0.18);
  --shadow-lg: 0 2px 4px rgba(40, 24, 80, 0.06), 0 24px 48px -16px rgba(40, 24, 80, 0.32);
  --hl: #fff1a8;
  --hl-ink: #1d1830;
  --paper: #ffffff;
  --r: 18px;
  --jp: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Yu Gothic UI', 'Meiryo', system-ui, sans-serif;
  --round: 'Zen Maru Gothic', var(--jp);
  --serif: 'Literata', 'Georgia', 'Times New Roman', serif;
  --display: 'Fraunces', 'Georgia', serif;
  --fs-read: 21px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #100d1c;
  --bg2: #171329;
  --card: #1b1730;
  --ink: #f2eeff;
  --ink2: #d6d0ec;
  --muted: #a69fc0;
  --line: #2c2645;
  --brand: #9775fa;
  --brand2: #f06595;
  --gold: #ffa94d;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
  --hl: #5f3dc4;
  --hl-ink: #fff;
  --paper: #1b1730;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] {
    --bg: #100d1c;
    --bg2: #171329;
    --card: #1b1730;
    --ink: #f2eeff;
    --ink2: #d6d0ec;
    --muted: #a69fc0;
    --line: #2c2645;
    --brand: #9775fa;
    --brand2: #f06595;
    --gold: #ffa94d;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px -8px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 24px 48px -16px rgba(0, 0, 0, 0.7);
    --hl: #5f3dc4;
    --hl-ink: #fff;
    --paper: #1b1730;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
/* hidden 属性は display を指定した要素（.card など）にも必ず効かせる */
[hidden] {
  display: none !important;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.8 var(--jp);
  overflow-x: hidden;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
select {
  max-width: 100%;
}
a {
  color: var(--brand);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand2);
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 99;
  background: var(--card);
  padding: 8px 12px;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.small {
  font-size: 13px;
  color: var(--muted);
}
.center {
  text-align: center;
}
.sub {
  color: var(--muted);
  margin: -4px 0 18px;
}
.kicker {
  font: 800 12px/1 var(--display);
  letter-spacing: 0.22em;
  color: var(--brand);
  margin: 0 0 10px;
}
h1,
h2,
h3 {
  font-family: var(--round);
  line-height: 1.35;
  letter-spacing: 0.01em;
}
.h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 14px;
}
.h2 small {
  font-size: 14px;
  color: var(--muted);
  margin-left: 8px;
  font-family: var(--jp);
}
.sec {
  margin: 56px 0;
}
.sec-h {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 32px;
}
.sec-h.left {
  text-align: left;
  margin-left: 0;
}
.sec-h h2 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 10px;
}
.sec-h p {
  color: var(--muted);
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  margin: 4px;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.btn.primary {
  background: var(--grad);
  color: #fff;
  border: 0;
  box-shadow: 0 10px 24px -10px rgba(75, 47, 184, 0.8);
}
.btn.primary:hover {
  color: #fff;
}
.btn.big {
  padding: 15px 30px;
  font-size: 17px;
}
.btn.glass {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
}
.ibtn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  display: grid;
  place-items: center;
  color: var(--ink2);
}
.ibtn:hover {
  color: var(--brand);
}

/* ---------- ヘッダー ---------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hd-in {
  max-width: 1400px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}
.logo span {
  font: 900 21px/1.05 var(--round);
  letter-spacing: 0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.logo small {
  display: block;
  font: 700 10px/1.2 var(--jp);
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  letter-spacing: 0.08em;
}
.nav {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
}
.nav::-webkit-scrollbar {
  display: none;
}
.nav a {
  white-space: nowrap;
  text-decoration: none;
  color: var(--ink2);
  font-weight: 700;
  font-size: 14px;
  padding: 7px 9px;
  border-radius: 10px;
}
.nav a:hover,
.nav a[aria-current] {
  background: var(--bg2);
  color: var(--brand);
}
.hd-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: none;
}
.wordpill {
  display: flex;
  align-items: baseline;
  gap: 4px;
  text-decoration: none;
  color: var(--ink);
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
}
.wordpill b {
  font: 800 15px var(--display);
  color: var(--brand);
}
@media (max-width: 900px) {
  .hd-in {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 8px 16px;
  }
  .nav {
    order: 3;
    flex-basis: 100%;
    margin: 0 -16px;
    padding: 0 12px;
  }
  .hd-tools {
    margin-left: auto;
  }
  .wordpill small {
    display: none;
  }
}

/* ---------- 検索 ---------- */
.search {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(16, 12, 30, 0.55);
  backdrop-filter: blur(6px);
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 10vh 16px 16px;
}
.search[hidden] {
  display: none;
}
.search-box {
  width: min(680px, 100%);
  background: var(--card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
.search-box input {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  background: var(--bg);
  font-size: 17px;
}
.search-res {
  grid-column: 1 / -1;
  max-height: 60vh;
  overflow: auto;
}
.search-res a {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}
.search-res a:hover,
.search-res a:focus {
  background: var(--bg2);
}
.search-res img,
.search-res .ph {
  width: 56px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  background: var(--bg2);
}
.search-res b {
  display: block;
  font-size: 15px;
}
.search-res small {
  color: var(--muted);
}

/* ---------- ヒーロー（トップ） ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: center;
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% 50%;
  z-index: -2;
  animation: kenburns 30s ease-in-out infinite alternate;
}
@keyframes kenburns {
  to {
    transform: scale(1.08) translate(-1%, -1%);
  }
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 8, 40, 0.88) 0%, rgba(20, 10, 50, 0.6) 42%, rgba(20, 10, 50, 0) 70%), linear-gradient(0deg, rgba(14, 8, 40, 0.55), transparent 40%);
}
.hero-in {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 24px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px 6px 6px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.eyebrow span {
  background: var(--gold);
  color: #1d1830;
  border-radius: 999px;
  padding: 2px 10px;
  font: 800 12px var(--display);
  letter-spacing: 0.1em;
}
.hero h1 {
  font-size: clamp(42px, 7.4vw, 92px);
  line-height: 1.12;
  margin: 22px 0 18px;
  font-weight: 900;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #ffd43b, #ff922b 40%, #f783ac 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 600px;
  opacity: 0.95;
  margin: 0 0 28px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 34px;
}
.hero-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-stats li {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  padding: 10px 18px;
  backdrop-filter: blur(8px);
  min-width: 120px;
}
.hero-stats b {
  display: block;
  font: 800 26px/1.1 var(--display);
  white-space: nowrap;
}
.hero-stats b small {
  font: 800 14px var(--round);
  margin-left: 2px;
}
.hero-stats span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  opacity: 0.85;
  margin-bottom: 2px;
}
@media (max-width: 760px) {
  .hero {
    min-height: 0;
    align-items: end;
  }
  .hero-img {
    object-position: 75% 50%;
  }
  .hero::before {
    background: linear-gradient(0deg, rgba(14, 8, 40, 0.94) 0%, rgba(14, 8, 40, 0.75) 55%, rgba(14, 8, 40, 0.15) 100%);
  }
  /* 2026-10-24 ユーザー指摘「トップから FREE まで空いているのはバグ？」：上の余白 220px → 詰める */
  .hero-in {
    padding: 28px 16px 32px;
  }
  .hero h1 {
    font-size: clamp(30px, 9.2vw, 42px);
    margin: 18px 0 14px;
  }
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .hero-stats li {
    min-width: 0;
    padding: 8px 12px;
  }
}

/* ---------- レベルの階段 ---------- */
.ladder-sec {
  margin-top: 72px;
}
.ladder {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  align-items: end;
}
.step {
  --h: calc(150px + var(--i) * 26px);
  min-height: var(--h);
  border-radius: 18px 18px 8px 8px;
  padding: 14px 12px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 82%, #fff), var(--c) 60%, color-mix(in srgb, var(--c) 70%, #000));
  box-shadow: 0 14px 28px -14px var(--c);
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  transition: transform 0.2s;
}
.step:hover {
  transform: translateY(-6px);
  color: #fff;
}
.step-n {
  font: 800 30px/1 var(--display);
}
.step-name {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.3;
}
.step-name small {
  display: block;
  font-weight: 500;
  opacity: 0.9;
  font-size: 12px;
}
.step-meta {
  font-size: 11px;
  opacity: 0.92;
  line-height: 1.5;
}
.step-count {
  margin-top: auto;
  font: 800 24px/1 var(--display);
}
.step-count small {
  font: 700 12px var(--jp);
  margin-left: 2px;
}
@media (max-width: 860px) {
  .ladder {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .step {
    min-height: 0;
    flex-direction: row;
    align-items: center;
    border-radius: 14px;
    margin-left: calc(var(--i) * 10px);
    gap: 12px;
  }
  .step-meta {
    display: none;
  }
  .step-count {
    margin: 0 0 0 auto;
  }
}

/* ---------- 今日の1話 ---------- */
.today {
  margin-top: 64px;
}
.today-card {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.today-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.today-body {
  padding: 36px;
}
.today-body h2 {
  font: 800 clamp(26px, 3.4vw, 38px) / 1.15 var(--display);
  margin: 0;
}
.today-body .ja {
  color: var(--muted);
  font-weight: 700;
  margin: 4px 0 14px;
}
.today-body .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
@media (max-width: 760px) {
  .today-card {
    grid-template-columns: 1fr;
  }
  .today-body {
    padding: 22px;
  }
}

/* ---------- カード ---------- */
.lv {
  display: inline-block;
  background: var(--c);
  color: #fff;
  font: 800 12px/1 var(--display);
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.gchip {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
  text-decoration: none;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(230px, 100%), 1fr));
  gap: 18px;
}
.row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 260px);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 18px;
  margin: 0 -4px;
  scrollbar-width: thin;
}
.row > * {
  scroll-snap-align: start;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--r);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.card-img {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg2);
  overflow: hidden;
}
.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.card:hover .card-img img {
  transform: scale(1.05);
}
.card-img .lv {
  position: absolute;
  left: 10px;
  top: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.card-img .au {
  position: absolute;
  right: 10px;
  top: 8px;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 14px;
}
.done-mark {
  display: none;
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: #0ca678;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}
.card.is-done .done-mark {
  display: block;
}
.card-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-body h3 {
  font: 700 17px/1.3 var(--display);
  margin: 0;
}
.card-body .ja {
  font-size: 13px;
  color: var(--muted);
  margin: 3px 0 8px;
  font-weight: 700;
  line-height: 1.5;
}
.card-body .meta {
  margin: auto 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: var(--muted);
}
.noimg {
  width: 100%;
  height: 100%;
  min-height: 120px;
  background: var(--grad);
  opacity: 0.35;
}
.shelf-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
/* 見出しが長くても「すべて見る」を画面の外へ押し出さない（2026-10-25 スマホで横に揺れた） */
.shelf-h h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}
.shelf-h a {
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ---------- ジャンル ---------- */
.genres {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.genre {
  position: relative;
  aspect-ratio: 16/10;
  border-radius: 22px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
  isolation: isolate;
  background: var(--c);
}
.genre img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s;
}
.genre::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, color-mix(in srgb, var(--c) 85%, #000) 0%, transparent 65%);
}
.genre:hover img {
  transform: scale(1.06);
}
.genre:hover {
  color: #fff;
}
.genre-t {
  position: absolute;
  left: 18px;
  bottom: 14px;
  right: 18px;
}
.genre-t b {
  display: block;
  font: 900 21px/1.3 var(--round);
}
.genre-t small {
  opacity: 0.92;
  font-weight: 700;
}

/* ---------- 機能 ---------- */
.features {
  background: linear-gradient(180deg, var(--bg2), var(--bg));
  padding: 64px 0 24px;
  margin-top: 40px;
}
.fgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}
.feat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.feat:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
}
.feat > span {
  font-size: 30px;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--bg2);
}
.feat h3 {
  margin: 12px 0 6px;
  font-size: 18px;
}
.feat p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}
.rules {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  counter-reset: r;
}
.rules li {
  background: var(--card);
  border-radius: 20px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  position: relative;
  counter-increment: r;
}
.rules li::before {
  content: counter(r);
  position: absolute;
  top: -18px;
  left: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 20px var(--display);
}
.rules b {
  display: block;
  font: 900 20px var(--round);
  margin-bottom: 6px;
}
.rules span {
  color: var(--muted);
}
@media (max-width: 760px) {
  .rules {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
.freebox a {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  background: var(--card);
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.freebox img {
  height: 100%;
  object-fit: cover;
}
.freebox div {
  padding: 30px;
}
.freebox h2 {
  margin: 0 0 8px;
  font-size: clamp(22px, 3vw, 30px);
}
@media (max-width: 760px) {
  .freebox a {
    grid-template-columns: 1fr;
  }
}
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin: 10px 0;
  padding: 0 18px;
}
.faq summary {
  cursor: pointer;
  font-weight: 800;
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker,
.faq-all > summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '＋';
  color: var(--brand);
}
.faq details[open] summary::after {
  content: '−';
}
.faq details p {
  margin: 0 0 16px;
  color: var(--ink2);
}
/* よくある質問：全体を1本のバーにたたむ */
.faq-all {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.faq-all > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}
.faq-ic {
  font-size: 24px;
}
.faq-h {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.faq-h b {
  font: 900 18px var(--round);
}
.faq-h small {
  color: var(--muted);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.faq-tg::after {
  content: '一覧を見る ▾';
  font-size: 12.5px;
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}
.faq-all[open] .faq-tg::after {
  content: '閉じる ▴';
}
.faq-all[open] .faq-h small {
  display: none;
}
/* 開いた中身：箱を重ねず、線で区切ったコンパクトな一覧（PC は2列） */
.faq-all .faq {
  border-top: 1px solid var(--line);
  padding: 4px 18px 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 28px;
  align-items: start;
}
.faq-all .faq details {
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--line);
  border-radius: 0;
  margin: 0;
  padding: 0;
}
.faq-all .faq summary {
  padding: 11px 0;
  font-size: 14.5px;
}
.faq-all .faq details p {
  font-size: 14px;
  margin: 0 0 12px;
}
@media (max-width: 760px) {
  .faq-all .faq {
    grid-template-columns: 1fr;
    padding: 2px 16px 8px;
  }
  .faq-all > summary {
    padding: 12px 14px;
  }
}
.author {
  display: flex;
  gap: 22px;
  align-items: center;
  background: var(--card);
  border-radius: 24px;
  padding: 26px;
  border: 1px solid var(--line);
}
.author img {
  border-radius: 50%;
  flex: none;
  background: #fff6e6;
}
.author h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.author p {
  margin: 0;
}

/* ---------- ページの見出し（一覧系） ---------- */
.phero {
  position: relative;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  min-height: 340px;
  display: grid;
  align-items: end;
}
.phero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.phero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, color-mix(in srgb, var(--c) 60%, #0b0820) 0%, color-mix(in srgb, var(--c) 35%, rgba(11, 8, 32, 0.6)) 55%, rgba(11, 8, 32, 0.15) 100%);
}
.phero-in {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 40px 20px 30px;
}
.phero h1 {
  font-size: clamp(30px, 5vw, 52px);
  margin: 6px 0 10px;
  line-height: 1.2;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}
.phero h1 small {
  display: block;
  font-size: 0.42em;
  opacity: 0.92;
  margin-top: 6px;
}
.phero h1 span {
  font-family: var(--display);
}
.phero p {
  max-width: 760px;
  margin: 0 0 12px;
}
.phero a {
  color: #fff;
}
.phero .crumb,
.phero .crumb a {
  color: rgba(255, 255, 255, 0.85);
}
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stat-row span {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 14px;
  backdrop-filter: blur(6px);
}
.stat-row b {
  font: 800 18px var(--display);
  margin-right: 3px;
}
.crumb {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 6px;
}
.crumb a {
  color: inherit;
}
.lvnav {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin: 24px 0 14px;
}
.lvnav a {
  text-align: center;
  border-radius: 14px;
  padding: 8px 4px;
  text-decoration: none;
  color: var(--c);
  border: 2px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: var(--card);
}
.lvnav a[aria-current] {
  background: var(--c);
  color: #fff;
}
.lvnav b {
  display: block;
  font: 800 20px/1.1 var(--display);
}
.lvnav small {
  font-size: 11px;
  font-weight: 700;
}
@media (max-width: 640px) {
  .lvnav small {
    display: none;
  }
}
.lvinfo {
  background: var(--card);
  border-left: 6px solid var(--c);
  border-radius: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
}
.lvinfo dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
  margin: 0 0 8px;
}
.lvinfo dt {
  font-size: 12px;
  color: var(--muted);
}
.lvinfo dd {
  margin: 0;
  font-weight: 800;
}
.lvinfo p {
  margin: 6px 0;
}

/* ---------- 絞り込み ---------- */
.filter {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px;
  margin: 20px 0;
  display: grid;
  gap: 8px;
}
.filter.sticky {
  position: sticky;
  top: 64px;
  z-index: 20;
  box-shadow: var(--shadow);
}
@media (max-width: 900px) {
  .filter.sticky {
    top: 96px;
    position: static;
  }
}
.fchips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fchips button {
  border: 1.5px solid color-mix(in srgb, var(--c, var(--brand)) 45%, transparent);
  background: transparent;
  color: var(--c, var(--brand));
  border-radius: 999px;
  padding: 4px 12px;
  font-weight: 800;
  font-size: 13px;
}
.fchips button[aria-pressed='true'] {
  background: var(--c, var(--brand));
  color: #fff;
}
.frow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 14px;
}
.frow input[type='search'],
.filter > input[type='search'] {
  flex: 1 1 240px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--bg);
}
.frow select {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 6px 10px;
  background: var(--bg);
}
.count {
  color: var(--muted);
  font-weight: 700;
  margin-left: auto;
}
.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px;
}
.lvtabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.lvtabs button {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 6px 14px 6px 6px;
  font-weight: 700;
  font-size: 14px;
}
.lvtabs button[aria-selected='true'] {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent);
}

/* ---------- イソップ原文の一覧 ---------- */
.fables {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 8px;
}
.fable {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 14px;
  text-decoration: none;
  color: var(--ink);
}
.fable:hover {
  border-color: var(--brand);
  color: var(--ink);
}
.fn {
  grid-row: span 2;
  font: 800 18px var(--display);
  color: var(--gold);
  text-align: center;
}
.ftl b {
  font: 600 16px/1.3 var(--display);
  display: block;
}
.ftl small {
  color: var(--muted);
  font-weight: 700;
}
.fm {
  font-size: 12px;
  color: var(--muted);
}
.fm em {
  font-style: normal;
  color: #0ca678;
  font-weight: 800;
}
.fable.is-done {
  background: color-mix(in srgb, #0ca678 8%, var(--card));
}

/* ---------- 読み物ページ ---------- */
.read-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 18px 20px 40px;
}
.read-hero {
  margin: 4px 0 22px;
}
.read-art {
  margin: 0 -20px 18px;
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--bg2);
}
.read-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (min-width: 900px) {
  .read-art {
    margin: 0 -60px 22px;
    border-radius: 28px;
    box-shadow: var(--shadow-lg);
  }
}
.read-hero.compact .read-art {
  aspect-ratio: 21/8;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.read-head h1 {
  font: 800 clamp(32px, 5.6vw, 54px) / 1.1 var(--display);
  margin: 14px 0 4px;
  letter-spacing: -0.01em;
  border-radius: 10px;
}
.ja-title {
  font: 700 18px var(--round);
  color: var(--muted);
  margin: 0 0 12px;
}
.meta {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.read-head .meta li {
  background: var(--bg2);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink2);
}
.summary {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 16px;
  margin: 0 0 8px;
}
.summary b,
.summary-d summary {
  color: var(--brand);
  margin-right: 8px;
  font-weight: 800;
}
.summary-d {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 16px;
}
.summary-d summary {
  cursor: pointer;
}
.summary-d p {
  margin: 8px 0 0;
}
.source {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0 0;
}
.easier {
  background: color-mix(in srgb, #0ca678 10%, var(--card));
  border: 1px solid color-mix(in srgb, #0ca678 35%, transparent);
  border-radius: 14px;
  padding: 10px 14px;
  margin: 0 0 14px;
  font-weight: 700;
}
.easier a {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  margin: 2px 8px 2px 0;
}
.gloss {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 16px;
  margin: 0 0 16px;
}
.gloss summary {
  cursor: pointer;
  font-weight: 800;
}
.gloss summary small {
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
  font-size: 12px;
}
.gloss ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.gloss li {
  background: var(--bg2);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 14px;
}
.gloss li b {
  font-family: var(--serif);
  margin-right: 6px;
}

/* プレイヤー */
.player {
  position: sticky;
  top: 62px;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  background: linear-gradient(120deg, #3b1f9e, #7b2fbf 55%, #c2255c);
  color: #fff;
  border-radius: 22px;
  padding: 12px 16px;
  box-shadow: 0 16px 32px -16px rgba(75, 47, 184, 0.8);
  margin: 0 0 12px;
}
@media (max-width: 900px) {
  .player {
    top: 92px;
  }
}
.player.off {
  display: block;
  background: var(--bg2);
  color: var(--muted);
  box-shadow: none;
  position: static;
}
.player.off p {
  margin: 0;
}
.pl-play {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #4b2fb8;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s;
}
.pl-play:active {
  transform: scale(0.94);
}
.pl-play svg {
  width: 28px;
  height: 28px;
}
.pl-play .i-pause,
.player.playing .pl-play .i-play {
  display: none;
}
.player.playing .pl-play .i-pause {
  display: block;
}
.pl-main {
  min-width: 0;
}
.pl-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
}
.pl-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.pl-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  margin: 8px 0;
  cursor: pointer;
  position: relative;
  touch-action: none;
}
.pl-bar i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, #ffd43b, #ff922b);
  border-radius: 999px;
}
.pl-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.pl-tools button,
.pl-rate select {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
}
.pl-tools button[aria-pressed='true'] {
  background: #fff;
  color: #4b2fb8;
}
.pl-rate {
  font-size: 12px;
  font-weight: 700;
}
.pl-rate select option {
  color: #1d1830;
}
.pl-voice {
  margin: 6px 0 0;
  font-size: 11px;
  opacity: 0.7;
}
@media (max-width: 600px) {
  .player {
    gap: 10px;
    padding: 10px 12px;
    border-radius: 18px;
  }
  .pl-play {
    width: 48px;
    height: 48px;
  }
  .pl-label,
  .pl-voice {
    display: none;
  }
  .pl-tools button {
    padding: 2px 8px;
  }
}
/* 下へスクロールして上に張り付いている間は、細い1本の帯にして本文を隠さない */
.player.compact {
  padding: 6px 12px 6px 6px;
  gap: 10px;
  border-radius: 999px;
}
.player.compact .pl-play {
  width: 38px;
  height: 38px;
}
.player.compact .pl-play svg {
  width: 20px;
  height: 20px;
}
.player.compact .pl-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.player.compact .pl-bar {
  flex: 1;
  order: -1;
  margin: 0;
}
.player.compact .pl-tools {
  flex-wrap: nowrap;
}
.player.compact .pl-label,
.player.compact .pl-voice,
.player.compact .pl-rate,
.player.compact [data-repeat],
.player.compact [data-follow],
.player.compact [data-listen] {
  display: none;
}
@media (max-width: 600px) {
  .player.compact .pl-tools {
    display: none;
  }
}

/* 読みやすさの道具 */
.rtools {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
}
.rtools button {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 10px;
  padding: 4px 12px;
  font-weight: 800;
  font-size: 13px;
  color: var(--ink2);
}
.rtools button[aria-pressed='true'] {
  border-color: var(--brand);
  color: var(--brand);
}
.timer {
  font: 800 16px var(--display);
  color: var(--brand2);
  font-variant-numeric: tabular-nums;
}

/* 本文 */
.text {
  font: 400 var(--fs-read) / 1.85 var(--serif);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 5vw, 52px);
  box-shadow: var(--shadow);
  color: var(--ink);
  hyphens: manual;
  position: relative;
}
.text::before {
  content: '';
  position: absolute;
  left: 0;
  top: 28px;
  bottom: 28px;
  width: 5px;
  border-radius: 0 6px 6px 0;
  background: var(--lvc, var(--brand));
}
.text p {
  margin: 0 0 1.05em;
  white-space: pre-line; /* キプリングの詩など、段落内の改行をそのまま見せる */
}
.text.orig {
  --fs-read: 19px;
}
.text.sans {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, var(--jp);
}
.text.sepia,
body.sepia .text {
  background: #f8f0dc;
  color: #3d3020;
  border-color: #eadcb8;
}
.s {
  border-radius: 6px;
  transition: background 0.25s, box-shadow 0.25s;
  cursor: pointer;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.has-audio .s:hover {
  background: color-mix(in srgb, var(--hl) 45%, transparent);
}
.s.on {
  background: var(--hl);
  color: var(--hl-ink);
  box-shadow: 0 0 0 3px var(--hl);
}
h1.s.on {
  box-shadow: 0 0 0 6px var(--hl);
}
.g {
  border-bottom: 2px dotted color-mix(in srgb, var(--brand) 70%, transparent);
  cursor: help;
}
.no-gloss .g {
  border-bottom: 0;
}
.listen-only .text .s {
  color: transparent;
  text-shadow: 0 0 10px color-mix(in srgb, var(--ink) 55%, transparent);
  transition: color 0.4s, text-shadow 0.4s;
}
.listen-only .text .s.on {
  color: transparent;
}
.backto {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 55;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  background: linear-gradient(120deg, #3b1f9e, #c2255c);
  color: #fff;
  font: 800 14px var(--jp);
  box-shadow: 0 10px 24px -8px rgba(59, 31, 158, 0.7);
}
.backto[hidden] {
  display: none;
}
.pop {
  position: absolute;
  z-index: 60;
  background: var(--ink);
  color: var(--bg);
  border-radius: 10px;
  padding: 6px 12px;
  font: 700 14px/1.4 var(--jp);
  box-shadow: var(--shadow-lg);
  pointer-events: none;
  max-width: 260px;
}
.text .tr {
  display: none;
  font: 500 15px/1.85 var(--jp);
  color: var(--muted);
  margin: -0.6em 0 1.3em;
  padding: 6px 0 6px 14px;
  border-left: 3px solid color-mix(in srgb, var(--brand) 40%, transparent);
}
body.show-tr .text .tr {
  display: block;
}
.zenyaku details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 18px;
  margin: 18px 0;
}
.zenyaku summary {
  cursor: pointer;
  font-weight: 800;
}
.zenyaku summary small {
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
  font-size: 12px;
}
.zen-body p {
  margin: 0.8em 0;
  line-height: 1.95;
  white-space: pre-line;
}
.the-end {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  margin: 1.4em 0 0 !important;
  letter-spacing: 0.15em;
  font-size: 0.85em;
}
.finish {
  text-align: center;
  margin: 26px 0;
}
.btn-finish {
  border: 0;
  border-radius: 999px;
  padding: 16px 38px;
  background: linear-gradient(120deg, #0ca678, #37b24d);
  color: #fff;
  font: 900 21px var(--round);
  box-shadow: 0 14px 28px -12px rgba(12, 166, 120, 0.9);
  transition: transform 0.15s;
}
.btn-finish small {
  display: block;
  font: 700 12px var(--jp);
  opacity: 0.9;
}
.btn-finish:hover {
  transform: translateY(-2px) scale(1.02);
}
.btn-finish.done {
  background: var(--bg2);
  color: var(--muted);
  box-shadow: none;
}
.finish-note {
  font-size: 12px;
  color: var(--muted);
}
.finish-res {
  margin-top: 12px;
}
.finish-res .res-card {
  display: inline-grid;
  grid-template-columns: repeat(3, auto);
  gap: 6px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.res-card b {
  display: block;
  font: 800 26px var(--display);
  color: var(--brand);
}
.res-card small {
  color: var(--muted);
  font-size: 12px;
}
.res-card p {
  grid-column: 1 / -1;
  margin: 4px 0 0;
  font-weight: 700;
}
.moral,
.quiz,
.origlink,
.howuse,
.next {
  margin: 34px 0;
}
.moral h2,
.quiz h2,
.origlink h2,
.howuse h2,
.next h2 {
  font-size: 22px;
}
.moral h2 small,
.quiz h2 small,
.howuse h2 small {
  font: 700 13px var(--display);
  color: var(--muted);
  margin-left: 6px;
  letter-spacing: 0.05em;
}
.moral details {
  background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 14%, var(--card)), var(--card));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 20px;
}
.moral summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--gold);
}
.m-en {
  font: italic 600 22px/1.5 var(--serif);
  margin: 12px 0 4px;
}
.m-ja {
  font-weight: 700;
  margin: 0;
}
.q {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  margin: 10px 0;
}
.qq {
  font: 600 18px/1.5 var(--serif);
  margin: 0 0 10px;
}
.qc {
  display: grid;
  gap: 8px;
}
.qc button {
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--bg);
  border-radius: 12px;
  padding: 9px 14px;
  font: 17px var(--serif);
  transition: background 0.2s, border 0.2s;
}
.qc button:hover {
  border-color: var(--brand);
}
.qc button.ok {
  background: color-mix(in srgb, #0ca678 18%, var(--card));
  border-color: #0ca678;
}
.qc button.ng {
  background: color-mix(in srgb, #f03e3e 12%, var(--card));
  border-color: #f03e3e;
  opacity: 0.8;
}
.qr {
  margin: 8px 0 0;
  font-weight: 800;
  min-height: 1em;
}
.qr span {
  font-family: var(--serif);
}
.qja {
  margin: -4px 0 10px;
  color: var(--muted);
  font-size: 14px;
}
.qc button small.cj {
  display: block;
  font: 13px/1.4 var(--jp);
  color: var(--muted);
  margin-top: 2px;
}
.q.answered .qc button {
  cursor: default;
}
.qx {
  margin: 10px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--brand) 7%, var(--bg));
  border: 1px dashed color-mix(in srgb, var(--brand) 35%, var(--line));
}
.qx p {
  margin: 0 0 8px;
  line-height: 1.75;
}
.qx button {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14px;
  font-weight: 700;
}
.qx button:hover {
  border-color: var(--brand);
}
.text p.q-hit {
  animation: qhit 2.6s ease-out;
  border-radius: 8px;
}
@keyframes qhit {
  0%,
  45% {
    background: color-mix(in srgb, #fcc419 38%, transparent);
    box-shadow: 0 0 0 6px color-mix(in srgb, #fcc419 38%, transparent);
  }
  100% {
    background: transparent;
    box-shadow: 0 0 0 6px transparent;
  }
}
.quiz-score {
  text-align: center;
  font: 900 20px var(--round);
  color: var(--brand);
}
.origlink details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 16px;
  margin-bottom: 10px;
}
.origlink summary {
  cursor: pointer;
  font-weight: 800;
}
.origlink .text {
  box-shadow: none;
  border: 0;
  padding: 10px 4px;
}
.origlink .text::before {
  display: none;
}
.mini {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 14px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
}
.mini img,
.mini .noimg {
  aspect-ratio: 16/9;
  object-fit: cover;
  min-height: 0;
}
.mini b {
  display: block;
  font: 700 19px var(--display);
}
.mini small {
  color: var(--muted);
}
.howuse ol {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 20px 16px 40px;
  margin: 0 0 8px;
}
.howuse li {
  margin: 6px 0;
}
.next .grid {
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
}
.more {
  text-align: right;
  font-weight: 800;
}
.pager {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 26px 0 10px;
  font-weight: 700;
  font-size: 14px;
}
.pager a {
  text-decoration: none;
}

/* ---------- 記事 ---------- */
.article {
  padding-top: 20px;
  padding-bottom: 40px;
}
.art-head {
  max-width: 820px;
  margin: 0 auto 24px;
}
.art-head h1 {
  font-size: clamp(28px, 4.4vw, 42px);
  margin: 10px 0 12px;
}
.lead {
  font-size: 18px;
  color: var(--ink2);
}
.gcat {
  display: inline-block;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand);
  font-weight: 800;
  font-size: 12px;
  padding: 3px 12px;
  border-radius: 999px;
}
.byline {
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.byline img {
  border-radius: 50%;
  background: #fff6e6;
}
.art-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 760px);
  gap: 40px;
  justify-content: center;
}
.toc {
  position: sticky;
  top: 90px;
  align-self: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  max-height: calc(100vh - 120px);
  overflow: auto;
}
.toc ol {
  padding-left: 18px;
  margin: 8px 0 0;
}
.toc li {
  margin: 5px 0;
}
.toc a {
  color: var(--ink2);
  text-decoration: none;
}
.toc a:hover {
  color: var(--brand);
}
@media (max-width: 960px) {
  .art-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .toc {
    position: static;
    max-height: none;
  }
}
.prose {
  font-size: 17px;
  line-height: 1.95;
}
.prose.narrow {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 {
  font-size: 25px;
  margin: 2em 0 0.6em;
  padding: 0 0 8px;
  border-bottom: 3px solid transparent;
  border-image: var(--grad) 1;
}
.prose h3 {
  font-size: 20px;
  margin: 1.6em 0 0.4em;
  padding-left: 12px;
  border-left: 5px solid var(--gold);
}
.prose h4 {
  font-size: 17px;
  margin: 1.4em 0 0.3em;
}
.prose ul,
.prose ol {
  padding-left: 1.4em;
}
.prose li {
  margin: 0.3em 0;
}
.prose blockquote {
  margin: 1em 0;
  padding: 12px 18px;
  background: var(--bg2);
  border-left: 4px solid var(--brand);
  border-radius: 0 12px 12px 0;
}
.prose strong {
  background: linear-gradient(transparent 62%, color-mix(in srgb, var(--gold) 35%, transparent) 62%);
}
.tbl {
  overflow-x: auto;
  margin: 1em 0;
}
.tbl table {
  border-collapse: collapse;
  width: 100%;
  font-size: 15px;
  background: var(--card);
}
.tbl th,
.tbl td {
  border: 1px solid var(--line);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}
.tbl th {
  background: var(--bg2);
}
.refs {
  font-size: 14px;
  color: var(--ink2);
  word-break: break-word;
}
.cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
  margin: 36px 0;
  box-shadow: var(--shadow);
}
.ggrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 14px;
}
.gcard {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.gcard:hover {
  transform: translateY(-3px);
  color: var(--ink);
}
.gcard h3 {
  font-size: 17px;
  margin: 8px 0 6px;
}
.gcard p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.cite {
  font-family: var(--serif);
  color: var(--ink2);
  word-break: break-word;
}
.nums li {
  font-weight: 800;
}
.rgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px;
  margin: 24px 0;
}
.rcard {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.rcard:hover {
  color: var(--ink);
  border-color: var(--brand);
}
.rtype {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: #1864ab;
  border-radius: 999px;
  padding: 2px 10px;
}
.ryear {
  float: right;
  font: 800 20px var(--display);
  color: var(--line);
}
.rcard h3 {
  font-size: 17px;
  margin: 10px 0 4px;
}
.rby {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  font-family: var(--serif);
}
.rnum {
  margin: 8px 0 0;
  font-weight: 800;
  color: var(--brand2);
  font-size: 14px;
}

/* ---------- 無料素材 ---------- */
.here-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 12px;
}
.here-grid a {
  background: var(--grad);
  color: #fff;
  border-radius: 18px;
  padding: 16px 18px;
  text-decoration: none;
  font-weight: 700;
}
.here-grid b {
  display: block;
  font: 800 30px var(--display);
}
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr));
  gap: 14px;
}
.res {
  min-width: 0;
  overflow-wrap: anywhere;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.res h3 {
  margin: 0 0 6px;
  font-size: 19px;
}
.res h3 a {
  color: var(--ink);
}
.res h3 small {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.badges span {
  font-size: 11px;
  font-weight: 800;
  border-radius: 999px;
  padding: 2px 9px;
  background: var(--bg2);
  color: var(--ink2);
}
.badges .b-cost {
  background: #0ca678;
  color: #fff;
}
.badges .b-lic {
  background: color-mix(in srgb, var(--brand) 14%, transparent);
  color: var(--brand);
}
.badges .b-au {
  background: color-mix(in srgb, var(--gold) 20%, transparent);
  color: #b35900;
}
.res p {
  margin: 10px 0 0;
  font-size: 15px;
}
.res .howto {
  background: var(--bg2);
  border-radius: 12px;
  padding: 8px 12px;
}
.pc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
}
.pc ul {
  margin: 10px 0 0;
  padding-left: 1.2em;
}
.pros li::marker {
  content: '◎ ';
  color: #0ca678;
}
.cons li::marker {
  content: '△ ';
  color: #e8590c;
}
.note {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px 24px;
}

/* ---------- レベル診断 ---------- */
.check {
  max-width: 780px;
  margin: 30px auto 60px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: clamp(20px, 4vw, 40px);
  box-shadow: var(--shadow-lg);
}
.check-start {
  text-align: center;
}
.check-prog {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}
.check-prog i {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: var(--line);
}
.check-prog i.on {
  background: var(--c);
}
.check-text {
  font: 400 20px/1.8 var(--serif);
  background: var(--bg);
  border-radius: 16px;
  padding: 18px 22px;
}
.check-q {
  margin: 14px 0;
}
.check-q p {
  font: 600 18px var(--serif);
  margin: 0 0 6px;
}
.check-q .qc button[aria-pressed='true'] {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--card));
}
.feel {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}
.feel button {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  padding: 10px;
  font-weight: 800;
}
.feel button[aria-pressed='true'] {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, var(--card));
}
.check-res {
  text-align: center;
}
.check-res .big-lv {
  display: inline-block;
  font: 800 64px/1 var(--display);
  color: var(--c);
  margin: 10px 0;
}
.check-res .grid {
  text-align: left;
  margin-top: 16px;
}
.big-btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- 読書記録 ---------- */
.my {
  margin: 30px 0 60px;
}
.my-top {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
@media (max-width: 760px) {
  .my-top {
    grid-template-columns: 1fr;
    text-align: center;
  }
}
.ring {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
}
.ring svg {
  transform: rotate(-90deg);
}
.ring-in {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  text-align: center;
}
.ring-in b {
  font: 800 34px/1.1 var(--display);
  color: var(--brand);
}
.ring-in small {
  color: var(--muted);
  font-weight: 700;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}
.kpi {
  background: var(--bg);
  border-radius: 16px;
  padding: 12px 14px;
}
.kpi b {
  display: block;
  font: 800 26px var(--display);
}
.kpi small {
  color: var(--muted);
  font-weight: 700;
}
.badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
}
.badge {
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 800;
  background: var(--bg2);
  color: var(--muted);
}
.badge.got {
  background: var(--grad);
  color: #fff;
}
/* スマホでは升目を縮めて26週ぶんを1画面に収める（横スクロールなし） */
.heat {
  display: grid;
  grid-template-rows: repeat(7, auto);
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 12px);
  gap: 3px;
  padding-bottom: 6px;
}
.heat i {
  aspect-ratio: 1;
  border-radius: 3px;
  background: var(--line);
}
.heat i[data-l='1'] {
  background: #b2f2bb;
}
.heat i[data-l='2'] {
  background: #69db7c;
}
.heat i[data-l='3'] {
  background: #37b24d;
}
.heat i[data-l='4'] {
  background: #2b8a3e;
}
.bars div {
  display: grid;
  grid-template-columns: 70px 1fr 60px;
  gap: 10px;
  align-items: center;
  margin: 6px 0;
  font-size: 14px;
  font-weight: 700;
}
.bars span {
  height: 14px;
  border-radius: 999px;
  background: var(--c);
  min-width: 2px;
}
.loglist {
  list-style: none;
  padding: 0;
}
.loglist li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  font-size: 14px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 20px 22px;
  margin: 18px 0;
}
.panel h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
/* 引き継ぎコード（読書記録ページ） */
.sync {
  border-color: var(--brand);
}
.sync-code {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sync-code code {
  font: 700 clamp(17px, 4.6vw, 22px) / 1.2 ui-monospace, Consolas, monospace;
  letter-spacing: 0.06em;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--bg2);
}
.sync-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: end;
  margin: 14px 0 6px;
}
.sync-form label {
  flex: 1 1 260px;
  display: grid;
  gap: 4px;
  font-size: 14px;
}
.sync-form input {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  font-family: ui-monospace, Consolas, monospace;
  text-transform: uppercase;
}
.sync-msg:empty {
  display: none;
}
.sync-msg {
  font-weight: 700;
  color: var(--brand);
}

/* ---------- フッター ---------- */
.ft {
  background: #120e24;
  color: #cfc8e8;
  margin-top: 60px;
  padding: 48px 0 24px;
}
.ft-in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 28px;
}
.ft a {
  color: #cfc8e8;
  text-decoration: none;
  display: block;
  font-size: 14px;
  margin: 4px 0;
}
.ft a:hover {
  color: #fff;
}
.ft h4 {
  color: #fff;
  margin: 0 0 8px;
  font-family: var(--round);
}
.ft .logo small {
  -webkit-text-fill-color: #a69fc0;
}
.ft p {
  font-size: 14px;
}
.copy {
  max-width: 1180px;
  margin: 30px auto 0;
  padding: 18px 20px 0;
  border-top: 1px solid #2c2645;
  font-size: 12px;
  color: #a69fc0;
}
.copy a {
  display: inline;
}
@media (max-width: 860px) {
  .ft-in {
    grid-template-columns: 1fr 1fr;
  }
  .ft-brand {
    grid-column: 1 / -1;
  }
}

/* ---------- 演出 ---------- */
.js:not(.mo) .rv {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js:not(.mo) .rv.in {
  opacity: 1;
  transform: none;
}
/* Motion（fx.js）が動かすときは、出る前だけ隠す */
.mo .rv:not(.in) {
  opacity: 0;
}
.mo .ladder .step:not(.in),
.mo .owl-big:not(.in) {
  opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
  .js .rv {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-img {
    animation: none;
  }
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 95;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--bg);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 800;
  z-index: 96;
  box-shadow: var(--shadow-lg);
}
@media print {
  .hd,
  .ft,
  .player,
  .rtools,
  .finish,
  .next,
  .part-nav,
  .bk-pos,
  .howuse {
    display: none !important;
  }
  .text {
    box-shadow: none;
    border: 0;
  }
}

/* ================================================================
   スマホ対応（2026-10-23 ユーザー要望：ハンバーガー・上に戻る・いろいろ工夫）
   ================================================================ */
.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  place-content: center;
}
.burger span {
  display: block;
  width: 18px;
  height: 2.5px;
  border-radius: 2px;
  background: currentColor;
  margin: 0 auto;
}
.drawer-bg {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 12, 30, 0.5);
  backdrop-filter: blur(3px);
}
.drawer-bg[hidden],
.drawer[hidden] {
  display: none;
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 81;
  width: min(360px, 88vw);
  background: var(--bg);
  overflow-y: auto;
  padding: 14px 16px calc(24px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg);
  animation: drawerIn 0.22s ease-out;
  overscroll-behavior: contain;
}
@keyframes drawerIn {
  from {
    transform: translateX(100%);
  }
}
.drawer-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font: 900 18px var(--round);
}
.drawer h4 {
  margin: 18px 0 8px;
  font: 800 13px var(--jp);
  color: var(--muted);
  letter-spacing: 0.08em;
}
.drawer-search {
  width: 100%;
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 700;
  color: var(--muted);
}
.drawer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 10px;
}
.drawer-grid a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.drawer-lv {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.drawer-lv a {
  text-align: center;
  background: var(--c);
  color: #fff;
  border-radius: 12px;
  padding: 8px 2px;
  text-decoration: none;
  line-height: 1.2;
}
.drawer-lv b {
  display: block;
  font: 800 18px var(--display);
}
.drawer-lv small {
  font-size: 10px;
  font-weight: 700;
}
.drawer-list {
  display: grid;
  gap: 2px;
}
.drawer-list a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 8px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
}
.drawer-list a:hover {
  background: var(--bg2);
}
.drawer-list span {
  width: 26px;
  text-align: center;
}
body.menu-open {
  overflow: hidden;
}

/* 下のタブバー（スマホだけ） */
.tabbar {
  display: none;
}
.totop {
  position: fixed;
  right: 18px;
  bottom: 22px;
  z-index: 54;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: var(--grad);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px -8px rgba(75, 47, 184, 0.75);
  transition: transform 0.2s, opacity 0.2s;
}
.totop[hidden] {
  display: none;
}
.totop:active {
  transform: scale(0.92);
}
.readbar {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  z-index: 60;
  pointer-events: none;
}
.readbar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ffd43b, #ff922b, #f06595);
}
.filter-toggle {
  display: none;
}

/* 横並びメニューが入りきらない幅ではハンバーガーにする（2026-10-24「切れちゃってる」）
   2026-10-24「お道具箱」が増えて「レベル診断」が「レベル」で切れていた → 1240px から 1320px に */
@media (max-width: 1320px) {
  .hd-tools {
    margin-left: auto;
  }
  .hd-in {
    flex-wrap: nowrap;
    padding: 8px 12px;
    gap: 8px;
  }
  .nav {
    display: none;
  }
  .burger {
    display: flex;
  }
  .hd-tools {
    gap: 6px;
  }
  .player {
    top: 58px;
  }
  .filter.sticky {
    top: 58px;
  }
}
@media (max-width: 760px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .hd [data-theme-toggle],
  .hd .wordpill {
    display: none;
  }
  .logo span {
    font-size: 19px;
  }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 52;
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    backdrop-filter: saturate(1.4) blur(14px);
    -webkit-backdrop-filter: saturate(1.4) blur(14px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .tabbar a,
  .tabbar button {
    display: grid;
    justify-items: center;
    gap: 1px;
    text-decoration: none;
    color: var(--muted);
    font: 700 10.5px/1.2 var(--jp);
    background: none;
    border: 0;
    padding: 2px 0;
    min-height: 46px;
  }
  .tabbar span {
    font-size: 20px;
    line-height: 1.2;
  }
  .tabbar b {
    font: 800 10.5px var(--jp);
  }
  .tabbar [aria-current] {
    color: var(--brand);
  }
  .totop {
    bottom: calc(76px + env(safe-area-inset-bottom));
    right: 14px;
    width: 44px;
    height: 44px;
  }
  .backto {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
  .toast {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }
  /* 一覧は2列でたくさん見えるように */
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .card-body {
    padding: 9px 10px 11px;
  }
  .card-body h3 {
    font-size: 15px;
  }
  .card-body .ja {
    font-size: 12px;
    margin-bottom: 5px;
  }
  .card-body .meta {
    font-size: 11px;
    gap: 2px 8px;
  }
  .card-img .lv {
    left: 6px;
    top: 6px;
    font-size: 11px;
    padding: 4px 7px;
  }
  /* 本棚は横スクロールをやめ、2列×2段だけ見せて残りは「すべて見る」へ（2026-10-24「横スクロールが多くて使いにくい」） */
  .row {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    gap: 10px;
    overflow: visible;
    scroll-snap-type: none;
    padding: 0;
    margin: 0;
  }
  .row > :nth-child(n + 5) {
    display: none;
  }
  .heat {
    gap: 2px;
  }
  .fables {
    grid-template-columns: 1fr;
  }
  .wrap {
    padding: 0 14px;
  }
  .sec {
    margin: 40px 0;
  }
  /* 絞り込みはボタンで開く */
  .filter-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin: 16px 0 0;
    border: 1.5px solid var(--line);
    background: var(--card);
    border-radius: 14px;
    padding: 12px 14px;
    font-weight: 800;
    color: var(--ink);
  }
  .filter-toggle span {
    color: var(--muted);
    font-weight: 700;
  }
  [data-filter] {
    display: none;
    margin-top: 8px;
  }
  [data-filter].open {
    display: grid;
  }
  /* 横スクロールはやめて折り返す（2026-10-24「横スクロールする場所が多くて使いにくい」） */
  .fchips button {
    padding: 6px 11px;
  }
  /* 読み物ページ */
  .read-wrap {
    padding: 10px 14px 30px;
  }
  .read-art {
    margin: 0 -14px 14px;
  }
  .player {
    border-radius: 16px;
    margin: 0 -6px 10px;
  }
  /* 再生ボタンの列は折り返して全部見せる（横スクロールなし） */
  .pl-tools {
    gap: 5px;
  }
  .pl-tools button,
  .pl-rate {
    white-space: nowrap;
  }
  .pl-tools button {
    padding: 4px 9px;
  }
  .rtools button {
    padding: 7px 11px;
  }
  .text {
    border-radius: 18px;
    padding: 22px 18px;
    margin: 0 -6px;
  }
  .qc button {
    padding: 12px 14px;
  }
  .btn-finish {
    width: 100%;
  }
  .finish-res .res-card {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px 10px;
    padding: 12px;
    width: 100%;
  }
  .res-card b {
    font-size: 20px;
  }
  .pager {
    flex-direction: column;
    text-align: center;
  }
  .search {
    padding: 0;
  }
  .search-box {
    border-radius: 0 0 20px 20px;
    width: 100%;
  }
  .search-res {
    max-height: 75vh;
  }
  .phero {
    min-height: 280px;
  }
  .stat-row span {
    font-size: 12px;
    padding: 3px 10px;
  }
  .lvnav {
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
  }
  .lvnav b {
    font-size: 16px;
  }
  .res-grid,
  .rgrid,
  .ggrid,
  .fgrid {
    grid-template-columns: 1fr;
  }
  .pc {
    grid-template-columns: 1fr;
  }
  .ft {
    padding-bottom: 12px;
  }
  .hero-stats b {
    font-size: 21px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .drawer {
    animation: none;
  }
}

.resume {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  max-width: 1180px;
  margin: -28px auto 0;
  position: relative;
  z-index: 2;
  width: calc(100% - 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  color: var(--ink);
}
.resume span {
  font-weight: 800;
  color: var(--brand);
  font-size: 13px;
}
.resume b {
  font: 700 18px var(--display);
}
.resume small {
  color: var(--muted);
  font-weight: 700;
}

/* 長い一覧の「もっと見る」 */
.more-btn {
  display: block;
  margin: 22px auto 8px;
  border: 2px solid var(--brand);
  background: var(--card);
  color: var(--brand);
  border-radius: 999px;
  padding: 12px 30px;
  font: 800 15px var(--jp);
  box-shadow: var(--shadow);
}
.more-btn:hover {
  background: var(--brand);
  color: #fff;
}
.more-btn[hidden] {
  display: none;
}

/* ---------- 🔰 はじめての方へ ---------- */
.beginner {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  background: linear-gradient(90deg, #e9fbe8 50%, #fff9db 50%);
  border: 1.5px solid #40c057;
  color: #1b5e20;
  border-radius: 999px;
  padding: 5px 12px 5px 8px;
  font-size: 13px;
  white-space: nowrap;
}
.beginner span {
  font-size: 17px;
  line-height: 1;
}
:root[data-theme='dark'] .beginner {
  background: #1e3a24;
  color: #b2f2bb;
}
@media (max-width: 760px) {
  .beginner {
    padding: 5px 8px;
  }
  .beginner b {
    display: none;
  }
}
/* 横並びメニューが出るぎりぎりの幅では 🔰 だけにして、語数が増えてもメニューが切れないようにする */
@media (min-width: 1321px) and (max-width: 1480px) {
  .hd .beginner {
    padding: 5px 8px;
  }
  .hd .beginner b {
    display: none;
  }
}
.drawer-start {
  display: block;
  margin-bottom: 8px;
  background: #ebfbee;
  border: 1.5px solid #40c057;
  color: #1b5e20;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 800;
  text-decoration: none;
}
.bmark {
  display: inline-block;
}
.start-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.start-toc a {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
}
.step-sec {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 24px 20px;
  margin: 26px 0;
  box-shadow: var(--shadow);
}
.step-no {
  display: inline-block;
  background: linear-gradient(90deg, #2f9e44, #f59f00);
  color: #fff;
  font: 800 13px var(--display);
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 4px 14px;
}
.step-sec h2 {
  font-size: clamp(21px, 3vw, 27px);
  margin: 10px 0 8px;
}
.lv-mini {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin: 12px 0 6px;
}
.lv-mini a {
  background: var(--c);
  color: #fff;
  border-radius: 12px;
  padding: 8px 4px;
  text-align: center;
  text-decoration: none;
  line-height: 1.25;
}
.lv-mini b {
  display: block;
  font: 800 18px var(--display);
}
.lv-mini span {
  font-size: 10px;
  font-weight: 700;
}
.gpick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  margin: 12px 0;
}
.gpick a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 8px;
  align-items: center;
  border: 1.5px solid color-mix(in srgb, var(--c) 40%, transparent);
  background: color-mix(in srgb, var(--c) 7%, var(--card));
  border-radius: 14px;
  padding: 8px 10px;
  text-decoration: none;
  color: var(--ink);
}
.gpick span {
  grid-row: span 2;
  font-size: 22px;
}
.gpick b {
  font-size: 13px;
  line-height: 1.3;
}
.gpick small {
  color: var(--muted);
  font-weight: 700;
}
.tools {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 10px;
  margin: 14px 0;
}
.tools li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 2px 10px;
  background: var(--bg);
  border-radius: 16px;
  padding: 12px;
}
.tools .ti {
  grid-row: span 2;
  font-size: 26px;
  display: grid;
  place-items: center;
}
.tools b {
  font-size: 15px;
}
.tools span:last-child {
  font-size: 13px;
  color: var(--ink2);
  line-height: 1.6;
}
.howto3 {
  background: color-mix(in srgb, #2f9e44 9%, var(--card));
  border-radius: 16px;
  padding: 14px 18px;
}
.howto3 h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.checks {
  padding-left: 1.2em;
}
.checks li {
  margin: 6px 0;
}
.courses {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}
.course {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.course h3 {
  margin: 0 0 6px;
  font-size: 17px;
}
.course ol {
  margin: 0;
  padding-left: 1.3em;
}
.course li {
  margin: 5px 0;
  font-weight: 700;
}
.course small {
  display: block;
  color: var(--muted);
  font-weight: 500;
}
@media (max-width: 760px) {
  .step-sec {
    padding: 20px 16px 16px;
    border-radius: 18px;
  }
  .lv-mini {
    grid-template-columns: repeat(4, 1fr);
  }
  .courses {
    grid-template-columns: 1fr;
  }
}

/* ---------- 丸ごと1冊（章ごと） ---------- */
.bk {
  color: var(--brand);
  font-weight: 800;
}
.bookbox {
  background: var(--card);
  border: 2px solid color-mix(in srgb, var(--brand) 35%, transparent);
  border-radius: 22px;
  padding: 18px 20px;
  margin: 30px 0;
}
.bookbox h2 {
  margin: 0 0 4px;
  font-size: 21px;
}
.bookbox h2 small {
  font: 600 14px var(--display);
  color: var(--muted);
  margin-left: 6px;
}
.chap-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 10px 0;
}
/* 続きもの：題名の上の「何番目か」と、本文の下の前へ・次へ */
.bk-pos {
  margin: 8px 0 0;
  font-size: 14px;
}
.bk-pos a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, transparent);
  color: var(--brand);
  font-weight: 700;
  text-decoration: none;
}
.bk-pos span {
  font-size: 12px;
  opacity: 0.8;
}
.part-nav,
.chap-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
}
.part-nav {
  margin: 0 0 30px;
}
.pn {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border-radius: 16px;
  border: 2px solid color-mix(in srgb, var(--brand) 30%, transparent);
  background: var(--card);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.pn small {
  font-weight: 800;
  color: var(--brand);
  font-size: 13px;
}
.pn b {
  font-size: 15px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.pn.next {
  text-align: right;
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.pn.next small {
  color: inherit;
  opacity: 0.9;
}
.pn.end {
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
}
a.pn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--brand) 80%, transparent);
}
@media (max-width: 520px) {
  .part-nav,
  .chap-nav {
    grid-template-columns: 1fr;
  }
  .part-nav > span:empty,
  .chap-nav > span:empty {
    display: none;
  }
  .pn.next {
    order: -1;
  }
}
.chap-toc summary {
  cursor: pointer;
  font-weight: 800;
}
.chap-toc ol {
  margin: 8px 0 0;
  padding-left: 1.6em;
  columns: 2 260px;
}
.chap-toc li {
  margin: 4px 0;
  break-inside: avoid;
}
.chap-toc li[aria-current] a {
  font-weight: 900;
  color: var(--ink);
}
.chap-toc small {
  color: var(--muted);
}

/* ---------- 動き（Motion）とマスコット「はらだくん」 ---------- */
.sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.sparkles i {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, #fff7c2 0%, rgba(255, 212, 59, 0.6) 45%, transparent 70%);
  opacity: 0;
}
/* トップのはらだくん：左に「はらだくん＋吹き出し」、右に What's New（更新履歴）の欄。2026-10-25 */
.owl-greet {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
  margin-top: 40px;
}
.owl-greet:not(.has-news) {
  grid-template-columns: minmax(0, 1fr);
}
.owl-main {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}
.owl-big {
  width: 170px;
  height: 170px;
  cursor: pointer;
  filter: drop-shadow(0 18px 24px rgba(75, 47, 184, 0.25));
}
.owl-talk,
.owl-news {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 26px;
  box-shadow: var(--shadow-lg);
}
.owl-talk {
  padding: 20px 24px;
}
.owl-talk::before {
  content: '';
  position: absolute;
  left: -14px;
  top: 50%;
  width: 26px;
  height: 26px;
  background: var(--card);
  border-left: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.owl-name {
  margin: 0 0 6px;
  font: 900 18px var(--round);
  color: var(--brand);
}
.owl-name small {
  font: 700 12px var(--jp);
  color: var(--muted);
  margin-left: 6px;
}
.owl-bubble {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.65;
  min-height: 6.6em;
}
.owl-bubble small {
  font-size: 0.85em;
}
.owl-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}
.owl-go {
  font-size: 14px;
  white-space: nowrap;
}
/* What's New：マウスを乗せると、はらだくんが中身を話す */
.owl-news {
  display: flex;
  flex-direction: column;
  padding: 18px 20px 14px;
}
.owl-news-h {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.owl-news-h .wn {
  font: 900 14px var(--display);
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--grad);
  padding: 4px 12px;
  border-radius: 999px;
}
.owl-news-h .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 900 13px var(--round);
  color: var(--brand2);
}
.owl-news-h .live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand2);
  animation: live-dot 1.6s ease-out infinite;
}
@keyframes live-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(194, 37, 92, 0.55);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(194, 37, 92, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .owl-news-h .live i {
    animation: none;
  }
}
.owl-news-all {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.owl-total {
  margin: 12px 0 8px;
  padding: 8px 14px;
  border-radius: 14px;
  background: var(--bg2);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink2);
}
.owl-total b {
  margin: 0 2px 0 4px;
  font: 900 21px var(--round);
  color: var(--brand2);
  font-variant-numeric: tabular-nums;
}
.owl-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.owl-news-list li + li {
  border-top: 1px dashed var(--line);
}
.owl-news-list > li > * {
  display: grid;
  grid-template-columns: 6.2em minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  margin: 0 -8px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.15s;
}
.owl-news-list a:hover,
.owl-news-list a:focus-visible {
  background: var(--bg2);
}
.owl-news-list a:hover .nt {
  color: var(--brand);
  text-decoration: underline;
}
.owl-news-list time {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.owl-news-list .nt {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.owl-news-list .new {
  font: 900 10px var(--jp);
  font-style: normal;
  color: #fff;
  background: var(--brand2);
  padding: 2px 6px;
  border-radius: 6px;
}
/* 「誕生」のような節目は日付が題に入っているので、題を行いっぱいに */
.owl-news-list .ms time {
  display: none;
}
.owl-news-list .ms .nt {
  grid-column: 1 / -1;
  color: var(--gold);
}
.owl-news-more {
  display: none;
}
/* タブレット：2つの欄を縦に */
@media (max-width: 1000px) {
  .owl-greet {
    grid-template-columns: minmax(0, 1fr);
  }
  .owl-main {
    grid-template-columns: 140px minmax(0, 1fr);
  }
  .owl-big {
    width: 140px;
    height: 140px;
  }
  .owl-bubble {
    min-height: 0;
  }
}
/* スマホ：はらだくんは欄の左上に乗せる。ふだんは最低限（総数と最新の1件）、「くわしく見る」で吹き出しと全部のニュース */
@media (max-width: 760px) {
  .owl-greet {
    gap: 12px;
    position: relative;
    margin-top: 34px;
  }
  .owl-main {
    display: block;
  }
  .owl-big {
    position: absolute;
    left: 6px;
    top: -26px;
    z-index: 1;
    width: 92px;
    height: 92px;
  }
  .owl-talk {
    padding: 14px;
    border-radius: 18px;
  }
  .owl-talk::before {
    display: none;
  }
  .owl-name {
    padding-left: 86px;
    min-height: 52px;
  }
  .owl-name small {
    display: block;
    margin-left: 0;
  }
  .owl-bubble {
    font-size: 14px;
  }
  .owl-acts .btn {
    padding: 8px 12px;
    font-size: 13px;
  }
  .owl-news {
    padding: 14px 14px 10px;
    border-radius: 18px;
  }
  .owl-total {
    margin: 10px 0 6px;
    padding: 6px 10px;
    font-size: 12.5px;
    text-align: center;
    text-wrap: balance;
  }
  .owl-total b {
    font-size: 16px;
  }
  .owl-news-list > li > * {
    grid-template-columns: 3.2em minmax(0, 1fr) auto;
    font-size: 13px;
    padding: 6px;
    margin: 0 -6px;
  }
  .owl-news-list time small {
    display: none;
  }
  .js .owl-greet.has-news:not(.news-open) :is(.owl-talk, .owl-news-list li:nth-child(n + 2)) {
    display: none;
  }
  .js .owl-greet.has-news:not(.news-open) .owl-big {
    width: 64px;
    height: 64px;
    top: -18px;
  }
  .js .owl-greet.has-news:not(.news-open) .owl-news-h {
    padding-left: 60px;
    min-height: 34px;
  }
  .js .owl-news-more {
    display: block;
    align-self: center;
    margin-top: 4px;
    padding: 6px 16px;
    border: 0;
    background: none;
    font: 700 13px var(--jp);
    color: var(--brand);
    cursor: pointer;
  }
}
/* どのページにもいる小さなはらだくん */
.owl-pal {
  position: fixed;
  left: 14px;
  bottom: 18px;
  z-index: 53;
}
.owl-pal-btn {
  width: 84px;
  height: 84px;
  border: 0;
  background: none;
  padding: 0;
  filter: drop-shadow(0 8px 14px rgba(40, 24, 80, 0.3));
}
.owl-pal-btn img {
  width: 100%;
  height: 100%;
}
.owl-pal-close {
  position: absolute;
  right: -4px;
  top: -4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 0;
  background: var(--ink);
  color: var(--bg);
  font-size: 12px;
  line-height: 22px;
  padding: 0;
  opacity: 0.7;
}
.owl-pal-bubble {
  position: absolute;
  left: 8px;
  bottom: 96px;
  width: min(300px, calc(100vw - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.7;
  transform-origin: 20px 100%;
}
.owl-menu {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}
.owl-menu a,
.owl-menu button {
  display: block;
  text-align: left;
  background: var(--bg2);
  border: 0;
  border-radius: 10px;
  padding: 8px 10px;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}
.owl-book {
  display: grid;
  gap: 2px;
  margin-top: 8px;
  text-decoration: none;
  color: var(--ink);
}
.owl-book img {
  border-radius: 10px;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.owl-book b {
  font-family: var(--display);
}
.owl-book small {
  color: var(--muted);
}
.owl-peek {
  position: fixed;
  left: -18px;
  bottom: 30px;
  z-index: 53;
  width: 56px;
  height: 56px;
  border: 0;
  background: none;
  padding: 0;
  transform: rotate(18deg);
  opacity: 0.85;
}
.owl-peek img {
  width: 100%;
  height: 100%;
}
.owl-cheer {
  display: block;
  width: 130px;
  height: 130px;
  margin: 0 auto 6px;
  filter: drop-shadow(0 10px 16px rgba(40, 24, 80, 0.25));
}
@media (max-width: 760px) {
  .owl-pal {
    bottom: calc(74px + env(safe-area-inset-bottom));
    left: 8px;
  }
  .owl-pal-btn {
    width: 62px;
    height: 62px;
  }
  .owl-pal-bubble {
    bottom: 72px;
  }
  .owl-peek {
    bottom: calc(80px + env(safe-area-inset-bottom));
  }
}
/* 姉妹サイト */
.sisters {
  margin: 36px 0;
}
/* 原田英語.com（横長のコンパクトなカード1枚） */
.harada {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 18px 14px 14px;
  border-radius: 20px;
  background: linear-gradient(120deg, #120c2e, #241650);
  color: #fff;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.harada-img {
  flex: none;
  width: 104px;
  height: 104px;
  border-radius: 14px;
  object-fit: cover;
}
.harada-in {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.harada-k {
  font-size: 11.5px;
  font-weight: 700;
  color: #9fd4ff;
}
.harada-t {
  font: 900 20px/1.3 var(--round);
}
.harada-t em {
  font-style: normal;
  font-size: 14px;
  margin-left: 6px;
  background: linear-gradient(100deg, #7dd3fc, #c084fc 55%, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.harada-d {
  font-size: 13px;
  opacity: 0.88;
}
.harada-has {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 2px;
}
.harada-has span {
  font-size: 11px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 1px 8px;
}
.harada-go {
  flex: none;
  font: 900 22px var(--round);
  color: #c4b5fd;
  transition: transform 0.2s;
}
.harada:hover .harada-go {
  transform: translateX(4px);
}
@media (max-width: 760px) {
  .harada {
    gap: 12px;
    padding: 12px;
    align-items: flex-start;
  }
  .harada-img {
    width: 72px;
    height: 72px;
  }
  .harada-t {
    font-size: 17px;
  }
  .harada-t em {
    display: block;
    margin: 0;
    font-size: 12.5px;
  }
  .harada-d {
    font-size: 12px;
  }
  .harada-go {
    align-self: center;
    font-size: 18px;
  }
}
.sis-banner {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(120deg, color-mix(in srgb, #e8590c 10%, var(--card)), var(--card));
  border: 1.5px solid color-mix(in srgb, #e8590c 40%, transparent);
  border-radius: 18px;
  padding: 14px 18px;
  margin: 26px 0;
  text-decoration: none;
  color: var(--ink);
}
.sis-banner > span:first-child {
  font-size: 32px;
}
.sis-banner b {
  display: block;
  color: #c2410c;
}
.sis-banner small {
  color: var(--ink2);
}
@media (prefers-reduced-motion: reduce) {
  .sparkles {
    display: none;
  }
}

/* ---------- 先生向け ---------- */
.tsec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 24px 16px;
  margin: 24px 0;
  box-shadow: var(--shadow);
}
.tsec h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 10px;
  font-size: clamp(20px, 2.8vw, 25px);
}
.tsec h2 small {
  font: 700 13px var(--jp);
  color: var(--muted);
}
.tsec .checks li {
  margin: 8px 0;
}
@media (max-width: 760px) {
  .tsec {
    padding: 18px 14px 12px;
    border-radius: 18px;
  }
}

/* ---------- 🧰 お道具箱 ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 18px;
  margin: 10px 0 40px;
}
.tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
  scroll-margin-top: 80px;
}
.tool h2 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 10px;
  font-size: 20px;
}
.tool h2 > span {
  font-size: 24px;
}
.tool h2 small {
  font: 700 12px var(--jp);
  color: var(--muted);
}
.tool textarea,
.tool input,
.tool select {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  background: var(--bg);
  font: 16px var(--serif);
}
.tool select,
.tool input {
  font-family: var(--jp);
}
.tool textarea {
  resize: vertical;
}
.tool label {
  display: grid;
  gap: 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--ink2);
}
.tool .chk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tool .chk input {
  width: auto;
}
.form3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 8px 0;
}
.row-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.row-btns .btn {
  margin: 0;
}
.row-btns select {
  width: auto;
}
.verdict {
  background: color-mix(in srgb, var(--brand) 8%, var(--card));
  border-radius: 14px;
  padding: 12px 14px;
}
.verdict small {
  color: var(--muted);
}
.wpm-row {
  display: flex;
  gap: 14px;
  align-items: end;
  margin-bottom: 8px;
}
.wpm-row label {
  flex: 1;
}
.w-time,
.timer-big {
  font: 800 34px var(--display);
  font-variant-numeric: tabular-nums;
  color: var(--brand2);
}
.timer-big {
  font-size: 64px;
  text-align: center;
  margin: 6px 0;
}
.timer-big.on {
  color: #0ca678;
}
#w-start.on {
  background: linear-gradient(120deg, #0ca678, #37b24d);
}
.big-wpm {
  font: 800 22px var(--display);
}
.big-wpm b {
  font-size: 56px;
  color: var(--brand);
}
.spark {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 70px;
  background: var(--bg);
  border-radius: 10px;
  padding: 6px;
}
.spark i {
  flex: 1;
  min-width: 4px;
  border-radius: 3px 3px 0 0;
  background: var(--grad);
}
.f-view {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  font: 500 24px/1.6 var(--serif);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  margin: 10px 0;
}
.v-card {
  text-align: center;
  background: var(--bg);
  border-radius: 16px;
  padding: 16px;
  margin: 8px 0;
}
.vq {
  font: 700 30px var(--display);
  margin: 0 0 8px;
}
.va {
  font-weight: 800;
  font-size: 20px;
  margin: 0;
}
.v-list table td button {
  border: 0;
  background: none;
  color: var(--muted);
}
.ondoku {
  display: flex;
  justify-content: center;
  gap: 30px;
  text-align: center;
}
.ondoku b {
  display: block;
  font: 800 48px var(--display);
  color: var(--brand);
}
.ondoku small {
  font-weight: 800;
  color: var(--muted);
}
.rt-link {
  margin-left: auto;
  font-weight: 800;
  font-size: 13px;
  text-decoration: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 4px 10px;
  background: var(--card);
  white-space: nowrap;
}

/* ---------- スマホのトップを短く（2026-10-24「下まで長ったらしい」） ----------
   ジャンルは3列の小さめカード、機能は細い行、ガイド・研究は3本だけ（横スクロールは使わない） */
@media (max-width: 640px) {
  .page-top .genres {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .page-top .genre {
    aspect-ratio: 1;
    border-radius: 14px;
  }
  .page-top .genre-t {
    left: 7px;
    right: 7px;
    bottom: 6px;
  }
  .page-top .genre-t b {
    font-size: 13px;
    line-height: 1.25;
  }
  .page-top .genre-t small {
    font-size: 11px;
  }
  .page-top .genre-en {
    display: none;
  }
  /* 機能は「アイコン＋見出し＋説明」の細い行に、ガイド・研究は3本だけ縦に（横スクロールなし） */
  .page-top .fgrid {
    gap: 8px;
  }
  .page-top .feat {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 2px 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 16px;
  }
  .page-top .feat > span {
    grid-row: span 2;
    align-self: start;
    width: 40px;
    height: 40px;
    font-size: 22px;
    border-radius: 12px;
  }
  .page-top .feat h3 {
    margin: 0;
    font-size: 15px;
  }
  .page-top .feat p {
    font-size: 12.5px;
    line-height: 1.6;
  }
  .page-top .ggrid,
  .page-top .rgrid {
    gap: 10px;
  }
  .page-top .ggrid > :nth-child(n + 4),
  .page-top .rgrid > :nth-child(n + 4) {
    display: none;
  }
  .page-top .gcard,
  .page-top .rcard {
    padding: 14px 16px;
  }
}

/* ---------- 🧰 お道具箱 v2（2026-10-24「本気を見せて」：一覧のカード・道具ページ・新しい道具） ---------- */
.tgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.tcard {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, border-color 0.2s;
}
.tcard:hover {
  transform: translateY(-3px);
  border-color: var(--brand);
  color: var(--ink);
}
.tcard-i {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 28px;
  background: var(--bg2);
}
.tcard b {
  font: 800 16px/1.35 var(--jp);
}
.tcard b em {
  font: 900 10px var(--jp);
  font-style: normal;
  color: #fff;
  background: var(--brand2);
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: 2px;
}
.tcard small {
  color: var(--muted);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1.5;
}
.tgrid.tpop .tcard {
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 9%, var(--card)), var(--card));
}
.tool-hero {
  background: linear-gradient(160deg, color-mix(in srgb, #0b7285 16%, var(--bg)), var(--bg));
  padding: 18px 0 8px;
}
.tool-hero h1 {
  display: flex;
  gap: 10px;
  align-items: center;
  font: 900 clamp(26px, 4.6vw, 40px) / 1.25 var(--round);
  margin: 6px 0 8px;
}
.tool-hero .lead {
  max-width: 760px;
  color: var(--ink2);
}
.tool-one .tool {
  margin: 14px 0 22px;
}
.tool-one .tsec {
  margin-bottom: 18px;
}
.h3 {
  font-size: 16px;
  margin: 16px 0 8px;
}
.h3 small {
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
}
.chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 3px 11px;
  font: 600 14px var(--serif);
  color: var(--ink);
  cursor: pointer;
}
.chip:hover {
  border-color: var(--brand);
}
.chip:disabled {
  opacity: 0.45;
}
/* 語彙カバー率 */
.cov {
  margin: 12px 0;
}
.cov-h {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 18px;
}
.cov-v {
  font-size: 13px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 999px;
  color: #fff;
}
.cov-v.ok {
  background: #0ca678;
}
.cov-v.mid {
  background: #f59f00;
}
.cov-v.ng {
  background: #e03131;
}
.cov-bar {
  position: relative;
  display: flex;
  height: 16px;
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg2);
  margin: 8px 0 4px;
}
.cov-bar i {
  display: block;
  height: 100%;
  background: var(--grad);
  transition: width 0.3s;
}
.cov-bar i.b1 {
  background: #12b886;
}
.cov-bar i.b2 {
  background: #74c0fc;
}
.cov-bar i.b3 {
  background: #ffd43b;
}
.cov-bar i.bx {
  background: #ff8787;
}
.cov-bar .m95,
.cov-bar .m98,
.cov-bar .mk {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--ink);
  opacity: 0.55;
}
.cov-bar .m95 {
  left: 95%;
}
.cov-bar .m98 {
  left: 98%;
}
.a-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  margin: 10px 0 6px;
}
.a-legend span,
.band {
  padding: 1px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}
.a-legend .b1,
.band.b1,
.band.b0 {
  background: color-mix(in srgb, #12b886 22%, var(--card));
}
.a-legend .b2,
.band.b2,
.a-marked .b2 {
  background: color-mix(in srgb, #74c0fc 40%, var(--card));
}
.a-legend .b3,
.band.b3,
.a-marked .b3 {
  background: color-mix(in srgb, #ffd43b 50%, var(--card));
}
.a-legend .bx,
.band.bx,
.a-marked .bx {
  background: color-mix(in srgb, #ff8787 45%, var(--card));
}
.a-marked {
  font: 17px/1.9 var(--serif);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  max-height: 420px;
  overflow: auto;
}
.a-marked:empty {
  display: none;
}
.a-marked span {
  border-radius: 4px;
  padding: 0 2px;
}
.kpi.big b {
  font-size: 40px;
  color: var(--brand);
}
.cnt-goal {
  margin: 10px 0;
  font-weight: 700;
}
.cnt-goal.ok b {
  color: #0ca678;
}
.cnt-goal.ng b {
  color: #e8590c;
}
.cnt-goal.over b {
  color: #e03131;
}
.cnt-goal.ok .cov-bar i {
  background: #12b886;
}
.cnt-goal.over .cov-bar i {
  background: #ff6b6b;
}
.cov-bar.goal {
  height: 12px;
}
/* 速読・タイマーのバー */
.sp-view {
  min-height: 130px;
  display: grid;
  place-items: center;
  text-align: center;
  font: 600 clamp(28px, 6vw, 44px) / 1.3 var(--serif);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px;
  margin: 10px 0 6px;
}
.sp-bar {
  height: 6px;
  border-radius: 999px;
  background: var(--bg2);
  overflow: hidden;
}
.sp-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grad);
  transition: width 0.25s linear;
}
.tm-phase {
  min-height: 1.5em;
  font-weight: 800;
}
/* シャドーイング・読み上げの文リスト */
.sh-list {
  font: 17px/1.75 var(--serif);
  padding-left: 1.6em;
  margin: 12px 0;
}
.sh-list:empty {
  display: none;
}
.sh-list li {
  padding: 4px 8px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.sh-list li:hover {
  background: var(--bg2);
}
.sh-list li.on {
  background: color-mix(in srgb, #ffd43b 45%, var(--card));
  font-weight: 600;
}
/* ディクテーション */
.dc-own {
  margin: 8px 0;
}
.dc-own summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
}
.dc-box {
  background: var(--bg);
  border-radius: 16px;
  padding: 12px 14px;
  margin: 8px 0;
}
.dc-diff {
  font: 18px/1.9 var(--serif);
}
.dc-diff span,
.dc-res span {
  border-radius: 5px;
  padding: 1px 4px;
}
.tool .ok {
  background: color-mix(in srgb, #12b886 25%, transparent);
}
.tool .miss {
  background: color-mix(in srgb, #ff6b6b 35%, transparent);
}
.tool .extra {
  background: color-mix(in srgb, #adb5bd 40%, transparent);
  text-decoration: line-through;
}
.dc-ans b {
  font: 800 22px var(--display);
  color: var(--brand);
}
/* バッジ */
.bd-title {
  text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--card)), var(--card));
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 14px;
}
.bd-now {
  margin: 0;
  font-weight: 800;
  color: var(--muted);
  font-size: 13px;
}
.bd-name {
  font: 900 26px var(--round);
  margin: 4px 0 6px;
}
.bd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: 10px;
}
.bd {
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 6px;
  filter: grayscale(1);
  opacity: 0.5;
}
.bd.has {
  filter: none;
  opacity: 1;
  background: linear-gradient(160deg, color-mix(in srgb, #ffd43b 30%, var(--card)), var(--card));
  border-color: color-mix(in srgb, #f59f00 50%, var(--line));
}
.bd span {
  font-size: 32px;
  display: block;
}
.bd b {
  display: block;
  font-size: 13px;
  line-height: 1.3;
}
.bd small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
/* フラッシュカード */
.fc-boxes {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  text-align: center;
}
.fc-boxes div {
  background: var(--bg);
  border-radius: 12px;
  padding: 8px 4px;
}
.fc-boxes b {
  display: block;
  font: 800 22px var(--display);
}
.fc-boxes small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}
.fc-card {
  text-align: center;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: 22px;
  padding: 28px 16px;
  margin: 8px auto;
  max-width: 480px;
  box-shadow: var(--shadow);
}
.fc-done {
  text-align: center;
  font: 800 20px var(--round);
  margin: 14px 0;
}
.file-btn {
  cursor: pointer;
}
/* 感想ジェネレーター */
.rv-feels {
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 8px 12px;
  margin: 8px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
}
.rv-feels legend {
  font-size: 13px;
  font-weight: 800;
  padding: 0 4px;
}
.rv-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand);
  border-radius: 14px;
  padding: 14px 16px;
  margin-top: 10px;
}
.rv-card p[lang="en"] {
  font: 18px/1.8 var(--serif);
  margin: 0 0 8px;
}
/* 印刷用の読書記録シート */
.ps {
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  margin-top: 12px;
  overflow-x: auto;
}
.ps-h {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  margin-bottom: 8px;
}
.ps-h b {
  font-size: 18px;
}
.ps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.ps-table th,
.ps-table td {
  border: 1px solid #999;
  padding: 5px 6px;
  height: 26px;
  text-align: center;
}
.ps-table th {
  background: #eef;
}
.ps-table .ps-t {
  text-align: left;
  width: 34%;
}
.ps-f {
  font-size: 10px;
  color: #555;
  margin: 6px 0 0;
}
@media print {
  body.printing-sheet * {
    visibility: hidden;
  }
  body.printing-sheet .print-area,
  body.printing-sheet .print-area * {
    visibility: visible;
  }
  body.printing-sheet .print-area {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
  }
  body.printing-sheet .ps {
    border: 0;
    padding: 0;
  }
}
@media (max-width: 640px) {
  .tgrid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .tcard {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 12px 8px;
  }
  .tcard-i {
    grid-row: auto;
    margin: 0 auto 6px;
    width: 44px;
    height: 44px;
    font-size: 24px;
  }
  .tcard b {
    font-size: 14px;
  }
  .tcard small {
    font-size: 11px;
  }
  .fc-boxes small {
    font-size: 10px;
  }
}

/* ---------- 研究ライブラリー v2・本物を見る（2026-10-24） ---------- */
.rtopics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
}
.rtopics a {
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
  background: var(--bg2);
  border-radius: 999px;
  padding: 2px 10px;
}
.r-easy {
  background: color-mix(in srgb, #1864ab 9%, var(--card));
  border-left: 5px solid #1864ab;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 17px;
}
.r-sum {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.rcard[hidden] {
  display: none;
}
.media {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px 18px;
  margin: 22px 0;
  box-shadow: var(--shadow);
}
.media h2 {
  margin: 0 0 10px;
  font-size: 20px;
}
.media h2 small {
  font-size: 12px;
  color: var(--muted);
}
.media-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  align-items: center;
  text-decoration: none;
  color: var(--ink);
  padding: 8px;
  border-radius: 16px;
  transition: background 0.2s;
}
.media-card:hover {
  background: var(--bg2);
  color: var(--ink);
}
.media-th {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #000;
}
.media-th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-th i {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 48px;
  height: 34px;
  border-radius: 10px;
  background: #e03131;
  color: #fff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 16px;
}
.media-t small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}
.media-t b {
  display: block;
  font: 600 16px/1.4 var(--serif);
  margin: 2px 0;
}
.media-t em {
  font-style: normal;
  font-size: 13px;
  color: var(--ink2);
}
@media (max-width: 640px) {
  .media-card {
    grid-template-columns: 120px 1fr;
    gap: 10px;
  }
  .media-t b {
    font-size: 14px;
  }
}
/* 超絶講義 */
.lec-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}
.lec-nav a {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}
.lec-nav a small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.lec-nav .next {
  text-align: right;
  grid-column: 2;
}
.lec-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: lec;
}
.lec-list a {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
}
.lec-list a:hover {
  border-color: var(--brand);
}
.lec-no {
  font: 900 15px/1.2 var(--round);
  color: #fff;
  background: var(--grad);
  border-radius: 14px;
  text-align: center;
  padding: 10px 4px;
}
.lec-list b {
  display: block;
  font-size: 17px;
}
.lec-list small {
  color: var(--muted);
  font-size: 13px;
}

/* ---------- 🖨 読み物の A4 印刷（2026-10-24 ユーザー要望：原田英語のクレジット・ウェブサイトリンクつき） ---------- */
.print-only {
  display: none;
}
.print-dlg {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  background: var(--card);
  color: var(--ink);
  max-width: 360px;
  box-shadow: var(--shadow-lg);
}
.print-dlg::backdrop {
  background: rgba(16, 12, 30, 0.45);
}
.print-dlg h2 {
  margin: 0 0 6px;
  font-size: 20px;
}
.print-dlg .chk {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  font-weight: 700;
}
@media print {
  @page {
    size: A4;
    margin: 14mm 15mm 18mm;
    @bottom-center {
      content: '原田英語の多読ベスト ｜ https://www.haradaeigo.com/tadokubest/ ｜ ' counter(page) ' / ' counter(pages);
      font-size: 8pt;
      color: #555;
    }
  }
  body.printing {
    background: #fff !important;
    color: #000 !important;
  }
  body.printing > *:not(:has(.read-wrap)),
  body.printing :has(> .read-wrap) > :not(.read-wrap),
  body.printing .read-wrap > *,
  body.printing .print-dlg {
    display: none !important;
  }
  body.printing .read-wrap > .read-hero,
  body.printing .read-wrap > .text,
  body.printing.pr-gloss .read-wrap > .gloss,
  body.printing.pr-zen .read-wrap > .zenyaku,
  body.printing.pr-quiz .read-wrap > .quiz {
    display: block !important;
  }
  body.printing .read-hero {
    display: block !important;
    margin: 0 0 4mm;
    padding: 0;
    background: none;
    border: 0;
    box-shadow: none;
  }
  body.printing .read-art,
  body.printing .read-head .chips,
  body.printing .read-head .source {
    display: none !important;
  }
  body.printing .read-head h1 {
    font-size: 22pt;
    margin: 0;
    color: #000;
  }
  body.printing .read-head .ja-title {
    margin: 1mm 0;
    font-size: 11pt;
  }
  body.printing .read-head .meta {
    font-size: 9pt;
    margin: 1mm 0 2mm;
    padding: 0;
  }
  body.printing .read-head .summary {
    font-size: 9.5pt;
    border: 1px solid #bbb;
    border-radius: 3mm;
    padding: 2mm 3mm;
    background: none;
  }
  body.printing .text {
    box-shadow: none !important;
    border: 0 !important;
    background: none !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none;
    font-size: 12pt;
    line-height: 1.75;
    color: #000;
  }
  body.printing.pr-big .text {
    font-size: 15pt;
    line-height: 1.9;
  }
  body.printing .text p {
    break-inside: avoid-page;
    orphans: 3;
    widows: 3;
  }
  body.printing .text .s {
    background: none !important;
    color: #000 !important;
  }
  body.printing .text .g {
    border: 0 !important;
    text-decoration: none !important;
  }
  body.printing.pr-gloss .text .g {
    text-decoration: underline dotted #888 !important;
  }
  body.printing.pr-tr .text .tr {
    display: block !important;
    font: 9.5pt/1.6 var(--jp);
    color: #333;
    margin: 0.5mm 0 3mm;
  }
  body.printing .the-end {
    display: none;
  }
  body.printing .gloss {
    border: 1px solid #bbb;
    border-radius: 3mm;
    padding: 2mm 3mm;
    margin: 0 0 4mm;
    font-size: 9pt;
    break-inside: avoid;
    background: none;
  }
  body.printing .gloss summary small {
    display: none;
  }
  body.printing .gloss ul {
    columns: 3;
    column-gap: 6mm;
    margin: 1mm 0 0;
    padding: 0;
  }
  body.printing .zenyaku,
  body.printing .quiz {
    break-before: page;
    border: 0;
    box-shadow: none;
    background: none;
    padding: 0;
  }
  body.printing .zenyaku summary {
    font-weight: 800;
    font-size: 13pt;
    list-style: none;
  }
  body.printing .zen-body p {
    font-size: 10pt;
    line-height: 1.75;
  }
  body.printing .quiz .sub,
  body.printing .quiz .qr,
  body.printing .quiz .qja,
  body.printing .quiz .cj,
  body.printing .quiz .qx {
    display: none;
  }
  body.printing .quiz .qc {
    display: block;
  }
  body.printing .quiz .qc button {
    display: block;
    border: 0;
    background: none;
    padding: 0.5mm 0 0.5mm 6mm;
    font-size: 10.5pt;
    color: #000;
    text-align: left;
  }
  body.printing .quiz .qc button::before {
    content: '□ ';
  }
  body.printing .read-wrap > .print-run,
  body.printing .text::before,
  body.printing .text::after {
    display: none !important;
  }
  body.printing .read-wrap > .print-end {
    display: flex !important;
    gap: 5mm;
    align-items: center;
    margin-top: 6mm;
    padding-top: 3mm;
    border-top: 1px solid #999;
    font: 9pt/1.6 var(--jp);
    break-inside: avoid;
  }
  body.printing .print-qr svg {
    width: 24mm;
    height: 24mm;
    display: block;
  }
  body.printing .print-end p {
    margin: 0;
  }
  body.printing a {
    color: #000;
    text-decoration: none;
  }
}

/* ---------- ✍️ 作家から探す（2026-10-24） ---------- */
.au-link {
  margin: 6px 0 0;
}
.au-link a {
  display: inline-block;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  background: color-mix(in srgb, #5f3dc4 10%, var(--card));
  border: 1px solid color-mix(in srgb, #5f3dc4 30%, var(--line));
  border-radius: 999px;
  padding: 4px 12px;
}
.au-about {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.au-stats {
  list-style: none;
  padding: 0;
  margin: 10px 0 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.au-stats li {
  background: var(--bg2);
  border-radius: 999px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 700;
}
.au-stats b {
  font: 800 16px var(--display);
  color: var(--brand);
}
.au-others .chip {
  text-decoration: none;
  font-family: var(--jp);
  font-weight: 700;
}
.au-others .chip small {
  margin-left: 4px;
  color: var(--muted);
}
.au-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr));
  gap: 14px;
  margin: 18px 0 40px;
}
.au-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.au-card:hover {
  transform: translateY(-3px);
  color: var(--ink);
}
.au-card img,
.au-card .noimg {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.au-t {
  display: block;
  padding: 10px 14px 14px;
}
.au-t b {
  display: block;
  font: 800 17px/1.35 var(--jp);
}
.au-t small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.au-t em {
  font-style: normal;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
}
@media (max-width: 640px) {
  .au-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .au-t b {
    font-size: 14px;
  }
}

/* ---------- ライブラリーの入口（ジャンル → レベル → 全部から） 2026-10-24「スマホの読むが見にくい」 ---------- */
.phero.slim {
  min-height: 0;
}
.phero.slim .phero-in {
  padding-top: 28px;
  padding-bottom: 22px;
}
.hubnav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 0;
}
.hubnav a {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 10px 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.hubnav span {
  font-size: 22px;
  line-height: 1.2;
}
.hubnav + .resume {
  margin: 12px 0 0;
  width: 100%;
}
.hub {
  scroll-margin-top: 70px;
}
.hub-h {
  font-size: 16px;
  margin: 22px 0 10px;
  color: var(--ink2);
}
.gtiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: 12px;
}
.gtile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.gtile:hover {
  transform: translateY(-3px);
  color: var(--ink);
}
.gtile-img {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--bg2);
  overflow: hidden;
  border-bottom: 4px solid var(--c);
}
.gtile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gtile-img i {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-style: normal;
  font-size: 20px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--card);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.gtile-in {
  display: grid;
  gap: 2px;
  padding: 9px 12px 11px;
}
.gtile-in b {
  font-size: 15px;
  line-height: 1.35;
}
.gtile-in small {
  color: var(--c);
  font-weight: 800;
  font-size: 12px;
}
.hub-more {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.hub-more a {
  text-align: center;
  padding: 12px 8px;
  border: 1.5px solid var(--line);
  background: var(--card);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 14px;
}
.lvrows {
  display: grid;
  gap: 8px;
}
.lvrow {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--c);
  border-radius: 14px;
  text-decoration: none;
  color: var(--ink);
}
.lvrow:hover {
  color: var(--ink);
  border-color: var(--c);
}
.lvrow > b {
  font: 800 20px/1 var(--display);
  color: var(--c);
  min-width: 34px;
}
.lvrow > span {
  display: grid;
  flex: 1;
  min-width: 0;
}
.lvrow strong {
  font: 700 16px/1.3 var(--display);
}
.lvrow strong small {
  font: 700 12px var(--jp);
  color: var(--muted);
  margin-left: 6px;
}
.lvrow > span > small {
  font-size: 12px;
  color: var(--muted);
}
.lvrow em {
  font-style: normal;
  font-weight: 800;
  color: var(--c);
  white-space: nowrap;
}
.all-h {
  margin-top: 40px;
  scroll-margin-top: 70px;
}
.quick {
  margin: 18px 0 4px;
}
.quick p {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
}
.quick div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.quick button {
  border: 1.5px solid color-mix(in srgb, var(--c, var(--brand)) 40%, transparent);
  background: var(--card);
  color: var(--c, var(--brand));
  border-radius: 999px;
  padding: 6px 12px;
  font: 800 13px var(--jp);
}
.quick button small {
  margin-left: 5px;
  font-size: 11px;
  opacity: 0.75;
}
.quick button[aria-pressed='true'] {
  background: var(--c, var(--brand));
  border-color: var(--c, var(--brand));
  color: #fff;
}
@media (max-width: 760px) {
  .gtiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gtile-in {
    padding: 7px 10px 9px;
  }
  .gtile-in b {
    font-size: 13.5px;
  }
  .gtile-img {
    aspect-ratio: 2/1;
  }
  .gtile-img i {
    font-size: 16px;
    width: 28px;
    height: 28px;
  }
  .phero.slim h1 {
    font-size: 26px;
  }
  .phero.slim p {
    font-size: 14px;
  }
  .hub.sec {
    margin: 28px 0;
  }
}

/* ---------- 童話の本棚（/genre/fairy/・/fairy/<key>/）2026-10-25 ---------- */
.coll-chips .chip {
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 13px;
}
.coll-chips .chip small {
  color: var(--muted, #868e96);
  font-size: 12px;
}
.coll-chips .chip[aria-current='page'] {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}
.coll-chips .chip[aria-current='page'] small {
  color: inherit;
}
.shelf.coll .shelf-h h2 small {
  font-size: 0.55em;
  font-weight: 600;
  opacity: 0.75;
  margin-left: 6px;
}
@media (max-width: 640px) {
  .shelf.coll .shelf-h h2 small {
    display: block;
    margin: 4px 0 0;
  }
}
.coll {
  scroll-margin-top: 80px;
}
.search-res p.small {
  padding: 4px 8px;
  margin: 0 0 4px;
}
.search-res a.s-more {
  display: inline;
  padding: 0;
  color: var(--brand);
  text-decoration: underline;
  font-weight: 700;
}

/* 日本語の原文ページ（青空文庫） */
.gb-head h1 {
  font-size: 28px;
  margin: 8px 0;
}
.gb-head h1 small {
  display: block;
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
}
.genbun {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
  margin: 20px 0;
  font-family: 'Hiragino Mincho ProN', 'Yu Mincho', 'Noto Serif JP', serif;
  font-size: 17px;
  line-height: 2;
}
.genbun p {
  margin: 0 0 0.4em;
}
.genbun h2 {
  font-size: 19px;
  margin: 1.4em 0 0.6em;
}
.genbun rt {
  font-size: 0.5em;
}
.gb-biblio {
  font-size: 13px;
  color: var(--muted);
  margin: 24px 0;
}
.gb-biblio h2 {
  font-size: 16px;
}
@media (max-width: 600px) {
  .genbun {
    padding: 14px 14px;
    font-size: 16px;
  }
}
/* 更新履歴（/news/） */
.news-log {
  max-width: 760px;
  margin: 0 auto 60px;
}
.news-day h2 {
  font: 900 18px var(--round);
  color: var(--brand);
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
}
.news-day ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.news-day li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.news-day .ni {
  flex: none;
  font-size: 26px;
  line-height: 1.2;
}
.news-day li b {
  font-size: 16px;
}
.news-day li p {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--ink2);
}

/* ---------- このサイトについて（/about/）：タドクロウが案内する。2026-10-25 ---------- */
.ab-hero {
  min-height: 460px;
}
.ab-hero-owl {
  position: absolute;
  right: max(3vw, 12px);
  bottom: 36px;
  width: clamp(110px, 16vw, 210px);
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.35));
  pointer-events: none;
}
.ab {
  max-width: 1040px;
}
.ab-hello {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
  margin: 34px 0 10px;
}
.ab-owl-btn {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  width: clamp(120px, 20vw, 190px);
  -webkit-tap-highlight-color: transparent;
}
.ab-owl-btn img,
.ab-prof-owl img,
.ab-mini-owl,
.ab-step-owl {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 8px 14px rgba(40, 24, 80, 0.22));
}
.ab-owl-name {
  font: 800 18px var(--round);
  margin: 0 0 6px;
  color: var(--brand);
}
.ab-owl-name small {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
}
.ab-bubble {
  position: relative;
  background: var(--card);
  border: 2px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-radius: 20px;
  padding: 14px 18px;
  margin: 0 0 10px;
  box-shadow: var(--shadow);
  line-height: 1.8;
}
.ab-bubble::before {
  content: '';
  position: absolute;
  left: -11px;
  top: 26px;
  width: 18px;
  height: 18px;
  background: var(--card);
  border-left: 2px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  border-bottom: 2px solid color-mix(in srgb, var(--brand) 35%, var(--line));
  transform: rotate(45deg);
}
.ab-prof {
  display: grid;
  grid-template-columns: minmax(150px, 260px) 1fr;
  gap: 24px;
  align-items: center;
  background: linear-gradient(135deg, color-mix(in srgb, #f08c00 14%, var(--card)), color-mix(in srgb, #4b2fb8 12%, var(--card)));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  margin: 30px 0;
  box-shadow: var(--shadow);
}
.ab-prof h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin: 0 0 12px;
}
.ab-prof dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  margin: 0 0 10px;
}
.ab-prof dt {
  font-weight: 800;
  color: var(--brand);
  white-space: nowrap;
}
.ab-prof dd {
  margin: 0;
}
.ab-feat {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(270px, 100%), 1fr));
  gap: 12px;
  margin: 16px 0 0;
}
.ab-feat li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 4px;
  align-content: start;
}
.ab-feat li > span {
  font-size: 30px;
}
.ab-feat b {
  font: 800 17px var(--round);
}
.ab-feat small {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.7;
}
.ab-nums {
  background: var(--grad);
  color: #fff;
  border-radius: 28px;
  padding: 26px 20px 18px;
  text-align: center;
  margin: 50px 0;
  box-shadow: var(--shadow-lg);
}
.ab-nums h2 {
  margin: 0 0 14px;
  font-size: clamp(20px, 3vw, 26px);
}
.ab-nums ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}
.ab-nums li {
  background: rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  padding: 12px 8px;
  min-width: 0;
  container-type: inline-size;
}
.ab-nums b {
  display: block;
  font: 800 22px / 1.1 var(--display);
  font-size: min(32px, 16cqi);
  white-space: nowrap;
}
.ab-nums b small {
  font: 700 min(13px, 7cqi) var(--jp);
  margin-left: 2px;
}
.ab-nums span {
  font-size: 13px;
  font-weight: 700;
  opacity: 0.92;
}
.ab-nums p {
  font-size: 13px;
  margin: 12px 0 0;
  opacity: 0.9;
}
.ab-fig {
  margin: 0 0 18px;
}
.ab-fig img,
.ab-hara-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
  box-shadow: var(--shadow);
}
.ab-intro {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0 0 16px;
}
.ab-card,
.ab-msg,
.ab-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin: 0 0 16px;
}
.ab-role {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand);
  margin: 0;
}
.ab-name {
  font: 800 clamp(28px, 5vw, 40px) / 1.2 var(--round);
  margin: 4px 0 10px;
}
.ab-name small {
  font-size: 14px;
  color: var(--muted);
  margin-left: 10px;
  letter-spacing: 0.1em;
}
.ab-road {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
}
.ab-road li {
  white-space: nowrap;
  background: var(--bg2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
}
.ab-road li:not(:last-child)::after {
  content: '→';
  margin: 0 -2px 0 12px;
  color: var(--muted);
}
.ab-road li.now {
  background: var(--brand);
  color: #fff;
}
.ab-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 14px;
}
.ab-badges span {
  border: 1.5px solid color-mix(in srgb, var(--gold) 55%, transparent);
  background: color-mix(in srgb, var(--gold) 10%, var(--card));
  border-radius: 12px;
  padding: 6px 12px;
  font-weight: 800;
  font-size: 14px;
}
.ab-badges em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}
.ab-links,
.ab-go {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}
.btn.ab-x {
  background: #111;
  color: #fff;
  border-color: #111;
}
.btn.ab-x span {
  font-size: 1.15em;
  margin-right: 2px;
}
.ab-msg h3 {
  font-size: clamp(19px, 3vw, 24px);
  margin: 0 0 10px;
}
.ab-msg p {
  line-height: 1.95;
}
.ab-sign {
  text-align: right;
  font: 800 18px var(--round);
  margin: 0;
}
.ab-steps-say {
  color: var(--muted);
  font-size: 14px;
}
.ab-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  counter-reset: abs;
}
.ab-steps li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow);
  counter-increment: abs;
}
.ab-steps li::before {
  content: counter(abs);
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font: 800 15px/30px var(--display);
  text-align: center;
}
.ab-step-owl {
  width: 88px;
  margin: 0 auto 6px;
}
.ab-steps b {
  display: block;
  font: 800 16px var(--round);
  margin: 0 0 6px;
}
.ab-steps span {
  font-size: 14px;
  color: var(--ink2);
  line-height: 1.75;
}
.ab-credit {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
  gap: 12px;
}
.ab-credit > div {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}
.ab-credit h3 {
  font-size: 16px;
  margin: 0 0 6px;
}
.ab-credit p {
  font-size: 14px;
  margin: 0;
  line-height: 1.75;
}
.ab-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 14px;
}
.ab-box h2 {
  font-size: 19px;
  margin: 0 0 8px;
}
.ab-hara {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 30px;
  overflow: hidden;
  margin: 60px 0 30px;
  box-shadow: var(--shadow-lg);
}
.ab-hara-img {
  border-radius: 0;
  box-shadow: none;
  aspect-ratio: 16 / 7;
  object-fit: cover;
}
.ab-hara-owl {
  position: absolute;
  top: 10px;
  left: 14px;
  width: clamp(80px, 14vw, 150px);
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.3));
  pointer-events: none;
}
.ab-hara-in {
  padding: 22px 24px 24px;
}
.ab-hara h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  margin: 0 0 6px;
}
.ab-catch {
  font: 800 clamp(26px, 5vw, 44px) / 1.2 var(--round);
  margin: 4px 0 10px;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ab-sites {
  list-style: none;
  padding: 0;
  margin: 16px 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  gap: 10px;
}
.ab-sites a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 10px;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 16px;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.ab-sites a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.ab-sites span {
  grid-row: span 2;
  font-size: 26px;
}
.ab-sites b {
  font-size: 15px;
}
.ab-sites small {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 640px) {
  .ab-hero {
    min-height: 420px;
  }
  .ab-hero-owl {
    bottom: auto;
    top: 14px;
    width: 92px;
  }
  .ab-hello {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .ab-hello .ab-bubble::before {
    left: 40px;
    top: -11px;
    transform: rotate(135deg);
  }
  .ab-prof {
    grid-template-columns: 1fr;
    padding: 20px 18px;
  }
  .ab-prof-owl {
    width: 170px;
    margin: 0 auto;
  }
  .ab-prof dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .ab-prof dd {
    margin-bottom: 6px;
  }
  .ab-card,
  .ab-msg,
  .ab-box {
    padding: 20px 18px;
  }
  .ab-hara-in {
    padding: 18px 16px 20px;
  }
  .ab-go .btn {
    width: 100%;
    text-align: center;
  }
}

/* 読書ラウンジ（/lounge/）の「ラウンジで読む」：iframe の中ではサイトの枠をかくして、本文だけにする（2026-10-25） */
.framed .hd,
.framed .ft,
.framed .tabbar,
.framed .totop,
.framed .sisters,
.framed .rt-lounge,
.framed .owl-pal,
.framed .owl-peek {
  display: none !important;
}
.framed body {
  padding-bottom: 0;
}
.framed .player {
  top: 0;
}
.lounge-ad {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 0;
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(120deg, #1b1410, #3a2512);
  color: #f6ecdf;
  text-decoration: none;
  box-shadow: var(--shadow);
}
.lounge-ad img {
  width: 180px;
  height: auto;
  border-radius: 14px;
  flex: 0 0 auto;
}
.lounge-ad span {
  font-size: 14px;
  line-height: 1.7;
  color: #d9c8b4;
}
.lounge-ad b {
  display: block;
  font: 900 20px var(--round);
  color: #fff;
}
.lounge-ad small {
  display: inline-block;
  background: #ff8a3d;
  color: #1b0f08;
  font-weight: 900;
  border-radius: 6px;
  padding: 0 6px;
  margin-bottom: 4px;
}
.lounge-ad:hover {
  color: #fff;
  transform: translateY(-2px);
}
@media (max-width: 600px) {
  .lounge-ad {
    align-items: flex-start;
  }
  .lounge-ad img {
    width: 110px;
  }
  .lounge-ad span {
    font-size: 13px;
  }
}

/* 自己啓発の名著の本棚：カードに「『原因と結果の法則』より」（2026-10-25） */
.card-body .from {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  color: #9a6b00;
  line-height: 1.4;
}
:root[data-theme='dark'] .card-body .from {
  color: #ffc94d;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme='auto'] .card-body .from {
    color: #ffc94d;
  }
}
