/* VPSナビ v2 — 「計測器」アイデンティティ。
   実測データのサイトであることが見た目から伝わるように:
   モノスペースの数字、エディトリアルな大見出し、紙のライト/計器のダーク。
   枠線に頼らず、ヘアライン・余白・書体コントラストで構造を出す。 */

:root {
  /* 紙っぽい暖色のライト */
  --bg: #faf9f7;
  --bg-sunken: #f1efea;
  --bg-raised: #ffffff;
  --text: #16181d;
  --text-dim: #575d66;
  --text-faint: #8a8f98;
  --ink: #16181d;
  --ink-contrast: #faf9f7;
  --accent: #1a3fd4;
  --accent-hover: #12299c;
  --accent-soft: #e9edfb;
  --good: #0a7c50;
  --good-soft: #e4f3ec;
  --warn: #92600a;
  --warn-soft: #f8efdc;
  --bad: #b8332a;
  --bad-soft: #f9e9e7;
  --hair: #e5e2db;
  --hair-strong: #cfccc4;
  --radius: 6px;
  --radius-lg: 12px;
  --maxw: 1120px;
  --measure: 43rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas,
    "Noto Sans Mono", monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* 計器の盤面のようなダーク */
    --bg: #0e1116;
    --bg-sunken: #151a21;
    --bg-raised: #1a2029;
    --text: #e8eaee;
    --text-dim: #9aa2ad;
    --text-faint: #6b727d;
    --ink: #e8eaee;
    --ink-contrast: #0e1116;
    --accent: #7e9bff;
    --accent-hover: #a6baff;
    --accent-soft: #1a2440;
    --good: #35c084;
    --good-soft: #12271e;
    --warn: #d9a648;
    --warn-soft: #271f10;
    --bad: #f07f74;
    --bad-soft: #2b1614;
    --hair: #242a33;
    --hair-strong: #333b46;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "palt";
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; height: auto; }
::selection { background: var(--accent); color: var(--ink-contrast); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 62px;
}
.brand {
  font-weight: 800;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -.03em;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  gap: 2px;
}
.brand:hover { text-decoration: none; }
.brand em { font-style: normal; color: var(--accent); }
.brand::after {
  content: "実測";
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--ink-contrast);
  background: var(--accent);
  padding: 1px 6px 2px;
  border-radius: 3px;
  margin-left: 8px;
  transform: translateY(-4px);
}
.site-nav { display: flex; gap: 26px; margin-left: auto; }
.site-nav a {
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }
.site-nav a[aria-current="true"] { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- layout ---------- */
.page { padding: 30px 0 80px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 56px; align-items: start; }
.layout-full { display: block; }

/* ---------- breadcrumb ---------- */
.crumbs {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .02em;
  color: var(--text-faint);
  margin: 0 0 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crumbs a { color: var(--text-dim); }
.crumbs span[aria-hidden] { color: var(--hair-strong); }

/* ---------- typography ---------- */
h1 {
  font-size: clamp(28px, 4.6vw, 42px);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -.035em;
  margin: 0 0 16px;
  font-feature-settings: "palt";
}
.lede {
  font-size: 17.5px;
  line-height: 1.85;
  color: var(--text-dim);
  margin: 0 0 24px;
  max-width: var(--measure);
}
.article h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 64px 0 16px;
  padding-top: 22px;
  line-height: 1.4;
  border-top: 1px solid var(--hair);
}
.article h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  margin: 0 0 14px;
  border-radius: 2px;
}
.article h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin: 40px 0 10px; line-height: 1.5; }
.article h4 { font-size: 15.5px; font-weight: 700; margin: 28px 0 8px; color: var(--text-dim); }
.article p { margin: 0 0 18px; max-width: var(--measure); }
.article ul, .article ol { margin: 0 0 20px; padding-left: 1.3em; max-width: var(--measure); }
.article li { margin: 0 0 8px; }
.article li::marker { color: var(--accent); }
.article ol li::marker { font-family: var(--font-mono); font-weight: 700; font-size: .9em; }
.article li > ul { margin: 8px 0 0; }
.article strong { font-weight: 700; }
.article hr { border: 0; height: 1px; background: var(--hair); margin: 48px 0; }
.article blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--accent);
  color: var(--text-dim);
}
.article blockquote p:last-child { margin-bottom: 0; }

code {
  font-family: var(--font-mono);
  font-size: .86em;
  background: var(--bg-sunken);
  border: 1px solid var(--hair);
  padding: .1em .4em;
  border-radius: 4px;
}
pre {
  background: #101319;
  color: #dee3ea;
  padding: 18px 20px;
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 0 0 22px;
  line-height: 1.75;
  border: 1px solid #242a33;
}
@media (prefers-color-scheme: dark) {
  pre { background: #0a0d11; }
}
pre code { background: none; border: 0; padding: 0; font-size: 13px; color: inherit; }

.meta-line {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--text-faint);
  margin: 0 0 30px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  text-transform: uppercase;
}

