/* Forepause LP — 静けさのミニマリズム（アプリ DS の Web 翻訳）
   Warm Paper を地に、Deep Moss を芯に、Amber は CTA 1 箇所だけ。 */

:root {
  --paper: #F7F4EE;
  --paper-deep: #EFEAE0;
  --card: #FFFFFF;
  --ink: #1F2421;
  --stone: #6B7670;
  --moss: #2D4A3E;
  --moss-deep: #233B31;
  --amber: #D9A05B;
  --teal: #4E8C7B;
  --serif: "Fraunces", Georgia, serif;
  --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;
}
.site-header nav a:hover { color: var(--ink); }
.header-cta {
  color: var(--moss); font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--moss) 35%, transparent);
  border-radius: 99px; padding: .45rem 1.1rem;
  transition: background .2s, color .2s;
}
.header-cta:hover { background: var(--moss); color: var(--paper); }
@media (max-width: 640px) { .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(--teal); 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(--amber); color: var(--moss);
  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(--amber) 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(--amber) 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; }
}

/* ============ 呼吸する円 ============ */
.breath-stage {
  position: relative; width: min(360px, 70vw); aspect-ratio: 1;
  margin: 0 auto; display: grid; place-items: center;
}
.breath-stage.small { width: 140px; margin-bottom: 2rem; }
.breath-ring, .breath-circle { position: absolute; border-radius: 50%; }
.breath-ring.r3 { inset: 0; background: color-mix(in srgb, var(--moss) 6%, transparent); animation: breathe 8s ease-in-out infinite; }
.breath-ring.r2 { inset: 11%; background: color-mix(in srgb, var(--moss) 10%, transparent); animation: breathe 8s ease-in-out infinite .25s; }
.breath-circle {
  inset: 24%; background: color-mix(in srgb, var(--moss) 82%, var(--teal));
  display: grid; place-items: center;
  animation: breathe 8s ease-in-out infinite .5s;
}
.breath-circle .wind { width: 34%; color: var(--paper); opacity: .9; }
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.09); }
}
.breath-label {
  position: absolute; bottom: -2.6rem; width: 100%;
  text-align: center; font-size: .82rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--stone);
}
.breath-label span { position: absolute; left: 0; right: 0; }
.breath-label .in  { animation: labelIn 8s ease-in-out infinite; }
.breath-label .out { animation: labelOut 8s ease-in-out infinite; }
@keyframes labelIn  { 0%, 45% { opacity: 1; } 55%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes labelOut { 0%, 45% { opacity: 0; } 55%, 95% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .breath-ring, .breath-circle, .breath-label span { animation: none !important; }
  .breath-label .out { opacity: 0; }
}

/* ============ 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(--teal);
  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(--teal); 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(--amber);
  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(--moss);
  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(--amber);
  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(--moss-deep);
  border: 1px solid color-mix(in srgb, var(--paper) 18%, transparent);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.5), inset 0 0 0 7px rgba(0,0,0,.25);
  padding: 14px; position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; border-radius: 99px; background: rgba(0,0,0,.45);
}
.phone-screen {
  height: 100%; border-radius: 32px;
  background: linear-gradient(170deg, #34543F 0%, var(--moss) 55%, #27413A 100%);
  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(--paper) 10%, transparent);
  display: grid; place-items: center; margin-bottom: .6rem;
}
.shield-icon svg { width: 36px; color: var(--paper); }
.shield-title { font-family: var(--serif); font-size: 1.25rem; font-weight: 500; }
.shield-sub { font-size: .8rem; color: color-mix(in srgb, var(--paper) 70%, transparent); margin-bottom: 1.6rem; }
.shield-btn {
  background: var(--amber); color: var(--moss); font-weight: 600;
  font-size: .92rem; border-radius: 99px; padding: .7rem 0; width: 100%;
}
.shield-link { font-size: .85rem; color: color-mix(in srgb, var(--paper) 85%, transparent); }
@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(--moss) 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(--teal) 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; } }

/* ============ 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(--teal); 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(--teal);
  background: color-mix(in srgb, var(--teal) 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(--amber); }
.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(--moss); 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; } }
