/* 命紋診断：夜の紺に星と光のにじみ。「星をたどって読む、私の命紋」
   文字色と背景の比率は tools/check-contrast.mjs で計算して確かめる。 */
:root {
  --night: #101a30;      /* 夜の紺：基本の背景 */
  --deep: #0c1425;       /* 深い夜：画面の端 */
  --panel: rgba(25, 40, 62, .62);  /* 読む面（すりガラス） */
  --panel-solid: #19283e;
  --line: rgba(184, 155, 98, .28); /* 金の細線：装飾 */
  --moon: #e7edf0;       /* 月白：本文 */
  --sub: #b3bfcd;        /* 補助文字 */
  --gold: #b89b62;       /* 星の金：強調・主ボタン */
  --gold-soft: #dfc995;
  --shu: #b89b62;        /* 朱：フクロウと「今月」 */
  --field: #8391b8;      /* 入力枠 */
  --err: #ff9b8f;
  --ok: #9fe0c0;
  --focus: #9cc3ff;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --gutter: 20px;
  color-scheme: dark;
}
@media (max-width: 340px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
/* 背景は html に塗る（body に塗ると、後ろに置いた星空の canvas を覆ってしまう） */
html { -webkit-text-size-adjust: 100%; background: radial-gradient(120% 80% at 50% 0%, #21324a 0%, var(--night) 45%, var(--deep) 100%) fixed var(--deep); }
body { margin: 0; min-height: 100vh; color: var(--moon); font: 400 16px/1.8 var(--sans); overflow-wrap: anywhere; background: transparent; }
h1, h2, h3, p, ul, ol, dl, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
a { color: var(--moon); text-underline-offset: 3px; text-decoration-color: rgba(184, 155, 98, .7); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }

/* ── 夜空（星は app.js が canvas に描く。瞬く星とオーラはCSS） ── */
.sky { position: fixed; inset: 0; z-index: -2; pointer-events: none; }
.sky canvas { width: 100%; height: 100%; display: block; }
.aura { position: fixed; inset: -20%; z-index: -1; pointer-events: none; filter: blur(60px); opacity: .55;
  background:
    radial-gradient(38% 30% at 22% 18%, rgba(101, 122, 142, .55), transparent 70%),
    radial-gradient(30% 26% at 82% 34%, rgba(47, 111, 208, .45), transparent 70%),
    radial-gradient(34% 30% at 50% 88%, rgba(184, 155, 98, .18), transparent 70%);
  animation: drift 48s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(3%, -2%, 0) scale(1.06); } }
.twinkle { position: fixed; width: 3px; height: 3px; border-radius: 50%; background: #fff; z-index: -1; pointer-events: none;
  box-shadow: 0 0 6px 2px rgba(240, 217, 155, .7); animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .15; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.15); } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--moon); color: var(--night); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.beta { font: 600 11px/1 var(--sans); color: var(--gold); border: 1px solid var(--line); border-radius: 999px; padding: 4px 7px; margin-left: 8px; letter-spacing: .08em; }
.foot { max-width: 720px; margin: 0 auto; padding: 20px var(--gutter) 40px; border-top: 1px solid rgba(170, 180, 205, .14); font-size: 12px; line-height: 1.7; color: var(--sub); }
.has-resultnav .foot { padding-bottom: 96px; }
.noscript { padding: 20px var(--gutter); }

/* ── 外枠 ── */
.shell { max-width: 720px; margin: 0 auto; }
main { padding: 8px var(--gutter) 56px; outline: none; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 12px var(--gutter); min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 600 21px/1 var(--serif); letter-spacing: .12em; color: var(--moon); }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px var(--line), 0 0 14px rgba(184, 155, 98, .45); }
.topbar .spacer { flex: 1; }
.topbar .context { font-size: 12px; color: var(--sub); letter-spacing: .02em; min-width: 0; line-height: 1.4; }
.brand { flex: 0 0 auto; white-space: nowrap; }
.iconlink { min-height: 48px; min-width: 48px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; font-size: 14px; font-weight: 600; background: none; border: 0; cursor: pointer; color: var(--moon); text-decoration: underline; text-decoration-color: rgba(184, 155, 98, .7); text-underline-offset: 3px; }

