/* かずのしるべ 共通スタイル（リニューアル版「朝の便箋」）
   Layout: 生成りの紙に、藍色のインクで書いた手紙。数字だけを金で少し光らせる。
   夜（端末がダークモードのとき）は、同じ色の役割のまま藍の夜に自動で切り替わる。
   ※クラス名は今の site.css と同じ。HTMLを変えずに、見た目だけが変わる。 */
:root {
  --bg: #F7F2E9;
  --glass: rgba(247, 242, 233, .92);
  --paper: #FFFDF8;
  --paper-solid: #FFFDF8;
  --ink: #22284A;
  --muted: #565B74;
  --line: #E1D8C6;
  --accent: #2E3770;
  --gold: #8A6620;
  --gold-soft: #F3E8CE;
  --glow: transparent;
  --rose: #A4524A;
  --on-accent: #FFFDF8;
  --shadow: 0 1px 2px rgba(34, 40, 74, .05), 0 6px 20px rgba(34, 40, 74, .05);
  --f-display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14172A;
    --glass: rgba(20, 23, 42, .92);
    --paper: #1C2038;
    --paper-solid: #1C2038;
    --ink: #ECE7DC;
    --muted: #B9B8C8;
    --line: #2E3354;
    --accent: #AEB7F0;
    --gold: #E2C17C;
    --gold-soft: rgba(226, 193, 124, .12);
    --rose: #E3A3A0;
    --on-accent: #14172A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 20px rgba(0, 0, 0, .25);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--f-body); font-size: 17px; line-height: 1.9;
  padding-inline: 16px; padding-block: 0 56px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 52px; position: relative; }
.wrap > * { min-width: 0; }
section { scroll-margin-top: 80px; }

/* ---- 共通ヘッダー（全ページ同じ） ---- */
header.site {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--glass); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 20px;
  padding-block: 12px 8px; border-bottom: 1px solid var(--line);
}
.logo { font-family: var(--f-display); font-weight: 800; font-size: 1.35rem; letter-spacing: .12em; color: var(--ink); text-decoration: none; }
.logo::before { content: "✦"; color: var(--gold); margin-right: 8px; font-size: .85em; }
.logo small { font-family: var(--f-mono); font-size: .66rem; color: var(--muted); letter-spacing: .12em; margin-left: 10px; font-weight: 400; }
nav.site { display: flex; gap: 2px 18px; flex-wrap: wrap; font-size: .92rem; }
nav.site a { color: var(--muted); text-decoration: none; padding-block: 6px; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--ink); }

/* ---- 見出し・文章 ---- */
.eyebrow { font-family: var(--f-body); font-size: .85rem; font-weight: 700; letter-spacing: .14em; color: var(--gold); }
h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 2.9rem); line-height: 1.5; letter-spacing: .04em; margin: 8px 0 14px; text-wrap: balance; }
h2.sec { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.45rem, 3vw, 1.85rem); letter-spacing: .05em; margin: 4px 0 8px; text-wrap: balance; }
.sec-lead { color: var(--muted); margin: 0 0 22px; max-width: 38em; }
.lead { color: var(--muted); max-width: 34em; margin: 0 0 24px; }

/* ---- ボタン・入力 ---- */
form.calc { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
form.calc label { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
input[type="date"], input[type="text"] {
  font: 500 1.05rem var(--f-body); color: var(--ink); background: var(--paper-solid);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-height: 48px; max-width: 100%;
}
input[type="text"] { min-width: 0; width: 16em; text-transform: none; }
input::placeholder { color: var(--muted); opacity: .8; }
button, .btn {
  font: 700 1rem var(--f-body); border: 0; border-radius: 10px; cursor: pointer;
  padding: 12px 24px; min-height: 48px; background: var(--accent); color: var(--on-accent);
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center;
}
button:hover, .btn:hover { filter: brightness(1.12); }
button:focus-visible, .btn:focus-visible, input:focus-visible, a:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.err { color: var(--rose); font-size: .88rem; margin: 8px 0 0; min-height: 1.2em; }
.err:not(:empty)::before { content: "！ "; font-weight: 700; }
input[aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose) inset; }

/* ---- 今のトップ用（運命数の盤。使うページだけ） ---- */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding-top: 12px; }
.hero > * { min-width: 0; }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; max-width: 320px; margin-inline: auto; width: 100%; }
.board div { aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; font-family: var(--f-display); font-weight: 600; font-size: 2rem; color: var(--muted); border: 1px solid var(--line); border-radius: 50%; background: var(--paper); transition: background .4s, color .4s, transform .4s; }
.board div.on { background: var(--gold-soft); color: var(--gold); border-color: var(--gold); transform: scale(1.04); }
.board-cap { text-align: center; font-family: var(--f-mono); font-size: .72rem; color: var(--muted); letter-spacing: .2em; margin-top: 10px; }
.hero-visual { display: flex; align-items: center; justify-content: center; gap: 22px; }
.tate { writing-mode: vertical-rl; font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .32em; line-height: 2.1; color: var(--ink); margin: 0; max-height: 22em; }
.tate em { font-style: normal; color: var(--gold); }
.hero h1 em { font-style: normal; color: var(--gold); }

