/* ============================================
   Komit LP - Stylesheet
   Brand: white base, #10a57a accent, OLED black
   ============================================ */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --color-primary: #10a57a;
  --color-primary-bright: #3fd3a5;
  --color-primary-deep: #0b7c5c;
  --color-primary-light: #e6f7f2;
  --color-dark: #050505;
  --color-dark-card: #0d0d0d;
  --color-text: #1a1a1a;
  --color-text-sub: #4b5563;
  --color-text-weak: #6b7280;
  --color-bg-gray: #f6f7f8;
  --color-border: #e5e7eb;
  --radius-sm: 4px;
  --radius-card: 22px;
  --radius-shell: 28px;
  --font-body: 'Noto Sans JP', sans-serif;
  --font-brand: 'Fugaz One', sans-serif;
  --max-width: 1080px;
  --section-gap: 140px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-lux: cubic-bezier(0.32, 0.72, 0, 1);
  --shadow-ambient: 0 32px 64px -32px rgba(11, 60, 45, 0.16);
  --ring-light: 0 0 0 1px rgba(10, 10, 10, 0.05);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-dark);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ol, ul { list-style: none; }

/* フィルムグレイン（固定・操作不可レイヤー） */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(16, 165, 122, 0.65);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

section[id] { scroll-margin-top: 88px; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sp-only { display: none; }

/* 語の途中で折り返させたくないまとまりに付ける */
.nowrap { white-space: nowrap; }

/* ---- Scroll reveal（JS有効時のみ隠す） ---- */
/* transition ではなく animation で入場させる */
/* transition だと表示後も transform: none が要素に残り .card-shell のホバーリフトを潰す */
.js .reveal,
.js .reveal-group > * {
  opacity: 0;
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(32px); filter: blur(6px); }
}
.js .reveal.is-visible,
.js .reveal-group.is-visible > * {
  opacity: 1;
  animation: reveal-in 0.9s var(--ease-lux) backwards;
}
.js .reveal-group.is-visible > :nth-child(2) { animation-delay: 0.08s; }
.js .reveal-group.is-visible > :nth-child(3) { animation-delay: 0.16s; }
.js .reveal-group.is-visible > :nth-child(4) { animation-delay: 0.24s; }
.js .reveal-group.is-visible > :nth-child(5) { animation-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal,
  .js .reveal-group > *,
  .js .reveal.is-visible,
  .js .reveal-group.is-visible > * {
    opacity: 1;
    animation: none;
  }
  /* ホバーや開閉の transform 系トランジションも動かさない */
  .btn, .btn-orb, .store-btn, .card-shell, .faq-mark { transition: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  border-radius: 999px;
  cursor: pointer;
  border: none;
  transition: background 0.3s, transform 0.4s var(--ease-lux);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

/* Button-in-Button の矢印オーブ */
.btn-orb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  transition: transform 0.4s var(--ease-lux);
}
.btn:hover .btn-orb { transform: translate(2px, -2px) scale(1.05); }

.btn-primary { background: #fff; color: #111; }
.btn-primary:hover { background: rgba(255, 255, 255, 0.85); }
.btn-sm { padding: 8px 8px 8px 18px; font-size: 14px; }

/* Store button（.btn .btn-primary に足す差分のみ持つ） */
.store-btn {
  gap: 10px;
  padding: 13px 28px;
  font-size: 15px;
}
.store-btn-icon { width: 22px; height: 22px; flex-shrink: 0; }
.store-btn span {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.store-btn small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.7;
}

/* ---- Section common ---- */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header--left {
  text-align: left;
  margin-bottom: 40px;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 165, 122, 0.25);
  background: rgba(16, 165, 122, 0.06);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--color-primary);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.03em;
  color: var(--color-text);
  text-wrap: balance;
}
.section-lead {
  margin-top: 14px;
  font-size: 15px;
  color: var(--color-text-sub);
  max-width: 56ch;
  text-wrap: pretty;
}

/* ============================================
   Header — フローティングピルナビ
   ============================================ */
