/* cifleet.dev の紹介ページ。
   色: 紺（夜の海）と、管理画面と同じ電気の青。紙の節と夜の節を交互に。
   字: 英数は Geist、かな・漢字は Noto Sans JP（同じ font-family の並びで混ぜる）、コードは Geist Mono。
       見出しは 700 で詰め、名前と大きな数字は Geist を強く詰めて tabular-nums。
   線は 1px、影は柔らかく。見せ場は実測の競走 1 か所。ほかの動きは、ラベルの帯と端末の打ち替えだけ。 */

:root {
  /* 色 */
  --navy: #0f1b33;
  --night: #0a1428;
  --blue: #2f5bff;
  --blue-hi: #5b7fff;
  --sky: #7fd9ff;
  --mint: #00b383;
  --amber: #f2a100;
  --red: #e5484d;
  --cloud: #e9eefb;
  --cloud-2: #95a1bd;
  --night-line: #22304d;

  /* 紙の節（明暗で変わる） */
  --paper: #eef1f6;
  --surface: #ffffff;
  --ink: #0f1b33;
  --ink-2: #3b4760;
  --muted: #687390;
  --line: #ccd3e0;
  --rule: #d5dbe6;
  --dotc: rgb(15 27 51 / 0.12);
  --shadow: 0 1px 2px rgb(15 27 51 / 0.06), 0 24px 48px -24px rgb(15 27 51 / 0.28);

  /* 字 */
  --f-text: "Geist", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Sans", sans-serif;
  --f-head: var(--f-text);
  --f-brand: "Geist", -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 字の大きさの段 */
  --s-body: 16px;
  --s-small: 14px;
  --s-h3: 20px;
  --s-h2: clamp(30px, 4.4vw, 52px);
  --s-h1: clamp(40px, 6vw, 72px);
  --s-num: clamp(52px, 6vw, 80px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0c1427;
    --surface: #111b31;
    --ink: #e9eefb;
    --ink-2: #c3cbdd;
    --muted: #8d98b3;
    --line: #26324d;
    --rule: #26324d;
    --dotc: rgb(233 238 251 / 0.08);
    --shadow: 0 1px 2px rgb(0 0 0 / 0.4), 0 24px 48px -24px rgb(0 0 0 / 0.7);
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: var(--s-body);
  font-weight: 400;
  line-height: 1.75;
  font-feature-settings: "palt";
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.defs {
  position: absolute;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

code,
pre {
  font-family: var(--f-mono);
}

/* 見出しは Geist（英数）と Noto Sans JP（かな・漢字）。詰め気味にして、太さは 700 まで。 */
h1,
h2 {
  margin: 0;
  font-family: var(--f-head);
  font-weight: 700;
  font-feature-settings: "palt";
  letter-spacing: -0.025em;
  word-break: auto-phrase;
  text-wrap: balance;
}

h1 {
  font-size: var(--s-h1);
  line-height: 1.18;
}

h2 {
  font-size: var(--s-h2);
  line-height: 1.25;
}

h3 {
  margin: 0;
  font-size: var(--s-h3);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.5;
  font-feature-settings: "palt";
}

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}

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

/* ---- ボタン ---- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-text);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: none;
  box-shadow: none !important;
}

.btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.btn-blue {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.btn-blue:hover {
  box-shadow: 0 8px 24px -6px rgb(47 91 255 / 0.65);
}

.btn-light {
  background: var(--cloud);
  color: var(--navy);
  border-color: var(--cloud);
}

.btn-light:hover {
  box-shadow: 0 8px 24px -8px rgb(233 238 251 / 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--cloud);
  border-color: rgb(233 238 251 / 0.45);
}

.btn-ghost:hover {
  border-color: var(--cloud);
  background: rgb(233 238 251 / 0.06);
}

.btn-line {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}

.btn-line:hover {
  border-color: var(--ink-2);
}

/* ---- 上の帯（紺のまま） ---- */

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgb(10 20 40 / 0.78);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--night-line);
  color: var(--cloud);
}

