/* 恋愛占いペナル 共通スタイル（本番。ファイル名は固定。docs/build-design.md 第7節）
   色は docs/art-direction.md 第2章。月に見える形（円の欠け・弧）は使わない。星は点と四方星だけ。 */
:root {
  --night: #141B33; --indigo: #1F2A4D; --wood: #4A3628; --brass: #B08D4C; --gold: #C9A961;
  --paper: #F3ECDD; --paper-old: #E5D9BF; --ink: #22222B; --line: #2B2430; --starlight: #FFF6D8;
  --hiiro: #8E2B3A; --chifuyu: #5F7488; --koyomi: #2B3A78; --arata: #3A3A3F; --arata-sub: #C8432D; --tsumugu: #5F6E3F;
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", "Noto Serif JP", "Noto Serif CJK JP", serif;
  --gothic: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", Meiryo, sans-serif;
  --measure: 40rem;
  --who: var(--wood);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--gothic); font-size: 1.0625rem; line-height: 2; letter-spacing: .02em; overflow-wrap: anywhere; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: #1d3a8a; text-underline-offset: .2em; }
a:hover { color: var(--hiiro); }
:focus-visible { outline: 3px solid var(--arata-sub); outline-offset: 2px; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, .mincho { font-family: var(--mincho); font-weight: 700; letter-spacing: .04em; }
.wrap { width: min(100% - 2rem, var(--measure)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2rem, 60rem); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- ヘッダー・ナビ ---------- */
.site-head { background: var(--night); color: var(--starlight); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--brass); }
.site-head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: min(100% - 1.5rem, 60rem); margin-inline: auto; min-height: 3.5rem; }
.logo { display: inline-flex; align-items: center; gap: .5rem; color: var(--starlight); text-decoration: none; font-family: var(--mincho); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; }
.logo:hover { color: var(--gold); }
.logo svg { width: 1.5rem; height: 1.5rem; color: var(--gold); }
.nav-toggle { background: none; border: 1px solid var(--brass); color: var(--starlight); padding: .25rem .8rem; font-size: .9rem; line-height: 1.8; }
.nav-toggle[aria-expanded="true"] { background: var(--gold); color: var(--night); }
.site-nav { background: var(--indigo); color: var(--starlight); border-bottom: 1px solid var(--brass); }
.site-nav-in { width: min(100% - 2rem, 60rem); margin-inline: auto; padding: 1rem 0 1.5rem; display: grid; gap: 1.2rem; }
.site-nav h2 { font-size: .95rem; color: var(--gold); margin: 0 0 .3rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.2rem; }
.site-nav a { color: var(--starlight); text-decoration: none; display: inline-block; padding: .25rem 0; }
.site-nav a:hover { color: var(--gold); text-decoration: underline; }
@media (min-width: 48rem) { .site-nav-in { grid-template-columns: repeat(3, 1fr); } }

