/* ============================================================
   メシテル LP — main.css
   アプリ本体 (apps/mobile/src/lib/theme.ts) と同一トークン
   順序: tokens > base > layout > components > sections > animations > responsive
   ============================================================ */

/* === 1. tokens === */
:root {
  /* color (app theme.ts 由来) */
  --color-bg: #fff6e9;
  --color-cream: #fff6e9; /* アプリ背景 (theme.ts background) と統一 */
  --color-surface: #fffdf8;
  --color-surface-white: #ffffff;
  --color-ink: #1a1310;
  --color-text: #2b211b;
  --color-mute: #725f52;
  --color-border: #ead7c6;
  --color-border-subtle: #f1e4d4;
  --color-primary: #a43a0c;        /* WCAG AA テキスト/CTA 用オレンジ */
  --color-vibrant: #e95513;        /* 装飾専用 (テキスト不可) */
  --color-accent-soft: #ffe4cc;
  --color-accent-tint: rgba(164, 58, 12, 0.14);
  --color-yellow: #ffc60a;
  --color-yellow-soft: rgba(255, 198, 10, 0.18);
  --color-green: #4ca85a;
  --color-green-dark: #2f7a3a;
  --color-green-soft: #e6f4e2;
  --color-green-ring: rgba(76, 168, 90, 0.28);

  /* font */
  --font-display: "Bebas Neue", "Zen Kaku Gothic New", sans-serif;
  --font-jp: "Zen Kaku Gothic New", "Hiragino Sans", "Noto Sans JP", -apple-system, sans-serif;

  /* space */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 32px;
  --space-xl: 64px;
  --space-section: clamp(72px, 10vw, 128px);

  /* radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  /* shadow (アプリの shadowCard / shadowCtaLifted 準拠) */
  --shadow-card: 0 4px 12px rgba(168, 51, 0, 0.08);
  --shadow-card-hover: 0 10px 28px rgba(168, 51, 0, 0.14);
  --shadow-cta: 0 4px 0 var(--color-yellow);

  /* nav */
  --nav-h: 68px;
}

/* === 2. base === */
*, *::before, *::after { box-sizing: border-box; }

/* 注意: html/body に overflow-x:hidden を足すと ScrollTrigger の pin が壊れる。
   はみ出し要素は各セクション側 (.marquee-clip 等) でクリップする。 */
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font-jp);
  font-weight: 500;
  color: var(--color-text);
  background: var(--color-cream);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--color-primary); text-decoration: none; }

button {
  font-family: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

h1, h2, h3 { font-weight: 900; line-height: 1.4; margin: 0; }

p { margin: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* === 3. layout === */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section__heading {
  font-size: clamp(26px, 3.6vw, 40px);
  letter-spacing: 0.02em;
  text-align: center;
  margin-bottom: 16px;
}

.section__lede {
  text-align: center;
  color: var(--color-mute);
  font-size: 15px;
  max-width: 560px;
  margin: 0 auto 48px;
}

.eyebrow {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.22em;
  color: var(--color-primary); /* テキストは WCAG AA を満たす primary を使う (vibrant は装飾専用) */
  text-align: center;
  margin-bottom: 8px;
}

/* --- スクロール進捗バー --- */
.progress {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-vibrant), var(--color-yellow));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 60;
  pointer-events: none;
}

/* --- Nav --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 50;
  background: rgba(255, 251, 235, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border-subtle);
}

.nav__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-ink);
}

.nav__brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}

.nav__brand-name {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--color-primary);
}

.nav__brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-mute);
  display: block;
  line-height: 1.2;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  transition: color 0.2s ease;
}

.nav__link:hover { color: var(--color-primary); }

/* --- Footer --- */
.footer {
  position: relative;
  background: var(--color-surface-white);
  border-top: 1px solid var(--color-border);
  padding: 48px 0 32px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer__brand img { width: 34px; height: 34px; border-radius: 9px; }

.footer__brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  line-height: 1;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer__links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-mute);
}

