:root {
  --color-bg: #f7fbfc;
  --color-surface: #ffffff;
  --color-surface-soft: #eef8f5;
  --color-line: #d8e7ec;
  --color-line-strong: #b9d3dc;
  --color-text: #173142;
  --color-muted: #587181;
  --color-navy: #123653;
  --color-blue: #2d78b8;
  --color-blue-soft: #e9f4fb;
  --color-green: #2d8a73;
  --color-green-soft: #e8f7f0;
  --shadow-card: 0 14px 34px rgba(18, 54, 83, 0.08);
  --shadow-soft: 0 10px 22px rgba(18, 54, 83, 0.06);
  --radius: 8px;
  --page-width: 1040px;
  --section-gap: clamp(56px, 10vw, 96px);
  font-family:
    "Hiragino Sans",
    "Yu Gothic",
    "YuGothic",
    "Noto Sans JP",
    Meiryo,
    system-ui,
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--color-text);
  background:
    linear-gradient(180deg, #ffffff 0%, var(--color-bg) 34%, #ffffff 100%);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  overflow-x: hidden;
}

body,
button,
input,
textarea,
select {
  font: inherit;
}

a {
  color: inherit;
}

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

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-140%);
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--color-navy);
  color: #fff;
  text-decoration: none;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.progress {
  position: fixed;
  inset: 0 0 auto;
  z-index: 900;
  height: 5px;
  background: rgba(216, 231, 236, 0.75);
}

.progress__bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-blue), var(--color-green));
  transition: width 80ms linear;
}

.site-header {
  position: sticky;
  top: 5px;
  z-index: 800;
  padding: 10px 14px 6px;
  background: rgba(247, 251, 252, 0.88);
  border-bottom: 1px solid rgba(216, 231, 236, 0.72);
  backdrop-filter: blur(14px);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: var(--page-width);
  margin: 0 auto;
}

.site-nav a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--color-navy);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(18, 54, 83, 0.05);
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.site-nav a:focus-visible,
.site-nav a:hover {
  border-color: var(--color-blue);
  background: var(--color-blue-soft);
  outline: none;
  transform: translateY(-1px);
}

main {
  width: min(100% - 32px, var(--page-width));
  margin: 0 auto;
}

.section {
  padding: var(--section-gap) 0;
}

.hero {
  min-height: calc(100svh - 72px);
  display: grid;
  align-content: center;
  gap: 24px;
  padding-top: clamp(42px, 8vw, 76px);
}

.hero__content {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  color: var(--color-navy);
  font-size: clamp(1.95rem, 8.2vw, 4.6rem);
  font-weight: 900;
  line-height: 1.12;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 0;
  color: var(--color-navy);
  font-size: clamp(1.55rem, 6.6vw, 2.8rem);
  font-weight: 900;
  line-height: 1.24;
}

h3 {
  margin-bottom: 8px;
  color: var(--color-navy);
  font-size: 1.04rem;
  line-height: 1.45;
}

.hero__lead {
  max-width: 760px;
  margin-bottom: 16px;
  color: #2d4c5f;
  font-size: clamp(1rem, 4.4vw, 1.35rem);
  font-weight: 700;
  line-height: 1.75;
}

.hero__date {
  display: inline-flex;
  margin-bottom: 0;
  padding: 7px 12px;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-muted);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.hero__cta,
.closing-message {
  margin: 0;
  padding: 18px;
  border-left: 5px solid var(--color-green);
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--color-green-soft), #ffffff);
  color: var(--color-navy);
  font-size: clamp(1rem, 4.5vw, 1.28rem);
  font-weight: 800;
  line-height: 1.7;
}

.section--tint {
  position: relative;
  isolation: isolate;
}

.section--tint::before,
.section--final::before {
  content: "";
  position: absolute;
  left: 50%;
  z-index: -1;
  width: 100vw;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(233, 244, 251, 0.68), rgba(232, 247, 240, 0.46));
}

.section--tint::before {
  top: 0;
}

.section--final {
  position: relative;
  isolation: isolate;
}

.section--final::before {
  top: 0;
  background: linear-gradient(180deg, rgba(238, 248, 245, 0.72), rgba(255, 255, 255, 0.94));
}

.section-heading {
  display: grid;
  gap: 2px;
  margin-bottom: 22px;
}

.copy-block,
.lead {
  max-width: 850px;
  color: #2f4f61;
}

.copy-block p,
.lead {
  margin-bottom: 16px;
}

.copy-block p:last-child,
.lead:last-child {
  margin-bottom: 0;
}

.card-grid,
.stats-grid,
.year-grid {
  display: grid;
  gap: 14px;
}

.card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

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

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 20px;
}

.stats-grid--hero {
  margin-top: 0;
}

