/* 公開ページ（紹介・ガイド・よくある質問・規約）：真夜中のサロン */
:root {
  --bg-1: #0b0e2a;
  --bg-2: #1f1640;
  --bg-3: #3a2350;
  --text: #f4eef6;
  --dim: #c3bbd4;
  --gold: #dcbf88;
  --gold-deep: #a8844a;
  --rose: #e6aabd;
  --card: rgba(255, 255, 255, 0.05);
  --line: rgba(220, 191, 136, 0.28);
  --on-gold: #241838;
  --f-display: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-latin: "Cormorant Garamond", "Times New Roman", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.95;
  color: var(--text);
  background-color: var(--bg-1);
  background-image:
    radial-gradient(1px 1px at 18px 34px, rgba(255,255,255,.5), transparent 60%),
    radial-gradient(1px 1px at 96px 120px, rgba(255,255,255,.35), transparent 60%),
    radial-gradient(1.5px 1.5px at 170px 46px, rgba(243,220,168,.6), transparent 60%),
    linear-gradient(175deg, var(--bg-1), var(--bg-2) 55%, var(--bg-3));
  background-size: 260px 190px, 260px 190px, 260px 190px, 100% 100%;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--gold); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; line-height: 1.5; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.muted { color: var(--dim); }
.nw { white-space: nowrap; }
.small { font-size: .85em; }
.kicker { font-family: var(--f-latin); font-style: italic; color: var(--gold); font-size: 1.15em; letter-spacing: .04em; }