.crumbs { font-size: .8rem; line-height: 1.6; padding: .8rem 0 0; color: #5a5348; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.crumbs li + li::before { content: "／"; margin: 0 .4em; color: var(--brass); }
.crumbs a { color: inherit; }

/* ---------- 本文 ---------- */
.page-head { padding: 1.2rem 0 .5rem; }
.page-head h1 { font-size: clamp(1.6rem, 6.2vw, 2.3rem); line-height: 1.5; margin: 0 0 .6rem; }
.page-kanban { display: inline-block; font-family: var(--mincho); font-size: .9rem; color: var(--who); border-block: 1px solid currentColor; padding: 0 .6em; line-height: 1.9; margin-bottom: .6rem; }
.lead { font-size: 1.0625rem; }
.prose h2 { font-size: 1.45rem; line-height: 1.6; margin: 3.2rem 0 1rem; padding-bottom: .5rem; border-bottom: 3px double var(--wood); display: flex; gap: .5rem; align-items: baseline; }
.prose h2::before { content: ""; flex: none; width: .8em; height: .8em; background: var(--brass); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); transform: translateY(.05em); }
.prose h3 { font-size: 1.15rem; line-height: 1.7; margin: 2.2rem 0 .6rem; padding-left: .7rem; border-left: 4px solid var(--who); }
.prose p { margin: 0 0 1.4em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.4em; }
.prose li { margin-bottom: .4em; }
.prose .mokuroku, .prose .taglist { padding-left: 0; }
.prose .mokuroku li, .prose .taglist li { margin-bottom: 0; }
.note { background: var(--paper-old); padding: .9rem 1.1rem; font-size: .95rem; line-height: 1.85; margin: 1.5rem 0; }
.kari { color: #7a6a4a; font-size: .85rem; }
.toc { border-block: 1px solid var(--wood); padding: .8rem 0; margin: 1.5rem 0; font-size: .95rem; line-height: 1.8; }
.toc p { margin: 0 0 .3rem; font-family: var(--mincho); font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.5em; }
.toc li { margin: .2em 0; }

/* ---------- 広告の枠（中身が空のあいだは出さない。手動枠を入れるときは templates/parts/ad.html に入れる） ---------- */
.ad-slot { margin: 2.5rem auto; text-align: center; }
.ad-slot:empty { display: none; }
.ad-slot.is-preview { min-height: 7rem; border: 2px dashed #a39678; color: #7a6a4a; display: grid; place-items: center; font-size: .8rem; line-height: 1.6; padding: .5rem; }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: .6rem 1rem; font-size: .85rem; line-height: 1.5; z-index: 50; max-width: calc(100% - 2rem); }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3rem; padding: .4rem 1.4rem; border: 1px solid var(--wood); background: var(--paper); color: var(--ink); font-family: var(--mincho); font-weight: 700; font-size: 1rem; letter-spacing: .06em; text-decoration: none; line-height: 1.5; }
.btn:hover { background: var(--paper-old); color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--night); }
.btn-gold:hover { background: var(--starlight); color: var(--night); }
.btn-ghost { background: transparent; border-color: var(--brass); color: var(--starlight); }
.btn-ghost:hover { background: rgba(201,169,97,.15); color: var(--starlight); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.2rem 0; }

/* ---------- 舞台（夜空の濃紺に金の線） ---------- */
.stage { background-color: var(--night); color: var(--starlight); padding: 2.2rem 0; margin: 2rem 0;
  background-image: radial-gradient(1px 1px at 12% 18%, var(--starlight) 50%, transparent 51%), radial-gradient(1px 1px at 78% 9%, var(--starlight) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 41% 71%, var(--gold) 50%, transparent 51%), radial-gradient(1px 1px at 91% 58%, var(--starlight) 50%, transparent 51%), radial-gradient(1px 1px at 27% 88%, var(--starlight) 50%, transparent 51%), radial-gradient(1.5px 1.5px at 63% 34%, var(--gold) 50%, transparent 51%);
  background-size: 23rem 19rem; }
.stage h2 { font-size: 1.35rem; line-height: 1.6; margin: 0 0 .8rem; color: var(--starlight); }
.stage p { margin: 0 0 1em; }
.stage a { color: var(--gold); }
.stage .kanteihyo a, .stage .slip a, .stage .madoguchi a, .stage .shiori a { color: #1d3a8a; }
.stage-rule { border: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); margin: 1.6rem 0; }
.step-label { font-family: var(--mincho); color: var(--gold); font-size: .95rem; margin: 0 0 .2rem; }

/* ---------- 司書のしおり（5人共通の部品） ---------- */
.w-hiiro { --who: var(--hiiro); } .w-chifuyu { --who: var(--chifuyu); } .w-koyomi { --who: var(--koyomi); } .w-arata { --who: var(--arata); --who-sub: var(--arata-sub); } .w-tsumugu { --who: var(--tsumugu); }
.shiori { position: relative; background: #FBF7EC; color: var(--ink); padding: 1rem 1rem 1.1rem 1.9rem; margin: 0 0 1.1rem; border: 1px solid #d8cbb0; }
.shiori::before { content: ""; position: absolute; left: .55rem; top: -.35rem; width: .8rem; height: calc(100% + .9rem); background: var(--who); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - .5rem), 0 100%); }
.w-arata.shiori::before { background: linear-gradient(var(--arata) 0 82%, var(--arata-sub) 82%); }
.shiori-head { display: flex; align-items: center; gap: .8rem; margin-bottom: .6rem; }
.shiori-face { width: 3.5rem; height: 3.5rem; flex: none; object-fit: cover; border: 2px solid var(--who); background: var(--who); }
.shiori-name { font-family: var(--mincho); font-weight: 700; font-size: 1.15rem; line-height: 1.4; margin: 0; display: flex; align-items: center; gap: .35rem; }
.shiori-name svg { width: 1.1rem; height: 1.1rem; color: var(--who-sub, var(--who)); }
.shiori-role { font-size: .8rem; line-height: 1.5; color: #5a5348; margin: 0; }
.shiori-kata { display: inline-block; font-family: var(--mincho); font-weight: 700; font-size: .95rem; line-height: 1.6; color: var(--who); border-bottom: 1px solid currentColor; margin: 0 0 .5rem; }
.shiori-text { margin: 0; line-height: 1.95; }
.shiori.is-picked { outline: 3px solid var(--who); outline-offset: 2px; }
.shiori-foot { margin: .7rem 0 0; font-size: .9rem; }
.sig { display: flex; align-items: center; gap: .8rem; justify-content: flex-end; margin: 2rem 0; font-family: var(--mincho); }
.sig img { width: 3rem; height: 3rem; border: 2px solid var(--who); }
.sig span { border-bottom: 1px solid var(--who); padding-bottom: .1rem; }

/* 相談の切り替え（トップ「5人に聞く」） */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; }
.chip { min-height: 2.75rem; padding: .3rem .9rem; border: 1px solid var(--brass); background: transparent; color: var(--starlight); font-size: .95rem; line-height: 1.5; }
.chip[aria-selected="true"], .chip[aria-pressed="true"], .chip[aria-checked="true"] { background: var(--gold); color: var(--night); border-color: var(--gold); font-weight: 700; }
.on-paper .chip { color: var(--ink); border-color: var(--wood); }
.on-paper .chip[aria-selected="true"], .on-paper .chip[aria-pressed="true"] { background: var(--wood); color: var(--paper); border-color: var(--wood); }

