/* Forepause LP — C2 Cobalt Coral（アプリ DS の Web 翻訳）
   cobalt は操作、coral は達成、ink / stone は情報の強弱にだけ使う。 */

:root {
  /* BrandPalette.swift の Light トークンが唯一の値定義。 */
  --fp-canvas: #F7F8FC;
  --fp-canvas-subtle: color-mix(in srgb, var(--fp-canvas) 94%, var(--fp-stone));
  --fp-card: #FFFFFF;
  --fp-ink: #0F2761;
  --fp-stone: #5B6B8C;
  --fp-accent: #285ED8;
  --fp-accent-ink: #F7F8FC;
  --fp-coral: #FF735D;
  --fp-coral-ink: #0F2761;

  /* 既存コンポーネントと比較ページの役割名。値は fp トークンへ集約する。 */
  --paper: var(--fp-canvas); --paper-deep: var(--fp-canvas-subtle); --card: var(--fp-card);
  --ink: var(--fp-ink); --stone: var(--fp-stone);
  --accent: var(--fp-accent); --accent-deep: var(--fp-ink);
  --accent-ink: var(--fp-accent-ink); --coral: var(--fp-coral); --coral-ink: var(--fp-coral-ink);
  --serif: "Instrument Sans", -apple-system, sans-serif; /* serif 廃止: 変数は互換のため残し sans を指す */
  --sans: "Instrument Sans", -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

/* 紙の質感（ごく薄いノイズ） */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1000;
  opacity: .035;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.01em; }
em { font-family: var(--serif); font-style: italic; }
a { color: inherit; }

/* ============ Header ============ */
.site-header {
  display: flex; align-items: center; gap: 2.2rem;
  padding: 1.4rem clamp(1.2rem, 5vw, 4rem);
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
}
.wordmark {
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem;
  text-decoration: none; letter-spacing: -0.01em;
}
.site-header nav { display: flex; gap: 1.6rem; margin-left: auto; }
.site-header nav a, .header-cta {
  font-size: .92rem; text-decoration: none; color: var(--stone);
  transition: color .2s;
  white-space: nowrap;
}
.site-header nav a:hover { color: var(--ink); }
.header-cta {
  color: var(--accent); font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 99px; padding: .45rem 1.1rem;
  transition: background .2s, color .2s;
}
.header-cta:hover { background: var(--accent); color: var(--paper); }
@media (max-width: 820px) { .site-header nav { display: none; } .header-cta { margin-left: auto; } }

/* ============ Hero ============ */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 2rem;
  padding: clamp(3rem, 9vh, 7rem) clamp(1.2rem, 5vw, 4rem) clamp(4rem, 10vh, 8rem);
  max-width: 1200px; margin: 0 auto;
}
.eyebrow {
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--stone); font-weight: 600; margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 6.4rem);
  font-weight: 600;
}
.lede {
  margin: 1.8rem 0 2.4rem; max-width: 30rem;
  font-size: 1.12rem; color: var(--stone);
}
.lede em { color: var(--ink); }
.cta-row { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.btn-primary {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: var(--accent-ink);
  font-weight: 600; font-size: 1.02rem;
  padding: .95rem 2.2rem; border-radius: 99px;
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--accent) 80%, transparent); }
.cta-note { font-size: .85rem; color: var(--stone); }
@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-inline: auto; }
  .cta-row { align-items: center; }
  .hero-visual { order: -1; }
}

/* ============ クイズカード（hero visual） ============ */
.quiz-card-mock { background: var(--card); border-radius: 16px; padding: 28px 24px;
  max-width: 340px; box-shadow: 0 1px 3px color-mix(in srgb, var(--ink) 7%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--ink) 25%, transparent); }
.qc-kicker { color: var(--stone); font-size: .85rem; font-weight: 600; margin-bottom: 10px; }
.qc-question { font-weight: 700; line-height: 1.7; margin-bottom: 16px; }
.qc-choice { border-radius: 12px; padding: 12px 14px; background: var(--paper);
  font-size: .9rem; margin-bottom: 8px; }
.qc-selected { background: var(--coral); color: var(--coral-ink); font-weight: 700; }

/* ============ Evidence ============ */
.evidence {
  max-width: 1000px; margin: 0 auto;
  padding: clamp(3rem, 8vh, 6rem) clamp(1.2rem, 5vw, 4rem);
  display: grid; grid-template-columns: auto 1fr; gap: 3rem; align-items: center;
  border-top: 1px solid color-mix(in srgb, var(--stone) 22%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--stone) 22%, transparent);
}
.stat-num {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(5rem, 12vw, 9rem); color: var(--accent);
  line-height: 1; letter-spacing: -0.03em;
}
.stat-num .pct { font-size: .45em; }
.stat-copy { color: var(--stone); max-width: 34rem; font-size: 1.05rem; }
.source {
  display: inline-block; margin-top: .6rem; font-size: .85rem;
  color: var(--stone); text-decoration: none; font-weight: 600;
}
.source:hover { text-decoration: underline; }
@media (max-width: 700px) { .evidence { grid-template-columns: 1fr; gap: 1rem; text-align: center; } .stat-copy { margin: 0 auto; } }

