/* =========================================================
   Creatrail theme — main.css（prototype/style.css と同じ内容＋末尾にWordPress用の追加）
   デザインシステム：サイト設計書 第5章
   ========================================================= */

:root {
  --ink: #1c2733;
  --ink-2: #4a5866;
  --bg: #ffffff;
  --bg-soft: #f4f7f7;
  --line: #d9e1e4;
  --brand: #0b6b6b;
  --brand-dark: #084f4f;
  --brand-tint: #e5f2f1;
  --cta: #c2410c;
  --cta-dark: #9a330a;
  --pr-bg: #fff7db;
  --pr-line: #d9a400;
  --note-bg: #eef3fb;
  --note-line: #3b6fb6;
  --warn: #b42318;
  --warn-bg: #fdecea;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;

  --radius-card: 12px;
  --radius-btn: 8px;
  --wrap: 1120px;
  --measure: 720px;
  --font: "Noto Sans JP", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
@media (min-width: 960px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--note-line); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.45; margin: 0; }
p { margin: 0 0 var(--s4); }
table { font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff;
  padding: var(--s2) var(--s4); z-index: 100;
}
.skip-link:focus { left: var(--s2); top: var(--s2); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s4); }
.measure { max-width: var(--measure); margin: 0 auto; }

/* ---------- prototype banner ---------- */
.proto-banner {
  background: var(--ink); color: #fff; font-size: 12px; text-align: center;
  padding: var(--s1) var(--s4); line-height: 1.6;
}

/* ---------- ad strip (全ページの広告表示) ---------- */
.ad-strip {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--ink-2); padding: var(--s1) 0; line-height: 1.6;
}
.ad-strip a { color: var(--ink-2); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: var(--s4); }
.logo { display: inline-flex; align-items: center; gap: var(--s2); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 20px; letter-spacing: .02em; }
.logo-mark { width: 28px; height: 28px; flex: none; }
.logo small { display: block; font-size: 10px; font-weight: 400; color: var(--ink-2); letter-spacing: 0; line-height: 1.2; }
.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); }
.global-nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 700; padding: var(--s2) 0; display: inline-block; }
.global-nav a:hover, .global-nav a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }
.menu-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: var(--radius-btn);
  background: #fff; cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); position: relative; transition: transform .2s;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 767px) {
  .menu-toggle { display: inline-flex; }
  .global-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(28,39,51,.08);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; gap: 0; padding: var(--s2) var(--s4) var(--s4); }
  .global-nav li + li { border-top: 1px solid var(--line); }
  .global-nav a { display: block; padding: var(--s3) 0; min-height: 44px; }
  .global-nav a:hover { box-shadow: none; }
}

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: 13px; color: var(--ink-2); padding: var(--s3) 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); }
.breadcrumb li + li::before { content: "›"; margin-right: var(--s2); color: var(--ink-2); }
.breadcrumb a { color: var(--ink-2); }

