:root {
  --ink: #151719;
  --muted: #5d6670;
  --line: #d6dde5;
  --paper: #f7f9fb;
  --panel: #ffffff;
  --rail: #9ba8b5;
  --suki: #2367c9;
  --masup: #13866f;
  --kaikatsu: #e5682a;
  --focus: #111827;
  --shadow: 0 18px 50px rgba(21, 23, 25, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(21, 23, 25, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(21, 23, 25, 0.03) 1px, transparent 1px),
    var(--paper);
  background-size: 36px 36px;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", system-ui, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(21, 23, 25, 0.12);
  background: rgba(247, 249, 251, 0.88);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: white;
  background: var(--ink);
  border-radius: 7px;
  font-size: 15px;
}

.topbar nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.topbar nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 62px);
  padding: clamp(32px, 7vw, 86px) clamp(18px, 4vw, 44px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(38px, 6.2vw, 82px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  color: #3f4750;
  font-size: clamp(16px, 2vw, 20px);
}

.official-update {
  max-width: 680px;
  margin: 22px 0 0;
  border: 1px solid rgba(19, 134, 111, 0.28);
  border-left: 8px solid var(--masup);
  border-radius: 8px;
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(19, 134, 111, 0.1), rgba(255, 255, 255, 0.95));
  box-shadow: 0 12px 30px rgba(19, 134, 111, 0.08);
}

.official-update span,
.pitch-grid span {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--masup);
  font-size: 12px;
  font-weight: 900;
}

.official-update strong {
  display: block;
  margin-bottom: 6px;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.25;
}

.official-update p {
  margin-bottom: 0;
  color: #3f4750;
}

.scenario-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 22px;
}

.scenario {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: none;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.scenario.is-active {
  color: white;
  border-color: var(--ink);
  background: var(--ink);
}

.decision {
  max-width: 640px;
  border: 1px solid rgba(21, 23, 25, 0.16);
  border-left: 8px solid var(--suki);
  border-radius: 8px;
  padding: 18px 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.decision-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.decision strong {
  display: block;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.25;
}

.decision p {
  margin: 8px 0 0;
  color: #3f4750;
}

.route-panel {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 28px 0;
}

.rail-line {
  position: absolute;
  top: 58px;
  bottom: 58px;
  left: 29px;
  width: 4px;
  border-radius: 999px;
  background: repeating-linear-gradient(
    to bottom,
    var(--rail) 0,
    var(--rail) 18px,
    transparent 18px,
    transparent 30px
  );
}

.station-card {
  position: relative;
  margin-left: 64px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 24px rgba(21, 23, 25, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.station-card.is-recommended,
.place-card.is-recommended {
  border-color: currentColor;
  box-shadow: var(--shadow);
}

.station-card.is-recommended {
  transform: translateX(-8px);
}

.station-card.suki,
.place-card.suki {
  color: var(--suki);
}

.station-card.masup,
.place-card.masup {
  color: var(--masup);
}

.station-card.kaikatsu,
.place-card.kaikatsu {
  color: var(--kaikatsu);
}

.station-card h2,
.station-card p,
.place-card h3,
.place-card li,
.place-card p {
  color: var(--ink);
}

.station-card h2 {
  margin-bottom: 4px;
  font-size: clamp(21px, 3vw, 30px);
  line-height: 1.2;
}

.station-card p {
  margin-bottom: 12px;
}

.station-area {
  color: currentColor !important;
  font-size: 13px;
  font-weight: 900;
}

.station-dot {
  position: absolute;
  top: 28px;
  left: -48px;
  display: block;
  width: 24px;
  height: 24px;
  border: 5px solid currentColor;
  border-radius: 999px;
  background: var(--paper);
  box-shadow: 0 0 0 7px var(--paper);
}

.score {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9eef2;
}

.score span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
  transition: width 220ms ease;
}

.quick-verdict,
.section {
  padding-right: clamp(18px, 4vw, 44px);
  padding-left: clamp(18px, 4vw, 44px);
}

.quick-verdict {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-bottom: clamp(34px, 7vw, 80px);
}

.quick-verdict article,
.cost-grid article,
.place-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.quick-verdict article {
  padding: 18px;
}

.quick-verdict span,
.cost-label,
.tag {
  display: inline-block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.quick-verdict strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.quick-verdict p,
.cost-grid p {
  margin-bottom: 0;
  color: #46505a;
}

.masup-pitch {
  padding-top: 0;
}

.pitch-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.pitch-grid article {
  border: 1px solid rgba(19, 134, 111, 0.25);
  border-radius: 8px;
  padding: 18px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 23, 25, 0.05);
}

.pitch-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 22px;
  line-height: 1.2;
}

.pitch-grid p {
  margin-bottom: 0;
  color: #46505a;
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  gap: 16px;
  align-items: start;
}

.lab-copy {
  border: 1px solid rgba(19, 134, 111, 0.25);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 23, 25, 0.05);
}

.lab-copy span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--masup);
  font-size: 12px;
  font-weight: 900;
}

