/* 使い方 — 入口から質問までを迷わせない青写真。 */
body.page-how {
  --how-blue: #1769ff;
  --how-sky: #dff4ff;
  --how-navy: #071a3c;
  --how-paper: #f7fcff;
  background: var(--how-paper);
  color: var(--how-navy);
}

body.page-how .context-canvas {
  opacity: 0.18;
  filter: hue-rotate(176deg) saturate(1.4);
}

body.page-how .site-header {
  top: 12px;
  left: 50%;
  right: auto;
  width: min(1180px, calc(100% - 32px));
  min-height: 64px;
  padding: 8px 10px 8px 18px;
  transform: translateX(-50%);
  border: 1px solid rgba(7, 26, 60, 0.18);
  border-radius: 999px;
  background: rgba(247, 252, 255, 0.9);
  color: var(--how-navy);
  box-shadow: 0 18px 56px rgba(23, 105, 255, 0.12);
}

body.page-how .site-header.scrolled {
  background: rgba(247, 252, 255, 0.98);
}

body.page-how .brand {
  color: var(--how-navy);
}

body.page-how .brand::after {
  content: "ROUTE 01—04";
  margin-left: 10px;
  color: var(--how-blue);
  font: 800 9px/1 var(--mono);
  letter-spacing: 0.12em;
}

body.page-how .brand-dot {
  border-radius: 50%;
  background: var(--how-blue);
  box-shadow: 0 0 0 5px rgba(23, 105, 255, 0.12);
  transform: none;
}

body.page-how .nav {
  counter-reset: how-nav;
}

body.page-how .nav a {
  counter-increment: how-nav;
  color: var(--how-navy);
  opacity: 0.66;
}

body.page-how .nav a::before {
  content: "0" counter(how-nav) " ";
  color: var(--how-blue);
  font: 800 8px/1 var(--mono);
}

body.page-how .nav a[aria-current="page"] {
  color: var(--how-blue);
  opacity: 1;
}

body.page-how .header-join {
  padding: 11px 16px;
  border: 0;
  border-radius: 999px;
  background: var(--how-blue);
  color: #fff;
}

body.page-how .hero-route {
  min-height: 100svh;
  background-color: var(--how-navy) !important;
  background-image:
    linear-gradient(rgba(122, 201, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 201, 255, 0.09) 1px, transparent 1px);
  background-size: 42px 42px;
}

body.page-how .hero-route-shell {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 7vw;
  align-items: center;
}

body.page-how .hero-route-copy {
  position: relative;
  z-index: 5;
}

body.page-how .hero-route h1 {
  color: #fff;
}

body.page-how .hero-route .serif {
  color: #7ac9ff !important;
}

body.page-how .hero-route .page-visual {
  left: 0;
  right: auto;
  width: 43%;
  clip-path: polygon(0 0, 100% 0, 82% 100%, 0 100%);
  opacity: 0.52;
}

body.page-how .hero-route .page-visual::after {
  background: linear-gradient(90deg, transparent 30%, var(--how-navy) 96%);
}

body.page-how .hero-route-map {
  position: relative;
  z-index: 6;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 42px;
  padding: 0;
  list-style: none;
  border-top: 2px solid rgba(122, 201, 255, 0.32);
}

body.page-how .hero-route-map::before {
  content: "";
  position: absolute;
  left: 0;
  top: -3px;
  width: 75%;
  height: 4px;
  background: linear-gradient(90deg, #7ac9ff, #fff);
  animation: how-route 2.8s ease-in-out infinite alternate;
}

body.page-how .hero-route-map li {
  min-height: 110px;
  padding: 18px 12px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.14);
}

body.page-how .hero-route-map b,
body.page-how .hero-route-map small {
  color: #7ac9ff;
}

body.page-how .hero-route-map span {
  display: block;
  margin-top: 9px;
  color: #fff;
  font-size: 20px;
  font-weight: 850;
}

body.page-how .section {
  border-color: rgba(7, 26, 60, 0.16);
  background-color: var(--how-paper);
  background-image:
    linear-gradient(rgba(23, 105, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 105, 255, 0.045) 1px, transparent 1px);
  background-size: 36px 36px;
}

body.page-how #steps {
  background-color: var(--how-sky);
}

body.page-how .journey-step {
  position: relative;
  border: 1px solid rgba(7, 26, 60, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 14px 0 rgba(23, 105, 255, 0.07);
}

body.page-how .journey-step::before {
  border-color: var(--how-blue);
  color: var(--how-blue);
}

body.page-how .steps-index {
  border-left: 3px solid var(--how-blue);
  background: #fff;
}

body.page-how .builder {
  background: var(--how-navy);
  color: #fff;
}

body.page-how .builder-form,
body.page-how .preview {
  border: 1px solid rgba(122, 201, 255, 0.28);
  border-radius: 18px;
  background: #0b2554;
  color: #fff;
}

body.page-how .builder input,
body.page-how .builder textarea {
  border-color: rgba(122, 201, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.page-how #trouble {
  background: #fff;
}

body.page-how .faq details {
  border: 1px solid rgba(7, 26, 60, 0.16);
  border-radius: 14px;
  background: var(--how-paper);
}

body.page-how .site-footer {
  border-top: 6px solid #7ac9ff;
  background: var(--how-navy);
  color: #fff;
}

body.page-how .footer-lead h2 i {
  color: #7ac9ff;
}

@keyframes how-route {
  from {
    width: 25%;
  }
  to {
    width: 100%;
  }
}

@media (max-width: 980px) {
  body.page-how .site-header {
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
  }

  body.page-how .nav {
    background: var(--how-paper);
  }

  body.page-how .nav a {
    color: var(--how-navy);
  }

  body.page-how .hero-route-shell {
    grid-template-columns: 0.38fr 0.62fr;
  }
}

@media (max-width: 600px) {
  body.page-how .site-header {
    top: 8px;
    border-radius: 16px;
  }

  body.page-how .brand::after {
    display: none;
  }

  body.page-how .hero-route-shell {
    display: flex;
    flex-direction: column;
    gap: 22px;
  }

  body.page-how .hero-route-copy {
    margin-left: 10%;
  }

  body.page-how .hero-route h1 {
    width: 111%;
    margin-left: -11%;
  }

  body.page-how .hero-route-map li {
    min-height: 76px;
    padding: 10px 5px 0;
  }

  body.page-how .hero-route-map span {
    font-size: 13px;
  }

  body.page-how .hero-route-map small {
    font-size: 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-how .hero-route-map::before {
    width: 100%;
    animation: none;
  }
}