.footer__links a:hover { color: var(--color-primary); }

.footer__copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--color-mute);
  margin-top: 24px;
}

.footer__peek {
  position: absolute;
  right: 4%;
  bottom: 100%;
  width: clamp(150px, 18vw, 230px);
  pointer-events: none;
}

/* === 4. components === */

/* --- CTAボタン (アプリの Lifted CTA: 黄色ハードシャドウ) --- */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  min-height: 52px;
  padding: 14px 32px;
  background: var(--color-primary);
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.04em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-cta);
  transition: transform 0.18s cubic-bezier(.16, 1, .3, 1), box-shadow 0.18s ease;
  position: relative;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--color-yellow);
}

.cta-button:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--color-yellow);
}

.cta-button--lg {
  min-height: 60px;
  padding: 16px 44px;
  font-size: 18px;
}

.cta-button--nav {
  min-height: 44px;          /* WCAG 2.2 推奨タップ領域 44px 確保 */
  padding: 10px 22px;
  font-size: 13px;
}

.cta-button__arrow { font-weight: 900; }

.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 28px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-white);
  color: var(--color-text);
  font-size: 15px;
  font-weight: 700;
  transition: border-color 0.2s ease, transform 0.18s cubic-bezier(.16, 1, .3, 1);
}

.ghost-button:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* --- 蛍光マーカー風アンダーライン --- */
.mark {
  background: linear-gradient(transparent 62%, var(--color-yellow) 62%, var(--color-yellow) 94%, transparent 94%);
  padding: 0 2px;
}

/* ヒーロー見出しのマーカーは JS で左→右に伸ばす。
   reduced-motion/JS無効では全幅表示のままで下線が消えないようにする。 */
