/* APEX DRIVE LP — 夜のガレージ＋ネオン（アプリの theme と同じ色）。デザインの正本は design/lp/apexdrive-lp.pen */
:root {
  --bg: #07080c;
  --navy: #0b1626;
  --panel: #121722;
  --line: #243046;
  --text: #f2f5fa;
  --dim: #9aa5b8;
  --red: #ff2e4d;
  --yellow: #ffc21a;
  --sunset: #ff8a2a;
  --cyan: #2ee6ff;
  --green: #39ff88;
  --purple: #b46cff;
  --jp: 'Dela Gothic One', 'Hiragino Kaku Gothic StdN', sans-serif;
  --hud: 'Orbitron', 'Helvetica Neue', sans-serif;
  --body: 'Noto Sans JP', 'Hiragino Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 5.5vw, 80px);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.8; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: var(--jp); font-weight: 400; line-height: 1.25; letter-spacing: .01em; word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
html[lang="en"] h1, html[lang="en"] h2 { line-height: 1.15; }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h2.big { font-size: clamp(34px, 4.6vw, 66px); }
/* 日本語の改行単位（page.mjs の ph）。塊の中では折り返さず、塊の間でだけ行を変える。 */
.ph { display: inline-block; }
h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.body { color: var(--dim); font-size: clamp(15px, 1.25vw, 17px); line-height: 1.9; }
.fine { color: var(--dim); font-size: 13px; line-height: 1.7; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--yellow); color: #000; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

.ic { width: 24px; height: 24px; flex: none; }
.ic-sunset { color: var(--sunset); } .ic-cyan { color: var(--cyan); } .ic-red { color: var(--red); } .ic-green { color: var(--green); }

.label { display: flex; gap: 14px; align-items: center; font-family: var(--hud); font-size: 13px; letter-spacing: .3em; margin-bottom: 18px; }
.label .num { color: var(--red); font-weight: 900; letter-spacing: .1em; }
.label .en { color: var(--yellow); font-weight: 700; }

/* ---------- nav ---------- */
.nav { position: relative; z-index: 20; width: 100%; display: flex; align-items: center; justify-content: space-between; height: 88px; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.logo { font-family: var(--hud); font-weight: 900; font-size: 22px; letter-spacing: .14em; text-decoration: none; }
/* アプリのロゴと同じ配色（APEX＝白、DRIVE＝赤、斜体）。 */
.logo { font-style: italic; color: var(--text); }
.logo span { color: var(--red); }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a { font-family: var(--hud); font-weight: 700; font-size: 12px; letter-spacing: .18em; color: var(--dim); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-links .lang { color: var(--text); border: 1px solid #f2f5fa55; padding: 6px 12px; border-radius: 2px; }
.menu-btn { display: none; background: none; border: 0; color: var(--text); padding: 8px; margin-right: -8px; cursor: pointer; }
.menu-btn .ic-close { display: none; }

/* ---------- coming soon ---------- */
.soon { display: inline-flex; align-items: center; gap: 14px; padding: 16px 28px; border: 1.5px solid var(--yellow); border-radius: 4px; background: #07080ccc; box-shadow: 0 0 32px #ffc21a26; }
.soon-tag { font-family: var(--hud); font-weight: 700; font-size: 12px; letter-spacing: .25em; color: var(--yellow); white-space: nowrap; }
.soon-label { font-weight: 700; font-size: 16px; }
.note { color: var(--dim); font-size: 13px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(100svh, 920px); display: flex; flex-direction: column; isolation: isolate; }
.hero-bg, .section-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img, .section-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, #07080ce6 0%, #07080c99 40%, #07080c00 75%),
  linear-gradient(180deg, #07080cb3 0%, #07080c00 22%, #07080c00 65%, var(--bg) 100%); }
.hero-copy { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 26px; padding-bottom: 80px; padding-top: 40px; }
.hero-copy > * { max-width: 760px; }
.kicker { display: flex; align-items: center; gap: 12px; font-family: var(--hud); font-weight: 700; font-size: 13px; letter-spacing: .3em; color: var(--yellow); }
.kicker .bar { width: 40px; height: 3px; background: var(--red); }
.hero h1 { font-size: clamp(44px, 6.2vw, 92px); line-height: 1.15; text-shadow: 0 4px 24px #0009; }
html[lang="en"] .hero h1 { font-size: clamp(36px, 4.6vw, 68px); }
.lead { font-size: clamp(15px, 1.3vw, 18px); line-height: 1.8; color: #dce3ee; max-width: 640px; }
.hero .soon { align-self: flex-start; }

/* ---------- solo ---------- */
.solo { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 1fr); gap: 72px; align-items: center; padding-top: 140px; padding-bottom: 120px; }
.solo-visual { position: relative; aspect-ratio: 700 / 640; }
.solo-visual .course-main { position: absolute; left: 0; top: 6%; width: 88.5%; aspect-ratio: 620 / 420; object-fit: cover; border-radius: 6px; box-shadow: 0 30px 60px #000a; }
.solo-visual .course-sub { position: absolute; right: 0; top: 53%; width: 53%; aspect-ratio: 370 / 260; object-fit: cover; border-radius: 6px; border: 8px solid var(--bg); box-shadow: 0 20px 40px #000c; }
.chip { position: absolute; left: 3.4%; top: 10%; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #07080ccc; border-radius: 2px; font-size: 12px; font-weight: 700; }
.chip .ic { width: 14px; height: 14px; color: var(--yellow); }
.stamp { position: absolute; width: 17%; aspect-ratio: 1; border-radius: 50%; background: #f1e6cc; border: 3px solid #c8452e; box-shadow: 0 8px 16px #0008; }
.st1 { left: 3%; top: 73%; transform: rotate(-8deg); }
.st2 { left: 21%; top: 78%; transform: rotate(6deg); }
.st3 { left: 80%; top: 0; transform: rotate(-10deg); }
.solo-copy h2 { margin-bottom: 20px; }
.features { margin-top: 40px; }
.features li { display: flex; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line); }
.features h3 { font-size: 18px; margin-bottom: 4px; }
.features p { color: var(--dim); font-size: 15px; line-height: 1.7; }

/* ---------- encounter ---------- */
.encounter { position: relative; isolation: isolate; padding: 120px 0 100px; min-height: 1000px; }
.encounter::after, .final::after { content: ''; position: absolute; inset: 0; z-index: -1; }
.encounter::after { background: linear-gradient(180deg, var(--bg) 0%, #07080c99 30%, #07080c40 60%, var(--bg) 100%); }
.encounter h2 { max-width: 900px; text-shadow: 0 4px 24px #000a; }
.encounter .body { color: #dce3ee; max-width: 760px; margin-top: 20px; }
.hint { display: inline-flex; align-items: center; gap: 12px; margin-top: 44px; padding: 12px 22px; background: #07080cd9; border: 1px solid var(--yellow); border-radius: 2px; box-shadow: 0 0 24px #ffc21a55; font-family: var(--jp); font-size: 18px; color: var(--yellow); }
.hint .ic { width: 18px; height: 18px; }
.cards { display: flex; justify-content: center; align-items: flex-end; gap: 36px; margin-top: 64px; }
.card { --tone: var(--cyan); position: relative; width: 220px; aspect-ratio: 220 / 320; border-radius: 10px; overflow: hidden; border: 2px solid var(--tone); display: flex; flex-direction: column; justify-content: flex-end; padding: 16px; gap: 4px; text-align: left; box-shadow: 0 20px 40px #000c; }
.card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 88%; z-index: -1; }
.card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0000 45%, #000e 100%); }
.card { isolation: isolate; }
.card:first-child { transform: rotate(-6deg) translateY(10px); }
.card:last-child { transform: rotate(6deg) translateY(10px); }
.card-main { width: 260px; border-width: 3px; box-shadow: 0 0 48px color-mix(in srgb, var(--tone) 55%, transparent); }
.card .stars { color: var(--tone); letter-spacing: .15em; font-size: 14px; }
.card strong { font-family: var(--hud); font-weight: 900; font-size: 18px; letter-spacing: .05em; }
.card .sub { font-size: 12px; color: #c9d2e0; }
.tone-r { --tone: #2ea8ff; } .tone-lg { --tone: var(--yellow); } .tone-sr { --tone: var(--green); }
.encounter .fine { margin-top: 28px; }

/* ---------- touring ---------- */
.touring { position: relative; isolation: isolate; padding: 140px 0; }
.touring::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--bg) 0%, #07080ce6 45%, #07080c99 100%), linear-gradient(180deg, var(--bg) 0%, #07080c00 20%, #07080c00 80%, var(--bg) 100%); }
.touring-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 96px; align-items: center; }
.touring-copy h2 { margin-bottom: 20px; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0 24px; }
.points li { padding: 20px; background: #ffffff08; border: 1px solid var(--line); border-radius: 6px; backdrop-filter: blur(6px); }
.points h3 { font-size: 16px; margin: 10px 0 4px; }
.points p { font-size: 13px; color: var(--dim); line-height: 1.6; }
.phone { width: 340px; aspect-ratio: 340 / 700; padding: 12px; border-radius: 48px; background: #1a1f2b; border: 2px solid #3a4458; box-shadow: 0 40px 80px #000c; }
.screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; background: #0f1a28; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .road { fill: none; stroke: #2a3a52; stroke-width: 10; stroke-linecap: round; }
.map .route { fill: none; stroke: var(--cyan); stroke-width: 5; stroke-linecap: round; filter: drop-shadow(0 0 6px #2ee6ff99); }
.dest { position: absolute; left: 47%; top: 6%; display: inline-flex; gap: 6px; align-items: center; padding: 6px 10px; background: var(--yellow); color: #07080c; border-radius: 4px; font-size: 12px; font-weight: 700; }
.dest .ic { width: 14px; height: 14px; }
.pin { position: absolute; display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px 4px 4px; background: #07080ce6; border: 1.5px solid var(--c); border-radius: 20px; font-family: var(--hud); font-weight: 700; font-size: 11px; }
.pin i { width: 16px; height: 16px; border-radius: 50%; background: var(--c); }
.p-taka { --c: var(--purple); left: 52%; top: 33%; } .p-mio { --c: var(--green); left: 55%; top: 44%; }
.p-ken { --c: var(--yellow); left: 37%; top: 59%; } .p-you { --c: var(--red); left: 24%; top: 70%; }
.room { position: absolute; left: 12px; right: 12px; bottom: 16px; display: flex; flex-direction: column; gap: 4px; padding: 16px; background: #07080cf0; border: 1px solid var(--line); border-radius: 20px; }
.room small { font-family: var(--hud); font-weight: 700; font-size: 10px; letter-spacing: .2em; color: var(--cyan); }
.room strong { font-size: 16px; }
.room span { font-size: 12px; color: var(--dim); }

/* ---------- team ---------- */
.team { position: relative; overflow: hidden; padding-top: 140px; padding-bottom: 140px; }
.team-word { position: absolute; left: -40px; top: 40px; font-family: var(--hud); font-weight: 900; font-size: clamp(160px, 29vw, 420px); line-height: 1; letter-spacing: -.03em; color: #ff2e4d12; pointer-events: none; user-select: none; }
.team-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 460px; gap: 80px; align-items: end; }
.team-mid { position: relative; display: grid; grid-template-columns: 560px minmax(0, 1fr); gap: 24px; margin-top: 64px; }
.team-card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; min-height: 420px; padding: 36px; border: 2px solid var(--red); border-radius: 8px; overflow: hidden; background: url('/assets/img/team-bg.webp') center / cover; }
.team-card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #07080cf2 0%, #07080cb3 60%, #07080c40 100%); }
.tc-head { display: flex; gap: 20px; align-items: center; }
.tc-head img { width: 88px; height: 88px; }
.tc-head div { display: flex; flex-direction: column; gap: 4px; }
.tc-head small { font-family: var(--hud); font-weight: 700; font-size: 12px; letter-spacing: .25em; color: var(--yellow); }
.tc-head strong { font-family: var(--hud); font-weight: 900; font-size: 40px; letter-spacing: .05em; line-height: 1.1; }
.tc-head span { font-size: 13px; color: #c9d2e0; }
.tc-stats { display: flex; gap: 40px; margin: 0; }
.tc-stats dt { font-family: var(--hud); font-weight: 900; font-size: 30px; }
.tc-stats dd { margin: 0; font-size: 12px; color: var(--dim); }
.team-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.team-grid li { display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 28px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; transition: border-color .2s; }
.team-grid li:hover { border-color: var(--red); }
.team-grid .ic { width: 28px; height: 28px; }
.team-grid h3 { font-size: 20px; }
.team-grid p { font-size: 14px; color: var(--dim); }

/* ---------- collection ---------- */
.collection { background: var(--navy); padding: 120px 0; }
.col-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.col-head h2 { font-size: clamp(28px, 3.2vw, 44px); }
.col-head .body { max-width: 420px; text-align: right; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.tiles li { position: relative; isolation: isolate; height: 300px; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; border-radius: 8px; overflow: hidden; }
.tiles img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform .6s; }
.tiles li:hover img { transform: scale(1.04); }
.tiles li::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0000 35%, #000000e0 100%); }
.tiles h3 { font-family: var(--jp); font-weight: 400; font-size: 22px; }
.tiles p { font-size: 13px; color: #d5dce7; }

/* ---------- safety ---------- */
.safety { display: grid; grid-template-columns: 360px repeat(3, minmax(0, 1fr)); gap: 48px; align-items: center; padding-top: 64px; padding-bottom: 64px; border-bottom: 1px solid var(--line); }
.safety h2 { display: flex; gap: 16px; align-items: center; font-size: 20px; line-height: 1.4; }
.safety h2 .ic { width: 36px; height: 36px; }
.safety ul { display: contents; }
.safety h3 { font-size: 16px; }
.safety p { font-size: 13px; color: var(--dim); line-height: 1.6; }

/* ---------- final ---------- */
.final { position: relative; isolation: isolate; min-height: 720px; display: flex; align-items: center; padding: 80px 0; }
.final::after { background: linear-gradient(180deg, var(--bg) 0%, #07080c33 35%, #07080c99 70%, var(--bg) 100%); }
.final .center { gap: 28px; }
.final h2 { text-shadow: 0 4px 24px #000a; }

/* ---------- footer ---------- */
.footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; max-width: 1440px; margin: 0 auto; padding: 40px var(--gutter); }
.footer .logo { font-size: 16px; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer a, .footer small { font-size: 12px; color: var(--dim); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- doc pages ---------- */
.doc .nav { border-bottom: 1px solid var(--line); }
.doc-body { max-width: 860px; padding-top: 64px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 20px; }
.doc-body h1 { font-size: clamp(28px, 4vw, 40px); }
.doc-body.center { align-items: center; text-align: center; min-height: 70vh; justify-content: center; }
.ext-row { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.ext-row h2 { font-family: var(--body); font-weight: 700; font-size: 18px; margin-bottom: 12px; }
.ext-row dl { display: grid; grid-template-columns: 200px 1fr; gap: 8px 20px; margin: 0; font-size: 14px; }
.ext-row dt { color: var(--dim); }
.ext-row dd { margin: 0; word-break: break-word; }
.doc-body a { color: var(--cyan); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.card.reveal.in:first-child { transform: rotate(-6deg) translateY(10px); }
.card.reveal.in:last-child { transform: rotate(6deg) translateY(10px); }

/* ---------- tablet ---------- */
@media (max-width: 1180px) {
  .solo { grid-template-columns: 1fr 1fr; gap: 48px; }
  .touring-grid { gap: 48px; }
  .team-top { grid-template-columns: 1fr; gap: 24px; }
  .team-mid { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .safety { grid-template-columns: repeat(3, 1fr); }
  .safety h2 { grid-column: 1 / -1; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .nav { height: 64px; }
  .logo { font-size: 16px; }
  .menu-btn { display: block; position: relative; z-index: 31; }
  .nav-links { position: fixed; inset: 0; z-index: 30; flex-direction: column; justify-content: center; gap: 28px; background: #07080cf5; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
  .nav-links a { font-size: 16px; }
  .nav-doc { position: static; inset: auto; flex-direction: row; background: none; opacity: 1; visibility: visible; }
  .nav-doc a { font-size: 12px; }
  body.menu-open { overflow: hidden; }
  body.menu-open .nav-links { opacity: 1; visibility: visible; }
  body.menu-open .menu-btn { position: fixed; top: 12px; right: var(--gutter); }
  body.menu-open .ic-open { display: none; } body.menu-open .ic-close { display: block; }

  .hero { min-height: 100svh; }
  .hero::after { background: linear-gradient(180deg, #07080cb3 0%, #07080c00 20%, #07080c33 50%, var(--bg) 92%); }
  .hero-copy { gap: 18px; padding-bottom: 40px; }
  .kicker { font-size: 10px; letter-spacing: .15em; }
  .kicker .bar { display: none; }
  .soon { display: flex; width: 100%; justify-content: center; padding: 16px; gap: 12px; }
  .soon-label { font-size: 15px; }
  .soon-tag { letter-spacing: .15em; }

  .solo { grid-template-columns: 1fr; gap: 28px; padding-top: 72px; padding-bottom: 72px; }
  .solo-copy { order: -1; }
  .solo-visual { aspect-ratio: 350 / 280; }
  .solo-visual .course-main { width: 100%; top: 0; }
  .solo-visual .course-sub, .st2, .st3 { display: none; }
  .stamp { width: 27%; }
  .st1 { left: auto; right: 2%; top: 62%; }
  .features { margin-top: 8px; }

  .encounter { padding: 80px 0 64px; min-height: 0; }
  .hint { font-size: 14px; margin-top: 28px; }
  .cards { margin-top: 36px; gap: 0; }
  .card:not(.card-main) { display: none; }
  .card-main { width: min(260px, 70vw); }

  .touring { padding: 72px 0; }
  .touring::after { background: linear-gradient(180deg, var(--bg) 0%, #07080ccc 30%, #07080ce6 100%); }
  .touring-grid { grid-template-columns: 1fr; gap: 32px; }
  .phone { width: 260px; justify-self: center; order: 2; }
  .points { gap: 10px; margin: 28px 0 16px; }
  .points li { padding: 14px; }
  .points p { display: none; }
  .points h3 { font-size: 13px; }

  .team { padding-top: 72px; padding-bottom: 72px; }
  .team-mid { margin-top: 28px; gap: 12px; }
  .team-card { min-height: 300px; padding: 24px; }
  .tc-head img { width: 60px; height: 60px; }
  .tc-head strong { font-size: 26px; }
  .tc-stats { gap: 28px; }
  .tc-stats div:nth-child(3) { display: none; }
  .team-grid { gap: 12px; }
  .team-grid li { padding: 18px; }
  .team-grid h3 { font-size: 15px; }
  .team-grid p { display: none; }

  .collection { padding: 72px 0; }
  .col-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .col-head .body { text-align: left; }
  .tiles { gap: 12px; margin-top: 28px; }
  .tiles li { height: 200px; padding: 14px; }
  .tiles h3 { font-size: 18px; }
  .tiles p { display: none; }

  .safety { grid-template-columns: 1fr; gap: 16px; padding-top: 48px; padding-bottom: 48px; }
  .safety h2 { font-size: 17px; }
  h2.big { font-size: 30px; }
  .safety h2 .ic { width: 26px; height: 26px; }

  .final { min-height: 600px; align-items: flex-end; padding: 60px 0; }
  .final::after { background: linear-gradient(180deg, var(--bg) 0%, #07080c40 30%, #07080ce6 75%); }
  .final .center { gap: 20px; }

  .footer { flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px var(--gutter); }
  .footer-links { gap: 8px 18px; }
  .ext-row dl { grid-template-columns: 1fr; gap: 2px; }
  .ext-row dd { margin-bottom: 10px; }
}