/* ---- 運命数の結果 ---- */
.result { display: grid; grid-template-columns: auto 1fr; gap: 32px; padding-block: 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.result > * { min-width: 0; }
.bignum { font-family: var(--f-display); font-weight: 800; font-size: clamp(5rem, 14vw, 8.5rem); line-height: 1; color: var(--gold); text-align: center; font-variant-numeric: tabular-nums; }
.numlabel { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .12em; color: var(--muted); text-align: center; margin-top: 8px; }
.master { display: inline-block; margin-top: 8px; font-size: .78rem; padding: 2px 10px; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; }
.type-tag { display: inline-flex; gap: 6px; align-items: baseline; font-size: .85rem; color: var(--muted); text-decoration: none; border: 1px solid var(--gold); border-radius: 999px; padding: 3px 14px; background: var(--gold-soft); margin: 2px 0 4px; }
.type-tag b { color: var(--gold); font-size: .95rem; }
.result h2 { font-family: var(--f-display); font-size: 1.8rem; letter-spacing: .05em; margin: 0 0 4px; text-wrap: balance; }
.kw { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; padding: 0; list-style: none; }
.kw li { font-size: .85rem; padding: 2px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); }
.steps { font-family: var(--f-mono); font-size: .8rem; color: var(--muted); background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; overflow-x: auto; white-space: nowrap; }
.aspects { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; margin-top: 20px; }
.aspects h3 { font-size: .85rem; letter-spacing: .12em; color: var(--gold); margin: 0 0 2px; font-weight: 700; }
.aspects p { margin: 0; max-width: 32em; }
.lucky { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: .92rem; color: var(--muted); }
.lucky b { color: var(--ink); font-weight: 700; }
.more { display: inline-block; margin-top: 18px; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

/* ---- 今日・今月・今年 ---- */
.periods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.period { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: grid; gap: 6px; align-content: start; min-width: 0; box-shadow: var(--shadow); }
.period.today { border-color: var(--gold); }
.period .lbl { font-size: .82rem; letter-spacing: .08em; color: var(--muted); }
.period .pn { font-family: var(--f-display); font-size: 2.8rem; font-weight: 800; color: var(--gold); line-height: 1.1; font-variant-numeric: tabular-nums; }
.period h3 { font-family: var(--f-display); font-size: 1.2rem; margin: 0; letter-spacing: .03em; }
.period p { margin: 0; font-size: .95rem; }
.period .act { font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 8px; margin-top: 4px; }
.period .act b { color: var(--ink); }
.cycle { display: grid; grid-template-columns: repeat(9, 1fr); gap: 3px; margin-top: 4px; }
.cycle span { text-align: center; font-size: .75rem; padding: 4px 0; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.cycle span.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.mini-steps { font-family: var(--f-mono); font-size: .72rem; color: var(--muted); overflow-x: auto; white-space: nowrap; }

/* ---- 相性 ---- */
.compat-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; }
.compat-form label { display: grid; gap: 4px; font-size: .88rem; color: var(--muted); }
.compat-out { margin-top: 24px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); }
.compat-out > * { min-width: 0; }
.pair { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.pair i { font-style: normal; font-size: 1.2rem; color: var(--muted); }
.score { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.meter { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; margin-top: 4px; width: 160px; max-width: 100%; }
.meter span { display: block; height: 100%; background: var(--gold); transition: width .6s; }
.compat-out h3 { font-family: var(--f-display); font-size: 1.35rem; margin: 0 0 6px; }
.compat-out p { margin: 0 0 8px; max-width: 36em; }
.compat-out .tip { color: var(--muted); font-size: .92rem; margin: 0; }

/* ---- 名前の数 ---- */
.name-out { margin-top: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .name-out { grid-template-columns: 1fr 1fr; } }
.name-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 22px; min-width: 0; display: grid; gap: 6px; align-content: start; box-shadow: var(--shadow); }
.name-card .lbl { font-size: .8rem; letter-spacing: .06em; color: var(--muted); }
.name-card .nn { font-family: var(--f-display); font-size: 2.8rem; font-weight: 800; color: var(--gold); line-height: 1.1; }
.name-card h3 { font-family: var(--f-display); font-size: 1.15rem; margin: 0; }
.name-card p { margin: 0; font-size: .95rem; }
.name-card .more { margin-top: 4px; font-size: .92rem; }
.table-wrap { overflow-x: auto; margin-top: 16px; }
table.pyth { border-collapse: collapse; font-family: var(--f-mono); font-size: .8rem; color: var(--muted); }
table.pyth th, table.pyth td { border: 1px solid var(--line); padding: 4px 10px; text-align: center; }
table.pyth th { color: var(--gold); font-weight: 600; }
.note { font-size: .85rem; color: var(--muted); margin: 8px 0 0; }

.share { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.share p { margin: 0; color: var(--muted); font-size: .92rem; flex-basis: 100%; }
.toast { font-size: .88rem; color: var(--gold); }

.adslot { border: 1px dashed var(--line); border-radius: 10px; padding: 28px 16px; text-align: center; font-size: .78rem; color: var(--muted); letter-spacing: .08em; }

.group-label { font-size: .85rem; letter-spacing: .08em; color: var(--muted); margin: 18px 0 8px; }
.all-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.all-grid a { background: var(--paper); color: var(--ink); border: 1px solid var(--line); border-radius: 12px; display: grid; padding: 10px 14px; text-decoration: none; }
.all-grid a:hover { border-color: var(--gold); }
.all-grid a.on { border-color: var(--gold); background: var(--gold-soft); }
.all-grid .n { font-family: var(--f-display); font-size: 1.5rem; font-weight: 800; color: var(--gold); line-height: 1.2; }
.all-grid .t { font-size: .85rem; }

/* ---- 共通フッター（全ページ同じ） ---- */
footer { border-top: 1px solid var(--line); padding-top: 22px; font-size: .85rem; color: var(--muted); }
footer p { margin: 0 0 6px; max-width: 60em; }
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 12px; padding: 0; list-style: none; font-size: .9rem; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--ink); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 16px; padding: 10px 0; border-block: 1px solid var(--line); list-style: none; font-size: .9rem; }
.foot-legal a { color: var(--ink); }

