/* =========================================================
   TripLog LP — 公開前 集客ページ
   design 由来: 「TripLog LP Wireframes.dc.html」 t3 / 3a(PC)→3b(SP)
   方針: Warm / Emotional / Premium / Personal
   配色は design ファイルの実値を踏襲（ブランド緑 #3f4a3c・暖色サンド）
   ========================================================= */

:root {
  /* 面・背景 */
  --bg: #f0eee9;
  --surface: #ffffff;
  --warm-1: #faf8f4;   /* Solution / 比較表の面 */
  --warm-2: #f7f4ee;   /* 独自価値の面 */
  --footer-bg: #f3f1ea;

  /* 文字（サンド背景 #f0eee9 上で WCAG AA を満たす明度に調整） */
  --ink: #1c1a17;
  --muted: #5a5750;   /* 本文の補助テキスト：約 5.1:1 */
  --faint: #6e6b63;   /* ラベル等の弱いテキスト：約 4.5:1 */

  /* 線 */
  --line: rgba(28, 26, 23, .10);
  --line-strong: rgba(28, 26, 23, .16);

  /* ブランド（旅・自然を思わせる深い緑：主CTA） */
  --brand: #3f4a3c;
  --brand-dark: #2f382d;
  /* 焦点アクセント（terracotta）— 感情の焦点のみに使う。塗りつぶし禁止 */
  --accent: #b4623c;

  /* 角丸・影 */
  --r-card: 20px;
  --r-lg: 24px;
  --r-pill: 999px;
  --shadow-card: 0 8px 28px rgba(28, 26, 23, .10);
  --shadow-float: 0 12px 34px rgba(28, 26, 23, .18);

  /* レイアウト */
  --wrap: 1080px;
  --gutter: 24px;

  /* フォント */
  --sans: "Zen Kaku Gothic New", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --serif: "Zen Old Mincho", "Zen Kaku Gothic New", serif;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { list-style: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { font-weight: 700; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 写真（旅の1シーン・フリー素材/Unsplash） ----------
   各 .photo-x はカテゴリ別の実写を背景に敷く。読み込み前・失敗時の
   フォールバックとして暖色の下地色を残す。差し替えは画像ファイルを置換するだけ。 */
.photo { position: relative; overflow: hidden; background: #e7e1d6; background-size: cover; background-position: center; }
.photo::after { /* かすかな質感（実写にも軽い統一トーンを与える） */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(28,26,23,.10));
}
.photo-a { background-color: #c9764f; background-image: url(./assets/photos/photo-a.jpg); } /* 夕景 */
.photo-b { background-color: #4f6b5b; background-image: url(./assets/photos/photo-b.jpg); } /* 山・緑 */
.photo-c { background-color: #3f6b72; background-image: url(./assets/photos/photo-c.jpg); } /* 海 */
.photo-d { background-color: #a97b53; background-image: url(./assets/photos/photo-d.jpg); } /* 街・砂 */
.photo-e { background-color: #7c5568; background-image: url(./assets/photos/photo-e.jpg); } /* 夕暮れの空 */
.photo-f { background-color: #6f8a52; background-image: url(./assets/photos/photo-f.jpg); } /* 草原 */
.photo-g { background-color: #5b6f8f; background-image: url(./assets/photos/photo-g.jpg); } /* 夜・湖 */
/* 「誰と行った旅も」セクション用：人物入り（カテゴリを直感的に伝える） */
.photo-couple  { background-color: #6f7a4f; background-image: url(./assets/photos/photo-couple.jpg); }  /* カップル：森の小道 */
.photo-family  { background-color: #cbb48f; background-image: url(./assets/photos/photo-family.jpg); }  /* 家族：ビーチ */
.photo-friends { background-color: #6f8a52; background-image: url(./assets/photos/photo-friends.jpg); } /* 友人：山ハイキング */
/* 価値カード①〜④：実アプリ画面を横長に切り出したもの（機能を実物で示す） */
.photo-album { background-color: #f6f2ea; background-image: url(./assets/screens/card-photo.png); background-position: center top; }
.photo-tl    { background-color: #f0ead9; background-image: url(./assets/screens/card-timeline.png); background-position: center 20%; }
.photo-map   { background-color: #a9d3e8; background-image: url(./assets/screens/map-card.png); background-position: center 42%; }
.photo-mem   { background-color: #f6f2ea; background-image: url(./assets/screens/card-memory.png); background-position: center 40%; }

/* ---------- チップ / ボタン ---------- */
.chip {
  display: inline-flex; align-items: center;
  padding: 3px 11px; border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  font-size: 12px; font-weight: 500; color: var(--muted);
  white-space: nowrap;
}
.chip-soon { font-size: 11px; padding: 2px 9px; }
.chip-accent { border-color: var(--brand); color: var(--brand); background: rgba(63, 74, 60, .06); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4em; padding: 13px 22px; border-radius: var(--r-pill);
  font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1;
  cursor: pointer; border: 1px solid transparent;
  transition: transform .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.btn-ghost:focus-visible, .final-cta .btn:focus-visible { outline-color: rgba(255, 255, 255, .9); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(63, 74, 60, .28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.75); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; }

/* ---------- 見出し ---------- */
.display {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.28; letter-spacing: .01em;
}
.display-sm { font-family: var(--serif); font-weight: 700; font-size: clamp(24px, 4vw, 34px); line-height: 1.35; }
.h-section {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 3.4vw, 31px); line-height: 1.4; letter-spacing: .01em;
  margin-bottom: 8px;
}
.h-section.center { text-align: center; }
.section-lead { color: var(--muted); margin-top: 6px; }
.section-lead.center, .h-section.center + .section-lead { text-align: center; }

/* ---------- セクション余白 ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.problem { background: var(--surface); }
.solution { background: var(--warm-1); }
.difference-flow { background: var(--warm-2); }
.afterscene { background: var(--surface); }
.usage { background: var(--warm-1); }
.compare { background: var(--warm-1); }
.signup-section { background: var(--surface); }
.faq { background: var(--warm-1); }

/* =========================================================
   ヘッダー
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(240, 238, 233, .82);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand-mark {
  width: 20px; height: 20px; border-radius: 7px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
}
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 19px; letter-spacing: .02em; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav a { font-size: 14px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav a:focus-visible { color: var(--ink); outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
.nav .btn { color: var(--ink); }

/* =========================================================
   01 Hero
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 7vw, 88px); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 70% at 82% 20%, rgba(201, 118, 79, .22), transparent 60%),
    radial-gradient(55% 60% at 12% 90%, rgba(63, 74, 60, .12), transparent 60%);
  filter: blur(6px);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr minmax(240px, 300px); gap: clamp(28px, 4vw, 56px); align-items: center;
}
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.eyebrow-note { font-size: 13px; color: var(--muted); }
.hero-copy .lead { margin-top: 18px; font-size: clamp(15px, 1.6vw, 17px); color: #4a463f; max-width: 30em; }
.hero-subnote { margin-top: 14px; font-size: 13px; color: var(--muted); }
.hero-subnote a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.hero-subnote .sep { margin: 0 8px; color: var(--faint); }

/* 登録フォーム */
.signup-form { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; align-items: flex-start; }
.signup-form.stacked { flex-direction: column; }
.field {
  flex: 1 1 220px; min-width: 0;
  padding: 13px 16px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-family: var(--sans); font-size: 15px; color: var(--ink);
}
.field::placeholder { color: var(--faint); }
.field:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.signup-form.stacked .field { flex: none; width: 100%; }
.form-msg { flex-basis: 100%; margin: 0; font-size: 13px; min-height: 1.2em; }
.form-msg.ok { color: var(--brand); }
.form-msg.err { color: var(--accent); }

/* Hero ビジュアル：3台のフォンモック */
.hero-visual { display: flex; justify-content: center; }
.mockups { display: flex; align-items: flex-end; gap: 10px; }
.phone {
  border-radius: 22px; background: #14110d; padding: 6px;
  box-shadow: var(--shadow-card);
}
.phone-side { width: 92px; }
.phone-hero { width: 122px; position: relative; z-index: 2; box-shadow: var(--shadow-float); }
.phone-screen {
  position: relative; border-radius: 17px; overflow: hidden;
  background: var(--surface); padding: 10px 8px; height: 100%;
  display: flex; flex-direction: column;
}
.phone-side .phone-screen { aspect-ratio: 92 / 200; }
.phone-hero .phone-screen { aspect-ratio: 122 / 258; }
/* 実アプリ画面のスクリーンショットを流し込む枠 */
.phone-screen.has-img { padding: 0; }
.screen-img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.screen-tag {
  font-size: 9px; font-weight: 700; color: var(--muted);
  letter-spacing: .04em; margin-bottom: 8px;
}
/* Timeline 画面 */
.tl-row { display: flex; align-items: center; gap: 6px; margin-bottom: 9px; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.tl-bar { height: 8px; border-radius: 4px; background: #e5ded2; }
.tl-bar.w70 { width: 70%; } .tl-bar.w60 { width: 60%; } .tl-bar.w50 { width: 50%; } .tl-bar.w40 { width: 40%; }
/* Album 画面 */
.album-hero { border-radius: 8px; aspect-ratio: 16 / 10; margin-bottom: 6px; }
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.album-grid .photo { border-radius: 5px; aspect-ratio: 1; }
/* Map 画面 */
.map-face {
  position: relative; flex: 1; border-radius: 8px;
  background: linear-gradient(160deg, #e7ded0, #d7cbb8);
}
.map-face::before {
  content: ""; position: absolute; inset: 0; border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(63,74,60,.14) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 60%, rgba(63,74,60,.12) 61% 62%, transparent 63%);
}
.pin { position: absolute; width: 9px; height: 9px; border-radius: 50% 50% 50% 0; background: var(--accent); transform: rotate(-45deg); }
.pin-1 { top: 26%; left: 32%; } .pin-2 { top: 54%; left: 60%; } .pin-3 { top: 70%; left: 30%; }
.memo-note {
  margin-top: 8px; padding: 6px 8px; border-radius: 8px; background: var(--warm-2);
  font-size: 9px; font-weight: 700; color: var(--muted);
}

/* =========================================================
   02 Problem
   ========================================================= */
.problem-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
  margin-top: 28px;
}
.prob-card {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--r-card);
  background: var(--warm-1); border: 1px solid var(--line);
}
.prob-card p { font-size: 14.5px; color: #4a463f; }
/* 課題提起：各項目を表す線アイコン。焦点色 terracotta は使わずブランド緑で低主張に */
.prob-ico {
  width: 48px; height: 48px; flex: none; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(63, 74, 60, .07);
  color: var(--brand);
}
.prob-ico svg { width: 26px; height: 26px; }

/* =========================================================
   03 Solution
   ========================================================= */
.story {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap;
  gap: 14px; margin: 30px 0 38px;
}
.story-step { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.story-thumb { width: 108px; height: 84px; border-radius: 14px; box-shadow: var(--shadow-card); }
.story-thumb-lg { width: 150px; height: 108px; }
.story-step.is-focus .story-cap { color: var(--accent); font-weight: 700; }
.story-cap { font-size: 14px; font-weight: 500; display: flex; flex-direction: column; gap: 2px; }
.story-cap small { font-size: 11.5px; font-weight: 400; color: var(--muted); }
.story-arrow { color: var(--faint); font-size: 22px; }

.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 16px;
}
.value-thumb { display: block; width: 100%; height: 88px; border-radius: 12px; margin-bottom: 12px; }
.value-no { font-size: 12px; font-weight: 700; color: var(--accent); }
.value-card h3 { font-family: var(--serif); font-size: 17px; margin: 4px 0 4px; }
.value-card p { font-size: 13.5px; color: var(--muted); }

/* =========================================================
   04 独自価値（旅行前→中→後）
   ========================================================= */
.flow-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 30px; position: relative; padding-bottom: 20px;
}
.flow-grid::after { /* 進行を示すライン */
  content: ""; position: absolute; left: 6%; right: 6%; bottom: 0; height: 2px;
  background: linear-gradient(90deg, rgba(63,74,60,.15), var(--brand));
  border-radius: 2px;
}
.flow-step { text-align: center; }
.flow-step.is-dim { opacity: .62; }
.flow-phase { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px; }
.flow-step.is-focus .flow-phase { color: var(--brand); }
.focus-badge { color: var(--accent); font-weight: 700; }
/* 各フェーズの実アプリ画面（フォンモック） */
.flow-phone { width: 170px; margin: 0 auto 14px; }
.flow-phone .phone-screen { aspect-ratio: 390 / 844; }
.flow-step.is-focus .flow-phone { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 26px; }
.flow-step p:last-child { font-size: 14px; color: #4a463f; max-width: 260px; margin-inline: auto; }
.flow-note { margin-top: 30px; font-size: 13px; color: var(--muted); }

/* =========================================================
   05 旅行後の利用シーン
   ========================================================= */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.step-no { font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 10px; }
.step-thumb { display: block; width: 100%; height: 150px; border-radius: 16px; margin-bottom: 12px; box-shadow: var(--shadow-card); }
.step p:last-child { font-size: 14.5px; color: #4a463f; }

/* =========================================================
   06 Usage Scene
   ========================================================= */
.usage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 30px; }
.usage-photo { display: block; width: 100%; height: 200px; border-radius: var(--r-lg); margin-bottom: 14px; box-shadow: var(--shadow-card); }
.usage-card h3 { font-family: var(--serif); font-size: 18px; margin-bottom: 4px; }
.usage-card p { font-size: 14px; color: var(--muted); }

/* =========================================================
   07 Difference（比較表）
   ========================================================= */
.table-scroll { margin-top: 26px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare-table {
  width: 100%; min-width: 480px; border-collapse: separate; border-spacing: 0;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  font-size: 14.5px;
}
.compare-table th, .compare-table td { padding: 13px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.compare-table thead th { background: var(--warm-1); color: var(--faint); font-weight: 500; font-size: 13.5px; }
.compare-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.col-own { color: var(--brand) !important; font-weight: 700 !important; font-family: var(--serif); background: rgba(63, 74, 60, .10) !important; border-bottom: 2px solid var(--brand) !important; }
.compare-table td.own { background: rgba(63, 74, 60, .10); font-weight: 700; }
.compare-table td.own.hi { color: var(--brand); }

/* =========================================================
   08 Coming Soon / 先行登録
   ========================================================= */
.signup-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.signup-lead .chip-accent { margin-bottom: 14px; }
.signup-lead > p { margin-top: 8px; color: var(--muted); }
.perk-list { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.perk-list li { position: relative; padding-left: 26px; font-size: 14.5px; color: #4a463f; }
.perk-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--brand); font-weight: 700;
}
.signup-card {
  background: var(--warm-1); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card);
}
.card-label { font-size: 12.5px; font-weight: 500; color: var(--faint); margin-bottom: 12px; }
.card-note { margin-top: 12px; text-align: center; font-size: 12.5px; color: var(--muted); }

/* =========================================================
   09 Final CTA
   ========================================================= */
.final-cta { position: relative; overflow: hidden; text-align: center; color: #fff; padding: clamp(64px, 9vw, 108px) 0; }
.final-bg {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #4a3a2f 0%, #3f4a3c 55%, #24201a 100%);
}
.final-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 90% at 30% 10%, rgba(201,118,79,.30), transparent 60%);
}
.final-inner { position: relative; z-index: 1; }
.final-lead { margin: 12px auto 26px; color: rgba(255,255,255,.82); max-width: 32em; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =========================================================
   FAQ
   ========================================================= */
.faq-list { max-width: 720px; margin: 26px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 4px 18px;
}
.faq-item summary {
  cursor: pointer; padding: 14px 0; font-weight: 500; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.faq-item summary::after { content: "＋"; color: var(--faint); font-weight: 400; }
.faq-item[open] summary::after { content: "－"; }
.faq-item p { padding: 0 0 16px; font-size: 14px; color: var(--muted); }

/* =========================================================
   フッター
   ========================================================= */
.site-footer { background: var(--footer-bg); border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding-block: 26px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; }
.footer-brand .brand-name { font-size: 16px; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.copyright { margin-left: auto; font-size: 12.5px; color: var(--faint); }

/* =========================================================
   追従CTAバー
   ========================================================= */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(255, 252, 248, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-top: 1px solid var(--line);
  transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; }
.sticky-text { font-size: 14px; font-weight: 500; }

/* =========================================================
   レスポンシブ（3a PC → 3b スマホ）
   ========================================================= */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { justify-content: flex-start; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .signup-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .nav a:not(.btn) { display: none; }         /* SP: リンクは畳み、先行登録ボタンのみ */
  .problem-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid { grid-template-columns: 1fr; }
  .flow-grid::after { display: none; }
  .steps { grid-template-columns: 1fr; }

  /* Hero 登録フォームは縦積み（入力＋ボタン全幅） */
  .signup-form:not(.stacked) { flex-direction: column; }
  .signup-form:not(.stacked) .btn { width: 100%; }

  /* Hero 3台モックは中央寄せ＋縮小して画面幅に収める */
  .hero-visual { justify-content: center; }
  .phone-side { width: 72px; }
  .phone-hero { width: 96px; }

  /* Solution ストーリーは縦並び：矢印も下向きに */
  .story { flex-direction: column; align-items: center; }
  .story-arrow { transform: rotate(90deg); font-size: 18px; }
  .story-thumb { width: 140px; height: 100px; }
  .story-thumb-lg { width: 180px; height: 128px; }

  /* Usage は横スワイプ（3b の挙動を踏襲）。右端を少し覗かせてスクロールを示唆 */
  .usage-grid {
    grid-auto-flow: column; grid-auto-columns: 82%;
    grid-template-columns: none; overflow-x: auto;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;                    /* スクロールバー非表示（Premium感の維持） */
  }
  .usage-grid::-webkit-scrollbar { display: none; }
  .usage-card { scroll-snap-align: start; }

  .footer-inner { flex-direction: column; align-items: flex-start; }
  .copyright { margin-left: 0; }
  .sticky-text { display: none; }             /* SP: ボタン全幅の固定CTA */
  .sticky-inner { justify-content: stretch; }
  .sticky-cta .btn { width: 100%; }
  main { padding-bottom: 56px; }              /* 固定CTA実高さ ~43px + 余裕 */
}

/* =========================================================
   規約・情報ページ（legal.html：運営者情報／プライバシーポリシー／お問い合わせ）
   LP と同じトークンを流用。読み物としての可読性を優先した素朴な散文レイアウト。
   ========================================================= */
.legal { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 88px); }
.legal-head { margin-bottom: 4px; }
.legal-eyebrow { font-size: 13px; color: var(--faint); }
.legal-title { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 4vw, 34px); letter-spacing: .01em; margin-top: 4px; }
.legal-lead { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 720px; }
.legal-toc {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin: 24px 0 44px; padding: 16px 20px;
  background: var(--warm-1); border: 1px solid var(--line); border-radius: var(--r-card);
}
.legal-toc a { font-size: 14px; color: var(--muted); }
.legal-toc a:hover { color: var(--brand); }
.legal-section { max-width: 760px; margin-bottom: 48px; scroll-margin-top: 84px; }
.legal-section > h2 {
  font-family: var(--serif); font-weight: 700; font-size: 22px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 18px;
}
.legal-section h3 { font-size: 16px; font-weight: 700; margin: 24px 0 6px; }
.legal-section p { color: #322f2a; margin-bottom: 12px; }
.legal-list { list-style: disc; padding-left: 1.35em; margin-bottom: 12px; }
.legal-list li { color: #322f2a; margin-bottom: 6px; }
.legal-dl { display: grid; grid-template-columns: max-content 1fr; gap: 12px 22px; margin: 6px 0 12px; }
.legal-dl dt { color: var(--faint); font-size: 14px; }
.legal-dl dd { margin: 0; }
.legal-note { font-size: 13px; color: var(--faint); margin-top: 8px; }
/* 未確定の実情報プレースホルダ（公開前に実値へ差し替える箇所を視覚化） */
.ph { background: rgba(180, 98, 60, .10); color: var(--accent); border-radius: 5px; padding: 1px 8px; font-size: .92em; white-space: nowrap; }
@media (max-width: 560px) {
  .legal-dl { grid-template-columns: 1fr; gap: 2px 0; }
  .legal-dl dd { margin-bottom: 12px; }
}

/* =========================================================
   アニメーション（控えめ・上品トーン）
   - スクロール連動リビール(A) は JS で .reveal / .is-in を付与
   - 初回演出・ループ演出(B/C/E) は no-preference ガードで CSS 完結
   - reduced-motion では下部メディアクエリで一括 OFF
   ========================================================= */

/* ---------- A. スクロール連動リビール ---------- */
/* JS が対象要素に .reveal を付与（=非対応/JS無効時は常に表示のまま） */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- D. マイクロインタラクション（hover の浮き） ---------- */
.prob-card, .value-card, .usage-card, .step, .signup-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) {
  .prob-card:hover, .value-card:hover, .usage-card:hover, .step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-float);
  }
  .signup-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-float); }
}

/* ---------- 以降のループ／初回演出は動きを好むユーザーだけに ---------- */
@media (prefers-reduced-motion: no-preference) {

  /* B. Hero 初回演出：コピーが上から順に登場 */
  .hero-copy > * { animation: heroRise .8s cubic-bezier(.2, .7, .2, 1) both; }
  .hero-copy > *:nth-child(1) { animation-delay: .04s; }
  .hero-copy > *:nth-child(2) { animation-delay: .12s; }
  .hero-copy > *:nth-child(3) { animation-delay: .22s; }
  .hero-copy > *:nth-child(4) { animation-delay: .32s; }
  .hero-copy > *:nth-child(5) { animation-delay: .42s; }

  /* B. Hero モックアップ：奥から立ち上がる（中央の主役を最後に） */
  .mockups .phone { animation: phoneRise 1s cubic-bezier(.2, .7, .2, 1) both; }
  .mockups .phone-side:first-child { animation-delay: .30s; }
  .mockups .phone-side:last-child  { animation-delay: .42s; }
  .mockups .phone-hero { animation-delay: .58s; }

  /* B. Hero 背景：ごく僅かにゆっくりドリフト */
  .hero-bg { animation: heroBgDrift 22s ease-in-out infinite alternate; will-change: transform; }

  /* C. ストーリーの矢印：明滅で視線を誘導（transform は SP 回転と競合するので opacity で） */
  .story-arrow { animation: arrowPulse 1.9s ease-in-out infinite; }
  .story-arrow:nth-of-type(2) { animation-delay: .3s; }

  /* C. 「旅行後＝本番」フォーカスカードの呼吸する光 */
  .flow-step.is-focus .flow-phone { animation: focusGlow 3.4s ease-in-out infinite; }

  /* D. FAQ 開いたときの中身をふわっと */
  .faq-item[open] p { animation: faqReveal .3s ease both; }

  /* E. Final CTA の主ボタンにごく控えめな光の走り */
  .final-cta .btn-primary { position: relative; overflow: hidden; }
  .final-cta .btn-primary::after {
    content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
    transform: translateX(-160%); pointer-events: none;
    animation: btnShimmer 5s ease-in-out infinite;
  }
}

@keyframes heroRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
@keyframes phoneRise {
  from { opacity: 0; transform: translateY(22px) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes heroBgDrift {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.08) translate(-1.5%, 1%); }
}
@keyframes arrowPulse {
  0%, 100% { opacity: .4; }
  50%      { opacity: 1; }
}
@keyframes focusGlow {
  0%, 100% { box-shadow: var(--shadow-card), 0 0 0 0 rgba(63, 74, 60, 0); }
  50%      { box-shadow: var(--shadow-card), 0 0 22px 2px rgba(63, 74, 60, .18); }
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
@keyframes btnShimmer {
  0%, 74%, 100% { transform: translateX(-160%); }
  86%           { transform: translateX(260%); }
}
/* 比較表◎のポップ（td には translate を乗せず scale のみ） */
@keyframes cellPop {
  from { opacity: 0; transform: scale(.82); }
  to   { opacity: 1; transform: scale(1); }
}

/* モーション配慮：動きを減らす設定なら一括で無効化 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky-cta { transition: none; }
  /* リビールは JS 側でも抑止するが、保険として常時表示に */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .prob-card:hover, .value-card:hover, .usage-card:hover,
  .step:hover, .signup-card:hover { transform: none; }
}