/* ── 文字 ── */
.eyebrow { font-size: 13px; font-weight: 600; color: var(--gold); line-height: 1.5; letter-spacing: .14em; }
.display { font: 600 32px/1.5 var(--serif); letter-spacing: .06em; text-shadow: 0 0 24px rgba(101, 122, 142, .55); }
.h1 { font: 600 25px/1.55 var(--serif); letter-spacing: .04em; }
.h2 { font: 600 20px/1.55 var(--serif); letter-spacing: .03em; }
.lead { font-size: 16px; }
.note { font-size: 13px; line-height: 1.7; color: var(--sub); }
.sub { color: var(--sub); }
.stack > * + * { margin-top: 24px; }
.stack-s > * + * { margin-top: 12px; }
.section { margin-top: 44px; }
.prose { max-width: 40em; }
strong { color: var(--gold-soft); font-weight: 600; }

/* ── 操作 ── */
.btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--gold)); color: var(--night);
  font-weight: 700; letter-spacing: .06em; text-decoration: none; cursor: pointer; text-align: center; line-height: 1.5;
  box-shadow: 0 0 24px rgba(184, 155, 98, .35), inset 0 1px 0 rgba(255, 255, 255, .5); transition: box-shadow .18s, transform .18s; }
.btn:hover { box-shadow: 0 0 36px rgba(184, 155, 98, .55), inset 0 1px 0 rgba(255, 255, 255, .5); }
.btn:active { transform: translateY(1px); }
.btn.secondary { background: rgba(255, 255, 255, .04); color: var(--moon); min-height: 48px; box-shadow: none; border-color: rgba(184, 155, 98, .6); }
.btn[disabled], .btn[aria-disabled="true"] { background: transparent; color: var(--sub); border: 1px dashed var(--field); box-shadow: none; cursor: not-allowed; }
.actions > * + * { margin-top: 12px; }
.textlink { display: inline-block; min-height: 48px; padding: 12px 0; font-weight: 600; }
.linkrow { display: flex; flex-wrap: wrap; gap: 0 20px; }

