/* AmbientPal LP — 「夜のネイビーとドットの灯り」(Hero A 採用案)
   構成: 夜(Hero+問いかけ) → 昼(コンテンツ) → 夜(クロージング+フッター)
   出典トークン: lib/core/theme/app_colors.dart / docs/lp-brand-tokens.html
   ※ terms/privacy は従来の style.css を使う。本ファイルは LP 専用 */

:root {
  --navy: #111D27;
  --navy-card: #1E3048;
  --primary: #1B5C82;
  --primary-light: #8ECAE6;
  --icon-fg: #7AACC8;
  --on-navy: #E3EDF8;
  --on-navy-sub: #9FB6C8;
  --surface: #F5F8FC;
  --surface-hi: #DDE7F0;
  --on-surface: #111D27;
  --on-variant: #3E5060;
  --card: #FFFFFF;
  --card-border: #DDE7F0;
  --positive: #4CAF8A;
  --neutral: #90A4AE;
  --negative: #E07060;
  --radius: 18px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Hiragino Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--surface);
  color: var(--on-surface);
  line-height: 1.8;
  text-size-adjust: 100%;
}
img { max-width: 100%; }

/* ── 夜エリア共通 ── */
.night { background: var(--navy); color: var(--on-navy); position: relative; overflow: hidden; }
.night .field { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.dot {
  position: absolute; border-radius: 50%;
  background: var(--icon-fg); opacity: .55;
  box-shadow: 0 0 14px 2px rgba(122, 172, 200, .45);
  animation: glow 5s ease-in-out infinite;
}
@keyframes glow {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: .8;  transform: scale(1.25); }
}
@media (prefers-reduced-motion: reduce) {
  .dot { animation: none; opacity: .5; }
}

/* ── ヘッダー(ヒーロー上に重ねる) ── */
.site-header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px; max-width: 1080px; margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--on-navy); text-decoration: none; font-weight: 700; font-size: 16px; }
.brand .mark { width: 32px; height: 32px; border-radius: 9px; }
.lang-switch { font-size: 13px; color: var(--on-navy-sub); }
.lang-switch a { color: var(--on-navy-sub); text-decoration: none; border-bottom: 1px solid transparent; }
.lang-switch a:hover { color: var(--on-navy); border-bottom-color: var(--on-navy-sub); }
.lang-switch .current { color: var(--on-navy); font-weight: 600; }

/* ── Hero ── */
.hero { text-align: center; padding: 40px 24px 56px; }
.hero .content {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  width: 100%; max-width: 420px; margin: 0 auto;
}
.hero .logo { display: flex; align-items: center; gap: 12px; margin-top: 8px; }
.hero .logo img { width: 44px; height: 44px; border-radius: 12px; }
.hero .logo .word { font-size: 17px; font-weight: 700; letter-spacing: .02em; }
.hero .tagline {
  margin-top: 40px; font-size: 28px; line-height: 1.5; font-weight: 700;
  letter-spacing: .01em; text-wrap: pretty;
}
.hero .lead { margin-top: 18px; font-size: 15px; line-height: 1.8; color: var(--on-navy-sub); max-width: 340px; text-wrap: pretty; }
.cta-set { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-size: 16px; font-weight: 600;
  padding: 16px 32px; border-radius: 16px; border: 1px solid var(--primary-light);
  min-width: 260px; text-decoration: none; transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.12); }
.cta-note { font-size: 12px; color: var(--on-navy-sub); }
/* ── 問いかけ(夜のまま) ── */
.ask { text-align: center; padding: 8px 24px 72px; }
.ask .inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.ask .q { font-size: 20px; font-weight: 700; line-height: 1.7; text-wrap: pretty; }
.ask p:not(.q) { margin-top: 16px; font-size: 14px; color: var(--on-navy-sub); text-wrap: pretty; }

