/* トップLP (index.html) 専用スタイル。共通のヘッダー・フッターは site.css (先に読み込む)。
   privacy / terms / invite は style.css + site.css (このファイルは読み込まない)。
   色はアプリの AppColors (lib/core/theme/app_colors.dart) と App Store の画像 (tools/store_screenshots/copy.js の V13) にそろえる */

/* 見出しだけアプリと同じ Zen Kaku Gothic New (太字)。@font-face は site.css にある。
   見出しに使う文字だけのサブセット (python3 tools/lp_font_subset.py で作成。見出しを変えたら作り直す) */
:root {
  --bg: #FFFBF7;           /* background */
  --surface: #FFFFFF;
  --cream: #FFF3E8;        /* primaryContainer */
  --primary: #E8985E;      /* primary */
  --primary-deep: #A85A26; /* 白・クリーム背景の上の小さい文字用 (#FFF3E8 上でもコントラスト比 4.6) */
  --primary-num: #C06E32;  /* 大きい太字用 (3:1 以上。#FFFBF7 上で 3.7) */
  --text: #3D3029;
  --muted: #6E5E52;
  --outline: #E0D5CB;
  /* App Store の画像と同じ濃いオレンジ (ファーストビュー・途中と最後の CTA) */
  --orange-top: #D07D45;
  --orange-bottom: #A8551F;
  --on-orange: #FCE3CC;     /* 濃いオレンジの上の見出し (強調は白) */
  --on-orange-sub: #FBE0C8;
  --heading-font: "Zen Kaku Gothic New LP", -apple-system, BlinkMacSystemFont, "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
/* 最後の行に1〜2文字だけ残らないようにする (対応ブラウザのみ。非対応でも崩れない) */
p { text-wrap: pretty; }
a { color: var(--primary-deep); }
h1, h2, h3, .point-label {
  font-family: var(--heading-font);
  font-weight: 700;
}
.container { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
/* 見出しを語の途中で折らない (この単位の間でだけ改行する) */
.nw { display: inline-block; }
.ln { display: block; }

/* ===== 画面の絵 =====
   ストアの画像と同じ組み方 (画面・引き出し・札・指・矢印) で、見出しなし・背景透過に書き出した1枚の画像
   (tools/store_screenshots/copy.js の方向 LP・render_lp.mjs)。画面は絵の左右の真ん中にある */
.visual { width: 100%; }

/* ===== CTA (App Store の公式バッジ) ===== */
.cta-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 20px; }
/* 公式バッジ: 改変しない。高さ 48px、周囲にバッジの高さの 1/4 (12px) 以上の余白 (Apple のガイドライン) */
.badge { display: inline-block; padding: 12px; margin: -12px; line-height: 0; }
.badge img { width: auto; height: 48px; }
.cta-note { color: var(--muted); font-size: 13px; font-weight: 700; }

/* ===== ファーストビュー (ストアの画像 ①): スマホは 見出し → CTA → 画面全体、PC は左に見出しと CTA・右に画面全体 ===== */
.hero {
  overflow-x: clip;
  padding: 28px 0 36px;
  background: linear-gradient(180deg, var(--orange-top) 0%, var(--orange-bottom) 100%);
  color: var(--on-orange);
  text-align: center;
}
.hero .container { display: grid; gap: 28px; }
/* アプリの名前の言い回しを、左右の細い線で挟んだ1行に (札の形にしない) */
.eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 12px;
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: rgba(255, 255, 255, 0.7); }
.hero h1 { margin: 0 0 8px; font-size: clamp(25px, 7.6vw, 34px); line-height: 1.4; letter-spacing: 0.04em; }
.hero h1 em, .mid-cta em { color: #FFFFFF; font-style: normal; }
.hero .sub { margin: 0 0 22px; color: var(--on-orange-sub); font-size: 15px; font-weight: 700; }
.hero .cta-note { color: var(--on-orange-sub); }
/* 対応するペット・多頭飼い (チェックの印 + 文字だけ) */
.hero-points { display: grid; gap: 4px; justify-content: center; margin: 18px 0 0; padding: 0; list-style: none; text-align: left; }
.hero-points li { position: relative; padding-left: 22px; color: #FFFFFF; font-size: 13px; font-weight: 700; line-height: 1.6; }
.hero-points li::before {
  content: "";
  position: absolute;
  top: 0.42em;
  left: 3px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  transform: rotate(-45deg);
}
.hero-visual { display: flex; justify-content: center; }
.hero-img { width: min(92vw, 380px); }

/* ===== セクション共通 ===== */
section { padding: 64px 0; }
.section-title {
  margin: 0 0 28px;
  font-size: 24px;
  line-height: 1.5;
  text-align: center;
}

/* ===== こんなご家族に (ストアの説明文の「こんなご家族に」) ===== */
.fit { background: var(--surface); }
/* 何のアプリかの1文 (ファーストビューの直後) */
.intro { max-width: 640px; margin: 0 auto 40px; font-size: 16px; font-weight: 700; line-height: 1.8; text-align: center; }
.checks { display: grid; gap: 10px; max-width: 640px; margin: 0 auto; padding: 0; list-style: none; }
.checks li {
  position: relative;
  padding: 12px 16px 12px 46px;
  border-radius: 14px;
  background: var(--bg);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.checks li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  transform: translateY(-50%);
}
.checks li::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 22px;
  width: 8px;
  height: 4px;
  border-bottom: 2px solid #FFFFFF;
  border-left: 2px solid #FFFFFF;
  transform: translateY(-70%) rotate(-45deg);
}
.bridge {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--primary-deep);
  font-family: var(--heading-font);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}
