/* 03_signage-loop — 架空の施設「楓坂文化館」の案内画面。色面と太いゴシック
 * 文字は原寸（横 1920×1080／縦 1080×1920）で組み、.sheet ごと縮めて枠に合わせる */
:root {
  --cream: #f6ecd8;
  --sumi: #1b1a17;
  --ochre: #e8b04a;
  --ink: var(--cream);
  --gothic: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", "Noto Sans JP", "Noto Sans CJK JP", sans-serif;
  --num: "Helvetica Neue", "Arial", "Hiragino Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: #000; overflow: hidden; }

.screen {
  position: fixed; inset: 0;
  display: grid; place-items: center;
  background: #000;
  cursor: none;
}
.frame { position: relative; overflow: hidden; background: #111; width: 100vw; height: 56.25vw; transition: background-color .6s ease; }
.frame__canvas { position: absolute; inset: 0; }
.frame__canvas canvas { display: block; width: 100%; height: 100%; }

.sheet {
  position: absolute; left: 0; top: 0;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
  transform: scale(var(--k, 1));
  color: var(--ink);
  font-family: var(--gothic);
  font-weight: 700;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  line-break: strict;
  transition: color .7s ease;
}
.sheet[data-ink="dark"] { --ink: var(--sumi); }
.sheet p, .sheet h1, .sheet h2, .sheet dl, .sheet dd, .sheet ol { margin: 0; padding: 0; }

/* ---------- 上の帯 ---------- */
.sheet__head {
  position: absolute; left: 110px; right: 110px; top: 70px;
  display: flex; justify-content: space-between; align-items: flex-start;
}
.sheet__name { font-size: 46px; font-weight: 800; letter-spacing: .14em; line-height: 1.2; }
.sheet__name small { display: block; margin-top: 10px; font-family: var(--num); font-size: 18px; font-weight: 500; letter-spacing: .34em; opacity: .75; }
.sheet__clock { text-align: right; font-family: var(--num); font-size: 64px; font-weight: 700; letter-spacing: .02em; line-height: 1; font-variant-numeric: tabular-nums; }
.sheet__clock small { display: block; margin-bottom: 12px; font-family: var(--gothic); font-size: 20px; font-weight: 600; letter-spacing: .2em; opacity: .75; }

/* ---------- 案内 ---------- */
.slide {
  position: absolute; left: 110px; top: 232px; width: 1000px;
  visibility: hidden;
}
.slide.is-on { visibility: visible; }
.slide [data-line] { display: block; will-change: transform, opacity; }

.slide__kicker { display: flex !important; align-items: center; gap: 28px; font-family: var(--num); font-size: 24px; font-weight: 500; letter-spacing: .34em; }
.slide__chip {
  display: inline-block; padding: 8px 28px 9px 32px;
  border: 4px solid currentColor; border-radius: 999px;
  font-family: var(--gothic); font-size: 36px; font-weight: 800; letter-spacing: .16em; line-height: 1.2;
}
.slide__title { margin-top: 36px !important; font-size: 120px; font-weight: 800; line-height: 1.22; letter-spacing: .04em; white-space: nowrap; }
.slide__title--num { font-family: var(--num); font-size: 176px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; font-variant-numeric: tabular-nums; }
.slide__title--num .dash { margin: 0 .16em 0 .22em; }   /* 等幅数字の「1」は左が空くので、右を詰めてつり合いを取る */
.dash { display: inline-block; width: .62em; height: .09em; margin: 0 .2em; vertical-align: .3em; background: currentColor; border-radius: 1em; }

.slide__facts { margin-top: 40px !important; padding-top: 34px !important; border-top: 5px solid currentColor; display: flex !important; flex-wrap: wrap; gap: 10px 70px; }
.slide__facts div { display: flex; align-items: baseline; gap: 28px; }
.slide__facts dt { font-size: 30px; font-weight: 700; letter-spacing: .14em; opacity: .8; white-space: nowrap; }
.slide__facts dd { font-size: 54px; font-weight: 800; letter-spacing: .04em; line-height: 1.2; white-space: nowrap; }
.slide__facts b { font-family: var(--num); font-size: 70px; font-weight: 700; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.slide__facts i { font-style: normal; font-size: 36px; margin-left: 10px; }
.slide__sub { margin-top: 28px !important; font-size: 36px; font-weight: 700; letter-spacing: .06em; line-height: 1.5; }

/* ---------- 下の帯 ---------- */
.sheet__foot {
  position: absolute; left: 110px; right: 110px; bottom: 64px;
  display: flex; justify-content: flex-end; align-items: center; gap: 44px;
}
.sheet__note { font-size: 22px; font-weight: 600; letter-spacing: .1em; opacity: .8; }
.sheet__bars { list-style: none; display: flex; gap: 14px; }
.sheet__bars li { position: relative; width: 110px; height: 8px; border-radius: 8px; overflow: hidden; }
.sheet__bars li::before { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .28; }
.sheet__bars span { position: absolute; inset: 0; background: currentColor; transform-origin: 0 50%; transform: scaleX(0); }

/* ---------- 縦（9:16） ---------- */
.frame[data-orient="portrait"] { width: 56.25vh; height: 100vh; }
.frame[data-orient="portrait"] .sheet { width: 1080px; height: 1920px; }
.frame[data-orient="portrait"] .sheet__head { left: 80px; right: 80px; top: 80px; }
.frame[data-orient="portrait"] .slide { left: 80px; top: 330px; width: 920px; }
.frame[data-orient="portrait"] .slide__title { font-size: 112px; }
.frame[data-orient="portrait"] .slide__title--num { font-size: 164px; }
.frame[data-orient="portrait"] .slide__facts { flex-direction: column; gap: 18px; }
.frame[data-orient="portrait"] .sheet__foot { left: 80px; right: 80px; bottom: 70px; gap: 32px; }
.frame[data-orient="portrait"] .sheet__bars li { width: 84px; }
