/* カプセルトイ産業レポート 共通スタイル（ポップ・カプセル・筐体） */
:root {
  --bg: #fff9ef;
  --surface: #ffffff;
  --ink: #25204a;
  --muted: #55507a;
  --accent: #ff5a5f;
  --accent-ink: #c2262d;
  --accent-2: #1fb2bf;
  --accent-2-ink: #12717b;
  --accent-3: #ffc83d;
  --line: #eadfcd;
  --navy: #25204a;
  --teal-pale: #e1f6f7;
  --red-pale: #ffe9e9;
  --yellow-pale: #fff3cc;
  --font-head: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Noto Sans JP", sans-serif;
  --font-body: "M PLUS 1p", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --header-h: 68px;
  --dots: radial-gradient(circle, rgba(37, 32, 74, .07) 1.2px, transparent 1.6px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  background-image: var(--dots);
  background-size: 22px 22px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.95;
  -webkit-text-size-adjust: 100%;
}

body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; }

a { color: var(--accent-2-ink); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.5;
  color: var(--ink);
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 14px;
  z-index: 200;
}
.skip-link:focus { left: 8px; top: 8px; }

.container { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- 共通の飾り: カプセル ---------- */
.cap {
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: linear-gradient(to bottom, var(--c, var(--accent)) 0, var(--c, var(--accent)) 50%, #fff 50%, #fff 100%);
  pointer-events: none;
}

.cap-rule {
  display: block;
  width: 78px;
  height: 20px;
  margin: 28px 0;
  border: 0;
  background:
    radial-gradient(circle at 10px 10px, var(--accent) 8px, transparent 8.6px),
    radial-gradient(circle at 39px 10px, var(--accent-2) 8px, transparent 8.6px),
    radial-gradient(circle at 68px 10px, var(--accent-3) 8px, transparent 8.6px);
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fffdf7;
  border-bottom: 3px solid var(--navy);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0, var(--accent) 40px, var(--accent-2) 40px, var(--accent-2) 80px, var(--accent-3) 80px, var(--accent-3) 120px);
  pointer-events: none;
}

.header-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand-mark { display: inline-flex; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.brand-text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.02rem; white-space: nowrap; }
.brand-text small { font-family: var(--font-head); font-size: .6rem; letter-spacing: .16em; color: var(--muted); white-space: nowrap; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.global-nav a {
  display: block;
  padding: 7px 9px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .8rem;
  color: var(--ink);
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}
.global-nav a:hover { background: var(--yellow-pale); color: var(--ink); }
.global-nav a[aria-current="page"] { background: var(--navy); color: #fff; }
.global-nav a.is-compare::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.global-nav a[aria-current="page"].is-compare::after { background: var(--accent-3); }

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 3px solid var(--navy);
  background: var(--accent-3);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.menu-toggle span { display: block; width: 20px; height: 3px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- ヒーロー（ガチャ筐体パネル） ---------- */
.hero-wrap { padding: 34px 0 40px; }

.machine {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  align-items: center;
  gap: 8px 36px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 44px 34px;
  background: #fff;
  border: 4px solid var(--navy);
  border-radius: 28px;
  box-shadow: 0 8px 0 var(--navy);
  overflow: hidden;
}
.machine::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  background: var(--teal-pale);
  background-image: radial-gradient(circle, rgba(31, 178, 191, .22) 2px, transparent 2.6px);
  background-size: 20px 20px;
  pointer-events: none;
}

.dome-zone { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; min-height: 340px; }
.dome {
  position: relative;
  width: min(320px, 100%);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 6px solid var(--navy);
  overflow: hidden;
  background: #fff;
  box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .7);
}
.dome img { display: block; width: 100%; height: 100%; object-fit: cover; }
.dome::after {
  content: "";
  position: absolute;
  left: 14%;
  top: 8%;
  width: 34%;
  height: 20%;
  border-radius: 50%;
  background: rgba(255, 255, 255, .35);
  transform: rotate(-24deg);
  pointer-events: none;
}
.dome-zone .cap { position: absolute; z-index: 2; }
.dome-zone .cap:nth-of-type(1) { left: 2%; top: 6%; --c: var(--accent); width: 54px; height: 54px; }
.dome-zone .cap:nth-of-type(2) { right: 0; top: 22%; --c: var(--accent-3); width: 40px; height: 40px; }
.dome-zone .cap:nth-of-type(3) { left: 4%; bottom: 8%; --c: var(--accent-2); width: 46px; height: 46px; }
.dome-zone .cap:nth-of-type(4) { right: 6%; bottom: 4%; --c: var(--accent); width: 34px; height: 34px; }

.machine-body { position: relative; z-index: 1; padding-bottom: 54px; }

.eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 2px 14px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--navy);
  background: var(--accent-3);
  border: 2px solid var(--navy);
  border-radius: 999px;
}

