/* FitBeat — /for-trainers（トレーナー向け価値訴求 LP）
   共有トークン・背景・ヘッダー・フッターは styles.css を継承する（:root, .backdrop, .brand）。
   本ファイルはこのページ固有のレイアウトのみ。ダーク・真鍮単色・数字が主役・絵文字なし。
   参照: 03-design/design-tokens.md / 02-specs/overview/principles.md */

/* ============================================================
   レイアウト土台
   ============================================================ */
.tr {
  position: relative;
  z-index: 0;
}
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: clamp(20px, 5vw, 56px);
}
.section {
  padding-block: clamp(56px, 9vw, 108px);
}
.section-sep { border-top: 1px solid var(--hairline); }

/* アンカー遷移時、固定ヘッダーに見出しが隠れないようオフセットする */
#features, #pricing, #faq, #apply, [id^="f-"] { scroll-margin-top: 98px; }

/* セクション見出しの共通 */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-deep));
}
.eyebrow.center { justify-content: center; }

.h-sec {
  margin: 0 0 16px;
  font-size: clamp(25px, 3.4vw, 38px);
  line-height: 1.28;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}
.lead {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-2);
  font-size: clamp(15px, 1.5vw, 16.5px);
}
.grad {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.head-center { text-align: center; }
.head-center .lead { margin-inline: auto; }

/* ============================================================
   ヘッダー（このページ専用・CTA 付き）
   ============================================================ */
.tr-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 15, 19, 0.72);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-bottom: 1px solid var(--hairline);
}
.tr-header-in {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.tr-header .brand img { height: 22px; width: auto; display: block; }
.tr-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 30px);
  font-size: 14px;
}
.tr-nav a { color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.tr-nav a:hover { color: var(--ink); }
.tr-nav .nav-links { display: flex; gap: clamp(16px, 2.4vw, 30px); }
.tr-nav-cta { padding: 9px 18px; font-size: 13.5px; }
@media (max-width: 720px) {
  .tr-nav .nav-links { display: none; }
}
@media (max-width: 560px) {
  /* 小画面はヘッダーCTAを畳む（下部の常駐CTAが役割を担う）。ロゴが窮屈にならない
     .btn の display より後勝ちさせるため、詳細度を上げる */
  .tr-nav .tr-nav-cta { display: none; }
}

/* ============================================================
   ボタン
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: filter 0.18s ease, border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}
.btn--primary {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent) 55%, var(--accent-deep));
  color: #17130a;
  box-shadow: 0 10px 26px rgba(199, 161, 74, 0.22);
}
.btn--primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--ghost {
  background: var(--glass);
  border-color: var(--glass-stroke);
  color: var(--ink);
}
.btn--ghost:hover { border-color: rgba(236, 238, 242, 0.3); background: var(--glass-strong); }
.btn--lg { padding: 16px 32px; font-size: 16px; }
.btn .arrow { font-family: var(--font); font-weight: 600; }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero-tr {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  align-items: center;
  gap: clamp(28px, 5vw, 68px);
  padding-block: clamp(48px, 8vw, 92px);
  /* ヘッダー分を差し引いてビューポートを満たす。
     ＝スクロールリベール対象が初期表示に入らず、チラつきを防ぐ */
  min-height: calc(100svh - 88px);
}
.hero-tr-copy { max-width: 560px; }
.hero-tr h1 {
  margin: 0 0 20px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}
.hero-tr .sub {
  margin: 0 0 30px;
  color: var(--ink-2);
  font-size: clamp(15.5px, 1.7vw, 18px);
  line-height: 1.72;
  max-width: 52ch;
}
.hero-tr .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}
.hero-note {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}

