/* base.css: Fonts, design tokens (light and dark theme variables), reset and base type. */
/* Familjen Grotesk (SIL OFL 1.1), Latin subset, variable 400–700. Self-hosted and preloaded so digits and the
   wordmark are ready with the first paint. */
/* The name in the header, はしご, in Zen Kaku Gothic New 900: only those three letters (2.5 KB, from Google Fonts'
   text= subset; OFL), so the logo looks the same from the first visit while the page's Japanese font loads later. */
@font-face { font-family: "Hashigo Wordmark"; src: url("../fonts/zen-kaku-900-hashigo.ttf") format("truetype"); font-weight: 900; font-display: block; }
@font-face { font-family: "Familjen Grotesk"; src: url("../fonts/familjen-grotesk-latin.woff2") format("woff2");
  font-weight: 400 700; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Zen Kaku Gothic New (OFL, fonts/OFL-zen-kaku-gothic-new.txt) cut down to the page's own words, for the places
   that carry the site's look (tabs, buttons, help; end of overrides.css). Everything else is in the OS's face. */
/* Hashigo UI: written by tools/fonts/zen_kaku.py */
@font-face { font-family: "Hashigo UI"; src: url("../fonts/zen-kaku-ui-400-bf2d432d.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hashigo UI"; src: url("../fonts/zen-kaku-ui-500-b1f49196.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hashigo UI"; src: url("../fonts/zen-kaku-ui-700-e0796d89.woff2") format("woff2"); font-weight: 700; font-display: swap; }
/* end of Hashigo UI */

/* ---------- tokens ----------
   One look, シネマテーク (data-design="a"), in light and dark (data-theme). Fonts: Familjen Grotesk for Latin and
   digits; the OS's Japanese face for text; Zen Kaku Gothic New ("Hashigo UI") for tabs, buttons and help.
   The four other looks (グリッド・名画座・看板・昭和) were retired on 2026-11-21 and are kept on the looks-archive branch. */
:root {
  --font-latin: "Familjen Grotesk"; --font-os: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", Meiryo;
  --font-kana: var(--font-os);
  --font-brand: var(--font-latin), "Hashigo UI", var(--font-os), system-ui, sans-serif;
  --font-ui: var(--font-latin), var(--font-kana), system-ui, sans-serif;
  /* Latin first everywhere, so digits and letters inside Japanese text are always Familjen. */
  --font-ja: var(--font-latin), var(--font-kana), system-ui, sans-serif;
  --font-title: var(--font-latin), var(--font-kana), system-ui, sans-serif;
  --font-num: var(--font-latin), system-ui, sans-serif;
  --font-display: var(--font-latin), system-ui, sans-serif;
  --display-style: normal; --display-weight: 600; --display-stretch: 100%; --num-stretch: 100%;
  --title-weight: 700; --label-weight: 700; --ja-light: 400;
  --radius: 3px; --radius-sm: 2px;
  /* シネマテーク: cool silver-screen grey, blue-black ink, and the brand's 錆浅葱 for the ladder and the stubs */
  --bg: #e9eae6; --surface: #f6f6f3; --surface-2: #dfe0db; --ink: #23262c; --muted: #5e6269;
  --line: #d6d8d2; --line-strong: #23262c; --accent: #2a6f77; --ok: #2f6b45; --ng: #b3261e; --sat: #245cc4;
  --t-cinemavera: #6b55b8; --t-waseda: #2e7486; --t-nfaj: #9a6a2a; --t-stranger: #b04c7a;
  --t-polepole: #3f7d52; --t-bungeiza: #b04a43; --t-meguro: #4a63b5; --t-imageforum: #2f7a70;
  --t-eurospace: #6b7a2a; --t-lecinema: #56697a; --t-shimotakaido: #8a5a2b; --t-bluestudio: #2f5fa8; --t-jinbocho: #7a3e6e; --t-cinemalice: #3f7f6a; --t-institut: #2b4f9e; --t-kscinema: #a8442f; --t-cinemart: #b0306a; --t-athenee: #6a5a2e; --t-gardencinema: #b8710f; --t-k2: #2a7fb0; --t-laputa: #5f8f24; --t-rosa: #8c3fa0; --t-tollywood: #6a4fc4; --t-theatreshinjuku: #c0392b; --t-cinekaomori: #a03ea8; --t-humanshibuya: #c2410c; --t-humanyurakucho: #0f766e; --t-filmex: #9a7a00; --t-chupki: #d0487a;
  --ticket: #d3e8e6; --ticket-ink: #1d5258; --ladder: #2a6f77;
  --block-tint: 11%; --block-border: transparent; --block-rule: 2px;
  --row-h: 78px; --label-w: 96px;
  /* The phone sheet opens to under half the screen and scrolls inside past that, so the timeline stays in view as
     the plan grows (2026-11-27); dragging the grip sets another height (--sheet-h from hashigo.panel). */
  --panel-w: 340px; --sheet-h: 45vh;
  /* The phone sheet stops at its contents' height (--plan-fit) when that's less than the chosen size, and never
     reaches under the stuck header, which would hide its heading and the たたむ button (seen on Android, 2026-11-27). */
  --sheet-now: min(var(--sheet-h), calc(var(--plan-fit, 100vh) + env(safe-area-inset-bottom)), calc(100dvh - var(--top-h, 0px)));
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
  /* A soft charcoal rather than near-black, easier on the eyes in a dark room. */
  --bg: #1c1e22; --surface: #23262b; --surface-2: #2d3036; --ink: #d4d6db; --muted: #b4b8bf;
  --line: #3d424a; --line-strong: #e7e8eb; --accent: #6cc3c8; --ok: #7cc79a; --ng: #ff8a80; --sat: #7aa5f5;
  --ticket: #24474b; --ticket-ink: #b4e6e7; --ladder: #6cc3c8;
  --t-cinemavera: #a98bff; --t-waseda: #3cc3e0; --t-nfaj: #f0b03c; --t-stranger: #ff7ab8;
  --t-polepole: #5ccf86; --t-bungeiza: #ff7b6b; --t-meguro: #79a2ff; --t-imageforum: #3fd1bf;
  --t-eurospace: #c2d063; --t-lecinema: #a9bccc; --t-shimotakaido: #e0a66b; --t-bluestudio: #7fa6f0; --t-jinbocho: #d48cc4; --t-cinemalice: #74cdb0; --t-institut: #8fb0f5; --t-kscinema: #ff9a80; --t-cinemart: #f27db2; --t-athenee: #d8c27a; --t-gardencinema: #f2b24f; --t-k2: #62b8e8; --t-laputa: #a6d35a; --t-rosa: #d596e6; --t-tollywood: #b5a5f2; --t-theatreshinjuku: #ff8a78; --t-cinekaomori: #dd8fe4; --t-humanshibuya: #fb8f5a; --t-humanyurakucho: #4fd1bf; --t-filmex: #f2d347; --t-chupki: #f09ab8;
  --block-tint: 22%;
}
/* Dark: faded shows stay readable (dimmed text on a light-on-dark ground loses contrast faster). */
/* Dark: light thin strokes on a dark ground look thinner than they are, so the light (400) Japanese text becomes 500,
   and the browser's thinner "antialiased" rendering is turned off. */
:root[data-theme="dark"] { --ja-light: 500; }
:root[data-theme="dark"] body { -webkit-font-smoothing: auto; -moz-osx-font-smoothing: auto; }
:root[data-theme="dark"] .show span, :root[data-theme="dark"] .label small, :root[data-theme="dark"] .hours span,
:root[data-theme="dark"] .item .t small, :root[data-theme="dark"] .band { font-weight: 500; }
:root[data-theme="dark"] .show.blocked { opacity: .5; }
:root[data-theme="dark"] .show.past { opacity: .55; }
:root[data-theme="dark"] .hours span { color: var(--muted); }

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-ui);
  font-size: 14px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
/* The OS's Japanese faces (Hiragino above all) get cramped with proportional kana, so body text keeps their
   full-width spacing; only where room is short or a title should hold together are they set tight. */
.show b, .label, .sheet h3, .item .t b, h1, h2, h3 { font-feature-settings: "palt"; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:where(button, a, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
svg.i { width: 16px; height: 16px; flex: none; }
.num, .hours span, .chip .d, .show span, .item .t, .sheet .when, .also .num {
  font-family: var(--font-num); font-stretch: var(--num-stretch);
  font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum", "tnum"; }