/* ── 入力 ── */
.field { display: block; }
.field > .label { display: block; font-size: 14px; font-weight: 600; line-height: 1.5; }
.field > .why { display: block; font-size: 13px; color: var(--sub); line-height: 1.6; margin-bottom: 8px; }
.input, .select, .textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--field); border-radius: 14px; background: rgba(6, 12, 34, .55); color: var(--moon); }
.select option { background: var(--panel-solid); color: var(--moon); }
.input::placeholder { color: #7c87a6; }
.textarea { min-height: 128px; resize: vertical; }
.row { display: flex; gap: 8px; align-items: flex-end; }
.row > * { flex: 1; min-width: 0; }
.row .unit { flex: 0 0 auto; padding-bottom: 14px; }
.error { color: var(--err); font-size: 14px; font-weight: 600; margin-top: 6px; display: flex; gap: 6px; }
.error::before { content: "！"; }
.error a { color: var(--err); }
.input[aria-invalid="true"], .select[aria-invalid="true"] { border: 2px solid var(--err); }
.errsummary { border: 1px solid var(--err); border-radius: 16px; padding: 16px; background: rgba(60, 14, 20, .45); }
.counter { font-size: 13px; color: var(--sub); text-align: right; }

.choices { display: grid; gap: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 12px 16px; border: 1px solid var(--field); border-radius: 14px; background: rgba(6, 12, 34, .45); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .mark { flex: 0 0 22px; height: 22px; border: 1.5px solid var(--field); border-radius: 50%; display: grid; place-items: center; }
.choice:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 18px rgba(184, 155, 98, .28), inset 0 0 0 1px var(--gold); }
.choice:has(input:checked) .mark { border-color: var(--gold); background: var(--gold); box-shadow: 0 0 10px rgba(240, 217, 155, .8); }
.choice:has(input:checked) .mark::after { content: ""; width: 8px; height: 5px; border: solid var(--night); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choices.inline { grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-size: 14px; font-weight: 600; margin-bottom: 8px; }

/* ── 面 ── */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.quiet { background: rgba(101, 122, 142, .14); border: 1px solid rgba(160, 150, 240, .25); border-radius: 18px; padding: 18px 20px; }
.ok { background: rgba(60, 140, 110, .2); color: var(--ok); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.sample-flag { position: sticky; top: 0; z-index: 5; background: rgba(6, 12, 34, .9); border-bottom: 1px solid var(--shu); padding: 10px 0; font-weight: 700; color: var(--shu); font-size: 14px; backdrop-filter: blur(8px); }
.quote { border-left: 2px solid var(--gold); padding: 4px 0 4px 14px; font-family: var(--serif); }
.kv { display: grid; grid-template-columns: 7.5em 1fr auto; gap: 6px 12px; align-items: baseline; }
.kv dt { font-size: 13px; font-weight: 600; color: var(--sub); }
.kv dd { margin: 0; }
.kv .edit { font-size: 14px; font-weight: 600; min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: flex-end; }
.kv > div { display: contents; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 10px 8px 10px 0; border-bottom: 1px solid rgba(170, 180, 205, .2); vertical-align: top; }
.table th { font-size: 13px; color: var(--sub); font-weight: 600; }

/* 読みの種類：文字ラベル＋小さな図形（色だけに頼らない） */
.kind { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--sub); letter-spacing: .04em; }
.kind::before { content: ""; width: 8px; height: 8px; flex: 0 0 8px; }
.kind.read::before { background: var(--gold); border-radius: 50%; box-shadow: 0 0 8px var(--gold); }  /* 占いからの読み＝光る星 */
.kind.told::before { border: 1.5px solid var(--moon); border-radius: 2px; }                         /* 教えてもらったこと＝四角 */
.kind.hint::before { width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-bottom: 9px solid var(--shu); flex-basis: 10px; } /* 試すヒント＝三角 */

details.why { border-top: 1px solid rgba(170, 180, 205, .22); padding-top: 4px; }
details.why summary { min-height: 48px; display: flex; align-items: center; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(184, 155, 98, .7); text-underline-offset: 3px; }
details.why[open] summary { margin-bottom: 4px; }

/* ── 署名：相談→読み→一歩 をつなぐ星座の線 ── */
.thread { position: relative; padding-left: 30px; }
.thread::before { content: ""; position: absolute; left: 6px; top: 14px; bottom: 14px; width: 1px;
  background: linear-gradient(180deg, rgba(240, 217, 155, .1), var(--gold) 20%, var(--gold) 80%, rgba(184, 155, 98, .8)); box-shadow: 0 0 8px rgba(184, 155, 98, .6); }
.thread > .knot { position: relative; }
.thread > .knot + .knot { margin-top: 30px; }
.thread > .knot::before { content: ""; position: absolute; left: -29px; top: 7px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--night); border: 1.5px solid var(--gold-soft); box-shadow: 0 0 10px rgba(240, 217, 155, .7); }
.thread > .knot.answer::before { left: -31px; width: 15px; height: 15px; top: 5px; background: var(--gold-soft); box-shadow: 0 0 16px 3px rgba(240, 217, 155, .8); }
.thread > .knot.step::before { background: var(--shu); border-color: var(--shu); border-radius: 2px; transform: rotate(45deg); box-shadow: 0 0 12px rgba(184, 155, 98, .9); }
.knot .answer-text { font: 600 22px/1.6 var(--serif); letter-spacing: .04em; color: var(--gold-soft); text-shadow: 0 0 18px rgba(184, 155, 98, .35); }

/* 月の小図形 */
.crescent { width: 18px; height: 18px; color: var(--gold); display: inline-block; vertical-align: -3px; filter: drop-shadow(0 0 4px rgba(240, 217, 155, .8)); }

/* ── 入口：光の輪の中のフクロウ ── */
.hero { padding-top: 8px; }
.halo { position: relative; width: 132px; height: 132px; display: grid; place-items: center; margin: 8px 0 4px; }
.halo::before, .halo::after { content: ""; position: absolute; inset: 0; border-radius: 50%; }
.halo::before { background: radial-gradient(circle, rgba(240, 217, 155, .35) 0%, rgba(101, 122, 142, .25) 45%, transparent 70%); animation: breathe 7s ease-in-out infinite; }
.halo::after { inset: 10px; border: 1px solid rgba(240, 217, 155, .45); box-shadow: 0 0 18px rgba(240, 217, 155, .35), inset 0 0 18px rgba(101, 122, 142, .35); }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }
.hero .harry { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 28px rgba(184, 155, 98, .55); }
.hero .display { margin-top: 20px; }
.hero .promise { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hero .promise li { font-size: 13px; line-height: 1.5; color: var(--moon); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: rgba(6, 12, 34, .35); }
.cover-title { font-size: 26px; line-height: 1.55; }
.sharebtns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sharebtns .btn { min-height: 48px; font-size: 14px; letter-spacing: .02em; padding: 10px 12px; }
.sharebtns [data-act="card"] { grid-column: 1 / -1; }
.reveal { animation: reveal .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes reveal { from { opacity: 0; transform: translateY(10px) scale(.985); filter: blur(6px); } }
.mini-sample { margin-top: 40px; }

/* ── 表紙：いちばん濃い夜と光 ── */
.cover { position: relative; overflow: hidden; border-radius: 22px; padding: 26px 22px; border: 1px solid var(--line);
  background: radial-gradient(90% 90% at 85% 0%, rgba(101, 122, 142, .55), transparent 60%), radial-gradient(70% 70% at 0% 100%, rgba(47, 111, 208, .35), transparent 60%), rgba(6, 12, 34, .7); }
.cover .note { color: var(--sub); }
.cover .harry { width: 56px; height: 56px; border-radius: 50%; box-shadow: 0 0 22px rgba(184, 155, 98, .6); }

/* ── 本質の3点 ── */
.three { display: grid; gap: 14px; }
.three > div { border-left: 1px solid var(--line); padding-left: 14px; }
.three dt { font-size: 12px; font-weight: 600; color: var(--gold); letter-spacing: .12em; line-height: 1.5; }
.three dd { margin: 2px 0 0; font-weight: 600; line-height: 1.65; }
.fit { border-top: 1px solid rgba(170, 180, 205, .2); padding-top: 12px; }

/* ── 12か月：一本の星座 ── */
.cal { position: relative; padding-left: 26px; }
.cal::before { content: ""; position: absolute; left: 7px; top: 20px; bottom: 20px; width: 1px; background: linear-gradient(180deg, var(--gold), rgba(101, 122, 142, .8)); opacity: .7; }
.cal li { position: relative; border-bottom: 1px solid rgba(170, 180, 205, .14); }
.cal li::before { content: ""; position: absolute; left: -23px; top: 22px; width: 7px; height: 7px; border-radius: 50%; background: var(--moon); box-shadow: 0 0 8px rgba(237, 232, 220, .8); }
.cal .cal-row { display: grid; grid-template-columns: 4.2em 1fr auto; gap: 4px 12px; padding: 14px 6px; text-decoration: none; min-height: 56px; align-items: baseline; color: var(--moon); }
.cal .mon { font: 600 19px/1.4 var(--serif); font-variant-numeric: tabular-nums; }
.cal .mon small { display: block; font: 400 12px/1.4 var(--sans); color: var(--sub); }
.cal .theme { font-weight: 600; line-height: 1.5; }
.cal .act { grid-column: 2 / 4; font-size: 14px; color: var(--sub); line-height: 1.6; }
.cal .act small { font-size: 12px; }
.cal .tag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; border: 1px solid var(--sub); color: var(--sub); white-space: nowrap; }
.cal li.now { border: 1px solid var(--gold); border-radius: 16px; margin: 6px -6px; background: rgba(184, 155, 98, .08); box-shadow: 0 0 26px rgba(184, 155, 98, .22); }
.cal li.now::before { left: -17px; width: 11px; height: 11px; top: 20px; background: var(--shu); box-shadow: 0 0 14px 3px rgba(184, 155, 98, .8); }
.cal li.now .tag { background: var(--shu); border-color: var(--shu); color: var(--deep); }
.cal li.past .theme, .cal li.past .mon { color: var(--sub); }
.cal li.past::before { opacity: .4; }
/* 3列の見取り図は、切り替えボタンが見える幅のときだけ（狭い画面では縦の星座に戻る） */
@media (min-width: 480px) {
  .cal.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-left: 0; }
  .cal.grid::before, .cal.grid li::before { display: none; }
  .cal.grid li { border: 1px solid rgba(170, 180, 205, .2); border-radius: 14px; background: rgba(6, 12, 34, .35); }
  .cal.grid li.now { margin: 0; }
  .cal.grid .cal-row { grid-template-columns: 1fr; }
  .cal.grid .act { display: none; }
  .cal.grid .tag { justify-self: start; }
}
.viewtoggle { display: none; }
@media (min-width: 480px) { .viewtoggle { display: inline-flex; } }

