:root {
  color-scheme: light;
  --ink: #101820;
  --text: #18212b;
  --muted: #617184;
  --bg: #f3f6f8;
  --surface: #ffffff;
  --surface-quiet: #f8fafc;
  --line: #d8e1ea;
  --line-strong: #a9b7c5;
  --green: #0d6b58;
  --teal: #009b9a;
  --orange: #f07a2b;
  --blue: #285f8f;
  --red: #b23a32;
  --yellow: #b06d00;
  --shadow: 0 1px 2px rgba(16, 24, 32, 0.04), 0 12px 24px rgba(16, 24, 32, 0.06);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", "Noto Sans JP", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.hero {
  color: #ffffff;
  background:
    radial-gradient(circle at 74% 12%, rgba(240, 122, 43, 0.34), rgba(240, 122, 43, 0) 30%),
    radial-gradient(circle at 42% 18%, rgba(0, 155, 154, 0.28), rgba(0, 155, 154, 0) 34%),
    linear-gradient(120deg, rgba(9, 15, 24, 0.97) 0%, rgba(11, 37, 45, 0.93) 46%, rgba(20, 30, 39, 0.8) 100%),
    #101820;
  min-height: 610px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  opacity: 0.55;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  background: linear-gradient(180deg, rgba(16, 24, 32, 0), #f3f6f8);
}

.topnav,
.hero-body,
.section,
.footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.topnav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(0, 155, 154, 0.72), rgba(240, 122, 43, 0.78));
  font-size: 13px;
}

.nav-links {
  display: flex;
  gap: 18px;
  color: #c8d3dd;
  font-size: 13px;
  font-weight: 700;
}

.nav-links a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.hero-body {
  min-height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 540px);
  align-items: center;
  gap: 34px;
  padding: 34px 0 86px;
}

.hero-copy {
  max-width: 720px;
}

.guide-profile {
  display: inline-grid;
  grid-template-columns: 78px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.guide-profile img {
  width: 78px;
  height: 78px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid #ffffff;
}

.guide-profile .eyebrow {
  margin-bottom: 4px;
}

.guide-profile strong,
.guide-profile span {
  display: block;
  min-width: 0;
}

.guide-profile strong {
  font-size: 18px;
  line-height: 1.3;
}

.guide-profile span {
  margin-top: 2px;
  color: #d6e0e9;
  font-size: 13px;
  font-weight: 700;
}

.eyebrow {
  color: #8ee2d7;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(40px, 6vw, 66px);
  line-height: 1.04;
  font-weight: 850;
  max-width: 760px;
  overflow-wrap: anywhere;
}

h1 span {
  display: block;
}

.lead {
  margin-top: 18px;
  max-width: 620px;
  color: #d6e0e9;
  font-size: 17px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hero-routes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.route-card {
  min-width: 0;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(255, 255, 255, 0.09)),
    rgba(255, 255, 255, 0.11);
  padding: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.16s ease, background 0.16s ease;
}

.route-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.17);
}

.route-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 850;
}

.route-auto span { background: var(--teal); }
.route-keirin span { background: var(--red); }
.route-jra span { background: var(--orange); }

.route-card strong {
  font-size: 20px;
  line-height: 1.2;
}

.route-card small {
  color: #d6e0e9;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
}

.hero-visual {
  position: relative;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.36), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hero-visual img {
  display: block;
  width: 100%;
  min-height: 414px;
  object-fit: cover;
  object-position: 66% center;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 10, 14, 0.58), rgba(5, 10, 14, 0.02) 44%),
    linear-gradient(0deg, rgba(5, 10, 14, 0.44), rgba(5, 10, 14, 0) 56%);
}

.hero-bubble {
  position: absolute;
  left: 18px;
  bottom: 18px;
  z-index: 1;
  max-width: calc(100% - 36px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  background: rgba(10, 15, 22, 0.76);
  padding: 12px 14px;
  backdrop-filter: blur(12px);
}

.hero-bubble span {
  color: #8ee2d7;
  font-size: 12px;
  font-weight: 850;
}

.hero-bubble strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

.hero-board {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  justify-self: end;
  min-height: 330px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05)),
    rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  padding: 18px;
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #dce7f0;
  font-size: 13px;
  min-width: 0;
}