.top-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-brand);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  color: var(--blue);
}

.nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
  font-size: 14px;
  font-weight: 500;
}

.nav a {
  color: var(--cloud-2);
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
}

/* ---- 最初の画面 ---- */

.hero {
  position: relative;
  z-index: 2;
  padding: 24px 0 0;
  background: var(--navy);
  color: var(--cloud);
  overflow-x: clip;
  isolation: isolate;
}

/* 船団の絵。右に寄せ、左と下は紺に溶かす */
.hero-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(78%, 1180px);
  z-index: -1;
}

.hero-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0%, #000 38%), linear-gradient(0deg, transparent 0%, #000 30%);
  mask-composite: intersect;
  opacity: 0.9;
}

.wordmark {
  margin: 0;
  font-family: var(--f-brand);
  font-weight: 700;
  font-size: clamp(80px, 20vw, 300px);
  line-height: 0.9;
  letter-spacing: -0.065em;
  color: #fff;
  white-space: nowrap;
  text-shadow: 0 6px 40px rgb(10 20 40 / 0.5);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: end;
  margin-top: 28px;
}

.hero-copy {
  padding-bottom: 96px;
}

.hero h1 {
  margin-top: 48px;
  color: #fff;
  /* 1 行目（約 11 字幅）が画面に収まる大きさまでに抑える */
  font-size: clamp(26px, min(5.4vw, (100vw - 40px) / 11), 68px);
  text-wrap: wrap;
}

.nw {
  white-space: nowrap;
}

.lead {
  max-width: 30em;
  margin: 0;
  color: #c6cfe3;
  font-size: 17px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

/* 端末: 下の帯に食い込ませる */
.term {
  position: relative;
  z-index: 2;
  margin: 0 0 -64px;
  border: 1px solid #2a3a5f;
  border-radius: 16px;
  background: rgb(8 15 31 / 0.92);
  backdrop-filter: blur(8px);
  color: #dbe3f5;
  box-shadow:
    0 30px 80px rgb(0 0 0 / 0.45),
    0 0 0 1px rgb(127 217 255 / 0.06) inset;
  overflow: hidden;
}

.term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #22304d;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: #8d98b3;
}

.dots {
  display: inline-flex;
  gap: 6px;
}

.dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #33415f;
}

.term pre {
  margin: 0;
  padding: 16px 0;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.85;
}

.term code {
  display: block;
  min-width: max-content;
  white-space: normal;
}

.term .ln {
  display: block;
  padding: 0 20px 0 0;
  white-space: pre;
}

.term .ln b {
  display: inline-block;
  width: 44px;
  padding-right: 16px;
  text-align: right;
  color: #4d5a78;
  font-weight: 400;
}

.term .swap {
  background: rgb(47 91 255 / 0.22);
  box-shadow: inset 3px 0 0 var(--blue-hi);
}

.typed {
  color: #9fd8ff;
}

.typed.is-old {
  color: #ff9ea1;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.15em;
  margin-left: 2px;
  vertical-align: -0.2em;
  background: #9fd8ff;
  opacity: 0;
}

.typing .caret {
  opacity: 1;
  animation: blink 0.9s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

.term-foot {
  padding: 12px 16px 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px 3px 8px;
  border-radius: 999px;
  background: rgb(0 179 131 / 0.16);
  color: #4fe0b5;
  font-size: 13px;
  font-weight: 700;
}

.pill svg {
  width: 15px;
  height: 15px;
}

/* ---- ラベルが流れる帯 ---- */

.ticker {
  position: relative;
  padding: 18px 0;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
  border-top: 1px solid rgb(255 255 255 / 0.18);
  border-bottom: 1px solid rgb(255 255 255 / 0.18);
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 48s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--f-mono);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.ticker span::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--sky);
}

@keyframes ticker {
  to {
    transform: translateX(-50%);
  }
}

/* ---- 節 ---- */

