/* フリラ・SDR（ソフトウェア無線）レポート 共通スタイル（周波数ダイヤル・スペクトラム・バイオレット） */
:root {
  --bg: #f7f6f2;
  --surface: #ffffff;
  --ink: #20242b;
  --muted: #5b6473;
  --accent: #7c3aed;
  --accent-deep: #6425cf;
  --accent-ink: #551cc8;
  --accent-pale: #f1ebfd;
  --accent-2: #5b6473;
  --panel: #ffffff;
  --midnight: #191d2c;
  --line: #ddd8cc;
  --font-head: "Kosugi Maru", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Consolas, Menlo, monospace;
  --header-h: 68px;
  /* 目盛り（細い縦線の列） */
  --ticks: repeating-linear-gradient(90deg, rgba(32, 36, 43, .10) 0, rgba(32, 36, 43, .10) 1px, transparent 1px, transparent 12px);
  /* ダイヤル風同心円 */
  --dial: repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 17px, rgba(124, 58, 237, .08) 17px, rgba(124, 58, 237, .08) 18px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  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-deep); text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }

.mono { font-family: var(--font-mono); }

/* 見出しwidow対策4プロパティ必須 */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.55;
  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(--midnight);
  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; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  background-image: var(--ticks);
  border-bottom: 3px solid var(--accent);
}

.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: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.brand-mark {
  display: inline-flex;
  flex: none;
  padding: 3px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.brand-text strong { font-family: var(--font-head); font-size: 1rem; white-space: nowrap; }
.brand-text small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; 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: 8px 9px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .8rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.global-nav a:hover { border-bottom-color: var(--accent); color: var(--accent-ink); }
.global-nav a[aria-current="page"] { border-bottom-color: var(--accent); background: var(--surface); }
.global-nav a.is-compare::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); 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-block {
  position: relative;
  display: grid;
  grid-template-columns: 52fr 48fr;
  background: var(--bg);
  background-image: var(--dial), var(--ticks);
  padding-bottom: 8px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  padding: 60px 44px 56px max(24px, calc((100vw - 1180px) / 2));
  align-self: center;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--accent-ink);
}
.eyebrow::before { content: ""; display: inline-block; width: 28px; height: 3px; margin-right: 10px; vertical-align: middle; background: var(--accent); }

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.9vw, 3.3rem);
  line-height: 1.45;
  letter-spacing: .02em;
  color: var(--ink);
}