.hero__title .mark {
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* 「うっかり」を回転・拡大させるため inline-block 化 */
.pain__wobble { display: inline-block; }

/* スクロールで左→右に伸びるマーカー (Features 見出し等)。
   reduced-motion/JS無効では全幅表示のままで下線が消えない。 */
.mark--anim {
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

/* --- チェック行 --- */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--color-surface-white);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.check-row__icon {
  width: 44px;
  height: 46px;
  flex-shrink: 0;
}

.check-row__title {
  font-size: 16px;
  font-weight: 900;
  margin-bottom: 2px;
}

.check-row__body {
  font-size: 13px;
  color: var(--color-mute);
  line-height: 1.7;
}

/* --- 浮遊装飾 --- */
.bg-float {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

/* --- スマホフレーム (実画面スクショ用) --- */
.phone {
  width: 210px;
  flex-shrink: 0;
  border: 7px solid var(--color-ink);
  border-radius: 30px;
  background: var(--color-ink);
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(168, 51, 0, 0.22);
}

.phone img {
  display: block;
  width: 100%;
  border-radius: 22px;
}

.phone--sm { width: 175px; border-width: 6px; border-radius: 26px; }
.phone--sm img { border-radius: 19px; }

.phone--tilt-l { transform: rotate(-2.5deg); }
.phone--tilt-r { transform: rotate(2.5deg); }

/* --- 通知カードスクショ --- */
.notif-shot {
  width: min(86%, 330px);
  border-radius: 16px;
  box-shadow: 0 10px 24px rgba(43, 33, 27, 0.22);
}

/* === 5. sections === */

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;  /* dvh 非対応ブラウザ用 fallback */
  min-height: 100dvh;
  padding: calc(var(--nav-h) + 32px) 0 48px;
  display: flex;
  align-items: center;
  background:
    radial-gradient(820px 540px at 78% 30%, rgba(255, 198, 10, 0.16), transparent 70%),
    radial-gradient(640px 480px at 12% 86%, rgba(76, 168, 90, 0.10), transparent 70%),
    var(--color-cream);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 32px;
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero__title {
  font-size: clamp(32px, 4.2vw, 54px);
  line-height: 1.32;
  letter-spacing: 0.015em;
  color: var(--color-ink);
}

.hero__title .accent { color: var(--color-primary); }

/* 文節単位で折り返し位置を固定 (1文字spanの任意改行を防ぐ) */
.hero__title .phrase { display: inline-block; white-space: nowrap; }

.hero__title .char { display: inline-block; }

.hero__lede {
  margin-top: 22px;
  font-size: clamp(14px, 1.4vw, 16px);
  color: var(--color-mute);
  font-weight: 700;
  max-width: 30em;
}

.hero__cta-row {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* マスコットステージ */
.hero__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero__halo {
  position: absolute;
  width: min(78%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 198, 10, 0.34), rgba(255, 228, 204, 0.22) 58%, transparent 72%);
}

.hero__mascot {
  width: min(62%, 330px);
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 18px 28px rgba(168, 51, 0, 0.16));
}

.hero__food {
  position: absolute;
  z-index: 3;
  filter: drop-shadow(0 8px 14px rgba(168, 51, 0, 0.14));
}

.hero__food--burger  { width: 17%; top: 7%;  left: 13%; }
.hero__food--donut   { width: 15%; top: 2%;  right: 16%; }
.hero__food--coffee  { width: 12%; top: 44%; right: 4%; }
.hero__food--drink   { width: 12%; bottom: 12%; left: 6%; }
.hero__food--chicken { width: 14%; bottom: 4%; right: 16%; }

.hero .bg-float--sparkle-1 { width: 64px; top: 18%; left: 4%; opacity: 0.85; }
.hero .bg-float--sparkle-2 { width: 44px; bottom: 22%; right: 38%; opacity: 0.7; }
.hero .bg-float--star      { width: 26px; top: 12%; right: 40%; }
.hero .bg-float--squiggle  { width: 90px; bottom: 10%; left: 42%; opacity: 0.8; }

/* --- FV ラッピング風リボン (斜めマーキー2本を逆角度で交差) --- */
.hero__ribbons {
  position: absolute;
  inset: 0;
  z-index: 1;          /* 背景装飾(bg-float z0)の上、コンテンツ(z2)の下 */
  overflow: hidden;    /* FV からはみ出た帯を隠す */
  pointer-events: none;
}

.hero-ribbon {
  position: absolute;
  left: -18%;
  width: 136%;
  background: var(--color-green-soft);
  border-top: 1px solid var(--color-green-ring);
  border-bottom: 1px solid var(--color-green-ring);
  padding: 6px 0;
  overflow: hidden;
  opacity: 0.9;
}

/* FV 上部を斜めに横切る 1 本リボン (見出しより上に置き文字被りを回避) */
.hero-ribbon--a {
  top: clamp(72px, calc(7.8vw + 16px), 152px);
  transform: rotate(-9deg);
  transform-origin: center;
}

.hero-ribbon__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marqueeScroll 22s linear infinite;
}

.hero-ribbon__set {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap, 32px);
  padding-right: var(--marquee-gap, 32px);
  flex-shrink: 0;
}

.hero-ribbon .marquee__word {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.12em;
  color: var(--color-green-dark);
  white-space: nowrap;
}

.hero-ribbon .marquee__food { height: 30px; width: auto; } /* 高さ基準で統一 (縦長フードでも帯高さが揃う) */

/* --- マーキー (食べたい帯) --- */
/* clip は左右のはみ出し(-24px)を隠す役。傾けた帯は見かけの高さが増えるので、
   上下に padding を持たせて帯のフチ(緑ライン)が切れないよう逃がす。 */
.marquee-clip {
  position: relative;
  /* 傾けた帯の見かけ高さ = 帯幅 × sin9° + 帯厚。画面幅に比例して増えるため vw 追従で確保し、
     上下が切れないようにする (固定 112px だと広い画面で帯のバウンディングボックス約269pxが収まらず切れていた)。 */
  height: max(108px, calc(15.6vw + 48px));
  overflow: hidden;
  margin-top: 0;        /* FV との隙間(空白線)を解消 */
}

