/*
 * sashine.app のページ
 * 設計（reports/Claude LP 制作の手法.md の方針）
 *   主役: 「証券アプリを開いた瞬間に、さしねちゃんが割り込む」画面。大胆なのはここ1か所だけ。ほかは静かに
 *   色: アプリと同じ案A「藍藤」。差し色1色＋灰色。損益の赤・緑は使わない
 *   文字: 端末のヒラギノ（外部フォントなし）。さしねちゃんのセリフだけ丸ゴシック。斜体は使わない
 *   形: 角の丸みはカード 20px・ボタン 14px。動きはファーストビューの1回だけ（480ms ease-out）。動きを減らす設定では止める
 *   並び: 約束と画面 → 困りごと → 仕組み → 研究 → 今の作戦 → しないこと → 料金・よくある質問 → 注記
 */
:root {
  --bg: #f5f5f9; --bg2: #eceef7; --panel: #ffffff; --line: #dcdeea;
  --ink: #22232e; --sub: #55586b; --muted: #5f6276;
  --accent: #4b56b8; --on-accent: #ffffff; --accent-bg: #e8eafb;
  --voice: "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --r-card: 20px; --r-btn: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12131a; --bg2: #171926; --panel: #1a1c26; --line: #2b2e3d;
    --ink: #e8e8f0; --sub: #b5b7c8; --muted: #8e91a6;
    --accent: #a3aef5; --on-accent: #12131a; --accent-bg: #232742;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; background: var(--bg); color: var(--ink); min-height: 100vh;
  font-family: var(--body); font-size: 16px; line-height: 1.85;
  line-break: strict; overflow-wrap: anywhere;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { max-width: 100%; height: auto; display: block; }

.wrap {
  max-width: 1040px; margin: 0 auto;
  padding: 20px max(20px, env(safe-area-inset-right)) 56px max(20px, env(safe-area-inset-left));
}
.narrow { max-width: 720px; margin-inline: auto; }
header.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 4px 0 20px; }
header.bar a.home { font-weight: 700; text-decoration: none; color: var(--ink); white-space: nowrap; }
header.bar nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; }
header.bar nav a { color: var(--sub); text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; min-height: 44px; }

h1, h2, h3 { line-height: 1.4; font-feature-settings: "palt"; text-wrap: balance; letter-spacing: .01em; }
h1 { font-size: clamp(34px, 7vw, 56px); font-weight: 700; margin: 0; line-height: 1.25; }
h2 { font-size: clamp(22px, 4vw, 28px); font-weight: 700; margin: 0 0 14px; }
h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
p { margin: 0; }
/* 文節の塊（この中では折り返さない）。見出しとリードだけに使う */
.nw { display: inline-block; }
.sub { color: var(--sub); }
.muted { color: var(--muted); font-size: 14px; }

/* ---------- ファーストビュー（大胆なのはここだけ） ---------- */
.hero { display: grid; gap: 28px; align-items: center; padding: 12px 0 8px; }
.hero .lead { font-size: clamp(17px, 2.4vw, 20px); color: var(--sub); margin-top: 16px; }
.hero .soon { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
/* 押せない「近日公開」の札（ボタンに見せない）。公開したら Apple の公式バッジに差し替える */
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 10px; background: var(--accent-bg); color: var(--ink); font-size: 14px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero .stage { position: relative; justify-self: center; width: min(340px, 78vw); }
.hero .stage::before {
  content: ""; position: absolute; inset: 12% -10% 4%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 12%, transparent), transparent);
}
.hero .shot {
  border-radius: 34px; overflow: hidden; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(20, 20, 50, .06), 0 24px 60px rgba(20, 20, 50, .16);
}
.hero .tag {
  position: absolute; left: -8%; top: 38%; max-width: 56%;
  background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  padding: 10px 14px; font-size: 13px; line-height: 1.55; color: var(--sub);
  box-shadow: 0 10px 24px rgba(20, 20, 50, .10);
}
.hero .tag b { color: var(--ink); display: block; font-size: 14px; }
/* iPhone の幅: 最初の画面に「何しにきた？」とボタンが入るよう、画面の下側を見せる。札は絵の外に */
@media (max-width: 559px) {
  .hero { gap: 18px; }
  .hero .stage { width: min(300px, 80vw); }
  /* 質問とボタンの部分だけ（体の途中で切ると見た目が悪いので、絵は下のセリフの横で見せる） */
  .hero .shot { aspect-ratio: 780 / 720; object-fit: cover; object-position: bottom; border-radius: 26px; }
  .hero .tag { position: static; max-width: none; box-shadow: none; border: 0; background: none; padding: 0 0 8px; text-align: center; }
  .hero .tag b { display: inline; }
  .hero .stage { display: flex; flex-direction: column-reverse; }
  header.bar nav a.wide { display: none; }
}
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.1fr .9fr; gap: 48px; padding-top: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .stage { animation: rise .48s ease-out both; }
  @keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
}

