:root {
  --ink: #2b2019;
  --brand: #7a2e1f;
  --brand-dark: #551f15;
  --gold: #b9832a;
  --gold-light: #e8c98a;
  --paper: #faf5ec;
  --panel: #fffaf1;
  --line: #e3d5bf;
  --muted: #756a5c;
  --tag-yellow: #f4c548;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --mono: "Roboto Mono", "SFMono-Regular", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 8.5rem;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.9;
  overflow-x: hidden;
}

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

a {
  color: var(--brand);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: #fff;
  padding: 0.6rem 1.1rem;
  z-index: 999;
  border: 2px solid var(--brand);
}

.skip-link:focus {
  top: 1rem;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 236, 0.97);
  border-bottom: 3px solid var(--brand);
  backdrop-filter: blur(4px);
}

.brand-row {
  max-width: 1200px;
  min-height: 74px;
  margin: auto;
  padding: 12px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.15rem;
  box-shadow: 0 0 0 3px var(--gold-light);
}

.brand strong {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  display: block;
}

.brand small {
  display: block;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  margin-top: 3px;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 9px;
  border: 2px solid var(--brand);
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--brand);
  margin: 6px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.global-nav {
  border-top: 1px solid var(--line);
  background: var(--panel);
}

.global-nav ul {
  max-width: 1200px;
  margin: auto;
  padding: 0 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  list-style: none;
}

.global-nav a {
  display: block;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  border-color: var(--gold);
  color: var(--brand);
}

/* ---------- Hero ---------- */
.hero-block {
  position: relative;
  max-width: 1480px;
  margin: auto;
  background: var(--brand-dark);
  min-height: 460px;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(41, 17, 10, 0.15) 0%, rgba(41, 17, 10, 0.55) 55%, rgba(30, 12, 7, 0.92) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 56px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  background: var(--tag-yellow);
  color: var(--brand-dark);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  clip-path: polygon(0 0, 100% 0, 92% 100%, 0% 100%);
}

.hero-copy h1 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 18px;
  max-width: 900px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.7);
}

.hero-copy > p:last-child {
  max-width: 760px;
  font-size: 1.02rem;
  margin: 0;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ---------- Layout ---------- */
.container {
  width: min(1120px, calc(100% - 48px));
  margin: auto;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 60px;
  align-items: start;
  padding-top: 68px;
  padding-bottom: 88px;
}

.content-layout-single {
  padding-top: 68px;
  padding-bottom: 88px;
}

.article {
  min-width: 0;
}

.article > section {
  margin: 0 0 64px;
}

.article h2 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.5;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
  padding: 0 0 14px;
  border-bottom: 3px solid var(--brand);
  position: relative;
}

.article h2::before {
  content: "¥";
  display: inline-block;
  margin-right: 10px;
  color: var(--gold);
  font-family: var(--mono);
  font-weight: 700;
}

.article h3 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.12rem;
  line-height: 1.6;
  margin: 0 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
}

.article p {
  margin: 0 0 1.3em;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: sticky;
  top: 132px;
  display: grid;
  gap: 22px;
}

.sidebar nav,
.ad-slot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  padding: 22px;
}

.sidebar h2 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 0.98rem;
  margin: 0 0 12px;
}

.sidebar ol,
.sidebar ul {
  margin: 0;
  padding-left: 1.15rem;
}

.sidebar li + li {
  margin-top: 8px;
}

.sidebar a {
  font-size: 0.83rem;
  text-decoration: none;
}

.sidebar a:hover {
  text-decoration: underline;
}

.ad-slot {
  border-top-color: var(--gold);
}

.ad-slot span {
  display: inline-block;
  color: var(--brand-dark);
  background: var(--tag-yellow);
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: 2px 8px;
  margin-bottom: 12px;
}

.ad-slot strong {
  display: block;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 8px;
}

.ad-slot p {
  font-size: 0.78rem;
  line-height: 1.65;
  margin: 0 0 12px;
}

.ad-slot > a {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 0.82rem;
}

.ad-slot > a:hover {
  background: var(--brand-dark);
  color: #fff;
}