/* ベータ版・実証実験中の注記（前提を上部で静かに伝える。ピル/発光ドットは使わない） */
.beta-badge {
  display: inline-block;
  margin: 0 0 22px;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.beta-badge b { color: var(--ink); font-weight: 700; }

/* ヒーローの呼びかけ（アイキャッチ）を少しだけ強める */
.hero-tr-copy .eyebrow { font-size: 14px; color: var(--accent-bright); }

/* ヒーローの数字チップ */
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(18px, 4vw, 40px);
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--hairline);
}
.stat { min-width: 92px; }
.stat .num {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat .num .yen { font-size: 0.62em; font-weight: 700; margin-right: 1px; }
.stat .num .grad {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.stat .cap { margin-top: 6px; font-size: 12.5px; color: var(--ink-3); }

/* ヒーローのデバイス群 */
.hero-devices {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(10px, 2vw, 18px);
  min-height: 1px;
}
.hero-devices .device--phone { width: clamp(150px, 20vw, 214px); }
.hero-devices .device.back {
  transform: translateY(18px) scale(0.9);
  opacity: 0.72;
}
@media (max-width: 900px) {
  .hero-tr { grid-template-columns: 1fr; gap: 40px; }
  .hero-tr-copy { max-width: none; }
  .hero-devices .device.back { display: none; }
  .hero-devices .device--phone { width: min(58vw, 230px); }
}

/* ============================================================
   デバイス・モックアップ（画像は後差し）
   実画像を入れるときは .device-screen の中身を
   <img class="device-shot" src="/assets/trainer/xxx.jpg" alt="..."> に差し替える。
   スケルトンは画像が入るまでの体裁。
   ============================================================ */
.device {
  flex: none;
  border-radius: 26px;
  padding: 5px;
  background: linear-gradient(150deg, #2b2e37, #101116 62%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45), 0 26px 50px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.device--phone {
  width: 240px;
  aspect-ratio: 9 / 19.5;
  border-radius: 30px;
}
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, #14161d, #0d0e12);
  display: flex;
  flex-direction: column;
}
.device-shot { width: 100%; height: 100%; object-fit: cover; display: block; }

/* --- 画面スケルトン（プレースホルダ） --- */
.sk { display: flex; flex-direction: column; height: 100%; }
.sk-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px 6px;
  font-size: 10px;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.sk-status .dots { display: inline-flex; gap: 3px; }
.sk-status .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.sk-head {
  padding: 6px 16px 14px;
  border-bottom: 1px solid var(--hairline);
}
.sk-ey { font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-bright); font-weight: 700; }
.sk-title { margin-top: 5px; font-size: 15px; font-weight: 800; color: var(--ink); letter-spacing: -0.01em; }
.sk-body { flex: 1; padding: 13px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }

.sk-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 11px 12px;
}
.sk-row { display: flex; align-items: center; gap: 10px; }
.sk-av {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, #2a2e38, #191c22);
  flex: none; border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--ink-2);
}
.sk-lines { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
/* モックアップ内の実サンプルテキスト（実UIに寄せる） */
.sk-nm { font-size: 10.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.sk-mt { font-size: 8.5px; color: var(--ink-3); line-height: 1.25; }
.sk-ex { font-size: 10.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.sk-scope { font-size: 10px; color: var(--ink); line-height: 1.3; }
.sk-msg { font-size: 8.8px; line-height: 1.5; color: var(--ink-2); }
.sk-card .sk-msg.out { color: var(--ink); }
.sk-ln { height: 7px; border-radius: 4px; background: var(--surface-raised); }
.sk-ln.w-70 { width: 70%; }
.sk-ln.w-50 { width: 50%; }
.sk-ln.w-40 { width: 40%; }
.sk-ln.w-90 { width: 90%; }
.sk-badge {
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-bright);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sk-chip {
  align-self: flex-start;
  font-size: 9px;
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid var(--glass-stroke);
  color: var(--ink-2);
  background: var(--glass);
}
/* 大きな数字ヒーロー（進捗系スケルトン用） */
.sk-metric { display: flex; align-items: baseline; gap: 8px; }
.sk-metric .big {
  font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.sk-metric .unit { font-size: 12px; color: var(--ink-3); }
.sk-metric .delta { font-size: 11px; color: var(--accent-bright); font-weight: 700; }
/* 簡易バーチャート */
.sk-bars { display: flex; align-items: flex-end; gap: 6px; height: 46px; }
.sk-bars i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--accent), var(--accent-deep)); opacity: 0.85; }
.sk-bars i:nth-child(odd) { background: var(--surface-raised); }
/* リング */
.sk-ring {
  width: 58px; height: 58px; border-radius: 50%;
  background: conic-gradient(var(--accent) 0 68%, var(--surface-raised) 68% 100%);
  display: grid; place-items: center; flex: none;
}
.sk-ring::after { content: ""; width: 42px; height: 42px; border-radius: 50%; background: var(--surface); }
/* プレースホルダ・キャプション（このスロットに入る実画面名） */
.shot-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  background: rgba(14, 15, 19, 0.7);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  padding: 3px 9px;
  backdrop-filter: blur(6px);
}

