.slogan { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.4rem, 8.6vw, 5.4rem); line-height: 1.25; letter-spacing: .04em; }
.slogan .a { color: var(--accent); display: block; }
.night { max-width: 720px; }
.scene { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.scene .sky { height: 120px; position: relative; transition: background 1s; }
/* 明るい空（朝・夕方）でも白い文字が読めるよう、半透明の黒い下地を敷く */
.scene .time { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); color: #fff; font-size: 1.4rem; line-height: 1.6; letter-spacing: .06em; padding: 0 8px; border-radius: 8px; background: rgba(0,0,0,.5); }
.scene .meters { position: absolute; right: 14px; bottom: 12px; width: min(170px, 34%); display: grid; gap: 4px; color: #fff; font-size: .75rem; line-height: 1.6; padding: 6px 10px 10px; border-radius: 8px; background: rgba(0,0,0,.5); }
.scene .meters { width: auto; min-width: min(170px, 34%); }
.scene .meters > span { white-space: nowrap; }
.scene .meters .meter { height: 5px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.25); }
/* 場面が切り替わってから、前の値から伸びる */
.scene .meters .meter > span { transition: width .9s cubic-bezier(.2, .8, .2, 1) .3s; }
.scene .meters .meter > .m-drunk { background: #e3a94a; }
.scene .meters .meter > .m-risk { background: #f06a50; }
.scene .body { padding: clamp(24px, 4vw, 40px); }
.scene h3 { font-size: 1.2rem; margin-bottom: 14px; }
.scene h3:focus { outline: none; }
/* 最後の行に1〜2文字だけが残らないようにする。短い選択肢は文節で折り返す */
.scene .body p { text-wrap: pretty; }
.scene .option { word-break: auto-phrase; text-wrap: pretty; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
/* 選べることが一目で分かるよう、選択肢の右端に進む向きの印を付ける */
.scene .option::after { content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px; border-top: 2px solid var(--ink-3); border-right: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s, border-color .2s; }
@media (hover: hover) { .scene .option:hover::after { border-color: var(--accent); transform: translateX(3px) rotate(45deg); } }
.scene .option:active::after { border-color: var(--accent); }
/* 選んだ行動で増えた分を、メーターの見出しの横に示す */
.scene .meters .d { font-family: var(--mono); font-weight: 700; margin-left: 6px; color: #ffb4a6; display: inline-block; animation: dUp .6s cubic-bezier(.3, 1.6, .5, 1) .25s both; }
.scene .meters .d.dr { color: #ffd88a; }
@keyframes dUp { from { opacity: 0; transform: translateY(6px) scale(.6); } }
/* 見つけた結末（CYH.ends）。やり直しは選択肢と同じ形のボタン */
.scene .ends-card .ec-btns { display: grid; }
.scene .end { font-family: var(--mono); font-weight: 400; font-size: .78rem; line-height: 2; letter-spacing: .2em; display: block; margin-bottom: 8px; }
.scene { --end-warn: #8f5f14; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .scene { --end-warn: var(--warn); } }
:root[data-theme="dark"] .scene { --end-warn: var(--warn); }
.case h3 { margin-bottom: 14px; }
.scene .walker { position: absolute; left: 42%; bottom: 0; width: 90px; transform: translateX(-50%); transform-origin: 50% 100%; transition: transform .6s; }
.scene .walker.sway { animation: sway 2.2s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: translateX(-50%) rotate(-5deg); } 50% { transform: translateX(-50%) rotate(6deg); } }
.scene .walker .bag { transition: opacity .6s, transform .6s; }
.scene .walker.lost .bag { opacity: 0; transform: translateY(20px); }
@media (prefers-reduced-motion: reduce) { .scene .walker.sway, .scene .meters .d { animation: none; } .scene .option::after { transition: none; } }
/* スマートフォンでは空の絵を低くし、人物を時刻とメーターの間に収める。場面全体が画面に入りやすくする */
@media (max-width: 479px) {
  .scene .sky { height: 96px; }
  .scene .time { left: 10px; bottom: 10px; font-size: 1.25rem; padding: 0 6px; }
  .scene .meters { right: 10px; bottom: 10px; padding: 4px 8px 8px; }
  .scene .walker { left: 47%; width: 56px; }
  .scene .body { padding: 20px 18px 22px; }
  .scene h3 { font-size: 1.1rem; margin-bottom: 10px; }
  .scene .options { margin-top: 18px; gap: 8px; }
  .scene .option { padding: 12px 16px; }
}
/* 横向きのスマートフォンでは、空の絵をメーターが収まる高さまで低くする */
@media (max-height: 520px) and (orientation: landscape) {
  .scene .sky { height: 96px; }
  .scene .walker { width: 60px; }
}
