/* =============================================================================
   Gentle Escort — 公式サイト（LP）共通スタイル
   -----------------------------------------------------------------------------
   アプリ（src/styles.css）とは独立した静的サイト用 CSS。
   ただし DESIGN.md の「共通言語」（配色・タイポ・余白・トーン）に**準拠**して
   ブランド体験を統一する：
     - 明るい寒色の地（“実験室の白”）＋ 電光コバルト→シアンのアクセント
     - マスキュリン／先進／明るい基調（ダークにしない）
     - スマホ最優先・余白広め・カード型・大CTA（44px+）・AA コントラスト
   外部リクエスト無し（Web フォント・トラッカー・外部スクリプトを読み込まない）。
   ============================================================================= */

/* ---- デザイントークン（DESIGN.md の :root に整合） ------------------------- */
:root {
  /* ブランド / アクセント */
  --accent: #2f5cff;
  --accent-strong: #1e44e0;
  --accent-ink: #ffffff;
  --accent-soft: #e6edff;
  --accent-line: #c4d2ff;
  --accent-deep: #1e3aa8;
  --accent-2: #00b3d6;
  --accent-grad: linear-gradient(135deg, #2f5cff, #00b3d6);

  /* 背景 / サーフェス / 文字 */
  --bg: #f4f7fb;
  --bg-sink: #eef2f9;
  --surface: #ffffff;
  --ink: #0f1b2d;
  --ink-soft: #44546c;
  --ink-faint: #5b6b84;
  --line: #e2e8f2;
  --line-strong: #cfd8e6;

  /* 状態色 */
  --ok: #0f9d63;
  --ok-ink: #0a7350;
  --ok-bg: #e2f4ec;
  --ok-line: #b6e3cd;
  --focus: #2f5cff;

  /* 影 / 発光 */
  --shadow-sm: 0 1px 2px rgba(20, 40, 80, 0.06);
  --shadow-md: 0 6px 20px rgba(20, 40, 80, 0.08);
  --shadow-lg: 0 14px 38px rgba(20, 40, 80, 0.12);
  --glow-accent: 0 8px 24px rgba(47, 92, 255, 0.28);

  /* タイポ（外部フォント無し＝OS 同梱のみ） */
  --font-display: "Inter", "Helvetica Neue", "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo,
    system-ui, sans-serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", Meiryo,
    system-ui, sans-serif;

  /* 余白（8px グリッド） */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-10: 56px;
  --sp-12: 72px;

  /* 角丸 */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* レイアウト */
  --maxw: 1080px;
  --maxw-narrow: 720px;
}

/* ---- リセット / ベース ----------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 背景：明るい寒色＋上部のコバルト/シアンの淡い発光（暗くしない） */
  background-image:
    radial-gradient(
      1200px 520px at 18% -8%,
      rgba(47, 92, 255, 0.12),
      rgba(47, 92, 255, 0) 60%
    ),
    radial-gradient(
      900px 460px at 92% 2%,
      rgba(0, 179, 214, 0.1),
      rgba(0, 179, 214, 0) 55%
    );
  background-repeat: no-repeat;
  overflow-wrap: break-word;
  word-break: normal;
}

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

a {
  color: var(--accent-deep);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-strong);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.5em;
  line-height: 1.32;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

/* キーボードユーザー向けスキップリンク */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--r-md) 0;
  font-weight: 700;
}
.skip-link:focus {
  left: 0;
}

/* ---- 共通ユーティリティ ---------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--sp-5);
}

.container-narrow {
  max-width: var(--maxw-narrow);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-pill);
  padding: 5px 12px;
  margin-bottom: var(--sp-4);
}

.grad-text {
  /* 既定は塗りつぶし色（clip 非対応でも必ず読める＝load-bearing なフォールバック） */
  color: var(--accent-deep);
}
/* background-clip:text 対応環境でのみコバルト→シアンのグラデ文字にする */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .grad-text {
    background: var(--accent-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
  }
}

.section {
  padding-block: var(--sp-12);
}

.section-tight {
  padding-block: var(--sp-10);
}

.section-head {
  max-width: 640px;
  margin: 0 auto var(--sp-8);
  text-align: center;
}