/* ---------- Related blocks ---------- */
.related {
  border-top: 1px solid var(--line);
  padding-top: 50px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.related-grid article {
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  padding: 22px;
}

.related-grid h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  border: 0;
  padding: 0;
}

.related-grid p {
  font-size: 0.8rem;
  line-height: 1.65;
  margin: 0;
}

.related-sites {
  background: #f2e6cf;
  padding: 28px;
  margin-top: 46px;
}

.related-sites h2 {
  border: 0;
  padding: 0;
}

.related-sites h2::before {
  content: none;
}

.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;
  color: var(--ink);
}

.related-sites strong {
  min-width: 118px;
  color: var(--brand-dark);
}

.related-sites span {
  font-size: 0.78rem;
  color: var(--muted);
}

/* ---------- Report grid (TOP) ---------- */
.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 30px;
}

.report-grid article {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  padding: 24px 22px 22px;
}

.report-grid span {
  display: inline-block;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.72rem;
  color: #fff;
  background: var(--gold);
  padding: 2px 9px;
}

.report-grid h3 {
  margin: 10px 0 8px;
  border: 0;
  padding: 0;
}

.report-grid h3 a {
  color: var(--ink);
  text-decoration: none;
}

.report-grid h3 a:hover {
  color: var(--brand);
}

.report-grid p {
  font-size: 0.83rem;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brand-dark);
  color: #f1e6d6;
  padding: 56px 24px 20px;
}

.footer-grid {
  max-width: 1120px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 56px;
}

.footer-grid h2 {
  font-family: var(--sans);
  font-weight: 900;
  font-size: 1rem;
  color: #fff;
  margin: 0 0 14px;
}

.footer-grid p {
  font-size: 0.78rem;
  max-width: 380px;
  color: #d8c6ab;
}

.footer-grid nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid a {
  color: #f1e6d6;
  font-size: 0.8rem;
  margin-bottom: 8px;
  text-decoration: none;
}

.footer-grid a:hover {
  text-decoration: underline;
}

.footer-links {
  max-width: 1120px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid #7a4a35;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #d8c6ab;
  font-size: 0.78rem;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
  text-decoration: underline;
}

.copyright {
  max-width: 1120px;
  margin: 16px auto 0;
  padding-top: 0;
  font-size: 0.65rem;
  color: #b79b7c;
}

/* ---------- Responsive ---------- */
@media (max-width: 800px) {
  html {
    scroll-padding-top: 5rem;
  }

  .brand-row {
    min-height: 64px;
    padding: 10px 18px;
  }

  .brand strong {
    font-size: 0.92rem;
  }

  .brand small {
    font-size: 0.5rem;
  }

  .menu-toggle {
    display: block;
  }

  .global-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 64px;
    /* .site-header に backdrop-filter があるため、fixed 要素の containing block が
       ビューポートではなく header 自身になる。bottom:0 だと header の低い高さ基準で
       潰れて 1px 未満になってしまうため、ビューポート高さから明示計算する。 */
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    overflow: auto;
  }

  .global-nav.is-open {
    display: block;
  }

  .global-nav ul {
    display: block;
    padding: 14px 22px;
  }

  .global-nav a {
    font-size: 0.92rem;
    padding: 14px 8px;
    border-bottom: 1px solid var(--line);
  }

  .hero-block {
    min-height: 400px;
  }

  .hero-copy {
    width: calc(100% - 36px);
    padding: 56px 0 40px;
  }

  .hero-copy h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.3rem);
    overflow-wrap: anywhere;
  }

  .hero-copy > p:last-child {
    font-size: 0.92rem;
  }

  .container {
    width: calc(100% - 36px);
  }

  .content-layout,
  .content-layout-single {
    padding-top: 44px;
    padding-bottom: 60px;
  }

  .content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .article > section {
    margin-bottom: 48px;
  }

  .article h2 {
    font-size: 1.32rem;
  }

  .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;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }

  .brand-mark {
    display: none;
  }

  .hero-block {
    min-height: 370px;
  }

  .sidebar nav,
  .ad-slot {
    padding: 18px;
  }

  .article h3 {
    padding-left: 12px;
  }
}

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