/* ---- 週間運勢 ---- */
.wk-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.wk-head .lbl { font-size: .82rem; letter-spacing: .06em; color: var(--muted); }
.wk-n { font-family: var(--f-display); font-size: 2.2rem; font-weight: 800; color: var(--gold); line-height: 1; }
.weekbox h3, .period [data-week] h3 { font-family: var(--f-display); font-size: 1.15rem; margin: 4px 0 8px; }
.wk-dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .95rem; }
.wk-dl dt { color: var(--gold); font-weight: 700; font-size: .85rem; padding-top: 2px; }
.wk-dl dd { margin: 0; min-width: 0; }
.weekbox { background: var(--paper); border: 1px solid var(--gold); border-radius: 14px; padding: 18px 20px; box-shadow: var(--shadow); }
.weekbox .howto { margin-top: 10px; font-size: .82rem; }

/* ---- 5つの数字 ---- */
.core { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.core div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; min-width: 0; background: var(--paper); }
.core .lbl { font-size: .78rem; letter-spacing: .04em; color: var(--muted); display: block; }
.core b { font-family: var(--f-display); font-size: 1.6rem; color: var(--gold); }
.core span.t { font-size: .85rem; margin-left: 6px; }
.converted { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }

/* ---- 文書ページ（運営者情報・ポリシー・解説） ---- */
.doc { max-width: 44em; display: grid; gap: 28px; }
.doc h1 { margin-bottom: 0; }
.doc h2 { font-family: var(--f-display); font-size: 1.3rem; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); letter-spacing: .04em; }
.doc p, .doc li { margin: 0 0 8px; }
.doc ul, .doc ol { margin: 0; padding-left: 1.3em; }
.fill { background: var(--gold-soft); color: var(--gold); padding: 1px 6px; border-radius: 4px; font-weight: 700; }
.ex { font-family: var(--f-mono); font-size: .85rem; background: var(--paper); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; overflow-x: auto; white-space: nowrap; margin: 6px 0 10px; }
.doc .dated { font-size: .85rem; color: var(--muted); }

/* ---- 数字ごとのページ ---- */
.crumbs { font-size: .85rem; color: var(--muted); padding-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { color: var(--muted); }
.num-hero { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding-block: 8px 28px; border-bottom: 1px solid var(--line); }
.num-hero > * { min-width: 0; }
.num-hero .bignum { font-size: clamp(5.5rem, 16vw, 10rem); }
.num-hero h1 { margin: 6px 0 8px; }
.num-hero .summary { margin: 0; max-width: 36em; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 48px; align-items: start; }
.article main { display: grid; gap: 38px; min-width: 0; }
.np h2 { font-family: var(--f-display); font-size: 1.4rem; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); letter-spacing: .04em; }
.np p { margin: 0; max-width: 38em; }
.pc { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pc > div { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; min-width: 0; }
.pc h3 { font-size: .85rem; letter-spacing: .12em; margin: 0 0 6px; font-weight: 700; }
.pc .pro h3 { color: var(--gold); }
.pc .con h3 { color: var(--rose); }
.pc ul { margin: 0; padding-left: 1.2em; }
.jobs { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.jobs li { font-size: .88rem; padding: 3px 12px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold); }
.advice { background: var(--gold-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.advice h2 { border-bottom-color: var(--gold); }
aside.side { position: sticky; top: 84px; display: grid; gap: 16px; }
.facts { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 10px; box-shadow: var(--shadow); }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .92rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.cta { background: var(--gold-soft); border: 1px solid var(--line); color: var(--ink); border-radius: 14px; padding: 18px; display: grid; gap: 10px; }
.cta p { margin: 0; font-size: .92rem; }
.cta a { justify-content: center; }
.howto { font-size: .92rem; color: var(--muted); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 18px; }
.pager a { text-decoration: none; font-weight: 700; }

/* ---- 相性表 ---- */
.aishou-table td a { color: var(--gold); text-decoration: none; display: block; padding: 2px 0; }
.aishou-table td a:hover { text-decoration: underline; }
.aishou-table th { min-width: 2.4em; }

/* ---- シェア画像 ---- */
.card-panel { scroll-margin-top: 80px; flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 20px; align-items: center; margin-top: 16px; }
.card-panel img { width: 100%; max-width: 260px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.card-actions { display: grid; gap: 12px; justify-items: start; min-width: 0; }
@media (max-width: 560px) { .card-panel { grid-template-columns: 1fr; justify-items: center; } .card-actions { justify-items: center; text-align: center; } }
#cardBtn:disabled { opacity: .7; cursor: progress; }
.month-table { width: 100%; }
.month-table th { width: 4.5em; white-space: nowrap; }
.month-table td { text-align: left; line-height: 1.7; }
.doc > *, .doc section > * { min-width: 0; }
.doc .table-wrap { max-width: 100%; }

/* ---- よくある質問 ---- */
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; padding-right: 1.6em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; position: absolute; right: 0; top: 0; color: var(--gold); }
.faq details[open] summary::after { content: "－"; }
.faq details p { margin: 8px 0 0; color: var(--muted); }
.season-pill { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--gold-soft); color: var(--ink); text-decoration: none; font-size: .92rem; max-width: 100%; }
.season-pill span { background: var(--gold); color: var(--paper); font-size: .72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; flex: none; }
.season-pill:hover { border-color: var(--gold); }

/* ---- 読みもの ---- */
.col-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.col-cards a { display: grid; gap: 6px; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); color: var(--ink); text-decoration: none; }
.col-cards a:hover { border-color: var(--gold); }
.col-cards b { font-family: var(--f-display); font-size: 1.2rem; }
.col-list { padding-left: 1.2em; }
.dist .bar { display: inline-block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--gold), var(--rose)); vertical-align: middle; }