/* 数値は常に等幅・タブラー */
.num, .v, .score-val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

/* ---------- tables ---------- */
.table-wrap {
  overflow-x: auto;
  margin: 0 0 24px;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
}
table { border-collapse: collapse; width: 100%; font-size: 14px; }
thead th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 12px 14px 10px;
  white-space: nowrap;
  border-bottom: 1px solid var(--hair-strong);
  background: var(--bg-raised);
  position: sticky;
  top: 0;
}
tbody td { padding: 14px; vertical-align: top; border-bottom: 1px solid var(--hair); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
th:first-child, td:first-child { padding-left: 18px; }
th:last-child, td:last-child { padding-right: 18px; }
td .num, td.num { font-size: 13.5px; }
td.num { white-space: nowrap; }

/* ---------- boxes ---------- */
.box {
  margin: 0 0 24px;
  padding: 16px 20px 16px 22px;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  background: var(--bg-sunken);
  border-left: 3px solid var(--text-faint);
  max-width: var(--measure);
}
.box p:last-child { margin-bottom: 0; }
.box-title {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 8px !important;
}
.box-warn { background: var(--warn-soft); border-left-color: var(--warn); }
.box-warn .box-title { color: var(--warn); }
.box-note { background: var(--accent-soft); border-left-color: var(--accent); }
.box-note .box-title { color: var(--accent); }
.box-tip { background: var(--good-soft); border-left-color: var(--good); }
.box-tip .box-title { color: var(--good); }
.box-money { border-left-color: var(--text-dim); }
.box-money .box-title { color: var(--text-dim); }
.box-check { background: var(--good-soft); border-left-color: var(--good); }
.box-check .box-title { color: var(--good); }

/* ---------- badges ---------- */
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  padding: 1px 8px 2px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.8;
  white-space: nowrap;
}
.badge-yes { background: var(--good-soft); color: var(--good); }
.badge-no { background: var(--bad-soft); color: var(--bad); }
.badge-mid { background: var(--warn-soft); color: var(--warn); }
.badge-info { background: var(--accent-soft); color: var(--accent); }
.badge-flat { background: var(--bg-sunken); color: var(--text-dim); }

/* ---------- CTA ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: var(--ink-contrast);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .01em;
  padding: 13px 26px;
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, box-shadow .15s ease;
  text-align: center;
}
.btn:hover {
  background: var(--accent);
  color: var(--ink-contrast);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -6px color-mix(in srgb, var(--accent) 55%, transparent);
}
.btn .pr-tag { background: color-mix(in srgb, var(--ink-contrast) 22%, transparent); color: var(--ink-contrast); }
.btn-sm { font-size: 13px; padding: 8px 16px; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--hair-strong);
}
.btn-ghost:hover {
  background: var(--bg-sunken);
  color: var(--text);
  box-shadow: inset 0 0 0 1.5px var(--text-faint);
}
.btn-block { display: flex; width: 100%; }

.cta-card {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin: 36px 0;
  max-width: var(--measure);
}
.cta-card .cta-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 8px;
}
.cta-card h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px !important; }
.cta-card p { font-size: 14.5px; color: var(--text-dim); margin: 0 0 16px; }
.cta-card .cta-points { list-style: none; padding: 0; margin: 0 0 18px; font-size: 14px; }
.cta-card .cta-points li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.cta-card .cta-points li::before {
  content: "＋";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--good);
  font-weight: 700;
  font-family: var(--font-mono);
}
.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cta-fineprint { font-size: 11.5px; color: var(--text-faint); margin: 14px 0 0 !important; }

.cta-inline {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin: 26px 0;
  max-width: var(--measure);
}
.cta-inline .ci-text { flex: 1 1 240px; font-size: 13.5px; }
.cta-inline .ci-text b { display: block; font-size: 15px; letter-spacing: -.01em; }
.cta-inline .ci-text span { color: var(--text-dim); }

.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--hair);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
  align-items: center;
  gap: 12px;
}
.sticky-cta .sc-text { flex: 1; font-size: 12px; line-height: 1.5; color: var(--text-faint); }
.sticky-cta .sc-text b { display: block; color: var(--text); font-size: 14px; font-family: var(--font-mono); }

/* ---------- disclosure ---------- */
.disclosure {
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-faint);
  border: 1px dashed var(--hair-strong);
  padding: 9px 14px;
  border-radius: var(--radius);
  margin: 0 0 26px;
  max-width: var(--measure);
}
.pr-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-faint);
  background: var(--bg-sunken);
  padding: 1px 6px;
  border-radius: 3px;
  vertical-align: 2px;
  margin-left: 6px;
}

