@import url("https://fonts.googleapis.com/css2?family=Shippori+Mincho:wght@500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap");

:root {
  --ink: #302029;
  --muted: #7d6670;
  --paper: #fbf3ef;
  --white: #ffffff;
  --line: #ecdcd3;
  --rose: #e2577c;
  --rose-deep: #b23a5d;
  --rose-soft: #fbe4ea;
  --gold: #c99a3b;
  --plum: #3a2036;
  --plum-soft: #4d2a45;
  --sans: "Zen Kaku Gothic New", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --serif: "Shippori Mincho", "Noto Serif JP", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }

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

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

img { display: block; max-width: 100%; height: auto; }
a { color: var(--rose-deep); text-underline-offset: 0.2em; }
a:hover { color: var(--rose); }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  background: #fff;
  padding: 0.5rem 1rem;
  z-index: 999;
  border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 243, 239, 0.96);
  backdrop-filter: blur(6px);
  border-bottom: 2px dashed var(--line);
}
.brand-row {
  max-width: 1180px;
  min-height: 76px;
  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(--plum);
  line-height: 1.2;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose), var(--gold));
  color: #fff;
  font-size: 1.1rem;
}
.brand strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.06em;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  margin-top: 4px;
}
.menu-toggle {
  display: none;
  width: 44px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--plum);
  margin: 5px;
  border-radius: 2px;
}
.global-nav { border-top: 1px solid var(--line); }
.global-nav ul {
  max-width: 1180px;
  margin: auto;
  padding: 0 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
}
.global-nav a {
  display: block;
  padding: 11px 12px;
  color: var(--ink);
  font-size: 0.76rem;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.global-nav a:hover,
.global-nav a[aria-current="page"] {
  border-color: var(--rose);
  color: var(--rose-deep);
}

/* ---------- hero ---------- */
.hero-block {
  position: relative;
  max-width: 1440px;
  margin: 18px auto 0;
  border-radius: 22px;
  overflow: hidden;
  background: var(--plum);
  min-height: 460px;
  display: grid;
  align-items: end;
  width: calc(100% - 36px);
}
.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.82;
}
.hero-block::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 32, 54, 0.15) 0%, rgba(58, 32, 54, 0.55) 55%, rgba(58, 32, 54, 0.92) 100%);
}
.hero-copy {
  position: relative;
  z-index: 1;
  color: #fff;
  width: min(1080px, calc(100% - 56px));
  margin: 0 auto;
  padding: 80px 0 52px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 999px;
  padding: 5px 16px;
  color: #ffe3ec;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4.4vw, 3.6rem);
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin: 0 0 18px;
  max-width: 880px;
  color: #fffaf7;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.55), 0 1px 0 rgba(0, 0, 0, 0.4);
}
.hero-copy > p:last-child {
  max-width: 720px;
  font-size: 1.05rem;
  margin: 0;
  text-shadow: 0 2px 10px rgba(0, 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 64px; }
.article h2 {
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 1.95rem);
  line-height: 1.6;
  letter-spacing: 0.04em;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 3px dotted var(--gold);
  color: var(--plum);
}
.article h3 {
  font-family: var(--serif);
  line-height: 1.6;
  color: var(--rose-deep);
}
.article p { margin: 0 0 1.35em; }