.pager { display: flex; justify-content: space-between; gap: 12px; }
.pager a { min-height: 48px; display: inline-flex; align-items: center; font-weight: 600; }

/* ── 結果の章ナビ：スマホは下、PCは左 ── */
.resultnav { display: none; }
.has-resultnav .resultnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: rgba(6, 12, 34, .88); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.resultnav a { flex: 1; min-height: 56px; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 14px; color: var(--sub); border-top: 2px solid transparent; letter-spacing: .06em; }
.resultnav a[aria-current="page"] { color: var(--gold-soft); font-weight: 700; border-top-color: var(--gold); text-shadow: 0 0 10px rgba(240, 217, 155, .6); }
.has-resultnav main { padding-bottom: 40px; }
@media (min-width: 960px) {
  .has-resultnav .shell { max-width: 1000px; display: grid; grid-template-columns: 240px 1fr; grid-template-areas: "top top" "nav main"; }
  .has-resultnav .topbar { grid-area: top; }
  .has-resultnav .resultnav { grid-area: nav; position: sticky; top: 16px; align-self: start; flex-direction: column; border: 0; padding: 8px 0 0 var(--gutter); background: none; backdrop-filter: none; }
  .has-resultnav .resultnav a { justify-content: flex-start; border-top: 0; border-left: 2px solid transparent; padding-left: 16px; font-size: 16px; }
  .has-resultnav .resultnav a[aria-current="page"] { border-left-color: var(--gold); }
  .has-resultnav main { grid-area: main; max-width: 680px; }
}
@media (min-width: 960px) {
  body:not(.has-resultnav) .shell { max-width: 1040px; }
  .hero-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; min-height: 70vh; }
  .hero-wrap .mini-sample { margin-top: 12px; }
  .form-narrow { max-width: 560px; }
  .display { font-size: 40px; }
  .cover-title { font-size: 32px; }
}