/* ---------- cards / grids ---------- */
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover {
  border-color: var(--hair-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px -14px rgba(10, 15, 30, .25);
}
.card h3 { margin: 0 0 6px !important; font-size: 16.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.5; }
.card h3 a { color: var(--text); }
.card p { font-size: 13.5px; line-height: 1.75; color: var(--text-dim); margin: 0 0 14px; }
.card .card-foot { margin-top: auto; font-size: 13px; font-weight: 700; }

/* ランキングカード */
.rank-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 14px;
}
.rank-card.is-first { border-top: 3px solid var(--accent); }
.rank-num {
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-faint);
  line-height: 1;
  letter-spacing: .05em;
  padding-top: 6px;
}
.rank-num::before { content: "0"; }
.rank-card.is-first .rank-num { color: var(--accent); }
.rank-body h3 { margin: 0 0 6px !important; font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.rank-body h3 a { color: var(--text); }
.rank-why { font-size: 14.5px; line-height: 1.8; color: var(--text-dim); margin: 0 0 14px; }
.rank-specs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }

/* 良い点/悪い点 */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 0 0 26px; max-width: var(--measure); }
.proscons > div {
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.proscons h4 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.proscons ul { list-style: none; margin: 0; padding: 0; font-size: 13.5px; }
.proscons li { padding-left: 20px; position: relative; margin-bottom: 8px; line-height: 1.7; }
.pros { border-top: 3px solid var(--good); }
.cons { border-top: 3px solid var(--bad); }
.pros h4 { color: var(--good); }
.cons h4 { color: var(--bad); }
.pros li::before, .cons li::before {
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 700;
}
.pros li::before { content: "＋"; color: var(--good); }
.cons li::before { content: "−"; color: var(--bad); }

/* スコアバー */
.scores { margin: 0 0 26px; max-width: 440px; }
.score-row { display: grid; grid-template-columns: 7.5em 1fr 2em; gap: 12px; align-items: center; font-size: 13px; margin-bottom: 8px; }
.score-bar { height: 6px; background: var(--bg-sunken); border-radius: 3px; overflow: hidden; }
.score-bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px 3px 3px 3px; }
.score-val { text-align: right; color: var(--text-faint); font-size: 12px; }

/* ---------- TOC ---------- */
.toc { position: sticky; top: 86px; font-size: 13px; }
.toc-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
}
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--hair); }
.toc li { margin: 0; }
.toc a {
  color: var(--text-dim);
  display: block;
  padding: 5px 0 5px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  line-height: 1.55;
}
.toc a:hover { color: var(--accent); border-left-color: var(--accent); text-decoration: none; }
.toc .lvl-3 a { padding-left: 26px; font-size: 12px; color: var(--text-faint); }

/* ---------- FAQ ---------- */
.faq { max-width: var(--measure); margin: 0 0 26px; }
.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 8px;
}
.faq details[open] { border-color: var(--hair-strong); }
.faq summary { font-weight: 700; cursor: pointer; font-size: 14.5px; list-style: none; letter-spacing: -.005em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  float: right;
  font-family: var(--font-mono);
  color: var(--text-faint);
  font-weight: 400;
}
.faq details[open] summary::after { content: "−"; color: var(--accent); }
.faq details p { margin: 10px 0 0; font-size: 14px; line-height: 1.85; color: var(--text-dim); }

/* ---------- 関連 ---------- */
.related {
  background: var(--bg-sunken);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin: 52px 0 0;
  max-width: var(--measure);
}
.related h2 {
  font-family: var(--font-mono);
  font-size: 11px !important;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 14px !important;
  border: 0 !important;
  padding: 0 !important;
}
.related h2::before { display: none !important; }
.related ul { list-style: none; margin: 0; padding: 0; }
.related li { margin-bottom: 8px; font-size: 14px; }
.related li span { color: var(--text-faint); font-size: 12.5px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 56px 0 36px;
}
/* 方眼紙のような極薄グリッド — 計測器の含意 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--hair) 1px, transparent 1px),
    linear-gradient(90deg, var(--hair) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .45;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 85%);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 { font-size: clamp(34px, 5.6vw, 56px); max-width: 18em; line-height: 1.22; }
.hero h1 .accent-line { color: var(--accent); }
.hero .lede { font-size: 17.5px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; }
.chip {
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: 999px;
  transition: border-color .12s ease, color .12s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* ヒーロー直下の実測ストリップ */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 40px 0 0;
}
.hstat { background: var(--bg-raised); padding: 16px 18px 14px; }
.hstat .hs-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 4px;
  white-space: nowrap;
}
.hstat .hs-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.1;
  color: var(--text);
}
.hstat .hs-value small { font-size: 12px; font-weight: 600; color: var(--text-faint); margin-left: 2px; }
.hstat.is-good .hs-value { color: var(--good); }
.hstat.is-bad .hs-value { color: var(--bad); }
.hstat .hs-sub { display: block; font-size: 11px; color: var(--text-faint); margin-top: 2px; }
.hero-stats-note {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--text-faint);
  margin: 10px 0 0;
}