/* ============================================================
   共感セクション（PC向け・2カラム エディトリアル）
   左＝大きな見出し（「フェードアウト」が実際に薄れて消える）／右＝解説
   ============================================================ */
.empathy2 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.empathy2 .e2-q {
  margin: 0 0 22px;
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.empathy2-big {
  margin: 0;
  font-size: clamp(31px, 4.8vw, 62px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--ink);
}
.empathy2-big .fade {
  background: linear-gradient(100deg, var(--ink-2) 0%, var(--ink-3) 42%, rgba(139, 145, 160, 0.1) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* 右カラム＝クライアントの本音（圧縮版） */
.empathy2-voices { max-width: 46ch; }
.e2-vlabel {
  margin: 0 0 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
}
.mini-voices { list-style: none; margin: 0; padding: 0; }
.mv { padding: 18px 0; border-top: 1px solid var(--border); }
.mv:last-child { border-bottom: 1px solid var(--border); }
.mv-q {
  margin: 0 0 9px;
  padding-left: 15px;
  position: relative;
  font-size: clamp(14.5px, 1.5vw, 16px);
  line-height: 1.7;
  font-weight: 600;
  color: var(--ink);
}
.mv-q::before {
  content: "";
  position: absolute;
  left: 0; top: 5px; bottom: 5px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-deep));
}
.mv-a { margin: 0; padding-left: 15px; font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.mv-tag {
  display: inline-block;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.05em;
  color: #17130a;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  padding: 2px 8px; border-radius: 20px; margin-right: 8px;
  transform: translateY(-1px);
}
@media (max-width: 860px) {
  .empathy2 { grid-template-columns: 1fr; gap: 26px; }
  .empathy2-voices { max-width: none; }
}

/* ============================================================
   課題 → 機能（対応表・クリックで該当機能へ）
   ============================================================ */
.p2f {
  max-width: 900px;
  margin: clamp(30px, 4vw, 46px) 0 0;
  border-top: 1px solid var(--border);
}
.p2f-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) auto minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(14px, 2.4vw, 30px);
  padding: 20px 4px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: background 0.16s ease, padding-left 0.16s ease;
}
.p2f-row:hover,
.p2f-row:focus-visible {
  background: rgba(255, 255, 255, 0.03);
  padding-left: 12px;
  outline: none;
}
/* 課題側＝「これまで」。解決側との差は真鍮ラインで出し、文字は可読性を確保する */
.p2f-pain { font-size: clamp(13.5px, 1.45vw, 15px); line-height: 1.65; color: var(--ink-2); }
.p2f-lab {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--ink-2);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 1px 7px;
  margin-right: 10px;
  transform: translateY(-1px);
  white-space: nowrap;
}
.p2f-arrow { color: var(--accent); font-size: 15px; }
/* 解決側＝真鍮のラインで区切り、明度を上げて「FitBeat なら」を際立たせる */
.p2f-sol {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.p2f-feat {
  font-size: clamp(15px, 1.6vw, 16.5px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent-bright);
}
.p2f-desc { font-size: 12.5px; line-height: 1.65; color: var(--ink); }
.p2f-row:hover .p2f-sol,
.p2f-row:focus-visible .p2f-sol { border-left-color: var(--accent-bright); }
@media (max-width: 700px) {
  .p2f-row { grid-template-columns: 1fr; gap: 12px; padding: 20px 4px; }
  .p2f-arrow { display: none; }
}

/* ============================================================
   機能カード（モックアップ＋機能名＋アプリ上の流れ）6枚グリッド
   ============================================================ */
.fgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
  margin-top: clamp(34px, 5vw, 52px);
}
.fcard {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(22, 24, 31, 0.6));
  padding: clamp(24px, 2.6vw, 32px) clamp(20px, 2.2vw, 26px) clamp(24px, 2.6vw, 30px);
  display: flex;
  flex-direction: column;
}
.fcard-media {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(22px, 2.6vw, 28px);
}
.fcard-media .device--phone { width: clamp(152px, 15vw, 184px); }
.fcard-title {
  margin: 0 0 10px;
  font-size: clamp(17px, 1.9vw, 20px);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.fcard-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--ink-2);
}
@media (max-width: 900px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .fgrid { grid-template-columns: 1fr; }
  .fcard-media .device--phone { width: 172px; }
}

