:root {
  /* Neo tokens — Light */
  --surface: #e4e6f0;
  --shadow-dark: #c5c8da;
  --shadow-light: #ffffff;
  --text: #3f4460;
  --text-muted: #8b90ad;
  /* accents (gradient start -> end / line) */
  --primary-a: #b5a0fb;
  --primary-b: #9162f3;
  --primary-line: #8658ea;
  --cyan-a: #86ecf8;  --cyan-b: #32c3da;  --cyan-line: #21a2bd;
  --amber-a: #fcdb79; --amber-b: #f6b33b; --amber-line: #dc8c21;
  --green-a: #9eefba; --green-b: #4ecf7c; --green-line: #32ad61;
  --coral-a: #fdb4bd; --coral-b: #f7677f; --coral-line: #e84565;
  --shadow-o: 7px 7px 16px var(--shadow-dark), -7px -7px 16px var(--shadow-light);
  --shadow-o-sm: 4px 4px 9px var(--shadow-dark), -4px -4px 9px var(--shadow-light);
  --shadow-i: inset 5px 5px 11px var(--shadow-dark), inset -5px -5px 11px var(--shadow-light);
}
/* テーマはライト固定（明るく）。ダーク自動切替は行わない。 */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  /* 上方向の淡い光でより明るく（トークン由来の色のみ使用） */
  background-image: radial-gradient(120% 60% at 50% -10%, var(--shadow-light), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font-family: "M PLUS 1p", -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Noto Sans JP", "Noto Sans KR", "Noto Sans SC", "Noto Sans TC", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary-line); }

/* ブランドロゴ "PosePause" 専用フォント（Exo Italic Black）。英字のみ＝CJK不要 */
.brand {
  font-family: "Exo", "M PLUS 1", sans-serif;
  font-style: italic;
  font-weight: 900;
  letter-spacing: 0;
}

/* SEO/アクセシビリティ用の視覚非表示テキスト */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ストア別ボタンの表示切替（JS未実行時は両方表示＝安全側） */
.store-ios, .store-android { display: inline-flex; }
html.is-ios .store-android { display: none; }
html.is-android .store-ios { display: none; }

/* ---------- shared layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.doc { max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; line-height: 1.85; }

/* ---------- top nav ---------- */
.nav {
  position: sticky; top: 16px; z-index: 20;
  margin: 16px auto 0; max-width: 1080px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; border-radius: 22px;
  background: var(--surface); box-shadow: var(--shadow-o-sm);
  backdrop-filter: saturate(1.2);
}
.nav .brand { font-weight: 900; font-size: 19px; letter-spacing: 0; color: var(--text); text-decoration: none; }
.nav .links a { color: var(--text-muted); text-decoration: none; margin-left: 22px; font-size: 14px; font-weight: 600; }
.nav .links a:hover, .nav .links a.active { color: var(--primary-line); }
.nav .links #langSelect {
  margin-left: 22px; font-size: 13px; font-weight: 600; font-family: inherit;
  color: var(--text-muted); background: var(--surface);
  border: 1px solid var(--shadow-dark); border-radius: 9px;
  padding: 5px 8px; cursor: pointer; -webkit-appearance: none; appearance: none;
}
.nav .links #langSelect:hover { color: var(--primary-line); }
@media (max-width: 640px){ .nav .links a { margin-left: 14px; } .nav .links .hide-sm { display:none; } .nav .links #langSelect { margin-left: 14px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px; border-radius: 16px; font-weight: 700; font-size: 15px;
  text-decoration: none; border: none; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, var(--primary-a), var(--primary-b));
  box-shadow: var(--shadow-o-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { box-shadow: var(--shadow-i); transform: translateY(0); }
.btn.ghost { color: var(--text); background: var(--surface); }

/* ---------- hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; padding: 72px 0 40px; }
.hero .eyebrow {
  display: inline-block; padding: 7px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--primary-line); background: var(--surface); box-shadow: var(--shadow-i); margin-bottom: 22px;
}
.hero h1 { font-size: 46px; line-height: 1.18; margin: 0 0 18px; letter-spacing: -.5px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--primary-a), var(--primary-b)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 17px; color: var(--text-muted); margin: 0 0 30px; max-width: 30em; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero .note { font-size: 12.5px; color: var(--text-muted); margin-top: 16px; }

/* phone frame */
.phone {
  justify-self: center; width: 280px; aspect-ratio: 9 / 19.5; border-radius: 44px;
  background: var(--surface); box-shadow: var(--shadow-o); padding: 12px;
}
.phone .screen {
  position: relative;
  width: 100%; height: 100%; border-radius: 33px; overflow: hidden;
  box-shadow: var(--shadow-i);
  background: linear-gradient(150deg, var(--primary-a), var(--primary-b));
  display: flex; align-items: center; justify-content: center;
}
/* Absolutely fill the frame so the (fallback) placeholder sibling can't push the image
   off-center via the flex justify-content. */
.phone .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.phone .screen .ph-label { color: #fff; font-weight: 700; opacity: .85; font-size: 14px; padding: 20px; text-align: center; }

/* ---------- sections ---------- */
section.block { padding: 64px 0; }
.section-head { text-align: center; max-width: 40em; margin: 0 auto 44px; }
.section-head h2 { font-size: 32px; margin: 0 0 12px; letter-spacing: -.3px; }
.section-head p { color: var(--text-muted); font-size: 16px; margin: 0; }

/* card grid */
.grid { display: grid; gap: 22px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--surface); border-radius: 24px; padding: 28px;
  box-shadow: var(--shadow-o);
}
.card h3 { margin: 16px 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--text-muted); font-size: 14.5px; }