/* 「来週の流れをLINEで受け取る」（LINEのロゴ・緑は使わない。ただのリンク） */
.weekly-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--gold); background: var(--gold-soft); }
.weekly-line p { margin: 0; flex: 1 1 18em; max-width: 36em; }
.weekly-line .btn { flex: 0 1 auto; margin-left: auto; justify-content: center; text-align: center; max-width: 100%; white-space: normal; }
.result > .weekly-line { grid-column: 1 / -1; }
@media (max-width: 480px) { .weekly-line .btn { flex-basis: 100%; margin-left: 0; } }
@media (min-width: 861px) {
  aside.side .weekly-line { padding: 16px; }
  aside.side .weekly-line .btn { flex-basis: 100%; margin-left: 0; padding-inline: 12px; font-size: .9rem; }
}

/* ブログランキングのバナー（コラムの記事末尾。小さく控えめに） */
.blogmura { justify-self: center; text-align: center; font-size: .78rem; line-height: 1.6; opacity: .85; }
.blogmura p { margin: 0 0 6px; font-size: .78rem; }
.blogmura img { display: inline-block; vertical-align: middle; border: 0; }
.blogmura a { color: var(--muted); }
.blogmura .rank-banners { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-start; gap: 8px 20px; }
.blogmura .rank-item { min-width: 0; }

/* 連載（tools/column/build.js で作るページ） */
.series-box { border: 1px solid var(--line); border-radius: 14px; background: var(--paper); padding: 16px 20px; display: grid; gap: 10px; }
.series-box p { margin: 0; }
.series-box .series-name { font-family: var(--f-display); font-weight: 700; }
.series-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.series-pager a, .series-pager span { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .9rem; min-width: 0; overflow-wrap: anywhere; }
.series-pager a:hover { border-color: var(--gold); }
.series-pager small { color: var(--muted); font-size: .78rem; }
.series-pager .next { text-align: right; }
.series-pager span { color: var(--muted); border-style: dashed; }
.doc blockquote { margin: 0; padding: 10px 16px; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 8px 8px 0; }
.doc h3 { font-size: 1.05rem; margin: 16px 0 6px; }
.col-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.col-filter a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; font-size: .88rem; }
.col-filter a[aria-current="true"] { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.col-group-h { font-family: var(--f-display); font-size: 1.2rem; margin: 8px 0 0; }
.col-group { display: grid; gap: 14px; }
.col-group[hidden], .col-group-h[hidden], .col-cards[hidden] { display: none; }

/* ==== 新しいトップ ==== */
/* 今日のあなた（いちばん上のカード） */
.today-sec { padding-top: 28px; }
.today-card { margin-top: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 30px 32px; display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; box-shadow: var(--shadow); }
.today-card > * { min-width: 0; }
.seal { width: 116px; height: 116px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #CDA95F, #94702A); color: #FFF8E6; display: grid; place-items: center; font-family: var(--f-display); font-size: 62px; font-weight: 800; line-height: 1; box-shadow: 0 0 0 6px var(--gold-soft); }
.today-card h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 1.8rem); letter-spacing: .04em; margin: 4px 0 8px; line-height: 1.5; }
.today-form { grid-template-columns: 1fr; padding: 22px 24px; }
.today-form .calc { margin-top: 0; }
.today-form .calc label { font-size: 1rem; color: var(--ink); font-weight: 700; flex: 1 1 100%; }
.today-form .calc input { width: 100%; }
.today-date { font-size: .9rem; color: var(--muted); margin: 0; }
.today-msg { margin: 0; max-width: 36em; }
.today-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 12px; font-size: .92rem; color: var(--muted); }
.today-meta b { color: var(--ink); }
.today-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 14px; font-size: .95rem; }
.today-links a, .today-links button { font: 700 .95rem var(--f-body); color: var(--accent); background: none; border: 0; padding: 4px 0; min-height: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; display: inline; }
.today-links button.quiet { font-weight: 400; color: var(--muted); }
.today-form .calc { margin-top: 14px; }
.today-form .note { max-width: 36em; }