/* ============ How ============ */
.how { max-width: 1100px; margin: 0 auto; padding: clamp(4rem, 10vh, 8rem) clamp(1.2rem, 5vw, 4rem); }
.how h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 3.4rem; }
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.steps li {
  background: var(--card); border-radius: 20px; padding: 2rem 1.7rem;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--stone) 14%, transparent);
}
.steps li:nth-child(2) { transform: translateY(1.4rem); }
.step-no {
  font-family: var(--serif); font-style: italic; font-size: 1rem; color: var(--accent);
  display: block; margin-bottom: 1.2rem; letter-spacing: .05em;
}
.steps h3 { font-size: 1.3rem; margin-bottom: .7rem; }
.steps p { color: var(--stone); font-size: .98rem; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(2) { transform: none; }
}

/* ============ Philosophy（ダーク反転） ============ */
.philosophy {
  background: var(--accent);
  color: var(--paper);
  display: grid; grid-template-columns: .85fr 1.15fr;
  gap: clamp(2rem, 6vw, 5rem); align-items: center;
  padding: clamp(4rem, 12vh, 9rem) clamp(1.2rem, 6vw, 5rem);
}
.philosophy-text h2 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); margin-bottom: 1.6rem; }
.philosophy-text p { color: color-mix(in srgb, var(--paper) 78%, transparent); max-width: 36rem; margin-bottom: 1.2rem; }
.philosophy-text strong { color: var(--paper); }
.phil-quote {
  font-family: var(--serif); font-style: italic;
  font-size: 1.35rem; line-height: 1.4;
  color: var(--paper) !important;
  border-left: 2px solid var(--paper);
  padding-left: 1.2rem; margin-top: 2rem;
}
/* CSS だけで描く shield 画面 */
.phone {
  justify-self: center;
  width: min(290px, 78vw); aspect-ratio: 290 / 600;
  border-radius: 44px;
  background: var(--accent-deep);
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  box-shadow: 0 40px 80px -30px color-mix(in srgb, var(--ink) 50%, transparent), inset 0 0 0 7px color-mix(in srgb, var(--ink) 25%, transparent);
  padding: 14px; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 99px; background: color-mix(in srgb, var(--ink) 45%, transparent);
}
.phone-screen {
  height: 100%; border-radius: 32px;
  background: var(--paper);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 1.6rem 1.3rem; gap: .65rem;
}
.shield-icon {
  width: 84px; height: 84px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  display: grid; place-items: center; margin-bottom: .6rem;
}
.shield-icon svg { width: 36px; color: var(--accent); }
.shield-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; color: var(--ink); }
.shield-sub { font-size: .8rem; color: var(--stone); margin-bottom: 1.6rem; }
.shield-btn {
  background: var(--accent); color: var(--accent-ink); font-weight: 600;
  font-size: .92rem; border-radius: 99px; padding: .7rem 0; width: 100%;
}
.shield-link { font-size: .85rem; color: var(--stone); }
@media (max-width: 820px) { .philosophy { grid-template-columns: 1fr; } .phone { order: 2; } }

/* ============ Insights ============ */
.insights {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 11vh, 8rem) clamp(1.2rem, 5vw, 4rem);
}
.insights h2 { font-size: clamp(2rem, 5vw, 3.2rem); margin-bottom: 1.4rem; }
.insights p { color: var(--stone); max-width: 30rem; }
.heatmap-card {
  background: var(--card); border-radius: 20px; padding: 1.6rem;
  box-shadow: 0 24px 60px -36px color-mix(in srgb, var(--accent) 50%, transparent);
}
.hm-title { font-weight: 600; font-size: .95rem; margin-bottom: 1rem; }
.heatmap { display: grid; grid-template-columns: 3rem repeat(7, 1fr); gap: 4px; }
.hm-label { font-size: .68rem; color: var(--stone); text-align: center; align-self: center; }
.hm-label.row { text-align: right; padding-right: .35rem; }
.hm-cell {
  aspect-ratio: 1.6; border-radius: 5px;
  background: color-mix(in srgb, var(--accent) calc(var(--v) * 100%), var(--paper-deep));
}
.hm-note { font-size: .72rem; color: var(--stone); margin-top: .9rem; text-align: center; }
@media (max-width: 820px) { .insights { grid-template-columns: 1fr; } }