.section { padding: 56px 0; }
.section-sunken {
  background: var(--bg-sunken);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}
.section-sunken .card { background: var(--bg-raised); }
.section-head { margin: 0 0 28px; }
.section-head h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -.025em;
  margin: 0 0 10px;
}
.section-head h2::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin-bottom: 14px;
}
.section-head p { color: var(--text-dim); margin: 0; max-width: var(--measure); }

/* ---------- 実測テーブル ---------- */
.measure-note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .02em;
  line-height: 1.8;
  color: var(--text-faint);
  margin: -12px 0 26px;
}
.bar-cell { display: flex; align-items: center; gap: 10px; min-width: 150px; }
.bar-cell .bar { flex: 1; height: 6px; background: var(--bg-sunken); border-radius: 3px; overflow: hidden; }
.bar-cell .bar i { display: block; height: 100%; background: var(--accent); border-radius: 0 3px 3px 0; min-width: 2px; }
.bar-cell.is-good .bar i { background: var(--good); }
.bar-cell.is-bad .bar i { background: var(--bad); }
.bar-cell .v { font-size: 13px; font-weight: 700; white-space: nowrap; min-width: 4.6em; }
.bar-cell.is-good .v { color: var(--good); }
.bar-cell.is-bad .v { color: var(--bad); }

/* ---------- footer ---------- */
.site-footer {
  background: var(--bg-sunken);
  border-top: 1px solid var(--hair);
  padding: 48px 0 64px;
  font-size: 13.5px;
  color: var(--text-dim);
  margin-top: 72px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 28px; margin-bottom: 36px; }
.footer-grid h4 {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-grid a { color: var(--text-dim); }
.footer-grid a:hover { color: var(--text); }
.footer-legal { font-size: 11.5px; color: var(--text-faint); line-height: 1.9; border-top: 1px solid var(--hair); padding-top: 20px; }

/* ---------- 診断 ---------- */
.quiz {
  background: var(--bg-raised);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 660px;
}
.quiz h2 { margin: 0 0 4px !important; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.quiz .quiz-lede { font-size: 13.5px; color: var(--text-dim); margin: 0 0 22px; }
.quiz-dots { display: flex; gap: 5px; margin-bottom: 22px; }
.quiz-dots i { width: 32px; height: 3px; border-radius: 2px; background: var(--hair-strong); }
.quiz-dots i.on { background: var(--accent); }
.quiz-step { display: none; }
.quiz-step.on { display: block; }
.quiz-q { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; margin: 0 0 14px; }
.quiz-n {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  color: var(--text-faint);
  margin: 0 0 6px;
}
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  text-align: left;
  background: var(--bg);
  color: var(--text);
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 600;
  padding: 13px 17px;
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  cursor: pointer;
  line-height: 1.55;
  transition: border-color .12s ease, background .12s ease;
}
.quiz-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.quiz-opt small { display: block; color: var(--text-faint); font-size: 12px; font-weight: 400; }
.quiz-result { display: none; }
.quiz-result.on { display: block; }
.quiz-reset {
  background: none;
  border: 0;
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  margin-top: 16px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.quiz-reset:hover { color: var(--text-dim); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
  .site-nav { display: none; }
  .site-header .wrap { justify-content: space-between; }
  .nav-mobile {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 8px 24px 10px;
    font-size: 13px;
    font-weight: 600;
    border-top: 1px solid var(--hair);
    scrollbar-width: none;
  }
  .nav-mobile::-webkit-scrollbar { display: none; }
  .nav-mobile a { color: var(--text-dim); white-space: nowrap; }
  .nav-mobile a[aria-current="true"] { color: var(--accent); }
  .sticky-cta { display: flex; }
  body.has-sticky { padding-bottom: 74px; }
  .proscons { grid-template-columns: 1fr; }
  .rank-card { grid-template-columns: 1fr; gap: 8px; padding: 22px; }
  .hero { padding: 36px 0 28px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .brand::after { display: none; }
}
@media (min-width: 901px) { .nav-mobile { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn { transition: none; }
  .card:hover, .btn:hover { transform: none; }
}

@media print {
  .site-header, .site-footer, .sticky-cta, .toc, .cta-card, .cta-inline { display: none !important; }
}
