/* yume 公開サイト —— 骨組みは fishing の web/site/assets/style.css から
 *
 * 色は **アプリの `frontend/src/ui/theme.ts`(night)と同じ hex** を使う。
 * サイト側で新しい色を発明しない(アプリと並べたときに別物に見えるため)。
 * アプリは寝る前と寝起きに見るダークだけなので、サイトもダークだけにする。
 */

:root {
  /* theme.ts の night(そのままの hex) */
  --bg:       #0a0f1d;
  --deep:     #03040b;
  --surface:  #141a2b;
  --line:     #2a3040;
  --ink:      #ebeef5;
  --sub:      #b2b7c5;
  --muted:    #9398a5;
  --accent:   #bdbcfd;
  --on-accent:#0e1528;
  --warm:     #f0b788;
  --orb-inner:#3a3760;
  --orb-outer:#181d37;
  --orb-ring: #51507b;
  --orb-glow: #7974c5;

  /* Web フォントは読み込まない(外部リクエスト 0 本。web/README.md) */
  --round: ui-rounded, "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "ヒラギノ角ゴシック", "Noto Sans JP", "Segoe UI", system-ui, sans-serif;

  --shell: 760px;
  --radius: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: radial-gradient(120% 70% at 50% 0%, var(--orb-outer) 0%, var(--bg) 60%, var(--deep) 100%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ── 共通の骨 ───────────────────────────── */

.shell { width: 100%; max-width: var(--shell); margin: 0 auto; padding: 0 20px; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--round); font-weight: 700; line-height: 1.45; text-wrap: balance; }

/* ── ヘッダ ─────────────────────────────── */

.site-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 20px; padding: 22px 0 6px;
}
.site-head__home { font-family: var(--round); font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; letter-spacing: .04em; }
.site-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.site-nav a {
  font-size: 13.5px; font-weight: 700; color: var(--sub); text-decoration: none;
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 14px;
}
.site-nav a:hover { color: var(--ink); border-color: var(--orb-ring); }
.site-nav a[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ── ヒーロー ───────────────────────────── */

.hero { padding: 48px 0 8px; text-align: center; }
.hero__icon {
  display: block; width: 120px; height: 120px; margin: 0 auto 22px; border-radius: 28px;
  box-shadow: 0 0 0 1px var(--orb-ring), 0 0 60px -8px var(--orb-glow);
}
.hero h1 { font-size: clamp(40px, 9vw, 60px); margin: 0 0 14px; letter-spacing: .06em; }
.hero__lede { font-size: clamp(17px, 3.4vw, 20px); font-weight: 700; margin: 0 auto 10px; max-width: 30ch; }
.hero__sub { font-size: 14.5px; margin: 0 auto 30px; max-width: 44ch; color: var(--sub); }

/* ── ボタン ─────────────────────────────── */

.btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 44px; }
.btn {
  display: inline-block; font-family: var(--round); font-weight: 700; font-size: 15.5px; text-decoration: none;
  padding: 12px 26px; border-radius: 999px; color: var(--on-accent); background: var(--accent);
}
.btn:hover { color: var(--on-accent); filter: brightness(1.08); }
.btn--ghost { color: var(--ink); background: transparent; border: 1px solid var(--orb-ring); }
.btn--ghost:hover { color: var(--ink); background: var(--surface); }

/* ── カード ─────────────────────────────── */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; margin: 0 0 22px;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card__title { font-size: 26px; margin: 0 0 18px; }
.card h2 { font-size: 21px; margin: 0 0 14px; }
.card h2::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 999px; background: var(--accent); margin-top: 10px; }
.card p { margin: 0 0 14px; }

.lead { font-size: 17px; font-weight: 700; }
.note { font-size: 13.5px; color: var(--muted); }
.note--tail { margin-top: 28px; }

.steps { margin: 0; padding-left: 1.4em; }
.steps li { margin: 0 0 10px; }
.steps li::marker { color: var(--accent); font-weight: 800; }

/* 医療についての注意。いびきの色(暖色)で目に入るようにする */
.caution { border-color: rgba(240,183,136,.45); }
.caution h2::after { background: var(--warm); }

/* ── 本文(ポリシー) ─────────────────────── */

.prose h2 { font-size: 19px; margin: 34px 0 10px; }
.prose h2:first-of-type { margin-top: 0; }
.prose ul { margin: 0 0 16px; padding-left: 1.35em; }
.prose li { margin: 0 0 6px; }
.prose li::marker { color: var(--accent); }
.prose dl { margin: 0 0 16px; }
.prose dt { font-weight: 700; margin-top: 12px; }
.prose dd { margin: 0 0 0 1.35em; color: var(--sub); }

/* 「結論」だけ先に見せる帯 */
.banner {
  background: linear-gradient(180deg, var(--orb-inner), var(--orb-outer));
  border: 1px solid var(--orb-ring); border-radius: 16px; padding: 18px 22px; margin: 0 0 26px;
}
.banner p { margin: 0; font-weight: 700; font-size: 16.5px; }
.banner p + p { margin-top: 8px; font-weight: 400; font-size: 14px; color: var(--sub); }

/* ── FAQ(JS 無し。details/summary で開閉する) ── */

.faq { display: grid; gap: 10px; margin: 0 0 8px; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 14px 18px 14px 46px; font-weight: 700; font-size: 15px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%;
  background: var(--orb-inner); color: var(--accent); font-weight: 800; font-size: 15px; line-height: 1;
}
.faq details[open] summary::before { content: "−"; }
.faq__a { padding: 2px 18px 18px; font-size: 14.5px; line-height: 1.85; color: var(--sub); }
.faq__a p { margin: 0 0 10px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__a strong { color: var(--ink); }

/* ── 問い合わせ ─────────────────────────── */

.contact {
  background: linear-gradient(180deg, var(--orb-inner), var(--orb-outer));
  border: 1px solid var(--orb-ring); border-radius: var(--radius); padding: 26px;
}
.contact h2 { margin: 0 0 12px; font-size: 20px; }
.contact p { margin: 0 0 12px; }
.contact p:last-child { margin-bottom: 0; }
.contact a { font-weight: 700; }

/* ── フッタ ─────────────────────────────── */

.site-foot { margin: 40px 0 44px; padding: 20px 0 0; border-top: 1px solid var(--line); text-align: center; font-size: 13.5px; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-bottom: 8px; }
.site-foot a { font-weight: 700; }
.site-foot small { color: var(--muted); }

/* ── 404 ────────────────────────────────── */

.lost { text-align: center; padding: 80px 0 40px; }
.lost h1 { font-size: clamp(40px, 12vw, 84px); margin: 0 0 10px; color: var(--accent); }
.lost p { font-weight: 700; margin: 0 0 30px; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
