:root {
  --paper: #f7f8f4;
  --surface: #ffffff;
  --surface-2: #eef3ef;
  --ink: #26312f;
  --muted: #66736f;
  --line: #d9e1dc;
  --green: #2f6f61;
  --green-dark: #214c45;
  --blue: #315e88;
  --amber: #b26d28;
  --red: #934646;
  --shadow: 0 18px 48px rgba(38, 49, 47, 0.12);
  --radius: 8px;
  --content: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, system-ui, sans-serif;
  line-height: 1.8;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid rgba(217, 225, 220, 0.86);
  background: rgba(247, 248, 244, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 226px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  line-height: 1.3;
  letter-spacing: 0;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.site-nav a {
  border-radius: 999px;
  padding: 6px 11px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #dde8e1;
  color: var(--green-dark);
}

.home-hero {
  position: relative;
  display: grid;
  min-height: 520px;
  align-items: center;
  overflow: hidden;
  background: #192420;
}

.home-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(15, 27, 24, 0.88) 0%, rgba(15, 27, 24, 0.66) 44%, rgba(15, 27, 24, 0.12) 100%),
    linear-gradient(0deg, rgba(15, 27, 24, 0.28), rgba(15, 27, 24, 0.08));
}

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

.home-hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  color: #fff;
}

.home-hero h1 {
  margin: 10px 0 18px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.08;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 17px;
  line-height: 1.95;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-hero .eyebrow {
  color: #f1bd76;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.hero-actions a:first-child {
  border-color: #fff;
  background: #fff;
  color: var(--green-dark);
}

.page-section,
.article-page,
.category-hero {
  width: min(var(--content), calc(100% - 36px));
  margin: 0 auto;
}

.page-section {
  padding: 58px 0;
}

.soft-band {
  width: 100%;
  max-width: none;
  padding-right: max(18px, calc((100vw - var(--content)) / 2));
  padding-left: max(18px, calc((100vw - var(--content)) / 2));
  background: var(--surface-2);
}

.section-heading {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(25px, 4vw, 36px);
  line-height: 1.28;
  letter-spacing: 0;
}

.pathway-grid,
.card-grid,
.category-grid,
.lens-grid,
.perspective-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pathway-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.pathway-card,
.content-card,
.category-card,
.lens-grid > div,
.perspective {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-decoration: none;
}

.pathway-card,
.category-card {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
  padding: 18px;
}

.pathway-card strong,
.category-card span {
  font-size: 18px;
  line-height: 1.45;
}

.pathway-card span,
.category-card em,
.content-card span {
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.7;
}

.pathway-card:hover,
.content-card:hover,
.category-card:hover {
  border-color: rgba(47, 111, 97, 0.5);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.content-card,
.category-card,
.pathway-card {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.content-card {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
}

.content-card strong {
  font-size: 17px;
  line-height: 1.55;
}

.card-category {
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 800;
}

.status-badge {
  width: fit-content;
  margin-top: auto;
  border: 1px solid #dfc18e;
  border-radius: 999px;
  padding: 2px 9px;
  background: #fff7e8;
  color: #7d4d16;
  font-size: 12px;
  font-weight: 800;
}

.status-badge.published {
  border-color: #bdd3c7;
  background: #edf6f1;
  color: var(--green-dark);
}

.is-planned {
  background: linear-gradient(135deg, #fff, #f7f1e8);
}

.lens-grid > div,
.perspective {
  padding: 18px;
}

.lens-grid span,
.perspective span {
  display: block;
  margin-bottom: 8px;
  color: var(--green-dark);
  font-weight: 900;
}

.lens-grid p,
.perspective p {
  margin: 0;
  color: var(--muted);
}

.article-hero,
.category-hero {
  padding: 56px 0 28px;
}

.category-hero {
  padding-bottom: 44px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumbs a {
  color: var(--green-dark);
  font-weight: 800;
  text-decoration: none;
}

.article-hero h1,
.category-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.22;
  letter-spacing: 0;
}

.article-hero .lead,
.category-hero p {
  max-width: 830px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.category-hero strong {
  display: block;
  max-width: 840px;
  margin-top: 18px;
  color: var(--green-dark);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 22px;
}

.quick-links span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-links a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 11px;
  background: #fff;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.article-page {
  padding-bottom: 70px;
}

.perspective-band {
  margin: 24px auto 34px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(190px, 260px) minmax(0, 1fr);
  gap: 34px;
  align-items: start;
}

.toc {
  position: sticky;
  top: 90px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}

.toc h2 {
  margin: 0 0 10px;
  font-size: 16px;
}

.toc ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.toc a {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
}

.toc a:hover {
  color: var(--green-dark);
}

.article-body {
  display: grid;
  gap: 14px;
}

.article-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
}

.article-section h2 {
  margin: 0 0 14px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  letter-spacing: 0;
}

.article-section p {
  margin: 0 0 12px;
}

.article-section p:last-child {
  margin-bottom: 0;
}

.article-section ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

.article-section li + li {
  margin-top: 6px;
}

.formula {
  width: fit-content;
  border-left: 4px solid var(--blue);
  border-radius: 4px;
  padding: 10px 14px;
  background: #eef4f8;
  color: #244868;
  font-weight: 900;
}

.related-card-section {
  margin-top: 44px;
}

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

.related-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  background: var(--surface);
  text-decoration: none;
}

.related-card:hover {
  border-color: var(--green);
  transform: translateY(-1px);
}

.related-card.is-cross-site {
  background: #f8f2e8;
}

.related-card-meta {
  color: var(--amber);
  font-size: 12px;
  font-weight: 800;
}

.related-card h3 {
  margin: 0;
  color: var(--green-dark);
  font-size: 18px;
  line-height: 1.55;
}

.related-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.related-card-cta {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
}

.related-section {
  margin-top: 44px;
}

.related-groups {
  display: grid;
  gap: 20px;
}

.related-group h3 {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 18px;
}

.card-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.compact .content-card {
  min-height: 146px;
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
}

.site-footer {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 30px clamp(18px, 4vw, 42px);
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.site-footer p {
  margin: 4px 0 0;
  color: var(--muted);
}

.site-footer .disclaimer {
  max-width: 880px;
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.7;
}

.site-footer a {
  color: var(--green-dark);
  font-weight: 900;
  text-decoration: none;
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .pathway-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .category-grid,
  .lens-grid,
  .perspective-band,
  .card-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .toc {
    position: static;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand small {
    display: none;
  }

  .site-nav {
    gap: 4px;
  }

  .site-nav a {
    padding: 5px 8px;
    font-size: 12px;
  }

  .home-hero {
    min-height: 560px;
  }

  .home-hero::after {
    background: linear-gradient(90deg, rgba(15, 27, 24, 0.9), rgba(15, 27, 24, 0.52));
  }

  .home-hero-copy {
    width: calc(100% - 28px);
    margin: 0 auto;
  }

  .home-hero p,
  .article-hero .lead,
  .category-hero p {
    font-size: 15px;
  }

  .pathway-grid,
  .card-grid,
  .related-card-grid,
  .category-grid,
  .lens-grid,
  .perspective-band,
  .card-grid.compact {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .pathway-card,
  .content-card {
    min-height: 0;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