/* ---------- セクション（静かに） ---------- */
section.block { padding: 56px 0 0; }
.voice { display: flex; align-items: flex-end; gap: 12px; margin: 18px 0 0; }
.voice img { width: 64px; flex: none; }
.voice p {
  font-family: var(--voice); font-size: 16px; line-height: 1.7; color: var(--ink);
  background: var(--panel); border: 1px solid var(--line); border-radius: 18px 18px 18px 6px; padding: 12px 16px;
}

ol.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 12px; }
ol.steps li {
  counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 4px 14px; align-items: start;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 18px;
}
ol.steps li::before {
  content: counter(s); grid-row: span 2; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--accent); background: var(--accent-bg);
}
ol.steps li p { color: var(--sub); font-size: 15px; }
@media (min-width: 860px) { ol.steps { grid-template-columns: repeat(3, 1fr); } ol.steps li { grid-template-columns: 1fr; } ol.steps li::before { grid-row: auto; } }

.note-box { background: var(--accent-bg); border-radius: var(--r-card); padding: 20px 22px; }
.note-box p + p { margin-top: 10px; }
.cite { font-size: 14px; color: var(--sub); }

dl.plan { margin: 0; display: grid; gap: 0 32px; }
dl.plan div { border-top: 1px solid var(--line); padding: 16px 0; }
dl.plan dt { font-weight: 700; }
dl.plan dd { margin: 2px 0 0; color: var(--sub); font-size: 15px; }
@media (min-width: 860px) { dl.plan { grid-template-columns: repeat(2, 1fr); } }

ul.nots { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
ul.nots { gap: 0; }
ul.nots li { padding: 12px 0 12px 28px; position: relative; border-top: 1px solid var(--line); }
ul.nots li::before { content: ""; position: absolute; left: 2px; top: 1.45em; width: 14px; height: 2px; background: var(--muted); }

details.faq { border-bottom: 1px solid var(--line); padding: 4px 0; }
details.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; min-height: 44px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "＋"; float: right; color: var(--muted); font-weight: 400; }
details.faq[open] summary::after { content: "－"; }
details.faq p { color: var(--sub); padding: 0 0 14px; }

.closing { padding: 56px 0 0; }

/* ---------- 文書（プライバシーポリシー・利用規約・サポート） ---------- */
.doc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px 22px 22px; max-width: 760px; }
.doc h1 { font-size: clamp(26px, 5vw, 32px); margin: 16px 0 8px; }
.doc h2 { font-size: 20px; margin: 36px 0 8px; }
.doc ol, .doc ul { padding-left: 1.3em; }
.doc li + li { margin-top: 4px; }
dl.faq dt { font-weight: 700; margin-top: 18px; }
dl.faq dd { margin: 4px 0 0; color: var(--sub); }

footer { margin-top: 56px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 18px; }
footer a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
footer .legal { flex-basis: 100%; line-height: 1.7; }
