/* 山なみ HP — 色はアプリのアイコン (夜明けの紺 → 地平線の琥珀) と、
   画面の稜線 (黄) ・名前のラベル (紺の角丸) から取っている */
:root {
  --night: #0b1626;
  --night-2: #13243d;
  --dusk: #2a3f62;
  --dawn: #e9a253;
  --ridge: #ffd23f;
  --label: rgba(36, 50, 72, 0.94);
  --paper: #f6f2eb;
  --paper-2: #ece5d8;
  --ink: #1b2430;
  --body: #2f3a48;
  --muted: #5a6573;
  --line: #ddd3c3;
  --accent: #98511d;
  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible, .gallery:focus-visible {
  outline: 2px solid var(--dawn);
  outline-offset: 3px;
  border-radius: 6px;
}
/* 日本語を文節で折り返す (Chrome / Edge。ほかのブラウザでは無視される) */
h1, h2, h3 { text-wrap: balance; word-break: auto-phrase; }
p { text-wrap: pretty; }
.lead, .section-head p, figcaption { word-break: auto-phrase; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* ── ヘッダ ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 22, 38, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.site-header .wrap { height: 56px; display: flex; align-items: center; justify-content: space-between; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.1em;
}
.brand img { border-radius: 8px; display: block; }
.site-nav { display: flex; gap: 26px; }
.site-nav a { color: rgba(255, 255, 255, 0.8); text-decoration: none; font-size: 14px; letter-spacing: 0.04em; }
.site-nav a:hover { color: #fff; }

/* ── トップ: 最初の画面 ─────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  padding-top: 72px;
  background:
    radial-gradient(110% 60% at 50% 100%, rgba(233, 162, 83, 0.5) 0%, rgba(233, 162, 83, 0) 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 42%, var(--dusk) 100%);
}
.hero-genre {
  display: inline-block;
  margin: 0 0 22px;
  padding: 3px 16px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 210, 63, 0.45);
  border-radius: 999px;
}
.hero-genre span { margin: 0 0.4em; color: var(--ridge); }
.hero h1 {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 6.2vw, 62px);
  line-height: 1.38;
  letter-spacing: 0.05em;
}
.lead {
  max-width: 38em;
  margin: 0 auto 30px;
  font-size: clamp(15px, 2vw, 17px);
  color: rgba(255, 255, 255, 0.84);
}
.hero-device { position: relative; z-index: 2; margin-top: 48px; padding-bottom: 128px; }
.hero .device { max-width: 920px; margin: 0 auto; }
.device-caption { margin: 14px 0 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.62); letter-spacing: 0.04em; }
.ridges { position: absolute; left: 0; bottom: -1px; width: 100%; height: 170px; z-index: 1; }
.ridges .r1 { fill: #22395b; }
.ridges .r2 { fill: #15283f; }
.ridges .r3 { fill: var(--paper); }
.ridges .r-line { fill: none; stroke: var(--ridge); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; opacity: 0.9; }

/* App Store のボタン (まだ公開前は is-soon) */
.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 24px 11px 18px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.store svg { width: 26px; height: 26px; flex: none; }
.store > span { display: flex; flex-direction: column; text-align: left; font-weight: 600; font-size: 17px; line-height: 1.3; }
.store small { font-size: 11px; font-weight: 400; opacity: 0.78; letter-spacing: 0.04em; }
.store.is-soon { background: rgba(255, 255, 255, 0.07); }

/* ── 端末の枠 (実際の画面を入れる) ────────── */
.device {
  background: #04070c;
  padding: 10px;
  border-radius: 34px;
  box-shadow: 0 32px 80px -24px rgba(4, 8, 16, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.device img { display: block; width: 100%; height: auto; border-radius: 25px; }
.device-sm { padding: 7px; border-radius: 24px; box-shadow: 0 24px 50px -24px rgba(11, 22, 38, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.device-sm img { border-radius: 18px; }
.device-port { width: 100%; max-width: 270px; padding: 9px; border-radius: 42px; }
.device-port img { border-radius: 34px; }
@media (max-width: 640px) {
  .hero { padding-top: 52px; }
  .hero-genre { font-size: 12px; letter-spacing: 0.06em; padding: 3px 14px; white-space: nowrap; }
  .hero .device { max-width: 250px; padding: 9px; border-radius: 40px; }
  .hero .device img { border-radius: 32px; }
  .hero-device { margin-top: 36px; padding-bottom: 110px; }
  .ridges { height: 120px; }
  .hide-sm { display: none; }
}

/* ── 節 ─────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--paper-2); }
.section-head { max-width: 640px; margin: 0 auto 60px; text-align: center; }
.eyebrow { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.22em; color: var(--accent); }
.section-head h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.45;
  letter-spacing: 0.04em;
}
.section-head p { margin: 0; color: var(--muted); }
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 44px; }
}

/* 特長: 画面と文を左右に */
.feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; margin-bottom: 104px; }
.feature:last-child { margin-bottom: 0; }
.feature.reverse { grid-template-columns: 1fr 1.3fr; }
.feature.reverse .feature-media { order: 2; }
.feature-media { margin: 0; }
.feature-media figcaption { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }
.feature-media-port { display: flex; flex-direction: column; align-items: center; }
.feature-text h3 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(23px, 3vw, 30px);
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.feature-text p { margin: 0 0 12px; color: var(--body); }
@media (max-width: 860px) {
  .feature, .feature.reverse { grid-template-columns: 1fr; gap: 30px; margin-bottom: 80px; }
  .feature.reverse .feature-media { order: 0; }
}

/* アプリの名前のラベルと同じ形 (名前 + 距離・標高、引き出し線と黄色の点) */
.chip {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  margin-bottom: 34px;
  padding: 6px 13px;
  border-radius: 8px;
  background: var(--label);
  color: #fff;
  line-height: 1.3;
  box-shadow: 0 8px 20px -10px rgba(11, 22, 38, 0.55);
}
.chip b { font-size: 16px; font-weight: 700; letter-spacing: 0.02em; }
.chip small { font-size: 11.5px; opacity: 0.78; letter-spacing: 0.03em; }
.chip::before { content: ""; position: absolute; left: 22px; top: 100%; width: 1px; height: 22px; background: rgba(36, 50, 72, 0.55); }
.chip::after {
  content: "";
  position: absolute;
  left: 19px;
  top: calc(100% + 19px);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ridge);
  box-shadow: 0 0 0 1.5px rgba(36, 50, 72, 0.5);
}

/* ほかにも: カード */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards li { padding: 26px 24px 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.cards h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 17px; }
.cards h3::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ridge); box-shadow: 0 0 0 2px rgba(36, 50, 72, 0.3); }
.cards p { margin: 0; font-size: 14.5px; line-height: 1.8; color: var(--muted); }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ギャラリー: 横に流す */
.gallery-section { background: var(--night); color: #fff; }
.gallery-section .section-head p { color: rgba(255, 255, 255, 0.66); }
.gallery-section .eyebrow { color: var(--dawn); }
.gallery {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px max(20px, calc((100vw - 1040px) / 2)) 28px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.gallery figure { flex: 0 0 216px; margin: 0; scroll-snap-align: center; }
.gallery .device-port { max-width: 216px; padding: 8px; border-radius: 34px; box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.gallery .device-port img { border-radius: 27px; }
.gallery figcaption { margin-top: 16px; text-align: center; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, 0.6); }
.gallery figcaption b { display: block; font-size: 14.5px; color: #fff; font-weight: 600; }

/* 使い方 */
.steps { list-style: none; counter-reset: step; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { counter-increment: step; padding: 28px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.steps li::before { content: counter(step); display: block; margin-bottom: 10px; font-family: var(--serif); font-size: 40px; line-height: 1; color: var(--accent); }
.steps h3 { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: 22px; letter-spacing: 0.06em; }
.steps p { margin: 0; font-size: 15px; color: var(--body); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.promise { max-width: 760px; margin: 0 auto; padding: 18px 24px; border-left: 3px solid var(--ridge); border-radius: 0 12px 12px 0; background: rgba(255, 255, 255, 0.55); }
.promise p { margin: 4px 0; font-size: 15px; color: var(--body); }
.promise strong { color: var(--ink); }

/* 対応と料金 */
.spec { margin: 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 6.5em 1fr; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--body); }
.more-link { margin: 30px 0 0; text-align: center; }

/* 締め */
.cta { padding: 92px 0 100px; text-align: center; color: #fff; background: linear-gradient(180deg, var(--night-2), var(--night)); }
.cta h2 { margin: 0 0 28px; font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.6vw, 34px); letter-spacing: 0.04em; }

/* ── フッタ ─────────────────────────────── */
.site-footer { padding: 48px 0 40px; background: #060d18; color: rgba(255, 255, 255, 0.62); font-size: 13.5px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-nav a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }
.credit { margin: 30px 0 6px; font-size: 12px; line-height: 1.75; color: rgba(255, 255, 255, 0.45); }
.copyright { margin: 0; font-size: 12px; color: rgba(255, 255, 255, 0.45); }

/* ── 文書のページ (サポート・規約・ポリシー) ── */
.page-head { padding: 60px 0 52px; color: #fff; background: linear-gradient(180deg, var(--night) 0%, var(--dusk) 100%); }
.page-head h1 { margin: 0 0 8px; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 4.4vw, 40px); letter-spacing: 0.05em; line-height: 1.4; }
.page-head p { margin: 0; color: rgba(255, 255, 255, 0.78); max-width: 40em; }
.doc { padding: 56px 0 100px; }
.doc .wrap, .page-head .wrap { max-width: 780px; }
.doc h2 { margin: 56px 0 14px; font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.5; letter-spacing: 0.03em; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 30px 0 8px; font-size: 16.5px; }
.doc p, .doc li { color: var(--body); font-size: 15.5px; }
.doc ul, .doc ol { padding-left: 1.5em; }
.doc li { margin: 4px 0; }
.doc li::marker { color: var(--accent); }
.updated { color: var(--muted); font-size: 13.5px; }
.note-box { margin: 24px 0; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 14.5px; }
.note-box p { margin: 4px 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px 10px; margin: 0 0 40px; padding: 0; list-style: none; }
.toc a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 14px; text-decoration: none; color: var(--ink); }
.toc a:hover { border-color: var(--accent); }

/* よくある質問 */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; padding: 16px 36px 16px 2px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 21px; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq .answer { padding: 0 2px 18px; }
.faq .answer p { margin: 0 0 10px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* お問い合わせ */
.form { display: grid; gap: 20px; max-width: 600px; }
.form label { display: block; margin-bottom: 6px; font-size: 14.5px; font-weight: 700; }
.req { margin-left: 6px; font-size: 12px; font-weight: 400; color: #a63d2b; }
.form input, .form select, .form textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid #cdc2b0;
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.form textarea { resize: vertical; min-height: 9em; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--dawn); outline-offset: 0; border-color: transparent; }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.button {
  justify-self: start;
  padding: 13px 30px;
  border: 0;
  border-radius: 12px;
  background: var(--night);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.button:hover { background: var(--night-2); }
.button:disabled { opacity: 0.6; cursor: default; }
.form-error { margin: 0; color: #a63d2b; font-size: 14px; }
.form-done { padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.form-done h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 20px; }
.form-done p { margin: 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
[hidden] { display: none !important; }