/* ヘッダー・フッター */
.top { border-bottom: 1px solid var(--line); background: rgba(11,14,42,.7); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 12px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-family: var(--f-display); font-weight: 700; font-size: 1.05em; }
.logo-moon { width: 26px; height: 26px; color: var(--gold); }
.top nav { display: flex; align-items: center; gap: 16px; font-size: .92em; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a.nav-cta { background: var(--gold); color: var(--on-gold); padding: 6px 14px; border-radius: 999px; font-weight: 700; }
.foot { margin-top: 72px; border-top: 1px solid var(--line); padding-block: 36px 48px; }
.foot-in { display: grid; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9em; }

/* ボタン */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  background: radial-gradient(circle at 35% 30%, #f1dcae, var(--gold) 60%, var(--gold-deep));
  color: var(--on-gold); font-weight: 700; text-decoration: none;
}
.btn.big { font-size: 1.1em; min-height: 58px; padding: 14px 32px; }

/* 表紙 */
.hero-in { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-block: 64px 48px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 700; letter-spacing: .03em; margin-top: 8px; }
.hero-sub { margin-top: 10px; color: var(--gold); font-family: var(--f-display); }
.lead { margin-top: 18px; max-width: 36em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 26px; }
.beta { margin-top: 20px; display: inline-block; border: 1px dashed var(--line); border-radius: 12px; padding: 8px 14px; color: var(--dim); font-size: .88em; }
.hero-art { display: grid; place-items: center; }
.moon { width: min(240px, 60vw); aspect-ratio: 1; max-width: 100%; border-radius: 50%; box-shadow: inset -36px 12px 0 0 var(--gold); transform: rotate(-18deg); filter: drop-shadow(0 0 40px rgba(220,191,136,.4)); }

/* セクション */
.sec { padding-top: 64px; display: grid; gap: 14px; }
.sec h2 { font-size: clamp(24px, 4vw, 32px); }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.feat { border-top: 2px solid var(--gold); padding-top: 14px; display: grid; gap: 8px; align-content: start; }
.feat h3 { font-size: 1.2em; }
.feat p { color: var(--dim); font-size: .95em; }
.steps { list-style: none; counter-reset: s; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; font-size: .95em; color: var(--dim); }
.steps li::before { content: counter(s); display: block; font-family: var(--f-latin); font-size: 1.8em; color: var(--gold); line-height: 1.1; }
.steps b { display: block; color: var(--text); font-family: var(--f-display); margin-bottom: 4px; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.plan { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--card); display: grid; gap: 10px; align-content: start; }
.plan.prem { border-color: var(--gold); }
.plan .price { font-family: var(--f-display); font-size: 1.9em; font-weight: 700; }
.plan .price small { font-family: var(--f-body); font-size: .45em; font-weight: 400; color: var(--dim); margin-left: 8px; }
.plan ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: .95em; }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 8px; }
.g-card { display: grid; gap: 4px; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.g-card h3 { font-size: 1.05em; }
.g-card p { color: var(--dim); font-size: .88em; line-height: 1.7; }

/* よくある質問 */
.faq { display: grid; gap: 12px; margin-top: 8px; }
.qa { border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; }
.qa h2, .qa h3 { font-size: 1.05em; margin-bottom: 4px; }
.qa p { color: var(--dim); }

/* 記事 */
.article { max-width: 760px; padding-top: 28px; display: grid; gap: 18px; }
.article h1 { font-size: clamp(26px, 5vw, 36px); }
.article article { display: grid; gap: 22px; }
.article section { display: grid; gap: 12px; }
.article section h2 { font-size: 1.35em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.article ol, .article ul { margin: 0; padding-left: 1.4em; display: grid; gap: 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: .85em; color: var(--dim); }
.crumbs a { color: var(--dim); }
.meta { font-size: .85em; color: var(--dim); }
.summary { border: 1px solid var(--gold); border-radius: 16px; padding: 16px 18px; background: rgba(220,191,136,.06); display: grid; gap: 6px; }
.label { font-size: .78em; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.note { border: 1px solid var(--rose); border-radius: 14px; padding: 12px 16px; background: rgba(230,170,189,.07); }
.cta { margin-top: 36px; border: 1px solid var(--gold); border-radius: 20px; padding: 26px; text-align: center; display: grid; gap: 12px; justify-items: center; background: rgba(220,191,136,.05); }
.cta h2 { font-size: 1.4em; }
.cta p { color: var(--dim); }
.related ul { padding-left: 1.2em; }
.related h2 { font-size: 1.15em; margin-bottom: 8px; }
.g-list { display: grid; gap: 12px; }
.g-row { display: grid; gap: 4px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.g-row h2 { font-size: 1.15em; }
.g-row p { color: var(--dim); font-size: .92em; }
.legal h2 { font-size: 1.1em; color: var(--gold); margin-top: 18px; }
.legal p { margin-top: 6px; }
.draft { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; color: var(--dim); font-size: .9em; }
dl.table { display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); gap: 10px 18px; }
dl.table dt { color: var(--dim); }
dl.table dd { margin: 0; }

@media (max-width: 820px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); padding-block: 40px 24px; }
  .hero-art { order: -1; }
  .moon { width: 120px; }
  .features, .plans { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .top nav { gap: 10px; font-size: .85em; }
  .top nav a:not(.nav-cta):first-child { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  dl.table { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  dl.table dd { margin-bottom: 10px; }
}

/* 夢から深層心理、よりよい毎日へ */
.deep-steps { list-style: none; counter-reset: d; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.deep-steps li { counter-increment: d; position: relative; padding: 18px 16px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--dim); font-size: .95em; }
.deep-steps li::before { content: counter(d); display: block; font-family: var(--f-latin); font-size: 1.8em; color: var(--gold); line-height: 1.1; }
.deep-steps b { display: block; color: var(--text); font-family: var(--f-display); font-size: 1.1em; margin-bottom: 4px; }
.sample { margin: 8px 0 0; border: 1px solid var(--gold); border-radius: 18px; padding: 18px 20px; background: rgba(220,191,136,.05); display: grid; gap: 10px; }
.sample figcaption { font-size: .78em; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.sample-dream { color: var(--dim); font-size: .95em; }
.sample dl { margin: 0; display: grid; gap: 4px 0; }
.sample dt { font-family: var(--f-display); color: var(--gold); margin-top: 6px; }
.sample dd { margin: 0; }
@media (max-width: 820px) { .deep-steps { grid-template-columns: minmax(0, 1fr); } }
/* 右上の「無料で始める」が、狭いスマホで1行に収まるように */
.top nav a.nav-cta { white-space: nowrap; }
@media (max-width: 400px) {
  .top nav a:not(.nav-cta) { display: none; }
  .logo span { font-size: .95em; }
}

/* ---------- 絵で伝えるトップ（2026-11 改訂） ---------- */
/* 日本語を文節で折り返す（「プレミア／ム」のような途中の改行を防ぐ） */
body { word-break: auto-phrase; line-break: strict; overflow-wrap: anywhere; }
.art { display: block; width: min(240px, 80%); height: auto; margin: 0 auto; }
.art.small { width: 160px; }
svg.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.22em; }
.btn svg.ico { width: 24px; height: 24px; margin-right: 8px; stroke-width: 2; }
.btn.rec { box-shadow: 0 0 0 6px rgba(220,191,136,.12), 0 10px 28px -8px rgba(220,191,136,.6); white-space: nowrap; }

/* 表紙：左に絵、右に一言と「夢を記録する」 */
.hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
.hero-img { width: min(380px, 100%); filter: drop-shadow(0 0 36px rgba(220,191,136,.25)); }
.hero .lead { font-size: 1.08em; }
.hero-cta { flex-direction: column; align-items: flex-start; gap: 8px; }

/* 使い方：絵つきの3ステップ */
.how { list-style: none; counter-reset: h; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.how li { counter-increment: h; position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px 14px 18px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.how li::before { content: counter(h); position: absolute; top: 10px; left: 12px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gold); color: var(--on-gold); font-family: var(--f-latin); font-weight: 700; line-height: 1; }
.how .art { width: min(200px, 100%); margin-bottom: 6px; }
.how b { font-family: var(--f-display); font-size: 1.08em; color: var(--text); }
.how span { color: var(--dim); font-size: .9em; }

/* 絵と文の2段組み */
.split { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 28px; align-items: center; }
.split.rev > .art { order: 2; }
.split h2 { margin-top: 2px; }
.split .lead { margin-top: 10px; }

/* アイコンつきの3項目 */
.icon-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.icon-row > div { display: grid; justify-items: center; text-align: center; gap: 2px; padding: 16px 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.icon-row svg.ico { width: 32px; height: 32px; color: var(--gold); margin-bottom: 4px; }
.icon-row b { font-family: var(--f-display); }
.icon-row span { color: var(--dim); font-size: .86em; }
.sample dt svg.ico { color: var(--gold); margin-right: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips span { border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; font-size: .88em; white-space: nowrap; background: var(--card); }

/* 料金 */
.plan ul.ticks { list-style: none; padding: 0; }
.plan ul.ticks li { position: relative; padding-left: 1.5em; }
.plan ul.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; }
.plan h3 { display: flex; align-items: center; gap: 8px; }
.plan h3 svg.ico { color: var(--gold); }
.plan .price small { display: block; margin: 2px 0 0; }
.note-line { display: flex; gap: 10px; align-items: flex-start; color: var(--dim); }
.note-line svg.ico { color: var(--gold); margin-top: .35em; }

/* よくある質問：開け閉めできる形 */
.faq.folded { gap: 10px; }
.faq.folded .qa { border: 1px solid var(--line); border-radius: 14px; padding: 0; background: var(--card); }
.faq.folded summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.faq.folded summary::-webkit-details-marker { display: none; }
.faq.folded summary::after { content: "+"; color: var(--gold); font-size: 1.4em; line-height: 1; flex: none; }
.faq.folded details[open] summary::after { content: "−"; }
.faq.folded .qa h3 { margin: 0; font-size: 1em; }
.faq.folded .qa p { padding: 0 16px 14px; }

@media (max-width: 820px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 24px 8px; text-align: center; }
  .hero-img { width: min(260px, 78%); }
  .hero-cta { align-items: center; }
  .hero-cta .btn { width: min(100%, 360px); }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how li { grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto; justify-items: start; text-align: left; column-gap: 14px; align-items: center; padding: 12px 14px; }
  .how li .art { grid-row: span 2; width: 112px; margin: 0; align-self: center; }
  .how li b { align-self: end; }
  .how li span { align-self: start; }
  .how li::before { top: 8px; left: 8px; width: 24px; height: 24px; font-size: .85em; }
  .split { grid-template-columns: minmax(0, 1fr); gap: 10px; text-align: center; }
  .split > .art, .split.rev > .art { order: -1; width: min(200px, 64%); }
  .chips { justify-content: center; }
  .plan .price { font-size: 1.7em; }
}
@media (max-width: 520px) {
  .sec { padding-top: 48px; }
  .icon-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .icon-row > div { grid-template-columns: 40px minmax(0, 1fr); justify-items: start; text-align: left; column-gap: 12px; padding: 10px 14px; }
  .icon-row > div svg.ico { grid-row: span 2; width: 30px; height: 30px; margin: 0; align-self: center; }
  .plan { padding: 18px; }
  .cta { padding: 22px 16px; }
  .cta .btn { width: min(100%, 360px); }
}

/* ---------- なりたい自分へ（PDCA）と、無料とプレミアムのちがい ---------- */
:root { --c-near: #b8862f; --c-act: #8270d6; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pdca-steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pdca-steps li { position: relative; display: grid; justify-items: center; text-align: center; gap: 2px; padding: 18px 12px 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.pdca-steps li:not(:last-child)::after { content: "›"; position: absolute; right: -11px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4em; line-height: 1; }
.pdca-steps .pd-en { font-family: var(--f-latin); font-style: italic; color: var(--gold); font-size: .95em; line-height: 1.2; }
.pdca-steps svg.ico { width: 30px; height: 30px; color: var(--gold); margin: 4px 0; }
.pdca-steps b { font-family: var(--f-display); font-size: 1.08em; }
.pdca-steps li > span:last-child { color: var(--dim); font-size: .86em; line-height: 1.6; }

.mock { margin: 8px 0 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: center; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; background: rgba(0,0,0,.18); }
.mock figcaption { grid-column: 1 / -1; font-size: .78em; letter-spacing: .14em; color: var(--gold); font-weight: 700; }
.mock-kpi, .mock-feel { display: grid; gap: 6px; min-width: 0; }
.mock-label { display: flex; align-items: center; gap: 6px; font-size: .8em; color: var(--dim); line-height: 1.4; }
.mock-num { font-family: var(--f-body); font-size: 48px; font-weight: 700; line-height: 1; }
.mock-num small { font-size: .42em; font-weight: 500; color: var(--dim); margin-left: 2px; }
.mock-sub { font-size: .78em; color: var(--dim); }
.key { display: inline-block; width: 14px; height: 0; border-top: 2px solid var(--c-near); border-radius: 2px; flex: none; }
.meter { display: block; height: 8px; border-radius: 999px; background: color-mix(in srgb, var(--c-near) 26%, transparent); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--c-near); }
.moons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.moons > span { display: grid; justify-items: center; gap: 2px; }
.moons small { font-size: .68em; color: var(--dim); white-space: nowrap; }
.moon-ph .bg { fill: rgba(255,255,255,.05); stroke: var(--gold); stroke-width: 1.2; }
.moon-ph .lit { fill: var(--gold); }

.cmp { display: grid; margin-top: 8px; max-width: 640px; }
.cmp-row { display: grid; grid-template-columns: minmax(0, 1fr) 84px 120px; align-items: center; column-gap: 6px; border-bottom: 1px solid rgba(255,255,255,.08); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-label { display: flex; align-items: center; gap: 10px; padding: 12px 0; line-height: 1.5; min-width: 0; }
.cmp-label svg.ico { color: var(--gold); width: 20px; height: 20px; }
.cmp-label small { display: block; font-size: .8em; color: var(--dim); }
.cmp-free, .cmp-prem { display: grid; justify-items: center; align-content: center; text-align: center; align-self: stretch; padding: 8px 2px; }
.cmp-prem { background: rgba(220,191,136,.09); border-left: 1px solid rgba(220,191,136,.35); border-right: 1px solid rgba(220,191,136,.35); }
.cmp-head .cmp-free, .cmp-head .cmp-prem { font-size: .88em; font-weight: 700; padding: 12px 2px 10px; white-space: nowrap; }
.cmp-head .cmp-prem { border-top: 1px solid rgba(220,191,136,.35); border-radius: 14px 14px 0 0; color: var(--gold); display: flex; justify-content: center; align-items: center; gap: 4px; }
.cmp-head .cmp-prem svg.ico { width: 16px; height: 16px; }
.cmp-price .cmp-prem { border-bottom: 1px solid rgba(220,191,136,.35); border-radius: 0 0 14px 14px; }
.cmp-price .cmp-label { font-weight: 700; }
.cmp-price b { font-family: var(--f-display); font-size: 1.15em; }
.cmp-price small { font-size: .72em; color: var(--dim); white-space: nowrap; }
.cmp-yes { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--dim); color: var(--dim); }
.cmp-yes.prem { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.cmp-yes svg.ico { width: 15px; height: 15px; stroke-width: 2.6; vertical-align: 0; }
.cmp-no { color: rgba(255,255,255,.3); }
.cmp-txt { font-size: .8em; line-height: 1.45; }
.cmp-free .cmp-txt { color: var(--dim); }

@media (max-width: 820px) {
  .pdca-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pdca-steps li:nth-child(2)::after { display: none; }
  .mock { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .pdca-steps { gap: 10px; }
  .pdca-steps li { padding: 14px 8px 12px; }
  .pdca-steps li::after { display: none; }
  .pdca-steps li > span:last-child { font-size: .8em; }
  .cmp-row { grid-template-columns: minmax(0, 1fr) 60px 84px; column-gap: 4px; }
  .cmp-label { font-size: .88em; gap: 8px; }
  .cmp-label svg.ico { width: 17px; height: 17px; }
  .cmp-head .cmp-free, .cmp-head .cmp-prem { font-size: .8em; }
  .cmp-txt { font-size: .72em; }
  .cmp-yes { width: 24px; height: 24px; }
}

/* ---------- 夢占い辞典 ---------- */
.article.wide { max-width: 1040px; }
.uranai-head { margin-top: 4px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-size: .9em; white-space: nowrap; }
.cat-nav svg.ico { color: var(--gold); width: 18px; height: 18px; }
.sym-group { display: grid; gap: 10px; scroll-margin-top: 80px; }
.sym-group h2 { display: flex; align-items: center; gap: 8px; font-size: 1.25em; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.sym-group h2 svg.ico { color: var(--gold); }
.sym-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sym-card { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.sym-card b { font-family: var(--f-display); font-size: 1.05em; }
.sym-card span { color: var(--dim); font-size: .86em; line-height: 1.6; }
.sym-card:hover { border-color: var(--gold); }
.sym-head { display: grid; gap: 10px; }
.sym-sum { font-family: var(--f-display); font-size: 1.15em; }
.article section h2 svg.ico { color: var(--gold); margin-right: 6px; }
dl.cases { margin: 0; display: grid; gap: 4px; }
dl.cases dt { font-family: var(--f-display); font-weight: 600; color: var(--gold); margin-top: 8px; }
dl.cases dd { margin: 0; }
.sym-msg { border: 1px solid var(--gold); border-radius: 16px; padding: 16px 18px; background: rgba(220,191,136,.06); text-align: center; }
.sym-msg p { font-family: var(--f-display); font-size: 1.15em; }
.sym-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.sym-links a { padding: 4px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-size: .9em; white-space: nowrap; }

/* トップの夢占い・お悩み相談室 */
.chips.links a { border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; font-size: .88em; white-space: nowrap; background: var(--card); color: var(--text); text-decoration: none; }
.sec .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.sec-cta { margin-top: 14px; }

@media (max-width: 520px) {
  .sym-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .sym-card { padding: 12px; }
  .sym-card span { font-size: .8em; }
  .cat-nav a { padding: 5px 12px; font-size: .86em; }
  .top nav a:not(.nav-cta) { display: none; }
}

/* 長い文章はふつうの折り返し（文節で折ると右端ががたつくため）。見出し・ボタン・短い言葉は文節で折り返す */
p, dd, li { word-break: normal; }
.hero p, .lead, .sym-sum, .sym-msg p, .cta p, .pdca-steps li, .how li, .icon-row span, .note-line, .chips, .mock-label, .muted.small { word-break: auto-phrase; }

/* ---------- ヘッダーのメニュー・2回目以降の方への表示 ---------- */
html:not(.returning) .for-back, html.returning .for-new { display: none !important; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); font-size: .88em; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg.ico { width: 20px; height: 20px; vertical-align: 0; }
.menu[open] summary { border-color: var(--gold); color: var(--gold); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; width: min(300px, calc(100vw - 32px)); max-height: calc(100vh - 90px); overflow-y: auto; padding: 10px; border-radius: 16px; border: 1px solid var(--line); background: #141034; box-shadow: 0 18px 40px -12px rgba(0,0,0,.7); display: grid; gap: 2px; }
.menu-panel a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .95em; line-height: 1.4; }
.menu-panel a:hover, .menu-panel a:focus-visible { background: rgba(220,191,136,.1); }
.menu-panel svg.ico { color: var(--gold); width: 18px; height: 18px; vertical-align: 0; }
.menu-label { font-size: .72em; letter-spacing: .14em; color: var(--gold); padding: 8px 10px 2px; font-weight: 700; }

.today-menu { display: grid; justify-items: center; gap: 12px; text-align: center; padding-top: 28px; }
.today-menu h2 { font-size: clamp(22px, 4.5vw, 30px); }
.today-menu .btn { width: min(100%, 360px); }
.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 720px; }
.quick a { display: grid; justify-items: center; gap: 2px; padding: 14px 6px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.quick svg.ico { width: 28px; height: 28px; color: var(--gold); margin-bottom: 2px; }
.quick b { font-family: var(--f-display); font-size: .95em; white-space: nowrap; }
.quick span { color: var(--dim); font-size: .76em; }
.center-cta { display: flex; justify-content: center; margin-top: 8px; }
.center-cta .btn { width: min(100%, 360px); }

@media (max-width: 520px) {
  .top-actions { gap: 8px; }
  .menu-word { display: none; }
  .menu summary { width: 38px; padding: 0; justify-content: center; }
  .quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- 明晰夢のよい効果 ---------- */
.benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.benefit { display: grid; gap: 6px; align-content: start; padding: 16px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.benefit svg.ico { width: 30px; height: 30px; color: var(--gold); }
.benefit h3 { font-size: 1.05em; }
.benefit p { color: var(--dim); font-size: .9em; line-height: 1.8; }
@media (max-width: 820px) { .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .benefit-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .benefit { grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 14px; }
  .benefit svg.ico { grid-row: span 2; width: 28px; height: 28px; }
}

.center { text-align: center; }

/* ---------- 動き（端末で「視差効果を減らす／動きを減らす」にしている方には出さない） ---------- */
.hero { position: relative; overflow: hidden; }
.shoot { position: absolute; top: 14%; left: 62%; width: 150px; height: 1.5px; border-radius: 999px; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, rgba(243,220,168,.95), rgba(243,220,168,0)); transform: rotate(-20deg); }
@media (prefers-reduced-motion: no-preference) {
  :root { --ease: cubic-bezier(.2, .7, .2, 1); }
  html { scroll-behavior: smooth; }

  /* 星がまたたく（背景の星とは別の、ゆっくり明るくなったり暗くなったりする星） */
  body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .15; }
  body::before {
    background-image:
      radial-gradient(1.6px 1.6px at 44px 64px, rgba(255,255,255,.95), transparent 60%),
      radial-gradient(1.2px 1.2px at 210px 150px, rgba(243,220,168,.95), transparent 60%),
      radial-gradient(1px 1px at 132px 24px, rgba(255,255,255,.9), transparent 60%);
    background-size: 300px 220px;
    animation: twinkle 4.6s ease-in-out infinite alternate;
  }
  body::after {
    background-image:
      radial-gradient(1.3px 1.3px at 80px 180px, rgba(230,170,189,.95), transparent 60%),
      radial-gradient(1.6px 1.6px at 270px 40px, rgba(255,255,255,.95), transparent 60%);
    background-size: 340px 260px;
    animation: twinkle 6.2s ease-in-out -3s infinite alternate;
  }
  @keyframes twinkle { to { opacity: .9; } }

  /* 表紙：文字が順にふわっと、絵はゆっくり浮かぶ、ときどき流れ星 */
  .hero-text > * { animation: rise .9s var(--ease) backwards; }
  .hero-text > :nth-child(2) { animation-delay: .12s; }
  .hero-text > :nth-child(3) { animation-delay: .24s; }
  .hero-text > :nth-child(4) { animation-delay: .36s; }
  .hero-text > :nth-child(5) { animation-delay: .48s; }
  .hero-art { animation: fade 1.6s ease backwards; }
  .hero-img { animation: float 7s ease-in-out infinite; }
  .shoot { animation: shoot 11s ease-in 3s infinite; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
  @keyframes fade { from { opacity: 0; } }
  @keyframes float { 50% { translate: 0 -10px; } }
  @keyframes shoot {
    0% { opacity: 0; transform: translate(0, 0) rotate(-20deg); }
    2% { opacity: 1; }
    9% { opacity: 0; transform: translate(-300px, 109px) rotate(-20deg); }
    100% { opacity: 0; transform: translate(-300px, 109px) rotate(-20deg); }
  }

  /* 夢を記録するボタン：まわりに光の輪が広がる */
  .btn.rec { position: relative; }
  .btn.rec::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1.5px solid var(--gold); pointer-events: none; animation: ring 2.8s ease-out infinite; }
  @keyframes ring { from { opacity: .75; transform: scale(1); } to { opacity: 0; transform: scale(1.12, 1.45); } }

  /* スクロールすると、順にふわっと出る（JavaScript が html に motion をつけたときだけ） */
  .motion .rv {
    opacity: 0; transform: translateY(22px);
    transition: opacity .8s var(--ease) calc(var(--rv-i, 0) * 90ms), transform .8s var(--ease) calc(var(--rv-i, 0) * 90ms),
      translate .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease;
  }
  .motion .rv.in { opacity: 1; transform: none; }
  .motion .mock .meter i { transform-origin: left center; transform: scaleX(0); transition: transform 1.2s var(--ease) .35s; }
  .motion .mock.in .meter i { transform: none; }

  /* さわれるもの：指やマウスをのせると少し浮く */
  .btn, .g-card, .g-row, .sym-card, .quick a, .benefit, .cat-nav a, .sym-links a, .chips.links a, .top nav a.nav-cta {
    transition: translate .25s ease, border-color .25s ease, box-shadow .25s ease, background-color .25s ease, filter .25s ease;
  }
  @media (hover: hover) {
    .btn:hover, .top nav a.nav-cta:hover { translate: 0 -2px; filter: brightness(1.06); box-shadow: 0 12px 28px -12px rgba(220,191,136,.55); }
    .g-card:hover, .g-row:hover, .sym-card:hover, .quick a:hover, .benefit:hover, .cat-nav a:hover, .sym-links a:hover, .chips.links a:hover {
      translate: 0 -3px; border-color: var(--gold); box-shadow: 0 14px 30px -18px rgba(220,191,136,.5);
    }
  }
  .btn:active { translate: 0 0; scale: .98; }

  /* メニュー・よくある質問を開いたとき */
  .menu[open] .menu-panel { animation: drop .22s var(--ease) backwards; transform-origin: top right; }
  .faq.folded details[open] > :not(summary) { animation: fade .4s ease backwards; }
  @keyframes drop { from { opacity: 0; transform: translateY(-6px) scale(.97); } }
}
@media print { .motion .rv { opacity: 1 !important; transform: none !important; } }

/* ---------- ドリームソウル診断（/shindan/） ---------- */
.sd button { font: inherit; cursor: pointer; }
.sd .btn { border: 0; }
.sd .btn svg.ico { width: 22px; height: 22px; margin-right: 8px; }
.sd .btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.sd-hero { display: grid; gap: 14px; justify-items: start; padding: 8px 0 6px; }
.sd-app { display: grid; gap: 16px; }
.sd-q { display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--card); }
.sd-prog { height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: hidden; }
.sd-prog i { display: block; height: 100%; background: var(--gold); transition: width .4s; }
.sd-count { color: var(--gold); font-size: .85em; letter-spacing: .1em; }
.sd-q h2 { font-size: 1.35em; }
.sd-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sd-choices.many { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 420px) { .sd-choices.many { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sd-choice { min-height: 58px; padding: 10px 12px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); font-size: .98em; line-height: 1.45; word-break: auto-phrase; }
.sd-choice:hover, .sd-choice:focus-visible { border-color: var(--gold); background: rgba(220,191,136,.1); }
.sd-back { justify-self: start; background: none; border: 0; color: var(--dim); text-decoration: underline; padding: 6px 0; }
.sd-reveal { display: grid; justify-items: center; gap: 18px; padding: 48px 0; text-align: center; color: var(--dim); }
.sd-orb { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #f6e7c4, var(--gold) 45%, rgba(220,191,136,0) 72%); }
.sd-result { --soul: var(--gold); display: grid; gap: 14px; justify-items: center; text-align: center; padding: 22px 18px; border: 1.5px solid var(--gold); border-radius: 24px; background: linear-gradient(180deg, color-mix(in srgb, var(--soul) 16%, transparent), rgba(255,255,255,.03) 45%); }
.sd-glyph-big { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; border: 2px solid #e9cf98; box-shadow: 0 0 0 10px rgba(220,191,136,.08), 0 0 40px color-mix(in srgb, var(--soul) 45%, transparent); font-family: var(--f-display); font-weight: 700; font-size: 66px; color: #f6e7c4; background: color-mix(in srgb, var(--soul) 16%, transparent); }
.sd-no { color: var(--dim); font-size: .9em; letter-spacing: .08em; }
.sd-name { font-family: var(--f-display); font-size: clamp(30px, 7vw, 42px); line-height: 1.35; display: grid; }
.sd-name span { font-size: .62em; color: var(--gold); }
.sd-en { font-family: var(--f-latin); font-style: italic; color: var(--dim); font-size: 1.2em; }
.sd-catch { font-size: 1.08em; word-break: auto-phrase; }
.sd-share { width: 100%; display: grid; gap: 10px; justify-items: stretch; padding: 14px 0 6px; }
.sd-card { width: min(100%, 360px); justify-self: center; aspect-ratio: 1080 / 1350; border-radius: 16px; background: rgba(0,0,0,.25); box-shadow: 0 16px 40px rgba(0,0,0,.4); }
.sd-share-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
.sd-share-row .btn { padding: 10px 8px; min-height: 48px; font-size: .9em; }
.sd-sec { width: 100%; text-align: left; display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.sd-sec h3 { color: var(--gold); font-size: 1em; }
.sd-sec p { word-break: auto-phrase; }
.sd-facts { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sd-facts > div, .sd-msg { display: grid; gap: 4px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.05); border: 1px solid var(--line); text-align: left; }
.sd-facts span, .sd-msg span, .sd-partner span { color: var(--dim); font-size: .8em; }
.sd-swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 1px solid rgba(255,255,255,.5); }
.sd-msg { width: 100%; text-align: center; border-color: var(--gold); }
.sd-msg b { font-family: var(--f-display); font-size: 1.1em; }
.sd-partner { width: 100%; display: grid; gap: 2px; padding: 14px; border-radius: 16px; border: 1px dashed var(--gold); color: var(--text); text-decoration: none; }
.sd-partner b { font-family: var(--f-display); font-size: 1.15em; }
.sd-partner small { color: var(--gold); }
.sd-again { display: grid; gap: 8px; justify-items: center; padding-top: 6px; }
.sd-parts h3 { color: var(--gold); margin-top: 6px; }
.sd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.sd-item { display: grid; gap: 4px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
.sd-item b { font-family: var(--f-display); font-size: 1.08em; display: flex; align-items: center; gap: 8px; }
.sd-item small { font-family: var(--f-latin); font-style: italic; color: var(--dim); font-weight: 500; }
.sd-item span { color: var(--dim); font-size: .88em; word-break: auto-phrase; }
.sd-glyph { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--gold); font-style: normal; font-size: .9em; color: var(--gold); }
.sd-toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 999px; background: #241838; border: 1px solid var(--gold); color: var(--text); font-size: .9em; transition: opacity .25s, translate .25s; z-index: 60; }
.sd-toast.on { opacity: 1; translate: -50% 0; }
@media (prefers-reduced-motion: no-preference) {
  .sd-q, .sd-result { animation: sd-in .5s cubic-bezier(.2,.7,.2,1) both; }
  @keyframes sd-in { from { opacity: 0; translate: 0 12px; } }
  .sd-orb { animation: sd-orb 1.6s ease-in-out infinite; }
  @keyframes sd-orb { 50% { scale: 1.18; opacity: .7; } }
  .sd-glyph-big { animation: sd-glow 4s ease-in-out infinite; }
  @keyframes sd-glow { 50% { box-shadow: 0 0 0 14px rgba(220,191,136,.12), 0 0 60px color-mix(in srgb, var(--soul) 60%, transparent); } }
}

/* トップの「ドリームソウル診断」の入口 */
.sd-banner-wrap { padding-top: 8px; }
.sd-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 22px; border: 1.5px solid var(--gold); background: linear-gradient(120deg, rgba(220,191,136,.16), rgba(230,170,189,.08)); color: var(--text); text-decoration: none; }
.sd-banner-glyphs { display: flex; }
.sd-banner-glyphs i { width: 42px; height: 42px; margin-right: -10px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid #e9cf98; background: #241838; font-style: normal; font-family: var(--f-display); font-weight: 700; color: #f6e7c4; }
.sd-banner-text { display: grid; gap: 2px; padding-left: 10px; }
.sd-banner-text small { color: var(--gold); font-size: .75em; letter-spacing: .08em; }
.sd-banner-text b { font-family: var(--f-display); font-size: 1.2em; }
.sd-banner-text span { color: var(--dim); font-size: .86em; word-break: auto-phrase; }
.sd-banner-go { color: var(--gold); font-weight: 700; white-space: nowrap; }
@media (max-width: 480px) { .sd-banner { grid-template-columns: auto minmax(0, 1fr); } .sd-banner-go { grid-column: 1 / -1; justify-self: end; } }
/* 診断：どの選択肢もちがうときの自由記入 */
.sd-free { display: grid; gap: 8px; padding-top: 12px; border-top: 1px dashed var(--line); }
.sd-free-label { color: var(--dim); font-size: .88em; }
.sd-free-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.sd-free-field { position: relative; display: block; min-width: 0; }
.sd-free-field input { width: 100%; min-height: 50px; padding: 10px 52px 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font: inherit; font-size: 16px; }
.sd-free-field input::placeholder { color: var(--dim); opacity: .8; }
.sd-mic { position: absolute; right: 6px; top: 50%; translate: 0 -50%; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.08); color: var(--gold); padding: 0; }
.sd-mic svg { width: 19px; height: 19px; }
.sd-mic[aria-pressed="true"] { background: var(--gold); color: var(--on-gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(220,191,136,.22); }
.sd-free-row .btn { min-height: 50px; padding: 10px 16px; font-size: .92em; }
.sd-free-err { color: #f0a0aa; font-size: .85em; min-height: 0; }
.sd-free-err:empty { display: none; }

/* 診断を目立たせる：上のメニューの金色の「診断」・メニューの最上位 */
.nav-hot { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold) !important; background: rgba(220,191,136,.1); font-weight: 700; }
.nav-hot svg.ico { width: 16px; height: 16px; }
.nav-hot small { font-size: .62em; padding: 1px 5px; border-radius: 6px; background: var(--gold); color: var(--on-gold); letter-spacing: .04em; }
.menu-hot { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; margin: 4px 0 10px; padding: 12px 14px !important; border-radius: 16px; border: 1.5px solid var(--gold); background: linear-gradient(120deg, rgba(220,191,136,.18), rgba(230,170,189,.1)); }
.menu-hot span { display: grid; gap: 2px; }
.menu-hot b { font-family: var(--f-display); color: var(--text); }
.menu-hot small { color: var(--dim); font-size: .78em; }
.menu-hot em { font-style: normal; font-size: .7em; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--gold); color: var(--on-gold); }
/* スマホでも、上の帯に金色の「診断」を出す（ほかのリンクはメニューへ） */
@media (max-width: 900px) {
  .top nav a.nav-hot { display: inline-flex !important; padding: 5px 10px; font-size: .86em; white-space: nowrap; }
}
.top .logo span { white-space: nowrap; }
@media (max-width: 430px) {
  .top nav a.nav-hot { padding: 5px 9px; gap: 2px; }
  .top nav a.nav-hot small { display: none; }
  .top nav { gap: 6px; }
}
@media (max-width: 380px) {
  .top nav a.nav-hot svg.ico { display: none; }
  .top .logo span { font-size: .9em; }
}
@media (max-width: 480px) { .sd-free-row { grid-template-columns: minmax(0, 1fr); } .sd-free-row .btn { width: 100%; } }

/* 紋章（家紋のような絵） */
.sd-emblem { line-height: 0; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--soul) 50%, transparent)); }
.sd-emblem svg { display: block; width: 168px; height: 168px; }
.sd-animal { display: inline-block; line-height: 0; border-radius: 50%; box-shadow: 0 0 0 1px var(--gold); }
.sd-animal svg { display: block; }
.sd-banner-glyphs i { overflow: hidden; padding: 0; }
.sd-banner-glyphs i svg { width: 100%; height: 100%; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .sd-emblem { animation: sd-emblem-in .9s cubic-bezier(.2,.7,.2,1) both, sd-float 6s ease-in-out 1s infinite; }
  @keyframes sd-emblem-in { from { opacity: 0; scale: .7; rotate: -12deg; } }
  @keyframes sd-float { 50% { translate: 0 -6px; } }
}
/* 結果を見ているあいだは、はじめの案内を隠す（display の指定より hidden を優先） */
.sd-hero[hidden], .sd-app[hidden] { display: none !important; }

/* 診断の回数の案内 */
.sd-quota { color: var(--gold); font-size: .88em; }
.sd-quota:empty { display: none; }
.sd-limit { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 24px 18px; border: 1.5px solid var(--gold); border-radius: 24px; background: rgba(220,191,136,.06); }
.sd-limit p { word-break: auto-phrase; }

/* 夜空：北斗七星と流星群（うしろの飾り。動きを減らす設定では、流れ星を出さず星座も止める） */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.dipper { position: absolute; top: 84px; right: max(14px, 4vw); width: clamp(120px, 17vw, 230px); height: auto; opacity: .8; overflow: visible; }
.dipper-line { fill: none; stroke: rgba(220,191,136,.35); stroke-width: .6; stroke-linecap: round; stroke-linejoin: round; }
.dipper .ds { fill: #fff6df; }
.dipper .ds-glow { fill: rgba(243,220,168,.16); }
.meteor { position: absolute; left: var(--x); top: var(--y); width: 150px; height: 1.6px; border-radius: 999px; opacity: 0; background: linear-gradient(90deg, #fff, rgba(243,220,168,.6) 30%, rgba(255,255,255,0)); box-shadow: 0 0 6px rgba(255,246,223,.7); transform: rotate(-32deg); transform-origin: left center; display: none; }
@media (prefers-reduced-motion: no-preference) {
  .meteor { display: block; animation: meteor 24s linear var(--d) infinite; }
  @keyframes meteor {
    0% { opacity: 0; transform: rotate(-32deg) translateX(0); }
    1% { opacity: 1; }
    6% { opacity: 0; transform: rotate(-32deg) translateX(-460px); }
    100% { opacity: 0; transform: rotate(-32deg) translateX(-460px); }
  }
  .dipper-line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: dipper-draw 4s ease-out 1s forwards; }
  @keyframes dipper-draw { to { stroke-dashoffset: 0; } }
  .dipper .ds, .dipper .ds-glow { animation: dipper-twinkle 5s ease-in-out calc(var(--i) * .6s) infinite; transform-box: fill-box; transform-origin: center; }
  @keyframes dipper-twinkle { 50% { opacity: .45; scale: .8; } }
}
@media (max-width: 600px) {
  .dipper { top: 70px; width: 118px; opacity: .65; }
  .meteor { width: 100px; }
  .meteor:nth-child(n+7) { display: none !important; }
}
@media print { .sky { display: none; } }

/* 南十字星（左下の南の空） */
.crux { position: absolute; left: max(14px, 4vw); bottom: 6vh; width: clamp(84px, 11vw, 150px); height: auto; opacity: .75; overflow: visible; }
.crux-line { fill: none; stroke: rgba(220,191,136,.32); stroke-width: .7; stroke-linecap: round; }
.crux .ds { fill: #fff6df; }
.crux .ds-glow { fill: rgba(243,220,168,.16); }
@media (prefers-reduced-motion: no-preference) {
  .crux-line { stroke-dasharray: 100; stroke-dashoffset: 100; animation: dipper-draw 3.5s ease-out 2.5s forwards; }
  .crux .ds, .crux .ds-glow { animation: dipper-twinkle 6s ease-in-out calc(var(--i) * .7s + .3s) infinite; transform-box: fill-box; transform-origin: center; }
}
@media (max-width: 600px) { .crux { width: 80px; opacity: .6; } }

/* 動く夜空の舞台（三日月・星・北斗七星・流星群・丘）。あいさつのまわりに */
.night-stage { position: relative; overflow: hidden; isolation: isolate; width: 100%; border-radius: 24px; border: 1px solid var(--line); padding: 30px 18px 58px; display: grid; justify-items: center; gap: 4px; text-align: center; background: radial-gradient(ellipse 70% 60% at 78% 8%, rgba(243,220,168,.16), transparent 70%), linear-gradient(180deg, #0b0e2a 0%, #1a1440 60%, #2a1c4a 100%); box-shadow: 0 16px 40px rgba(0,0,0,.3); }
.night-stage > :not(.ns-sky) { position: relative; z-index: 1; }
.ns-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.ns-moon { position: absolute; top: 18px; right: 22px; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset -13px 5px 0 0 #f3dca8; filter: drop-shadow(0 0 14px rgba(243,220,168,.55)); }
.ns-dipper { position: absolute; top: 16px; left: 16px; width: 96px; opacity: .85; overflow: visible; }
.ns-dipper path { fill: none; stroke: rgba(220,191,136,.4); stroke-width: .8; }
.ns-dipper circle { fill: #fff6df; }
.ns-star { position: absolute; left: var(--x); top: var(--y); width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.8); opacity: .75; }
.ns-meteor { position: absolute; left: var(--x); top: var(--y); width: 120px; height: 2px; border-radius: 999px; opacity: 0; background: linear-gradient(90deg, #fff, rgba(243,220,168,.7) 30%, rgba(255,255,255,0)); box-shadow: 0 0 8px rgba(255,246,223,.8); transform: rotate(-32deg); transform-origin: left center; display: none; }
.ns-hills { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 46px; }
@media (prefers-reduced-motion: no-preference) {
  .ns-meteor { display: block; animation: ns-meteor 7s linear var(--d) infinite; }
  @keyframes ns-meteor {
    0% { opacity: 0; transform: rotate(-32deg) translateX(0); }
    2% { opacity: 1; }
    16% { opacity: 0; transform: rotate(-32deg) translateX(-380px); }
    100% { opacity: 0; transform: rotate(-32deg) translateX(-380px); }
  }
  .ns-star { animation: ns-twinkle 3.6s ease-in-out var(--d) infinite; }
  @keyframes ns-twinkle { 50% { opacity: .2; scale: .6; } }
  .ns-moon { animation: ns-moon 8s ease-in-out infinite; }
  @keyframes ns-moon { 50% { filter: drop-shadow(0 0 22px rgba(243,220,168,.8)); translate: 0 -3px; } }
  .ns-dipper circle { animation: dipper-twinkle 5s ease-in-out calc(var(--i) * .5s) infinite; transform-box: fill-box; transform-origin: center; }
}
@media print { .ns-sky { display: none; } }

.hero > .wrap { position: relative; z-index: 1; }
.hero-sky .ns-star { opacity: .6; }

/* キャラクター Pafo（パフォ）。画像の四角い背景は、ふちを夜空に溶けこませる */
.pafo { display: block; flex: none; line-height: 0; }
.pafo img { display: block; width: 100%; height: auto; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 58%, transparent 100%); }
.night-stage.has-pafo { grid-template-columns: auto minmax(0, 1fr); align-items: center; justify-items: start; text-align: left; column-gap: 8px; padding: 22px 14px 48px; }
.night-stage.has-pafo .pafo { width: clamp(118px, 32vw, 200px); margin: 6px 0 -10px -6px; }
.pafo-say { position: relative; justify-self: stretch; display: grid; gap: 2px; padding: 12px 14px; border-radius: 18px; background: rgba(15, 12, 40, .55); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.pafo-say::before { content: ""; position: absolute; left: -9px; top: 42%; width: 16px; height: 16px; background: rgba(15, 12, 40, .55); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg); }
.pafo-name { font-size: .72em; letter-spacing: .12em; color: var(--gold); }
@media (prefers-reduced-motion: no-preference) {
  .pafo img { animation: pafo-float 5.5s ease-in-out infinite; }
  @keyframes pafo-float { 50% { translate: 0 -8px; rotate: -2deg; } }
  .pafo-say { animation: pafo-say-in .8s cubic-bezier(.2,.7,.2,1) .4s both; }
  @keyframes pafo-say-in { from { opacity: 0; translate: -10px 0; scale: .92; } }
}

.pafo-hero { width: min(78vw, 360px); margin: 0 auto; filter: drop-shadow(0 18px 40px rgba(120, 90, 220, .35)); }
.today-menu .night-stage.has-pafo h2 { font-size: clamp(20px, 5vw, 28px); }
/* Pafo を大きめに・ふちの溶け方をやわらかく（スマホでは舞台の北斗七星は休み） */
.pafo img { -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 66%, transparent 100%); }
.night-stage.has-pafo .pafo { width: clamp(138px, 38vw, 220px); }
@media (max-width: 600px) { .night-stage.has-pafo .ns-dipper { display: none; } }
/* 吹き出しの中は、幅に合わせて折り返す（名前が長くても切れない） */
.pafo-say { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.pafo-say > * { min-width: 0; overflow-wrap: anywhere; }
.pafo-say .say-name { display: inline-block; max-width: 100%; }
@media (max-width: 400px) {
  .night-stage.has-pafo { column-gap: 4px; padding-left: 10px; padding-right: 10px; }
  .night-stage.has-pafo .pafo { width: 112px; margin-left: -4px; }
  .pafo-say { padding: 10px 12px; }
}