/* fixed にしてフローから外す */
/* sticky だと56px分の高さを占め、Heroのグローとの間に継ぎ目ができる */
.header {
  position: fixed;
  top: 14px;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 20px;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 56px;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 10px 0 22px;
  border-radius: 999px;
  background: rgba(8, 8, 8, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 6px;
}
.logo-text {
  font-family: var(--font-brand);
  font-size: 20px;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}
.logo--small .logo-icon { width: 28px; height: 28px; }
.logo--small .logo-text { font-size: 16px; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-link:hover { color: #fff; }

/* ============================================
   Hero — 左コピー / 右フォンの非対称スプリット
   ============================================ */
.hero {
  background: var(--color-dark);
  padding: 160px 0 96px;
  overflow: hidden;
  position: relative;
}
/* 背景のグリーンメッシュグロー */
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -80px;
  width: 900px;
  height: 640px;
  background: radial-gradient(ellipse, rgba(16, 165, 122, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -220px;
  left: -120px;
  width: 620px;
  height: 480px;
  background: radial-gradient(ellipse, rgba(44, 208, 165, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 48px;
  position: relative;
}
.hero-title {
  font-size: clamp(32px, 3.9vw, 50px);
  font-weight: 900;
  line-height: 1.22;
  margin-bottom: 22px;
  color: #fff;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.8;
  margin-bottom: 34px;
  max-width: 34ch;
  text-wrap: pretty;
}
.hero-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}
.hero-note {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.55);
}

/* Hero入場アニメーション（JS不要・読み込み時のみ） */
@media (prefers-reduced-motion: no-preference) {
  @keyframes hero-rise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
  }
  .hero-title,
  .hero-subtitle,
  .hero-cta,
  .hero-visual {
    animation: hero-rise 0.9s var(--ease-out) backwards;
  }
  .hero-subtitle { animation-delay: 0.1s; }
  .hero-cta { animation-delay: 0.2s; }
  .hero-visual { animation-delay: 0.3s; }
}

/* Phone mockups — 中央の集中モードを主役に、左右で「セット → 集中 → 獲得」を並べる */
.hero-visual {
  position: relative;
  height: 470px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 浮遊コイン（Figma App Store素材の3Dコイン） */
.hero-coin {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  user-select: none;
}
.hero-coin--1 { left: -12%; top: 2%; width: 72px; rotate: -14deg; }
.hero-coin--2 { right: -2%; top: -8%; width: 88px; rotate: 10deg; }
.hero-coin--4 { left: 2%; bottom: 4%; width: 54px; rotate: -10deg; }
@media (prefers-reduced-motion: no-preference) {
  /* 基底の rotate プロパティに transform が合成されるため個別の傾きは維持される */
  @keyframes coin-float {
    0% { transform: translate3d(0, 0, 0) rotate(0deg); }
    50% { transform: translate3d(var(--drift), var(--amp), 0) rotate(var(--spin)); }
    100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  }
  .hero-coin {
    --amp: -32px;
    --drift: 8px;
    --spin: 12deg;
    animation: coin-float 5.5s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }
  .hero-coin--2 { --amp: -40px; --drift: -12px; --spin: -14deg; animation-duration: 6.5s; animation-delay: 0.6s; }
  .hero-coin--4 { --amp: -28px; --drift: -8px; --spin: -16deg; animation-duration: 7s; animation-delay: 1s; }
}

/* スクロール駆動のパララックス（未対応ブラウザでは静止） */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    @keyframes hero-drift {
      to { transform: translateY(-56px); }
    }
    .phone-mockup {
      animation: hero-drift linear both;
      animation-timeline: view();
      animation-range: exit -20% exit 100%;
    }
    .phone-mockup--center { animation-range: exit -40% exit 100%; }
  }
}

/* フォン列は縮まないため、固定幅だと中間幅でコピー列だけが圧迫される */
/* ビューポート比で縮めてコピー列の幅を確保する */
.phone-mockup {
  width: clamp(122px, 15.2vw, 164px);
  flex-shrink: 0;
}
.phone-mockup--left {
  rotate: -8deg;
  translate: 28px 16px;
  z-index: 1;
  opacity: 0.9;
}
.phone-mockup--center {
  width: clamp(142px, 17.8vw, 192px);
  translate: 0 -16px;
  z-index: 3;
}
.phone-mockup--right {
  rotate: 8deg;
  translate: -28px 16px;
  z-index: 1;
  opacity: 0.9;
}
.phone-screen {
  background: #fff;
  /* 角丸は実機の比率に合わせ画面幅の約14%とする */
  /* 縦横で値を分けて正円に保つ */
  border-radius: 14% / 6.5%;
  border: 6px solid #333;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  aspect-ratio: 9 / 19.5;
}
.phone-screen-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   Mindset — Heroのダークを引き継ぐ共感パート
   ============================================ */
.mindset {
  background: var(--color-dark);
  padding: 40px 0 128px;
}
.mindset-inner {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  align-items: center;
  gap: 56px;
}
.mindset-illust {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}
.mindset-lead {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}
.mindset-title {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 900;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 20px;
}
.mindset-desc {
  font-size: 15px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.mindset-tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 999px;
  border: 1px solid rgba(16, 165, 122, 0.35);
  background: rgba(16, 165, 122, 0.1);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--color-primary-bright);
}

/* ============================================
   Exchange — ポイント交換先
   ============================================ */
.exchange {
  padding: 56px 0 48px;
  background: #fff;
}
.exchange-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.exchange-illust {
  width: 228px;
}
.exchange-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--color-text-weak);
}
.exchange-brands {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.exchange-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: var(--ring-light), 0 20px 40px -24px rgba(11, 60, 45, 0.18);
}
.exchange-brand-logo {
  width: auto;
  height: 40px;
}
.exchange-brand-logo--amazon {
  height: 26px;
  margin-top: 8px;
}
.exchange-brand-name {
  font-size: 15px;
  font-weight: 700;
}
.exchange-more {
  font-size: 12px;
  color: var(--color-text-weak);
}