/* トップの上の部分：入口。「手の写真」が主役。保存済みの人は「今日のあなた」が先頭 */
.top-stack { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 24px; }
.top-stack > * { min-width: 0; }
.doors { display: contents; }
.top-stack .today-sec { grid-column: 1 / -1; padding-top: 0; }
.top-stack .door.hand { grid-column: 1 / -1; }
.top-stack .season-pill { grid-column: 1 / -1; justify-self: start; margin-top: 0; order: 9; }
.top-stack[data-state="new"] .hand { order: 1; }
.top-stack[data-state="new"] .d-today { order: 2; }
.top-stack[data-state="new"] .d-kantei { order: 3; }
.top-stack[data-state="new"] .today-sec { order: 4; }
.top-stack[data-state="saved"] .today-sec { order: 1; }
.top-stack[data-state="saved"] .hand { order: 2; }
.top-stack[data-state="saved"] .d-kantei { order: 3; grid-column: 1 / -1; }
.top-stack[data-state="saved"] .d-today { display: none; }

.door { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.door .ico { font-family: var(--f-display); font-size: 1.7rem; color: var(--gold); line-height: 1; width: 1.4em; text-align: center; flex: none; }
.door h2 { font-family: var(--f-display); font-size: 1.15rem; margin: 0; letter-spacing: .04em; line-height: 1.5; }
.door p { margin: 0; font-size: .95rem; color: var(--muted); }
.door.row { flex-direction: row; align-items: center; gap: 14px; padding: 14px 18px; min-height: 76px; }
.door.row .txt { flex: 1; min-width: 0; }
.door.row p { font-size: .9rem; line-height: 1.6; }
.door.row::after { content: "›"; font-size: 2rem; color: var(--gold); line-height: 1; flex: none; }
.door.row:hover { border-color: var(--gold); }
.door.hand { border: 2px solid var(--gold); background: linear-gradient(160deg, var(--gold-soft), var(--paper) 72%); padding: 26px 24px; gap: 10px; }
.door.hand h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 6.2vw, 2.6rem); line-height: 1.4; letter-spacing: .04em; margin: 0; }
.door.hand p { color: var(--ink); font-size: 1rem; }
.door.hand p.privacy-line { font-size: .85rem; color: var(--muted); }
.door.hand .btn { min-height: 58px; font-size: 1.08rem; margin-top: 6px; align-self: stretch; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; border: 1px solid var(--gold); color: var(--gold); border-radius: 999px; padding: 0 10px; margin-left: 8px; vertical-align: middle; font-family: var(--f-body); letter-spacing: .04em; line-height: 1.7; }

/* ヘッダーのメニューボタン（スマホ用。JSが使えるときだけ有効） */
.menu-btn { display: none; }