/* ============ Privacy ============ */
.privacy {
  background: var(--paper-deep);
  padding: clamp(4rem, 11vh, 8rem) clamp(1.2rem, 5vw, 4rem);
  text-align: center;
}
.privacy h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
.privacy-lede { color: var(--stone); max-width: 36rem; margin: 1.2rem auto 3rem; }
.privacy-grid {
  list-style: none; max-width: 880px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; text-align: left;
}
.privacy-grid li {
  background: var(--card); border-radius: 16px; padding: 1.4rem 1.6rem;
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
}
.privacy-grid li span {
  display: block; font-family: var(--sans); font-weight: 400;
  font-size: .9rem; color: var(--stone); margin-top: .3rem;
}
@media (max-width: 640px) { .privacy-grid { grid-template-columns: 1fr; } }

/* ============ FAQ ============ */
.faq {
  background: var(--fp-canvas);
  padding: clamp(4rem, 11vh, 8rem) clamp(1.2rem, 5vw, 4rem);
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--fp-stone) 22%, transparent);
}
.faq h2 { font-size: clamp(2rem, 5vw, 3.4rem); }
@media (max-width: 640px) {
  .faq h2 { font-size: 1.55rem; letter-spacing: 0; }
}
.faq-lede {
  color: var(--fp-stone);
  max-width: 36rem;
  margin: 1.2rem auto 3rem;
}
.perm-sheet {
  background: var(--fp-card);
  border-radius: 16px;
  padding: 28px 24px;
  max-width: 340px;
  margin: 0 auto 2.4rem;
  text-align: left;
  box-shadow: 0 1px 3px color-mix(in srgb, var(--fp-ink) 7%, transparent),
    0 24px 60px -24px color-mix(in srgb, var(--fp-ink) 25%, transparent);
}
.perm-kicker {
  color: var(--fp-stone);
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.perm-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
  margin-bottom: .6rem;
}
.perm-body {
  color: var(--fp-stone);
  font-size: .95rem;
}
.perm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.perm-deny { color: var(--fp-stone); font-size: .92rem; }
.perm-allow { color: var(--fp-ink); font-weight: 600; font-size: .92rem; }
.faq-list {
  max-width: 44rem;
  margin: 0 auto;
  text-align: left;
}
.faq-item dt {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 1.6rem 0 .4rem;
}
.faq-item dd { color: var(--fp-stone); margin: 0; }
.faq-privacy-link { margin-top: 2.4rem; font-size: .95rem; }
.faq-privacy-link a { color: var(--fp-ink); font-weight: 600; }

/* ============ Pricing ============ */
.pricing { max-width: 1100px; margin: 0 auto; padding: clamp(4rem, 11vh, 8rem) clamp(1.2rem, 5vw, 4rem); text-align: center; }
.pricing h2 { font-size: clamp(2rem, 5vw, 3.2rem); }
.pricing-lede { color: var(--stone); max-width: 36rem; margin: 1.2rem auto 3rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.plan {
  background: var(--card); border-radius: 20px; padding: 2rem 1.7rem; text-align: left;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--stone) 14%, transparent);
}
.plan.featured { outline: 2px solid var(--accent); position: relative; }
.plan h3 { font-size: 1.1rem; margin-bottom: 1rem; }
.price { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; letter-spacing: -0.02em; }
.price span { font-size: 1rem; font-family: var(--sans); color: var(--stone); font-weight: 400; margin-left: .3rem; }
.trial {
  display: inline-block; font-size: .78rem; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 99px; padding: .2rem .7rem; margin-top: .5rem;
}
.plan ul { list-style: none; margin-top: 1.3rem; }
.plan li { font-size: .95rem; color: var(--stone); padding: .32rem 0 .32rem 1.4rem; position: relative; }
.plan li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.compare-note { font-size: .82rem; color: var(--stone); margin-top: 2.4rem; max-width: 38rem; margin-inline: auto; }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } }

/* ============ Final CTA ============ */
.final-cta {
  text-align: center;
  padding: clamp(4rem, 12vh, 9rem) clamp(1.2rem, 5vw, 4rem) clamp(5rem, 13vh, 10rem);
  display: flex; flex-direction: column; align-items: center;
}
.final-cta h2 { font-size: clamp(2.2rem, 6vw, 4rem); margin-bottom: 2.2rem; }
.final-cta .cta-note { margin-top: 1rem; }

/* ============ Footer ============ */
.site-footer {
  background: var(--accent); color: color-mix(in srgb, var(--paper) 75%, transparent);
  padding: 3rem clamp(1.2rem, 5vw, 4rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
}
.site-footer .wordmark { color: var(--paper); }
.site-footer nav { display: flex; gap: 1.5rem; margin-left: auto; }
.site-footer a { color: inherit; font-size: .88rem; text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.lang-nav {
  width: 100%; margin-left: 0 !important;
  flex-wrap: wrap; gap: 1.1rem !important;
  padding-top: 1.2rem;
  border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent);
}
.lang-nav a { font-size: .82rem; opacity: .85; }
.copyright { width: 100%; font-size: .78rem; opacity: .7; }

/* ============ Reveal ============ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
