:root {
  --ink: #2b1c14;
  --roast: #241611;
  --roast-soft: #362216;
  --paper: #f7efe2;
  --card: #fffaf1;
  --rust: #b1502c;
  --rust-deep: #8a3c20;
  --gold: #c99a52;
  --gold-soft: #e7cfa0;
  --line: #e3d3ba;
  --muted: #7c6a57;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 7.5rem; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .02em;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--rust-deep); text-underline-offset: .2em; }
a:hover { color: var(--rust); }
.skip-link { position: fixed; left: 1rem; top: -5rem; background: var(--card); padding: .6rem 1.1rem; border-radius: 999px; z-index: 999; }
.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 239, 226, .82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.brand-row {
  max-width: 1180px;
  min-height: 66px;
  margin: auto;
  padding: 11px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--roast); line-height: 1.2; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(155deg, var(--rust), var(--rust-deep));
  color: #fdf3e4;
  font-family: var(--serif);
  font-size: 1.02rem;
  box-shadow: 0 3px 8px rgba(139, 68, 32, .35);
}
.brand strong { font-family: var(--serif); font-size: 1.08rem; letter-spacing: .07em; }
.brand small { display: block; color: var(--muted); font-size: .56rem; letter-spacing: .16em; margin-top: 4px; }
.menu-toggle { display: none; width: 44px; height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.menu-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--roast); margin: 5px; transition: transform .2s ease, opacity .2s ease; }
.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); }
.global-nav { border-top: 1px solid var(--line); }
.global-nav ul { max-width: 1180px; margin: auto; padding: 6px 14px; display: flex; flex-wrap: wrap; justify-content: center; list-style: none; gap: 2px; }
.global-nav a { display: block; padding: 9px 14px; color: var(--ink); font-size: .76rem; text-decoration: none; border-radius: 999px; white-space: nowrap; }
.global-nav a:hover { background: var(--gold-soft); color: var(--rust-deep); }
.global-nav a[aria-current="page"] { background: var(--rust); color: #fff6ea; }

/* Hero */
.hero-block {
  position: relative;
  max-width: 1440px;
  margin: auto;
  background: var(--roast);
  min-height: 470px;
  display: grid;
  align-items: end;
  overflow: hidden;
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 220, 170, .16) 0, transparent 3%),
    radial-gradient(circle at 62% 58%, rgba(255, 220, 170, .12) 0, transparent 2.4%),
    radial-gradient(circle at 84% 30%, rgba(255, 220, 170, .14) 0, transparent 2.8%),
    linear-gradient(180deg, rgba(24, 14, 9, .78), rgba(24, 14, 9, .3) 46%, rgba(24, 14, 9, .82));
}
.hero-copy { position: relative; z-index: 1; color: #fff8ec; width: min(1120px, calc(100% - 48px)); margin: 0 auto; padding: 78px 0 58px; }
.eyebrow { margin: 0 0 12px; color: var(--gold-soft); font-size: .72rem; font-weight: 700; letter-spacing: .24em; }
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.7rem);
  line-height: 1.42;
  letter-spacing: .05em;
  margin: 0 0 18px;
  max-width: 900px;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .55), 0 1px 0 rgba(0, 0, 0, .4);
}
.hero-copy > p:last-child { max-width: 760px; font-size: 1.05rem; margin: 0; color: #f3e6d2; text-shadow: 0 2px 6px rgba(0, 0, 0, .5); }

/* Layout */
.container { width: min(1120px, calc(100% - 48px)); margin: auto; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 60px; align-items: start; padding-top: 68px; padding-bottom: 90px; }
.article { min-width: 0; }
.article > section { margin: 0 0 62px; }
.article h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.4vw, 1.95rem);
  line-height: 1.55;
  letter-spacing: .04em;
  margin: 0 0 22px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--line);
  position: relative;
}
.article h2::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rust);
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 0 4px var(--gold-soft);
}
.article h3 { font-family: var(--serif); line-height: 1.6; color: var(--roast-soft); }
.article p { margin: 0 0 1.35em; }
.article ul, .article ol { margin: 0 0 1.35em; padding-left: 1.4em; }
.article li { margin-bottom: .5em; }

/* Overview (top page) */
.overview-block { padding: 56px 0 12px; }
.overview-block h2 { font-family: var(--serif); font-size: 1.5rem; margin: 0 0 20px; }
.overview-block p { margin: 0 0 1.2em; max-width: 74ch; }