/* step number badge / icon chip */
.chip {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: #fff; box-shadow: var(--shadow-o-sm);
}
.chip.primary { background: linear-gradient(135deg, var(--primary-a), var(--primary-b)); }
.chip.cyan    { background: linear-gradient(135deg, var(--cyan-a), var(--cyan-b)); }
.chip.amber   { background: linear-gradient(135deg, var(--amber-a), var(--amber-b)); }
.chip.green   { background: linear-gradient(135deg, var(--green-a), var(--green-b)); }
.chip.coral   { background: linear-gradient(135deg, var(--coral-a), var(--coral-b)); }

/* screenshot gallery */
.gallery { display: flex; gap: 26px; justify-content: center; flex-wrap: wrap; }
.shot {
  width: 220px; aspect-ratio: 9 / 19.5; border-radius: 34px; padding: 9px;
  background: var(--surface); box-shadow: var(--shadow-o);
}
.shot .screen {
  position: relative;
  width: 100%; height: 100%; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-i);
  background: linear-gradient(160deg, var(--surface), var(--shadow-dark));
  display: flex; align-items: center; justify-content: center;
}
.shot .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.shot .screen span { color: var(--text-muted); font-size: 12.5px; text-align: center; padding: 14px; }
.shot-cap { text-align: center; margin-top: 12px; font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* pricing */
.price-card { max-width: 420px; margin: 0 auto; text-align: center; padding: 40px 32px; border-radius: 28px; }
.price-card .amount { font-size: 40px; font-weight: 800; margin: 8px 0; }
.price-card .amount small { font-size: 16px; color: var(--text-muted); font-weight: 600; }
.price-card ul { list-style: none; padding: 0; margin: 20px 0 28px; text-align: left; }
.price-card li { padding: 8px 0; color: var(--text-muted); font-size: 14.5px; }
.price-card li::before { content: "✓"; color: var(--green-line); font-weight: 800; margin-right: 10px; }

/* cta band */
.cta-band { text-align: center; padding: 60px 32px; border-radius: 32px; box-shadow: var(--shadow-i); margin: 40px 0; }
.cta-band h2 { font-size: 30px; margin: 0 0 12px; }
.cta-band p { color: var(--text-muted); margin: 0 0 26px; }

/* ---------- footer ---------- */
footer.site {
  margin-top: 40px; padding: 44px 0; border-top: 1px solid var(--shadow-dark);
  color: var(--text-muted); font-size: 13.5px;
}
footer.site .cols { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
footer.site a { color: var(--text-muted); text-decoration: none; display: block; margin: 6px 0; }
footer.site a:hover { color: var(--primary-line); }
footer.site .brand { font-weight: 900; font-size: 17px; color: var(--text); }
footer.site .legal { margin-top: 22px; font-size: 12.5px; }

/* ---------- doc pages (terms / privacy) ---------- */
.doc header.docnav { padding: 20px 0; border-bottom: 1px solid var(--shadow-dark); margin-bottom: 30px; }
.doc header.docnav a.brand { font-weight: 900; font-size: 20px; color: var(--text); text-decoration: none; }
.doc nav { margin-top: 12px; font-size: 14px; }
.doc nav a { color: var(--text-muted); text-decoration: none; margin-right: 16px; }
.doc nav a:hover, .doc nav a.active { color: var(--primary-line); }
.doc h1 { font-size: 26px; margin: 0 0 4px; }
.doc h2 { font-size: 18px; margin: 34px 0 8px; }
.doc .date { color: var(--text-muted); font-size: 13px; margin-bottom: 26px; }
.doc p, .doc li { font-size: 15px; }
.doc .notice { background: var(--surface); box-shadow: var(--shadow-i); border-radius: 14px; padding: 16px 20px; margin: 20px 0; font-size: 14px; }
.doc .placeholder { color: var(--primary-line); font-weight: 600; }
.doc footer { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--shadow-dark); color: var(--text-muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero .cta-row { justify-content: center; }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
}