.machine-body h1 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.9vw, 3.4rem);
  line-height: 1.4;
  letter-spacing: .01em;
}

.hero-lead { margin: 0 0 22px; max-width: 600px; font-size: 1rem; color: #38336a; }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.btn, .hero-chips a {
  display: inline-block;
  padding: 10px 22px;
  background: var(--accent);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .9rem;
  text-decoration: none;
  border: 2px solid var(--navy);
  border-radius: 999px;
  box-shadow: 0 3px 0 var(--navy);
}
.btn:hover, .hero-chips a:hover { background: #ff7a7e; color: var(--navy); transform: translateY(1px); box-shadow: 0 2px 0 var(--navy); }
.btn.is-outline, .btn-row li:nth-child(even) a { background: #fff; }
.hero-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }

.machine-controls {
  position: absolute;
  right: 28px;
  bottom: 18px;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.coin-slot { width: 74px; height: 12px; border-radius: 8px; background: var(--navy); box-shadow: inset 0 3px 0 rgba(255, 255, 255, .25); }
.knob {
  position: relative;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 4px solid var(--navy);
  background: radial-gradient(circle, var(--navy) 0, var(--navy) 6px, var(--accent-3) 7px, var(--accent-3) 100%);
}
.knob::after { content: ""; position: absolute; left: 50%; top: -6px; width: 6px; height: 16px; margin-left: -3px; border-radius: 3px; background: var(--navy); }

/* 下層ページの縮小版 */
.hero-compact .machine { padding: 22px 36px 22px; grid-template-columns: minmax(0, 24fr) minmax(0, 76fr); }
.hero-compact .machine::before { width: 24%; }
.hero-compact .dome-zone { min-height: 0; }
.hero-compact .dome { width: min(190px, 100%); border-width: 5px; }
.hero-compact .dome-zone .cap { display: none; }
.hero-compact .machine-body { padding-bottom: 0; }
.hero-compact .machine-body h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); margin-bottom: 10px; }
.hero-compact .hero-lead { margin-bottom: 0; font-size: .94rem; }
.hero-compact .machine-controls { display: none; }
.hero-compact .hero-wrap, .hero-wrap.hero-compact { padding: 26px 0 30px; }

/* ---------- レイアウト ---------- */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 44px;
  padding-top: 24px;
  padding-bottom: 80px;
}

.article { min-width: 0; background: var(--surface); border: 3px solid var(--navy); border-radius: 22px; padding: 36px 40px 44px; box-shadow: 0 6px 0 rgba(37, 32, 74, .12); }
.article > section { margin-bottom: 8px; }