.section-head h2 {
  font-size: clamp(24px, 6vw, 34px);
  margin-bottom: var(--sp-3);
}

.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
}

.lead {
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---- ボタン（DESIGN.md：主＝グラデCTA・副＝枠/リンク） --------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 26px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: var(--glow-accent);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 10px 30px rgba(47, 92, 255, 0.36);
  filter: saturate(1.06);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
  background: #f7f9ff;
}

.btn-lg {
  min-height: 56px;
  font-size: 17px;
  padding: 16px 30px;
}

.btn-block {
  width: 100%;
}

/* LINE アイコン（CSS のみ・data-URI mask・外部画像無し） */
.btn .ico-line {
  width: 22px;
  height: 22px;
  flex: none;
  background: currentColor;
  -webkit-mask: var(--icon-chat) center / contain no-repeat;
  mask: var(--icon-chat) center / contain no-repeat;
}

:root {
  /* チャット吹き出し（LINE を想起させる中立アイコン・外部商標は使わない） */
  --icon-chat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 3C6.5 3 2 6.7 2 11.2c0 2.6 1.5 4.9 3.8 6.4-.1 1-.6 2.4-1 3.2-.2.4.1.8.5.7 1.9-.5 3.4-1.3 4.3-1.9.8.1 1.6.2 2.4.2 5.5 0 10-3.7 10-8.2S17.5 3 12 3Z'/%3E%3C/svg%3E");
}

/* ---- ヘッダー（フロスト・スティッキー） ------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent-grad);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding-block: 8px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: var(--r-sm);
  padding: 4px;
  text-decoration: none;
}

.brand-logo {
  height: 30px;
  width: auto;
}

.header-cta {
  min-height: 44px;
  padding: 10px 18px;
  font-size: 14px;
}

/* PCでヘッダー内CTAを表示、狭幅では隠してヒーローのCTAに任せる */
.header-cta {
  display: none;
}
@media (min-width: 640px) {
  .header-cta {
    display: inline-flex;
  }
}

/* ---- ヒーロー -------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: var(--sp-12) var(--sp-10);
  overflow: hidden;
}
/* 極淡のテック・グリッド（“engineered/賢いツール”の精度感を写真でなく線で出す。
   暗くしない＝明るい基調を維持。上部にだけ薄く敷き、本文の可読性を損なわない）。 */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(47, 92, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(47, 92, 255, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.85),
    transparent 62%
  );
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.85), transparent 62%);
}
.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  gap: var(--sp-8);
  align-items: center;
}

.hero h1 {
  font-size: clamp(30px, 9vw, 56px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-5);
}

.hero h1 .grad-text {
  /* 強調語はコバルト→シアンのグラデ文字（.grad-text を継承）。clip 非対応時は
     accent-deep の塗りに自動フォールバックして必ず読める。display 行間に余裕を持たせ
     ディセンダ（。の下）が切れないようにする。 */
  display: inline-block;
  padding-bottom: 0.06em;
}

.hero-sub {
  font-size: clamp(16px, 4.4vw, 19px);
  color: var(--ink-soft);
  max-width: 38ch;
  margin-bottom: var(--sp-7);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.hero-note {
  margin-top: var(--sp-4);
  font-size: 13px;
  color: var(--ink-faint);
}

.hero-trust {
  margin-top: var(--sp-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-5);
  font-size: 13.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hero-trust span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  flex: none;
}

/* ヒーロー横のビジュアル（CSSで作るモック画面＝外部画像不要） */
.hero-visual {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 360px;
}

.phone {
  position: relative;
  border-radius: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
  padding: 14px;
  overflow: hidden;
}
.phone::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent-grad);
}

.phone-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 4px 12px;
}
.phone-bar img {
  height: 20px;
  width: auto;
}
.phone-bar .dot {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  color: var(--ok-ink);
  background: var(--ok-bg);
  border: 1px solid var(--ok-line);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}