/* ---------- badges / labels ---------- */
.verified {
  display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 1.5;
  background: var(--brand-tint); color: var(--brand-dark); border-radius: 999px; padding: 1px 8px; white-space: nowrap;
  font-weight: 400; vertical-align: middle;
}
.verified::before { content: "✓"; font-weight: 700; }
.tbc, .dummy {
  display: inline-block; font-size: 12px; line-height: 1.5; color: var(--warn); background: var(--warn-bg);
  border-radius: 4px; padding: 0 6px; font-weight: 700; white-space: nowrap; vertical-align: middle;
}
.tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--brand-dark); background: var(--brand-tint);
  border-radius: 999px; padding: 2px 10px; line-height: 1.6;
}
.tag--g2 { color: #5b3d00; background: #fbefd2; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: var(--s3) var(--s5); border-radius: var(--radius-btn);
  font-weight: 700; text-decoration: none; line-height: 1.4; border: 2px solid transparent; cursor: pointer; font-size: 16px;
  font-family: inherit;
}
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--ghost { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn--ghost:hover { background: var(--brand-tint); }

.cta { text-align: center; margin: var(--s5) 0; }
.cta__lead { display: block; font-size: 12px; color: var(--ink-2); margin-bottom: var(--s1); }
.cta__btn {
  display: flex; align-items: center; justify-content: center; gap: var(--s2);
  width: 100%; max-width: 420px; margin: 0 auto; min-height: 52px; padding: var(--s3) var(--s4);
  background: var(--cta); color: #fff; border-radius: var(--radius-btn); font-weight: 700; text-decoration: none;
  box-shadow: 0 2px 0 var(--cta-dark); line-height: 1.4;
}
.cta__btn:hover { background: var(--cta-dark); color: #fff; }
.cta__btn::after { content: "↗"; font-size: 14px; }
.cta__sub { display: block; font-size: 12px; color: var(--ink-2); margin-top: var(--s2); }
.cta-pair { display: grid; gap: var(--s4); margin: var(--s5) 0; }
.cta-pair .cta { margin: 0; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--radius-card); background: #fff; }
.cta-pair .cta__name { display: block; font-weight: 700; margin-bottom: var(--s2); }
@media (min-width: 600px) { .cta-pair { grid-template-columns: 1fr 1fr; } }

/* ---------- boxes ---------- */
.pr-box {
  background: var(--pr-bg); border: 1px solid var(--pr-line); border-left-width: 6px; border-radius: 8px;
  padding: var(--s3) var(--s4); font-size: 14px; line-height: 1.7; margin: var(--s2) 0 var(--s4);
}
.pr-box strong.pr-label {
  display: inline-block; background: var(--ink); color: #fff; border-radius: 4px; padding: 0 8px; margin-right: var(--s2); font-size: 13px;
}
.note-box {
  background: var(--note-bg); border: 1px solid var(--note-line); border-left-width: 6px; border-radius: 8px;
  padding: var(--s4); font-size: 15px; margin: var(--s5) 0;
}
.note-box__title { font-weight: 700; margin-bottom: var(--s1); display: block; }
.note-box p:last-child { margin-bottom: 0; }

.verdict {
  border: 2px solid var(--brand); border-radius: var(--radius-card); padding: var(--s5) var(--s4) var(--s4); margin: var(--s5) 0; position: relative;
}
.verdict__label {
  position: absolute; top: -13px; left: var(--s4); background: var(--brand); color: #fff; font-size: 13px; font-weight: 700;
  padding: 0 var(--s3); border-radius: 999px; line-height: 26px;
}
.verdict__lead { font-weight: 700; font-size: 17px; }
.verdict__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.verdict__list li { background: var(--bg-soft); border-radius: 8px; padding: var(--s3) var(--s4); }
.verdict__list b { color: var(--brand-dark); }

/* ---------- article layout ---------- */
.article-head { padding: var(--s2) 0 var(--s4); }
.article-head h1 { font-size: 24px; margin: var(--s2) 0 var(--s3); }
@media (min-width: 960px) { .article-head h1 { font-size: 32px; } }
.meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); font-size: 13px; color: var(--ink-2); }
.byline {
  display: flex; gap: var(--s3); align-items: flex-start; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: var(--s3) 0; margin-top: var(--s4); font-size: 13px; color: var(--ink-2); line-height: 1.7;
}
.byline__icon { width: 40px; height: 40px; flex: none; border-radius: 50%; background: var(--brand-tint); display: grid; place-items: center; color: var(--brand); font-weight: 700; }
.byline b { color: var(--ink); }

.prose h2 {
  font-size: 22px; margin: var(--s7) 0 var(--s4); padding-left: var(--s3); border-left: 5px solid var(--brand);
}
.prose h3 { font-size: 18px; margin: var(--s6) 0 var(--s3); }
@media (min-width: 960px) { .prose h2 { font-size: 26px; } .prose h3 { font-size: 20px; } }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 var(--s4); }
.prose li + li { margin-top: var(--s1); }