.sec {
  padding: 120px 0;
}

.sec-night {
  background: var(--night);
  color: var(--cloud);
}

.sec-paper {
  background: var(--paper);
}

.sec-dots {
  background-color: var(--surface);
  background-image: radial-gradient(var(--dotc) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.sec-head {
  max-width: 680px;
  margin-bottom: 56px;
}

.sec-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
}

.sec-head-row > div {
  max-width: 680px;
}

.sec-head p {
  margin: 18px 0 0;
  color: var(--ink-2);
}

.sec-night .sec-head p {
  color: var(--cloud-2);
}

.sec-head code {
  padding: 2px 6px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  font-size: 0.88em;
}

/* ---- 競走（見せ場） ---- */

.race {
  position: relative;
  display: grid;
  gap: 18px;
  padding: 40px;
  border: 1px solid var(--night-line);
  border-radius: 20px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(10% - 1px), var(--night-line) calc(10% - 1px) 10%),
    #071022;
}

.lane {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) 140px;
  align-items: center;
  gap: 20px;
}

.lane-name {
  font-weight: 700;
  line-height: 1.4;
}

.lane-name small {
  display: block;
  margin-top: 4px;
  color: var(--cloud-2);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 400;
}

.track {
  height: 48px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.04);
  overflow: hidden;
}

.bar {
  height: 100%;
  width: calc(var(--t) / 171 * 100%);
  border-radius: 10px;
  transform-origin: left;
  transform: scaleX(0);
}

.bar-gh {
  background: repeating-linear-gradient(135deg, #3b4760 0 10px, #33405a 10px 20px);
}

.bar-fleet {
  background: linear-gradient(90deg, var(--blue), var(--blue-hi) 70%, var(--sky));
  box-shadow: 0 0 36px rgb(91 127 255 / 0.6);
}

.race.is-running .bar {
  animation: grow calc(var(--t) * 22ms) linear forwards;
}

.race.is-done .bar {
  transform: scaleX(1);
}

@keyframes grow {
  to {
    transform: scaleX(1);
  }
}

.lane-time {
  font-family: var(--f-brand);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: 46px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--cloud-2);
}

.lane-time small {
  margin-left: 4px;
  font-family: var(--f-text);
  font-size: 15px;
  font-weight: 700;
}

.lane-win {
  color: #fff;
}

.replay {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  background: transparent;
  color: var(--cloud-2);
  cursor: pointer;
}

.replay:hover {
  color: #fff;
  border-color: #fff;
}

.replay svg {
  width: 18px;
  height: 18px;
}

.facts3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 64px;
  border-top: 1px solid var(--night-line);
}

.fact {
  padding: 36px 28px 0 0;
}

.fact + .fact {
  padding-left: 28px;
  border-left: 1px solid var(--night-line);
}

.big {
  margin: 0;
  font-family: var(--f-brand);
  font-weight: 600;
  font-size: var(--s-num);
  line-height: 1;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

.big small {
  margin-left: 6px;
  font-family: var(--f-text);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--cloud-2);
}

.fact-label {
  margin: 16px 0 4px;
  font-weight: 700;
  font-size: 17px;
}

.fact-note {
  margin: 0;
  color: var(--cloud-2);
  font-size: var(--s-small);
  line-height: 1.7;
}

/* ---- 画面と文の交互 ---- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 72px;
  align-items: center;
}

.split + .split {
  margin-top: 120px;
}

.split-rev .art {
  order: 2;
}

.art {
  margin: 0;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--navy);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.art img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.split-copy > p {
  max-width: 30em;
  margin: 20px 0 0;
  color: var(--ink-2);
}

.flow,
.rules {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.flow li,
.rules li {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.flow h3,
.rules h3 {
  font-size: 17px;
}

.flow p,
.rules p {
  margin: 2px 0 0;
  color: var(--ink-2);
  font-size: 15px;
}

.flow-n {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--f-brand);
  font-weight: 700;
  font-size: 16px;
}

.rules svg {
  width: 36px;
  height: 36px;
  padding: 8px;
  flex: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--red) 14%, transparent);
  color: var(--red);
}

/* ---- 管理画面の例 ---- */

.panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--rule);
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 28px;
  background-image: radial-gradient(var(--dotc) 1.1px, transparent 1.1px);
  background-size: 18px 18px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.panel:nth-child(3),
.panel:nth-child(4) {
  border-bottom: none;
}

.panel-blue,
.panel:nth-child(4) {
  border-right: none;
}

.panel-wide {
  grid-column: span 2;
}

.panel-blue {
  background-color: var(--blue);
  color: #fff;
  background-image: radial-gradient(rgb(255 255 255 / 0.18) 1.1px, transparent 1.1px);
}

.panel:nth-child(3) {
  grid-column: span 2;
}

.panel-head h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.4;
}

.panel-head p {
  margin: 6px 0 24px;
  color: var(--ink-2);
  font-size: 14.5px;
}

.panel-blue .panel-head p {
  color: rgb(255 255 255 / 0.82);
}

.mock {
  margin-top: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 12px 24px -16px rgb(15 27 51 / 0.35);
  overflow: hidden;
  font-size: 13px;
}

.mock-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.chip {
  padding: 2px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12px;
}

.chip-live {
  margin-left: auto;
  border-color: transparent;
  background: color-mix(in srgb, var(--mint) 16%, transparent);
  color: color-mix(in srgb, var(--mint) 70%, var(--ink));
  font-weight: 700;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
}

.mock-table th,
.mock-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.mock-table tbody tr:last-child td {
  border-bottom: none;
}

.mock-table th {
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
}

.mock-table td:nth-child(n + 4),
.mock-table th:nth-child(n + 4) {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.mock-table code {
  font-size: 11.5px;
  color: var(--ink-2);
}

.mock-table b {
  font-weight: 700;
}

.dot {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-ok {
  background: var(--mint);
}

.dot-ng {
  background: var(--red);
}

.dot-run {
  background: var(--amber);
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% {
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--amber) 25%, transparent);
  }
}

.mock-usage {
  padding: 18px;
}

.mock-k {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.mock-v {
  margin: 0 0 12px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
}

.spark {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 64px;
  margin-bottom: 14px;
}

.spark i {
  flex: 1;
  height: calc(var(--h) * 1%);
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--blue) 35%, transparent);
}

.spark i:last-child {
  background: var(--blue);
}

.meter {
  height: 8px;
  border-radius: 8px;
  background: var(--line);
  overflow: hidden;
}

.meter span {
  display: block;
  width: var(--p);
  height: 100%;
  background: var(--mint);
}

.mock-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.mock-timeline {
  padding: 18px 20px;
}

.mock-timeline ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.mock-timeline ol::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  right: 7px;
  height: 2px;
  background: var(--blue);
}

.mock-timeline li {
  position: relative;
  padding-top: 26px;
}

.mock-timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 3px solid var(--blue);
  background: var(--surface);
}

.mock-timeline li.tl-end::before {
  background: var(--mint);
  border-color: var(--mint);
}

.mock-timeline span {
  display: block;
  font-weight: 700;
}

.mock-timeline time {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11.5px;
}

.mock-start {
  padding: 8px 18px;
}

.st {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 0;
  font-weight: 700;
}

.st + .st {
  border-top: 1px solid var(--line);
}

.st svg {
  width: 20px;
  height: 20px;
  padding: 3px;
  border-radius: 50%;
  background: var(--mint);
  color: #fff;
  flex: none;
}

.st-wait {
  color: var(--muted);
}

