/* ビザールプランツ市場レポート 共通スタイル（温室ネームプレート・素焼き） */
:root {
  --bg: #f6f3ea;
  --surface: #fffdf7;
  --ink: #26301f;
  --muted: #6b715c;
  --accent: #4f7a3f;
  --accent-deep: #3d6130;
  --accent-2: #b25d3a;
  --accent-2-deep: #8f4a2c;
  --line: #ddd8c6;
  --glass: #ffffff;
  --footer: #22301c;
  --font-head: "Kaisei Tokumin", "Noto Serif JP", serif;
  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --header-h: 68px;
}

* { 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); text-underline-offset: 3px; }
a:hover { color: var(--accent-2-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  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(--accent); 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: repeating-linear-gradient(90deg, rgba(38, 48, 31, .05) 0, rgba(38, 48, 31, .05) 1px, transparent 1px, transparent 12px);
  border-bottom: 3px double var(--accent-2);
}

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

.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(--glass); border: 1px solid var(--line); border-radius: 6px; }
.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(--accent); white-space: nowrap; }

.global-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.global-nav a {
  display: block;
  padding: 8px 10px;
  font-weight: 500;
  font-size: .84rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.global-nav a:hover { border-bottom-color: var(--accent-2); color: var(--accent-deep); }
.global-nav a[aria-current="page"] { border-bottom-color: var(--accent); background: var(--glass); }
.global-nav a.is-compare::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 5px; border-radius: 50%; background: var(--accent-2); vertical-align: middle; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--glass);
  border-radius: 8px;
  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;
  gap: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 86% 18%, rgba(79, 122, 63, .10), transparent 42%);
  overflow: hidden;
}

.hero-copy {
  padding: 64px 40px 62px max(24px, calc((100vw - 1180px) / 2));
  align-self: center;
  max-width: none;
}

.eyebrow {
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: .74rem;
  letter-spacing: .2em;
  color: var(--accent-2-deep);
}
.eyebrow::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; border: 1px solid var(--accent-2-deep); background: linear-gradient(160deg, var(--accent-2), var(--accent)); vertical-align: middle; }

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.9vw, 3.4rem);
  line-height: 1.4;
  color: var(--ink);
}

.hero-lead { margin: 0 0 24px; max-width: 580px; font-size: 1rem; color: #3c4530; }

.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-weight: 500;
  font-size: .85rem;
  text-decoration: none;
  border-radius: 8px;
}
.hero-chips a:hover { background: var(--accent-2); }

.hero-figure { align-self: center; align-items: start; padding: 40px max(24px, calc((100vw - 1180px) / 2)) 44px 16px; max-width: none; }

/* 温室の開き窓風フレーム */
.hero-frame {
  position: relative;
  display: inline-block;
  width: 100%;
  padding: 10px;
  background: var(--glass);
  border: 1px solid #efeadb;
  border-radius: 14px;
  box-shadow: 0 10px 26px rgba(38, 48, 31, .12);
}
.hero-frame::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid #e9e3d2;
  border-radius: 8px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(79, 122, 63, .18) 0, rgba(79, 122, 63, .18) 2px, transparent 2px, transparent 33.4%),
    repeating-linear-gradient(0deg, rgba(79, 122, 63, .18) 0, rgba(79, 122, 63, .18) 2px, transparent 2px, transparent 50%);
  margin: 0;
}
.hero-frame-inner { position: relative; overflow: hidden; border-radius: 6px; }
.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 8;
  object-fit: cover;
  border-radius: 6px;
}

/* 植物ネームプレート */
.plant-label {
  position: relative;
  width: min(84%, 360px);
  margin: -30px auto 0;
  background: var(--glass);
  border: 1px solid #e9e3d2;
  border-top: 3px solid var(--accent-2);
  border-radius: 8px;
  padding: 18px 18px 12px;
  box-shadow: 0 8px 18px rgba(38, 48, 31, .14);
  text-align: center;
}
.plant-label::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--accent-2);
  background: var(--bg);
}
.plant-label .mono { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; color: var(--muted); }
.plant-label strong { display: block; font-family: var(--font-head); font-size: .92rem; margin-top: 2px; }
.plant-label span { display: block; font-size: .72rem; color: var(--muted); line-height: 1.6; }

.hero-compact .hero-copy { padding-top: 40px; padding-bottom: 38px; }
.hero-compact .hero-copy h1 { font-size: clamp(1.6rem, 3.2vw, 2.5rem); }
.hero-compact .hero-lead { margin-bottom: 0; font-size: .94rem; }
.hero-compact .hero-figure { padding-top: 26px; padding-bottom: 30px; padding-left: 24px; }
.hero-compact .hero-image { aspect-ratio: 16 / 8; }

/* ---------- レイアウト ---------- */
.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-radius: 10px; padding: 36px 40px 44px; }
.article > section { margin-bottom: 8px; }