/* FV と pain の間を斜めに横切る 1 本の流れる帯 (緑)。
   回転支点を中央に置き、見出し中心の真下に寄せる。 */
.marquee {
  position: absolute;
  top: 50%;
  left: -12px;
  right: -12px;
  padding: 6px 0;
  background: var(--color-green-soft);
  border-top: 1px solid var(--color-green-ring);
  border-bottom: 1px solid var(--color-green-ring);
  overflow: hidden;
  z-index: 3;
  transform-origin: center; /* 対称な X 字クロス (前は 31% で角度が歪んでいた) */
}

.marquee--a { transform: translateY(-50%) rotate(-9deg); }

.marquee__track {
  display: flex;
  align-items: center;
  gap: 0; /* Seamless loop: spacing belongs inside each repeated set. */
  width: max-content;
}

.marquee__item {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap, 32px); /* 上の FV 帯と間隔を統一 */
  padding-right: var(--marquee-gap, 32px);
  flex-shrink: 0;
}

.marquee__word {
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1;
  letter-spacing: 0.12em; /* 上の FV 帯 (.hero-ribbon .marquee__word) と字間を統一 */
  color: var(--color-green-dark);
  white-space: nowrap;
}

.marquee__food { height: 30px; width: auto; } /* 高さ基準で統一 (縦長フードでも帯高さが揃う) */

/* ループの繋ぎ目: 各セットのコンテンツ実幅が表示幅を超えるようアイテム数で確保する。
   min-width: 100vw はコンテンツを引き伸ばさず末尾に空白を作るだけなので使わない。 */

/* --- Pain (うっかりあるある) --- */
.pain { background: var(--color-cream); overflow: hidden; }

@media (min-width: 881px) {
  .pain { margin-top: clamp(-72px, -4vw, -40px); }
}

.pain__bubbles {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 660px;
  margin: 0 auto 56px;
}

.pain__bubble {
  background: var(--color-surface-white);
  border: 1.5px solid var(--color-border);
  border-radius: 22px;
  padding: 18px 26px;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 700;
  box-shadow: var(--shadow-card);
  position: relative;
  width: fit-content;
}

.pain__bubble::after {
  content: "";
  position: absolute;
  bottom: -9px;
  width: 18px;
  height: 18px;
  background: var(--color-surface-white);
  border-right: 1.5px solid var(--color-border);
  border-bottom: 1.5px solid var(--color-border);
  transform: rotate(45deg);
}