/* ── 昼エリア共通 ── */
.day { background: var(--surface); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.section { padding: 64px 0; }
.section > .container > h2 { font-size: 24px; font-weight: 700; text-align: center; letter-spacing: .01em; }
.section-note { text-align: center; color: var(--on-variant); font-size: 14px; margin-top: 8px; }

/* 3ステップ */
.steps { display: grid; gap: 16px; margin-top: 36px; }
.step {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 26px 24px;
}
.step .n {
  width: 34px; height: 34px; border-radius: 11px;
  background: var(--navy); color: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px;
}
.step h3 { margin-top: 14px; font-size: 17px; }
.step p { margin-top: 8px; font-size: 14px; color: var(--on-variant); }

/* 特徴6 */
.features { display: grid; gap: 16px; margin-top: 36px; }
.feature {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 24px;
}
.feature .fdot { width: 10px; height: 10px; border-radius: 4px; display: inline-block; }
.feature:nth-child(3n+1) .fdot { background: var(--positive); }
.feature:nth-child(3n+2) .fdot { background: var(--neutral); }
.feature:nth-child(3n)   .fdot { background: var(--negative); }
.feature h3 { margin-top: 10px; font-size: 16px; }
.feature p { margin-top: 8px; font-size: 14px; color: var(--on-variant); }

/* 料金 */
.pricing-card {
  max-width: 560px; margin: 36px auto 0; text-align: center;
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: var(--radius); padding: 36px 28px;
}
.pricing-card .free { font-size: 22px; font-weight: 700; color: var(--primary); }
.pricing-card p:not(.free) { margin-top: 12px; font-size: 14px; color: var(--on-variant); }

/* FAQ */
.faq-list { max-width: 720px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--card-border);
  border-radius: 14px; padding: 0 20px;
}
.faq-list summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 15px; padding: 18px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::before {
  content: "+"; flex: none; width: 22px; height: 22px; border-radius: 7px;
  background: var(--surface-hi); color: var(--on-surface);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; transition: transform .15s ease;
}
.faq-list details[open] summary::before { content: "−"; }
.faq-list details p { padding: 0 0 18px 34px; font-size: 14px; color: var(--on-variant); }
.faq-list details p a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* ── クロージング(夜) ── */
.closing { text-align: center; padding: 88px 24px; }
.closing .inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.closing h2 { font-size: 26px; font-weight: 700; line-height: 1.5; text-wrap: pretty; }
.closing p { margin-top: 14px; font-size: 15px; color: var(--on-navy-sub); }
.closing .cta-set { margin-top: 32px; }

/* ── フッター(夜) ── */
.site-footer {
  background: var(--navy); color: var(--on-navy-sub);
  text-align: center; padding: 36px 24px 44px;
  border-top: 1px solid rgba(122, 172, 200, .18);
}
.site-footer nav { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.site-footer a { color: var(--on-navy-sub); text-decoration: none; font-size: 13px; border-bottom: 1px solid transparent; }
.site-footer a:hover { color: var(--on-navy); border-bottom-color: var(--on-navy-sub); }
.site-footer .copy { margin-top: 16px; font-size: 12px; }

/* ── レスポンシブ ── */
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1200px) {
  .hero { padding: 72px 24px 72px; }
  .hero .content { max-width: 640px; }
  .hero .logo img { width: 56px; height: 56px; }
  .hero .logo .word { font-size: 20px; }
  .hero .tagline { font-size: 44px; margin-top: 56px; }
  .hero .lead { font-size: 18px; max-width: 480px; margin-top: 24px; }
  .btn { font-size: 18px; padding: 18px 40px; min-width: 300px; }
  .ask .q { font-size: 24px; }
  .ask p:not(.q) { font-size: 15px; }
  .section { padding: 88px 0; }
  .section > .container > h2 { font-size: 30px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .closing .inner { max-width: 760px; }
  .closing h2 { font-size: 34px; }
}

/* ── ダークモード(昼エリアを夜に寄せる。夜エリアは共通) ── */
@media (prefers-color-scheme: dark) {
  :root {
    --surface: #16222E;
    --surface-hi: #2A4264;
    --on-surface: #E3EDF8;
    --on-variant: #A8BFCC;
    --card: #1E3048;
    --card-border: #2A4264;
  }
  .step .n { background: #0B1420; }
  .pricing-card .free { color: var(--primary-light); }
  .faq-list summary::before { background: #2A4264; color: #E3EDF8; }
  .faq-list details p a { color: var(--primary-light); }
}