.article h2 {
  position: relative;
  margin: 2.4em 0 .9em;
  padding: 4px 0 4px 24px;
  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: 8px;
  bottom: 8px;
  width: 7px;
  background: var(--glass);
  border: 1px solid var(--accent);
  border-radius: 50%;
}
.article h2::after { content: ""; position: absolute; left: 12px; top: 4px; bottom: 4px; width: 4px; background: var(--accent); }

.article h3 {
  margin: 1.8em 0 .6em;
  font-size: 1.12rem;
  padding-bottom: 6px;
  background: linear-gradient(var(--line), var(--line)) bottom / 100% 1px no-repeat;
}

.article h4 { margin: 1.4em 0 .4em; font-size: 1rem; }

.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; }
.source-note { padding: 12px 16px; background: #eef2e6; border-left: 4px solid var(--accent); font-size: .88rem; color: #33402a; border-radius: 0 8px 8px 0; }

/* セクション区切り：細線と小さな葉形の点 */
.leaf-rule { position: relative; height: 1px; margin: 34px 0; border: 0; background: var(--line); }
.leaf-rule::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--accent);
  border-top: 1px solid var(--accent);
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ---------- 表 ---------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 1em; border: 1px solid var(--line); border-radius: 8px; }
.compare-table { width: 100%; min-width: 980px; border-collapse: collapse; font-size: .84rem; line-height: 1.7; }
.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(--footer); color: #f4f1e6; font-weight: 600; border-bottom: 3px solid var(--accent-2); white-space: nowrap; }
.compare-table tbody th { background: #eef2e6; font-weight: 700; min-width: 8.5em; }
.compare-table tbody tr:nth-child(even) td { background: #f5f2e7; }
.compare-table.narrow { min-width: 0; max-width: 640px; }
.table-note { font-size: .84rem; color: var(--muted); }

.profile h3 { margin-top: 1.6em; }
.profile h3 .mono { font-family: var(--font-mono); font-size: .8rem; color: var(--accent-2-deep); margin-right: 8px; }

/* ---------- サイドバー ---------- */
.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: 4px solid var(--accent); border-radius: 10px; 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, .facts-list { 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 { border-top-color: var(--accent-2); }
.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: 3px solid var(--accent); border-radius: 8px; padding: 14px 16px; background: var(--glass); }
.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: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--ink); background: var(--glass); }
.related-sites a:hover { border-color: var(--accent-2); }
.related-sites strong { display: block; font-weight: 600; 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 30px;
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
}
.index-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  background: var(--glass);
  border: 1px solid var(--accent);
  border-bottom-right-radius: 18px;
  transform: rotate(-45deg);
}
.section-lead { margin: -6px 0 22px; color: var(--muted); font-size: .92rem; }