@media (max-width: 860px) {
  .periods { grid-template-columns: 1fr; }
  .article { grid-template-columns: 1fr; gap: 32px; }
  aside.side { position: static; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .wrap { gap: 40px; }
  .hero { grid-template-columns: 1fr; gap: 28px; }
  .result, .compat-out, .num-hero { grid-template-columns: 1fr; gap: 16px; }
  .name-out, .pc { grid-template-columns: 1fr; }
  .board { max-width: 240px; }
  .tate { font-size: .95rem; max-height: 16em; }
  .note, .err { font-size: .9rem; }
  button, .btn { min-height: 52px; }
  form.calc button, .compat-form button { flex: 1 0 100%; }

  /* 共通ヘッダー：ロゴとメニューボタンを1行に。メニューは開いたときだけ縦に出す */
  .logo small { display: none; }
  header.site { flex-wrap: nowrap; padding-block: 8px; gap: 12px; }
  header.site.menu-ready .menu-btn { display: inline-flex; min-height: 44px; padding: 6px 16px; background: transparent; color: var(--ink); border: 1px solid var(--line); font-size: .95rem; }
  header.site.menu-ready nav.site { display: none; }
  header.site.menu-ready.open nav.site { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; position: absolute; top: 100%; left: -16px; right: -16px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,.08); padding: 4px 16px 10px; font-size: 1.05rem; }
  header.site.menu-ready nav.site a { padding: 14px 4px; border-top: 1px solid var(--line); }
  header.site.menu-ready nav.site a:first-child { border-top: 0; }
  header.site:not(.menu-ready) { flex-wrap: wrap; }

  /* トップ：最初の1画面に入口を全部見せる */
  .top-stack { grid-template-columns: 1fr; gap: 12px; padding-top: 0; margin-top: -24px; }
  .top-stack[data-state="saved"] .d-kantei { grid-column: auto; }
  .door.hand { padding: 20px 18px; gap: 8px; }
  .door.hand h1 { font-size: 1.85rem; }
  .today-card { grid-template-columns: auto 1fr; padding: 16px 18px; gap: 14px; border-radius: 18px; }
  .today-form { grid-template-columns: 1fr; padding: 16px 18px; }
  .seal { width: 60px; height: 60px; font-size: 32px; box-shadow: 0 0 0 4px var(--gold-soft); }
  .today-card h2 { font-size: 1.2rem; margin: 2px 0 4px; }
  .today-date { font-size: .82rem; }
  .today-msg { font-size: .95rem; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .today-meta { display: none; }
  .today-links { margin-top: 8px; gap: 2px 18px; font-size: .9rem; }
  .today-links button.quiet { display: none; }
  .today-form .calc { gap: 10px; }
  .today-form .note { margin-top: 6px; }
  .season-pill { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) { .board div, .meter span { transition: none; } }
@media (max-width: 420px) { .series-pager { grid-template-columns: 1fr; } .series-pager .next { text-align: left; } }

/* ==== 文字を減らす部品：もっと見る・タップで開く・数字の丸 ==== */
details.fold { border-top: 1px solid var(--line); margin-top: 14px; }
details.fold > summary { cursor: pointer; list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; color: var(--accent); }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::after { content: "＋"; color: var(--gold); }
details.fold[open] > summary::after { content: "－"; }
details.fold[open] { padding-bottom: 6px; }
details.fold > p { margin: 0 0 8px; }
.name-card details.fold { margin-top: 4px; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.linklike { font: inherit; font-size: .9rem; color: var(--muted); background: none; border: 0; padding: 4px 0; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; display: inline; }

/* 今日・今週・今月・今年：数字とタイトルだけ見せて、タップで本文 */
details.period { padding: 0; }
details.period > summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2px 16px; padding: 16px 20px; min-height: 76px; }
details.period > summary::-webkit-details-marker { display: none; }
details.period > summary .lbl { grid-column: 1 / -1; }
details.period > summary .pn, details.period > summary .wk-n { font-size: 2.2rem; }
details.period > summary h3 { font-size: 1.05rem; }
details.period > summary::after { content: "＋"; color: var(--gold); font-size: 1.1rem; }
details.period[open] > summary::after { content: "－"; }
details.period > :not(summary) { margin: 0 20px 18px; }
details.period > .cycle { margin-top: 0; }
#wkBox .wk-head, #wkBox h3 { display: none; }

/* 数字の丸（18個）：説明を減らして、やさしい色の丸の格子に */
.all-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.all-grid a { --h: 40; text-align: center; justify-items: center; gap: 0; padding: 16px 6px 12px; background: hsl(var(--h) 65% 92%); border-color: transparent; border-radius: 20px; }
.all-grid a:nth-child(9n+1) { --h: 12; }
.all-grid a:nth-child(9n+2) { --h: 36; }
.all-grid a:nth-child(9n+3) { --h: 52; }
.all-grid a:nth-child(9n+4) { --h: 140; }
.all-grid a:nth-child(9n+5) { --h: 185; }
.all-grid a:nth-child(9n+6) { --h: 215; }
.all-grid a:nth-child(9n+7) { --h: 255; }
.all-grid a:nth-child(9n+8) { --h: 290; }
.all-grid a:nth-child(9n) { --h: 330; }
.all-grid .n { font-size: 2.1rem; color: var(--ink); }
.all-grid .t { font-size: .8rem; color: var(--muted); line-height: 1.5; }
.all-grid a:hover { border-color: var(--gold); }
@media (prefers-color-scheme: dark) { .all-grid a { background: hsl(var(--h) 28% 22%); } .all-grid a.on { background: var(--gold-soft); } }
.all-grid a.on { background: var(--gold-soft); border-color: var(--gold); }
#numbers .season-pill { margin-top: 28px; }
@media (max-width: 720px) {
  .all-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .wrap { gap: 56px; }
}

/* ---- 英語ページ「Your Life Path Kanji」（en/index.html）専用 ----
   すべて .kj-page（en/index.html の body）か kj- で始まるクラスの中だけに効かせ、日本語ページには影響させない。
   ローマ字（yō など長音記号つき）は必ず EB Garamond で表示する（筆文字の Yuji Syuku には ō が無いため）。 */
.kj-page {
  --kj-brush: "Yuji Syuku", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --kj-serif: "EB Garamond", "Yuji Syuku", Georgia, "Times New Roman", serif;
  --kj-paper: #F3EBDA; --kj-ink: #2A2420; --kj-sub: #6B5A47; --kj-red: #B4452F;
  --f-display: var(--kj-serif); --f-body: var(--kj-serif);
  font-size: 18px; line-height: 1.7;
}
.kj-page h1, .kj-page h2.sec, .kj-page .logo { letter-spacing: .02em; }
.kj-page .logo { font-weight: 600; font-size: 1.3rem; }
.kj-page nav.site { font-size: .95rem; }
.kj-page nav.site a[lang="ja"] { font-family: var(--kj-brush); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 2px 14px; }
.kj-page h1 em { font-style: normal; color: var(--gold); }
.kj-hero { max-width: 40em; padding-top: 12px; }
.kj-hero .lead { font-size: 1.08rem; }
.kj-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.kj-form legend { padding: 0; margin-bottom: 6px; font-weight: 600; }
.kj-date { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, .9fr) minmax(0, 1.1fr); gap: 8px; max-width: 30em; }
.kj-date label { display: grid; gap: 4px; font-size: .85rem; color: var(--muted); min-width: 0; }
.kj-page select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 8px; font: 500 16px var(--kj-serif); color: var(--ink); background: var(--paper-solid); border: 1px solid var(--line); border-radius: 10px; }
.kj-page select:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.kj-page select[aria-invalid="true"] { border-color: var(--rose); box-shadow: 0 0 0 1px var(--rose) inset; }
.kj-form button { margin-top: 14px; font-family: var(--kj-serif); font-size: 1.05rem; }
.kj-privacy { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
.kj-result { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 32px; align-items: start; padding-block: 32px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: 72px; }
.kj-card { position: relative; text-align: center; color: var(--kj-ink); border-radius: 14px; padding: 26px 18px 22px; background: radial-gradient(120% 90% at 50% 40%, #F8F2E4 0%, var(--kj-paper) 55%, #E6D8BE 100%); box-shadow: var(--shadow); }
.kj-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(120,90,60,.3); border-radius: 10px; pointer-events: none; }
.kj-eyebrow { font-family: var(--kj-serif); font-weight: 600; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--kj-sub); }
.kj-kanji { font-family: var(--kj-brush); font-size: clamp(7rem, 34vw, 11rem); line-height: 1.15; color: var(--kj-ink); margin: 6px 0 2px; }
.kj-read { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.kj-romaji { font-family: "EB Garamond", Georgia, "Times New Roman", serif; font-style: italic; font-size: 1.7rem; color: var(--kj-ink); }
.kj-dot { color: var(--kj-sub); }
.kj-jp { font-family: var(--kj-brush); font-size: 1.15rem; color: var(--kj-sub); }
.kj-num { margin-top: 8px; font-size: .9rem; color: var(--kj-sub); }
.kj-master { display: inline-block; margin-left: 4px; font-size: .78rem; padding: 0 10px; border: 1px solid var(--kj-red); color: var(--kj-red); border-radius: 999px; }
.kj-text { min-width: 0; }
.kj-title { font-family: var(--kj-serif); font-weight: 600; font-size: 1.9rem; line-height: 1.3; margin: 0 0 2px; letter-spacing: .01em; }
.kj-title:focus { outline: none; }
.kj-meaning { font-style: italic; color: var(--muted); margin: 0 0 14px; }
.kj-one { font-size: 1.2rem; font-style: italic; color: var(--gold); margin: 0 0 14px; padding-left: 14px; border-left: 2px solid var(--gold); max-width: 34em; }
.kj-reading { margin: 0 0 18px; max-width: 36em; }
.kj-steps-label { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.kj-share { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr); gap: 18px; align-items: center; margin-top: 24px; }
.kj-share-img img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.kj-share-actions { display: grid; gap: 10px; justify-items: start; min-width: 0; }
.kj-share-actions .note { margin: 0; }
.kj-share-actions .btn { font-family: var(--kj-serif); }
.kj-share-actions .btn[aria-disabled="true"] { opacity: .55; cursor: progress; }
.kj-disclaimer { font-size: .82rem; color: var(--muted); font-style: italic; margin: 22px 0 0; }
.kj-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.kj-item { min-width: 0; padding: 14px 18px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.kj-item h3 { font-family: var(--kj-serif); font-weight: 600; font-size: 1.12rem; line-height: 1.35; margin: 0 0 6px; }
.kj-ln { color: var(--muted); font-weight: 500; }
.kj-lk { font-family: var(--kj-brush); font-weight: 400; font-size: 2.2rem; line-height: 1; vertical-align: -0.12em; color: var(--ink); }
.kj-lm { margin: 0 0 6px; }
.kj-lm .kj-master { margin-left: 0; }
.kj-item .kj-meaning { margin: 0 0 8px; }
.kj-item .kj-one { font-size: 1.02rem; margin: 0; }
.kj-item .kj-reading { margin: 10px 0 0; font-size: .98rem; }
.kj-page .kj-more { margin-top: 10px; min-height: 44px; padding: 6px 14px; font: 500 .95rem var(--kj-serif); background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; box-shadow: none; }
.kj-page .kj-more:hover { border-color: var(--gold); filter: none; }
.kj-list-note { margin-top: 14px; }
.kj-about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.kj-about-col { min-width: 0; max-width: 40em; }
.kj-about-col p, .kj-about-col li { margin: 0 0 10px; }
.kj-about-col ol { padding-left: 1.3em; margin: 0 0 12px; }
.kj-label { font-size: .85rem; color: var(--muted); margin: 10px 0 0 !important; }
@media (max-width: 760px) {
  .kj-result, .kj-about { grid-template-columns: 1fr; gap: 20px; }
  .kj-card { max-width: 360px; width: 100%; justify-self: center; }
  .kj-form button { width: 100%; justify-content: center; }
}
@media (max-width: 480px) {
  .kj-share { grid-template-columns: 1fr; justify-items: center; }
  .kj-share-img img { max-width: 220px; }
  .kj-share-actions { justify-items: center; text-align: center; }
  .kj-title { font-size: 1.6rem; }
}

/* 入力カードの余白：エラーが無いときは詰める */
.today-form .err:empty { min-height: 0; margin: 0; }

/* ==== イメージ（自作のSVG。icons.svg を <use> で読み込む。色は currentColor ＝ ダークモードでも自動で合う） ==== */
svg.ico { width: 38px; height: 38px; color: var(--gold); flex: none; display: block; }
.door.hand { position: relative; overflow: hidden; }
.door.hand > * { position: relative; z-index: 1; }
.door.hand::before { content: ""; position: absolute; z-index: 0; right: -40px; top: -40px; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(circle, var(--gold-soft) 0%, transparent 68%); }
.door.hand > svg.art { position: absolute; z-index: 0; right: 2px; top: 4px; width: 100px; height: auto; color: var(--gold); opacity: .36; }
@media (min-width: 721px) {
  .door.hand { padding-right: 260px; min-height: 250px; justify-content: center; }
  .door.hand > svg.art { right: 48px; top: 50%; transform: translateY(-50%); width: 170px; opacity: 1; }
  .door.hand::before { right: 0; top: 50%; transform: translateY(-50%); width: 340px; height: 340px; }
}
.today-form { position: relative; overflow: hidden; }
.today-form > svg.deco { position: absolute; right: 14px; top: 10px; width: 78px; height: auto; color: var(--gold); opacity: .55; pointer-events: none; }
.today-form > :not(svg) { position: relative; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sec-head .sec { margin-bottom: 4px; }
svg.deco-nine { width: 64px; height: 64px; color: var(--gold); opacity: .6; flex: none; }
@media (max-width: 720px) { .today-form > svg.deco { width: 64px; } }

/* ==== ナンバーページ ==== */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: -8px; }
.cta-row .btn { flex: 1 1 14em; }
.fold-list { display: grid; border-bottom: 1px solid var(--line); }
.fold-list > details.fold { margin-top: 0; }
.fold-list > details.fold > summary { font-family: var(--f-display); color: var(--ink); font-size: 1.12rem; letter-spacing: .03em; }
.fold-list > details.fold > :not(summary) { margin-top: 2px; margin-bottom: 12px; }
.fold-list .pc { margin-top: 6px; }
@media (max-width: 720px) { .cta-row .btn { flex-basis: 100%; } .num-hero .bignum { font-size: 6rem; } }

/* ==== 写真（Unsplash・採用2枚。img/ のWebP。文字が読めるよう、紙の色をかぶせる） ==== */
.door .photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.door.has-photo { position: relative; overflow: hidden; }
.door.hand.has-photo::after, .door.d-kantei.has-photo::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.door.hand.has-photo { background: var(--paper); }
.door.hand .photo { object-position: 50% 38%; filter: grayscale(.2); opacity: .5; }
.door.hand::before { z-index: 0; }
.door.hand.has-photo::after { background: linear-gradient(100deg, var(--paper) 8%, color-mix(in srgb, var(--paper) 78%, transparent) 55%, color-mix(in srgb, var(--paper) 35%, transparent) 100%); }
.door.d-kantei .photo { object-position: 50% 52%; opacity: .55; }
.door.d-kantei.has-photo::before { background: linear-gradient(90deg, var(--paper) 0%, color-mix(in srgb, var(--paper) 82%, transparent) 55%, color-mix(in srgb, var(--paper) 40%, transparent) 100%); }
.door.has-photo > :not(.photo):not(.art) { position: relative; z-index: 1; }
.door.hand > svg.art { z-index: 1; }
@media (prefers-color-scheme: dark) {
  .door.hand .photo { opacity: .75; filter: none; }
  .door.d-kantei .photo { opacity: .6; }
}

/* ==== 手の写真の説明ページ ==== */
.hp-hero { grid-column: auto; padding: 28px 24px; }
.hp-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 6vw, 2.8rem); line-height: 1.4; margin: 0; letter-spacing: .04em; }
.hp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: hp; }
.hp-steps li { counter-increment: hp; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); min-height: 68px; }
.hp-steps li::before { content: counter(hp); grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--f-display); font-size: 1.3rem; font-weight: 800; }
.hp-steps b { font-family: var(--f-display); font-size: 1.05rem; }
.hp-steps span { font-size: .9rem; color: var(--muted); }
.hp-tips, .hp-notes { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hp-tips li { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.hp-tips svg { width: 28px; height: 28px; color: var(--gold); flex: none; }
.hp-notes li { position: relative; padding: 4px 0 4px 1.2em; font-size: .95rem; }
.hp-notes li::before { content: "・"; position: absolute; left: 0; color: var(--gold); }
.hp-end { text-align: center; display: grid; gap: 12px; justify-items: center; }
.hp-end .btn { min-height: 58px; padding-inline: 32px; }
.hp-end .sec { margin: 0; }
.fill { font-size: .85em; }
/* 鑑定書カード：写真の上に紙の色をかぶせてから、文字を重ねる */
.door.d-kantei.has-photo::before { z-index: 1; }
.door.d-kantei.has-photo > :not(.photo) { z-index: 2; }
.door.d-kantei.has-photo::after { z-index: 2; }

/* 2026-11-15：広告は未設置のため、予定枠は表示しない（AdSense を入れるときにこの行を消す） */
.adslot { display: none; }
