/* ============================================================
   マナビヤ — デザイントークン
   紙白 #FAF9F5 / インク紺 #1C2B4B / マーカー黄 #FFE34D
   鉛筆グレー #71767F / 赤ペン #D6453D / 淡青 #E9EEF6
   見出し: 明朝 / 本文: ゴシック
   シグネチャ: 蛍光マーカーのハイライト・栞型の視聴進捗
   ============================================================ */
:root {
  --paper: #FAF9F5;
  --ink: #1C2B4B;
  --marker: #FFE34D;
  --pencil: #71767F;
  --redpen: #D6453D;
  --card: #FFFFFF;
  --wash: #E9EEF6;
  --paper2: #F3F1EA;
  --line: #E3E0D8;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", serif;
  --sans: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  --radius: 10px;
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.85;
}
a { color: var(--ink); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--marker); outline-offset: 2px;
}
img { max-width: 100%; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---- 見出し ---- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.45; letter-spacing: .02em; }
h1 { font-size: clamp(28px, 4.6vw, 44px); margin: 0 0 14px; }
h2 { font-size: clamp(21px, 3vw, 28px); margin: 42px 0 14px; }
h3 { font-size: 17.5px; margin: 22px 0 8px; }
.eyebrow {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .18em;
  color: var(--pencil); text-transform: uppercase; margin-bottom: 8px;
}

/* シグネチャ: 蛍光マーカー
   マーカー帯の位置は行送り(line-height)基準。見出し(1.45)と本文(1.85)で
   文字の下端位置が変わるため、文脈ごとに帯の範囲を分けて字にかぶらないようにする。 */
/* 和文の字面は em ボックスのほぼ全体を使うため、帯の下端は行送りの
   「(1 + 行送り) / 2 / 行送り」あたり(=見出し 1.45 で約84%、本文 1.85 で約77%)に合わせる */