/* ============================================================
   機能ショーケース（画像 ⇄ テキストの交互）— 予備（現行未使用）
   ============================================================ */
.feats { display: flex; flex-direction: column; gap: clamp(48px, 8vw, 96px); margin-top: 52px; }
.feat {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
}
.feat:nth-child(even) .feat-media { order: 2; }
.feat-num {
  font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent-bright); margin: 0 0 14px; font-variant-numeric: tabular-nums;
}
.feat h3 {
  margin: 0 0 14px;
  font-size: clamp(21px, 2.6vw, 29px);
  line-height: 1.34;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}
.feat p {
  margin: 0 0 18px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.78;
  max-width: 46ch;
}
.feat ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 11px; }
.feat li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.6;
}
.feat li b { color: var(--ink); font-weight: 700; }
.feat li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
}
.feat-media { display: flex; justify-content: center; align-items: center; }
.feat-media .device--phone { width: clamp(210px, 26vw, 268px); }
@media (max-width: 860px) {
  .feat { grid-template-columns: 1fr; gap: 26px; }
  .feat:nth-child(even) .feat-media { order: 0; }
  .feat-media { order: 0; }
}

/* ============================================================
   料金
   ============================================================ */
.pricing-free {
  text-align: center;
  margin: 40px auto 0;
  max-width: 640px;
  padding: 22px 26px;
  border: 1px solid rgba(199, 161, 74, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(199, 161, 74, 0.07), rgba(22, 24, 31, 0.5));
}
.pricing-free .l1 { font-size: clamp(19px, 2.4vw, 25px); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.pricing-free .l1 .grad {
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-deep));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-free .l2 { margin: 10px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.7; }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.6vw, 18px);
  margin-top: 34px;
  align-items: stretch;
}
.plan {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 22px 24px;
  display: flex;
  flex-direction: column;
}
.plan.feat-plan {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(199, 161, 74, 0.08), var(--surface) 60%);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}
.plan .tag {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #17130a;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent), var(--accent-deep));
  padding: 4px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.plan .name { font-size: 16px; font-weight: 800; letter-spacing: 0.01em; color: var(--ink); margin: 0 0 4px; }

/* プランバッジ — アプリ実装（04-app/.../widgets/plan_badge.dart）と同一の配色に揃える。
   Free＝控えめ／Pro＝真鍮／Elite＝翠（黄みを排したエメラルド）。 */
.plan-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.plan-badge--free {
  color: #8a91a0;              /* AppColors.inkSecondary */
  background: #1e212a;         /* AppColors.surfaceRaised */
  border: 1px solid #272b36;   /* AppColors.border */
}
.plan-badge--pro {
  color: #0e0f13;              /* AppColors.background */
  background: linear-gradient(135deg, #e6c871, #c7a14a, #9c7a2e); /* accentGradient */
}
.plan-badge--elite {
  color: #0e0f13;              /* AppColors.background */
  background: linear-gradient(135deg, #6ee7b7, #34d399, #059669); /* Elite: エメラルド */
}
.plan .cap { font-size: 12.5px; color: var(--ink-3); margin: 0 0 18px; }
.plan .price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 4px;
}
.plan .price .yen { font-size: 18px; font-weight: 700; }
.plan .price .amt { font-size: clamp(30px, 3.4vw, 40px); font-weight: 800; }
.plan .price .per { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.plan .price .amt.small { font-size: 24px; }
.plan .price-sub { font-size: 12px; color: var(--ink-2); margin: 0 0 20px; min-height: 16px; }
/* ベータ価格の強調（定価に取り消し線） */
.plan .price-was {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink-3);
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  margin-right: 10px;
  letter-spacing: -0.01em;
}
.plan .price-was .yen { font-size: 13px; font-weight: 600; }
.beta-pill {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #17130a;
  background: linear-gradient(135deg, var(--accent-bright), var(--accent-deep));
  padding: 2px 8px;
  border-radius: 20px;
  margin-right: 8px;
  transform: translateY(-1px);
}
.plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 22px; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.plan li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 11px; height: 6px;
  border-left: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: rotate(-45deg);
}
.plan .btn { width: 100%; }
.plan .btn--soft {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--ink);
}
.plan .btn--soft:hover { border-color: rgba(236, 238, 242, 0.28); }

