/*
 * 妄想の雲 — 公開用LP（設計書v21 / Step18）
 * アプリ本体（Zen Maru Gothic / クリーム背景 / 淡い水色アクセント）を踏襲。
 * トーン：やさしい・静か・押し売りしない・少しだけかわいい。
 */

:root {
  --color-bg-base: #FDFBF5;
  --color-bg-alt: #FFF9F0;
  --color-sky: #EBF4F9;
  --color-accent-light: #CFE8F5;
  --color-accent-hover: #BFE0F0;
  --color-text-main: #5A6B7B;
  --color-text-mut: #8B9BAA;
  --color-blush: #FFD6D6;
  --color-sparkle: #FFC453;
  --radius-lg: 28px;
  --radius-md: 20px;
  --shadow-soft: 0 10px 40px rgba(90, 107, 123, 0.10);
  --shadow-card: 0 6px 24px rgba(90, 107, 123, 0.08);
  --max-w: 980px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Zen Maru Gothic', sans-serif;
  color: var(--color-text-main);
  background:
    radial-gradient(1200px 600px at 50% -10%, #FFFFFF 0%, var(--color-sky) 55%, var(--color-bg-base) 100%);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== ヘッダー ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(253, 251, 245, 0.72);
  border-bottom: 1px solid rgba(207, 232, 245, 0.6);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}
.brand .logo-cloud {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-card);
}
.nav-cta {
  display: inline-block;
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.nav-cta:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

/* ===== セクション共通 ===== */
section { padding: 84px 0; }
.section-tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--color-text-mut);
  margin-bottom: 14px;
}
h2.section-title {
  font-size: clamp(24px, 4vw, 32px);
  font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: .02em;
}
.lead { font-size: 17px; color: var(--color-text-main); max-width: 640px; }

/* ===== 雲キャラクター画像（LP共通・アプリ本体の雲マスコットに統一） =====
 * 出典: assets/icon-foreground.png（背景透過・雲のみ）を landing/assets/cloud-character.png にコピー。
 * screens/ のインラインSVG雲マスコットと同一キャラクターの清書版。
 * 画像が読み込めなくても、内側に置く白い丸（.logo-cloud / .cloud-mark）が残りレイアウトは崩れない。 */
.cloud-character {
  display: block;
  object-fit: contain;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
}
.cloud-character--logo  { width: 26px; height: 26px; }          /* ヘッダーロゴ（.logo-cloud の白丸内） */
.cloud-character--hero  { width: 76px; height: 76px; }          /* ヒーロー（.cloud-mark 96px 白丸内） */
.cloud-character--phone { width: 40px; height: 40px; margin: 0 auto; } /* スマホモック内 */
.cloud-character--quote { width: 40px; height: 40px; }          /* 引用カード */
.cloud-character--doc   { width: 52px; height: 52px; }          /* doc-head（68px 白丸内・beta等） */
.final .cloud-character { width: 72px; height: 72px; margin: 0 auto; } /* 最終CTA（白丸なし・単体） */

/* ===== 01 ヒーロー ===== */
.hero { padding: 64px 0 72px; text-align: center; }
.hero .cloud-mark {
  width: 96px; height: 96px;
  margin: 0 auto 24px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  font-size: 48px;
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.hero h1 {
  font-size: clamp(28px, 6vw, 46px);
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 22px;
  letter-spacing: .02em;
}
.hero .subcopy {
  font-size: 16px;
  color: var(--color-text-main);
  max-width: 560px;
  margin: 0 auto 34px;
}
.cta-row {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--color-accent-light);
  color: var(--color-text-main);
  box-shadow: var(--shadow-card);
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-2px); }
.btn-ghost {
  background: #fff;
  color: var(--color-text-main);
  box-shadow: var(--shadow-card);
}
.btn-ghost:hover { transform: translateY(-2px); }

.hero-phones {
  margin-top: 56px;
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}
.phone {
  width: 200px;
  background: linear-gradient(180deg, var(--color-bg-base), var(--color-bg-alt));
  border: 7px solid #fff;
  border-radius: 30px;
  box-shadow: var(--shadow-soft);
  padding: 18px 14px;
  text-align: left;
}
.phone .ph-label { font-size: 11px; color: var(--color-text-mut); letter-spacing: .08em; }
.phone .ph-cloud {
  margin: 14px 0;
  font-size: 32px;
  text-align: center;
}
.phone .ph-line {
  height: 8px;
  border-radius: 99px;
  background: var(--color-accent-light);
  margin: 7px 0;
}
.phone .ph-line.short { width: 60%; }
.phone .ph-card {
  margin-top: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: var(--shadow-card);
  font-size: 12px;
}

/* ===== バンド（淡色帯） ===== */
.band { background: rgba(255, 255, 255, 0.55); }
.band-alt { background: var(--color-bg-alt); }

