/* ==========================================================
   星空スノーフレーク ― 共通スタイル(表層:しろはの部屋)
   ========================================================== */
:root {
  --bg: #0e1220;
  --bg2: #131828;
  --paper: #161c2c;
  --line: #262d42;
  --text: #d9dde7;
  --muted: #8a93a8;
  --lamp: #f0c674;
  --link: #cfd8f0;
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --mono: "Kosugi", "BIZ UDGothic", "MS Gothic", "Osaka-Mono", monospace;
  --radius: 8px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--serif);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .02em;
  min-height: 100vh;
  transition: background .8s;
}
a { color: var(--link); text-decoration: underline; text-decoration-color: rgba(207,216,240,.35); text-underline-offset: 3px; }
a:hover { color: var(--lamp); text-decoration-color: var(--lamp); }
button { font-family: inherit; }
.muted { color: var(--muted); }
.small { font-size: .85em; }
.center { text-align: center; }
.big { font-size: 1.25em; }

.site { max-width: 1040px; margin: 0 auto; padding: 24px 20px 120px; }

/* ---------- ヘッダー ---------- */
.site-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; flex-wrap: wrap; }
.brand { text-decoration: none; color: var(--text); display: flex; flex-direction: column; }
.brand:hover { color: var(--text); }
.brand-id { font-size: 1.35rem; letter-spacing: .12em; font-weight: 600; }
.brand-tag { font-size: .78rem; color: var(--muted); letter-spacing: .25em; }
.site-nav { display: flex; gap: 22px; font-size: .88rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover { color: var(--lamp); }
.site-head .head-window { display: none; width: 58px; flex: 0 0 auto; }
.head-window .window { max-width: 58px; border-radius: 4px; box-shadow: 0 3px 12px rgba(0,0,0,.5); }
.head-window.pressed .window { box-shadow: 0 0 18px rgba(240,198,116,.5); }

/* ---------- レイアウト ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 28px 48px; align-items: start; }
.main { min-width: 0; }
.col { display: flex; flex-direction: column; gap: 28px; min-width: 0; }   /* 右列:窓・張り紙・プロフィール・記事一覧を通常のフローで縦に */
.main-narrow { max-width: 620px; margin: 0 auto; }
.main-wide { max-width: 760px; margin: 0 auto; }
@media (max-width: 820px) {
  /* スマホ:窓と張り紙を先頭に横並び、記事、最後に記事一覧 */
  .layout { display: flex; flex-direction: column; gap: 32px; align-items: stretch; }
  /* サイドバーは「張り紙の帯」だけ残す。窓はヘッダーのミニ窓へ、プロフィールは非表示 */
  .col { order: -1; display: block; }
  .side { display: block !important; position: static; }
  .side .window-wrap, .side .profile { display: none; }
  .site { padding: 14px 16px 120px; }
  .site-head { padding: 8px 0 18px; margin-bottom: 24px; }
  .brand-id { font-size: 1.15rem; }
  .site-nav { gap: 16px; font-size: .84rem; }
  .post { padding-bottom: 30px; margin-bottom: 30px; }
  .post-body { font-size: .96rem; }
}
@media (max-width: 420px) {
  .side-box { padding: 12px 14px; }
}

/* ---------- 記事 ---------- */
.post { padding: 0 0 40px; margin-bottom: 40px; border-bottom: 1px dashed var(--line); }
.post:last-of-type { border-bottom: 0; }
.post-head { margin-bottom: 14px; }
.post-date { font-size: .8rem; color: var(--muted); letter-spacing: .1em; }
.post-title { font-size: 1.2rem; font-weight: 600; margin: 4px 0 0; letter-spacing: .06em; }
.post-title a { text-decoration: none; color: var(--text); }
.post-title a:hover { color: var(--lamp); }
.post-flag { display: inline-block; font-size: .72rem; color: var(--lamp); border: 1px solid rgba(240,198,116,.4); border-radius: 3px; padding: 0 6px; margin-left: 8px; vertical-align: middle; }
.post-body p { margin: 0 0 1.4em; }
.post-body p:last-child { margin-bottom: 0; }
.post-tags { margin: 18px 0 0; font-size: .78rem; color: var(--muted); }
.post-tags span { margin-right: 10px; }
.post-grown { background: linear-gradient(90deg, rgba(240,198,116,.05), transparent); padding-left: 14px; border-left: 2px solid rgba(240,198,116,.4); }
.grown-note { font-size: .82rem; color: var(--lamp); opacity: .8; margin: -10px 0 30px; }
.post-nav { display: flex; justify-content: space-between; gap: 20px; font-size: .88rem; margin-top: 30px; }
.empty { color: var(--muted); }

/* 隠しリンク:ほぼ本文と同じ。ホバーで灯る */
.hidden-link { color: inherit; text-decoration: underline dotted rgba(255,255,255,.14); text-underline-offset: 4px; }
.hidden-link:hover { color: var(--lamp); text-decoration-color: var(--lamp); }

/* ささやき:選択・ホバー・タップで読める */
.whisper { color: transparent; transition: color .5s; cursor: default; }
.whisper:hover, .whisper.on { color: var(--muted); }
.whisper::selection { color: #fff; background: rgba(240,198,116,.35); }
.whisper a { color: inherit; }

/* 追記(星を拾ったあとに生える一文) */
.postscript { display: none; color: var(--lamp); opacity: .85; font-size: .92em; border-left: 2px solid rgba(240,198,116,.5); padding-left: 12px; }
.postscript.show { display: block; }

/* 控え・レシート */
.receipt { font-family: var(--mono); font-size: .82rem; background: #f4efe4; color: #3a342a; border-radius: 3px; padding: 14px 18px; margin: 0 0 1.4em; display: inline-block; min-width: 220px; box-shadow: 0 2px 10px rgba(0,0,0,.4); transform: rotate(-.6deg); line-height: 1.7; }
.receipt .hidden-link { color: #3a342a; text-decoration-color: rgba(0,0,0,.15); }
.receipt .hidden-link:hover { color: #b0741a; }

/* ---------- サイドバー ---------- */
.side { display: flex; flex-direction: column; gap: 22px; }

.side-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: .86rem; }
.side-id { margin: 0; letter-spacing: .1em; font-weight: 600; }
.side-desc { margin: 6px 0 8px; color: var(--muted); line-height: 1.7; }
.side-links { margin: 0; font-size: .8rem; }
.side-h { margin: 0 0 8px; font-size: .78rem; color: var(--muted); letter-spacing: .2em; }
.archive ul { list-style: none; margin: 0; padding: 0; }
.archive li { margin: 0 0 6px; line-height: 1.5; }
.archive a { text-decoration: none; color: var(--text); }
.archive a:hover { color: var(--lamp); }
.archive .a-date { color: var(--muted); font-size: .74rem; margin-right: 6px; font-family: var(--mono); }
.archive a.grown { color: var(--lamp); opacity: .8; }

/* 張り紙 */
.paper { display: block; text-decoration: none; background: #efe8d6; color: #3a342a; border: 0; transform: rotate(1.4deg); box-shadow: 0 3px 12px rgba(0,0,0,.45); position: relative; transition: transform .3s; }
.paper:hover { transform: rotate(0deg) scale(1.02); color: #3a342a; }
.paper::before { content: ""; position: absolute; top: -6px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #c0413a; box-shadow: 0 1px 2px rgba(0,0,0,.5); transform: translateX(-50%); }
.paper-title { margin: 0; font-weight: 600; letter-spacing: .1em; }
.paper-sub { margin: 4px 0 0; font-size: .78rem; opacity: .8; }
.paper-no { margin: 8px 0 0; font-size: .74rem; text-align: right; opacity: .7; font-family: var(--mono); }
.paper-done { transform: rotate(-.5deg); background: #e8e2d2; }
.paper-done::before { display: none; }
.paper-text { margin: 0; text-align: center; letter-spacing: .15em; }

/* 窓 */
.window-wrap { display: block; text-decoration: none; color: var(--muted); text-align: center; }
.window-wrap:hover { color: var(--lamp); }
.window { width: 100%; max-width: 200px; height: auto; display: block; margin: 0 auto; border-radius: 6px; box-shadow: 0 6px 24px rgba(0,0,0,.5); }
.window-caption { display: block; font-size: .76rem; margin-top: 8px; letter-spacing: .15em; }

/* ---------- 停電(12/24) ---------- */
body.blackout { background: #030408; }
.blackout .site-head, .blackout .main, .blackout .side > *:not(.keep), .blackout .ledger-head { opacity: .16; transition: opacity .7s; }
.blackout .site-head:hover, .blackout .main:hover, .blackout .side > *:not(.keep):hover { opacity: .92; }
.blackout-note { position: fixed; top: 10px; left: 50%; transform: translateX(-50%); font-size: .74rem; color: #9aa3b8; letter-spacing: .2em; z-index: 1000; pointer-events: none; }

/* ---------- 右下 進行表示 ---------- */
.progress { position: fixed; right: 14px; bottom: 14px; z-index: 1200; max-width: calc(100vw - 28px); background: rgba(9,12,20,.8); border: 1px solid rgba(255,255,255,.09); border-radius: 10px; padding: 8px 11px 7px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-family: var(--mono); font-size: 11px; line-height: 1.4; color: var(--muted); user-select: none; }
.p-stars { display: flex; gap: 5px; margin-bottom: 4px; justify-content: flex-end; }
.p-star { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; transition: background .4s, box-shadow .4s; }
.p-star.on { background: var(--c); border-color: var(--c); box-shadow: 0 0 7px var(--c); }
.p-star.pop { animation: starpop 1.1s ease-out; }
@keyframes starpop { 0% { transform: scale(1); } 30% { transform: scale(2.2); box-shadow: 0 0 18px var(--c); } 100% { transform: scale(1); } }
.p-meta { display: flex; gap: 10px; justify-content: flex-end; white-space: nowrap; }
.p-found { background: transparent; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.p-found:hover { color: var(--lamp); }
.p-found b { color: var(--text); font-weight: normal; }
.found-list { margin: 8px 0 0; padding: 8px 0 0; border-top: 1px solid rgba(255,255,255,.08); max-height: 40vh; overflow-y: auto; font-size: 11px; line-height: 1.7; }
.fl-head { margin: 4px 0 2px; font-size: 10px; letter-spacing: .15em; color: var(--lamp); }
.fl-group { list-style: none; margin: 0 0 8px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 14px; }
.p-sep { opacity: .5; margin: 0 2px; }
.found-list li { color: #4d5364; white-space: nowrap; }
.found-list li.ok { color: var(--text); }
.found-list a { color: inherit; text-decoration: none; }
.found-list a:hover { color: var(--lamp); }
.found-list .fl-mask { letter-spacing: -.1em; }
.progress.open { min-width: 220px; }
@media (max-width: 600px) { .found-list { grid-template-columns: 1fr 1fr; font-size: 10px; } }
.p-page { color: var(--text); }
.p-page:empty { display: none; }
@media (max-width: 600px) { .progress { right: 8px; bottom: 8px; padding: 6px 8px 5px; font-size: 10px; } .p-star { width: 8px; height: 8px; } }

/* ---------- 早送り ---------- */
.ff-overlay { position: fixed; inset: 0; z-index: 1500; background: #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ff-overlay::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 2px, transparent 2px 5px); animation: scan .25s linear infinite; pointer-events: none; }
@keyframes scan { to { background-position: 0 10px; } }
.ff-words { font-size: clamp(2rem, 8vw, 5rem); letter-spacing: .3em; color: #fff; text-shadow: 0 0 30px rgba(255,255,255,.6); font-weight: 300; }
.ff-words.final { font-size: clamp(1.1rem, 4vw, 1.8rem); letter-spacing: .25em; color: var(--lamp); }

/* ---------- 光の雪 / トースト ---------- */
.snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1100; opacity: .85; }
.toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%); background: rgba(20,24,36,.95); border: 1px solid var(--line); color: var(--text); padding: 10px 18px; border-radius: 8px; font-size: .85rem; z-index: 1300; max-width: 90vw; text-align: center; }

/* ---------- 張り紙ページ ---------- */
.notice-paper { background: #efe8d6; color: #2f2a22; padding: 44px 36px 36px; margin: 30px auto; max-width: 480px; box-shadow: 0 10px 40px rgba(0,0,0,.6); transform: rotate(-.8deg); position: relative; }
.notice-paper::before { content: ""; position: absolute; top: -8px; left: 50%; width: 12px; height: 12px; border-radius: 50%; background: #c0413a; transform: translateX(-50%); box-shadow: 0 2px 3px rgba(0,0,0,.5); }
.np-big { font-size: 1.45rem; font-weight: 600; letter-spacing: .12em; margin: 0 0 22px; }
.np-line { margin: 0 0 20px; line-height: 2.1; }
.np-colors span { font-weight: 600; }
.np-sign { text-align: right; font-family: var(--mono); font-size: .85rem; opacity: .75; margin: 0 0 24px; }
.np-btn { display: block; text-align: center; background: #2f2a22; color: #efe8d6; text-decoration: none; padding: 12px 14px; font-size: .85rem; letter-spacing: .08em; }
.np-btn:hover { background: #4a3f2c; color: #fff; }
.np-link { text-align: center; margin-top: 20px; }
.notice-torn { transform: rotate(2deg); background: #e6dfcf; }
.notice-foot { text-align: center; font-size: .8rem; margin-top: 24px; }
.notice-back { text-align: center; font-size: .85rem; }

/* ---------- 空 / 窓ページ ---------- */
.sky-title { text-align: center; font-weight: 400; letter-spacing: .3em; font-size: 1.1rem; margin: 10px 0 24px; color: var(--muted); }
.sky-frame { border: 10px solid #1c2233; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.6), inset 0 0 40px rgba(0,0,0,.5); overflow: hidden; background: #000; }
.sky { width: 100%; height: auto; display: block; }
.sky .sg1 { stop-color: #0a0f2a; } .sky .sg2 { stop-color: #17203f; }
.phase-dawn .sky .sg1 { stop-color: #2f3468; } .phase-dawn .sky .sg2 { stop-color: #e6a06a; }
.phase-day .sky .sg1 { stop-color: #7fb6e8; } .phase-day .sky .sg2 { stop-color: #d7ecfa; }
.phase-dusk .sky .sg1 { stop-color: #3b2f5e; } .phase-dusk .sky .sg2 { stop-color: #ef9457; }
.blackout .sky .sg1, .blackout .sky .sg2 { stop-color: #000; }
.phase-day .bg-stars, .phase-dawn .bg-stars, .phase-dusk .bg-stars { display: none; }
.first-star { animation: pulse 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0%, 100% { opacity: .8; } 50% { opacity: 1; filter: drop-shadow(0 0 3px #fff); } }
.sky-star.lit { animation: twinkle 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.sky-text { text-align: center; margin-top: 24px; }
.share-box { margin: 28px auto 0; max-width: 460px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.share-title { margin: 0 0 6px; letter-spacing: .1em; }
.share-box .small { line-height: 1.8; margin: 0 0 12px; }
.btn-share { background: transparent; color: var(--lamp); border: 1px solid var(--lamp); border-radius: 6px; padding: 9px 18px; cursor: pointer; letter-spacing: .1em; min-height: 44px; font-size: .9rem; }
.btn-share:hover { background: rgba(240,198,116,.12); }
.btn-audio { background: transparent; color: var(--lamp); border: 1px solid var(--lamp); border-radius: 6px; padding: 8px 18px; cursor: pointer; letter-spacing: .1em; }
.btn-audio:hover { background: rgba(240,198,116,.12); }

/* ---------- 糸電話 ---------- */
.ito-stage { display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: 10px; margin: 40px 0 20px; }
.ito-house { text-align: center; }
.ito-win { width: 90px; height: 110px; margin: 0 auto; background: #0a0e1a; border: 6px solid #2a3145; border-radius: 4px; display: block; position: relative; cursor: pointer; padding: 0; }
.ito-win.ito-right { cursor: default; }
.ito-win::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 48%, #2a3145 48% 52%, transparent 52%), linear-gradient(0deg, transparent 48%, #2a3145 48% 52%, transparent 52%); }
.ito-light { position: absolute; inset: 0; background: radial-gradient(circle, rgba(240,198,116,.95), rgba(240,198,116,0) 70%); opacity: 0; transition: opacity .12s; }
.ito-win.lit .ito-light { opacity: 1; }
.ito-label { display: block; font-size: .78rem; color: var(--muted); margin-top: 10px; letter-spacing: .1em; }
.ito-line { width: 100%; height: 40px; }
.ito-log { text-align: center; color: var(--muted); font-size: .9rem; min-height: 2em; }

/* ---------- 歌詞 ---------- */
.lyric { margin: 30px auto; max-width: 480px; }
.lyric p { margin: 0; line-height: 2.2; }
.lyric-sec { color: var(--muted); font-family: var(--mono); font-size: .8rem; margin-top: 10px !important; }
.lyric-gap { height: 1.6em; }
.lyric-last { margin-top: 2em !important; color: var(--lamp); font-weight: 600; letter-spacing: .06em; }
.lyric-blank { color: var(--muted); font-weight: 400; }
[data-reveal] { animation: reveal 2.5s ease-out; }
@keyframes reveal { from { opacity: 0; filter: blur(6px); } to { opacity: 1; filter: blur(0); } }

/* ---------- 404 ---------- */
.lost { text-align: center; padding: 60px 0; }

/* ---------- 章リーダー ---------- */
.reader { max-width: 660px; margin: 0 auto; }
.reader-head { margin-bottom: 36px; }
.reader-kicker { font-family: var(--mono); font-size: .76rem; color: var(--muted); letter-spacing: .15em; margin: 0 0 8px; }
.reader-kicker .dot, .place-head .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); margin-right: 8px; vertical-align: middle; }
.reader-title { font-size: 1.35rem; font-weight: 600; margin: 0 0 20px; letter-spacing: .06em; }
.epigraph { margin: 0 0 24px; padding: 14px 18px; border-left: 2px solid var(--c); color: var(--muted); font-size: .9rem; line-height: 2; }
.epigraph span { display: block; }
.reader-tools { display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--muted); font-family: var(--mono); }
.font-size button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 4px; padding: 2px 8px; margin-left: 4px; cursor: pointer; font-size: .78rem; }
.font-size button.on { color: var(--lamp); border-color: var(--lamp); }
.bookmark-hint { font-size: .8rem; color: var(--lamp); margin: 10px 0 0; }
.reader-body { font-size: 1rem; line-height: 2.15; }
.fs-s .reader-body { font-size: .9rem; }
.fs-l .reader-body { font-size: 1.15rem; line-height: 2.25; }
.reader-body p { margin: 0 0 1.5em; }
.reader-body .chapter-title { display: none; }
.reader-body .scene-break { border: 0; text-align: center; margin: 2.5em 0; height: 1em; }
.reader-body .scene-break::after { content: "＊"; color: var(--muted); }
.reader-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; flex-wrap: wrap; }
.rn-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.rn-dots a { font-family: var(--mono); font-size: .72rem; color: var(--muted); text-decoration: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 50%; }
.rn-dots a.on { color: var(--text); border-color: var(--c); }
.reader-foot { text-align: center; font-size: .8rem; margin-top: 30px; color: var(--muted); }

/* ---------- 落下地点 ---------- */
.place { max-width: 720px; margin: 0 auto; }
.place-head { margin-bottom: 20px; }
.place-title { font-size: 1.4rem; font-weight: 600; margin: 0 0 6px; letter-spacing: .06em; }
.place-area { color: var(--muted); font-size: .9rem; margin: 0; }
.scene { margin-bottom: 24px; }
.scene-svg { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #0a0e1a; }
.scene-cap { color: var(--muted); font-size: .88rem; margin: 12px 0 0; line-height: 1.9; }
.glow { animation: glow 1.8s ease-in-out infinite; cursor: pointer; filter: drop-shadow(0 0 6px currentColor); }
.glow[data-touch]:hover { animation-duration: .6s; }
@keyframes glow { 0%, 100% { opacity: .55; r: 6; } 50% { opacity: 1; r: 8; } }
.glow-soft { animation: glowsoft 3s ease-in-out infinite; }
@keyframes glowsoft { 0%, 100% { opacity: .15; } 50% { opacity: .4; } }
.sandbox { cursor: pointer; transition: fill .3s; }
.sandbox:hover { fill: #3a3a30; }
.xlight { fill: #3a1a1a; }
.xlight.a { animation: blink 1.2s steps(1) infinite; }
.xlight.b { animation: blink 1.2s steps(1) infinite; animation-delay: .6s; }
@keyframes blink { 0%, 49% { fill: #e0453a; filter: drop-shadow(0 0 4px #e0453a); } 50%, 100% { fill: #3a1a1a; filter: none; } }
.beam { transform-box: fill-box; transform-origin: 0 50%; animation: beam 4s linear infinite; }
@keyframes beam { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.waves path { animation: wave 6s ease-in-out infinite; }
.waves path:nth-child(2) { animation-delay: -3s; }
@keyframes wave { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-20px); } }

.interact { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; }
.interact label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.interact input[type=text], .interact input[type=number] { display: block; width: 100%; margin-top: 6px; background: #0c1020; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-family: inherit; font-size: 1rem; letter-spacing: .05em; }
.interact input:focus { outline: none; border-color: var(--lamp); }
.interact .count-wrap { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.interact .count-wrap input { width: 110px; margin: 0; display: inline-block; }
.interact button[type=submit] { background: transparent; color: var(--lamp); border: 1px solid var(--lamp); border-radius: 6px; padding: 9px 20px; cursor: pointer; letter-spacing: .1em; font-size: .92rem; }
.interact button[type=submit]:hover { background: rgba(240,198,116,.12); }
.interact-msg { color: var(--muted); font-size: .86rem; margin: 12px 0 0; min-height: 1.4em; }
.interact-msg.ng { color: #d97d74; }
.form-title { margin: 0 0 14px; font-size: .95rem; line-height: 1.9; }
.receipt-form { background: #efe8d6; color: #2f2a22; border: 0; font-family: var(--mono); transform: rotate(-.4deg); }
.receipt-form label { color: #5a5245; }
.receipt-form input { background: #fff !important; color: #2f2a22 !important; border-color: #cfc6b0 !important; }
.receipt-form button[type=submit] { color: #2f2a22; border-color: #2f2a22; }
.receipt-form .interact-msg { color: #6a5a3a; }
.receipt-form .interact-msg.ng { color: #a33; }
.shake { animation: shake .4s; }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }

.treasure-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 24px; }
.treasure-box p { margin: 0 0 6px; }

.elevator { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; max-width: 280px; margin: 20px auto 0; text-align: center; }
.elev-title { margin: 0 0 12px; font-size: .78rem; color: var(--muted); letter-spacing: .2em; font-family: var(--mono); }
.elev-panel { display: grid; gap: 10px; }
.elev-btn { width: 100%; background: #0c1020; color: var(--text); border: 1px solid var(--line); border-radius: 50px; padding: 12px; cursor: pointer; font-size: 1.1rem; font-family: var(--mono); display: flex; justify-content: center; align-items: center; gap: 10px; }
.elev-btn span { font-size: .72rem; color: var(--muted); }
.elev-btn:hover { border-color: var(--lamp); color: var(--lamp); }
.elev-btn.lit { border-color: var(--lamp); box-shadow: 0 0 10px rgba(240,198,116,.4); }

.door-closed { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; text-align: center; }
.door-sign { display: inline-block; border: 2px solid var(--line); padding: 10px 26px; font-weight: 600; letter-spacing: .3em; margin: 0 0 16px; }
.door-sign small { display: block; font-size: .7rem; letter-spacing: .1em; color: var(--muted); font-weight: 400; margin-top: 4px; }
.wait-btn { background: transparent; color: var(--lamp); border: 1px solid var(--lamp); border-radius: 6px; padding: 10px 22px; cursor: pointer; letter-spacing: .1em; font-size: .92rem; margin-top: 10px; min-height: 44px; }
.wait-btn:hover { background: rgba(240,198,116,.12); }
.wait-btn:disabled { opacity: .5; cursor: default; }
.wait-btn-sm { font-size: .82rem; padding: 7px 16px; color: var(--muted); border-color: var(--line); min-height: 36px; }
.wait-btn-sm:hover { color: var(--lamp); border-color: var(--lamp); }
.wait-line { margin-top: 16px; }
.dawn-text { color: var(--lamp); }

.corridor { display: flex; align-items: flex-end; gap: 8px; justify-content: center; margin: 24px 0 10px; flex-wrap: wrap; }
.corridor .dir { font-size: .74rem; color: var(--muted); font-family: var(--mono); align-self: center; }
.door { width: 56px; height: 90px; background: #1b2030; border: 2px solid #2f3750; border-bottom-width: 4px; border-radius: 4px 4px 0 0; cursor: pointer; position: relative; color: var(--muted); font-family: var(--mono); padding: 0; }
.door::after { content: ""; position: absolute; right: 8px; top: 48%; width: 5px; height: 5px; border-radius: 50%; background: #7a8298; }
.door:hover { border-color: var(--lamp); color: var(--lamp); }
.door-no { position: absolute; top: 8px; left: 0; right: 0; font-size: .7rem; }
.door.open { background: #0a0e1a; border-color: #5b5bd6; box-shadow: 0 0 14px rgba(91,91,214,.5); }

.acquired { text-align: center; background: var(--paper); border: 1px solid var(--c); border-radius: var(--radius); padding: 30px 22px; margin-top: 10px; box-shadow: 0 0 30px color-mix(in srgb, var(--c) 25%, transparent); }
.acq-star { width: 70px; height: 70px; filter: drop-shadow(0 0 10px var(--c)); animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.acq-text { margin: 12px 0 4px; font-size: 1.05rem; }
.acq-sub { margin: 0 0 18px; color: var(--muted); font-size: .86rem; }
.acq-link { display: inline-block; text-decoration: none; border: 1px solid var(--c); color: var(--text); padding: 10px 20px; border-radius: 6px; margin: 0 6px 10px; }
.acq-link:hover { background: color-mix(in srgb, var(--c) 18%, transparent); color: #fff; }
.acq-back { display: block; font-size: .8rem; color: var(--muted); }

/* ---------- 終章:7つの星 ---------- */
.final { max-width: 720px; margin: 0 auto; }
.unfold-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin: 30px 0; }
.unfold { width: 64px; height: 64px; background: transparent; border: 0; cursor: pointer; padding: 6px; filter: drop-shadow(0 0 8px var(--c)); transition: transform .3s, opacity .5s; }
.unfold:hover { transform: scale(1.12); }
.unfold.done { opacity: .25; transform: scale(.8); cursor: default; filter: none; }
.unfold svg { width: 100%; height: 100%; }
.messages { list-style: none; margin: 0; padding: 0; }
.message { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 12px; border-left: 3px solid var(--c); background: linear-gradient(90deg, color-mix(in srgb, var(--c) 10%, transparent), transparent); animation: unfold 1.6s ease-out; }
@keyframes unfold { from { opacity: 0; transform: translateY(8px); letter-spacing: .3em; filter: blur(4px); } to { opacity: 1; transform: none; letter-spacing: .04em; filter: none; } }
.m-color { flex: 0 0 auto; font-family: var(--mono); font-size: .8rem; color: var(--c); padding-top: 4px; }
.m-text { line-height: 2; }
.final-after { text-align: center; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.rec-links a { display: inline-block; margin: 6px 10px; }

/* ---------- しほの部屋 ---------- */
.shiho-room { max-width: 720px; margin: 0 auto; }
.corkboard { background: #6b4e33; border: 10px solid #4a3522; border-radius: 4px; padding: 20px; margin: 20px 0; box-shadow: inset 0 0 30px rgba(0,0,0,.4); }
.cb-title { margin: 0 0 14px; color: #d9c4a6; font-size: .78rem; letter-spacing: .3em; font-family: var(--mono); }
.cb-photos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.cb-photo { background: #f4efe4; color: #3a342a; padding: 12px 12px 14px; font-size: .8rem; transform: rotate(var(--r)); box-shadow: 0 3px 8px rgba(0,0,0,.5); position: relative; line-height: 1.6; }
.cb-photo::before { content: ""; position: absolute; top: -5px; left: 50%; width: 8px; height: 8px; border-radius: 50%; background: #c0413a; transform: translateX(-50%); }
.cb-photo::after { content: ""; display: block; height: 70px; background: linear-gradient(135deg, #1a2238, #2f3a5c); margin-bottom: 8px; order: -1; }
.cb-photo { display: flex; flex-direction: column; }
.cb-date { font-family: var(--mono); font-size: .72rem; color: #7a6a52; }
.desk { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.desk-title { margin: 0 0 10px; font-size: .78rem; color: var(--muted); letter-spacing: .3em; font-family: var(--mono); }
.desk p { margin: 0 0 8px; }

/* ---------- 全回収後 ---------- */
body.done .brand-tag { color: var(--lamp); }

/* ---------- 窓の雪(12月の夜・全回収後) ---------- */
.wsnow { animation: wsnow 8s linear infinite; }
@keyframes wsnow { from { transform: translateY(-20px); } to { transform: translateY(230px); } }
.window-wrap.pressed .window { box-shadow: 0 0 30px rgba(240,198,116,.5); }
.side-today { color: var(--lamp); }

/* ---------- カレンダー ---------- */
.calendar { position: relative; background: #f1ebdd; color: #2f2a22; max-width: 380px; margin: 30px auto 20px; padding: 34px 22px 22px; box-shadow: 0 10px 40px rgba(0,0,0,.6); transform: rotate(-.6deg); }
.cal-ring { position: absolute; top: -10px; left: 30%; width: 10px; height: 20px; border: 3px solid #8a8378; border-radius: 6px; background: transparent; }
.cal-ring.r2 { left: auto; right: 30%; }
.cal-month { margin: 0 0 12px; font-size: 3rem; line-height: 1; font-weight: 300; letter-spacing: .05em; }
.cal-month span { font-size: 1rem; margin-left: 6px; }
.cal-grid { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: .8rem; }
.cal-grid th { font-weight: 400; color: #8a8378; padding: 4px 0; border-bottom: 1px solid #cfc6b0; }
.cal-grid th:first-child, .cal-grid td:first-child { color: #b0463a; }
.cal-grid td { text-align: center; padding: 7px 0; position: relative; height: 34px; vertical-align: top; }
.cal-grid td.cal-star { cursor: pointer; }
.cal-grid td.cal-star i { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); font-style: normal; font-size: .7rem; color: #b0463a; }
.cal-note { margin: 14px 0 0; font-size: .82rem; color: #6a6254; text-align: right; }

/* ---------- 触れる範囲を広げる(スマホ) ---------- */
.hit { cursor: pointer; }
.violet-jar { cursor: pointer; }
.violet-jar:hover circle { opacity: 1; filter: drop-shadow(0 0 4px #a56bd6); }

/* ---------- スマホ全般 ---------- */
@media (max-width: 600px) {
  body { font-size: 15px; }
  .interact input[type=text], .interact input[type=number] { font-size: 16px; }   /* iOSの自動ズーム防止 */
  .interact button[type=submit], .np-btn, .acq-link, .elev-btn, .btn-audio { min-height: 44px; }
  .reader-nav { gap: 10px; }
  .rn-prev, .rn-next { padding: 8px 4px; }
  .rn-dots { order: 3; width: 100%; justify-content: center; }
  .rn-dots a { width: 28px; height: 28px; }
  .reader-title { font-size: 1.15rem; }
  .place-title { font-size: 1.2rem; }
  .unfold { width: 46px; height: 46px; padding: 3px; }
  .unfold-row { gap: 6px; }
  .corridor { gap: 6px; }
  .door { width: 46px; height: 76px; }
  .notice-paper { padding: 34px 20px 26px; }
  .np-big { font-size: 1.2rem; }
  .sky-frame { border-width: 7px; }
  .ito-stage { grid-template-columns: 1fr 1fr; }
  .ito-line { display: none; }
  .share code { word-break: break-all; display: inline-block; max-width: 100%; }
  .toast { bottom: 90px; font-size: .8rem; }
  .cb-photos { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 14px; }
  .cal-month { font-size: 2.4rem; }
  .progress { padding-bottom: calc(5px + env(safe-area-inset-bottom)); }
}
@media (hover: none) {
  .whisper { text-decoration: underline dotted rgba(255,255,255,.08); text-underline-offset: 4px; }  /* タップできる目印を極薄く */
}

/* ---------- END ---------- */
.end-primary { display: inline-block; text-decoration: none; color: var(--text); border: 1px solid var(--lamp); background: rgba(240,198,116,.08); padding: 14px 28px; border-radius: 6px; letter-spacing: .2em; font-size: 1rem; min-height: 48px; }
.end-primary:hover { background: rgba(240,198,116,.18); color: #fff; }
.end-lead { text-align: center; margin: 40px 0 10px; padding: 30px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(240,198,116,.05), transparent); }
.end-lead p { margin: 0 0 18px; color: var(--muted); }
.final-after .end-primary { margin-top: 8px; }
.end { max-width: 720px; margin: 0 auto; text-align: center; }
.end-title { margin: 6px 0 30px; }
.end-word { display: block; font-family: var(--serif); font-weight: 300; font-size: clamp(3.2rem, 12vw, 6rem); letter-spacing: .35em; line-height: 1; color: var(--text); text-shadow: 0 0 40px rgba(240,198,116,.25); animation: reveal 2.4s ease-out; }
.end-sub { display: block; margin-top: 14px; font-size: .82rem; color: var(--muted); letter-spacing: .2em; }
.wishes { margin: 10px 0 30px; }
.wish-canvas { width: 100%; max-width: 720px; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--line); background: #070a14; }
.wish-count { margin: 14px 0 6px; font-family: var(--mono); color: var(--muted); font-size: .9rem; }
.wish-count b { font-weight: 400; color: var(--lamp); font-size: 1.6rem; letter-spacing: .08em; }
.wish-cap { margin: 0; color: var(--muted); font-size: .9rem; line-height: 2; }
.number-box { border: 1px solid rgba(240,198,116,.35); border-radius: var(--radius); padding: 26px 20px; margin: 0 0 24px; background: var(--paper); }
.nb-line { margin: 0 0 16px; color: var(--muted); font-size: .9rem; }
.nb-label { margin: 0; font-size: .74rem; letter-spacing: .3em; color: var(--muted); font-family: var(--mono); }
.nb-num { margin: 4px 0 8px; font-family: var(--mono); font-size: 3rem; letter-spacing: .15em; color: var(--lamp); text-shadow: 0 0 20px rgba(240,198,116,.4); }
.nb-note { margin: 0; font-size: .8rem; }
.end-record { text-align: left; }
.end-nav { margin: 30px 0 10px; }
.end-links { margin-top: 18px; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; font-size: .88rem; }
.end-thanks { margin-top: 40px; font-size: .85rem; line-height: 2; }

/* ---------- 終章:7つの星をほどく場面(本文の中) ---------- */
.unfold-scene { margin: 2.5em 0; padding: 26px 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.us-hint { margin: 0 0 18px; color: var(--muted); font-size: .85rem; letter-spacing: .2em; }
.us-stars { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.us-star { width: 58px; height: 58px; padding: 6px; background: transparent; border: 0; cursor: default; opacity: .35; transition: opacity .5s, transform .4s, filter .4s; filter: none; }
.us-star svg { width: 100%; height: 100%; }
.us-star.next { opacity: 1; cursor: pointer; filter: drop-shadow(0 0 8px var(--c)); animation: usbreath 2.2s ease-in-out infinite; }
.us-star.next:hover { transform: scale(1.12); }
@keyframes usbreath { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
.us-star.opening { animation: usopen .9s ease-in forwards; }
@keyframes usopen { 0% { transform: rotate(0) scale(1); opacity: 1; } 60% { transform: rotate(-40deg) scale(1.15); opacity: .9; } 100% { transform: rotate(-90deg) scale(.2); opacity: 0; } }
.us-star.gone { opacity: 0; width: 0; padding: 0; margin: 0; overflow: hidden; }
.us-first { color: var(--muted); font-size: .92em; line-height: 2; margin: 14px 0 6px; text-align: left; animation: reveal 1.4s ease-out; }
.us-strips { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.us-strip { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 560px; text-align: left; }
.us-label { flex: 0 0 5.5em; font-size: .82rem; color: var(--muted); font-family: var(--mono); text-align: right; letter-spacing: .1em; }
.us-paper { flex: 1 1 auto; background: #f4efe4; color: #4a4238; padding: 10px 16px; border-radius: 2px; box-shadow: 0 3px 10px rgba(0,0,0,.45); transform: rotate(-.6deg); overflow: hidden; position: relative; }
.us-paper::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 34px, rgba(0,0,0,.035) 34px 35px); pointer-events: none; }  /* 折り目 */
.us-text { display: block; font-family: "Zen Kurenaido", "Yomogi", var(--serif); font-size: 1.05rem; line-height: 1.8; letter-spacing: .04em; transform: skewX(-4deg); color: #4a4238; }
.us-strip.unroll .us-paper { animation: unroll 1.6s cubic-bezier(.2,.7,.2,1) both; }
.us-strip.unroll .us-text { animation: reveal 1.2s .5s ease-out both; }
@keyframes unroll { 0% { max-width: 0; padding-left: 0; padding-right: 0; opacity: 0; } 30% { opacity: 1; } 100% { max-width: 100%; opacity: 1; } }
.us-strip.tint .us-paper { background: color-mix(in srgb, var(--c) 28%, #f4efe4); transition: background 2.4s ease; }
.us-strip.tint .us-label { color: var(--c); transition: color 2.4s; }
.after-unfold { animation: reveal 2s ease-out; }
.after-unfold[hidden] { display: none !important; }
.reader-nav .rn-next.locked, .mbar a.locked { opacity: .25; pointer-events: none; }
@media (max-width: 600px) {
  .unfold-scene { padding: 20px 6px; }
  .us-star { width: 42px; height: 42px; padding: 4px; }
  .us-stars { gap: 4px; }
  .us-strip { gap: 8px; }
  .us-label { flex-basis: 4.5em; font-size: .72rem; }
  .us-text { font-size: .98rem; }
}

/* ---------- 読むだけのページ(story.php) ---------- */
.toc { list-style: none; margin: 24px 0; padding: 0; }
.toc li { border-bottom: 1px dashed var(--line); }
.toc a { display: flex; align-items: baseline; gap: 14px; padding: 14px 6px; text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--lamp); }
.toc-num { font-family: var(--mono); color: var(--c); width: 1.6em; text-align: right; flex: 0 0 auto; }
.toc-title { flex: 1 1 auto; }
.toc-pages { font-size: .78rem; font-family: var(--mono); flex: 0 0 auto; }
.plain-message { color: var(--c); }
.story-end { text-align: center; letter-spacing: .5em; color: var(--muted); margin: 40px 0 0; }
.story-audio { text-align: center; margin: 20px 0 0; }
.story-audio .small { margin: 0 0 10px; }
.end-lead .story-audio { margin-top: 14px; }
[data-story-url] { font-family: var(--mono); font-size: .8rem; background: var(--paper); padding: 2px 6px; border-radius: 4px; }

/* ---------- 読み方(じっくり / シンプル) ---------- */
.mode-switch { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; vertical-align: middle; }
.mode-switch a { padding: 2px 10px; font-size: .78rem; color: var(--muted); text-decoration: none; font-family: var(--mono); letter-spacing: .05em; }
.mode-switch a + a { border-left: 1px solid var(--line); }
.mode-switch a.on { color: var(--lamp); background: rgba(240,198,116,.1); }
.mode-switch a:hover { color: var(--lamp); }
.mode-note { margin: 10px 0 0; font-size: .8rem; color: var(--muted); }
.mode-line { margin: 14px 0 0; font-size: .82rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.reader-tools { flex-wrap: wrap; gap: 8px; }

/* ---------- はじめから(リセット) ---------- */
.reset-link { text-align: center; margin: 60px 0 0; font-size: .74rem; }
.reset-link a { color: #55607a; text-decoration: none; border-bottom: 1px dotted #3a4257; }
.reset-link a:hover { color: #d97d74; border-color: #d97d74; }
.reset-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; margin: 20px auto; text-align: center; }
.reset-form { margin: 20px auto 10px; max-width: 360px; text-align: left; }
.reset-form label { display: block; font-size: .9rem; color: var(--muted); margin-bottom: 14px; }
.reset-form label.check { display: flex; align-items: center; gap: 8px; }
.reset-form input[type=text] { display: block; width: 100%; margin-top: 6px; background: #0c1020; color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font-family: var(--mono); font-size: 16px; letter-spacing: .2em; }
.reset-form input[type=checkbox] { width: 18px; height: 18px; }
.btn-danger { width: 100%; background: transparent; color: #d97d74; border: 1px solid #d97d74; border-radius: 6px; padding: 12px; cursor: pointer; letter-spacing: .1em; font-size: .92rem; min-height: 46px; }
.btn-danger:hover { background: rgba(217,125,116,.12); }
.btn-danger:disabled { opacity: .35; cursor: default; background: transparent; }

/* ---------- 章リーダー:読書進行バー・ページ送り ---------- */
.reader-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; background: rgba(255,255,255,.06); z-index: 1250; pointer-events: none; }
.reader-progress i { display: block; height: 100%; background: var(--lamp); opacity: .8; transition: width .3s; }
.page-out-left .reader { transition: transform .16s, opacity .16s; transform: translateX(-20px); opacity: 0; }
.page-out-right .reader { transition: transform .16s, opacity .16s; transform: translateX(20px); opacity: 0; }

/* ---------- スマホ用 下部バー(デスクトップでは出さない) ---------- */
.mbar { display: none; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 1180; }
@media (max-width: 820px) {
  .site-nav { display: none; }                         /* ナビは下部バーへ */
  .site { padding-bottom: 96px; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; height: 56px; padding: 0 150px 0 4px; padding-bottom: env(safe-area-inset-bottom); background: rgba(9,12,20,.92); border-top: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 1200; align-items: stretch; }
  .mbar a, .mbar button { flex: 1 1 0; display: flex; align-items: center; justify-content: center; color: var(--muted); text-decoration: none; font-size: .8rem; letter-spacing: .12em; background: transparent; border: 0; font-family: inherit; padding: 0; min-width: 0; }
  .mbar a.on, .mbar a:hover, .mbar button[aria-expanded="true"] { color: var(--lamp); }
  .mbar a.dis { opacity: .3; pointer-events: none; }
  .layer-ledger .mbar { padding-right: 150px; }
  /* 進行表示は下部バーの右端に同居(メイン/隠しは2行に) */
  .p-found { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
  .p-found .p-sep { display: none; }
  .p-meta { align-items: center; }
  .mbar { padding-right: 172px; }
  .layer-ledger .mbar { padding-right: 172px; }
  .progress { z-index: 1210; right: 6px; bottom: 0; height: 56px; padding: 0 8px; padding-bottom: env(safe-area-inset-bottom); background: transparent; border: 0; border-radius: 0; backdrop-filter: none; -webkit-backdrop-filter: none; display: flex; flex-direction: column; justify-content: center; max-width: 172px; box-shadow: none; }
  .p-stars { margin-bottom: 3px; }
  .progress.open { min-width: 0; }
  /* 発見一覧はボトムシート */
  .found-list { position: fixed; left: 12px; right: 12px; bottom: 66px; margin: 0; padding: 14px 16px; background: rgba(14,18,30,.98); border: 1px solid var(--line); border-radius: 12px; max-height: 55vh; z-index: 1210; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
  /* 記事一覧はボトムシート(バーの「記事」から) */
  .archive { display: none; }
  .archive.open { display: block; position: fixed; left: 12px; right: 12px; bottom: 66px; max-height: 60vh; overflow-y: auto; z-index: 1210; background: rgba(14,18,30,.98); border-radius: 12px; box-shadow: 0 -10px 40px rgba(0,0,0,.5); }
  body.sheet-open { overflow: hidden; }
  /* 上部の窓と張り紙はコンパクトに */
  /* 張り紙:細い帯 */
  .side .paper { display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 22px; transform: rotate(-.4deg); margin: 0 0 4px; }
  .side .paper::before { left: 9px; top: 50%; transform: translateY(-50%); width: 7px; height: 7px; }
  .side .paper-title { font-size: .9rem; flex: 1 1 auto; }
  .side .paper-sub { display: none; }
  .side .paper-no { margin: 0; font-size: .7rem; white-space: nowrap; }
  .side .paper-title::after { content: " →"; opacity: .5; }
  .side .paper-done { justify-content: center; width: 100%; }
  .side .paper-done .paper-text { margin: 0; }
  /* ヘッダー:ブランド左、ミニ窓右 */
  .site-head { align-items: center; padding: 6px 0 14px; margin-bottom: 18px; }
  .site-head .head-window { display: block; }
  .toast { bottom: 70px; }
  .reader-foot { margin-bottom: 10px; }
}