.hl {
  background: linear-gradient(transparent 61%, var(--marker) 61%, var(--marker) 84%, transparent 84%);
  padding: 0 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.hl-soft { background: linear-gradient(transparent 63%, #FFF3A8 63%, #FFF3A8 85%, transparent 85%); }
p .hl, li .hl, .lead .hl, td .hl, summary .hl {
  background: linear-gradient(transparent 56%, var(--marker) 56%, var(--marker) 77%, transparent 77%);
}
p .hl-soft, li .hl-soft, .lead .hl-soft {
  background: linear-gradient(transparent 58%, #FFF3A8 58%, #FFF3A8 78%, transparent 78%);
}

/* ---- ヘッダー ---- */
header.site {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 249, 245, .94); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
header.site .bar { display: flex; align-items: center; gap: 22px; height: 60px; }
.logo { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: .06em; }
.logo small { font-family: var(--sans); font-size: 10.5px; letter-spacing: .22em; color: var(--pencil); display: block; line-height: 1; margin-top: 2px; }
nav.main { display: flex; gap: 18px; margin-left: auto; align-items: center; }
nav.main a { font-size: 14px; color: #3A4356; padding: 6px 2px; border-bottom: 2px solid transparent; }
nav.main a:hover, nav.main a[aria-current="page"] { border-bottom-color: var(--marker); color: var(--ink); }
.nav-toggle { display: none; }

/* ---- ボタン ---- */
.btn {
  display: inline-block; font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  padding: 11px 22px; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: #fff; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(28,43,75,.18); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.marker { background: var(--marker); border-color: var(--marker); color: var(--ink); }
.btn.small { padding: 7px 14px; font-size: 13px; }
.btn.danger { background: var(--redpen); border-color: var(--redpen); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- ヒーロー(LP) ---- */
.hero { padding: 72px 0 56px; position: relative; overflow: hidden; }
.hero .grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero p.lead { font-size: 16.5px; color: #3A4356; margin: 18px 0 26px; }
.hero .note-lines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(transparent 0 35px, var(--line) 35px 36px);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.hero-stack { display: grid; gap: 14px; position: relative; }
.hero-stack .vcard:nth-child(2) { transform: rotate(1.2deg) translateX(14px); }
.hero-stack .vcard:nth-child(3) { transform: rotate(-1.4deg) translateX(-8px); }

/* ---- 動画カード ---- */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; margin: 22px 0; }
.vcard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; position: relative;
  transition: transform .14s ease, box-shadow .14s ease;
}
.vcard:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(28,43,75,.12); }
.thumb {
  aspect-ratio: 16/9; display: flex; align-items: flex-end; padding: 12px;
  color: #fff; font-family: var(--serif); font-size: 15px; line-height: 1.5;
  position: relative; text-shadow: 0 1px 6px rgba(0,0,0,.4);
}
.thumb > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.thumb > :not(img) { z-index: 1; }
/* サムネイル未設定時の装飾プレート(タイトルはカード本文側にのみ出す) */
.thumb.cplate { align-items: center; justify-content: center; }
.thumb .cplate-mark {
  font-family: var(--serif); font-size: 22px; letter-spacing: .2em;
  color: rgba(255, 255, 255, .45); text-shadow: none; text-align: center; padding: 0 12px;
}
.thumb .dur {
  position: absolute; right: 8px; bottom: 8px; font-family: var(--sans); font-size: 11.5px;
  background: rgba(0,0,0,.65); padding: 2px 7px; border-radius: 4px; text-shadow: none;
}
.thumb .lock {
  position: absolute; top: 8px; left: 8px; font-family: var(--sans); font-size: 11px; font-weight: 700;
  background: var(--marker); color: var(--ink); padding: 2px 8px; border-radius: 4px; text-shadow: none;
}
.vbody { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.vbody .cat { font-size: 11.5px; letter-spacing: .12em; color: var(--pencil); }
.vbody .title { font-weight: 600; font-size: 14.5px; line-height: 1.6; }
.vbody .meta { font-size: 12px; color: var(--pencil); margin-top: auto; }

/* シグネチャ: 栞型の視聴進捗 */
.bookmark {
  position: absolute; top: -1px; right: 16px; width: 14px; background: var(--redpen);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 7px), 0 100%);
}

/* ---- セクション ---- */
section.band { padding: 52px 0; }
section.band.alt { background: var(--wash); }
.feature3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 26px; }
.feature3 .f {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.feature3 .f .fnum { font-family: var(--serif); font-size: 13px; color: var(--redpen); letter-spacing: .1em; }

/* ---- 料金 ---- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; margin-top: 26px; }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.plan.best { border-color: var(--ink); }
.plan .badge {
  position: absolute; top: -12px; left: 22px; background: var(--marker); color: var(--ink);
  font-size: 12px; font-weight: 700; padding: 3px 12px; border-radius: 999px;
}
.plan .price { font-family: var(--serif); font-size: 36px; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; color: var(--pencil); font-family: var(--sans); }
.plan ul { padding-left: 20px; margin: 14px 0 20px; color: #3A4356; }

/* ---- フォーム ---- */
.formcard { max-width: 440px; margin: 56px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.formcard h1 { font-size: 24px; }
.field { margin: 16px 0; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 15px; font-family: var(--sans); background: var(--paper);
}
.formnote { font-size: 12.5px; color: var(--pencil); }
.alert { background: #FFF6E5; border: 1px solid #F1DBA6; border-radius: 8px; padding: 10px 14px; font-size: 13px; margin: 14px 0; }

/* ---- 再生ページ ---- */
.watch-grid { display: grid; grid-template-columns: 1fr 320px; gap: 30px; padding: 34px 0 60px; }
.player {
  aspect-ratio: 16/9; border-radius: var(--radius); position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.player .playbtn {
  width: 70px; height: 70px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--ink);
}
.player .demo-note { position: absolute; bottom: 12px; left: 14px; font-size: 12px; background: rgba(0,0,0,.6); padding: 3px 10px; border-radius: 4px; }
.chapters { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.chapters .ch { display: flex; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; cursor: pointer; }
.chapters .ch:last-child { border-bottom: none; }
.chapters .ch:hover { background: var(--wash); }
.chapters .ch time { color: var(--redpen); font-family: var(--serif); min-width: 44px; }
.sidebox h3 { margin-top: 0; }
.relitem { display: flex; gap: 10px; margin-bottom: 14px; }
.relitem .mini { width: 120px; flex: none; aspect-ratio: 16/9; border-radius: 6px; }
.relitem .t { font-size: 13px; font-weight: 600; line-height: 1.55; }
.relitem .m { font-size: 11.5px; color: var(--pencil); }

/* ---- テーブル(管理・マイページ) ---- */
table.list { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 13.5px; }
table.list th, table.list td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
table.list th { background: var(--wash); font-size: 12px; letter-spacing: .08em; }
table.list tr:last-child td { border-bottom: none; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--wash); }
.pill.on { background: var(--marker); }
.pill.off { background: #F2D7D5; color: var(--redpen); }

/* ---- タブ・フィルタ ---- */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin: 18px 0; align-items: center; }
.chip {
  border: 1px solid var(--line); background: var(--card); border-radius: 999px;
  padding: 6px 16px; font-size: 13px; cursor: pointer; font-family: var(--sans);
}
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.searchbar { flex: 1; min-width: 200px; display: flex; }
.searchbar input { flex: 1; padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; background: var(--card); }

/* ---- FAQ ---- */
details.faq { border-bottom: 1px solid var(--line); padding: 14px 4px; }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
details.faq summary::after { content: "+"; font-family: var(--serif); color: var(--redpen); }
details.faq[open] summary::after { content: "−"; }
details.faq p { color: #3A4356; margin: 10px 0 4px; font-size: 14px; }

/* ---- フッター ---- */
footer.site { border-top: 1px solid var(--line); margin-top: 70px; padding: 36px 0 46px; font-size: 13px; color: var(--pencil); }
footer.site .cols { display: flex; gap: 40px; flex-wrap: wrap; justify-content: space-between; }
footer.site a { color: var(--pencil); margin-right: 18px; }
footer.site a:hover { color: var(--ink); }

/* ---- 法務ページ ---- */
.legal { max-width: 760px; margin: 46px auto 70px; }
.legal h2 { font-size: 18px; margin-top: 34px; }
.legal p, .legal li { font-size: 14px; color: #3A4356; }

/* ---- 空状態 ---- */
.empty { text-align: center; padding: 56px 20px; color: var(--pencil); border: 1.5px dashed var(--line); border-radius: var(--radius); }
.empty strong { display: block; font-family: var(--serif); font-size: 17px; color: var(--ink); margin-bottom: 6px; }
.empty .btn { margin-top: 16px; }

/* ---- 共通カードリスト(関連コンテンツ・テーマ・404・料金レビュー) ----
   以前は topic.html だけがローカルに定義していたため、記事下の「次に学ぶ」・
   404・料金ページのレビューが素のテキストとして並んでいた。ここに集約する。 */
.topic-lead { font-size: 16px; line-height: 1.9; max-width: 760px; color: #3A4356; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.topic-card {
  display: flex; flex-direction: column; gap: 8px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  color: var(--ink); text-decoration: none;
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
a.topic-card:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(28,43,75,.10); border-color: #C9D2E2; }
.topic-card strong { font-family: var(--serif); font-size: 15px; line-height: 1.65; }
.topic-card span { font-size: 13px; line-height: 1.65; color: #3A4356; }
.topic-card p { margin: 0; font-size: 13.5px; line-height: 1.8; color: #3A4356; }
.topic-faq { padding: 24px; background: var(--paper2); border-radius: var(--radius); }
.topic-faq h3 { font-size: 17px; }

/* 記事下「次に学ぶ」 */
.related-content { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); }
.related-content h2 { margin-top: 0; }
.related-content section { margin-top: 24px; }
.related-content h3 {
  font-family: var(--sans); font-size: 12.5px; letter-spacing: .14em; color: var(--pencil);
  text-transform: uppercase; margin: 0 0 12px;
}
.article-byline { margin: 6px 0 18px; }

/* ---- レスポンシブ ---- */
@media (max-width: 860px) {
  .hero .grid, .watch-grid { grid-template-columns: 1fr; }
  .feature3 { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  nav.main { display: none; }
  nav.main.open { display: flex; flex-direction: column; position: absolute; top: 60px; right: 0; left: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 20px; }
  .nav-toggle { display: block; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 14px; cursor: pointer; }
}

/* ---- Udemy参考機能の追加スタイル ---- */
.stars { color: #E0A02E; font-size: 13px; letter-spacing: 1px; }
.stars b { color: var(--ink); font-family: var(--serif); }
.stars.none { color: var(--pencil); letter-spacing: 0; }
.cprog { height: 6px; background: var(--wash); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.cprog-bar { height: 100%; background: var(--marker); border-right: 2px solid var(--ink); }
.curriculum { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); }
.curriculum .sec { background: var(--wash); padding: 10px 16px; font-weight: 700; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.curriculum .lec { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.curriculum .lec:last-child { border-bottom: none; }
.curriculum .lec:hover { background: #FFFBEA; }
.curriculum .lec .done { color: var(--redpen); font-weight: 700; min-width: 18px; }
.curriculum .lec .len { margin-left: auto; color: var(--pencil); font-size: 12px; }
.tabbar { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin: 26px 0 18px; }
.tabbar button { background: none; border: none; padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: var(--sans); color: var(--pencil); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabbar button.active { color: var(--ink); border-bottom-color: var(--marker); }
.qa-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 16px 18px; margin-bottom: 14px; }
.qa-item .who { font-size: 12px; color: var(--pencil); margin-bottom: 4px; }
.qa-item .ans { margin-top: 12px; padding: 10px 14px; background: var(--wash); border-radius: 8px; font-size: 13.5px; }
.qa-item .ans .who .official { background: var(--marker); padding: 1px 8px; border-radius: 999px; color: var(--ink); font-weight: 700; }
.review-item { border-bottom: 1px solid var(--line); padding: 14px 4px; }
.review-item .who { font-size: 12px; color: var(--pencil); }
.rating-input { display: flex; gap: 4px; font-size: 26px; cursor: pointer; user-select: none; }
.rating-input span { color: #D8D4C8; }
.rating-input span.on { color: #E0A02E; }
textarea.txt { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; font-family: var(--sans); font-size: 14px; background: var(--paper); }
.cert { max-width: 720px; margin: 50px auto; background: var(--card); border: 3px double var(--ink); padding: 56px 48px; text-align: center; }
.cert .no { font-size: 12px; color: var(--pencil); letter-spacing: .1em; }
.cert h1 { font-size: 34px; margin: 18px 0 6px; }
.cert .name { font-family: var(--serif); font-size: 26px; margin: 22px 0 8px; border-bottom: 1px solid var(--ink); display: inline-block; padding: 0 30px 6px; }
@media print { header.site, footer.site, .noprint { display: none !important; } body { background: #fff; } .cert { border-color: #000; margin: 0 auto; } }
.sortsel { border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-family: var(--sans); background: var(--card); }

/* ===== 記事メディア型レイアウト =====
   サムネイル画像がない記事は、以前カラープレートにタイトルを描き、本文側にも
   同じタイトルを出していた(=1枚のカードにタイトルが2回)。プレートは装飾に徹し、
   タイトルは本文側に1回だけ置く。高さも揃うので行が崩れない。 */
.acard-m .thumb.aplate {
  align-items: center; justify-content: center; text-align: center;
  overflow: hidden; text-shadow: none;
}
.aplate .aplate-mark {
  font-family: var(--serif); font-size: 40px; line-height: 1;
  color: rgba(28, 43, 75, .16); user-select: none;
}
.acard-m.big .aplate .aplate-mark { font-size: 60px; }
.aplate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 2px, transparent 2px 12px);
  opacity: .5;
}
.acard-m .vbody { gap: 7px; }
.acard-m .vbody .title {
  font-family: var(--serif); font-size: 15px; line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.acard-m.big .vbody .title { font-size: 19px; -webkit-line-clamp: 4; }
.vbody .lead {
  font-size: 12.5px; line-height: 1.75; color: var(--pencil);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.chip.mini { padding: 2px 9px; font-size: 11px; margin-right: 4px; }
.mgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.mgrid > .vcard { height: 100%; }
.mgrid.two { grid-template-columns: repeat(2, 1fr); }
/* ヒーローは「大1枚 + 右に小2枚」。3列に並べると大小でカード下端が揃わず、
   右側だけ余白が大きく空いて見えるため、右列を2段に積んで高さを合わせる。 */
.mgrid.hero1 { grid-template-columns: 1.45fr 1fr; grid-auto-rows: 1fr; }
.mgrid.hero1 > .vcard.big { grid-row: span 2; }
.mgrid.hero1 > .vcard:not(.big) .thumb { aspect-ratio: 2 / 1; }
@media (max-width: 860px) {
  .mgrid, .mgrid.two, .mgrid.hero1 { grid-template-columns: 1fr; }
  .mgrid.hero1 { grid-auto-rows: auto; }
  .mgrid.hero1 > .vcard.big { grid-row: auto; }
  .mgrid.hero1 > .vcard:not(.big) .thumb { aspect-ratio: 16 / 9; }
}
@media (max-width: 640px) { .mgrid { gap: 14px; } }

/* ===== 価値訴求(LP) ===== */
.valueprops { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 26px; }
.valueprop {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 26px;
}
.valueprop .vp-num {
  font-family: var(--serif); font-size: 12px; letter-spacing: .16em; color: var(--redpen);
  display: block; margin-bottom: 10px;
}
.valueprop h3 { font-size: 17px; margin: 0 0 8px; }
.valueprop p { margin: 0; font-size: 13.5px; line-height: 1.85; color: #3A4356; }
@media (max-width: 860px) { .valueprops { grid-template-columns: 1fr; } }

/* コース詳細の未ログイン向けCTA */
.course-cta {
  margin: 40px 0 10px; padding: 30px 26px; text-align: center;
  background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius);
}

/* ===== 安心材料の行 ===== */
.trustrow {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center;
  margin: 20px 0 0; padding: 0; list-style: none;
}
.trustrow li { font-size: 13px; color: #3A4356; display: flex; align-items: center; gap: 7px; }
.trustrow li::before {
  content: "✓"; font-weight: 700; color: var(--ink);
  background: var(--marker); border-radius: 999px; width: 18px; height: 18px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 11px; flex: none;
}

/* ===== スマホ固定CTA =====
   スマホではヘッダーのCTAが上に流れてしまうため、常時見える申込導線を下部に置く。 */
.sticky-cta { display: none; }
@media (max-width: 860px) {
  .sticky-cta {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(250, 249, 245, .97); border-top: 1px solid var(--line);
    box-shadow: 0 -4px 16px rgba(28, 43, 75, .08);
  }
  .sticky-cta .sc-text { font-size: 12px; line-height: 1.5; color: var(--pencil); flex: 1; min-width: 0; }
  .sticky-cta .sc-text b { display: block; font-size: 13.5px; color: var(--ink); }
  .sticky-cta .btn { flex: none; padding: 10px 18px; }
  body.has-sticky-cta { padding-bottom: 76px; }
}
@media print { .sticky-cta { display: none !important; } }
.msec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.msec-desc { color: var(--pencil); font-size: 13.5px; margin: 2px 0 18px; }
.mbanner { display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--ink); border-radius: var(--radius); padding: 26px 30px; }
.mbanner h3 { font-family: var(--serif); font-size: 21px; margin: 0 0 6px; color: #fff; }
.mbanner p { margin: 0; font-size: 13.5px; color: #D7DEEB; }
@media (max-width: 720px) { .mbanner { flex-direction: column; text-align: center; } }
/* 2カラムに並べるバナーは横幅が足りず見出しが不自然に折れるため、縦積みにする */
.mgrid.two .mbanner { flex-direction: column; align-items: flex-start; gap: 14px; }
.mgrid.two .mbanner > div { flex: 1; }
.mgrid.two .mbanner h3 { font-size: 19px; }
.article-eyecatch { width: 100%; aspect-ratio: 1.91/1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 18px; }
/* アクセス解析は利用者が同意するまで読み込まない */
.analytics-consent{position:fixed;z-index:1000;left:16px;right:16px;bottom:16px;max-width:760px;margin:auto;padding:16px 18px;background:#fff;color:#1c2b4b;border:1px solid #d8dbe3;border-radius:12px;box-shadow:0 8px 30px rgba(16,26,51,.2);display:flex;gap:18px;align-items:center;justify-content:space-between}
.analytics-consent p{margin:0;line-height:1.7;font-size:14px}.analytics-consent div{display:flex;gap:8px;flex:none}.analytics-consent button{padding:9px 14px;border:1px solid #aeb4c1;border-radius:8px;background:#fff;cursor:pointer}.analytics-consent button.primary{background:#1c2b4b;color:#fff;border-color:#1c2b4b}
@media(max-width:600px){.analytics-consent{display:block}.analytics-consent div{margin-top:12px;justify-content:flex-end}}

/* ===== トップページ: 3テーマのコンテンツライブラリー ===== */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.library-home { overflow: hidden; }
.library-hero {
  padding: 38px 0 30px;
  background:
    radial-gradient(circle at 84% 15%, rgba(255,227,77,.32), transparent 24%),
    linear-gradient(180deg, #fff 0%, var(--paper) 100%);
  border-bottom: 1px solid var(--line);
}
.library-hero-copy { max-width: 780px; }
.library-hero-copy h1 { font-size: clamp(29px, 4.4vw, 44px); }
.library-hero-copy > p { max-width: 680px; margin: 12px 0 24px; color: #3A4356; font-size: 16px; }
.library-hero-copy .access-note { margin: 10px 0 0; font-size: 12px; color: #526071; }
.access-note span { display: inline-block; margin-right: 6px; padding: 2px 8px; border-radius: 999px; background: var(--marker); color: var(--ink); font-weight: 700; }
.library-search {
  width: min(100%, 650px); display: flex; padding: 5px; background: #fff;
  border: 1.5px solid var(--ink); border-radius: 10px; box-shadow: 0 8px 22px rgba(28,43,75,.08);
}
.library-search input {
  flex: 1; min-width: 0; padding: 10px 14px; border: 0; outline: 0;
  background: transparent; color: var(--ink); font: inherit;
}
.library-search button {
  flex: none; border: 0; border-radius: 7px; padding: 9px 24px;
  background: var(--ink); color: #fff; font: 600 14px var(--sans); cursor: pointer;
}
.theme-jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 28px; }
.theme-jump-card {
  min-height: 142px; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 20px; border-radius: 12px; color: #fff; position: relative; overflow: hidden;
  box-shadow: 0 8px 20px rgba(28,43,75,.1); transition: transform .15s ease, box-shadow .15s ease;
}
.theme-jump-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(28,43,75,.17); }
.theme-jump-card::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 2px, transparent 2px 14px);
}
.theme-jump-card.iq { background: linear-gradient(135deg, #5571B7, #233866); }
.theme-jump-card.child { background: linear-gradient(135deg, #E29759, #9C4F2D); }
.theme-jump-card.adult { background: linear-gradient(135deg, #4B9878, #1F5643); }
.theme-jump-card > * { position: relative; z-index: 1; }
.theme-jump-card span { position: absolute; top: 14px; right: 17px; font-family: var(--serif); opacity: .65; }
.theme-jump-card strong { font: 600 18px/1.5 var(--serif); }
.theme-jump-card small { opacity: .82; font-size: 12px; }
.theme-jump-card em { margin-top: 12px; font: 700 11px var(--sans); font-style: normal; opacity: .9; }
.editorial-feature { padding: 30px 0 50px; background: #fff; border-bottom: 1px solid var(--line); }
.feature-strip-head { display: flex; align-items: center; gap: 12px; margin-bottom: 15px; }
.feature-strip-head span {
  padding: 3px 10px; border-radius: 3px; background: var(--ink); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .14em;
}
.feature-strip-head strong { font: 600 17px var(--serif); }
.featured-card-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; gap: 16px; }
.featured-card-grid .vcard:first-child .thumb { aspect-ratio: 1.55 / 1; }
.featured-card-grid .vcard:not(:first-child) .thumb { aspect-ratio: 16 / 9; }
.library-shelf { padding: 54px 0 60px; border-bottom: 1px solid var(--line); }
.library-shelf.latest-shelf { background: #fff; }
.library-shelf.starter-shelf { background: var(--paper); }
.library-shelf.theme-iq { background: #F1F4FA; }
.library-shelf.theme-child { background: #FFF7EF; }
.library-shelf.theme-adult { background: #F0F7F3; }
.shelf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 22px; }
.shelf-head h2 { margin: 0 0 5px; }
.shelf-head p { max-width: 720px; margin: 0; color: #526071; font-size: 13.5px; line-height: 1.75; }
.shelf-link { flex: none; font-size: 13.5px; font-weight: 700; border-bottom: 2px solid var(--marker); }
.shelf-link span { font-size: 22px; line-height: 0; vertical-align: -2px; }
.library-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.library-card-grid .vcard { min-width: 0; }
.library-card-grid .thumb { aspect-ratio: 16 / 9; }
.library-card-grid .acard-m.big .vbody .title { font-size: 15px; -webkit-line-clamp: 3; }
.shelf-empty {
  grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px;
  padding: 24px; border: 1px dashed #BFC6D0; border-radius: var(--radius); color: var(--pencil);
}
.shelf-empty strong { color: var(--ink); }
.shelf-empty a { margin-left: auto; font-size: 13px; font-weight: 700; text-decoration: underline; }
.theme-directory { padding: 48px 0 54px; background: #fff; border-bottom: 1px solid var(--line); }
.theme-directory h2 { margin: 0 0 20px; }
.directory-links { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.directory-links > a {
  display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px;
  padding: 20px; border-right: 1px solid var(--line); background: #fff;
}
.directory-links > a:last-child { border-right: 0; }
.directory-links strong { width: 100%; margin-bottom: 5px; font: 600 16px var(--serif); }
.directory-links span { padding: 2px 8px; border-radius: 999px; background: var(--wash); color: #526071; font-size: 11px; }
.directory-links > a:hover strong { text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 4px; }
.library-guide { padding: 58px 0 12px; }
.minimal-wrap { max-width: 1040px; }
.minimal-hero { padding: 92px 0 48px; border-bottom: 1px solid var(--line); }
.minimal-hero h1 { max-width: 780px; margin: 10px 0 18px; font-size: clamp(38px, 6vw, 66px); line-height: 1.28; letter-spacing: .02em; }
.minimal-lead { max-width: 690px; margin: 0 0 26px; color: #3A4356; font-size: 16px; line-height: 2; }
.minimal-search { max-width: 610px; }
.minimal-categories { padding: 34px 0 18px; }
.minimal-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--card); }
.minimal-category-grid a { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; min-height: 128px; padding: 22px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.minimal-category-grid a:last-child { border-right: 0; }
.minimal-category-grid a:hover { background: #FFF9D9; }
.minimal-category-grid span { grid-row: 1 / 3; color: var(--pencil); font: 500 12px var(--serif); }
.minimal-category-grid strong { font: 600 17px var(--serif); }
.minimal-category-grid small { color: #526071; font-size: 12px; line-height: 1.7; }
.minimal-latest { padding: 58px 0 72px; }
.minimal-head { margin-bottom: 20px; }
.minimal-article-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.minimal-note { padding: 62px 0; background: #F1F0EB; border-top: 1px solid var(--line); }
.minimal-note-inner { display: grid; grid-template-columns: minmax(260px,.8fr) minmax(320px,1.2fr); gap: 50px; }
.minimal-note h2 { margin: 5px 0 0; font-size: 27px; }
.minimal-note p { margin-top: 0; color: #3A4356; line-height: 1.9; }
.minimal-policy { padding-left: 14px; border-left: 3px solid var(--marker); font-size: 13px; }
.text-link { color: var(--ink); font-size: 13px; font-weight: 700; text-decoration-color: var(--marker); text-decoration-thickness: 4px; }
.library-trust { padding: 66px 0; background: #F1F0EB; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.trust-heading { display: grid; grid-template-columns: minmax(0, .8fr) minmax(300px, 1.2fr); gap: 8px 36px; align-items: end; margin-bottom: 24px; }
.trust-heading .eyebrow { grid-column: 1 / -1; }
.trust-heading h2, .trust-heading p { margin: 0; }
.trust-heading p { color: #526071; line-height: 1.8; }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.trust-grid a { display: flex; min-height: 190px; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; transition: transform .18s, box-shadow .18s; }
.trust-grid a:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(28,43,75,.12); }
.trust-grid strong { font: 600 18px var(--serif); }
.trust-grid span { margin: 12px 0 20px; color: #526071; font-size: 13px; line-height: 1.8; }
.trust-grid b { margin-top: auto; font-size: 12px; text-decoration: underline; text-decoration-color: var(--marker); text-decoration-thickness: 3px; }
@media (max-width: 860px) {
  .theme-jump { grid-template-columns: 1fr; }
  .theme-jump-card { min-height: 112px; }
  .library-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .featured-card-grid .vcard:first-child { grid-column: 1 / -1; }
  .directory-links { grid-template-columns: 1fr; }
  .trust-heading { grid-template-columns: 1fr; }
  .trust-heading .eyebrow { grid-column: auto; }
  .trust-grid { grid-template-columns: 1fr; }
  .minimal-category-grid, .minimal-article-grid { grid-template-columns: 1fr; }
  .minimal-category-grid a { border-right: 0; border-bottom: 1px solid var(--line); min-height: 100px; }
  .minimal-category-grid a:last-child { border-bottom: 0; }
  .minimal-note-inner { grid-template-columns: 1fr; gap: 20px; }
  .directory-links > a { border-right: 0; border-bottom: 1px solid var(--line); }
  .directory-links > a:last-child { border-bottom: 0; }
  .shelf-head { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .library-hero { padding-top: 38px; }
  .minimal-hero { padding: 56px 0 32px; }
  .library-search button { padding-inline: 17px; }
  .library-card-grid { grid-template-columns: 1fr; }
  .featured-card-grid { grid-template-columns: 1fr; }
  .featured-card-grid .vcard:first-child { grid-column: auto; }
  .library-shelf { padding: 42px 0 46px; }
  .shelf-head { gap: 12px; }
  .shelf-empty a { width: 100%; margin-left: 0; }
}
.writers-page { padding-top: 48px; padding-bottom: 50px; }
.writer-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; margin-top: 28px; }
.writer-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.writer-avatar { width: 72px; height: 72px; border-radius: 50%; display: block; object-fit: cover; object-position: center; background: #f3ead8; border: 1px solid var(--line); }
.writer-card h2 { font-size: 20px; margin: 0 0 2px; }
.writer-card p { margin: 7px 0; font-size: 13.5px; line-height: 1.75; color: #3A4356; }
.writer-card .writer-role { color: var(--redpen); font-weight: 700; }
@media (max-width: 720px) { .writer-grid { grid-template-columns: 1fr; } .writer-card { grid-template-columns: 56px 1fr; padding: 19px; } .writer-avatar { width:56px;height:56px;font-size:22px; } }
/* Article-local learning media */
.article-audio { display: block; width: 100%; margin: 12px 0 24px; }
.article-media { display: block; width: 100%; height: auto; margin: 14px auto 30px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.article-answer { margin: -12px 0 28px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); overflow: hidden; }
.article-answer summary { padding: 13px 16px; cursor: pointer; font-weight: 700; color: var(--ink); background: color-mix(in srgb, var(--marker) 28%, var(--card)); }
.article-answer[open] summary { border-bottom: 1px solid var(--line); }
.article-answer .article-media { margin: 16px auto; width: calc(100% - 32px); }

/* 管理画面の記事編集フォーム */
.admin-article-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.admin-preview-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin:-2px 0 14px; }
.admin-article-preview { margin:16px 0 20px; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:var(--paper); }
.admin-preview-bar { display:flex; align-items:center; gap:12px; padding:10px 14px; background:var(--wash); border-bottom:1px solid var(--line); font-size:13px; }
.admin-preview-bar span { color:var(--pencil); }
.admin-preview-bar .btn { margin-left:auto; }
.admin-preview-paper { max-width:760px; margin:0 auto; padding:34px 28px 46px; }
.admin-preview-paper h1 { margin:.25em 0 .6em; font-size:clamp(28px,4vw,44px); line-height:1.35; }
.admin-preview-paper .lead { padding-left:14px; border-left:2px solid var(--yellow); color:var(--pencil); }
.admin-preview-paper figure { margin:24px 0; }
.admin-preview-paper figcaption { margin-top:8px; color:var(--pencil); font-size:13px; text-align:center; }
.admin-preview-boundary { margin:28px 0; padding:10px 14px; border-top:1px dashed var(--pencil); border-bottom:1px dashed var(--pencil); color:var(--pencil); font-size:13px; text-align:center; }
.copy-tools { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:-2px 0 14px; }
.copy-candidates { display:flex; gap:7px; flex-wrap:wrap; max-height:240px; overflow:auto; padding:12px; margin-bottom:14px; border:1px solid var(--line); border-radius:8px; background:var(--wash); }
.copy-candidate { appearance:none; border:1px solid var(--line); border-radius:999px; background:var(--card); color:var(--ink); padding:7px 11px; font:inherit; font-size:12px; line-height:1.35; cursor:pointer; text-align:left; }
.copy-candidate:hover, .copy-candidate:focus { border-color:var(--ink); box-shadow:0 0 0 2px color-mix(in srgb, var(--marker) 42%, transparent); outline:none; }
@media (max-width: 860px) { .admin-article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .admin-article-grid { grid-template-columns: 1fr; } .admin-preview-paper { padding:24px 16px 36px; } .admin-preview-bar span { display:none; } }
