:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #64748b;
  --line: #dfe6ef;
  --paper: #fbfcf7;
  --white: #ffffff;
  --green: #0f766e;
  --green-soft: #dff5ef;
  --blue: #2457a6;
  --blue-soft: #e3edff;
  --rose: #b93b5d;
  --rose-soft: #ffe4ec;
  --amber: #b86b00;
  --amber-soft: #fff0ca;
  --violet: #6d4cc2;
  --violet-soft: #ece7ff;
  --shadow: 0 18px 50px rgba(38, 52, 77, 0.14);
  --hero-bg: #f8fafc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 0%, rgba(15, 118, 110, 0.1), transparent 28rem),
    radial-gradient(circle at 92% 8%, rgba(36, 87, 166, 0.09), transparent 26rem),
    linear-gradient(180deg, #f8fafc 0%, #eef4f8 42%, #fffaf0 100%);
}

.page {
  overflow: hidden;
}

.hero,
.decision-strip,
.map-section,
.details-section,
.video-section,
.schedule-section,
.summary-band {
  padding: 72px 24px;
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  padding-top: 52px;
  background:
    linear-gradient(90deg, rgba(23, 32, 42, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 32, 42, 0.05) 1px, transparent 1px),
    linear-gradient(135deg, #ffffff 0%, var(--hero-bg) 56%, #eef6f2 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.hero::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.hero__inner {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 80px;
}

.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(23, 32, 42, 0.14);
  color: #334155;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 800;
  letter-spacing: 0;
}

.hero__copy {
  max-width: 940px;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1.05;
  letter-spacing: 0;
  max-width: 920px;
  white-space: nowrap;
  overflow-wrap: normal;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: 0;
}

.lead {
  margin: 30px 0 0;
  max-width: 680px;
  color: #334155;
  font-size: 19px;
  line-height: 1.85;
}

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

.section-heading--light .eyebrow,
.section-heading--light h2 {
  color: #fff;
}

.decision-strip {
  background: rgba(255, 255, 255, 0.58);
}