.bridge::before {
  content: "";
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 16px;
  border-right: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
  transform: rotate(45deg);
}

/* ===== できること (POINT 01〜07 = ストアの画像 ①〜⑦ の順と言い回し) =====
   スマホ: ラベル・見出し → 画面 → 説明 の順に縦に (見出しと画面が同じ画面に入るように、画面は要る部分だけを切り出す)。
   PC: 左に見出しと説明、右に画面 (POINT ごとに左右を入れ替える) */
.points .section-title { margin-bottom: 8px; }
.points-2 { padding-top: 16px; }
.point { display: grid; gap: 18px; padding: 40px 0; border-bottom: 1px solid var(--outline); }
.points-2 .point:last-child { border-bottom: none; }
.point-copy { text-align: center; }
.point-label {
  display: inline-block;
  margin: 0 0 10px;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--orange-top);
  color: #FFFFFF;
  font-size: 13px;
  letter-spacing: 0.08em;
}
.point h3 { margin: 0 0 8px; font-size: clamp(22px, 6.4vw, 28px); line-height: 1.45; letter-spacing: 0.02em; }
/* ストアの画像で白くしている語は、LP では濃いオレンジ + マーカー */
.point h3 em {
  color: var(--primary-num);
  font-style: normal;
  background: linear-gradient(transparent 68%, rgba(232, 152, 94, 0.28) 68%);
}
.point-sub { margin: 0; color: var(--primary-deep); font-size: 15px; font-weight: 700; line-height: 1.6; text-wrap: balance; }
.point-detail { max-width: 400px; margin: 0 auto; }
.point-body { margin: 0; color: var(--muted); font-size: 15px; }
.point-visual {
  position: relative;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 28px 0;
  border-radius: 24px;
  background: var(--cream);
}
.point-visual .visual { width: min(86vw, 340px); margin: 0 auto; }
/* POINT 03: 登録できるペット */
.pets { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.pets li { padding: 1px 10px; border-radius: 999px; background: var(--cream); color: var(--primary-deep); font-size: 13px; font-weight: 700; }
/* ===== 途中の CTA ===== */
.mid-cta {
  padding: 40px 0;
  background: linear-gradient(180deg, var(--orange-top) 0%, var(--orange-bottom) 100%);
  color: #FFFFFF;
  text-align: center;
}
.mid-cta-lead { margin: 0 0 20px; font-family: var(--heading-font); font-size: 22px; font-weight: 700; line-height: 1.5; }

/* ===== はじめかた ===== */
.steps-sec { background: var(--surface); }
.steps { display: grid; gap: 12px; max-width: 640px; margin: 0 auto; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  position: relative;
  padding: 14px 16px 14px 64px;
  border: 1px solid var(--outline);
  border-radius: 16px;
  background: var(--bg);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  top: 50%;
  left: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange-top);
  color: #FFFFFF;
  font-family: var(--heading-font);
  font-weight: 700;
  transform: translateY(-50%);
}
.steps strong { display: block; font-size: 16px; line-height: 1.5; text-wrap: balance; }
.steps span { display: block; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ===== 家族だけで、安心して共有 ===== */
.safe-list { display: grid; gap: 12px; max-width: 880px; margin: 0 auto; padding: 0; list-style: none; }
.safe-list li {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--cream);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.safe-list strong { display: block; margin-bottom: 4px; color: var(--text); font-size: 16px; }

/* ===== 料金プラン ===== */
.plans { display: grid; gap: 16px; max-width: 720px; margin: 0 auto; }
.plan {
  padding: 24px 22px;
  border: 1px solid var(--outline);
  border-radius: 22px;
  background: var(--surface);
}
.plan.premium { border: 2px solid var(--primary); }
.plan h3 { margin: 0 0 8px; font-size: 19px; line-height: 1.5; }
.plan.premium h3 { color: var(--primary-deep); }
.plan-price { margin: 0; font-size: 15px; font-weight: 700; }
.plan-price .amount { font-size: 32px; line-height: 1.2; letter-spacing: 0.02em; }
.plan-price-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.plan ul { display: grid; gap: 8px; margin: 16px 0 0; padding: 16px 0 0; border-top: 1px solid var(--outline); list-style: none; }
.plan li { position: relative; padding-left: 24px; font-size: 15px; }
.plan li::before {
  content: "";
  position: absolute;
  top: 0.45em;
  left: 2px;
  width: 11px;
  height: 6px;
  border-bottom: 2px solid var(--primary-deep);
  border-left: 2px solid var(--primary-deep);
  transform: rotate(-45deg);
}
.plan-note { display: block; color: var(--muted); font-size: 13px; }
.pricing-note { max-width: 720px; margin: 16px auto 0; color: var(--muted); font-size: 13px; }

/* ===== よくある質問 ===== */
.faq { background: var(--surface); }
.faq-list { display: grid; gap: 12px; max-width: 720px; margin: 0 auto; }
.qa {
  padding: 18px 20px;
  border: 1px solid var(--outline);
  border-radius: 18px;
  background: var(--bg);
}
.qa h3 { display: flex; gap: 10px; margin: 0 0 6px; font-size: 16px; line-height: 1.6; }
.qa h3::before { content: "Q"; flex: none; color: var(--primary-deep); }
.qa p { margin: 0; padding-left: 22px; color: var(--muted); font-size: 15px; }
.qa p + p { margin-top: 8px; }
.faq-more { max-width: 720px; margin: 16px auto 0; text-align: center; color: var(--muted); font-size: 15px; }

/* ===== 最後の CTA ===== */
.final-cta { background: linear-gradient(180deg, var(--orange-top) 0%, var(--orange-bottom) 100%); color: #FFFFFF; text-align: center; }
.final-cta .icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  border-radius: 16px;
  /* アイコンもオレンジなので、白い縁で背景から浮かせる */
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.7), 0 6px 16px rgba(61, 48, 41, 0.2);
}
.final-cta h2 { margin: 0 0 22px; font-size: 22px; line-height: 1.5; }
.final-cta .cta-row { justify-content: center; }
.final-cta .cta-note { display: block; margin-top: 16px; color: var(--on-orange-sub); font-weight: 700; }