.pricing-foot {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: center;
  font-size: 12.5px;
  color: var(--ink-3);
}
.pricing-foot span { display: inline-flex; align-items: center; gap: 7px; }
.pricing-foot span::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex: none;
}
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; gap: 12px; }
  .plan .tag { font-size: 10px; }
}

/* ============================================================
   FAQ（ネイティブ accordion）
   ============================================================ */
.faq { max-width: 760px; margin: 40px auto 0; }
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 2px;
  position: relative;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 27px;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--ink-3);
  border-bottom: 2px solid var(--ink-3);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details[open] summary { color: var(--accent-bright); }
.faq .ans {
  padding: 0 40px 22px 2px;
  margin: 0;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.8;
}
.faq .ans a { color: var(--accent-bright); text-decoration: none; border-bottom: 1px solid rgba(230, 200, 113, 0.32); }

/* ============================================================
   最終 CTA
   ============================================================ */
.cta {
  text-align: center;
  border: 1px solid var(--glass-stroke);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(180deg, var(--glass-strong), var(--glass));
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 60px);
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(236, 238, 242, 0.22), transparent);
}
.cta h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--ink);
}
.cta p { margin: 0 auto 30px; max-width: 48ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
.cta .cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.cta .mail-note { margin: 22px 0 0; font-size: 13px; color: var(--ink-3); }
.cta .mail-note a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid var(--hairline); }
.cta .mail-note a:hover { color: var(--ink); }

/* ============================================================
   フッター
   ============================================================ */
.tr-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 56px) 50px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  align-items: center;
  font-size: 13.5px;
  color: var(--ink-3);
  border-top: 1px solid var(--hairline);
}
.tr-footer a { color: var(--ink-2); text-decoration: none; }
.tr-footer a:hover { color: var(--ink); }
.tr-footer .spacer { flex: 1; }

/* ============================================================
   申し込みフォーム（Netlify Forms）
   ============================================================ */
