:root {
  --ink: #18201f;
  --muted: #5f6865;
  --line: #dfe5e1;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --deep: #183b36;
  --green: #2f6f5f;
  --red: #b04435;
  --blue: #345f85;
  --gold: #b9893b;
  --shadow: 0 18px 40px rgba(18, 28, 26, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", sans-serif;
  line-height: 1.75;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(223, 229, 225, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

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

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

.brand strong {
  font-size: 15px;
  line-height: 1.2;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--deep);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  line-height: 1.2;
}

.header-cta {
  padding: 0 18px;
  color: #fff;
  background: var(--red);
  font-size: 14px;
}

.hero {
  position: relative;
  min-height: 76vh;
  overflow: hidden;
  color: #fff;
}

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

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 24, 22, 0.84), rgba(12, 24, 22, 0.54) 44%, rgba(12, 24, 22, 0.12)),
    linear-gradient(0deg, rgba(12, 24, 22, 0.45), rgba(12, 24, 22, 0.04) 46%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 76vh;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 92px;
}

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

.hero .eyebrow {
  color: #f3c066;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 24px 0 0;
  font-size: clamp(16px, 2.1vw, 20px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  padding: 0 20px;
  border: 1px solid transparent;
}

.button-primary {
  color: #fff;
  background: var(--red);
}

.button-secondary {
  color: #fff;
  background: var(--blue);
}

.button-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
}

.situation-band,
.reading-section,
.all-guides-section,
.process-section,
.cost-section,
.compare-section {
  padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 56px);
}

.situation-band {
  background: var(--wash);
}

.section-head {
  width: min(920px, 100%);
  margin: 0 auto 28px;
}

.section-head.compact {
  width: min(760px, 100%);
}

