/*
 * 帰り時 / LastRide website. Light pages with the app's navy and amber,
 * a sticky header and a navy footer. Sizes are fluid (clamp) so text and
 * spacing scale with the window; layouts switch at 900px.
 */
:root {
  --bg: #f6f8fb;
  --surface: #ffffff;
  --border: #e3e8ef;
  --text: #0a1322;
  --muted: #5b6b80;
  --navy: #0a1322;
  --navy-2: #13213a;
  --amber: #f5a93b;
  --amber-soft: #fde7c4;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 20px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; font-size: clamp(15px, 0.85rem + 0.3vw, 18px); scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Segoe UI", sans-serif;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: #b8730f; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.container { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
header.site nav.main { margin-left: auto; }
header.site .container { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; min-height: 64px; flex-wrap: wrap; padding-top: 0.4rem; padding-bottom: 0.4rem; }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 0.6rem; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.55rem; }
.brand b { letter-spacing: 0.16em; font-size: 0.9rem; font-weight: 900; }
.brand span { color: #c27b12; font-weight: 800; font-size: 1.05rem; }
nav.main { display: flex; align-items: center; gap: 0.25rem 1.4rem; flex-wrap: wrap; font-size: 0.875rem; font-weight: 600; }
nav.main a { color: var(--text); text-decoration: none; padding: 0.25rem 0; white-space: nowrap; }
nav.main a:hover { color: #c27b12; }
.lang-toggle { display: inline-flex; font-weight: 600; border: 1.5px solid var(--border); border-radius: 999px; padding: 2px; }
.lang-toggle a { text-decoration: none; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; color: var(--muted); }
.lang-toggle a[aria-current] { background: var(--navy); color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; border-radius: 999px; padding: 0.75rem 1.4rem; font-weight: 800; text-decoration: none; font-size: 0.95rem; border: 2px solid transparent; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--navy-2); }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.store { display: inline-flex; align-items: center; gap: 0.6rem; background: var(--navy); color: #fff; border-radius: 12px; padding: 0.6rem 1.1rem; text-decoration: none; }
.store svg { width: 1.6rem; height: 1.6rem; fill: #fff; }
.store small { display: block; font-size: 0.68rem; opacity: 0.8; line-height: 1.2; }
.store strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.store[aria-disabled="true"] { cursor: default; }

/* Hero */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 5vw, 4rem); }
.hero .container { display: grid; gap: 2.5rem; align-items: center; }
.hero h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); line-height: 1.25; margin: 0 0 1rem; letter-spacing: 0.01em; }
.mark { background: linear-gradient(transparent 62%, var(--amber-soft) 62%); padding: 0 0.1em; }
.nw { display: inline-block; }
.mark.mark-dark { background: none; color: var(--amber); }
.hero h1 .line { display: block; white-space: nowrap; }
.hero h1 .accent { color: #c27b12; }
.hero p.lead { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); color: var(--muted); margin: 0 0 1.75rem; max-width: 32em; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.hero .note { margin-top: 0.9rem; font-size: 0.85rem; color: var(--muted); }

/* Phone mockup (drawn in CSS: no real map data or personal places) */
.hero-art { position: relative; display: flex; justify-content: center; }
.duo { position: relative; width: min(33rem, 100%); margin: 1.5rem auto; }
.phone { position: relative; background: #05080f; border-radius: 15% / 7%; padding: 2.4%; box-shadow: 0 2rem 4rem rgba(10, 19, 34, 0.35), inset 0 0 0 2px #26344d; container-type: inline-size; }
.phone.front { width: 53%; margin-left: auto; margin-right: 1%; z-index: 2; }
.phone.back { position: absolute; left: 1%; top: 9%; width: 48%; transform: rotate(5deg); z-index: 1; box-shadow: 0 1.5rem 3rem rgba(10, 19, 34, 0.3); }
.phone img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1304; border-radius: 12% / 5.6%; }
.lock { aspect-ratio: 600 / 1304; border-radius: 12% / 5.6%; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 16cqw 4cqw 4cqw; color: #fff; text-align: center;
  background: radial-gradient(90% 45% at 50% 100%, rgba(245, 169, 59, 0.45), transparent 70%), radial-gradient(80% 50% at 20% 20%, #2b3f73 0%, transparent 70%), linear-gradient(180deg, #0d1733 0%, #1b1f45 55%, #3a2a4a 100%); }
.lock { position: relative; }
.lock::before { content: ""; position: absolute; top: 3cqw; left: 50%; width: 30cqw; height: 8.5cqw; margin-left: -15cqw; border-radius: 5cqw; background: #000; }
.lock-date { font-size: 5cqw; font-weight: 600; opacity: 0.85; }
.lock-time { font-size: 24cqw; font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin-top: 1cqw; }
.lock-bottom { margin-top: auto; width: 100%; display: flex; flex-direction: column; gap: 2.5cqw; text-align: left; }
.la { display: flex; align-items: center; gap: 3cqw; background: #112238; border-radius: 6cqw; padding: 4cqw; }
.la div { flex: 1; min-width: 0; }
.la b { display: block; font-size: 4.6cqw; }
.la span { display: block; font-size: 3.4cqw; color: #c9d4de; line-height: 1.35; }
.la strong { font-size: 8cqw; color: #f2a33a; font-variant-numeric: tabular-nums; }
.notif { display: flex; align-items: flex-start; gap: 2.5cqw; background: rgba(245, 245, 250, 0.82); color: #111; border-radius: 6cqw; padding: 3.2cqw; backdrop-filter: blur(8px); }
.notif img { width: 8cqw; height: 8cqw; border-radius: 2cqw; flex: none; }
.notif div { flex: 1; min-width: 0; }
.notif b { display: block; font-size: 3.8cqw; }
.notif span { display: block; font-size: 3.5cqw; line-height: 1.35; }
.notif small { font-size: 3cqw; color: #555; }
.lock-buttons { display: flex; justify-content: space-between; padding: 3cqw 6cqw 1cqw; }
.lock-buttons i { width: 11cqw; height: 11cqw; border-radius: 50%; background: rgba(255, 255, 255, 0.18); }
.shots { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0.5rem var(--gutter) 1.5rem; margin: 2rem calc(-1 * var(--gutter)) 0; }
.shot { flex: none; width: min(15rem, 68vw); margin: 0; scroll-snap-align: center; }
.shot img { display: block; width: 100%; height: auto; aspect-ratio: 600 / 1304; border-radius: 2.2rem; border: 0.45rem solid #05080f; box-shadow: 0 1.5rem 3rem rgba(10, 19, 34, 0.25); }
.shot figcaption { margin-top: 1rem; text-align: center; font-size: 0.875rem; color: var(--muted); line-height: 1.6; }
.shot figcaption b { display: block; color: var(--text); font-size: 1rem; }
@media (min-width: 900px) {
  .shots { display: grid; grid-template-columns: repeat(3, minmax(0, 15rem)); justify-content: center; gap: 2.5rem; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .shot { width: auto; }
}

/* Sections */
section.block { padding: clamp(3rem, 7vw, 5.5rem) 0; }
section.block.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { text-align: center; color: var(--muted); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; margin: 0; }
.heading { text-align: center; font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem); line-height: 1.35; margin: 0.25rem 0 0.75rem; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 2.5rem; max-width: 36em; }

.steps { display: grid; gap: 1rem; counter-reset: step; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
section.alt .step { background: var(--bg); }
.step .num { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--navy); color: var(--amber); display: grid; place-items: center; font-weight: 900; margin-bottom: 0.75rem; }
.step h3, .feature h3 { margin: 0 0 0.35rem; font-size: 1.1rem; }
.step p, .feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.features { display: grid; gap: 1rem; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; }
.feature .icon { width: 2.8rem; height: 2.8rem; border-radius: 0.9rem; background: var(--amber-soft); display: grid; place-items: center; margin-bottom: 0.9rem; }
.feature .icon svg { width: 1.4rem; height: 1.4rem; stroke: #a8640c; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tag-pro { display: inline-block; margin-left: 0.4rem; background: var(--navy); color: var(--amber); border-radius: 999px; font-size: 0.65rem; padding: 0.05rem 0.55rem; vertical-align: 0.15em; font-weight: 800; }

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; list-style: none; padding: 0; margin: 0 auto; max-width: 52rem; }
.chips li { border: 1.5px solid #9fb3cc; color: var(--navy-2); background: var(--surface); border-radius: 999px; padding: 0.35rem 1rem; font-weight: 700; font-size: 0.9rem; }
.chips li.apple { border-color: var(--amber); background: #fff8ec; }
.fineprint { text-align: center; color: var(--muted); font-size: 0.8rem; margin-top: 1rem; }

.plans { display: grid; gap: 1rem; max-width: 52rem; margin: 0 auto; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.75rem; }
section.alt .plan:not(.pro) { background: var(--bg); }
.plan.pro { background: var(--navy); color: #eaf0f7; border-color: var(--navy); }
.plan h3 { margin: 0; font-size: 1.2rem; }
.plan .price { font-size: clamp(1.8rem, 1.4rem + 1.4vw, 2.4rem); font-weight: 900; margin: 0.4rem 0 0.2rem; }
.plan.pro .price { color: var(--amber); }
.plan .price small { font-size: 0.9rem; font-weight: 600; }
.plan .per { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; }
.plan.pro .per { color: #8fa2b8; }
.plan ul { margin: 0; padding-left: 1.2rem; }
.plan li { margin: 0.25rem 0; }

.faq { max-width: 46rem; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.9rem 1.2rem; margin-bottom: 0.75rem; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq p { margin: 0.6rem 0 0; color: var(--muted); }
.center { text-align: center; }

.cta { background: var(--navy); color: #eaf0f7; border-radius: 28px; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter); text-align: center; }
.cta .heading { color: #fff; }
.cta .sub { color: #8fa2b8; margin-bottom: 1.75rem; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.cta .store { background: #fff; color: var(--navy); }
.cta .store svg { fill: var(--navy); }

/* Footer */
footer.site { background: var(--navy); color: #8fa2b8; padding: 2.5rem 0 3rem; font-size: 0.85rem; }
footer.site .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.25rem; padding-bottom: 1.5rem; border-bottom: 1px solid #1e2b40; }
footer.site .brand { color: #fff; }
footer.site .brand span { color: var(--amber); }
footer.site nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; }
footer.site nav a { color: #eaf0f7; text-decoration: none; font-weight: 600; }
footer.site p { margin: 1rem 0 0; font-size: 0.78rem; line-height: 1.7; }

/* Reading pages (privacy, terms, 特商法, support) */
main.doc { max-width: 50rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.5rem) var(--gutter) 4rem; }
main.doc h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); line-height: 1.3; margin: 0 0 0.25rem; }
main.doc h2 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem); margin: 2.25rem 0 0.5rem; padding-top: 1rem; border-top: 1px solid var(--border); }
main.doc h3 { font-size: 1rem; margin: 1.5rem 0 0.25rem; }
.muted { color: var(--muted); font-size: 0.875rem; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 1rem 1.25rem; margin: 1rem 0; }
table { width: 100%; border-collapse: collapse; margin: 0.75rem 0; font-size: 0.95rem; background: var(--surface); border-radius: 14px; overflow: hidden; }
th, td { text-align: left; vertical-align: top; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 700; width: 32%; background: #fbfcfe; }
@media (max-width: 600px) {
  table.kv, table.kv tbody, table.kv tr, table.kv th, table.kv td { display: block; width: 100%; }
  table.kv th { border-bottom: none; padding-bottom: 0; background: transparent; }
}

/* Layouts by width */
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .hero .container { grid-template-columns: 1.1fr 1fr; }
  .features { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
  header.site .brand { flex: 1; }
  header.site nav.main { order: 3; width: 100%; }
    }