/* ===== お問い合わせ・サポート ===== */
.contact { padding: 56px 0; }
.contact-card {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--cream);
  text-align: center;
}
.contact-card h2 { margin: 0 0 8px; font-size: 20px; }
.contact-card p { margin: 0 0 18px; color: var(--muted); font-size: 15px; text-align: left; }
.mail-btn {
  display: inline-block;
  padding: 10px 22px;
  border: 2px solid var(--primary);
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-deep);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

/* ===== PC 幅 ===== */
/* ===== スマホの固定の App Store ボタン ===== */
.sticky-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 251, 247, 0.96);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--outline);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.is-shown { transform: none; }
.sticky-cta .badge img { height: 44px; }
.sticky-note { color: var(--muted); font-size: 13px; font-weight: 700; }
/* 固定のボタンの下にフッターが隠れないように */
body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }

@media (min-width: 900px) {
  .sticky-cta { display: none; }
  body { padding-bottom: 0; }
  .hero { padding: 56px 0; text-align: left; }
  .hero .container { grid-template-columns: 1fr 380px; align-items: center; column-gap: 64px; }
  .eyebrow { justify-content: flex-start; }
  .eyebrow::after { display: none; }
  .hero h1 { font-size: 46px; }
  .hero .sub { font-size: 19px; }
  .hero-img { width: 380px; }
  .cta-row { justify-content: flex-start; }
  .hero-points { justify-content: start; }
  .mid-cta .cta-row { justify-content: center; }
  .final-cta .cta-row { justify-content: center; }
  .section-title { font-size: 30px; }
  .point {
    grid-template-columns: 1fr 420px;
    grid-template-areas: "copy visual" "detail visual";
    grid-template-rows: auto 1fr;
    column-gap: 64px;
    row-gap: 16px;
    padding: 56px 0;
  }
  .point:nth-of-type(even) { grid-template-columns: 420px 1fr; grid-template-areas: "visual copy" "visual detail"; }
  .point-copy { grid-area: copy; align-self: end; text-align: left; }
  .point-visual { grid-area: visual; align-self: center; }
  .point-detail { grid-area: detail; max-width: none; margin: 0; }
  .pets { justify-content: flex-start; }
  .point h3 { font-size: 30px; }
  .point-visual { max-width: none; padding: 40px 0; }
  .point-visual .visual { width: 360px; }
  .bridge { font-size: 22px; }
  .safe-list { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; align-items: start; }
}