/* ---------- sidebar ---------- */
.sidebar { position: sticky; top: 150px; display: grid; gap: 22px; }
.sidebar nav,
.ad-slot {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.sidebar h2 {
  font-family: var(--serif);
  font-size: 1rem;
  margin: 0 0 12px;
  color: var(--plum);
}
.sidebar ol { margin: 0; padding-left: 1.2rem; }
.sidebar li + li { margin-top: 8px; }
.sidebar a { font-size: 0.84rem; }
.ad-slot {
  position: relative;
  background: var(--rose-soft);
  border: 1px dashed var(--rose);
}
.ad-slot span {
  display: block;
  color: var(--rose-deep);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  font-weight: 700;
  margin-bottom: 12px;
}
.ad-slot strong {
  display: block;
  font-family: var(--serif);
  line-height: 1.6;
  color: var(--plum);
}
.ad-slot p { font-size: 0.8rem; line-height: 1.7; }
.ad-slot > a {
  display: inline-block;
  background: var(--rose-deep);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
}
.sidebar .related-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sidebar .related-links a { display: block; font-size: 0.82rem; }

/* ---------- related / grids ---------- */
.related { border-top: 1px dashed var(--line); padding-top: 50px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.related-grid h3 { font-size: 1rem; margin: 0 0 10px; }
.related-grid p { font-size: 0.8rem; line-height: 1.7; margin: 0; }

.related-sites { background: var(--rose-soft); border-radius: 18px; padding: 30px; margin-top: 46px; }
.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: 120px; color: var(--plum); }
.related-sites span { font-size: 0.78rem; color: var(--muted); }

.report-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 28px; }
.report-grid article {
  background: #fff;
  border-radius: 14px;
  border-top: 4px solid var(--gold);
  padding: 22px;
  box-shadow: 0 8px 20px rgba(58, 32, 54, 0.06);
}
.report-grid span { font-size: 0.7rem; color: var(--rose-deep); font-weight: 700; }
.report-grid h3 { margin: 4px 0 8px; font-family: var(--serif); }
.report-grid p { font-size: 0.82rem; line-height: 1.75; margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--plum); color: #f0dfe6; 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(--serif); font-size: 1rem; color: #fff; margin: 0 0 14px; }
.footer-grid p { font-size: 0.78rem; max-width: 380px; }
.footer-grid nav { display: flex; flex-direction: column; align-items: flex-start; }
.footer-grid a { color: #f0dfe6; font-size: 0.8rem; margin-bottom: 8px; text-decoration: none; }
.footer-grid a:hover { color: #fff; text-decoration: underline; }
.footer-links {
  max-width: 1120px;
  margin: 30px auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--plum-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-links a { color: #f0dfe6; font-size: 0.78rem; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright {
  max-width: 1120px;
  margin: 18px auto 0;
  border-top: 0;
  padding-top: 0;
  font-size: 0.66rem;
  color: #c9aebb;
}
.no-scroll { overflow: hidden; }

/* ---------- blog card list (used by later blog build step) ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 28px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.post-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card > div { padding: 20px; }
.post-card time { font-size: 0.7rem; color: var(--muted); }
.post-card h2, .post-card h3 { font-size: 1rem; padding: 0; border: 0; margin: 8px 0; }
.post-card p { font-size: 0.8rem; line-height: 1.7; margin: 0; }

@media (max-width: 800px) {
  html { scroll-padding-top: 5rem; }
  .brand-row { min-height: 66px; padding: 10px 18px; }
  .brand strong { font-size: 0.94rem; }
  .brand small { font-size: 0.5rem; }
  .menu-toggle { display: block; }
  .global-nav {
    display: none;
    position: fixed;
    left: 0; right: 0; top: 66px;
    /* .site-header に backdrop-filter があるため、position:fixed の
       containing block はビューポートではなく .site-header 自身になる。
       bottom:0 だとヘッダーの下端(数十px)までしか高さが出ず、開いたメニューが
       1px 程度に潰れて見えなくなる。vh はコンテイニングブロックに関係なく
       ビューポート基準になるため height で明示的に指定する。 */
    height: calc(100vh - 66px);
    background: var(--paper);
    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 7px; border-bottom: 1px solid var(--line); }
  .hero-block { min-height: 420px; margin-top: 10px; width: calc(100% - 20px); border-radius: 16px; }
  .hero-copy { width: calc(100% - 36px); padding: 60px 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 { grid-template-columns: 1fr; gap: 40px; padding-top: 44px; padding-bottom: 60px; }
  .article > section { margin-bottom: 50px; }
  .article h2 { font-size: 1.4rem; }
  .sidebar { position: static; grid-row: 1; }
  .related-grid, .report-grid, .blog-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 { width: 32px; height: 32px; }
  .hero-block { min-height: 380px; }
  .hero-copy { padding-top: 50px; }
  .sidebar nav, .ad-slot { padding: 18px; }
  .article h2 { padding-bottom: 10px; }
  .post-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 */