.article h2 {
  position: relative;
  margin: 2.4em 0 .9em;
  padding: 2px 0 2px 44px;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
  scroll-margin-top: calc(var(--header-h) + 20px);
}
.article > section:first-child h2 { margin-top: 0; }
.article h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: linear-gradient(to bottom, var(--accent) 0, var(--accent) 50%, #fff 50%, #fff 100%);
}
.article > section:nth-of-type(3n+2) h2::before { background: linear-gradient(to bottom, var(--accent-2) 0, var(--accent-2) 50%, #fff 50%, #fff 100%); }
.article > section:nth-of-type(3n) h2::before { background: linear-gradient(to bottom, var(--accent-3) 0, var(--accent-3) 50%, #fff 50%, #fff 100%); }

.article h3 {
  margin: 1.8em 0 .6em;
  font-size: 1.12rem;
  padding: 4px 0 8px;
  background: repeating-linear-gradient(90deg, var(--line) 0, var(--line) 6px, transparent 6px, transparent 10px) bottom / 100% 3px no-repeat;
}

.article p { margin: 0 0 1.3em; }
.article ul, .article ol { margin: 0 0 1.4em; padding-left: 1.4rem; }
.article li { margin-bottom: .5em; }

.updated { font-size: .8rem; color: var(--muted); margin: 0 0 1em !important; }
.source-note { padding: 12px 16px; background: var(--teal-pale); border-radius: 14px; border: 2px dashed var(--accent-2); font-size: .88rem; color: #1f3d52; }

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; border: 3px solid var(--navy); border-radius: 14px; }
.compare-table, .data-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: .84rem; line-height: 1.7; background: #fff; }
.compare-table th, .compare-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th, .data-table thead th { background: var(--navy); color: #fff; font-family: var(--font-head); font-weight: 800; border-bottom: 4px solid var(--accent-3); white-space: nowrap; }
.compare-table tbody th, .data-table tbody th { background: var(--yellow-pale); font-family: var(--font-head); font-weight: 800; min-width: 8.5em; }
.compare-table tbody tr:nth-child(even) td, .data-table tbody tr:nth-child(even) td { background: #fffaf0; }
.compare-table.narrow-table, .data-table.narrow-table { min-width: 0; }
.table-note { font-size: .84rem; color: var(--muted); }

.article h3 .coin {
  display: inline-block;
  min-width: 2.1em;
  margin-right: 10px;
  padding: 1px 6px;
  text-align: center;
  font-size: .78rem;
  color: var(--navy);
  background: var(--accent-3);
  border: 2px solid var(--navy);
  border-radius: 999px;
}

.calc-box { margin: 0 0 1.4em; padding: 16px 20px; background: var(--yellow-pale); border: 2px solid var(--navy); border-radius: 16px; }
.calc-box h3 { margin-top: 0; background: none; padding: 0 0 6px; }
.calc-box p:last-child, .calc-box ul:last-child { margin-bottom: 0; }

/* ---------- サイドバー ---------- */
.sidebar { align-self: start; position: static; display: grid; gap: 22px; }
@media (min-width: 1280px) {
  .sidebar.is-sticky-fit { position: sticky; top: 92px; }
}
.sidebar nav, .ad-slot { background: var(--surface); border: 3px solid var(--navy); border-radius: 18px; padding: 16px 18px 18px; position: relative; overflow: hidden; }
.sidebar nav::before, .ad-slot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--accent); }
.sidebar nav + nav::before, .ad-slot::before { background: var(--accent-2); }
.sidebar nav h2, .ad-slot strong { display: flex; align-items: center; gap: 8px; margin: 6px 0 12px; font-size: .98rem; font-family: var(--font-head); }
.sidebar nav h2 .icon { color: var(--accent-ink); flex: none; }
.sidebar nav ol { margin: 0; padding-left: 1.3rem; font-size: .85rem; line-height: 1.7; }
.sidebar nav li + li { margin-top: 8px; }
.sidebar-links, .related-links { list-style: none; margin: 0; padding: 0; font-size: .85rem; line-height: 1.7; }
.sidebar-links li + li, .related-links li + li { margin-top: 8px; }
.ad-slot span { font-family: var(--font-head); font-size: .7rem; letter-spacing: .18em; color: var(--accent-2-ink); }
.ad-slot p { margin: 0 0 8px; font-size: .84rem; line-height: 1.7; }
.ad-slot a { font-size: .85rem; font-weight: 800; }

/* ---------- 関連 ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid article { border: 2px solid var(--navy); border-radius: 16px; padding: 14px 16px; background: #fffdf7; }
.related-grid h3 { margin: 0 0 6px; font-size: .96rem; background: none; padding: 0; }
.related-grid p { margin: 0; font-size: .82rem; line-height: 1.7; color: var(--muted); }

.related-sites ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-sites li { margin: 0; }
.related-sites a { display: block; height: 100%; padding: 12px 16px; border: 2px solid var(--navy); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fffdf7; }
.related-sites a:hover { background: var(--yellow-pale); }
.related-sites strong { display: block; font-family: var(--font-head); color: var(--accent-2-ink); }
.related-sites span { font-size: .82rem; line-height: 1.6; color: var(--muted); }

/* ---------- トップ ---------- */
.spacer-lg { height: 28px; }
.index-section { padding: 0 0 56px; }
.index-section h2 {
  position: relative;
  margin: 0 0 20px;
  padding: 2px 0 2px 48px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.index-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: linear-gradient(to bottom, var(--accent) 0, var(--accent) 50%, #fff 50%, #fff 100%);
}
.section-lead { margin: -6px 0 22px; color: var(--muted); font-size: .92rem; }

.intro-block { background: var(--surface); border: 3px solid var(--navy); border-radius: 22px; padding: 34px 40px 38px; box-shadow: 0 6px 0 rgba(37, 32, 74, .12); }
.stage-list { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: stage; }
.stage-list li { position: relative; margin: 0; padding: 50px 14px 16px; border: 2px solid var(--navy); border-radius: 16px; font-size: .84rem; line-height: 1.7; counter-increment: stage; background: #fffdf7; }
.stage-list li::before { content: counter(stage); position: absolute; left: 14px; top: 10px; width: 30px; height: 30px; line-height: 26px; text-align: center; border-radius: 50%; border: 2px solid var(--navy); background: var(--accent-3); color: var(--navy); font-family: var(--font-head); font-weight: 800; font-size: .9rem; }
.stage-list li:nth-child(3n+1)::before { background: var(--accent); }
.stage-list li:nth-child(3n+2)::before { background: var(--accent-2); }
.stage-list strong { display: block; font-family: var(--font-head); margin-bottom: 4px; }
.after-list { margin-top: 1em; }
.stance-title { font-size: 1.1rem; margin: 1.6em 0 .6em; }
.stance-list { margin: 0; padding-left: 1.3rem; }
.stance-list li { margin-bottom: .5em; }

.page-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.page-card {
  --band: var(--accent);
  position: relative;
  background: var(--surface);
  border: 3px solid var(--navy);
  border-radius: 20px;
  padding: 58px 20px 22px;
  overflow: hidden;
  box-shadow: 0 5px 0 rgba(37, 32, 74, .14);
}
.page-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40px; background: var(--band); border-bottom: 3px solid var(--navy); border-radius: 50% 50% 0 0 / 100% 100% 0 0; }
.page-card:nth-child(3n+2) { --band: var(--accent-2); }
.page-card:nth-child(3n) { --band: var(--accent-3); }
.page-card .icon { display: block; color: var(--accent-ink); margin-bottom: 8px; }
.page-card .num {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 1;
  width: 40px;
  height: 40px;
  margin-left: -20px;
  line-height: 34px;
  text-align: center;
  border-radius: 50%;
  border: 3px solid var(--navy);
  background: var(--accent-3);
  color: var(--navy);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: .86rem;
}
.page-card h3 { margin: 0 0 8px; font-size: 1.02rem; padding: 0; background: none; }
.page-card h3 a { color: var(--ink); text-decoration: none; }
.page-card h3 a:hover { color: var(--accent-ink); text-decoration: underline; }
.page-card p { margin: 0; font-size: .86rem; line-height: 1.8; color: #38336a; }
.page-card.is-compare { background: var(--navy); }
.page-card.is-compare h3 a, .page-card.is-compare p { color: #fff; }
.page-card.is-compare .icon { color: var(--accent-3); }
.page-card.is-compare h3 a:hover { color: var(--accent-3); }
.badge { display: inline-block; margin-bottom: 8px; padding: 1px 12px; font-family: var(--font-head); font-size: .72rem; font-weight: 800; background: var(--accent-3); color: var(--navy); border-radius: 999px; }

.latest-commentary { padding: 0 0 56px; }
.latest-commentary:not(:has(li)) { display: none; }
.latest-commentary h2 { position: relative; margin: 0 0 16px; padding: 2px 0 2px 44px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.latest-commentary h2::before { content: ""; position: absolute; left: 0; top: 2px; width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--navy); background: linear-gradient(to bottom, var(--accent-2) 0, var(--accent-2) 50%, #fff 50%, #fff 100%); }
.latest-commentary-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 3px solid var(--navy); border-radius: 18px; overflow: hidden; }
.latest-commentary-list li { display: flex; gap: 16px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-size: .92rem; line-height: 1.7; }
.latest-commentary-list li:last-child { border-bottom: 0; }
.latest-commentary-list time { flex: none; font-size: .8rem; color: var(--accent-ink); padding-top: 2px; }
.latest-commentary-more { margin: 12px 0 0; text-align: right; font-size: .9rem; }

/* ---------- 免責・フッター ---------- */
.site-disclaimer { background: #fff; border-top: 3px solid var(--navy); }
.site-disclaimer p { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 16px 0; font-size: .8rem; line-height: 1.8; color: var(--muted); }

.site-footer {
  position: relative;
  background: var(--navy);
  color: #f3f1ff;
  padding: 56px max(24px, calc((100vw - 1180px) / 2)) 28px;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 16px;
  background:
    radial-gradient(circle at 14px 16px, var(--accent) 13px, transparent 13.6px),
    radial-gradient(circle at 42px 16px, var(--accent-2) 13px, transparent 13.6px),
    radial-gradient(circle at 70px 16px, var(--accent-3) 13px, transparent 13.6px);
  background-size: 84px 16px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.site-footer h2 { margin: 0 0 12px; font-size: 1rem; color: var(--accent-3); }
.site-footer p { margin: 0 0 1em; font-size: .86rem; line-height: 1.8; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--accent-3); }
.site-footer nav a { display: block; margin-bottom: 8px; font-size: .88rem; }
.footer-note { margin-top: 22px !important; font-size: .78rem !important; color: #cfcbea; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.footer-links a { font-size: .85rem; }
.copyright { margin: 18px 0 0 !important; font-size: .74rem !important; color: #cfcbea; }

/* ---------- ブログ見出し帯 ---------- */
.page-band { padding: 26px 0 30px; }
.page-band .container { position: relative; padding: 18px 28px; background: #fff; border: 4px solid var(--navy); border-radius: 28px; box-shadow: 0 6px 0 var(--navy); }
.page-band .eyebrow { margin-bottom: 6px; }
.band-title { margin: 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--ink); }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1279px) {
  .menu-toggle { display: flex; }
  .global-nav {
    position: fixed;
    top: calc(var(--header-h) + 3px);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h) - 3px);
    overflow-y: auto;
    background: #fffdf7;
    padding: 12px 20px 40px;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s, visibility .25s;
  }
  .global-nav.is-open { transform: none; visibility: visible; }
  .global-nav ul { flex-direction: column; gap: 0; }
  .global-nav a { padding: 14px 8px; font-size: 1rem; border-radius: 0; border-bottom: 2px dashed var(--line); }
  .global-nav a[aria-current="page"] { border-radius: 12px; }
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .machine, .hero-compact .machine { grid-template-columns: 1fr; padding: 24px 20px 26px; width: calc(100% - 32px); }
  .machine::before, .hero-compact .machine::before { width: 100%; height: 330px; bottom: auto; }
  .dome-zone { min-height: 290px; }
  .dome { width: min(260px, 100%); }
  .hero-compact .machine::before { height: 190px; }
  .hero-compact .machine-body h1 { font-size: clamp(1.2rem, 5.4vw, 1.9rem); }
  .hero-compact .dome-zone { min-height: 170px; }
  .hero-compact .dome { width: min(150px, 100%); }
  .machine-body { padding-bottom: 6px; }
  .machine-controls { position: static; margin-top: 18px; }
  .hero-compact .machine-body { padding-bottom: 0; }
  .article { padding: 24px 18px 30px; }
  .intro-block { padding: 24px 18px 28px; }
  .stage-list { grid-template-columns: 1fr; }
  .related-grid, .related-sites ul, .footer-grid { grid-template-columns: 1fr; }
  .container { width: calc(100% - 32px); }
  .site-disclaimer p { width: calc(100% - 32px); }
  .latest-commentary-list li { flex-direction: column; gap: 2px; }
  .page-band .container { padding: 14px 18px; }
}

@media (max-width: 600px) {
  .page-grid { grid-template-columns: 1fr; }
  .brand-text strong { font-size: .9rem; }
  .brand-text small { display: none; }
  .site-footer { padding-left: 16px; padding-right: 16px; }
}

/* HEADING-WRAP:START 見出し最終行孤立文字対策 */
h1, h2, h3, h4, .hero-title, .page-title, .card-title { text-wrap: balance; word-break: auto-phrase; line-break: strict; overflow-wrap: break-word; }
/* HEADING-WRAP:END */

/* LATEST-COMMENTARY:START */
.latest-commentary {
  padding: 3rem 0;
}
/* .container を持たないサイトでも端に張り付かないための保険。
   :where() は詳細度0なので、サイト側の .container 定義が常に優先される。 */
:where(.latest-commentary .container) {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
.latest-commentary h2 {
  margin-bottom: 1.25rem;
}
.latest-commentary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-commentary-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line, #e5e5e5);
}
.latest-commentary-list time {
  flex: 0 0 auto;
  color: var(--muted, #666);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.latest-commentary-list a {
  flex: 1 1 16rem;
  min-width: 0;
  color: var(--ink, #222);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-commentary-list a:hover {
  color: var(--accent, #0b5);
  text-decoration: underline;
}
.latest-commentary-more {
  margin-top: 1.25rem;
}
.latest-commentary-more a {
  color: var(--accent, #0b5);
  text-decoration: none;
  font-weight: 600;
}
.latest-commentary-more a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .latest-commentary-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
  /* 縦積み時に flex-basis(16rem) が高さに効かないよう auto に戻す */
  .latest-commentary-list a,
  .latest-commentary-list time {
    flex: 0 0 auto;
  }
}
/* LATEST-COMMENTARY:END */