.lab-copy h3 {
  margin-bottom: 12px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
}

.lab-copy p {
  color: #46505a;
}

.lab-table table {
  min-width: 720px;
}

.contract-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.contract-card {
  border: 1px solid rgba(35, 103, 201, 0.25);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(21, 23, 25, 0.05);
}

.contract-card span {
  display: inline-block;
  margin-bottom: 8px;
  color: var(--suki);
  font-size: 12px;
  font-weight: 900;
}

.contract-card h3 {
  margin-bottom: 12px;
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.2;
}

.contract-card p {
  color: #46505a;
}

.contract-card ul {
  margin: 0;
  padding-left: 1.1em;
}

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

.section {
  padding-top: clamp(34px, 7vw, 76px);
  padding-bottom: clamp(34px, 7vw, 76px);
}

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

.section h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 28px rgba(21, 23, 25, 0.05);
}

table {
  width: 100%;
  min-width: 960px;
  border-collapse: collapse;
}

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

thead th {
  color: white;
  background: var(--ink);
  font-size: 14px;
}

tbody th {
  width: 150px;
  background: #eef2f5;
  font-size: 14px;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

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

.place-card {
  padding: 22px;
  color: var(--ink);
}

.place-top {
  min-height: 90px;
}

.tag {
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: currentColor;
}

.place-card h3 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.24;
}

.price {
  margin-bottom: 18px;
  color: currentColor !important;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.1;
}

.price small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.place-card ul {
  padding-left: 1.1em;
  margin: 0 0 20px;
}

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

.source-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid currentColor;
  border-radius: 8px;
  padding: 8px 12px;
  color: currentColor;
  font-weight: 900;
  text-decoration: none;
}

.cost-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.cost-grid article {
  padding: 18px;
}

.cost-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.18;
}

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

figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
}

figure img {
  display: block;
  width: 100%;
  max-height: 760px;
  object-fit: contain;
  background: #eef2f5;
}

figcaption {
  padding: 14px 16px;
  color: #46505a;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.sources a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--panel);
  color: #3f4750;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .route-panel {
    padding-top: 10px;
  }

  .quick-verdict,
  .detail-grid,
  .cost-grid,
  .pitch-grid,
  .lab-layout,
  .contract-layout {
    grid-template-columns: 1fr;
  }

  .place-top {
    min-height: 0;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    padding-top: 26px;
  }

  h1 {
    font-size: 38px;
  }

  .station-card {
    margin-left: 42px;
    padding: 18px;
  }

  .rail-line {
    left: 18px;
  }

  .station-dot {
    left: -36px;
  }

  .station-card.is-recommended {
    transform: none;
  }

  .scenario {
    flex: 1 1 calc(50% - 10px);
  }

  .evidence-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