.section-head h2,
.compare-copy h2,
.article-main h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-head p:not(.eyebrow),
.compare-copy p,
.article-main .lead {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.situation-tool {
  width: min(920px, 100%);
  margin: 0 auto;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.segment {
  min-height: 48px;
  padding: 8px 10px;
  color: var(--deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.segment.is-active {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

.recommendation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.recommendation > div {
  min-width: 0;
  flex: 1 1 auto;
}

.recommendation h3 {
  margin: 4px 0 8px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.25;
}

.recommendation p {
  margin: 0;
  color: var(--muted);
}

.recommend-label {
  color: var(--red) !important;
  font-size: 12px;
  font-weight: 800;
}

.recommendation .button {
  flex: 0 0 auto;
  min-width: 112px;
  white-space: nowrap;
}

.feature-strip {
  display: grid;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-strip article {
  padding: clamp(28px, 5vw, 56px);
  border-right: 1px solid var(--line);
}

.feature-strip article:last-child {
  border-right: 0;
}

.kicker {
  color: var(--gold);
  font-weight: 900;
}

.feature-strip h2 {
  margin: 8px 0 8px;
  font-size: clamp(24px, 3vw, 36px);
}

.feature-strip p {
  margin: 0;
  color: var(--muted);
}

.article-grid {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-card-link {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.article-card-link:hover h3 {
  color: var(--red);
}

.article-card-link:focus-visible {
  outline: 3px solid rgba(52, 95, 133, 0.35);
  outline-offset: 3px;
}

.article-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.article-body {
  flex: 1;
  padding: 18px;
}

.article-meta {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.article-body h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.article-body p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.all-guides-section {
  background: var(--wash);
}

.guide-list {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide-list a {
  display: flex;
  min-height: 142px;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-list a:hover {
  border-color: rgba(176, 68, 53, 0.45);
  box-shadow: var(--shadow);
}

.guide-list span {
  width: fit-content;
  padding: 3px 9px;
  color: var(--deep);
  background: #eef4f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

.guide-list strong {
  display: block;
  margin-top: 0;
  font-size: 17px;
  line-height: 1.45;
}

.section-actions {
  display: flex;
  width: min(1120px, 100%);
  margin: 24px auto 0;
  justify-content: center;
}

.process-section {
  background: var(--deep);
  color: #fff;
}

.process-section .section-head p {
  color: #f3c066;
}

.process-list {
  display: grid;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  list-style: none;
}

.process-list li {
  min-height: 240px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.process-list span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: var(--deep);
  background: #f3c066;
  border-radius: 50%;
  font-weight: 900;
}

.process-list h3 {
  margin: 22px 0 8px;
  font-size: 20px;
}

.process-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.cost-table-wrap {
  width: min(900px, 100%);
  margin: 0 auto;
  overflow-x: auto;
  border-radius: 8px;
}

.wp-block-table {
  overflow-x: auto;
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 0;
}

.cost-table-wrap table,
.wp-block-table table {
  border: 0;
}

.cost-table-wrap thead,
.wp-block-table thead {
  border-bottom: 1px solid var(--deep);
}

.cost-table-wrap tfoot,
.wp-block-table tfoot {
  border-top: 1px solid var(--line);
}

th,
td {
  padding: 16px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.cost-table-wrap th,
.cost-table-wrap td,
.wp-block-table th,
.wp-block-table td {
  border: 1px solid var(--line);
}

th {
  color: #fff;
  background: var(--deep);
  border: 1px solid var(--deep);
  font-size: 14px;
}

.cost-table-wrap th,
.wp-block-table th {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}

.cost-table-wrap tbody tr:first-child td,
.wp-block-table tbody tr:first-child td {
  border-top-color: var(--deep);
}

.cost-table-wrap tbody tr:last-child td,
.wp-block-table tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.compare-section {
  display: grid;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding-right: 0;
  padding-left: 0;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 440px);
  gap: clamp(24px, 5vw, 72px);
  background: var(--wash);
  box-shadow: 0 0 0 100vmax var(--wash);
  clip-path: inset(0 -100vmax);
}

.compare-copy {
  max-width: 680px;
}

.check-panel,
.side-panel,
.side-cta,
.note-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.check-panel {
  padding: 24px;
  box-shadow: var(--shadow);
}

.check-panel h3 {
  margin: 0 0 16px;
}

.check-panel label {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  color: var(--muted);
}

.check-panel input {
  width: 18px;
  height: 18px;
  accent-color: var(--green);
  flex: 0 0 auto;
  margin-top: 4px;
}

.check-panel .button {
  width: 100%;
  margin-top: 18px;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 36px clamp(18px, 4vw, 56px);
  color: rgba(255, 255, 255, 0.82);
  background: #101817;
}

.site-footer strong {
  color: #fff;
}

.site-footer p {
  margin: 8px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.82);
}

.archive-page {
  background: var(--wash);
}

.archive-hero {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 56px 0 34px;
}

.archive-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.12;
  letter-spacing: 0;
}

.archive-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.archive-content {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 0 0 80px;
}

.archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.archive-toolbar strong,
.archive-toolbar span {
  display: block;
}

.archive-toolbar strong {
  font-size: 18px;
}

.archive-toolbar span {
  color: var(--muted);
  font-size: 13px;
}

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-width: 0;
}

.archive-card {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.archive-card > a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.archive-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.archive-card-body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.archive-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.archive-card-meta span {
  color: var(--blue);
}

.archive-card h2 {
  min-width: 0;
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.archive-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.archive-read-more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.archive-card a:hover h2,
.archive-card a:hover .archive-read-more {
  color: var(--blue);
}

.archive-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
}

.archive-pagination .page-numbers {
  display: grid;
  min-width: 40px;
  height: 40px;
  place-items: center;
  padding: 0 12px;
  color: var(--deep);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.archive-pagination .current {
  color: #fff;
  background: var(--deep);
  border-color: var(--deep);
}

.empty-state {
  padding: 40px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.empty-state h2 {
  margin: 0 0 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.article-header {
  position: sticky;
}

.article-layout {
  display: grid;
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
  padding: 48px 0 80px;
  grid-template-columns: minmax(0, 720px) minmax(280px, 340px);
  gap: 48px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--blue);
}

.article-main {
  min-width: 0;
}

.article-main h1 {
  margin-bottom: 16px;
}

.article-hero {
  width: 100%;
  margin: 28px 0 34px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
}

.article-figure {
  width: 100%;
  max-width: 100%;
  margin: 34px 0;
}

.article-figure img {
  width: 100%;
  height: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(18, 28, 26, 0.1);
}

.article-figure figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.article-photo {
  margin: 34px 0;
}

.article-photo img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(18, 28, 26, 0.1);
}

.article-photo figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.article-toc {
  margin: 32px 0 40px;
  padding: 20px 24px 22px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.article-main .article-toc__title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.35;
}

.article-toc__list {
  display: grid;
  margin: 0;
  padding-left: 1.2em;
  gap: 8px;
}

.article-toc__list li {
  padding-left: 4px;
}

.article-toc__list a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 800;
  line-height: 1.65;
}

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

.article-main h2 {
  scroll-margin-top: 96px;
  margin: 40px 0 12px;
  font-size: 28px;
  line-height: 1.25;
}

.article-main p {
  color: #34403d;
}

.check-list {
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
}

.check-list li::before {
  position: absolute;
  left: 0;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.note-box {
  margin: 22px 0;
  padding: 20px;
  border-left: 5px solid var(--gold);
}

.note-box p {
  margin-bottom: 0;
}

.article-cta {
  margin: 36px 0;
  padding: 24px;
  color: #fff;
  background: var(--deep);
  border-radius: 8px;
}

.article-cta h2 {
  margin-top: 0;
  color: #fff;
}

.article-cta p {
  color: rgba(255, 255, 255, 0.82);
}

.article-cta .button {
  margin-top: 8px;
}

.source-links {
  margin-top: 34px;
  padding: 18px 20px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.source-links h2 {
  margin: 0 0 8px;
  font-size: 18px;
}

.source-links a {
  display: block;
  color: var(--blue);
  font-weight: 700;
}

.article-sidebar {
  position: sticky;
  top: 84px;
  align-self: start;
}

.side-panel,
.side-cta {
  padding: 20px;
}

.side-panel h2,
.side-cta h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.side-panel a {
  display: block;
  padding: 12px 0;
  color: var(--blue);
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.side-cta {
  margin-top: 16px;
  background: var(--wash);
}

.side-cta p {
  color: var(--muted);
}

@media (min-width: 901px) {
  .site-header {
    justify-content: flex-start;
  }

  .site-nav {
    margin-left: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 900px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .header-cta {
    margin-left: auto;
  }

  .hero,
  .hero-inner {
    min-height: 70vh;
  }

  .segmented,
  .article-grid,
  .archive-grid,
  .guide-list,
  .feature-strip,
  .process-list,
  .compare-section,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .feature-strip article {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-strip article:last-child {
    border-bottom: 0;
  }

  .recommendation,
  .archive-toolbar,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .recommendation .button {
    width: 100%;
  }

  .archive-toolbar .button {
    width: 100%;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  .site-header {
    display: grid;
    grid-template-columns: 1fr;
    padding: 12px 18px;
  }

  .brand {
    min-width: auto;
  }

  .brand small {
    display: none;
  }

  .header-cta {
    display: none;
  }

  .site-nav {
    gap: 18px;
    width: 100%;
    font-size: 13px;
  }

  .site-nav a {
    flex: 0 0 auto;
  }

  .hero h1 {
    max-width: 330px;
    font-size: 38px;
    overflow-wrap: anywhere;
  }

  .hero-copy {
    max-width: 330px;
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .hero-actions .button {
    width: 100%;
  }

  .section-head h2,
  .compare-copy h2,
  .article-main h1 {
    max-width: 330px;
    font-size: 28px;
    line-height: 1.24;
  }

  .section-head p:not(.eyebrow),
  .compare-copy p,
  .article-main .lead,
  .archive-hero p:not(.eyebrow) {
    max-width: 330px;
  }

  .article-figure {
    width: 100%;
    max-width: 100%;
    margin: 26px 0;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .article-figure img {
    width: 620px;
    max-width: none;
    min-width: 0;
  }

  .article-photo {
    margin: 26px 0;
  }

  .situation-band,
  .reading-section,
  .all-guides-section,
  .process-section,
  .cost-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  th,
  td {
    min-width: 170px;
  }
}