/* ============================================
   How it works — ヘアラインのレールで繋ぐ3ステップ
   ============================================ */
.how-it-works {
  padding: 96px 0 0;
  background: #fff;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
/* ステップ番号を貫くレール */
.steps::before {
  content: '';
  position: absolute;
  top: 22px;
  left: 16.6%;
  right: 16.6%;
  height: 1px;
  background: rgba(16, 165, 122, 0.35);
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.step-number {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px #fff;
}
.step-title {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step-desc {
  font-size: 14px;
  color: var(--color-text-sub);
  line-height: 1.75;
  text-wrap: pretty;
}
.step-visual {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}
/* iPhoneフレーム（ステップ・ベント共通） */
.phone-frame {
  position: relative;
  width: 158px;
  border-radius: 14% / 6.5%;
  border: 5px solid #1a1a1a;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  overflow: hidden;
  background: #000;
  flex-shrink: 0;
}
.phone-frame img { width: 100%; }

/* ============================================
   Features — 非対称ベント5セル
   ============================================ */
/* FAQは背景色が変わるので、白側にも下パディングを残す */
.features {
  padding: var(--section-gap) 0;
  background: #fff;
}
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.bento-a { grid-column: span 7; }
.bento-b { grid-column: span 5; }
.bento-c { grid-column: span 5; }
.bento-d { grid-column: span 7; }
.bento-e { grid-column: span 12; }

/* Double-Bezel: 外殻トレイ + 内殻カード */
.card-shell {
  background: rgba(10, 10, 10, 0.04);
  border-radius: var(--radius-shell);
  padding: 6px;
  box-shadow: var(--ring-light), var(--shadow-ambient);
  transition: transform 0.5s var(--ease-lux);
}
@media (hover: hover) {
  .card-shell:hover { transform: translateY(-6px); }
}
.card-shell--dark {
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 32px 64px -32px rgba(0, 0, 0, 0.5);
}
.card-shell--green {
  background: rgba(16, 165, 122, 0.12);
}

.feature-card {
  height: 100%;
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8), 0 0 0 1px rgba(10, 10, 10, 0.03);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow: hidden;
}
.feature-card--row {
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.feature-card--row-reverse { flex-direction: row-reverse; }
.feature-card--wide { padding: 34px 44px; gap: 48px; }

.feature-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-card:not(.feature-card--row) .feature-visual { flex: 1; }
.feature-card--row .feature-visual { flex: 0 0 44%; }
.feature-card--wide .feature-visual { flex: 0 0 22%; }
/* 直下のイラストのみを対象にする（.phone-frame 内のスクショには効かせない） */
.feature-visual > img { max-height: 260px; width: auto; object-fit: contain; }

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feature-card--row .feature-text { flex: 1; }

.feature-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  /* 白背景でWCAG AAを満たすよう、ブランドグリーンより一段濃い緑にする */
  color: #0b7c5c;
}
.feature-heading {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.feature-desc {
  font-size: 13px;
  line-height: 1.75;
  color: var(--color-text-sub);
  text-wrap: pretty;
}

/* ダークガラスカード（AI集中判定） */
.feature-card--dark {
  background: var(--color-dark-card);
  background-image: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(16, 165, 122, 0.14), transparent);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}
.feature-card--dark .feature-heading { color: #fff; }
.feature-card--dark .feature-desc { color: rgba(255, 255, 255, 0.6); }
.feature-card--dark .feature-tag { color: var(--color-primary-bright); }

/* ブランドグリーンカード（学習ポイント） */
.feature-card--green {
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.25);
}
.feature-card--green .feature-tag { color: rgba(255, 255, 255, 0.85); }
.feature-card--green .feature-heading { color: #fff; }
.feature-card--green .feature-desc { color: rgba(255, 255, 255, 0.8); }

/* 全幅セル（AI学習レポート）は淡いグリーンの地を敷く */
.bento-e .feature-card {
  background: linear-gradient(120deg, var(--color-primary-light) 0%, #ffffff 60%);
}
.bento-e .feature-desc { max-width: 52ch; }

/* セルごとの調整 — 3Dイラストは大きく、スクショはカード端で断ち切る */
.bento-a .feature-visual > img { max-height: 300px; }

.bento-b .feature-card { justify-content: space-between; }
.bento-b .feature-text { order: -1; }
/* 断ち切り位置を固定する */
/* flex: 1 に負けない詳細度が要る */
/* 高さは隣のセルAと揃うよう決めてある */
/* 変えると本文とフォンの間に余白が空く */
.bento-b .feature-card .feature-visual {
  flex: none;
  min-height: 0;
  height: 356px;
  margin: 0 -30px -34px;
  align-items: flex-start;
  overflow: hidden;
}
.bento-b .phone-frame { width: 240px; }

.bento-c .feature-visual > img { max-height: 240px; }
.bento-d .phone-frame { width: 186px; }

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: var(--section-gap) 0;
  background: var(--color-bg-gray);
}
.faq-list {
  border-top: 1px solid var(--color-border);
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question:hover { color: var(--color-primary); }
/* 開閉マーク（＋ / ×）をCSSの2本線で描く */
.faq-mark {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.4s var(--ease-lux);
}
.faq-mark::before,
.faq-mark::after {
  content: '';
  position: absolute;
  inset: 50% 0 auto 0;
  height: 2px;
  border-radius: 1px;
  background: var(--color-primary);
}
.faq-mark::after { transform: rotate(90deg); }
.faq-item[open] .faq-mark { transform: rotate(135deg); }
.faq-answer {
  padding: 0 4px 26px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--color-text-sub);
  max-width: 46em;
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes faq-open {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: none; }
  }
  .faq-item[open] .faq-answer { animation: faq-open 0.35s var(--ease-out); }
}

/* ============================================
   Download CTA
   ============================================ */
.download-cta {
  padding: 150px 0;
  background: var(--color-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-cta::before {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 760px;
  height: 480px;
  background: radial-gradient(ellipse, rgba(16, 165, 122, 0.14) 0%, transparent 70%);
  pointer-events: none;
}
.download-cta .container { position: relative; }

/* CTAのギフト3D素材（Figma App Store素材） */
.cta-prop {
  position: absolute;
  bottom: 48px;
  pointer-events: none;
  user-select: none;
}
.cta-prop--left { left: 7%; width: 190px; rotate: -6deg; }
.cta-prop--right { right: 7%; width: 230px; rotate: 6deg; }
.cta-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  text-wrap: balance;
}
.cta-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.cta-note {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--color-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 40px 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer .logo-text { color: #fff; }
.footer-nav {
  display: flex;
  gap: 24px;
}
.footer-link {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
}
.footer-link:hover { color: #fff; }
.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .hero-inner { gap: 24px; }
  .hero-visual { height: 420px; }
  .feature-card--row { flex-direction: column; align-items: stretch; }
  .feature-card--row-reverse { flex-direction: column; }
  .feature-card--row .feature-visual,
  .feature-card--wide .feature-visual { flex: 1; }
  .feature-card--wide { padding: 34px 30px; gap: 24px; }
  .bento-a, .bento-b, .bento-c, .bento-d { grid-column: span 6; }
}

@media (max-width: 768px) {
  :root { --section-gap: 112px; }
  .sp-only { display: inline; }

  .nav .nav-link { display: none; }
  .header { top: 10px; }
  .header-inner { height: 52px; padding: 0 8px 0 18px; }

  .hero { padding: 92px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  /* フォン3枚の合計幅がグリッド列を押し広げないようにする。あふれた分は.heroのoverflowで切る */
  .hero-copy, .hero-visual { min-width: 0; }
  .hero-subtitle { max-width: none; margin-inline: auto; }
  .hero-cta { align-items: center; gap: 12px; }
  .hero-visual { height: 400px; margin-top: 24px; }
  .phone-mockup { width: 130px; }
  .phone-mockup--center { width: 152px; }
  .phone-mockup--left { translate: 20px 12px; }
  .phone-mockup--right { translate: -20px 12px; }
  .hero-coin--1 { left: 0; width: 48px; }
  .hero-coin--2 { right: 0; width: 58px; }
  .hero-coin--4 { display: none; }

  .mindset { padding: 24px 0 88px; }
  .mindset-inner { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .mindset-illust { max-width: 260px; }
  .mindset-desc { max-width: none; }

  .exchange-brands { gap: 20px 32px; }

  .how-it-works { padding: 72px 0 0; }
  .steps { grid-template-columns: 1fr; gap: 48px; }
  .steps::before { display: none; }
  .step-number { box-shadow: none; }
  .step-visual { margin-top: 24px; }

  .bento { grid-template-columns: 1fr; }
  .bento-a, .bento-b, .bento-c, .bento-d, .bento-e { grid-column: span 1; }
  .feature-visual > img { max-height: 220px; }

  .faq-question { font-size: 15px; padding: 20px 2px; }

  .cta-prop { display: none; }
  .cta-buttons { flex-direction: column; align-items: center; }

  .footer-nav { flex-direction: column; align-items: center; gap: 14px; }
}

@media (max-width: 480px) {
  .exchange-brands { flex-direction: column; gap: 16px; }
  /* 320px幅でも見出し9文字+左右パディングが収まるサイズにする */
  .hero-title { font-size: clamp(26px, 8.4vw, 32px); }
  .hero-visual { height: 330px; }
  .phone-mockup { width: 108px; }
  .phone-mockup--center { width: 126px; }
}

@media (max-width: 374px) {
  /* 320px幅でロゴとCTAが重ならないよう、ヘッダーはアイコンだけにする */
  .header .logo-text { display: none; }
  .phone-mockup { width: 96px; }
  .phone-mockup--center { width: 112px; }
  .hero-visual { height: 300px; }
}