.decision-grid {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.decision-card {
  min-height: 250px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 12px 34px rgba(38, 52, 77, 0.08);
}

.decision-card--green { border-top: 8px solid var(--green); background: linear-gradient(180deg, var(--green-soft), #fff); }
.decision-card--blue { border-top: 8px solid var(--blue); background: linear-gradient(180deg, var(--blue-soft), #fff); }
.decision-card--rose { border-top: 8px solid var(--rose); background: linear-gradient(180deg, var(--rose-soft), #fff); }
.decision-card--amber { border-top: 8px solid var(--amber); background: linear-gradient(180deg, var(--amber-soft), #fff); }

.decision-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  color: #fff;
  background: var(--ink);
  font-weight: 900;
}

.decision-card p,
.flow-node p,
.automation-card p,
.panel p,
.video-layout p,
.timeline-item p {
  color: var(--muted);
  line-height: 1.75;
}

.flow-map {
  width: min(1160px, 100%);
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.flow-rail {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 76px;
  height: 6px;
  background: linear-gradient(90deg, var(--green), var(--blue), var(--rose), var(--amber));
  z-index: 0;
}

.flow-rail span {
  position: absolute;
  top: -8px;
  width: 22px;
  height: 22px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.flow-rail span:nth-child(1) { left: 21%; }
.flow-rail span:nth-child(2) { left: 44%; }
.flow-rail span:nth-child(3) { left: 67%; }
.flow-rail span:nth-child(4) { left: 89%; }

.flow-node {
  position: relative;
  z-index: 1;
  min-height: 350px;
  padding: 104px 20px 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 16px 40px rgba(38, 52, 77, 0.1);
}

.flow-node::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 36px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: conic-gradient(from 140deg, var(--green), var(--blue), var(--rose), var(--amber), var(--green));
}

.node-kicker {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.mini-pipeline {
  display: grid;
  grid-template-columns: 1fr 12px 1fr 12px 1fr 12px 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}

.mini-pipeline span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 6px;
  color: #0f3f3b;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.mini-pipeline b,
.ship-arrow {
  height: 2px;
  background: var(--line);
  position: relative;
}

.mini-pipeline b::after,
.ship-arrow::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  border-left: 7px solid var(--line);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

.cost-stack {
  margin: 18px 0 0;
}

.cost-stack div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cost-stack dt {
  color: var(--muted);
}

.cost-stack dd {
  margin: 0;
  font-weight: 900;
}

.cost-stack .total {
  color: var(--rose);
  border-bottom: 0;
  font-size: 18px;
}

.shortcut-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.shortcut-list span {
  padding: 8px 10px;
  border: 1px solid #bfd1e8;
  background: var(--blue-soft);
  color: #183f79;
  font-size: 12px;
  font-weight: 800;
}

.automation-band {
  padding: 78px 24px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.94), rgba(36, 87, 166, 0.94)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0 2px, transparent 2px 16px);
}

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

.automation-card {
  min-height: 260px;
  padding: 24px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
}

.automation-card p {
  color: rgba(255, 255, 255, 0.78);
}

.phase {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  height: 34px;
  margin-bottom: 44px;
  background: #fff;
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
}

.detail-layout {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 34px rgba(38, 52, 77, 0.08);
}

.panel--wide {
  grid-column: 1 / -1;
}

.panel__header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.panel__header p {
  margin: 4px 0 0;
}

.panel-number {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.shipping-diagram {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 44px minmax(140px, 1fr) 34px minmax(140px, 1fr) minmax(130px, 0.7fr);
  gap: 12px;
  align-items: center;
}

.ship-step,
.ship-result {
  min-height: 116px;
  padding: 18px;
  display: grid;
  align-content: center;
  border: 2px solid var(--line);
}

.ship-step strong,
.ship-result strong {
  font-size: 24px;
}

.ship-step span,
.ship-result span {
  color: var(--muted);
  line-height: 1.6;
}

.ship-step.rejected {
  background: #f8fafc;
  color: #94a3b8;
  text-decoration: line-through;
}

.ship-step.active {
  border-color: rgba(15, 118, 110, 0.42);
  background: var(--green-soft);
}

.ship-plus {
  display: grid;
  place-items: center;
  height: 34px;
  color: var(--amber);
  font-size: 28px;
  font-weight: 900;
}

.ship-result {
  color: #fff;
  background: var(--rose);
  border-color: var(--rose);
}

.ship-result span {
  color: rgba(255, 255, 255, 0.78);
}

.note {
  margin: 20px 0 0;
}

.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.check-list li {
  position: relative;
  padding: 12px 12px 12px 42px;
  background: #f8fafc;
  border: 1px solid var(--line);
  font-weight: 800;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 15px;
  width: 12px;
  height: 8px;
  border-left: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(-45deg);
}

.icon-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.avatar {
  min-height: 170px;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, #f6f7fb);
  border: 1px solid var(--line);
  font-weight: 900;
}

.avatar b {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #fff 0 11px, transparent 12px),
    radial-gradient(circle at 63% 35%, #fff 0 9px, transparent 10px),
    linear-gradient(135deg, var(--amber), var(--rose));
}

.avatar--right b {
  background:
    radial-gradient(circle at 35% 35%, #fff 0 11px, transparent 12px),
    radial-gradient(circle at 63% 35%, #fff 0 9px, transparent 10px),
    linear-gradient(135deg, var(--blue), var(--green));
}

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

.reference-card,
.caption-card,
.risk-card {
  padding: 24px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 34px rgba(38, 52, 77, 0.08);
}

.reference-meter {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.reference-meter span {
  position: relative;
  min-height: 42px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
  font-size: 13px;
  font-weight: 900;
}

.reference-meter span::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--score);
  background: linear-gradient(90deg, rgba(15, 118, 110, 0.2), rgba(36, 87, 166, 0.22));
  z-index: 0;
}

.reference-meter span {
  z-index: 1;
}

.caption-preview {
  margin: 24px 0;
}

.screen {
  aspect-ratio: 16 / 10;
  min-height: 210px;
  padding: 18px;
  display: grid;
  align-content: end;
  gap: 10px;
  background:
    linear-gradient(135deg, rgba(23, 32, 42, 0.88), rgba(36, 87, 166, 0.78)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.12) 0 1px, transparent 1px 18px);
}

.screen-bar {
  position: absolute;
}

.caption-line {
  height: 13px;
  background: rgba(255, 255, 255, 0.52);
}

.caption-line--long { width: 82%; }
.caption-line--mid { width: 64%; }

.subtitle {
  padding: 11px 14px;
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.decision-scale {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.decision-scale div {
  padding: 14px;
  border: 1px solid var(--line);
  background: #f8fafc;
}

.decision-scale span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.decision-scale strong {
  display: block;
  margin-top: 6px;
  line-height: 1.6;
}

.decision-scale .result {
  background: var(--amber-soft);
  border-color: rgba(184, 107, 0, 0.28);
}

.timeline {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.timeline-item {
  min-height: 260px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.timeline-item:last-child {
  border-right: 0;
}

.time-pin {
  display: inline-grid;
  place-items: center;
  min-height: 34px;
  margin-bottom: 40px;
  padding: 0 12px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 13px;
  font-weight: 900;
}

.summary-band {
  color: #fff;
  background: linear-gradient(135deg, #17202a, #2457a6 62%, #0f766e);
}

.summary-band > div {
  width: min(1160px, 100%);
  margin: 0 auto;
}

.summary-band .eyebrow {
  color: #f6c84c;
}

@media (max-width: 980px) {
  .hero__inner,
  .detail-layout,
  .video-layout {
    grid-template-columns: 1fr;
  }

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

  .flow-map {
    grid-template-columns: 1fr;
  }

  .flow-rail {
    left: 47px;
    right: auto;
    top: 64px;
    bottom: 64px;
    width: 6px;
    height: auto;
    background: linear-gradient(180deg, var(--green), var(--blue), var(--rose), var(--amber));
  }

  .flow-rail span {
    display: none;
  }

  .flow-node {
    min-height: auto;
    padding: 32px 22px 24px 104px;
  }

  .flow-node::before {
    left: 20px;
    top: 30px;
  }

  .shipping-diagram {
    grid-template-columns: 1fr;
  }

  .ship-arrow {
    height: 28px;
    width: 2px;
    margin: 0 auto;
  }

  .ship-arrow::after {
    right: -4px;
    top: auto;
    bottom: -2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--line);
    border-bottom: 0;
  }

  .ship-plus {
    height: 24px;
  }

  .timeline-item:nth-child(2) {
    border-right: 0;
  }

  .timeline-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .hero,
  .decision-strip,
  .map-section,
  .details-section,
  .video-section,
  .schedule-section,
  .summary-band {
    padding: 48px 16px;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .hero__inner {
    gap: 52px;
  }

  .hero__meta {
    display: grid;
    gap: 8px;
    justify-content: stretch;
    font-size: 15px;
  }

  .lead {
    font-size: 16px;
  }

  h1 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .signal-grid,
  .decision-grid,
  .automation-grid,
  .timeline,
  .icon-pair {
    grid-template-columns: 1fr;
  }

  .decision-card,
  .automation-card,
  .timeline-item {
    min-height: auto;
  }

  .timeline-item,
  .timeline-item:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .timeline-item:last-child {
    border-bottom: 0;
  }

  .mini-pipeline {
    grid-template-columns: 1fr;
  }

  .mini-pipeline b {
    width: 2px;
    height: 18px;
    margin: 0 auto;
  }

  .mini-pipeline b::after {
    right: -4px;
    top: auto;
    bottom: -2px;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--line);
    border-bottom: 0;
  }
}
