:root {
  --paper: #ffffff;
  --surface: #ffffff;
  --ink: #333333;
  --ink-2: #333333;
  --line: #333333;
  --soft-line: #d0d0d0;
  --head: #333;
  --velvet: #b3263a;
  --velvet-ink: #ffffff;
  --mint: #d6ece2;
  --mint-ink: #134a36;
  --past: #a8a8a8;
  --sat: #2f62c9;
  --num: "Barlow Condensed", "Zen Kaku Gothic New", sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--jp); font-size: 15px; line-height: 1.6;
  font-feature-settings: "palt";
}
button, input { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--velvet); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 10; background: var(--head); color: #fff; }
.top .brand { color: #fff; }
.top .day, .top .day__d, .top .day__w, .top .day__m { color: #fff; }
.top .day[aria-current="date"] { background: #fff; }
.top .day[aria-current="date"] .day__d, .top .day[aria-current="date"] .day__w, .top .day[aria-current="date"] .day__m { color: #333; }
/* 土曜＝ネイビー系・日曜祝日＝赤。暗いヘッダーの上では読めるよう明るめにし、選択中（白地）は濃い色 */
.top .day[data-dow="6"] .day__d, .top .day[data-dow="6"] .day__w { color: #8eaaff; }
.top .day[data-dow="0"] .day__d, .top .day[data-dow="0"] .day__w,
.top .day[data-hol] .day__d, .top .day[data-hol] .day__w { color: #ff5a64; }
.top .day[aria-current="date"][data-dow="6"] .day__d, .top .day[aria-current="date"][data-dow="6"] .day__w { color: #1b2a6b; }
.top .day[aria-current="date"][data-dow="0"] .day__d, .top .day[aria-current="date"][data-dow="0"] .day__w,
.top .day[aria-current="date"][data-hol] .day__d, .top .day[aria-current="date"][data-hol] .day__w { color: #e60012; }
.top .view { border-color: #fff; }
.top .view button { background: #fff; color: #333; }
.top .view button[aria-pressed="true"] { background: #333; color: #fff; }
.top .search input { border-color: #fff; color: #000; }
.top .search input::placeholder { color: #666; }
.top :focus-visible { outline-color: #fff; }
.top__inner, .tools, .days, .main, .foot { max-width: 1080px; margin: 0 auto; padding-inline: 16px; }
.top__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; }
.brand { margin: 0; font-size: 19px; font-weight: 900; letter-spacing: .04em; }
.pick-btn {
  flex: none; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  background: #b3263a; color: #fff; border: 0; border-radius: 999px; padding: 7px 8px 7px 16px; font-weight: 500;
}
.pick-btn__n { font-family: var(--num); font-weight: 600; min-width: 26px; padding: 0 6px; border-radius: 999px; background: #fff; color: #b3263a; text-align: center; }
.pick-btn:hover { background: #9a1f31; }

/* 日付の帯：ここが主役。大きな数字で8日間を一望 */
.days { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; padding-top: 6px; padding-bottom: 10px; }
.day {
  appearance: none; border: 0; background: transparent; cursor: pointer; padding: 4px 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 0; border-radius: 10px; color: var(--ink-2);
}
.day__d { font-family: var(--num); font-weight: 600; font-size: 34px; line-height: 1; letter-spacing: -.01em; color: var(--ink); }
.day__w { font-size: 12px; }
.day[data-dow="0"] .day__w, .day[data-dow="0"] .day__d { color: var(--velvet); }
.day[data-dow="6"] .day__w { color: var(--sat); }
.day[aria-current="date"] { background: var(--ink); }
.day[aria-current="date"] .day__d, .day[aria-current="date"] .day__w { color: var(--paper); }
.day__m { font-family: var(--num); font-size: 13px; line-height: 1; height: 13px; }

.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-bottom: 12px; }
.view { flex: none; height: 38px; }
.search input { height: 38px; }
.search { flex: 1 1 0; min-width: 220px; }
.search input, .picker__filters input {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 7px 12px;
}
.view { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.view button { border: 0; background: var(--surface); padding: 6px 12px; cursor: pointer; color: var(--ink-2); }
.view button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* ---------- theater blocks ---------- */
.main { padding-top: 20px; padding-bottom: 40px; display: grid; gap: 28px; }
.theater__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--ink); padding-bottom: 6px; margin-bottom: 4px; }
.theater__name { margin: 0; font-size: 20px; font-weight: 700; }
.theater__meta { font-size: 12px; color: var(--ink-2); }
.theater__title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.theater__title .theater__name { margin-right: 4px; }
.th-btn { display: inline-block; font-size: 11px; line-height: 1; padding: 5px 8px; border: 1px solid var(--ink); border-radius: 999px; color: var(--ink); text-decoration: none; white-space: nowrap; background: #fff; }
.th-btn:hover { background: var(--ink); color: #fff; }
.theater__note { font-size: 13px; color: var(--ink-2); padding: 12px 0; }

.movie { display: grid; grid-template-columns: minmax(0, 28em) 1fr; gap: 6px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.movie__title { margin: 0; font-size: 15px; font-weight: 500; line-height: 1.45; }
.movie__title a { text-decoration: none; }
.movie__title a:hover { text-decoration: underline; }
.times { display: flex; flex-wrap: wrap; gap: 6px 18px; align-content: flex-start; }
.time { display: inline-flex; flex-direction: column; line-height: 1; min-width: 3.4em; color: inherit; text-decoration: none; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.time:hover { background: #e6f6fa; }
.time:hover .time__s { text-decoration: underline; }
.fm-link { display: inline-block; margin-left: 6px; padding: 0 5px; border: 1px solid #c9c9c9; border-radius: 4px; font-size: 10px; line-height: 16px; font-weight: 500; color: #666; text-decoration: none; vertical-align: 2px; white-space: nowrap; letter-spacing: 0; }
.fm-link:hover { border-color: #333; color: #333; }
.cal-hint { padding: 0; margin: 0; }
.gap__map { white-space: nowrap; }
.time__s { font-family: var(--num); font-weight: 600; font-size: 26px; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.time__e { font-size: 11px; color: var(--ink-2); margin-top: 3px; white-space: nowrap; }
.time.is-past .time__s, .time.is-past .time__e { color: var(--past); }
.time.is-next .time__s { color: var(--velvet); }

/* 時間順 */
.slot { display: grid; grid-template-columns: 4.6em 1fr; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.slot__time { color: inherit; text-decoration: none; border-radius: 6px; padding: 2px 4px; margin: -2px -4px; }
.slot__time:hover { background: #e6f6fa; }
.slot__time:hover .time__s { text-decoration: underline; }
.slot .time__s { font-size: 26px; }
.slot__title { font-weight: 500; }
.slot__sub { font-size: 12px; color: var(--ink-2); }
.slot.is-past { color: var(--past); }
.slot.is-past .slot__sub { color: var(--past); }

.empty { text-align: center; padding: 64px 16px; }
.empty__lead { font-size: 20px; font-weight: 700; margin: 0 0 4px; }
.primary, .ghost { border-radius: 8px; padding: 9px 18px; cursor: pointer; font-weight: 500; }
.primary { background: var(--velvet); color: var(--velvet-ink); border: 0; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink-2); }
.empty .primary { margin-top: 16px; }

.foot { color: var(--ink-2); font-size: 10.5px; line-height: 1.7; padding-bottom: 40px; text-align: center; }

/* ---------- picker ---------- */
.picker { border: 0; padding: 0; border-radius: 14px; width: min(860px, calc(100vw - 24px)); max-height: min(86vh, 900px); background: var(--surface); color: var(--ink); }
.picker::backdrop { background: rgba(10, 12, 25, .55); }
.picker__form { display: flex; flex-direction: column; max-height: min(86vh, 900px); }
.picker__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 8px; }
.picker__head h2 { margin: 0; font-size: 18px; }
.picker__close { background: none; border: 0; color: var(--ink-2); cursor: pointer; }
.picker__filters { padding: 0 20px 12px; border-bottom: 1px solid var(--line); }
.picker__list { overflow: auto; padding: 4px 20px 16px; }
.pref { margin-top: 14px; }
.pref__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.pref__head h3 { font-size: 15px; margin: 0; font-weight: 700; }
.pref__toggle { background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; display: inline-flex; align-items: baseline; gap: 10px; }
.pref__toggle::before { content: "▾"; font-size: 12px; width: 1em; }
.pref.is-closed .pref__toggle::before { content: "▸"; }
.pref__count { font-size: 12px; font-weight: 500; color: #00819f; }
.pref.is-closed { padding-bottom: 6px; border-bottom: 1px solid var(--soft-line); }
.bulk { border: 1px solid var(--line); background: transparent; color: var(--ink-2); border-radius: 999px; padding: 3px 12px; font-size: 12px; cursor: pointer; }
.bulk[aria-pressed="true"] { background: var(--mint); color: var(--mint-ink); border-color: transparent; }
.chain { display: grid; grid-template-columns: 14em 1fr; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--soft-line); }
.chain__name { font-size: 13px; font-weight: 700; padding: 3px 8px; margin: 0; text-align: left; align-self: start; background: none; border: 1px dashed transparent; border-radius: 6px; cursor: pointer; color: var(--ink); }
.chain__name:hover { border-color: var(--line); }
.chain__name[aria-pressed="true"] { color: var(--mint-ink); background: var(--mint); }
.chain__name::after { content: "（まとめて選択）"; display: block; font-size: 11px; font-weight: 400; color: var(--ink-2); }
.chain__name[aria-pressed="true"]::after { content: "（まとめて外す）"; color: inherit; }
.timetable-link { font-size: 13px; color: var(--ink-2); }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.opt span { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 13px; cursor: pointer; }
.opt input:checked + span { background: var(--mint); color: var(--mint-ink); border-color: transparent; font-weight: 700; }
.opt input:focus-visible + span { outline: 3px solid var(--velvet); outline-offset: 2px; }
.picker__foot { display: flex; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); }

/* ---------- はしご ---------- */
.hashigo { max-width: 1080px; margin: 0 auto; padding: 16px 16px 0; }
.hashigo[hidden] { display: none; }
.hashigo__titles { border: 0; padding: 0; margin: 0; }
.hashigo__picks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%; }
.hashigo__pick { position: relative; }
.pick__remove { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: #333; color: #fff; font-size: 13px; line-height: 22px; cursor: pointer; padding: 0; }
.add-pick { margin-top: 10px; border: 1px dashed #333; background: #fff; color: #333; border-radius: 8px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.add-pick:hover { background: #f2f2f2; }
.add-pick[hidden] { display: none; }
.hashigo__titles legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
.hashigo__pick { display: grid; gap: 6px; align-content: start; }
.hashigo__pick select { color-scheme: dark; border: 1px solid #000; background-color: #000; background-image: var(--chev-w); color: #fff; border-radius: 8px; padding: 6px 36px 6px 12px; width: 100%; font-size: 13px; }
.hashigo__pick select:disabled { opacity: 1; background-color: #333; border-color: #333; color: #fff; -webkit-text-fill-color: #fff; }
.hashigo__pick select option, .hashigo__pick select optgroup { background: #222; color: #fff; }
.leg__title { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.slot__title a { color: inherit; text-decoration: none; text-underline-offset: 3px; }
.slot__title a:hover { text-decoration: underline; }
.hashigo__titles input { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 8px 12px; width: 100%; }
.hashigo__opts { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.hashigo__opts label { display: inline-flex; align-items: center; gap: 6px; }
.hashigo__opts select { width: auto; border: 1px solid var(--line); border-radius: 8px; padding: 4px 32px 4px 10px; background-color: var(--surface); color: var(--ink); }
.hashigo__scope { display: inline-flex; gap: 12px; }
.plans .hint { padding-top: 0; }
.hashigo__bar { display: flex; justify-content: flex-end; margin-bottom: 4px; }
.saved-btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 14px; font-size: 13px; cursor: pointer; }
.saved-btn[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hashigo__form[hidden] { display: none; }
.plan__date { font-weight: 700; font-size: 15px; }
.plan__actions { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; margin-top: 12px; }
.plan__actions .act { justify-content: center; white-space: nowrap; }
.plan__actions .copy-field { grid-row: 2; grid-column: 1 / -1; }
.act { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 13px; text-decoration: none; cursor: pointer; }
.act:hover { border-color: var(--ink-2); }
.act--save { background: var(--velvet); color: var(--velvet-ink); border-color: transparent; font-weight: 700; }
.act--save[aria-pressed="true"] { background: var(--mint); color: var(--mint-ink); }
.act--line { background: #06c755; color: #fff; border-color: transparent; font-weight: 700; }
.act--del { color: var(--ink-2); }
.gap__map { margin-left: 8px; color: inherit; font-weight: 700; }
.copy-field { flex: 1 1 100%; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12px; background: var(--surface); color: var(--ink); }
.linklike { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; margin-left: 8px; padding: 0; font-size: inherit; }
.plan { padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
.plan__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; margin-bottom: 8px; }
.plan__span { font-family: var(--num); font-weight: 600; font-size: 24px; }
.plan__meta { font-size: 12px; color: var(--ink-2); }
.leg { --leg-col: 108px; display: grid; grid-template-columns: var(--leg-col) 1fr; gap: 12px; align-items: baseline; padding: 4px 0; }
.leg__time { font-family: var(--num); font-weight: 600; font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leg__time small { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.leg__title { font-weight: 500; }
.leg__where { font-size: 12px; color: var(--ink-2); }
.gap { --leg-col: 108px; position: relative; padding-left: calc(var(--leg-col) + 12px); font-size: 12px; color: var(--ink-2); }
.gap::before { content: ""; position: absolute; left: 1.6em; top: -2px; bottom: -2px; border-left: 2px dotted var(--soft-line); }
.gap.is-move { color: var(--velvet); }
.hint { color: var(--ink-2); font-size: 13px; padding: 12px 0; }

@media (max-width: 640px) {
  .plan__actions { display: grid; grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .plan__actions .copy-field { grid-row: auto; }
  .brand { font-size: 14px; letter-spacing: 0; white-space: nowrap; }
  .pick-btn { padding: 5px 5px 5px 10px; font-size: 13px; white-space: nowrap; }
  .hashigo__picks { grid-template-columns: 1fr; gap: 8px; }
  .leg, .gap { --leg-col: 96px; }
  .day__d { font-size: 26px; }
  .movie { grid-template-columns: 1fr; }
  .time__s { font-size: 23px; }
  .chain { grid-template-columns: 1fr; gap: 4px; }
  .theater__head { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---------- このサイトについて（about.html） ---------- */
.foot__link { text-decoration: underline; text-underline-offset: 2px; }
.top__inner--doc { padding-bottom: 12px; }
.brand--link { color: #fff; text-decoration: none; }
.doc-back { color: #fff; font-size: 13px; white-space: nowrap; }
.doc { max-width: 760px; margin: 0 auto; padding: 24px 16px 32px; }
.doc h1 { font-size: 24px; margin: 0 0 12px; }
.doc h2 { font-size: 18px; margin: 36px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--head); scroll-margin-top: 16px; }
.doc h3 { font-size: 15px; margin: 20px 0 6px; display: flex; gap: 8px; align-items: baseline; }
.doc h3 span { font-size: 12px; font-weight: 500; color: #666; }
.doc p, .doc li { line-height: 1.85; }
.doc ul { padding-left: 1.3em; margin: 8px 0; }
.doc li + li { margin-top: 6px; }
.doc a { color: #00708b; overflow-wrap: anywhere; }
.doc__lead { font-size: 15.5px; }
.doc__toc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 18px 0 0; padding: 12px 14px; background: #f3f8fa; border-radius: 10px; font-size: 13.5px; }
.doc__code { display: inline-block; margin-top: 4px; padding: 2px 8px; background: #f2f2f2; border-radius: 6px; font-size: 12.5px; overflow-wrap: anywhere; }
.doc__contact { font-size: 16px; font-weight: 700; }
.doc__dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 8px 0; }
.doc__dl dt { font-weight: 700; }
.doc__dl dd { margin: 0; }
.doc__note { font-size: 13px; color: #555; }
.doc__theaters ul { columns: 2 220px; column-gap: 24px; list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.doc__theaters li { break-inside: avoid; margin: 0 0 4px; }
.doc__theaters li + li { margin-top: 0; }
@media (max-width: 480px) {
  .top__inner--doc .brand { font-size: 15px; }
  .doc-back { font-size: 12px; }
}

/* 取得できず前回のデータを出している館 */
.stale-note { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--velvet); background: color-mix(in srgb, var(--velvet) 7%, transparent); color: var(--ink); font-size: 12.5px; line-height: 1.6; }
.opt__stale { display: inline-block; margin-left: 6px; font-size: 10.5px; color: var(--velvet); }

/* セレクトの▼：標準の矢印は右端に寄りすぎるので自前で描いて内側に置く */
:root {
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23333' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --chev-w: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
select { -webkit-appearance: none; appearance: none; background-image: var(--chev); background-repeat: no-repeat; background-position: right 14px center; background-size: 10px 6px; }
.hashigo__pick select { background-image: var(--chev-w); }