.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--panel-solid); border: 1px solid var(--gold); color: var(--moon); padding: 10px 16px; border-radius: 999px; font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .15s; max-width: calc(100% - 32px); box-shadow: 0 0 20px rgba(184, 155, 98, .3); }
.toast.show { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .twinkle { display: none; }
}

/* ── PDF保存（印刷）：紙に合わせて白地へ戻す ── */
.print-reading { display: none; }
@media print {
  .topbar, .resultnav, .toast, .noprint, .skip, .sky, .aura, .twinkle, .foot { display: none !important; }
  body, html { background: #fff; color: #142d48; }
  main { padding: 0; }
  .card, .quiet, .cover { background: #fff; border: 1px solid #142d48; color: #142d48; backdrop-filter: none; }
  .note, .eyebrow, .three dt, .kind, .cal .act { color: #536174; }
  .knot .answer-text, strong { color: #142d48; text-shadow: none; }
  details.why > *:not(summary) { display: block; }
  a { text-decoration: none; color: #142d48; }
  body.printing-reading > :not(.print-reading) { display: none !important; }
  body.printing-reading .print-reading { display: block; color: #142d48; background: #fff; font-size: 11pt; line-height: 1.7; }
  .print-reading h1 { font-size: 22pt; }
  .print-reading h2 { font-size: 16pt; margin: 24pt 0 8pt; break-after: avoid; }
  .print-reading h3 { font-size: 12pt; margin: 12pt 0 6pt; break-after: avoid; }
  .print-reading p { margin: 6pt 0; overflow-wrap: anywhere; }
  .print-reading .print-note { white-space: pre-wrap; }
  .print-reading .print-block { break-inside: avoid; }
  .print-reading .three { gap: 8pt; margin: 8pt 0; }
  .print-reading .three > div { border-color: #536174; }
}

/* 悩みの入口：既存の夜空・金色の見出しに揃える。 */
.concern-intro { margin-top: 16px; color: var(--gold-soft); font-size: 14px; line-height: 1.9; }
.concern-groups { display: grid; gap: 24px; }
.concern-group { min-width: 0; }
.concern-group legend { color: var(--gold-soft); font-weight: 600; margin-bottom: 10px; }

/* 保存済みの生年月日で診断を切り替える */
.topics { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:5px; margin:0 0 8px; }
.topics button { min-height:46px; padding:8px 2px; border:1px solid var(--line); border-radius:12px; background:transparent; color:var(--moon); font:inherit; font-size:13px; cursor:pointer; }
.topics button[aria-pressed="true"] { background:#e8cc8d; color:#142137; border-color:#e8cc8d; font-weight:700; }
.topic-note { margin-bottom:26px; }
.storage-warning { margin-bottom:20px; }
@media print { .topics,.topic-note,.storage-warning { display:none; } }

/* 本質の読み物を主役に、年と月の流れを次の章へつなぐ。 */
.essence-reading { max-width:42rem; margin-inline:auto; }
.essence-intro { color:var(--gold-soft); font-size:18px; line-height:1.95; }
.essence-section { margin-top:32px; padding-top:24px; border-top:1px solid var(--line); }
.essence-section h2 { margin-bottom:14px; }
.essence-section .prose { line-height:2; }
.reading-index { display:flex; flex-wrap:wrap; gap:12px 20px; padding-block:12px; border-block:1px solid var(--line); font-size:14px; }
.line-card { padding:26px; border:1px solid var(--gold); background:rgba(22,36,82,.5); border-radius:20px; }
.line-button { background:#a4e7b9; color:#102a22; }
.line-steps { display:grid; gap:18px; padding-left:24px; }
.offer-list { display:grid; gap:12px; padding-left:20px; }
.future-flow { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; list-style:none; padding:0; }
.future-flow li { border-top:2px solid var(--gold); background:var(--panel); border-radius:0 0 14px 14px; }
.future-flow a { height:100%; display:flex; flex-direction:column; gap:16px; padding:20px; text-decoration:none; color:var(--moon); }
.future-flow .flow-month { color:var(--gold-soft); font:600 28px/1.2 var(--serif); }
.future-flow strong { font-size:18px; }
.future-flow .textlink { margin-top:auto; }
.future-next { text-align:center; color:var(--sub); max-width:30rem; margin:auto; }
.future-next > span { display:block; font-size:28px; color:var(--gold); }
#life-detail { scroll-margin-top:24px; }
#life-detail:focus { outline:2px solid var(--focus); outline-offset:8px; }
@media(max-width:640px) {
  .future-flow { grid-template-columns:1fr; gap:24px; }
  .future-flow li { position:relative; }
  .future-flow li+li::before { content:'↓'; position:absolute; left:50%; top:-27px; color:var(--gold); }
  .future-flow a { padding:22px; }
  .essence-section { margin-top:26px; padding-top:22px; }
  .line-card { padding:22px; }
}
@media print {
  .essence-intro { color:#222; }
  .essence-section { border-color:#aaa; break-inside:avoid; }
  .essence-section .prose { line-height:1.65; }
}

.life-flow { min-width:0; }
.life-year-buttons { margin-top:18px; }
.life-year-buttons button { text-align:left; font-size:13px; }
.life-year-buttons button[aria-pressed="true"] { border-color:var(--gold-soft); background:#354258; }
.life-year-detail > section { margin-top:24px; }
.life-year-detail p+p { margin-top:12px; }
.life-year-detail h3 { color:var(--gold-soft); margin-bottom:8px; }
.life-chart-scroll { margin-block:20px; border:1px solid var(--line); border-radius:12px; }

.life-year-buttons { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; }
.life-year-buttons .btn { display:block; border-radius:12px; padding:13px; min-width:0; line-height:1.6; }
.life-year-buttons .btn > span { display:block; }
.life-year-theme { margin-top:6px; font-weight:400; color:var(--sub); }
.life-year-buttons .btn[aria-pressed="true"] .life-year-theme { color:var(--moon); }
@media(max-width:640px){.life-year-buttons {grid-template-columns:repeat(2,minmax(0,1fr));}}

/* Harry: quiet moonlight, clear reading surfaces. */
.aura, .twinkle { display:none; }
.sky { opacity:.18; }
.display { text-shadow:none; }
.brand { font-size:18px; letter-spacing:.04em; }
.brand small { display:block; margin-top:6px; font:400 10px/1 var(--sans); letter-spacing:.12em; color:var(--sub); }
.brand img { width:42px; height:42px; box-shadow:none; }
.hero .halo { width:224px; height:224px; background:none; box-shadow:none; animation:none; margin:8px auto 24px; }
.hero .harry { width:220px; height:220px; border-radius:50%; box-shadow:0 12px 48px #0003; }
.hero .eyebrow { margin-bottom:12px; }
.hero .lead { max-width:31em; }
.btn { box-shadow:none; border-radius:14px; }
.btn:hover { box-shadow:0 4px 20px #b89b6226; }
.cover { background:linear-gradient(150deg,#24364d,#142238); box-shadow:none; border-color:var(--line); }
.cover .harry { width:76px; height:76px; border-radius:50%; box-shadow:none; }
.essence-reading { padding-top:8px; }
.essence-section h3 { color:var(--gold-soft); }
.quiet { background:#ffffff06; border-color:var(--line); }
.reading-chapters { margin-top:24px; }
.reading-chapters li { display:flex; gap:18px; padding:24px 0; border-top:1px solid var(--line); }
.reading-chapters li > span { color:var(--gold); font:600 23px/1.4 var(--serif); }
.reading-chapters h2 { font:600 20px/1.5 var(--serif); }
.reading-chapters p { margin-top:10px; color:var(--sub); font-size:14px; line-height:1.9; }
.guide-sign { margin-top:20px; padding-top:24px; border-top:1px solid var(--line); font-size:14px; }
.guide-sign span { color:var(--gold-soft); display:inline-block; margin-top:8px; }
@media(min-width:900px) { .hero .halo { margin-left:0; } .hero-wrap { gap:72px; padding-block:30px 64px; } .mini-sample { padding:32px; } }
@media(max-width:640px) { .hero .display { font-size:30px; } .hero .halo { width:184px; height:184px; margin-bottom:20px; } .hero .harry { width:180px; height:180px; } .hero-wrap { padding-top:8px; } }
.reading-chapters li > span { flex:0 0 2ch; white-space:nowrap; }
/* One reading, optional depth: no persistent tab bar. */
.reading-back { display:inline-flex; min-height:48px; align-items:center; margin-bottom:16px; font-size:14px; color:var(--sub); }
.essence-more,.topic-picker,.share-more { border-top:1px solid var(--line); margin-top:26px; }
.essence-more > summary,.topic-picker > summary,.share-more > summary { padding:20px 4px; cursor:pointer; color:var(--gold-soft); font-weight:600; line-height:1.8; }
.topic-picker .topics { grid-template-columns:repeat(2,minmax(0,1fr)); margin-top:10px; }
.answer-card { padding:28px 24px; background:#1d2e43; border-left:3px solid var(--gold); border-radius:0 16px 16px 0; }
.discover { padding-block:24px; }
.discover-link { display:block; text-decoration:none; padding:24px 0; border-bottom:1px solid var(--line); }
.discover-link strong { display:block; font:600 19px/1.7 var(--serif); color:var(--moon); }
.discover-link span { display:block; font-size:14px; color:var(--sub); margin-top:8px; }
.discover-link:hover strong { color:var(--gold-soft); }
.career-jobs { display:grid; gap:10px; }
.career-jobs li { padding:16px 20px; border:1px solid var(--line); border-radius:12px; color:var(--gold-soft); font-weight:600; }
.career-reading { padding-block:20px; }
.resultnav:empty { display:none; }
@media print { .essence-more { display:block; } .reading-back,.topic-picker,.share-more { display:none; } }
.life-chart { border:1px solid var(--line); border-radius:14px; overflow:hidden; margin-block:20px; background:#142238; }
.life-chart .life-chart-scroll { border:0; border-radius:0; margin:0; }
.life-fixed-axis { background:#142238; padding-left:2px; border-right:1px solid var(--line); }
#life-year-select { margin-bottom:20px; }