.feature-card,
.stat-card,
.kpi-card,
.year-card,
.note-card,
.referral-card,
.step-card,
.timeline-item {
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-card);
}

.feature-card {
  min-height: 168px;
  padding: 18px;
}

.feature-card p {
  margin-bottom: 0;
  color: #496577;
}

.card-number {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  font-size: 0.75rem;
  font-weight: 900;
}

.stat-card,
.kpi-card {
  display: grid;
  align-content: space-between;
  min-height: 132px;
  padding: 16px;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.stat-card {
  background: linear-gradient(180deg, #ffffff, #f6fbfd);
}

.stat-card__label,
.kpi-card__label {
  margin-bottom: 10px;
  color: var(--color-muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.stat-card__value,
.kpi-card__number {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(1.28rem, 6vw, 2.05rem);
  font-weight: 900;
  line-height: 1.24;
}

.stat-card__value {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0;
  word-break: keep-all;
}

.nowrap {
  white-space: nowrap;
}

.stat-number {
  font-variant-numeric: tabular-nums;
}

.kpi-card {
  cursor: default;
  touch-action: manipulation;
}

.kpi-card:hover,
.kpi-card:focus-visible,
.kpi-card.is-pressed {
  border-color: var(--color-blue);
  box-shadow: 0 18px 38px rgba(45, 120, 184, 0.15);
  outline: none;
  transform: translateY(-3px);
}

.table-wrap {
  margin: 24px 0;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
  -webkit-overflow-scrolling: touch;
}

.table-wrap:focus-visible {
  outline: 3px solid rgba(45, 120, 184, 0.35);
  outline-offset: 3px;
}

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

caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
  font-size: 0.9rem;
  line-height: 1.65;
}

thead th {
  background: var(--color-navy);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

tbody th {
  color: var(--color-navy);
  font-weight: 900;
  white-space: nowrap;
}

tbody tr:nth-child(even) {
  background: #f7fbfc;
}

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

.is-numeric {
  text-align: right;
  white-space: nowrap;
}

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

.step-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 16px;
}

.step-card__index {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  font-weight: 900;
  line-height: 1;
}

.step-card p,
.timeline-item p,
.year-card li {
  color: #496577;
}

.step-card p,
.timeline-item p,
.year-card ul {
  margin-bottom: 0;
}

.note-card {
  margin-top: 18px;
  padding: 18px;
  background: linear-gradient(90deg, #ffffff, var(--color-green-soft));
}

.note-card--plain {
  background: #ffffff;
}

.note-card p {
  margin-bottom: 0;
  color: #39596b;
}

.year-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
}

.year-card {
  padding: 20px;
}

.year-card--strong {
  border-color: rgba(45, 138, 115, 0.36);
  background: linear-gradient(180deg, #ffffff, var(--color-green-soft));
}

.year-card__label {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--color-navy);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
}

.year-card h3 {
  font-size: 1.08rem;
}

.year-card ul {
  display: grid;
  gap: 8px;
  padding-left: 1.2em;
}

.timeline {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.timeline-item {
  position: relative;
  padding: 18px 18px 18px 22px;
  border-left: 5px solid var(--color-blue);
}

.timeline-item:nth-child(even) {
  border-left-color: var(--color-green);
}

.timeline-item__period {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-blue-soft);
  color: var(--color-blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.referral-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.referral-card {
  padding: 17px 18px;
  color: var(--color-navy);
  font-weight: 800;
  line-height: 1.65;
}

.closing-message {
  margin-top: 22px;
}

.site-footer {
  width: min(100% - 32px, var(--page-width));
  margin: 0 auto;
  padding: 34px 0 42px;
  color: var(--color-muted);
  font-size: 0.88rem;
  text-align: center;
}

.site-footer p {
  margin-bottom: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 880px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid,
  .card-grid--three,
  .year-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  main,
  .site-footer {
    width: min(100% - 24px, var(--page-width));
  }

  html {
    scroll-padding-top: 116px;
  }

  .site-header {
    padding-inline: 10px;
  }

  .site-nav {
    gap: 6px;
  }

  .site-nav a {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 96px;
    min-height: 32px;
    padding: 6px 8px;
    font-size: 0.75rem;
  }

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

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .stat-card,
  .kpi-card {
    min-height: 116px;
    padding: 14px;
  }

  .stat-card__value,
  .kpi-card__number {
    font-size: clamp(1.22rem, 7.2vw, 1.72rem);
  }

  .stat-card__value {
    font-size: clamp(1.12rem, 6.1vw, 1.5rem);
  }

  .feature-card {
    min-height: auto;
  }

  th,
  td {
    padding: 12px;
    font-size: 0.86rem;
  }

  .step-card {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }

  .step-card__index {
    width: 36px;
    height: 36px;
  }
}

@media (max-width: 374px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .site-nav a {
    flex-basis: calc(50% - 6px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
