/* =========================================================
   base.css — 色・文字・共通パーツ（全ページ共通）
   ========================================================= */

:root {
  --ink: #232F55;        /* 文字 */
  --sub: #4A5170;        /* サブ */
  --muted: #5F6278;      /* 補助 */
  --pink: #E8456F;
  --link: #C42651;
  --lav: #A54FD8;
  --blue: #3B82E0;
  --pink-bg: #FFF4F6;
  --lav-bg: #F6F0FD;
  --blue-bg: #EFF5FD;
  --line: #EEECF3;
  --white: #FFFFFF;
  --rainbow: linear-gradient(90deg, #E8456F, #A54FD8 50%, #3B82E0);
  --plus: linear-gradient(135deg, #FF9DB8, #E8456F);

  --font-ja: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-en: "Outfit", var(--font-ja);

  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow-soft: 0 10px 30px rgba(35, 47, 85, .08), 0 2px 6px rgba(35, 47, 85, .04);
  --shadow-pop: 0 18px 44px rgba(165, 79, 216, .16), 0 4px 10px rgba(232, 69, 111, .08);

  --gutter: 16px;
  --container: 1120px;
  --header-h: 64px;
  --below: .85;          /* トップ画像より下（とフッター）の大きさ：ページ全体の拡大率にかける */

  color-scheme: light;
}

/* トップ画像の下は少し小さく。下層ページも同じ大きさにそろえる */
main > section:not(.hero), .site-footer { zoom: var(--below); }
@media (min-width: 900px) { :root { --below: .75; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-ja);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: .02em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: #9E1A3F; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lav); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { position: relative; padding: 72px 0; }
@media (min-width: 900px) {
  :root { --gutter: 32px; --header-h: 76px; }
  .section { padding: 112px 0; }
}

/* ---------- 見出し ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .18em;
  background: var(--rainbow);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h2 {
  font-weight: 900;
  font-size: clamp(26px, calc(6.4 * var(--vw, 1vw)), 40px);
  line-height: 1.4;
  letter-spacing: .03em;
  margin-top: 6px;
}
.lead { color: var(--sub); margin-top: 14px; font-size: 15px; }
@media (min-width: 900px) { .lead { font-size: 17px; } }
.section-head { text-align: center; margin-bottom: 40px; }
@media (min-width: 900px) { .section-head { margin-bottom: 64px; } }
.grad-text { background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent; }
.en { font-family: var(--font-en); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn-primary { background: var(--rainbow); color: #fff; box-shadow: 0 8px 20px rgba(232, 69, 111, .25); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(165, 79, 216, .3); }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: #D9D3EA; transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- App Store バッジ（Apple公式バッジに差し替え可） ---------- */
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 8px 22px 8px 16px;
  background: #111522; color: #fff; text-decoration: none;
  border-radius: 16px; box-shadow: 0 10px 24px rgba(17, 21, 34, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.store-badge:hover { color: #fff; transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-badge-text small { font-size: 11px; opacity: .8; letter-spacing: .04em; }
.store-badge-text b { font-family: var(--font-en); font-size: 18px; font-weight: 700; letter-spacing: .01em; }
.store-badge[aria-disabled="true"] { cursor: default; }
.store-badge[aria-disabled="true"]:hover { transform: none; }
.store-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- ぼかした丸い色面 ---------- */
.blob {
  position: absolute; z-index: -1; border-radius: 50%;
  filter: blur(60px); opacity: .55; pointer-events: none;
}
.blob-pink { background: #FFC9D8; }
.blob-lav { background: #E3CCF8; }
.blob-blue { background: #CFE2FB; }

/* ---------- カード ---------- */
.card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft); border: 1px solid rgba(238, 236, 243, .8);
}
.icon-bubble {
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
}
.icon-bubble svg { width: 26px; height: 26px; }
.ib-pink { background: var(--pink-bg); color: var(--pink); }
.ib-lav { background: var(--lav-bg); color: var(--lav); }
.ib-blue { background: var(--blue-bg); color: var(--blue); }

/* ---------- スクロールで現れる ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-d1 { transition-delay: .08s; }
.js .reveal-d2 { transition-delay: .16s; }
.js .reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