.spin {
  width: 20px;
  height: 20px;
  border: 2.5px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  flex: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.aside {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* ---- 始め方 ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.steps li {
  padding: 32px 28px 36px;
}

.steps li + li {
  border-left: 1px solid var(--rule);
}

.step-n {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-family: var(--f-brand);
  font-weight: 700;
  font-size: 24px;
}

.steps li:last-child .step-n {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.steps h3 {
  margin: 22px 0 8px;
}

.steps p {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
}

/* ---- ランナー ---- */

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

.runner {
  position: relative;
  padding: 28px;
  border: 1px solid var(--rule);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.runner h3 {
  font-size: 22px;
}

.runner-sizes {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 22px;
  color: var(--ink-2);
  font-weight: 700;
}

.runner-sizes span {
  display: grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  font-family: var(--f-brand);
  font-weight: 700;
  font-size: 20px;
}

.runner code {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--paper);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}

.runner-mac {
  background: var(--navy);
  color: var(--cloud);
  border-color: var(--navy);
}

.runner-mac .runner-sizes {
  color: var(--cloud-2);
}

.runner-mac code {
  background: rgb(255 255 255 / 0.08);
}

.runner-note {
  position: absolute;
  top: 28px;
  right: 28px;
  margin: 0;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--amber);
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
}

/* ---- ベータ ---- */

.cta {
  padding: 120px 0;
  background-color: var(--blue);
  background-image: radial-gradient(rgb(255 255 255 / 0.16) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  color: #fff;
}

.cta-inner h2 {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.1;
}

.cta-inner p {
  max-width: 34em;
  margin: 24px 0 36px;
  color: rgb(255 255 255 / 0.9);
  font-size: 17px;
}

/* ---- 下の帯 ---- */

.foot {
  padding-top: 40px;
  background: var(--navy);
  color: var(--cloud-2);
  font-size: var(--s-small);
  overflow: hidden;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.foot a {
  text-decoration: none;
}

.foot a:hover {
  color: #fff;
}

/* 名前を大きく敷く。縁取りだけにして、読む字の邪魔をしない */
.foot-mark {
  margin: 40px 0 -0.2em;
  font-family: var(--f-brand);
  font-weight: 700;
  font-size: clamp(72px, 18.5vw, 290px);
  line-height: 1;
  letter-spacing: -0.065em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1.5px #34466f;
}

/* ---- 狭い画面 ---- */

@media (max-width: 1000px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero-art {
    width: 100%;
    opacity: 0.4;
  }

  .split,
  .split-rev {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  .split-rev .art {
    order: 0;
  }

  .panels {
    grid-template-columns: minmax(0, 1fr);
  }

  .panel,
  .panel-wide,
  .panel:nth-child(3) {
    grid-column: auto;
    border-right: none;
    border-bottom: 1px solid var(--rule);
  }

  .panel:nth-child(4) {
    border-bottom: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }

  .nav {
    display: none;
  }

  .top-inner {
    justify-content: space-between;
  }

  .hero {
    padding-top: 20px;
  }

  .hero-grid {
    margin-top: 32px;
  }

  .term {
    margin-bottom: -40px;
  }

  .ticker {
    padding: 14px 0;
  }

  .sec {
    padding: 80px 0;
  }

  .sec-head {
    margin-bottom: 40px;
  }

  .sec-head-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .split + .split {
    margin-top: 80px;
  }

  .race {
    padding: 56px 18px 24px;
  }

  .lane {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .lane .track {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .lane-time {
    font-size: 34px;
  }

  .facts3,
  .runner-grid,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact,
  .fact + .fact {
    padding: 28px 0;
    border-left: none;
  }

  .fact + .fact {
    border-top: 1px solid var(--night-line);
  }

  .steps li + li {
    border-left: none;
    border-top: 1px solid var(--rule);
  }

  .mock-table th:nth-child(3),
  .mock-table td:nth-child(3),
  .mock-table th:nth-child(6),
  .mock-table td:nth-child(6) {
    display: none;
  }

  .mock-timeline ol {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 16px;
  }

  .mock-timeline ol::before {
    display: none;
  }

  .cta {
    padding: 80px 0;
  }
}

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

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

  .bar {
    transform: scaleX(1);
  }
}