.toc { background: var(--bg-soft); border-radius: var(--radius-card); padding: var(--s3) var(--s4); margin: var(--s5) 0; }
.toc summary { font-weight: 700; cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.toc ol { margin: var(--s2) 0 var(--s2); padding-left: 1.4em; font-size: 15px; }

/* ---------- quick table ---------- */
.table-basic { width: 100%; border-collapse: collapse; font-size: 15px; margin: var(--s3) 0 var(--s2); }
.table-basic th, .table-basic td { border: 1px solid var(--line); padding: var(--s2) var(--s3); text-align: left; vertical-align: top; }
.table-basic thead th { background: var(--bg-soft); font-size: 14px; }
.table-basic tbody th { background: var(--bg-soft); width: 7em; font-size: 14px; }
.source { font-size: 12px; color: var(--ink-2); margin: var(--s2) 0 var(--s4); line-height: 1.7; }

/* ---------- compare table ---------- */
.compare-block { margin: var(--s5) 0; }
.view-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--bg-soft); margin-bottom: var(--s3); }
.view-switch button {
  border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-2);
  min-height: 40px; padding: 0 var(--s4); border-radius: 999px; cursor: pointer;
}
.view-switch button[aria-pressed="true"] { background: #fff; color: var(--brand-dark); box-shadow: 0 1px 3px rgba(28,39,51,.15); }

.scroll-hint { font-size: 12px; color: var(--ink-2); margin: 0 0 var(--s1); display: none; }
.compare-scroll.is-scrollable + .scroll-hint, .scroll-hint.is-visible { display: block; }
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-card); }
.compare { width: 100%; min-width: 340px; border-collapse: separate; border-spacing: 0; font-size: 14px; table-layout: fixed; }
.compare th, .compare td { padding: var(--s3); border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; background: #fff; line-height: 1.65; }
.compare td + td, .compare th + th, .compare th + td { border-left: 1px solid var(--line); }
.compare thead th { position: sticky; top: 0; z-index: 2; background: var(--brand-tint); color: var(--brand-dark); font-size: 15px; }
.compare .col-item { width: 6.5em; }
.compare tbody th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--bg-soft); font-size: 13px; color: var(--ink); }
.compare thead th.col-item { left: 0; z-index: 3; background: var(--bg-soft); color: var(--ink-2); font-size: 12px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .val { display: block; font-weight: 700; }
.compare .sub { display: block; font-size: 12px; color: var(--ink-2); }
.compare .cta { margin: 0; }
.compare .cta__btn { min-height: 48px; font-size: 13px; padding: var(--s2); }
.compare .cta__sub { font-size: 11px; }
@media (min-width: 960px) {
  .compare { font-size: 15px; }
  .compare .col-item { width: 10em; }
}

.compare-cards { display: grid; gap: var(--s4); }
.compare-cards[hidden] { display: none; }
.school-card { border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: #fff; }
.school-card__head { background: var(--brand-tint); padding: var(--s3) var(--s4); }
.school-card__head h3, .school-card__head p { margin: 0; }
.school-card__head h3 { font-size: 17px; color: var(--brand-dark); }
.school-card__head p { font-size: 13px; color: var(--ink-2); }
.school-card dl { margin: 0; }
.school-card .row { display: grid; grid-template-columns: 6.5em 1fr; border-top: 1px solid var(--line); }
.school-card dt { background: var(--bg-soft); font-size: 13px; font-weight: 700; padding: var(--s3); }
.school-card dd { margin: 0; padding: var(--s3); font-size: 14px; line-height: 1.65; }
.school-card .cta { padding: var(--s4); margin: 0; border-top: 1px solid var(--line); }
@media (min-width: 600px) { .compare-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--s4) var(--s6) var(--s4) 2.2em; position: relative; font-weight: 700; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; position: absolute; left: 0; top: var(--s4); color: var(--brand); font-weight: 700; }
.faq summary::after { content: "+"; position: absolute; right: var(--s2); top: var(--s3); font-size: 22px; color: var(--ink-2); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 0 var(--s4) 2.2em; position: relative; }
.faq .answer::before { content: "A"; position: absolute; left: 0; top: 0; color: var(--cta); font-weight: 700; }

/* ---------- history ---------- */
.history { width: 100%; border-collapse: collapse; font-size: 14px; }
.history th, .history td { border-bottom: 1px solid var(--line); padding: var(--s2) var(--s2); text-align: left; vertical-align: top; }
.history th { font-size: 13px; color: var(--ink-2); }
.history td:first-child { white-space: nowrap; }

/* ---------- video facade ---------- */
.video-facade {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: #22303d; color: #fff;
  display: grid; place-items: center; text-align: center; margin: var(--s4) 0; border: 0; width: 100%; cursor: pointer; font: inherit;
}
.video-facade__play { width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.95); display: grid; place-items: center; margin: 0 auto var(--s2); }
.video-facade__play::before { content: ""; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video-facade__text { font-size: 14px; padding: 0 var(--s4); line-height: 1.6; }

/* ---------- cards / sections (top page) ---------- */
.section { padding: var(--s7) 0; }
.section--soft { background: var(--bg-soft); }
.section__title { font-size: 22px; margin-bottom: var(--s2); }
.section__lead { color: var(--ink-2); margin-bottom: var(--s5); }
@media (min-width: 960px) { .section { padding: var(--s8) 0; } .section__title { font-size: 28px; } }

.hero { padding: var(--s7) 0 var(--s6); background: linear-gradient(180deg, var(--brand-tint) 0%, #fff 100%); }
.hero__eyebrow { font-size: 13px; font-weight: 700; color: var(--brand-dark); letter-spacing: .06em; margin-bottom: var(--s2); }
/* 文節ごとに折り返す。幅320pxでも「クリエイター」が途中で切れないよう、文字サイズを画面幅に合わせて縮める */
.hero h1 { font-size: clamp(21px, 6.6vw, 26px); letter-spacing: .01em; margin-bottom: var(--s4); word-break: keep-all; overflow-wrap: normal; }
.hero h1 .phrase { display: inline-block; }
.hero h1 .trail { color: var(--brand); }
.hero__lead { max-width: 36em; color: var(--ink-2); margin-bottom: var(--s5); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__actions .btn { flex: 1 1 220px; }
@media (min-width: 960px) { .hero { padding: var(--s8) 0 var(--s7); } .hero h1 { font-size: 42px; } }

.trail-line { display: block; width: 100%; max-width: 360px; height: 12px; margin: var(--s5) 0 0; }

.grid { display: grid; gap: var(--s4); }
@media (min-width: 600px) { .grid--2 { grid-template-columns: 1fr 1fr; } .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.promise { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s5) var(--s4); }
.promise__num { font-size: 13px; font-weight: 700; color: var(--brand); }
.promise h3 { font-size: 18px; margin: var(--s1) 0 var(--s2); }
.promise p { font-size: 15px; color: var(--ink-2); margin: 0; }

.path { border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s5) var(--s4); background: #fff; display: flex; flex-direction: column; gap: var(--s3); }
.path h3 { font-size: 20px; }
.path p { color: var(--ink-2); font-size: 15px; margin: 0; }
.path ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.path li a {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s2);
  padding: var(--s3) var(--s4); border-radius: 8px; background: var(--bg-soft); text-decoration: none; color: var(--ink); font-weight: 700; min-height: 48px;
}
.path li a::after { content: "→"; color: var(--brand); }
.path li a:hover { background: var(--brand-tint); }
.path--g2 { border-style: dashed; }
.path__note { font-size: 13px !important; background: #fbefd2; color: #5b3d00 !important; border-radius: 8px; padding: var(--s2) var(--s3); }

.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; background: #fff; text-decoration: none; color: var(--ink); }
.card:hover { border-color: var(--brand); color: var(--ink); }
.card__thumb { aspect-ratio: 16 / 9; background: repeating-linear-gradient(135deg, var(--brand-tint) 0 12px, #f0f7f6 12px 24px); display: grid; place-items: center; color: var(--brand-dark); font-weight: 700; font-size: 15px; padding: var(--s3); text-align: center; }
.card__body { padding: var(--s4); display: flex; flex-direction: column; gap: var(--s2); flex: 1; }
.card__title { font-size: 17px; font-weight: 700; line-height: 1.55; }
.card__meta { font-size: 12px; color: var(--ink-2); margin-top: auto; display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

.updates { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.updates li { display: grid; grid-template-columns: 6.5em 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.updates time { color: var(--ink-2); font-size: 13px; padding-top: 2px; }

.operator { display: grid; gap: var(--s4); align-items: center; border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s5) var(--s4); background: #fff; }
@media (min-width: 768px) { .operator { grid-template-columns: 1fr auto; padding: var(--s6); } }

/* ---------- page (about) ---------- */
.page-head { padding: var(--s4) 0 var(--s5); border-bottom: 1px solid var(--line); margin-bottom: var(--s5); }
.page-head h1 { font-size: 26px; }
.page-layout { display: grid; gap: var(--s5); padding-bottom: var(--s7); }
.page-layout > * { min-width: 0; }
@media (min-width: 960px) { .page-layout { grid-template-columns: 240px 1fr; gap: var(--s7); } }
.side-nav { font-size: 14px; }
.side-nav__title { font-weight: 700; font-size: 13px; color: var(--ink-2); margin-bottom: var(--s2); }
.side-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-nav a { display: block; padding: var(--s2) var(--s3); border-radius: 6px; text-decoration: none; color: var(--ink); min-height: 40px; }
.side-nav a:hover { background: var(--bg-soft); }
.side-nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand-dark); font-weight: 700; }
@media (max-width: 959px) {
  .side-nav ul { display: flex; overflow-x: auto; gap: var(--s2); padding-bottom: var(--s2); }
  .side-nav a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; }
}
@media (min-width: 960px) { .side-nav { position: sticky; top: 84px; align-self: start; } }

.info-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: var(--s5); }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: var(--s3); text-align: left; vertical-align: top; }
.info-table th { width: 8em; background: var(--bg-soft); font-size: 14px; }
@media (max-width: 599px) {
  .info-table th, .info-table td { display: block; width: auto; }
  .info-table th { border-bottom: 0; padding-bottom: var(--s1); }
}

.flow { list-style: none; counter-reset: step; margin: var(--s4) 0 var(--s5); padding: 0; display: grid; gap: var(--s3); }
.flow li { counter-increment: step; position: relative; padding: var(--s3) var(--s4) var(--s3) 3.2em; background: var(--bg-soft); border-radius: 8px; }
.flow li::before {
  content: counter(step); position: absolute; left: var(--s3); top: var(--s3); width: 1.8em; height: 1.8em; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px;
}
.do-dont { display: grid; gap: var(--s4); margin: var(--s4) 0 var(--s5); }
@media (min-width: 600px) { .do-dont { grid-template-columns: 1fr 1fr; } }
.do-dont > div { border: 1px solid var(--line); border-radius: var(--radius-card); padding: var(--s4); }
.do-dont h3 { font-size: 16px; margin-bottom: var(--s2); }
.do-dont ul { margin: 0; padding-left: 1.3em; font-size: 15px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #d6dde3; padding: var(--s7) 0 var(--s5); font-size: 14px; margin-top: var(--s7); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: var(--s5); }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer h2 { font-size: 13px; color: #9fb0bd; margin-bottom: var(--s2); letter-spacing: .05em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.site-footer .logo { color: #fff; }
.site-footer .logo small { color: #9fb0bd; }
.footer-bottom { border-top: 1px solid #34424f; margin-top: var(--s6); padding-top: var(--s4); font-size: 12px; color: #9fb0bd; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); justify-content: space-between; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }


/* =========================================================
   WordPress テーマ用の追加分（ここから下はプロトタイプにはない）
   ========================================================= */
.screen-reader-text {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.verified--stale { background: var(--warn-bg); color: var(--warn); }
.verified--stale::before { content: "!"; }
.editor-warning {
  display: block; background: #fcf0f1; border-left: 4px solid #d63638; color: var(--ink);
  padding: var(--s2) var(--s3); font-size: 13px; line-height: 1.6; margin: var(--s2) 0; border-radius: 4px;
}
a.tag { text-decoration: none; }
.page-body { max-width: var(--measure); }

/* 本文の中で部品のリストが字下げされないように */
.prose .verdict__list, .prose .flow, .prose .updates, .prose .path ul { padding-left: 0; }
.prose .verdict__list li + li, .prose .flow li + li { margin-top: 0; }
.prose .faq p:last-child, .prose .note-box p:last-child, .prose .answer p:last-child { margin-bottom: 0; }
.prose .cta__btn, .prose .btn { text-decoration: none; }

/* 本文の画像・表（ブロックエディタ） */
.prose figure { margin: var(--s5) 0; }
.prose figcaption { font-size: 13px; color: var(--ink-2); margin-top: var(--s2); }
.prose .wp-block-table { overflow-x: auto; margin: var(--s4) 0; }
.prose .wp-block-table table, .prose table:not([class]) { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose .wp-block-table th, .prose .wp-block-table td, .prose table:not([class]) th, .prose table:not([class]) td {
  border: 1px solid var(--line); padding: var(--s2) var(--s3); text-align: left; vertical-align: top;
}
.prose .wp-block-table thead th, .prose table:not([class]) thead th { background: var(--bg-soft); }
.prose .wp-block-quote, .prose blockquote { border-left: 4px solid var(--line); margin: var(--s4) 0; padding: var(--s1) var(--s4); color: var(--ink-2); }

/* 記事カードの画像 */
.card__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* 動画（サムネイルあり） */
.video-facade { background-size: cover; background-position: center; }
.video-facade::before { content: ""; position: absolute; inset: 0; background: rgba(28, 39, 51, .45); }
.video-facade > span { position: relative; z-index: 1; }
/* 再生後：ボタンと置き換わるプレーヤーの枠 */
.video-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; background: #000; margin: var(--s4) 0; }
.video-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ページ送り */
.pagination { margin: var(--s6) 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 var(--s3);
  border: 1px solid var(--line); border-radius: var(--radius-btn); text-decoration: none; color: var(--ink);
}
.pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }

/* カテゴリ一覧の上の「経験者向け」注意 */
.page-head .path__note { font-size: 13px; background: #fbefd2; color: #5b3d00; border-radius: 8px; padding: var(--s2) var(--s3); }