.mock-card {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.mock-card.is-rec {
  border-color: var(--accent-line);
  box-shadow: 0 6px 18px rgba(47, 92, 255, 0.12);
}
.mock-card .mc-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.mock-card .mc-badge {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--accent-grad);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}
.mock-card .mc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
}
.mock-card .mc-meta {
  font-size: 11.5px;
  color: var(--ink-soft);
}
.mock-card .mc-chips {
  display: flex;
  gap: 5px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.mock-card .mc-chip {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-sm);
  padding: 2px 8px;
}

@media (min-width: 880px) {
  .hero-inner {
    grid-template-columns: 1.05fr 0.95fr;
  }
  .hero-sub {
    font-size: 19px;
  }
}

/* ---- 共感（ペイン） -------------------------------------------------------- */
.pain {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.pain-grid {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
}

.pain-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--bg-sink);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
  font-size: 15.5px;
  color: var(--ink);
  font-weight: 600;
}
.pain-item .x {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fdebe7;
  border: 1px solid #f6c3b6;
  color: #d23a1f;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  margin-top: 1px;
}

@media (min-width: 720px) {
  .pain-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---- 解決 ------------------------------------------------------------------ */
.solve-card {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
  padding: var(--sp-8) var(--sp-6);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.solve-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--accent-grad);
}
.solve-card h2 {
  font-size: clamp(22px, 5.6vw, 30px);
}
.solve-card p {
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 auto;
  font-size: 16.5px;
}

/* ---- 使い方（3ステップ） --------------------------------------------------- */
.steps {
  display: grid;
  gap: var(--sp-5);
  grid-template-columns: 1fr;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6);
  padding-top: var(--sp-8);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -18px;
  left: var(--sp-6);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  color: #fff;
  background: var(--accent-grad);
  border-radius: 50%;
  box-shadow: var(--glow-accent);
}
.step h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.step p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}

@media (min-width: 760px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- 特長（カード5枚） ----------------------------------------------------- */
/* 5枚は 3+2 で割れる。grid だと最終行の2枚が左寄せで“余り”に見えるため、
   中央寄せ flex にして「あふれた行が必ずセンターに揃う」＝意図した配置に見せる。 */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-4);
}
.features > .feature {
  flex: 1 1 100%;
  min-width: 0;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--sp-6);
  transition:
    transform 0.16s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}
.feature:hover {
  border-color: var(--accent-line);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature .f-ico {
  width: 46px;
  height: 46px;
  border-radius: var(--r-md);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  margin-bottom: var(--sp-4);
}
.feature .f-ico span {
  width: 24px;
  height: 24px;
  background: var(--accent);
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.feature h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.feature p {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 0;
}

/* 特長アイコン（data-URI mask・accent 着色・外部画像無し） */
.ico-rules {
  -webkit-mask-image: var(--icon-rules);
  mask-image: var(--icon-rules);
}
.ico-route {
  -webkit-mask-image: var(--icon-route);
  mask-image: var(--icon-route);
}
.ico-replan {
  -webkit-mask-image: var(--icon-replan);
  mask-image: var(--icon-replan);
}
.ico-save {
  -webkit-mask-image: var(--icon-save);
  mask-image: var(--icon-save);
}
.ico-event {
  -webkit-mask-image: var(--icon-event);
  mask-image: var(--icon-event);
}

:root {
  --icon-rules: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2 4 5v6c0 5 3.4 8.3 8 11 4.6-2.7 8-6 8-11V5l-8-3Zm-1 14-3.5-3.5 1.4-1.4L11 13.2l4.1-4.1 1.4 1.4L11 16Z'/%3E%3C/svg%3E");
  --icon-route: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 3a3 3 0 0 0-1 5.8V15a2 2 0 0 0 2 2h7v3l4-3.5L14 13v3H7v-4.2A3 3 0 0 0 6 3Zm12 4a3 3 0 0 0-1 5.8V13h2v-.2A3 3 0 0 0 18 7Z'/%3E%3C/svg%3E");
  --icon-replan: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 5V2L7 6l5 4V7a5 5 0 1 1-5 5H5a7 7 0 1 0 7-7Z'/%3E%3C/svg%3E");
  --icon-save: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M6 3h12a1 1 0 0 1 1 1v17l-7-4-7 4V4a1 1 0 0 1 1-1Z'/%3E%3C/svg%3E");
  --icon-event: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2l2.6 5.3 5.8.8-4.2 4.1 1 5.8L12 15.8 6.8 18l1-5.8L3.6 8.1l5.8-.8L12 2Z'/%3E%3C/svg%3E");
}

@media (min-width: 640px) {
  /* 2列相当（gap を差し引いた幅）。5枚目は中央寄せで単独行に。 */
  .features > .feature {
    flex: 0 1 calc((100% - var(--sp-4)) / 2);
  }
}
@media (min-width: 980px) {
  /* 3列相当。最終行の2枚は justify-content:center で中央に揃う。 */
  .features > .feature {
    flex: 0 1 calc((100% - 2 * var(--sp-4)) / 3);
    max-width: calc((100% - 2 * var(--sp-4)) / 3);
  }
}

/* ---- 思想 ------------------------------------------------------------------ */
.philosophy {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.philosophy .container {
  max-width: var(--maxw-narrow);
  text-align: center;
}
.philosophy h2 {
  font-size: clamp(22px, 5.6vw, 30px);
}
.philosophy p {
  color: var(--ink-soft);
  font-size: 16.5px;
}

/* ---- 安心 ------------------------------------------------------------------ */
.assure-list {
  display: grid;
  gap: var(--sp-3);
  grid-template-columns: 1fr;
  max-width: var(--maxw-narrow);
  margin: 0 auto;
}
.assure-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-md);
  padding: var(--sp-4) var(--sp-5);
}
.assure-item .chk {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ok);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  margin-top: 1px;
}
.assure-item p {
  margin: 0;
  font-size: 15px;
  color: var(--accent-deep);
  font-weight: 600;
}
.assure-item a {
  color: var(--accent-deep);
  font-weight: 700;
}