/* 答えの星図 */
.seizu { margin: 0 0 1.2rem; }
.seizu svg { display: block; width: 100%; max-width: 26rem; margin-inline: auto; overflow: visible; }
.seizu text { font-family: var(--mincho); fill: var(--starlight); }
.seizu .link { stroke: var(--gold); stroke-width: 1; opacity: .55; }
.seizu .hoshi { cursor: pointer; }
.seizu .hoshi path { fill: var(--starlight); transition: transform .25s; transform-box: fill-box; transform-origin: center; }
.seizu .hoshi .tap { fill: transparent; }
.seizu .hoshi text { font-size: 15px; font-weight: 700; }
.seizu .hoshi[aria-pressed="true"] path { fill: var(--gold); transform: scale(1.45); }
.seizu .hoshi[aria-pressed="true"] text { fill: var(--gold); }
.seizu .hoshi:focus-visible { outline: none; }
.seizu .hoshi:focus-visible .tap { stroke: var(--arata-sub); stroke-width: 2; }
.seizu-cap { font-size: .8rem; line-height: 1.6; text-align: center; color: #cfc7b0; margin: .3rem 0 0; }

/* トップの5人の並び（顔・名前・役割・本人の言葉だけ。組にして比べない） */
.shisho-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin: 1.2rem 0 2rem; }
@media (min-width: 40rem) { .shisho-row { grid-template-columns: repeat(5, 1fr); } }
.shisho-row a { text-decoration: none; color: inherit; display: block; }
.versus-side small { display: block; font-size: .8rem; color: #5a5348; margin-bottom: .4rem; }
.versus-side { background: #FBF7EC; border-top: .5rem solid var(--who); padding: .8rem .7rem 1rem; text-align: center; }
.versus-side img { width: 100%; max-width: 9rem; aspect-ratio: 2/3; object-fit: cover; }
.versus-side strong { display: block; font-family: var(--mincho); font-size: 1.1rem; }
.versus-side q { display: block; quotes: none; font-family: var(--mincho); font-weight: 700; color: var(--who); line-height: 1.6; font-size: 1rem; }

/* ---------- 書架（悩みの入口。背表紙を縦書きで並べる） ---------- */
.shelf { display: flex; align-items: flex-end; gap: .25rem; padding: 1rem .5rem 0; margin: 1rem 0 0; overflow-x: auto; border-bottom: .9rem solid var(--wood); background: linear-gradient(#e9dfc7, #dccfb1); scroll-snap-type: x proximity; }
.spine { flex: 1 0 2.2rem; max-width: 5rem; writing-mode: vertical-rl; text-orientation: upright; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .9rem 0; background: var(--c, var(--indigo)); color: var(--starlight); text-decoration: none; font-family: var(--mincho); font-weight: 700; font-size: 1.15rem; letter-spacing: .25em; line-height: 1; height: var(--h, 13rem); border-block: .3rem solid rgba(0,0,0,.18); box-shadow: inset .25rem 0 0 rgba(255,255,255,.08), inset -.25rem 0 0 rgba(0,0,0,.18); scroll-snap-align: start; transition: transform .2s; }
.spine::after { content: ""; width: .7rem; height: .7rem; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.spine small { font-size: .7rem; letter-spacing: .1em; font-weight: 500; opacity: .85; }
.spine:hover, .spine:focus-visible { transform: translateY(-.7rem); color: var(--starlight); }
.shelf-cap { font-size: .85rem; color: #5a5348; margin: .5rem 0 0; }

/* ---------- 目録カード（メニューの入口） ---------- */
.mokuroku { list-style: none; margin: 1rem 0 2rem; padding: 0; display: grid; gap: .7rem; }
@media (min-width: 40rem) { .mokuroku { grid-template-columns: 1fr 1fr; } }
.mokuroku a { display: block; height: 100%; background: #FBF7EC; border: 1px solid #d8cbb0; border-top: 3px solid var(--who); padding: .7rem .9rem .8rem; text-decoration: none; color: var(--ink); line-height: 1.7; }
.mokuroku a:hover { background: #fff; }
.mokuroku strong { display: block; font-family: var(--mincho); font-size: 1.05rem; }
.mokuroku span { display: block; font-size: .85rem; color: #5a5348; }
.mokuroku em { font-style: normal; font-size: .8rem; color: var(--who); font-weight: 700; }
.taglist { list-style: none; padding: 0; margin: .8rem 0 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.taglist a { display: inline-block; border: 1px solid var(--wood); padding: .15rem .8rem; text-decoration: none; color: var(--ink); background: #FBF7EC; font-size: .95rem; }
.taglist a:hover { background: var(--wood); color: var(--paper); }

/* ---------- 館内図 ---------- */
.kannai { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--wood); border: 3px solid var(--wood); margin: 1rem 0; }
.kannai a { background: #FBF7EC; color: var(--ink); text-decoration: none; padding: .7rem .8rem; line-height: 1.6; border-left: .5rem solid var(--who); display: block; }
.kannai a:hover { background: #fff; }
.kannai .full { grid-column: 1 / -1; }
.kannai .dome { background: var(--indigo); color: var(--starlight); text-align: center; border-left: 0; border-top: .5rem solid var(--gold); }
.kannai .basement { background: #2a2230; color: var(--starlight); }
.kannai strong { font-family: var(--mincho); display: block; font-size: 1.05rem; }
.kannai span { font-size: .8rem; opacity: .85; }

/* ---------- トップの導入 ---------- */
.hero { background: var(--night); color: var(--starlight); margin: 0; padding: 0 0 2rem; }
.hero-art { display: block; width: 100%; max-height: 22rem; object-fit: cover; aspect-ratio: 16/9; }
.hero h1 { font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.35; margin: 1.4rem 0 .4rem; letter-spacing: .1em; }
.hero-rule { font-family: var(--mincho); font-size: clamp(1.15rem, 4.6vw, 1.5rem); color: var(--gold); margin: 0 0 1rem; line-height: 1.7; }
.hero p { margin: 0 0 1em; }

/* ---------- タロットのカード（枠・名前はサイト側で重ねる） ---------- */
.tcard { position: relative; aspect-ratio: 2/3; background: var(--paper); padding: 4%; border-radius: 3.5% / 2.4%; box-shadow: 0 .2rem .6rem rgba(0,0,0,.35); display: flex; flex-direction: column; color: var(--ink); }
.tcard-art { position: relative; flex: 1; min-height: 0; overflow: hidden; outline: 1px solid var(--gold); outline-offset: -4px; border: 1px solid var(--gold); }
.tcard-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tcard.is-rev .tcard-art img { transform: rotate(180deg); }
.tcard-art::before, .tcard-art::after { content: ""; position: absolute; z-index: 1; width: 7%; aspect-ratio: 1; background: var(--gold); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); top: 3%; }
.tcard-art::before { left: 4%; } .tcard-art::after { right: 4%; }
.tcard-band { flex: none; text-align: center; font-family: var(--mincho); font-weight: 700; font-size: clamp(.6rem, 3.1cqw + .45rem, 1.05rem); line-height: 1.3; padding: 6% 0 2%; border-top: 2px solid var(--suit, var(--brass)); margin-top: 4%; white-space: nowrap; }
.tcard-band small { font-weight: 500; margin-right: .4em; }
.tcard-back { aspect-ratio: 2/3; border-radius: 3.5% / 2.4%; background: var(--paper); padding: 4%; box-shadow: 0 .15rem .4rem rgba(0,0,0,.4); }
.tcard-back img { width: 100%; height: 100%; object-fit: cover; display: block; border: 1px solid var(--gold); }
.card-hero { display: grid; grid-template-columns: minmax(0, 11rem) 1fr; gap: 1.2rem; align-items: center; }
.card-hero .tcard { container-type: inline-size; }
.kw { list-style: none; padding: 0; margin: .5rem 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.kw li { border: 1px solid var(--brass); padding: 0 .7rem; font-size: .9rem; line-height: 1.9; }
.genre-read { border-top: 1px solid var(--wood); margin: 0 0 2rem; }
.genre-read div { border-bottom: 1px solid #cdbf9f; padding: .9rem 0; }
.genre-read dt { font-family: var(--mincho); font-weight: 700; }
.genre-read dd { margin: .2rem 0 0; }
.genre-read .rev { color: #4a4a55; }
.pager { display: flex; justify-content: space-between; gap: 1rem; margin: 2rem 0; font-family: var(--mincho); }

/* ---------- 占いの舞台：タロット ---------- */
.uranai { scroll-margin-top: 4rem; }
.slip { background: #FBF7EC; color: var(--ink); padding: 1.1rem 1rem 1.3rem; border-top: .45rem solid var(--who); position: relative; }
.slip h3 { font-size: 1.05rem; margin: 0 0 .2rem; }
.slip fieldset { border: 0; padding: 0; margin: 0 0 1.2rem; }
.slip legend { font-family: var(--mincho); font-weight: 700; padding: 0; margin-bottom: .5rem; line-height: 1.6; }
.opt-list { display: grid; gap: .45rem; }
.opt { display: flex; gap: .6rem; align-items: flex-start; border: 1px solid #cdbf9f; padding: .55rem .7rem; line-height: 1.6; background: #fff; }
.opt:has(input:checked) { border-color: var(--wood); box-shadow: inset 0 0 0 2px var(--wood); }
.opt input { margin-top: .35rem; accent-color: var(--wood); width: 1.1rem; height: 1.1rem; flex: none; }

.fan { display: flex; padding: 1.6rem 1rem 1rem; margin: 0 -1rem; overflow-x: auto; scroll-snap-type: x proximity; }
.fan-card { flex: none; width: 4.6rem; margin-right: -2.3rem; padding: 0; border: 0; background: none; transition: transform .25s; scroll-snap-align: center; }
.fan-card:last-child { margin-right: 0; }
.fan-card:hover, .fan-card:focus-visible { transform: translateY(-1rem); z-index: 2; }
.fan-card.is-taken { visibility: hidden; }
.fan.is-shuffling .fan-card { animation: shuffle .7s ease-in-out both; }
.fan.is-shuffling .fan-card:nth-child(odd) { animation-direction: reverse; }
@keyframes shuffle { 0%, 100% { transform: none; } 40% { transform: translate(1.2rem, -1.1rem) rotate(7deg); } 70% { transform: translate(-.8rem, .3rem) rotate(-5deg); } }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; margin: 1rem 0; }
.slot { text-align: center; }
.slot-label { font-family: var(--mincho); font-size: .8rem; line-height: 1.5; color: var(--gold); min-height: 3em; display: flex; align-items: flex-end; justify-content: center; margin: 0 0 .4rem; }
.slot-box { aspect-ratio: 2/3; border: 1px dashed var(--brass); display: grid; place-items: center; color: var(--brass); font-family: var(--mincho); position: relative; perspective: 50rem; container-type: inline-size; }
.flip { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2,.7,.2,1); background: none; border: 0; padding: 0; width: 100%; }
.flip.is-open { transform: rotateY(180deg); }
.flip > * { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.flip > .tcard { transform: rotateY(180deg); }
.flip.just-in { animation: dropin .45s ease-out; }
@keyframes dropin { from { transform: translateY(-2.5rem) scale(.8); opacity: 0; } }
.hirameki { display: flex; gap: .9rem; align-items: center; margin: 1.2rem 0; animation: fadein .6s ease-out; }
.hirameki img { width: 5.5rem; height: 5.5rem; border: 2px solid var(--gold); flex: none; }
.hirameki p { font-family: var(--mincho); font-size: 1.2rem; line-height: 1.7; margin: 0; }
@keyframes fadein { from { opacity: 0; transform: translateY(.6rem); } }

/* 鑑定票（結果） */
.kanteihyo { background: #FBF7EC; color: var(--ink); margin: 1.5rem 0 0; padding: 1.2rem 1rem 1.5rem; border-top: .45rem solid var(--who); animation: fadein .7s ease-out; }
.kanteihyo-head { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; border-bottom: 3px double var(--wood); padding-bottom: .7rem; margin-bottom: 1rem; }
.kanteihyo-head h3 { font-size: 1.2rem; line-height: 1.5; margin: 0; }
.kanteihyo-head p { margin: 0; font-size: .85rem; color: #5a5348; }
.stamp { flex: none; border: 2px solid var(--hiiro); color: var(--hiiro); font-family: var(--mincho); font-weight: 700; font-size: .78rem; line-height: 1.35; text-align: center; padding: .2rem .5rem; transform: rotate(-4deg); opacity: .85; }
.stamp b { display: block; font-size: .95rem; border-block: 1px solid currentColor; margin: .1rem 0; padding: 0 .2rem; }
.drawn { display: grid; grid-template-columns: 5.2rem 1fr; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid #d8cbb0; }
.drawn .tcard { container-type: inline-size; box-shadow: 0 .1rem .3rem rgba(0,0,0,.25); }
.drawn h4 { font-family: var(--mincho); font-size: 1.02rem; line-height: 1.6; margin: 0 0 .2rem; }
.drawn h4 small { display: block; font-size: .8rem; color: #5a5348; font-weight: 500; }
.drawn p { margin: 0; line-height: 1.85; font-size: .98rem; }
.kata { margin: 1.4rem 0; }
.kata h4 { font-family: var(--mincho); font-size: 1.3rem; line-height: 1.6; margin: 0 0 .5rem; }
.kata h4 small { display: block; font-size: .85rem; color: #5a5348; font-weight: 500; }
.kaze { display: inline-block; font-size: .8rem; font-weight: 700; border: 1px solid currentColor; padding: 0 .6em; line-height: 1.8; margin-left: .2em; vertical-align: middle; font-family: var(--gothic); }
.five { background: var(--night); color: var(--starlight); margin: 1.6rem -1rem 0; padding: 1.4rem 1rem 1.2rem; }
.five h4 { font-family: var(--mincho); font-size: 1.2rem; margin: 0 0 .3rem; line-height: 1.6; }
.five > p { font-size: .92rem; line-height: 1.8; margin: 0 0 .8rem; }
.kariru { margin: 1.4rem 0 0; }
.kariru h4 { font-family: var(--mincho); font-size: 1.1rem; margin: 0 0 .3rem; }
.kashidashi { border: 1px solid var(--wood); padding: .8rem 1rem; margin: 1rem 0; background: #fff; font-family: var(--mincho); line-height: 1.9; }
.kashidashi b { color: var(--who); }

/* 相談窓口（安全優先。広告もほかの占いへの誘導も出さない） */
.madoguchi { background: #fff; color: var(--ink); border: 3px solid var(--ink); padding: 1.2rem 1rem; margin: 1.5rem 0 0; }
.madoguchi h3 { font-size: 1.25rem; line-height: 1.6; margin: 0 0 .6rem; }
.madoguchi ul { padding-left: 1.2em; margin: .6rem 0; }
.madoguchi li { margin-bottom: .6em; line-height: 1.8; }
.madoguchi .hirameki p { font-size: 1.05rem; }
.madoguchi .hirameki img { border-color: var(--who); }

/* ---------- もっと占う・フッター ---------- */
.motto { background: var(--paper-old); padding: 2rem 0; margin-top: 3rem; }
.motto h2 { font-size: 1.3rem; margin: 0 0 .8rem; }
.site-foot { background: var(--night); color: #d9d2bd; padding: 2.2rem 0 2.5rem; font-size: .9rem; line-height: 1.9; border-top: 1px solid var(--brass); }
.site-foot h2 { font-size: .95rem; color: var(--gold); margin: 1.4rem 0 .3rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .1rem 1.1rem; }
.site-foot a { color: #d9d2bd; }
.site-foot a:hover { color: var(--gold); }
.foot-rule { font-family: var(--mincho); color: var(--gold); font-size: 1.05rem; margin: 0 0 .3rem; }
.foot-copy { margin-top: 1.6rem; font-size: .8rem; opacity: .8; }

@media (min-width: 48rem) {
  body { font-size: 1.09rem; }
  .fan-card { width: 5.4rem; }
  .drawn { grid-template-columns: 7rem 1fr; }
  .five { margin-inline: 0; padding-inline: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- 相談（司書と話す） ---------- */
.talk-log { display: grid; gap: .8rem; }
.line { display: flex; gap: .7rem; align-items: flex-start; animation: fadein .35s ease-out; }
.line.them img { width: 3.2rem; height: 3.2rem; flex: none; border: 2px solid var(--gold); object-fit: cover; }
.line p { margin: 0; padding: .65rem .9rem; line-height: 1.85; }
.line.them p { background: #FBF7EC; color: var(--ink); border-left: .35rem solid var(--who); max-width: 34rem; }
.line.them b { display: block; font-family: var(--mincho); font-size: .85rem; color: var(--who); line-height: 1.4; }
.line.me { justify-content: flex-end; }
.line.me p { background: var(--indigo); color: var(--starlight); border: 1px solid var(--brass); max-width: 80%; }
.talk-tray { margin-top: 1rem; }
.replies { display: grid; gap: .5rem; }
.reply { text-align: left; min-height: 3rem; padding: .55rem .9rem; background: transparent; color: var(--starlight); border: 1px solid var(--gold); line-height: 1.6; font-size: 1rem; }
a.reply { text-decoration: none; display: flex; align-items: center; }
.reply:hover, .reply:focus-visible { background: var(--gold); color: var(--night); }
.name-form input, .name-form textarea { font: inherit; padding: .6rem .8rem; border: 1px solid var(--gold); background: #FBF7EC; color: var(--ink); width: 100%; border-radius: 0; }
.talk-note { font-size: .8rem; line-height: 1.7; color: #cfc7b0; margin: .6rem 0 0; }
.kanteihyo .talk-note { color: #5a5348; }
.linklike { background: none; border: 0; padding: 0; text-decoration: underline; color: inherit; font-size: inherit; }
.kanteihyo-head p { font-family: var(--mincho); }
.kanteihyo-head h3 { font-size: 1.5rem; }
.letter { margin: 0 0 .5rem; }
.susume { border-top: 3px double var(--wood); padding-top: 1rem; margin-top: 1.2rem; }
.susume h4 { font-family: var(--mincho); font-size: 1.15rem; margin: 0; line-height: 1.5; }
.susume p { margin: 0 0 .9em; }
.susume .yakusoku { font-family: var(--mincho); font-weight: 700; color: var(--who); }
.susume .sig { margin: 1rem 0 0; }
/* 受付（トップ） */
.uketsuke { background: var(--indigo); border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); padding: 1.2rem 1rem 1.4rem; margin: 1.2rem -1rem 0; }
.uketsuke .replies { grid-template-columns: 1fr 1fr; }
.uketsuke .replies.one { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .uketsuke { margin-inline: 0; padding-inline: 1.5rem; } .uketsuke .replies { grid-template-columns: repeat(4, 1fr); } .uketsuke .replies.one { grid-template-columns: 1fr; } }
/* 相談窓口のページ */
.madoguchi-list { list-style: none; padding: 0; margin: 1rem 0 2rem; display: grid; gap: .8rem; }
.madoguchi-list li { background: #fff; border: 2px solid var(--ink); padding: .9rem 1rem; line-height: 1.8; margin: 0; }
.madoguchi-list strong { display: block; font-family: var(--mincho); font-size: 1.1rem; }

.kannai-map { display: block; width: 100%; height: auto; border: 3px solid var(--wood); border-bottom: 0; margin-top: 1rem; }
.kannai-map + .kannai { margin-top: 0; }
.hero-art { object-position: center 35%; }
.versus-side img { object-position: top; }

/* 一文字ずつ出す台詞：まだ出ていない字は場所だけ取る（吹き出しの大きさを最初から全文ぶんにする） */
.ty-rest { visibility: hidden; }

/* ================= 占いの舞台（タロット3枚引き以外の型。uranai-core.js と型ごとの JS） ================= */
.bigmoji { display: grid; place-items: center; align-content: center; aspect-ratio: 2/3; background: var(--paper); border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -5px; color: var(--ink); font-family: var(--mincho); line-height: 1.2; text-align: center; }
.bigmoji b { font-size: 1.7rem; }
.bigmoji small { font-size: .75rem; color: #5a5348; }
.drawn > .stone { width: 100%; height: auto; }
.drawn > .zodiac { width: 100%; height: auto; }
.linklike.on-night { color: var(--gold); }
.birth-form select { min-height: 2.75rem; padding: 0 .5rem; font-size: 1rem; background: #FBF7EC; color: var(--ink); border: 1px solid var(--brass); }
.replies.twelve, .replies.four { display: grid; grid-template-columns: repeat(3, 1fr); }
.replies.four { grid-template-columns: repeat(4, 1fr); }
.slots.one { grid-template-columns: minmax(0, 11rem); justify-content: center; }
/* 霊感タロット：暗がりの札の列を、ランタンの灯りが左から右へなぞる（5秒） */
.fan-kurayami { position: relative; background: #0b0f1f; }
.fan-kurayami .fan-card { filter: brightness(.35); }
.fan-kurayami.is-lit .fan-card { animation: tomoshibi 5s linear both; }
.fan-kurayami.is-lit .fan-card:nth-child(4n+2) { animation-delay: .5s; }
.fan-kurayami.is-lit .fan-card:nth-child(4n+3) { animation-delay: 1s; }
.fan-kurayami.is-lit .fan-card:nth-child(4n) { animation-delay: 1.5s; }
.fan-kurayami.is-lit-still .fan-card { filter: none; }
.fan-kurayami.is-dark .fan-card { filter: brightness(.2); }
@keyframes tomoshibi { 0%, 100% { filter: brightness(.35); } 20%, 45% { filter: brightness(1.15); } 70% { filter: brightness(.5); } }
/* ルーン：袋と布と石 */
.pouch { width: 9rem; margin: 1rem auto; }
.pouch img { width: 100%; height: auto; display: block; }
.pouch-kari { aspect-ratio: 4/5; background: #b9a57c; border: 2px solid #7d6a45; border-radius: 12% 12% 45% 45% / 10% 10% 30% 30%; box-shadow: inset 0 1.2rem 0 #9c8759; }
.pouch.is-shaking { animation: yureru .28s ease-in-out infinite; }
@keyframes yureru { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg) translateY(-.15rem); } }
.cloth { background: #e9dfc7; padding: 1.2rem; margin: 1rem auto; max-width: 16rem; display: grid; place-items: center; animation: fadein .5s ease-out; }
.stone { width: 8rem; height: 8rem; }
.stone-body { fill: #c9c5b8; stroke: #8f8a7c; stroke-width: 1.5; }
.stone-glyph path { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.stone-glyph.is-carving path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: horu 1.5s .3s ease-out forwards; }
@keyframes horu { to { stroke-dashoffset: 0; } }
/* 星の時刻表：12の星座の輪 */
.hoshi-wa { display: block; width: min(100%, 20rem); margin: .5rem auto 1rem; }
.hoshi-wa .w-ring { fill: none; stroke: var(--gold); stroke-width: 1; opacity: .7; }
.hoshi-wa .w-tick { stroke: var(--gold); stroke-width: 1; opacity: .5; }
.hoshi-wa .w-name { fill: var(--starlight); font-size: 11px; font-family: var(--mincho); opacity: .75; }
.hoshi-wa .w-name.is-on { fill: var(--gold); opacity: 1; font-weight: 700; }
.hoshi-wa .w-star { fill: var(--gold); animation: fadein .6s 1.9s both; }
.hoshi-wa .w-star.is-b { fill: var(--starlight); }
.hoshi-wa .w-link { stroke: var(--starlight); stroke-width: 1; stroke-dasharray: 3 3; animation: fadein .6s 2.1s both; }
.hoshi-wa .w-needle { transform-origin: 150px 150px; transform: rotate(var(--to)); animation: hari 1.8s cubic-bezier(.3,.7,.2,1) both; }
.hoshi-wa .w-needle path { fill: var(--brass); }
.hoshi-wa.is-still .w-needle, .hoshi-wa.is-still .w-star, .hoshi-wa.is-still .w-link { animation: none; }
@keyframes hari { from { transform: rotate(-40deg); } to { transform: rotate(var(--to)); } }
.jikoku { list-style: none; margin: .6rem 0; padding: 0; border-top: 1px solid #d8cbb0; }
.jikoku li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0 .8rem; padding: .35rem 0 .35rem .7rem; border-bottom: 1px solid #d8cbb0; border-left: .35rem solid #d8cbb0; line-height: 1.6; font-size: .92rem; }
.jikoku li.ki-ugoku { border-left-color: var(--gold); background: #fffaf0; }
.jikoku li.ki-matsu { border-left-color: var(--indigo); }
.jikoku li b { font-family: var(--mincho); }
.jikoku li small { grid-column: 2; color: #5a5348; font-size: .8rem; }
.jikoku-note dt { font-family: var(--mincho); font-weight: 700; margin-top: .6rem; }
.jikoku-note dd { margin: 0; }
/* 数秘・名前：校正紙 */
.gera { background: #FBF7EC; color: var(--ink); padding: 1rem 1.1rem 1.2rem; margin: 1rem 0; border-left: .35rem solid #C8432D; font-family: var(--mincho); }
.gera-title { font-size: .85rem; color: #5a5348; margin: 0 0 .3rem; }
.gera-moto { font-size: 1.3rem; margin: 0 0 .4rem; letter-spacing: .08em; }
.gera-step { margin: 0; color: #C8432D; font-size: 1.05rem; line-height: 1.9; animation: fadein .5s both; }
.gera-kazu { margin: .5rem 0 0; animation: fadein .6s both; }
.gera-kazu b { display: inline-block; font-size: 2rem; line-height: 1; padding: .3rem .9rem; border: 2px solid #C8432D; color: #C8432D; transform: rotate(-3deg); }
.gera.is-still .gera-step, .gera.is-still .gera-kazu, .gera.is-still .katsuji span { animation: none; }
.katsuji { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 .5rem; }
.katsuji span { display: grid; justify-items: center; min-width: 2.6rem; padding: .2rem .3rem; border: 1px solid var(--wood); background: var(--paper); animation: dropin .35s both; }
.katsuji b { font-size: 1.25rem; line-height: 1.4; }
.katsuji i { font-style: normal; font-size: .75rem; color: #5a5348; line-height: 1.3; }
.katsuji small { font-size: .8rem; color: #C8432D; line-height: 1.3; }
/* 命式：貸出台帳 */
.daichou-wrap { position: relative; background: #FBF7EC; color: var(--ink); padding: .8rem 1rem 4.2rem; margin: 1rem 0; }
.daichou { margin: 0; }
.daichou > div { display: grid; grid-template-columns: 9rem 1fr; gap: .8rem; border-bottom: 1px solid #b9c0c8; padding: .3rem 0; line-height: 1.7; animation: fadein .4s both; }
.daichou dt { font-size: .82rem; color: #5a5348; }
.daichou dd { margin: 0; font-family: var(--mincho); }
.daichou.is-still > div { animation: none; }
.daichou-stamp { position: absolute; right: .8rem; bottom: .6rem; background: #FBF7EC; animation: fadein .3s both; }
/* 血液型：2枚を並べる */
.futari { display: grid; grid-template-columns: 6rem auto 6rem; gap: 1rem; justify-content: center; align-items: center; margin: 1rem 0; font-family: var(--mincho); font-size: 1.4rem; animation: fadein .7s both; }
.futari.is-still { animation: none; }
/* 診断：1問ずつの頁と、閉じた本の背表紙 */
.shindan-page { background: #FBF7EC; color: var(--ink); padding: 1rem 1rem 1.2rem; margin: 1rem 0; }
.shindan-nombre { font-family: var(--mincho); font-size: .85rem; color: #5a5348; margin: 0 0 .3rem; text-align: right; }
.shindan-q { font-family: var(--mincho); font-size: 1.15rem; line-height: 1.8; margin: 0 0 .8rem; }
.shindan-page .reply { color: var(--ink); border-color: var(--wood); background: var(--paper); }
.sebyoushi { background: var(--wood); color: var(--starlight); padding: 1.4rem 1rem; text-align: center; font-family: var(--mincho); border-block: .4rem solid var(--brass); animation: fadein .7s both; }
.sebyoushi small { display: block; font-size: .85rem; opacity: .85; }
.sebyoushi b { font-size: 1.4rem; }
.sebyoushi.is-still { animation: none; }
.replies.birth-form { grid-template-columns: 1.3fr 1fr 1fr auto; }
.shindan-page .reply:hover, .shindan-page .reply:focus-visible { background: var(--wood); color: var(--paper); }

/* ================= 入口の占い（uranai-iriguchi.js）・蔵書目録・年の一言・ルーンの辞典（docs/build-design.md 第15節） ================= */
.iri-kekka .kanteihyo-head h3 { font-size: 1.6rem; }
.iri-kekka .sig { text-align: right; font-family: var(--mincho); margin: 1rem 0 0; }
.iri-link { margin: .6rem 0 0; }
.iri-dl { margin: .4rem 0 1rem; display: grid; grid-template-columns: 5.5em 1fr; gap: .1rem .9rem; }
.iri-dl dt { font-family: var(--mincho); font-weight: 700; border-top: 1px solid #d8cbb0; padding-top: .4rem; }
.iri-dl dd { margin: 0; border-top: 1px solid #d8cbb0; padding: .4rem 0; line-height: 1.85; }
.iri-tsugi { border-top: 3px double var(--wood); margin-top: 1.4rem; padding-top: .9rem; }
.iri-tsugi h4 { font-family: var(--mincho); font-size: 1.05rem; margin: 0; }
.iri-tsugi .mokuroku { margin: .6rem 0 0; }
.iri-details { border: 1px solid #d8cbb0; padding: .5rem .9rem; margin: 1rem 0; }
.iri-details summary { font-family: var(--mincho); font-weight: 700; cursor: pointer; min-height: 2.5rem; display: flex; align-items: center; }
.iri-details p { margin: .6rem 0; line-height: 1.9; }
.stage .iri-kekka .linklike { color: #1d3a8a; min-height: 2.5rem; }
/* はい・いいえ・保留（札の下の帯に押す日付印のかたち） */
.hantei { display: grid; justify-items: center; gap: .1rem; margin: .4rem 0 1rem; }
.hantei small { font-size: .85rem; color: #5a5348; }
.hantei b { font-family: var(--mincho); font-size: 2rem; line-height: 1.2; padding: .3rem 1.4rem; border: 3px double var(--hiiro); color: var(--hiiro); transform: rotate(-4deg); animation: fadein .5s ease-out; }
.hantei-no b { border-color: var(--indigo); color: var(--indigo); }
.hantei-hold b { border-color: var(--wood); color: var(--wood); }
/* しおり札（オラクル。3:4。苔緑の縫い目の枠。絵が届くまでは、絵の説明を組んだ仮の札） */
.ocard { aspect-ratio: 3/4; background: var(--paper); color: var(--ink); padding: 5%; display: flex; flex-direction: column; border-radius: 3%; box-shadow: 0 .2rem .6rem rgba(0,0,0,.35); container-type: inline-size; }
.ocard-art { flex: 1; min-height: 0; border: 1px dashed var(--tsumugu); outline: 1px solid var(--tsumugu); outline-offset: 3px; overflow: hidden; display: grid; }
.ocard-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocard-kari { display: grid; place-items: center; padding: 8%; background: #EFE7D2; font-family: var(--mincho); font-size: clamp(.5rem, 5cqw, .9rem); line-height: 1.7; color: #5a5348; text-align: center; }
.ocard-band { flex: none; text-align: center; font-family: var(--mincho); font-weight: 700; font-size: clamp(.6rem, 4cqw + .4rem, 1.15rem); line-height: 1.3; padding: 7% 0 1%; }
.ocard-band small { display: block; font-weight: 500; font-size: .7em; color: var(--tsumugu); }
.ocard-back { aspect-ratio: 3/4; border-radius: 3%; background: var(--paper); padding: 5%; box-shadow: 0 .15rem .4rem rgba(0,0,0,.4); }
.ocard-back img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ocard-back-kari { width: 100%; height: 100%; background-color: var(--tsumugu); background-image: repeating-linear-gradient(45deg, transparent 0 9px, rgba(243,236,221,.28) 9px 10px), repeating-linear-gradient(-45deg, transparent 0 9px, rgba(243,236,221,.28) 9px 10px); display: grid; place-items: center; }
.ocard-back-kari svg { width: 46%; fill: none; stroke: var(--paper); stroke-width: 1.2; }
.fan-oracle .fan-card { width: 5.2rem; margin-right: -2.4rem; }
.oracle-slot { position: relative; width: min(100%, 12rem); aspect-ratio: 3/4; margin: 1rem auto; perspective: 60rem; }
.oracle-slot .flip > .ocard { transform: rotateY(180deg); }
.drawn-oracle { grid-template-columns: 6.5rem 1fr; }
/* おみくじ */
.mikuji-tsutsu { width: 7rem; margin: 1rem auto; }
.mikuji-tsutsu img { width: 100%; height: auto; display: block; }
.mikuji-kari { position: relative; aspect-ratio: 2/3; background: #8a6a47; border: 2px solid #5b4329; border-radius: 12% / 6%; box-shadow: inset 0 0 0 .4rem #a07f58; }
.mikuji-kari::after { content: ""; position: absolute; left: 44%; top: -18%; width: 12%; height: 22%; background: var(--paper); border: 1px solid #b9a57c; opacity: 0; transition: opacity .4s, top .4s; }
.mikuji-tsutsu.is-out .mikuji-kari::after { opacity: 1; top: -26%; }
.mikuji-tsutsu.is-shaking { animation: yureru .28s ease-in-out infinite; }
.mikuji-dan { display: grid; justify-items: center; margin: .2rem 0 .8rem; }
.mikuji-dan small { font-size: .85rem; color: #5a5348; }
.mikuji-dan b { font-family: var(--mincho); font-size: 2.6rem; line-height: 1.3; letter-spacing: .2em; padding-left: .2em; }
.mikuji-musubi { border: 1px solid #d8cbb0; padding: .7rem .9rem; margin: 1rem 0; }
.mikuji-musubi img { width: 7rem; height: auto; float: right; margin: 0 0 .4rem .8rem; }
.mikuji-musubi p { margin: 0; }
.mikuji-musubi .btn-row { margin: .7rem 0 .2rem; }
/* 今日の運勢：12星座の並び（星の高さ。順位の数字は出さない） */
.kyou-zu-box { background: var(--night); padding: .6rem .4rem .2rem; margin: .6rem 0; }
.kyou-zu { display: block; width: 100%; height: auto; }
.kyou-zu .k-line { stroke: var(--gold); stroke-width: .5; opacity: .25; }
.kyou-zu .k-axis { fill: var(--starlight); font-size: 9px; opacity: .7; }
.kyou-zu .k-stem { stroke: var(--gold); stroke-width: .6; opacity: .35; stroke-dasharray: 2 2; }
.kyou-zu .k-stem.is-on { opacity: .9; stroke-dasharray: none; }
.kyou-zu .k-star { fill: var(--starlight); opacity: .75; }
.kyou-zu .k-star.is-on { fill: var(--gold); opacity: 1; }
.kyou-zu .k-name { fill: var(--starlight); font-size: 9px; font-family: var(--mincho); opacity: .75; }
.kyou-zu .k-name.is-on { fill: var(--gold); opacity: 1; font-weight: 700; }
.kyou-takasa { font-family: var(--mincho); font-weight: 700; margin: 0 0 .4rem; }
/* 生きもの診断：図譜の頁 */
.zufu { background: #FBF7EC; color: var(--ink); max-width: 14rem; margin: 1rem auto; padding: 1.4rem 1rem; text-align: center; border: 1px solid var(--gold); outline: 1px solid var(--gold); outline-offset: -5px; font-family: var(--mincho); animation: fadein .7s ease-out; }
.zufu small { display: block; font-size: .85rem; color: #5a5348; }
.zufu b { font-size: 1.6rem; }
.zufu.is-still { animation: none; }
/* 色占い：表紙の布の見本帳 */
.iro-cho { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.iro { display: grid; justify-items: center; gap: .2rem; padding: .5rem .2rem .3rem; min-height: 4.6rem; background: #FBF7EC; color: var(--ink); border: 1px solid var(--brass); font-size: .9rem; line-height: 1.4; }
.iro i { display: block; width: 100%; height: 2.2rem; border: 1px solid rgba(0,0,0,.25); }
.iro:hover, .iro:focus-visible { background: #fff; }
.iro-mihon { aspect-ratio: 2/3; border: 1px solid rgba(0,0,0,.3); box-shadow: inset 0 0 0 5px rgba(255,255,255,.18); }
@media (min-width: 40rem) { .iro-cho { grid-template-columns: repeat(6, 1fr); } }
/* 星座×血液型：頁をえらぶ欄 */
.replies.erabu-form { grid-template-columns: 1fr 1fr 1fr; }
.replies.erabu-form .reply { grid-column: 1 / -1; }
.replies select { min-height: 2.75rem; font: inherit; padding: .3rem .4rem; }
/* 蔵書目録・索引 */
.sakuin { list-style: none; margin: .6rem 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem .5rem; }
.sakuin li { display: flex; flex-wrap: wrap; gap: .3rem .4rem; margin: 0; }
.sakuin a { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .1rem .7rem; background: #FBF7EC; border: 1px solid #d8cbb0; color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.5; }
.sakuin a:hover { background: #fff; border-color: var(--brass); }
.sakuin a.ko { background: transparent; font-size: .85rem; }
.prose .sakuin { padding-left: 0; }
.moku-shibori p { font-family: var(--mincho); font-weight: 700; margin: 0 0 .3rem; }
.moku h3 { margin: 1.6rem 0 .2rem; font-size: 1.1rem; }
.hibi { margin-top: 3rem; }
.hibi + .motto { margin-top: 0; padding-top: 0; }
/* その年の一言（/unsei/星座/） */
.nen { background: #FBF7EC; border: 1px solid #d8cbb0; border-left: .35rem solid var(--koyomi); padding: .8rem 1rem; margin: .8rem 0 1.2rem; }
.nen-h { font-family: var(--mincho); font-weight: 700; font-size: 1.1rem; margin: 0 0 .2rem; }
.nen-text { margin: 0; }
.nen-note { margin: .4rem 0 0; font-size: .8rem; color: #5a5348; line-height: 1.7; }
/* ルーンの辞典：石の絵に文字の線を重ねる */
.stone-hero { grid-template-columns: minmax(0, 9rem) 1fr; }
.stone-hero .stone { width: 100%; height: auto; transition: transform .5s; }
.stone-hero .stone.is-rev { transform: rotate(180deg); }
.iri-kekka.w-tsumugu .kanteihyo-head h3 { letter-spacing: .12em; }
.mikuji-kami { width: 6rem; margin: 1rem auto; animation: fadein .5s ease-out; }
.mikuji-kami img { width: 100%; height: auto; display: block; }
.mikuji-musubi img { border: 1px solid #d8cbb0; }
.drawn > .zodiac { border: 1px solid #d8cbb0; }
/* ページの絵（h1 のすぐ下） */
.page-art { margin: .2rem 0 1rem; }
.page-art img { display: block; width: 100%; height: auto; border: 1px solid #d8cbb0; }
.page-art.is-small { float: right; width: 7.5rem; margin: 0 0 .6rem 1rem; }
.page-art.is-small img { border-color: var(--brass); }
.page-head::after { content: ""; display: block; clear: both; }
@media (min-width: 40rem) { .page-art.is-small { width: 10rem; } }

/* 選択肢はふわっと出す（2026-11-17 ユーザーの声：反応が速くて焦る） */
.replies, .talk-tray .btn-row, .stage .btn-row { animation: fadein .6s ease-out; }
@media (prefers-reduced-motion: reduce) { .replies, .talk-tray .btn-row, .stage .btn-row { animation: none; } }