.pain__bubble--1 { align-self: flex-start; transform: rotate(-1.2deg); }
.pain__bubble--1::after { left: 34px; }
.pain__bubble--2 { align-self: flex-end; transform: rotate(1.4deg); background: var(--color-accent-soft); border-color: #f0cda6; }
.pain__bubble--2::after { right: 34px; background: var(--color-accent-soft); border-color: #f0cda6; }
.pain__bubble--3 { align-self: flex-start; margin-left: 10%; transform: rotate(-0.8deg); }
.pain__bubble--3::after { left: 50%; }

.pain__punch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}

.pain__punch-text {
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 900;
  line-height: 1.5;
  text-align: left;
}

.pain__punch-mascot { width: clamp(130px, 16vw, 190px); }

/* --- How it works (横パン3ステップ) --- */
.how {
  background: var(--color-bg);
  overflow: hidden;
  padding: 0; /* 横パン viewport が 100dvh で高さを持つため section 余白は外す */
}

/* viewport を画面フルハイトにし、見出し+パネルを縦中央に積む。pin 中は見出しが
   上に残り、その下でパネルが横スクロール。上下の空きを見出しで埋めて間延びを防ぐ
   (公式横パン形: 画面サイズのパネルを pin して中身を動かす)。 */
.how__viewport {
  position: relative;
  min-height: 100vh;  /* dvh 非対応ブラウザ用 fallback */
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: clamp(18px, 3vh, 34px);
  padding: clamp(36px, 5vh, 64px) 0 clamp(28px, 4vh, 48px);
}

/* 横スクロール中も画面上部に残る見出し */
.how__head {
  text-align: center;
  flex-shrink: 0;
}

.how__head .section__heading { margin-bottom: 12px; }
.how__head .section__lede { margin-bottom: 0; }

.how__track {
  display: flex;
  gap: 28px;
  width: max-content;
  margin: 0 auto;
  padding: 12px 24px 32px;
}

.how__panel {
  width: min(78vw, 560px);
  background: var(--color-surface-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px 36px 30px;
  position: relative;
  overflow: hidden;
}

.how__num {
  font-family: var(--font-display);
  font-size: 88px;
  line-height: 1;
  color: var(--color-accent-soft);
  position: absolute;
  top: 14px;
  right: 22px;
}

.how__panel-title {
  font-size: clamp(20px, 2.4vw, 26px);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.how__panel-body {
  font-size: 14px;
  color: var(--color-mute);
  max-width: 26em;
  position: relative;
  z-index: 1;
}

.how__panel-visual {
  margin-top: 22px;
  height: 280px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

/* 実画面入りパネル: スマホ上部を見せて下を裁ち落とす */
.how__panel-visual--screen {
  place-items: start center;
  padding-top: 24px;
}

.how__panel--1 .how__panel-visual { background: var(--color-accent-soft); }
.how__panel--2 .how__panel-visual { background: var(--color-green-soft); }
.how__panel--3 .how__panel-visual { background: var(--color-yellow-soft); }

.how__visual-img { height: 150px; width: auto; }

.how__visual-img--celebrate {
  position: absolute;
  height: 120px;
  width: auto;
  right: 6%;
  bottom: 6%;
}

.how__visual-img--side {
  position: absolute;
  width: 84px;
  height: auto;
  right: 10%;
  bottom: 8%;
}

/* 通知範囲リング (ステップ2装飾) */
.how__rings {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.how__ring {
  position: absolute;
  border: 2px dashed var(--color-green-ring);
  border-radius: 50%;
}

.how__ring--1 { width: 90px; height: 90px; }
.how__ring--2 { width: 160px; height: 160px; }
.how__ring--3 { width: 230px; height: 230px; }

/* --- Features (ベントーグリッド) --- */
.features { background: var(--color-cream); }

.features__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.feature-cell {
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(.16, 1, .3, 1), box-shadow 0.25s ease;
}

.feature-cell:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.feature-cell--feed   { grid-column: span 7; background: var(--color-accent-soft); }
.feature-cell--range  { grid-column: span 5; background: var(--color-green-soft); }
.feature-cell--chain  { grid-column: span 5; background: var(--color-surface-white); border: 1.5px solid var(--color-border-subtle); }
.feature-cell--map    { grid-column: span 7; background: var(--color-yellow-soft); }

.feature-cell__title {
  font-size: clamp(18px, 2vw, 22px);
  margin-bottom: 8px;
}

.feature-cell__body {
  font-size: 13.5px;
  color: var(--color-mute);
  max-width: 30em;
}

.feature-cell__foods {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  margin-top: 22px;
}

.feature-cell__foods img {
  width: 76px;
  filter: drop-shadow(0 6px 10px rgba(168, 51, 0, 0.16));
}

.feature-cell__pills {
  display: flex;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.range-pill {
  border-radius: var(--radius-pill);
  background: var(--color-surface-white);
  border: 1.5px solid var(--color-green-ring);
  color: var(--color-green-dark);
  font-weight: 900;
  font-size: 14px;
  padding: 8px 18px;
}

.range-pill--active {
  background: var(--color-green);
  border-color: var(--color-green);
  color: #ffffff;
}

.feature-cell__icon-row {
  display: flex;
  gap: 14px;
  margin-top: 22px;
  align-items: flex-end;
}

.feature-cell__icon-row img { width: 64px; }

/* 実画面入り機能セル */
.feature-cell__screen {
  margin-top: 20px;
  height: 230px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.feature-cell__pin {
  width: 56px;
  height: auto;
  align-self: flex-end;
  margin-bottom: 14px;
}

/* --- Privacy (安心セクション) --- */
.privacy {
  background: var(--color-green-soft);
  overflow: hidden;
}

.privacy__inner {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 48px;
  align-items: center;
}

.privacy__mascot {
  width: min(100%, 300px);
  margin: 0 auto;
  filter: drop-shadow(0 14px 22px rgba(47, 122, 58, 0.18));
}

.privacy__heading {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 12px;
}

.privacy__lede {
  font-size: 14px;
  color: var(--color-mute);
  margin-bottom: 28px;
}

.privacy__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.privacy__link {
  display: inline-block;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* --- FAQ --- */
.faq { background: var(--color-cream); }

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq__item {
  background: var(--color-surface-white);
  border: 1.5px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.faq__item[open] .faq__q::after { transform: rotate(45deg); }

.faq__a {
  padding: 0 22px 20px;
  font-size: 14px;
  color: var(--color-mute);
  line-height: 1.8;
}

/* --- Final CTA --- */
.final-cta {
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(255, 198, 10, 0.22), transparent 70%),
    var(--color-accent-soft);
  text-align: center;
  overflow: hidden;
  position: relative;
}

.final-cta__mascot {
  width: clamp(170px, 20vw, 240px);
  margin: 0 auto 8px;
  filter: drop-shadow(0 16px 26px rgba(168, 51, 0, 0.2));
}

.final-cta__heading {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 14px;
}

.final-cta__lede {
  font-size: 14px;
  color: var(--color-mute);
  font-weight: 700;
  margin-bottom: 32px;
}

.final-cta .bg-float--star-l { width: 30px; top: 16%; left: 12%; }
.final-cta .bg-float--star-r { width: 22px; top: 26%; right: 14%; }
.final-cta .bg-float--sparkle { width: 56px; bottom: 18%; right: 8%; opacity: 0.8; }
.final-cta .bg-float--sparkle-l { width: 42px; bottom: 30%; left: 6%; opacity: 0.7; }

/* ハートパーティクル (CTAホバー演出) */
.heart-particle {
  position: fixed;
  width: 22px;
  height: 22px;
  pointer-events: none;
  z-index: 70;
}

/* === legal pages (privacy.html / terms.html) === */
.legal-body { background: var(--color-cream); }

.legal-main {
  max-width: 780px;
  margin: calc(var(--nav-h) + 32px) auto 64px;
  background: var(--color-surface-white);
  padding: 40px 36px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}

.legal-main h1 { font-size: 25px; margin: 20px 0 16px; }
.legal-main h2 { font-size: 19px; margin: 30px 0 8px; }
.legal-main h3 { font-size: 16px; margin: 20px 0 4px; }
.legal-main p { margin: 0 0 12px; font-size: 15px; }
.legal-main ul, .legal-main ol { padding-left: 1.5em; margin: 0 0 16px; }
.legal-main ul { list-style: disc; }
.legal-main ol { list-style: decimal; }
.legal-main li { margin-bottom: 4px; font-size: 15px; }
.legal-main hr { border: 0; border-top: 1px solid var(--color-border-subtle); margin: 24px 0; }

.legal-main blockquote {
  border-left: 3px solid var(--color-primary);
  background: var(--color-accent-soft);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 12px 0;
  font-size: 14.5px;
}

.legal-main blockquote p { margin: 0 0 4px; }

.legal-main code {
  background: #f7eadc;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.9em;
  color: var(--color-mute);
}

.legal-nav-row {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
}

.legal-nav-row a { text-decoration: underline; text-underline-offset: 3px; }

.draft-banner {
  background: var(--color-yellow-soft);
  border-left: 3px solid var(--color-yellow);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin: 16px 0 24px;
  font-size: 13px;
  font-weight: 700;
}

.legal-footer {
  text-align: center;
  font-size: 12px;
  color: var(--color-mute);
  margin-top: 28px;
}

/* === 6. animations === */

/* マーキー無限ループ (transform のみ) */
@keyframes marqueeScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee__track { animation: marqueeScroll 22s linear infinite; } /* 上の FV 帯 (hero-ribbon__track 22s) と流速を統一 */

/* 通知リングのふわっと拡大 */
@keyframes ringPulse {
  0%   { opacity: 0.9; transform: scale(0.88); }
  100% { opacity: 0;   transform: scale(1.12); }
}

.how__ring--pulse { animation: ringPulse 2.4s ease-out infinite; }

/* GSAP 制御要素: JSなしでも見える状態がデフォルト。
   アニメ初期状態は JS (gsap.set) 側で付与する。 */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none; }
  .hero-ribbon__track { animation: none; }
  .how__ring--pulse { animation: none; }
  .cta-button, .ghost-button, .feature-cell { transition: none; }

  /* 横パンを使わない (JS が pin しない) ので、パネルは縦積みで全部見せる */
  .how { padding: var(--space-section) 0; }
  .how__viewport { min-height: 0; display: block; padding: 0; }
  .how__head { margin-bottom: 32px; }
  .how__track { flex-direction: column; width: 100%; }
  .how__panel { width: 100%; max-width: 560px; margin: 0 auto; }
}

/* === 7. responsive === */
@media (max-width: 880px) {
  .nav__links .nav__link { display: none; }

  .cta-button--nav {
    min-height: 44px;        /* モバイルでも 44px タップ領域を確保 */
    padding: 11px 16px;
    font-size: 12px;
  }

  .nav__brand-name { font-size: 21px; }

  .hero { min-height: auto; padding-bottom: 24px; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 8px;
    text-align: center;
  }

  .hero__lede { margin-left: auto; margin-right: auto; }

  .hero__cta-row { justify-content: center; }

  .hero__stage { min-height: 340px; margin-top: 16px; }

  .hero__mascot { width: min(56%, 270px); }

  .marquee { margin-top: 0; }

  .pain__punch-text { text-align: center; }

  /* 横パン → 縦積みへ (フルハイト中央配置を解除) */
  .how { padding: var(--space-section) 0; }

  .how__viewport {
    min-height: 0;
    display: block;
    padding: 0;
  }

  .how__head { margin-bottom: 32px; }

  .how__track {
    flex-direction: column;
    width: 100%;
    padding: 12px 0 8px;
  }

  .how__panel { width: 100%; }

  .features__grid { grid-template-columns: 1fr; }

  .feature-cell--feed,
  .feature-cell--range,
  .feature-cell--chain,
  .feature-cell--map { grid-column: span 1; }

  .privacy__inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }

  .privacy__mascot { width: min(54%, 230px); }

  .privacy__list { text-align: left; }

  .privacy__link { margin-top: 20px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }

  .footer__peek { right: 6%; width: 140px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .hero__title { font-size: clamp(26px, 8vw, 34px); }

  .hero__food--coffee { right: 0; }
  .hero__food--drink { left: 2%; }

  /* マーキー帯の文字/フードは全幅で上の FV 帯と同一サイズに統一するため、
     480px 以下の個別上書き (旧 font-size:20px / height:32px) は撤去。base 値 (21px / 30px) に従う。 */

  .pain__bubble { padding: 14px 18px; }
  .pain__bubble--3 { margin-left: 0; }

  .pain__punch { flex-direction: column; gap: 12px; }

  .how__panel { padding: 26px 22px 22px; }
  .how__num { font-size: 64px; }

  .feature-cell { padding: 24px 20px 20px; }
  .feature-cell__foods img { width: 60px; }

  .cta-button--lg { width: 100%; }

  .legal-main { padding: 28px 20px; }
}