/* Latest commentary */
.latest-commentary { padding: 8px 0 40px; }
.latest-commentary h2 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 16px; }
.latest-commentary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.latest-commentary-list li { display: flex; gap: 14px; align-items: baseline; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; }
.latest-commentary-list time { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.latest-commentary-list a { text-decoration: none; font-size: .92rem; }
.latest-commentary-more { margin: 14px 0 0; font-size: .84rem; }

/* Report / page cards */
.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.report-grid article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 10px 22px -18px rgba(43, 28, 20, .6);
}
.report-grid span { display: inline-block; font-family: var(--serif); font-size: .72rem; color: #fff; background: var(--gold); border-radius: 999px; padding: 2px 10px; letter-spacing: .06em; }
.report-grid h3 { margin: 12px 0 8px; font-size: 1.05rem; }
.report-grid p { font-size: .84rem; line-height: 1.7; margin: 0; color: var(--muted); }

/* Sidebar */
.sidebar { position: sticky; top: 132px; display: grid; gap: 22px; }
.sidebar nav, .ad-slot { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.sidebar h2 { font-family: var(--serif); font-size: 1rem; margin: 0 0 14px; }
.sidebar ol { margin: 0; padding-left: 0; list-style: none; counter-reset: toc; }
.sidebar ol li { counter-increment: toc; padding-left: 30px; position: relative; }
.sidebar ol li::before {
  content: counter(toc);
  position: absolute; left: 0; top: -1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold-soft); color: var(--rust-deep);
  font-size: .66rem; font-weight: 700; display: grid; place-items: center;
}
.sidebar li + li { margin-top: 10px; }
.sidebar a { font-size: .84rem; text-decoration: none; }
.sidebar a:hover { text-decoration: underline; }
.ad-slot { border-style: dashed; border-color: var(--gold); position: relative; }
.ad-slot span { display: block; color: var(--muted); font-size: .58rem; letter-spacing: .18em; border-bottom: 1px dashed var(--line); margin-bottom: 14px; padding-bottom: 10px; }
.ad-slot strong { display: block; font-family: var(--serif); line-height: 1.55; margin-bottom: 6px; }
.ad-slot p { font-size: .78rem; line-height: 1.65; color: var(--muted); }
.ad-slot > a { display: inline-block; background: var(--rust); color: #fff6ea; padding: 9px 18px; border-radius: 999px; text-decoration: none; font-size: .82rem; margin-top: 4px; }
.ad-slot > a:hover { background: var(--rust-deep); }
.related-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.related-links a { font-size: .84rem; text-decoration: none; }
.related-links a:hover { text-decoration: underline; }

/* Related / related-sites */
.related { border-top: 1px solid var(--line); padding-top: 50px; }
.related h2, .related-sites h2 { font-family: var(--serif); font-size: 1.3rem; margin: 0 0 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid article { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.related-grid h3 { font-size: 1rem; margin: 0 0 10px; }
.related-grid p { font-size: .8rem; line-height: 1.65; margin: 0; color: var(--muted); }
.related-sites { background: #efe1c9; border-radius: 18px; padding: 28px; margin-top: 44px; }
.related-sites ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.related-sites a { display: flex; align-items: baseline; gap: 16px; text-decoration: none; }
.related-sites strong { min-width: 110px; color: var(--roast); }
.related-sites span { font-size: .78rem; color: var(--muted); }

.blog-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.blog-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.blog-card > div { padding: 20px; }
.blog-card time { font-size: .72rem; color: var(--muted); }
.blog-card h3 { font-size: 1rem; margin: 8px 0; }
.blog-card p { font-size: .8rem; line-height: 1.7; margin: 0; color: var(--muted); }

/* Footer */
.site-footer { background: var(--roast); color: #ecdcc4; padding: 56px 24px 20px; border-radius: 28px 28px 0 0; }
.footer-grid { max-width: 1120px; margin: auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 56px; }
.footer-grid h2 { font-family: var(--serif); font-size: 1rem; color: #fff8ec; margin: 0 0 14px; }
.footer-grid p { font-size: .78rem; max-width: 380px; color: #d8c3a4; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a { color: #ecdcc4; font-size: .8rem; margin-bottom: 8px; text-decoration: none; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-note { max-width: 1120px; margin: 8px auto 0; font-size: .72rem; color: #c9ae87; border-top: 1px solid #4a3423; padding-top: 16px; }
.footer-links { max-width: 1120px; margin: 26px auto 0; padding-top: 18px; border-top: 1px solid #4a3423; display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-links a { color: #ecdcc4; font-size: .78rem; text-decoration: none; }
.footer-links a:hover { color: var(--gold-soft); text-decoration: underline; }
.copyright { max-width: 1120px; margin: 18px auto 0; font-size: .65rem; color: #a98d6c; }

@media (max-width: 800px) {
  html { scroll-padding-top: 5rem; }
  .brand-row { min-height: 62px; padding: 9px 18px; }
  .brand strong { font-size: .94rem; }
  .brand small { font-size: .48rem; }
  .menu-toggle { display: block; }
  .global-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; top: 62px;
    height: calc(100vh - 62px);
    background: var(--paper);
    overflow: auto;
    border-top: 0;
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { display: block; padding: 16px 22px; gap: 0; }
  .global-nav a { border-radius: 12px; font-size: .92rem; padding: 13px 14px; margin-bottom: 6px; }
  .hero-block { min-height: 420px; }
  .hero-copy { width: calc(100% - 36px); padding: 62px 0 40px; }
  .hero-copy h1 { font-size: clamp(1.8rem, 8.6vw, 2.4rem); overflow-wrap: anywhere; }
  .hero-copy > p:last-child { font-size: .92rem; }
  .container { width: calc(100% - 36px); }
  .content-layout { grid-template-columns: 1fr; gap: 40px; padding-top: 46px; padding-bottom: 60px; }
  .article > section { margin-bottom: 48px; }
  .article h2 { font-size: 1.36rem; }
  .sidebar { position: static; grid-row: 1; }
  .related-grid, .report-grid { grid-template-columns: 1fr; }
  .related-sites { padding: 22px; }
  .related-sites a { display: block; }
  .related-sites strong, .related-sites span { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid p { margin-bottom: 0; }
  .site-footer { border-radius: 20px 20px 0 0; }
}
@media (max-width: 420px) {
  body { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; font-size: .9rem; }
  .hero-block { min-height: 388px; }
  .hero-copy { padding-top: 52px; }
  .sidebar nav, .ad-slot { padding: 20px; }
}

/* 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: #0b5;
  text-decoration: underline;
}
.latest-commentary-more {
  margin-top: 1.25rem;
}
.latest-commentary-more a {
  color: #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 見出し最終行孤立文字対策 (AGENTS.md NoGo) */
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 */