.apply { text-align: left; }
.apply h2 { text-align: center; }
.apply > p { text-align: center; margin: 0 auto 34px; max-width: 48ch; color: var(--ink-2); font-size: 15.5px; line-height: 1.75; }
/* 開閉トグル（畳めるフォーム）— ゴースト調のバー。開くと「閉じる」に */
.lf-details { max-width: 640px; margin: 0 auto; }
.lf-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 15px 24px;
  border-radius: 13px;
  background: var(--glass);
  border: 1px solid var(--glass-stroke);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: border-color 0.18s ease, background 0.18s ease;
}
.lf-summary:hover { border-color: rgba(236, 238, 242, 0.3); background: var(--glass-strong); }
.lf-summary::-webkit-details-marker { display: none; }
.lf-summary::after {
  content: "";
  width: 9px; height: 9px;
  border-right: 2px solid var(--accent-bright);
  border-bottom: 2px solid var(--accent-bright);
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.22s ease;
}
.lf-details[open] .lf-summary::after { transform: translateY(2px) rotate(-135deg); }
.lf-summary .s-open { display: none; }
.lf-details[open] .lf-summary .s-closed { display: none; }
.lf-details[open] .lf-summary .s-open { display: inline; }

.lead-form { max-width: 640px; margin: 22px auto 0; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.field .req { color: var(--accent-bright); font-size: 11px; font-weight: 800; margin-left: 5px; }
.field .opt { color: var(--ink-3); font-size: 11px; font-weight: 600; margin-left: 5px; }
.field input,
.field select,
.field textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px; /* iOS のフォーカス時ズームを防ぐため 16px 以上 */
  line-height: 1.5;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--ink-3); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface-raised);
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%238A91A0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 88px; }
.lf-submit { width: 100%; margin-top: 24px; }
.lf-status { text-align: center; margin: 14px 0 0; font-size: 13.5px; line-height: 1.6; }
.lf-status.err { color: var(--coral); }
.lf-note { text-align: center; font-size: 12px; color: var(--ink-3); margin: 12px 0 0; }
.lf-note a { color: var(--ink-2); text-decoration: underline; }
.lf-done { text-align: center; padding: 24px 0 8px; }
.lf-done-h { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 0 0 8px; }
.lf-done p { color: var(--ink-2); margin: 0; font-size: 15px; }
@media (max-width: 560px) { .lf-grid { grid-template-columns: 1fr; } }

/* ============================================================
   常駐する応募 CTA（画面下に Stick）
   既定は非表示。JS が .show を付けたときだけせり上がる。
   ============================================================ */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  padding: 12px clamp(16px, 4vw, 28px) calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(14, 15, 19, 0.82);
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  border-top: 1px solid var(--hairline);
  transform: translateY(115%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s ease;
}
.sticky-cta.show {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta-in {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.sticky-cta-txt {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.5;
}
.sticky-cta-txt b { color: var(--ink); font-weight: 700; }
.sticky-cta-txt .sep { color: var(--border); margin: 0 8px; }
.sticky-cta-btn { padding: 12px 26px; font-size: 14.5px; white-space: nowrap; flex: none; }
@media (max-width: 640px) {
  .sticky-cta-in { gap: 12px; }
  .sticky-cta-txt { font-size: 12px; }
  .sticky-cta-txt .sep, .sticky-cta-txt br { display: none; }
  .sticky-cta-btn { padding: 12px 20px; font-size: 14px; }
}
@media (max-width: 420px) {
  /* 極小画面は文言を落として、ボタンを全幅で確実に押せるようにする */
  .sticky-cta-txt { display: none; }
  .sticky-cta-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sticky-cta { transition: opacity 0.2s ease; transform: none; }
}

/* ============================================================
   スクロールリベール（Apple 風）＋ アンカーのスムーススクロール
   .reveal は JS が付与（＝JS 無効時は常に表示。reduce-motion 時も無効）
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in {
    opacity: 1;
    transform: none;
  }
}
