:root {
  --ink: #2c241c;
  --brown: #4a3826;
  --terracotta: #c1652f;
  --terracotta-dark: #a04f22;
  --sage: #6f8f68;
  --cream: #faf6ee;
  --white: #ffffff;
  --line: #e6dbc8;
  --muted: #8a7d6a;
  --sans: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --radius: 18px;
  --shadow: 0 12px 30px -18px rgba(44, 36, 28, 0.35);
}

* {
  box-sizing: border-box;
}

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

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

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

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

a:hover {
  color: var(--terracotta);
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: var(--white);
  padding: 0.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(250, 246, 238, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

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

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--terracotta);
  color: #fff;
  font-size: 1.2rem;
}

.brand strong {
  font-family: var(--serif);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
}

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

.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--brown);
  margin: 6px 0;
  border-radius: 2px;
}

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

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

.global-nav a {
  display: block;
  padding: 8px 14px;
  color: var(--ink);
  font-size: 0.78rem;
  text-decoration: none;
  border-radius: 999px;
  white-space: nowrap;
}

.global-nav a:hover,
.global-nav a[aria-current="page"] {
  background: var(--terracotta);
  color: #fff;
}

/* ===== hero ===== */
.hero-block {
  position: relative;
  max-width: 1180px;
  margin: 24px auto 0;
  border-radius: 28px;
  min-height: 440px;
  display: grid;
  align-items: end;
  overflow: hidden;
  box-shadow: var(--shadow);
}

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

.hero-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(30, 20, 10, 0.86) 5%, rgba(30, 20, 10, 0.28) 55%, rgba(30, 20, 10, 0.08) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  width: min(880px, calc(100% - 64px));
  margin: 0 auto;
  padding: 70px 0 46px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffe4cf;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.2vw, 3.4rem);
  line-height: 1.45;
  letter-spacing: 0.03em;
  margin: 0 0 16px;
  max-width: 760px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 2px rgba(0, 0, 0, 0.6);
}

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

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

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

.article {
  min-width: 0;
}

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

.article h2 {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 2.3vw, 1.9rem);
  line-height: 1.5;
  letter-spacing: 0.03em;
  margin: 0 0 22px;
  padding: 12px 20px;
  background: var(--white);
  border-radius: 14px;
  border-left: 6px solid var(--terracotta);
  box-shadow: var(--shadow);
}

.article h3 {
  font-family: var(--serif);
  line-height: 1.6;
  color: var(--brown);
  margin: 1.8em 0 0.6em;
}

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

/* ===== sidebar ===== */
.sidebar {
  position: sticky;
  top: 128px;
  display: grid;
  gap: 22px;
}

.sidebar nav,
.ad-slot {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.sidebar h2 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--brown);
}

.sidebar ol {
  margin: 0;
  padding-left: 1.2rem;
}

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

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

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

.ad-slot span {
  display: inline-block;
  color: var(--muted);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.ad-slot strong {
  display: block;
  font-family: var(--serif);
  line-height: 1.55;
  color: var(--brown);
}

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

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

.related-links {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.82rem;
}

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

/* ===== related / cards ===== */
.related {
  border-top: 1px solid var(--line);
  padding-top: 48px;
}

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

.related-grid article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.related-grid h3 {
  font-size: 1rem;
  margin: 0 0 10px;
  font-family: var(--serif);
}

.related-grid p {
  font-size: 0.8rem;
  line-height: 1.65;
  margin: 0;
  color: var(--muted);
}

.related-sites {
  background: #f1ead9;
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 46px;
}

.related-sites h2 {
  margin-top: 0;
}

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

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

.report-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.report-grid article {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.report-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.report-grid h3 {
  margin: 12px 0 8px;
  font-family: var(--serif);
}

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

.overview-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px;
}

/* ===== blog cards ===== */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.blog-card > div {
  padding: 20px;
}

.blog-card time {
  font-size: 0.7rem;
  color: var(--muted);
}

.blog-card h2,
.blog-card h3 {
  font-size: 1.02rem;
  margin: 8px 0;
  font-family: var(--serif);
}

.blog-card p {
  font-size: 0.8rem;
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}

.post-meta {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 0.75rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 32px;
}

/* ===== footer ===== */
.site-footer {
  background: var(--brown);
  color: #f1e6d5;
  padding: 56px 24px 20px;
}

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

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

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

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

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

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

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

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

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

.copyright {
  max-width: 1180px;
  margin: 18px auto 0;
  padding-top: 0;
  font-size: 0.65rem;
  color: #cbb797;
}

.no-scroll {
  overflow: hidden;
}

/* ===== responsive ===== */
@media (max-width: 800px) {
  html {
    scroll-padding-top: 4.5rem;
  }
  .brand-row {
    min-height: 66px;
    padding: 10px 18px;
  }
  .brand strong {
    font-size: 0.94rem;
  }
  .brand small {
    font-size: 0.48rem;
  }
  .menu-toggle {
    display: block;
  }
  .global-nav {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    top: 66px;
    /* bottom:0 は使わない: .site-header の backdrop-filter が固定要素の
       containing block になり、高さが header 自身の高さ基準で計算されて
       ナビがほぼ0pxに潰れる（メニューを開いてもリンクが出ない不具合の原因）。
       viewport 基準の高さを明示することで回避する。 */
    height: calc(100vh - 66px);
    background: var(--cream);
    overflow: auto;
  }
  .global-nav.is-open {
    display: block;
  }
  .global-nav ul {
    display: block;
    padding: 14px 22px;
  }
  .global-nav a {
    font-size: 0.92rem;
    padding: 13px 14px;
    border-radius: 12px;
    margin-bottom: 6px;
  }
  .hero-block {
    margin: 14px auto 0;
    border-radius: 20px;
    min-height: 400px;
  }
  .hero-copy {
    width: calc(100% - 40px);
    padding: 60px 0 38px;
  }
  .hero-copy h1 {
    font-size: clamp(1.7rem, 8vw, 2.3rem);
    overflow-wrap: anywhere;
  }
  .hero-copy > p:last-child {
    font-size: 0.92rem;
  }
  .container {
    width: calc(100% - 36px);
  }
  .content-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 44px;
    padding-bottom: 60px;
  }
  .article > section {
    margin-bottom: 48px;
  }
  .article h2 {
    font-size: 1.3rem;
  }
  .sidebar {
    position: static;
  }
  .related-grid,
  .report-grid,
  .blog-cards {
    grid-template-columns: 1fr;
  }
  .related-sites {
    padding: 20px;
  }
  .related-sites a {
    display: block;
  }
  .related-sites strong,
  .related-sites span {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
  .overview-block {
    padding: 24px;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 15px;
  }
  .brand-mark {
    display: none;
  }
  .hero-block {
    min-height: 380px;
  }
  .sidebar nav,
  .ad-slot {
    padding: 20px;
  }
  .article h2 {
    padding: 10px 14px;
  }
  .blog-card > div {
    padding: 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: #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 */