.intro-block { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 34px 40px 38px; }
.plate-list { list-style: none; margin: 22px 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: plate; }
.plate-list li {
  position: relative;
  margin: 0;
  padding: 40px 14px 16px 46px;
  border: 1px solid var(--line);
  border-left: 0;
  font-size: .84rem;
  line-height: 1.7;
  counter-increment: plate;
  background: var(--glass);
}
.plate-list li:first-child { border-left: 1px solid var(--line); }
.plate-list li::before {
  content: counter(plate, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 10px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent-2-deep);
  letter-spacing: .1em;
}
.plate-list strong { display: block; margin-bottom: 4px; font-weight: 500; }
.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-radius: 10px; padding: 22px 20px; overflow: hidden; }
.page-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(180deg, #ecf0e2, rgba(236, 240, 226, 0)); }
.page-card .icon { display: block; color: var(--accent); margin-bottom: 8px; position: relative; }
.page-card .num { position: absolute; right: 14px; top: 10px; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; color: var(--accent-2-deep); }
.page-card h3 { margin: 0 0 8px; font-size: 1.02rem; padding: 0; position: relative; }
.page-card h3 a { color: var(--ink); text-decoration: none; }
.page-card h3 a:hover { color: var(--accent-2-deep); text-decoration: underline; }
.page-card p { margin: 0; font-size: .86rem; line-height: 1.8; color: #45503a; position: relative; }
.page-card.is-compare { background: var(--footer); border-color: var(--footer); border-top: 4px solid var(--accent-2); }
.page-card.is-compare::before { content: none; }
.page-card.is-compare h3 a, .page-card.is-compare p { color: #f4f1e6; }
.page-card.is-compare .icon { color: #c9d9a8; }
.page-card.is-compare .num { color: #e8c4ae; }
.page-card.is-compare h3 a:hover { color: #e6baa0; }
.badge { display: inline-block; margin-bottom: 8px; padding: 1px 10px; font-size: .72rem; font-weight: 700; background: var(--accent-2); color: #fff; border-radius: 4px; position: relative; }

/* LATEST-COMMENTARY 空のとき枠ごと非表示 */
.latest-commentary { padding: 0 0 56px; }
.latest-commentary:not(:has(li)) { display: none; }
.latest-commentary h2 { position: relative; margin: 0 0 16px; padding: 4px 0 4px 30px; font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
.latest-commentary h2::before { content: ""; position: absolute; left: 0; top: 10px; width: 16px; height: 16px; background: var(--glass); border: 1px solid var(--accent); border-bottom-right-radius: 18px; transform: rotate(-45deg); }
.latest-commentary-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.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-2-deep); padding-top: 2px; }
.latest-commentary-more { margin: 12px 0 0; text-align: right; font-size: .9rem; }

/* ---------- 免責・フッター（深緑地＋テラコッタの細帯） ---------- */
.site-disclaimer { background: var(--glass); 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(--footer);
  border-top: 5px solid var(--accent-2);
  color: #e9e6d8;
  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; color: #f4f1e6; padding-bottom: 12px; background: linear-gradient(var(--accent-2), var(--accent-2)) bottom left / 56px 4px no-repeat; }
.site-footer p { margin: 0 0 1em; font-size: .86rem; line-height: 1.8; }
.site-footer nav a { display: block; margin-bottom: 8px; font-size: .88rem; color: #e9e6d8; }
.site-footer nav a:hover { color: #fff; }
.footer-note { margin-top: 22px; font-size: .78rem; color: #c3c4ae; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 10px; }
.footer-links a { font-size: .85rem; color: #e9e6d8; }
.copyright { margin: 18px 0 0; font-family: var(--font-mono); font-size: .74rem; color: #c3c4ae; }

.mono { font-family: var(--font-mono); }
.article h3 .mono, .profile h3 .mono { margin-right: 10px; }

/* ---------- ブログ見出し帯 ---------- */
.page-band {
  position: relative;
  background: var(--bg);
  background-image: repeating-linear-gradient(90deg, rgba(38, 48, 31, .04) 0, rgba(38, 48, 31, .04) 1px, transparent 1px, transparent 14px);
  border-bottom: 3px double var(--accent);
  padding: 26px 0 28px;
}
.page-band .eyebrow { margin-bottom: 6px; }
.band-title { margin: 0; font-family: var(--font-head); font-size: clamp(1.3rem, 2.6vw, 1.8rem); color: var(--ink); }

/* ---------- ボタン ---------- */
.btn { display: inline-block; padding: 10px 22px; background: var(--accent); color: #fff; border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .9rem; }
.btn:hover { background: var(--accent-2); color: #fff; }
.btn-outline { display: inline-block; padding: 10px 22px; background: var(--glass); color: var(--accent-deep); border: 1px solid var(--accent); border-radius: 8px; text-decoration: none; font-weight: 500; font-size: .9rem; }
.btn-outline:hover { border-color: var(--accent-2); color: var(--accent-2-deep); }

/* ---------- レスポンシブ ---------- */
/* 全ナビ表示の中間幅（1101–1180px）では詰めて1行に収める（ブランドとの重なり防止） */
@media (min-width: 1101px) and (max-width: 1180px) {
  .header-inner { width: min(1240px, calc(100% - 16px)); gap: 8px; }
  .global-nav { min-width: 0; }
  .global-nav ul { gap: 0; }
  .global-nav a { padding: 8px 5px; font-size: .76rem; }
}
@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);
    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); }
  .plate-list { grid-template-columns: repeat(2, 1fr); }
  .plate-list li { border-left: 1px solid var(--line); border-top: 0; padding-left: 46px; }
  .plate-list li:first-child { border-top: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .hero-block { grid-template-columns: 1fr; }
  .hero-figure { order: -1; padding: 22px 24px 8px; }
  .hero-figure::after { content: ""; display: block; height: 0; }
  .plant-label { margin-top: -56px; }
  .hero-copy { padding: 20px 24px 40px; }
  .hero-image { aspect-ratio: 16 / 9; }
  .article { padding: 24px 18px 30px; }
  .intro-block { padding: 24px 18px 28px; }
  .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; }
  .site-footer { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 600px) {
  .page-grid { grid-template-columns: 1fr; }
  .plate-list { grid-template-columns: 1fr; }
  .brand-text strong { font-size: .88rem; }
  .brand-text small { display: none; }
}

/* HEADING-WRAP:START 見出し最終行孤立文字対策 */
h1, h2, h3, h4, .hero-title, .page-title, .card-title, .band-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 */

/* サイドバーは文書フローに置き、全体が収まる場合だけ追従させる */
html body aside.sidebar {
  position: static !important;
  top: auto !important;
  max-height: none !important;
  overflow: visible !important;
  overscroll-behavior: auto;
}
@media (min-width: 1201px) {
  html body aside.sidebar.sidebar-sticky-fit {
    position: sticky !important;
    top: 84px !important;
    align-self: start !important;
  }
  html body { overflow-x: clip !important; }
}