/* ===== できること（カードグリッド） ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 24px;
  box-shadow: var(--shadow-card);
}
.card .ic { font-size: 30px; }
.card h3 { font-size: 18px; margin: 14px 0 8px; font-weight: 700; }
.card p { margin: 0; font-size: 14px; color: var(--color-text-main); }

/* ===== 使い方（ステップ） ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.step {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 26px 22px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.step .num {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: grid; place-items: center;
  font-weight: 700;
  margin-bottom: 14px;
}
.step h3 { font-size: 16px; margin: 0 0 6px; }
.step p { margin: 0; font-size: 14px; }

/* ===== 誰かの雲（横並びの引用） ===== */
.quote-band { text-align: center; }
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 36px;
}
.quote {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-card);
  font-size: 14px;
}
.quote .q-cloud { font-size: 26px; margin-bottom: 10px; }
.quote .q-meta { color: var(--color-text-mut); font-size: 12px; margin-top: 12px; }

/* ===== 安心して使える理由（チェックリスト） ===== */
.safe-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.safe-list li {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}
.safe-list .check {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--color-accent-light);
  display: grid; place-items: center;
  font-size: 14px;
}

/* ===== Plus ===== */
.plus-card {
  margin-top: 32px;
  background: linear-gradient(135deg, #fff, var(--color-bg-alt));
  border: 1px solid rgba(207, 232, 245, 0.8);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-soft);
}
.plus-card .badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--color-sparkle);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
}
.plus-card ul { margin: 18px 0 0; padding-left: 20px; font-size: 14px; }
.plus-card li { margin: 6px 0; }
.plus-note { font-size: 13px; color: var(--color-text-mut); margin-top: 16px; }

/* ===== FAQ ===== */
.faq { margin-top: 32px; }
.faq details {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 4px 22px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-weight: 700;
  font-size: 15px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "＋";
  position: absolute;
  right: 0;
  color: var(--color-text-mut);
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 0 0 18px; font-size: 14px; color: var(--color-text-main); }

/* ===== アプリをはじめる ===== */
.final {
  text-align: center;
  background: rgba(255, 255, 255, 0.6);
}
.final .cloud-mark {
  font-size: 40px;
  margin-bottom: 18px;
}
.final h2 { margin-bottom: 18px; }

/* ===== フッター ===== */
.site-footer {
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  color: var(--color-text-mut);
}
.site-footer a { text-decoration: none; margin: 0 10px; }
.site-footer .links { margin-bottom: 14px; }

/* ===== 法務・公開ページ（privacy / terms / data-policy / contact / account-deletion） ===== */
/* 本文の正は docs/41〜43。これらの公開ページは Store 提出用の外部URLとして同内容を掲載する。 */
.doc-page { padding: 56px 0 40px; }
.doc-page .wrap { max-width: 760px; }
.doc-head { text-align: center; margin-bottom: 8px; }
.doc-head .cloud-mark {
  width: 68px; height: 68px;
  margin: 0 auto 18px;
  display: grid; place-items: center;
  background: #fff;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  font-size: 32px;
}
.doc-head h1 {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: .02em;
}
.doc-head .doc-sub { color: var(--color-text-mut); font-size: 14px; margin: 0; }

.doc-body {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 34px 30px;
  margin-top: 28px;
}
.doc-body h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 26px 0 10px;
  padding-top: 6px;
}
.doc-body h2:first-child { margin-top: 0; }
.doc-body h3 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.doc-body p { font-size: 14.5px; margin: 0 0 10px; }
.doc-body ul { margin: 6px 0 12px; padding-left: 20px; }
.doc-body li { font-size: 14.5px; margin: 5px 0; }
.doc-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 14px;
  font-size: 14px;
}
.doc-body th, .doc-body td {
  border: 1px solid rgba(207, 232, 245, 0.9);
  padding: 8px 12px;
  text-align: left;
}
.doc-body th { background: var(--color-bg-alt); font-weight: 700; }
.doc-body .lead-note { color: var(--color-text-mut); font-size: 13.5px; }

/* 未確定（差し替え前提）を目立たせるやさしいコールアウト */
.note-callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--color-bg-alt);
  border: 1px solid rgba(207, 232, 245, 0.9);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 14px 0;
  font-size: 13.5px;
  color: var(--color-text-main);
}
.note-callout .ic { font-size: 18px; line-height: 1.4; }

/* 連絡先ボタン（contact / account-deletion） */
.contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: var(--color-accent-light);
  color: var(--color-text-main);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: background .2s ease, transform .2s ease;
}
.contact-btn:hover { background: var(--color-accent-hover); transform: translateY(-1px); }

/* ページ下部の相互リンク */
.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: center;
  margin-top: 30px;
  font-size: 13.5px;
}
.doc-links a { color: var(--color-text-mut); text-decoration: none; }
.doc-links a:hover { color: var(--color-text-main); text-decoration: underline; }

@media (max-width: 540px) {
  section { padding: 60px 0; }
  .hero-phones .phone:nth-child(3) { display: none; }
  .doc-body { padding: 26px 20px; }
  .cloud-character--hero  { width: 64px; height: 64px; }
  .cloud-character--phone { width: 34px; height: 34px; }
  .final .cloud-character { width: 60px; height: 60px; }
}