/* ---- FAQ（アコーディオン） ------------------------------------------------- */
.faq-list {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  display: grid;
  gap: var(--sp-3);
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: var(--sp-5);
  min-height: 56px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}
.faq-q:hover {
  color: var(--accent-deep);
}
.faq-q .mk {
  flex: none;
  width: 24px;
  height: 24px;
  position: relative;
  transition: transform 0.2s ease;
}
.faq-q .mk::before,
.faq-q .mk::after {
  content: "";
  position: absolute;
  background: var(--accent);
  border-radius: 2px;
}
.faq-q .mk::before {
  top: 11px;
  left: 4px;
  width: 16px;
  height: 2px;
}
.faq-q .mk::after {
  top: 4px;
  left: 11px;
  width: 2px;
  height: 16px;
  transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"] .mk::after {
  transform: scaleY(0);
}
.faq-a {
  padding: 0 var(--sp-5);
  max-height: 0;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 15px;
  transition:
    max-height 0.24s ease,
    padding 0.24s ease;
}
.faq-a.open {
  padding: 0 var(--sp-5) var(--sp-5);
  max-height: 360px;
}
.faq-a a {
  font-weight: 700;
}
/* JS無効時のフォールバック（CSP クリーン）：
   インライン <script> での no-js クラス切替を廃し、index.html 側の
   <noscript><style> で .faq-a を全展開する（noscript は script-src の対象外・
   style-src 'unsafe-inline' 許容下で有効）。JS 有効時は既定の折りたたみのまま
   main.js が開閉する＝ちらつき無し・CSP 違反ゼロ。
   後方互換として、万一 .no-js が残っていても全展開になるよう規則は残す。 */
.no-js .faq-a {
  max-height: none;
  padding: 0 var(--sp-5) var(--sp-5);
}