.hero-lead { margin: 0 0 24px; max-width: 580px; font-size: .98rem; color: #333a46; }

.hero-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-chips a {
  display: inline-block;
  padding: 8px 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .82rem;
  text-decoration: none;
  border-radius: 6px;
}
.hero-chips a:hover { background: var(--accent-deep); color: #fff; }

.hero-figure { align-self: end; padding: 40px max(24px, calc((100vw - 1180px) / 2)) 0 12px; }
.hero-stage { position: relative; }
.hero-frame {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface);
}
.hero-image { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }

/* チューニングパネル（写真の下端に重ねる周波数パネル） */
.tune-panel {
  position: relative;
  margin: -54px 18px 0;
  padding: 12px 16px 10px;
  background: var(--midnight);
  color: #eef0ff;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(25, 29, 44, .25);
}
.tune-panel .freq {
  display: flex;
  align-items: center;
  gap: 12px;
}
.tune-panel .dial {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--midnight) 0 10px, transparent 10px),
    repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 5px, rgba(238, 240, 255, .45) 5px, rgba(238, 240, 255, .45) 6px),
    #2a3050;
  border: 1px solid #4a5378;
}
.tune-panel .freq-label {
  font-family: var(--font-mono);
  font-size: .82rem;
  letter-spacing: .08em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tune-panel .needle {
  margin: 10px 0 0;
  height: 12px;
  background: var(--ticks), linear-gradient(90deg, transparent 0, transparent 46%, #ffd166 46%, #ffd166 calc(46% + 2px), transparent calc(46% + 2px));
  border-radius: 2px;
}

/* スペクトラム状の縦棒バー */
.spectrum-bar {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2)) 14px 12px;
}
.spectrum-bar span {
  flex: 1;
  background: linear-gradient(180deg, #a785f5, var(--accent));
  border-radius: 2px 2px 0 0;
  min-height: 6px;
}
.spectrum-bar span:nth-child(3n) { height: 44%; opacity: .85; }
.spectrum-bar span:nth-child(4n) { height: 30%; opacity: .7; }
.spectrum-bar span:nth-child(5n) { height: 62%; }
.spectrum-bar span:nth-child(2n) { height: 24%; opacity: .6; }
.spectrum-bar span {
  height: 52%;
}

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

.article { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; padding: 34px 38px 44px; }
.article > section { margin-bottom: 8px; }

.article h2 {
  position: relative;
  margin: 2.4em 0 .9em;
  padding: 4px 0 4px 18px;
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  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; bottom: 4px; width: 8px; border-radius: 4px; background: var(--accent); }

.article h3 {
  margin: 1.8em 0 .6em;
  font-size: 1.1rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.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-family: var(--font-mono); font-size: .8rem; color: var(--muted); margin: 0 0 1em !important; }
.source-note { padding: 12px 16px; background: var(--accent-pale); border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; font-size: .86rem; color: #3a3352; }

/* セクション区切り（バイオレットの細線＋中央の三角形） */
.divider {
  position: relative;
  height: 1px;
  margin: 36px 0;
  border: 0;
  background: var(--accent);
  opacity: .55;
}
.divider::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  transform: translateX(-50%) rotate(45deg);
  width: 8px;
  height: 8px;
  background: var(--bg);
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 6px; }
.compare-table { width: 100%; min-width: 1000px; border-collapse: collapse; font-size: .83rem; line-height: 1.7; background: #fff; }
.compare-table caption { text-align: left; padding: 8px 12px; font-size: .8rem; color: var(--muted); caption-side: bottom; }
.compare-table th, .compare-table td { padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare-table thead th { background: var(--midnight); color: #fff; font-family: var(--font-head); font-weight: 700; border-bottom: 3px solid var(--accent); white-space: nowrap; }
.compare-table tbody th { background: var(--accent-pale); font-family: var(--font-head); font-weight: 700; min-width: 8.5em; }
.compare-table tbody tr:nth-child(even) td { background: #fafaf8; }
.compare-table.narrow { min-width: 0; max-width: 640px; }
.table-note { font-size: .84rem; color: var(--muted); }
.table-note .mono { color: var(--accent-ink); }

.facts { margin: 0 0 1.4em; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.facts li { margin: 0; padding: 8px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; }
.facts li:last-child { border-bottom: 0; }
.facts li strong { font-family: var(--font-head); min-width: 9em; color: var(--accent-ink); }

/* ---------- サイドバー ---------- */
.sidebar { align-self: start; position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 22px; }
.sidebar nav, .ad-slot { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 6px; padding: 16px 18px 18px; }
.sidebar nav h2, .ad-slot strong { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: .98rem; font-family: var(--font-head); }
.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-mono); font-size: .7rem; letter-spacing: .18em; color: var(--accent-2); }
.ad-slot p { margin: 0 0 8px; font-size: .84rem; line-height: 1.7; }
.ad-slot a { font-size: .85rem; font-weight: 700; }

/* ---------- 関連 ---------- */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid article { border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 8px; padding: 14px 16px; background: var(--surface); }
.related-grid h3 { margin: 0 0 6px; font-size: .96rem; padding: 0; border: 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: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--surface); }
.related-sites a:hover { border-color: var(--accent); }
.related-sites strong { display: block; font-family: var(--font-head); color: var(--accent-deep); }
.related-sites span { font-size: .82rem; line-height: 1.6; color: var(--muted); }

/* ---------- トップ ---------- */
.spacer-lg { height: 48px; }
.index-section { padding: 0 0 56px; }
.index-section h2 {
  position: relative;
  margin: 0 0 20px;
  padding: 4px 0 4px 18px;
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
}
.index-section h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 8px; border-radius: 4px; background: var(--accent); }
.section-lead { margin: -6px 0 22px; color: var(--muted); font-size: .92rem; }

.intro-block { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 34px 40px 38px; }
.band-list { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: band; }
.band-list li { position: relative; margin: 0; padding: 40px 14px 16px; border: 1px solid var(--line); border-left: 0; border-radius: 0 0 6px 0; font-size: .84rem; line-height: 1.7; counter-increment: band; background: var(--surface); }
.band-list li:first-child { border-left: 1px solid var(--line); }
.band-list li::before { content: counter(band, decimal-leading-zero); position: absolute; left: 14px; top: 10px; font-family: var(--font-mono); font-size: .78rem; color: var(--accent-ink); letter-spacing: .1em; }
.band-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: 18px; }
.page-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-top: 2px solid var(--accent); border-radius: 8px; padding: 22px 20px; }
.page-card .icon { display: block; color: var(--accent); margin-bottom: 8px; }
.page-card .num { position: absolute; right: 14px; top: 12px; font-family: var(--font-mono); font-size: .82rem; color: var(--accent-ink); letter-spacing: .08em; }
.page-card h3 { margin: 0 0 8px; font-size: 1rem; padding: 0; border: 0; }
.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: .85rem; line-height: 1.8; color: #3a414b; }
.page-card.is-compare { background: var(--midnight); border-color: var(--midnight); border-top: 2px solid var(--accent); }
.page-card.is-compare h3 a, .page-card.is-compare p { color: #f1f2fa; }
.page-card.is-compare .icon { color: #b79af7; }
.page-card.is-compare .num { color: #b79af7; }
.page-card.is-compare h3 a:hover { color: #d3c2fb; }
.badge { display: inline-block; margin-bottom: 8px; padding: 1px 10px; font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; background: var(--accent); color: #fff; border-radius: 4px; }

.latest-commentary { padding: 0 0 56px; }
.latest-commentary h2 { position: relative; margin: 0 0 16px; padding: 4px 0 4px 18px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.latest-commentary h2::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 8px; border-radius: 4px; background: var(--accent); }
.latest-commentary-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; 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-family: var(--font-mono); font-size: .8rem; color: var(--accent-ink); padding-top: 2px; }
.latest-commentary-more { margin: 12px 0 0; text-align: right; font-size: .9rem; }

/* 公開直後の空枠は、記事がないときは丸ごと隠す */
.latest-commentary:not(:has(li)) { display: none; }

/* ---------- 免責・フッター ---------- */
.site-disclaimer { background: var(--surface); border-top: 1px solid var(--line); }
.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 {
  background: var(--midnight);
  color: #eef0fa;
  border-top: 3px solid var(--accent);
  padding: 40px max(24px, calc((100vw - 1180px) / 2)) 28px;
}
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; }
.site-footer h2 { margin: 0 0 12px; font-size: 1rem; padding-bottom: 12px; border-bottom: 2px solid var(--accent); }
.site-footer p { margin: 0 0 1em; font-size: .86rem; line-height: 1.8; color: #c4c9dd; }
.site-footer nav a { display: block; margin-bottom: 8px; font-size: .88rem; color: #eef0fa; }
.footer-note { margin-top: 22px !important; font-size: .78rem !important; color: #9aa1bd !important; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.footer-links a { font-size: .85rem; color: #eef0fa; }
.copyright { margin: 18px 0 0 !important; font-family: var(--font-mono); font-size: .74rem !important; color: #9aa1bd !important; }

/* ---------- 下層ページ見出し帯（ヒーローの縮小版） ---------- */
.page-band {
  position: relative;
  background: var(--bg);
  background-image: var(--dial), var(--ticks);
  padding: 22px 0 26px;
  border-bottom: 1px solid var(--line);
}
.page-band::after { content: ""; display: block; height: 3px; margin-top: 20px; background: linear-gradient(90deg, var(--accent) 0 70%, #ffd166 70% 100%); pointer-events: none; }
.page-band .eyebrow { margin-bottom: 6px; }
.band-title { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--ink); }

/* ---------- ブログ見出し帯・共有 ---------- */
.share-box { margin: 46px 0 40px; padding: 22px 24px; background: var(--bg); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: 8px; text-align: center; }
.share-box h2 { font-size: 1rem; margin: 0 0 14px; padding: 0; border: 0; }
.share-links { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.share-box a { display: inline-block; padding: 9px 20px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 6px; font-size: .82rem; }
.share-box a:hover { background: var(--accent-deep); color: #fff; }

/* ---------- 表の見出し帯カード（比較表ページ） ---------- */
.compare-card { background: var(--midnight); color: #eef0fa; border-radius: 8px; padding: 30px 36px; margin-bottom: 32px; }
.compare-card h2 { color: #fff; margin: 0 0 10px; padding: 0; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.compare-card p { margin: 0; font-size: .9rem; line-height: 1.8; color: #c4c9dd; }
.compare-card .mono { color: #b79af7; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1100px) {
  .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: var(--bg);
    background-image: var(--ticks);
    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 6px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .content-layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: static; }
  .page-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero-block { grid-template-columns: 1fr; }
  .hero-figure { order: -1; padding: 22px 24px 0 24px; }
  .hero-copy { padding: 26px 24px 40px; }
  .tune-panel { margin: -44px 14px 0; }
  .spectrum-bar { padding-left: 24px; padding-right: 24px; }
  .hero-image { aspect-ratio: 16 / 9; }
  .article { padding: 24px 18px 30px; }
  .intro-block { padding: 24px 18px 28px; }
  .band-list { grid-template-columns: 1fr; }
  .band-list li { border-left: 1px solid var(--line); border-top: 0; padding-top: 14px; padding-left: 52px; }
  .band-list li:first-child { border-top: 1px solid var(--line); }
  .band-list li::before { top: 14px; }
  .related-grid { grid-template-columns: 1fr; }
  .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; }
  .compare-card { padding: 22px 20px; }
}

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

/* 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 */

/* 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 */

/* Keep the sidebar in document flow unless its full contents fit the viewport (JS toggles .sidebar--sticky-fit). */
@media (min-width:1201px){
html body{overflow-x:clip!important}
html body aside.sidebar{position:static;max-height:none;overflow:visible}
html body aside.sidebar.sidebar--sticky-fit{position:sticky;top:var(--sidebar-sticky-top,84px);align-self:start}
}