.board-head strong {
  color: #ffffff;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.cell {
  aspect-ratio: 1.35;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cell.hot {
  background: #1aa17f;
}

.cell.warm {
  background: #b98322;
}

.cell.cold {
  background: #254a6e;
}

.lane-strip {
  margin-top: 28px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.lane-strip span {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #101820;
  font-weight: 850;
  background: #ffffff;
}

.lane-strip span:nth-child(2) { background: #ffd23f; }
.lane-strip span:nth-child(3) { background: #d92626; color: #ffffff; }
.lane-strip span:nth-child(4) { background: #2d64c8; color: #ffffff; }
.lane-strip span:nth-child(5) { background: #111111; color: #ffffff; }
.lane-strip span:nth-child(6) { background: #0c8a55; color: #ffffff; }

.section {
  padding: 46px 0 0;
}

.stance-section {
  margin-top: -14px;
}

.stance-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
  box-shadow: var(--shadow);
}

.stance-copy {
  min-width: 0;
}

.stance-copy h2 {
  font-size: 30px;
  line-height: 1.25;
}

.stance-copy p:not(.eyebrow) {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.85;
}

.stance-cards {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.stance-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-quiet);
  padding: 13px;
}

.stance-card span {
  color: var(--green);
  font-size: 12px;
  font-weight: 850;
}

.stance-card strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.stance-card p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.stance-detail {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.stance-detail summary {
  cursor: pointer;
  color: var(--green);
  font-weight: 850;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
}

.detail-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.detail-body p {
  color: var(--muted);
  line-height: 1.75;
}

.risk-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
}

.risk-copy {
  min-width: 0;
  padding: 4px 4px 4px 0;
}

.risk-copy h3 {
  font-size: 24px;
  line-height: 1.35;
}

.risk-copy p {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.risk-tool {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-quiet);
  padding: 16px;
}

.risk-result {
  display: grid;
  gap: 4px;
}

.risk-result span,
.risk-result small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.risk-result strong {
  color: var(--green);
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
}

.risk-result .risk-range {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.16em;
  font-size: clamp(32px, 4.8vw, 52px);
}

.risk-result .risk-range em {
  color: var(--muted);
  font-size: 0.62em;
  font-style: normal;
  font-weight: 750;
}

.risk-controls {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.slider-row {
  display: grid;
  gap: 9px;
}

.slider-row span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.slider-row strong {
  color: var(--text);
}

.slider-row input[type="range"] {
  width: 100%;
  accent-color: var(--green);
}

.risk-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.risk-presets button {
  min-width: 0;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
}

.risk-presets button.is-active {
  color: #ffffff;
  background: var(--green);
  border-color: var(--green);
}

.return-strip {
  margin-top: 20px;
  height: 26px;
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e9eef3;
}

.return-fill {
  min-width: 0;
  transition: width 0.16s ease;
}

.return-fill.stable {
  width: 60%;
  background: var(--green);
}

.return-fill.spike {
  width: 40%;
  background: #c7d2de;
}

.strip-legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.strip-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.stable-dot,
.spike-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.stable-dot {
  background: var(--green);
}

.spike-dot {
  background: #c7d2de;
}

.risk-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.risk-metrics div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.risk-metrics span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.risk-metrics strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.risk-examples {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.risk-examples div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 10px;
}

.risk-examples span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.risk-examples strong {
  display: block;
  margin-top: 4px;
  font-size: 18px;
}

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

.section-head h2 {
  font-size: 28px;
  line-height: 1.25;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.system-card {
  min-width: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.system-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 32px rgba(16, 24, 32, 0.09);
}

.system-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.system-code,
.system-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 6px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 850;
}

.system-code {
  color: #ffffff;
}

.auto .system-code { background: var(--teal); }
.jra .system-code { background: var(--orange); }
.keirin .system-code { background: var(--red); }

.system-status {
  color: var(--muted);
  background: var(--surface-quiet);
  border: 1px solid var(--line);
}

.system-status.live {
  color: var(--green);
  background: #e8f5f1;
  border-color: #b9ded4;
}

.system-card h3 {
  font-size: 24px;
  line-height: 1.2;
}

.system-card p {
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.mini-panel {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-quiet);
}

.mini-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mini-panel strong {
  font-size: 16px;
}

.approach-section {
  padding-bottom: 54px;
}

.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.approach-item {
  min-width: 0;
  background: var(--surface);
  padding: 20px;
}

.index {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.approach-item h3 {
  margin-top: 12px;
  font-size: 20px;
}

.approach-item p {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.footer {
  padding: 18px 0 36px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  border-top: 1px solid var(--line);
}

@media (max-width: 820px) {
  .topnav,
  .hero-body,
  .section,
  .footer {
    width: calc(100% - 28px);
    max-width: 1180px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 0;
  }

  .hero-body {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 0 50px;
  }

  h1 {
    font-size: clamp(32px, 9vw, 40px);
  }

  .lead {
    font-size: 15px;
    line-height: 1.75;
  }

  .guide-profile {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    border-radius: 12px;
    padding: 9px;
  }

  .guide-profile img {
    width: 60px;
    height: 60px;
  }

  .guide-profile strong {
    font-size: 16px;
  }

  .hero-routes {
    grid-template-columns: 1fr;
    margin-top: 18px;
  }

  .route-card {
    min-height: 78px;
    display: grid;
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: center;
    gap: 8px 12px;
  }

  .route-card strong,
  .route-card small {
    grid-column: 2;
  }

  .route-card span {
    grid-row: 1 / span 2;
  }

  .hero-visual img {
    min-height: 210px;
  }

  .system-top {
    flex-wrap: wrap;
  }

  .hero-bubble {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
  }

  .hero-board {
    max-width: 100%;
    justify-self: stretch;
    min-height: 250px;
    padding: 14px;
  }

  .system-grid,
  .approach-grid,
  .stance-panel,
  .detail-body,
  .risk-panel {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: 0;
  }

  .section {
    padding-top: 34px;
  }

  .stance-section {
    margin-top: -8px;
  }

  .stance-panel {
    padding: 16px;
  }

  .stance-copy h2 {
    font-size: 24px;
  }

  .risk-copy h3 {
    font-size: 21px;
  }

  .risk-tool {
    padding: 14px;
  }

  .risk-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .risk-metrics {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .section-head h2 {
    font-size: 24px;
  }

  .footer {
    display: grid;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: clamp(30px, 8.8vw, 34px);
  }

  .hero-board {
    min-height: 0;
  }

  .signal-grid {
    gap: 7px;
    margin-top: 22px;
  }

  .lane-strip span {
    width: 33px;
    height: 33px;
  }
}