/* ---- 最終CTA --------------------------------------------------------------- */
.final-cta {
  text-align: center;
}
.final-cta .cta-box {
  background: var(--accent-grad);
  border-radius: var(--r-xl);
  padding: var(--sp-10) var(--sp-6);
  box-shadow: var(--glow-accent);
  position: relative;
  overflow: hidden;
}
/* グラデ帯の上に：(1) 右上の光・(2) 極淡のテック・グリッド。締めのCTAに精度感と奥行きを足す。 */
.final-cta .cta-box::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(
    120% 120% at 50% 0%,
    #000 35%,
    transparent 75%
  );
  mask-image: radial-gradient(120% 120% at 50% 0%, #000 35%, transparent 75%);
}
.final-cta .cta-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      600px 220px at 82% -12%,
      rgba(255, 255, 255, 0.28),
      transparent 60%
    ),
    radial-gradient(
      520px 220px at 8% 112%,
      rgba(0, 179, 214, 0.35),
      transparent 62%
    );
  pointer-events: none;
}
@media (min-width: 760px) {
  .final-cta .cta-box {
    padding: var(--sp-12) var(--sp-8);
  }
}
.final-cta h2 {
  color: #fff;
  font-size: clamp(23px, 6vw, 34px);
  margin-bottom: var(--sp-6);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
  position: relative;
}
.final-cta .btn-on-grad {
  background: #fff;
  color: var(--accent-deep);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.5);
  position: relative;
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}
.final-cta .btn-on-grad:hover {
  color: var(--accent-strong);
  background: #fff;
  transform: translateY(-1px);
  box-shadow:
    0 14px 36px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}
.final-cta .cta-note {
  margin-top: var(--sp-4);
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  position: relative;
}

/* ---- フッター -------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: var(--sp-10) var(--sp-8);
  margin-top: var(--sp-6);
}
.footer-grid {
  display: grid;
  gap: var(--sp-6);
  grid-template-columns: 1fr;
  align-items: start;
}
.footer-brand img {
  height: 30px;
  width: auto;
  margin-bottom: var(--sp-3);
}
.footer-brand p {
  color: var(--ink-faint);
  font-size: 13px;
  max-width: 30ch;
  margin: 0;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-5);
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.footer-links a:hover {
  color: var(--accent-deep);
  text-decoration: underline;
}
.footer-bottom {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  justify-content: space-between;
  align-items: center;
}
.footer-bottom small {
  color: var(--ink-faint);
  font-size: 12.5px;
}
.footer-note {
  color: var(--ink-faint);
  font-size: 12.5px;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr;
  }
}

/* ---- サブページ（法務・お問い合わせ）共通 --------------------------------- */
.page-hero {
  padding-block: var(--sp-10) var(--sp-6);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.page-hero h1 {
  font-size: clamp(26px, 7vw, 38px);
  margin-bottom: var(--sp-2);
}
.page-hero p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 60ch;
}

.legal {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  padding-block: var(--sp-8);
}
.legal h2 {
  font-size: 20px;
  margin-top: var(--sp-8);
  margin-bottom: var(--sp-3);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type {
  margin-top: var(--sp-2);
  border-top: 0;
  padding-top: 0;
}
.legal h3 {
  font-size: 16px;
  margin-top: var(--sp-5);
  margin-bottom: var(--sp-2);
}
.legal p,
.legal li {
  color: var(--ink-soft);
  font-size: 15.5px;
}
.legal ul {
  padding-left: 1.3em;
  margin: 0 0 1em;
}
.legal li {
  margin-bottom: 6px;
}
.legal strong {
  color: var(--ink);
}
.legal .ph {
  color: var(--accent-deep);
  background: var(--accent-soft);
  border: 1px dashed var(--accent-line);
  border-radius: var(--r-sm);
  padding: 1px 6px;
  font-weight: 700;
  font-size: 0.95em;
}
.legal .updated {
  color: var(--ink-faint);
  font-size: 13px;
  margin-bottom: var(--sp-6);
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-3) 0 var(--sp-6);
  font-size: 15px;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border: 1px solid var(--line);
}
.legal-table th {
  width: 36%;
  background: var(--bg-sink);
  color: var(--ink);
  font-weight: 700;
  font-family: var(--font-display);
}
.legal-table td {
  color: var(--ink-soft);
  background: var(--surface);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
}
.back-link:hover {
  text-decoration: underline;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--accent-line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-7) var(--sp-6);
  max-width: var(--maxw-narrow);
  margin: var(--sp-8) auto;
}
.contact-card h2 {
  margin-top: 0;
  border: 0;
  padding-top: 0;
}

/* ---- モーション配慮 -------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
