/* plan.css: マイ時間割のパネル: シート／横の列、タブ、項目、すき間、休憩、通知ボタン、トースト、応援カード。 */
/* ---------- マイ時間割 ---------- */
#plan { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; display: flex; flex-direction: column;
  background: var(--surface); border-top: 1px solid var(--line-strong); height: var(--sheet-now);
  padding: 18px 16px calc(14px + env(safe-area-inset-bottom)); transition: height var(--dur-panel) var(--ease); }
@media (max-width: 699px), (max-width: 1099px) and (min-height: 521px) {
  :root[data-panel="closed"] #plan { height: calc(66px + env(safe-area-inset-bottom)); }
  /* まだ何も選んでいないとき: 見出しと1行だけにして、時間割に画面を譲る。 */
  :root[data-plan-empty][data-panel="open"] #plan { height: calc(112px + env(safe-area-inset-bottom)); }
  :root[data-plan-empty] main { padding-bottom: 134px; }
  /* 空のマイ時間割の下にこれまでのはしごがあるときは、もう1行要る。 */
  :root[data-plan-empty][data-has-log][data-panel="open"] #plan { height: calc(146px + env(safe-area-inset-bottom)); }
  :root[data-plan-empty][data-has-log] main { padding-bottom: 168px; }
  /* リストを隠すのは、シートが縮み終わってから。畳む途中で空白がちらつかないようにする。 */
  .plan-body { transition: visibility 0s; }
  :root[data-panel="closed"] .plan-body { visibility: hidden; transition: visibility 0s var(--dur-panel); }
  body.resizing #plan { transition: none; }
}
.hide-btn { display: inline-flex; align-items: center; gap: 4px; }
.hide-btn svg { width: 14px; height: 14px; transition: transform var(--dur-quick) var(--ease); }
/* スマホ: 見出しのバーもグリップと同じようにドラッグできる。 */
@media (max-width: 699px), (max-width: 1099px) and (min-height: 521px) { .plan-head { cursor: pointer;
  touch-action: none; } }
.plan-tab { position: fixed; right: 0; top: 50%; z-index: 9; transform: translateY(-50%); writing-mode: vertical-rl;
  display: flex; align-items: center; gap: 10px; padding: 16px 9px; border: 1px solid var(--line-strong);
  border-right: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); background: var(--surface); color: var(--ink); cursor: pointer;
  font-family: var(--font-ja); font-size: 13px; font-weight: 700; letter-spacing: .12em;
  box-shadow: -6px 0 18px rgba(0, 0, 0, .08); transition: opacity var(--dur-open) var(--ease), translate var(--dur-open) var(--ease); }
/* 入るときは短くスライドし、出るときは即座に消す（残すと、入れ替わったパネルの上に居座った）。 */
@starting-style { .plan-tab { opacity: 0; translate: 12px 0; } }
.plan-tab:hover { background: var(--surface-2); }
/* 上映回を足した直後: マイ時間割（またはそのタブ）がアクセント色で一度光る。 */
#plan.nudge, .plan-tab.nudge { animation: nudge .9s var(--ease); }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent);
  } 100% { box-shadow: 0 0 0 14px transparent; } }
#planSub.nudge { display: inline-block; animation: count-hop .9s var(--ease); }
@keyframes count-hop { 0%, 55% { color: var(--accent); } 15% { transform: translateY(-4px) scale(1.25);
  } 35% { transform: none; } }
@media (prefers-reduced-motion: reduce) { #plan.nudge, .plan-tab.nudge { animation: none;
  } #planSub.nudge { animation: count-flash .9s; }
  @keyframes count-flash { 0%, 55% { color: var(--accent); } } }
.plan-tab[hidden] { display: none; }
.plan-tab b { writing-mode: horizontal-tb; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font: 600 11px/18px var(--font-num); text-align: center; letter-spacing: 0; }
.plan-tab b:empty { display: none; }
.plan-body { overflow-y: auto; min-height: 0; flex: 1; margin-top: 6px; }
.plan-head { display: flex; align-items: center; gap: 6px; }
.plan-head .plan-tabs { flex: 1; margin: 0; display: flex; align-items: baseline; gap: 8px;
  font-family: var(--font-title); font-size: 15px; font-weight: 700; }
/* パネルの見出しの2つのタブ: その日のマイ時間割と、みたい。 */
.plan-tabs { gap: 14px !important; }
/* 横の列は狭い。タブは折り返さず、「この日をクリア」は「クリア」に縮む。 */
.plan-head .text-btn { white-space: nowrap; }
/* 「しまう / たたむ」: 縁取りの小さなボタン。矢印がパネルの行き先を指す。 */
#planHide { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px 0 10px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--ink); }
#planHide svg { width: 14px; height: 14px; }
#planHide svg.to-right { rotate: -90deg; }
#planHide svg.to-up { rotate: 180deg; }
/* 保存・共有は左、空にするは同じ行の右端（上揃えにして、メニューが開いても動かさない）。 */
/* マイ時間割の小さなタイトル（はしご成立、三本立て …）と、変わったときの弾み。 */
.rank { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; font-family: var(--font-ja); font-size: 12px;
  font-weight: 700; color: var(--accent); }
.rank .chan { flex: none; width: 28px; height: 28px; }
/* ひとことは吹き出しにせず、灰色の小さな文字で。ユーモアは内側に（静謐に、2026-11-28）。 */
.rank .say { position: relative; padding: 0 0 0 2px; color: var(--muted); font-size: 11px; }
/* サイトの応援をお願いする月1回の一行 (timeline.js askCheer)。半券ちゃんのひとことの下。 */
.rank .say .cheer { display: block; margin-top: 2px; color: var(--accent); font-size: 11px; font-weight: 500; }
.rank.up .say { animation: rank-up .5s var(--ease); transform-origin: left center; }
@keyframes rank-up { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.12); opacity: 1;
  } 100% { transform: scale(1); } }
.recap .rank-t { display: block; margin: 2px 0; color: var(--accent); font-weight: 700; }
/* 終映時刻が目安のときの「頃」: 小さく、単独で行に残さない。 */
.ca { font-size: .78em; font-weight: 500; margin-left: 1px; }
.item .t small, .show .end, .stub .when { white-space: nowrap; }
.plan-actions { display: flex; align-items: flex-start; gap: 12px; }
.plan-clear { flex: none; display: flex; align-items: center; gap: 5px; margin: 12px 0 0 auto;
  height: var(--btn-h, 34px); }
.plan-clear svg { width: 13px; height: 13px; }
/* 通知: マイ時間割タブでは空にするの隣、みたいタブでは一覧の下に1つだけ。 */
.plan-notify { flex: none; display: flex; align-items: center; gap: 5px; margin: 12px 0 0; height: var(--btn-h, 34px); }
.plan-notify svg { width: 14px; height: 14px; }
.plan-actions .plan-notify { color: var(--accent); }  /* オンでもオフでも、隣の空にするとは違い、
                                                         使うものに見せる */
.plan-notify.on svg { fill: currentColor; }
/* 出発の時刻の通知のお誘い（1行）。その日のマイ時間割の下 (timeline.js askNotify)。 */
.notify-ask { display: flex; align-items: center; gap: 4px; margin: 10px 0 0; padding: 4px 4px 4px 10px;
  border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: var(--radius);
  font-family: var(--font-ja); }
.notify-ask .text-btn { display: inline-flex; align-items: center; gap: 6px; flex: 1; justify-content: flex-start;
  color: var(--accent); font-size: 13px; font-weight: 700; }
.notify-ask .text-btn svg { width: 15px; height: 15px; }
.notify-ask .notify-no { flex: none; display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border: 0; background: none; color: var(--muted); cursor: pointer; }
.notify-ask .notify-no svg { width: 14px; height: 14px; }
.plan-notify + .plan-clear { margin-left: 0; }
.plan-actions .plan-out + .plan-notify { margin-left: auto; }
.toast-act { margin-left: 14px; padding: 0; border: 0; background: none; color: inherit; font: inherit;
  font-weight: 700; cursor: pointer; white-space: nowrap; }
/* その日が終わったあと: マイ時間割の上に小さな記録カード。共有もできる。 */
.recap { display: grid; grid-template-columns: 40px 1fr; gap: 6px 12px; align-items: center; margin: 2px 0 12px;
  padding: 12px 14px; border-radius: var(--radius); background: var(--ticket); color: var(--ticket-ink);
  font-family: var(--font-ja); }
.recap > p:not(.plan-log) { margin: 0; font-size: 12px; line-height: 1.5; }
.recap > p:not(.plan-log) b { display: block; font-size: 14px; }
/* 取り込む前の ?plan= のリンク (js/plan.js renderShared)。 */
.shared-head { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; margin: 2px 0 12px;
  font-family: var(--font-ja); }
.shared-head p { margin: 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.shared-head b { display: block; font-size: 14px; color: var(--ink); }
.shared-head .logo-mark { width: 36px; height: 36px; justify-self: center; }
.shared-acts { flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.shared-acts .text-btn { margin-left: auto; }
.recap-acts { grid-column: 1 / -1; display: flex; gap: 6px; }
.recap-acts .btn { flex: 1; justify-content: center; height: 36px; font-size: 13px; background: var(--surface); }
.chan-note { display: flex; align-items: center; gap: 12px; }
/* 句は丸ごと折り返し、最後の行に1文字だけ残らないようにする。 */
.chan-note .phrase { display: inline-block; }
.chan-note .chan { flex: none; width: 40px; height: 40px; }
.empty .chan { display: block; width: 56px; height: 56px; margin: 0 auto 10px; }
.with-mark { display: flex; align-items: center; gap: 10px; }
.with-mark .logo-mark { width: 28px; height: 28px; flex: none; }
.plan-tabs button { white-space: nowrap; display: inline-flex; align-items: baseline; gap: 6px; padding: 2px 0;
  border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font: inherit; font-weight: 400;
  cursor: pointer; transition: color var(--dur-open) var(--ease), border-color var(--dur-open) var(--ease); }
.plan-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.plan-body.tab-in { animation: tab-in .24s var(--ease); }
@keyframes tab-in { from { opacity: 0; translate: 0 6px; } }
@media (prefers-reduced-motion: reduce) { .plan-body.tab-in { animation: none; } .plan-tabs button { transition: none;
  } }
.plan-tabs button:hover { color: var(--ink); }
/* みたい: みたい作品の全上映回の題名の前に付く小さなしおり。 */
.wmark { display: inline-block; width: 8px; height: 12px; margin-right: 5px; vertical-align: -1px;
  background: var(--accent); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 72%, 0 100%); }
/* みたい作品の上映回にはアクセント色の枠も付け、1日のなかで目立たせる。 */
.show.wished:not(.picked) { box-shadow: inset 0 0 0 2px var(--accent); }
.show.picked .wmark { background: currentColor; }
.wish-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.wish-item { padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--font-ja); }
.wish-head { display: flex; align-items: center; gap: 4px; }
.wish-head b { flex: 1; font-family: var(--font-title); font-size: 14px; }
.wish-item ul { list-style: none; margin: 4px 0 0; padding: 0 0 0 11px; display: grid; gap: 1px; }
.wish-item li button { display: flex; gap: 8px; width: 100%; padding: 4px 6px; margin-left: -6px; border: 0;
  border-radius: var(--radius); background: none; color: var(--muted); font: inherit; font-size: 12px; text-align: left;
  cursor: pointer; }
.wish-item li button:hover { background: var(--surface-2); color: var(--ink); }
.wish-item li .num { color: var(--ink); }
.wish-item .more { margin: 4px 0 0 11px; font-size: 11px; color: var(--muted); }
.plan-head .sub { font-family: var(--font-ja); font-weight: var(--ja-light); color: var(--muted); font-size: 12px; }
.text-btn { font-family: var(--font-ja); font-size: 12px; font-weight: 400; color: var(--muted); background: none; border: 0;
  padding: 4px 6px; border-radius: var(--radius); cursor: pointer; }
.text-btn:hover { color: var(--ink); background: var(--surface-2); }
.icon-btn { width: 30px; height: 30px; padding: 0; display: grid; place-items: center; flex: none;
  border: 1px solid transparent; border-radius: var(--radius); background: none; color: var(--muted); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; transition: transform var(--dur-quick) var(--ease); }
/* リサイズのハンドル: スマホでは上端、広い画面では左端をドラッグする。 */
.grip { position: absolute; top: 0; left: 50%; width: 64px; height: 18px; transform: translateX(-50%); padding: 0;
  border: 0; background: none; cursor: row-resize; touch-action: none; }
.grip::after { content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 4px; border-radius: var(--radius-sm);
  background: var(--line-strong); opacity: .3; transform: translateX(-50%); transition: opacity var(--dur-quick) var(--ease); }
.grip:hover::after, .grip.dragging::after { opacity: .75; }
/* スマホ: グリップはシートの上端いっぱいに広げる（真ん中のバーだけではない）。 */
@media (max-width: 699px), (max-width: 1099px) and (min-height: 521px) { .grip { left: 0; width: 100%; height: 22px;
  transform: none; } }
@media (min-width: 1100px), (min-width: 700px) and (max-height: 520px) {
  :root[data-panel="closed"] .layout { grid-template-columns: minmax(0, 1fr); }
  /* 閉じるときは即座に隠す。フェードアウトだと、グリッドの列が消えたあとも画面に残り、
     一瞬時間割の下にずれる（ちらつき）。開くときは今まで通りフェードイン (@starting-style)。 */
  :root[data-panel="closed"] #plan { display: none; transition: none; }
  #plan { position: sticky; top: 150px; align-self: start; margin-top: 132px; height: auto;
    max-height: calc(100vh - 170px); border: 1px solid var(--line-strong); border-radius: var(--radius);
    padding: 14px 16px 16px; transition: opacity var(--dur-open) var(--ease), translate var(--dur-open) var(--ease), display var(--dur-open) allow-discrete;
    }
  @starting-style { #plan { opacity: 0; translate: 16px 0; } }
  /* 開閉はビュー遷移 (js/plan.js togglePanel): パネルとタブがスライドし、残りはフェードする。 */
  :root.panel-vt #plan { view-transition-name: plan; }
  :root.panel-vt .plan-tab { view-transition-name: plan-tab; }
  .grip { top: 0; bottom: 0; left: -11px; width: 20px; height: auto; transform: none; cursor: col-resize; }
  .grip::after { top: 50%; width: 4px; height: 40px; transform: translate(-50%, -50%); }
  body.resizing { cursor: col-resize; user-select: none; }
}
/* シネマテーク: 選んだ上映回は1枚のチケット（半券＋本体）。はしごの線が間をつなぐ。 */
.item { display: grid; grid-template-columns: 66px 1fr auto; gap: 0; align-items: center; padding: 0; margin: 4px 0;
  background: color-mix(in srgb, var(--ticket) 30%, var(--surface)); border-radius: var(--radius-md); }
.item .t { align-self: stretch; display: flex; flex-direction: column; justify-content: center;
  padding: 9px 10px; border-radius: var(--radius-md) 0 0 var(--radius-md); color: var(--ticket-ink); font-weight: 600; font-size: 17px;
  line-height: 1.2; border-right: 1.5px dashed color-mix(in srgb, var(--ticket-ink) 40%, transparent);
  background: radial-gradient(circle at 100% 0, var(--surface) 0 5px, transparent 5.5px),
  radial-gradient(circle at 100% 100%, var(--surface) 0 5px, transparent 5.5px), var(--ticket); }
.item .t small { display: block; font-weight: 400; color: inherit; opacity: .75; font-size: 11px; }
/* 時刻を押すと時間割のその上映回へ（button だが半券の見た目のまま）。 */
button.t { font: inherit; font-size: 17px; font-weight: 600; text-align: left; border-top: 0; border-bottom: 0; border-left: 0; cursor: pointer; }
@media (hover: hover) { button.t:hover { text-decoration: underline; text-underline-offset: 3px; } }
.item > div:nth-child(2) { padding: 8px 12px; }
.item .ttl { font-family: var(--font-title); font-weight: var(--title-weight); line-height: 1.4; }
/* 題名を押すと上映回のシートが開く (sheets.js data-open-show)。 */
button.ttl { display: block; padding: 0; border: 0; background-color: transparent; color: inherit; font-size: inherit;
  text-align: left; cursor: pointer; }
/* チケットのリンクは劇場の行に置き、題名が行の幅を全部使えるようにする。 */
.item .where { font-family: var(--font-ja); font-weight: var(--ja-light); font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 12px; }
.item .where i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--tc); }
.item .where > span { display: inline-flex; align-items: center; gap: 6px; }
.item .where .ticket { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-weight: 500;
  white-space: nowrap; }
.item .where .ticket svg { width: 13px; height: 13px; }
.item .where .ticket .ext { width: 10px; height: 10px; }
.gap { margin-left: 32px; font-family: var(--font-ja); font-size: 12px; padding: 6px 12px;
  border-left: 2px solid var(--ladder); color: var(--ladder); font-weight: 500; display: flex; flex-wrap: wrap;
  align-items: center; gap: 0 12px; }
.gap.ng { border-left: 2px dashed var(--ng); color: var(--ng); }
.gap .route { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; color: inherit; font-weight: 500; }
.gap .route svg { width: 12px; height: 12px; }
/* 休憩: 移動の行の下に独立した行。移動と余り時間の下。 */
.gap .brk, .gap .brk-add { flex-basis: 100%; }
.gap .brk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.gap .brk > span { padding: 2px 10px; border-radius: 999px; white-space: nowrap;
  background: color-mix(in srgb, var(--ladder) 12%, transparent); color: var(--ink); font-weight: 500; }
.gap .brk button, .gap .brk-add button { min-width: 28px; height: 26px; padding: 0 8px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.gap .brk button svg { width: 11px; height: 11px; vertical-align: -1px; }
.gap .brk .near { display: inline-flex; align-items: center; gap: 3px; margin-left: auto; white-space: nowrap;
  color: var(--muted); font-weight: 500; }
.gap .brk .near:hover { color: var(--ink); }
.gap .brk .near.next { margin-left: 8px; }
.gap .brk .near svg { width: 12px; height: 12px; }
.gap .brk-add summary { width: fit-content; margin-top: 2px; list-style: none; cursor: pointer; color: var(--muted);
  font-weight: 500; }
.gap .brk-add summary::-webkit-details-marker { display: none; }
.gap .brk-add summary:hover { color: var(--ink); }
.gap .brk-add > span { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
/* 間に観られる回: 移動の行の下に、休憩と同じ幅で。 */
.gap .between { flex-basis: 100%; margin: 2px 0 0; font-weight: 400; }
/* リストの下: 1日分をカレンダーへ、または人に送るリンクとして。 */
.plan-out { position: relative; margin: 12px 0 4px; }
.plan-out summary { list-style: none; height: 34px; padding: 0 10px 0 12px; font-size: 12px; width: max-content; }
.plan-out summary::-webkit-details-marker { display: none; }
.plan-out summary svg { width: 14px; height: 14px; }
.plan-out summary svg:last-child { transition: transform var(--dur-quick) var(--ease); }
.plan-out[open] summary svg:last-child { transform: rotate(180deg); }
.plan-out-menu { display: grid; gap: 2px; margin-top: 6px; padding: 4px; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--surface); }
/* 画面に浮かせて、ボタンの上（入らなければ下）に開く。位置は js/plan.js が開くときに --menu-top / --menu-left で決める。
   パネルの中に置くと、上に入らないとき下に開いてパネルがスクロールしていた（2026-11-28）。 */
/* 幅は中身で決める: 置く位置で幅が変わると、右寄りでは文字が折り返して、測った高さより伸びていた（画面からはみ出した）。 */
.plan-out .plan-out-menu { position: fixed; top: var(--menu-top, -999px); left: var(--menu-left, 0); z-index: 45;
  width: max-content; min-width: 220px; max-width: calc(100vw - 16px); max-height: var(--menu-max, none); overflow-y: auto;
  margin: 0; box-shadow: var(--shadow-2); }
/* 開くときにふわっと現れる動きは js/plan.js（menuIn）が付ける。CSS の animation では、閉じた details の中身を
   Chrome が描かずに止めるため、2回目からは動かなかった（2026-11-28）。 */
@keyframes menu-in { from { opacity: 0; translate: 0 4px; } }
/* スマホ: メニューは画面下からアクションシートとして出す。幅いっぱいで行は大きく、
   ボタンの位置やマイ時間割の長さによらず同じ。 */
@media (max-width: 600px) {
  .plan-out .plan-out-menu { position: fixed; left: 10px; right: 10px; width: auto; max-width: none;
    bottom: calc(10px + env(safe-area-inset-bottom)); top: auto; z-index: 40; min-width: 0; margin: 0; padding: 6px;
    border-radius: var(--radius-lg); box-shadow: 0 -8px 40px rgba(0, 0, 0, .28); }
  .plan-out .plan-out-menu button { min-height: 50px; font-size: 15px; }
  .plan-out[open]::before { content: ""; position: fixed; inset: 0; z-index: 39; background: rgba(0, 0, 0, .32); }
}
/* 項目は「共有する」と「手元に残す」の2つに分ける（8項目になり、何のための項目か分かりにくくなった）。 */
.plan-out-head { margin: 0; padding: 8px 10px 4px; font-family: var(--font-ja); font-size: 11px; color: var(--muted); }
.plan-out-head + button { margin-top: 0; }
.plan-out-menu button + .plan-out-head { margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--line); }
.plan-out-menu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; font-size: 13px; border: 0;
  border-radius: var(--radius); background: none; color: var(--ink); font-family: var(--font-ja); text-align: left;
  cursor: pointer; }
.plan-out-menu button:hover { background: var(--surface-2); }
/* 似た項目の違いを小さく添える（画像で共有＝見せる画像、メモ＝当日に使う住所つき）。 */
.plan-out-menu button small { display: block; font-size: 11px; color: var(--muted); }
.plan-out-menu svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.toast { position: fixed; left: 50%; bottom: calc(var(--sheet-now, 0px) + 16px); z-index: 50; translate: -50% 0;
  width: max-content; max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font-family: var(--font-ja); font-size: 13px;
  box-shadow: var(--shadow-2);
  transition: opacity var(--dur-open) var(--ease), translate var(--dur-open) var(--ease), display var(--dur-open) allow-discrete;
  /* 数秒間は時間割の上に出る。そこのタップは、トーストのボタン以外、下の上映回に届かせたい。 */
  pointer-events: none; }
.toast .toast-act { pointer-events: auto; }
.toast[hidden] { display: none; opacity: 0; translate: -50% 8px; }
@starting-style { .toast:not([hidden]) { opacity: 0; translate: -50% 8px; } }
@media (min-width: 1100px), (min-width: 700px) and (max-height: 520px) { .toast { bottom: 24px; } }
/* 応援をお願いする唯一の場所: 半券ちゃん、一文、ボタン。枠線はなしで地の色だけ（上の連絡のボタン・中の OFUSE のボタンの線と
   四角が重なって固く見えたため。2026-11-29）。 */
.about .fine { font-size: 12px; line-height: 1.7; }
.support { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; margin: 14px 0;
  padding: 14px 16px; border-radius: var(--radius); background: var(--surface); }
.support p { margin: 0; font-size: 13px; line-height: 1.6; }
.support p b { display: block; color: var(--ink); font-size: 14px; }
.support .btn { white-space: nowrap; text-decoration: none; }
@media (max-width: 600px) { .support { grid-template-columns: 48px 1fr; } .support .btn { grid-column: 1 / -1;
  justify-content: center; } }
.actions { display: flex; align-items: center; gap: 2px; font-family: var(--font-ja); font-size: 12px; }
.actions a { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px;
  border-radius: var(--radius); color: var(--accent); text-decoration: none; }
.actions a:hover { background: var(--surface-2); }
.actions svg { width: 15px; height: 15px; }


/* PC からスマホへ: マイ時間割の QR コード。白地に黒（カメラが読みやすい）で、ダークでも地は白のまま。 */
.plan-qr { animation: menu-in var(--dur-open) var(--ease); display: grid; grid-template-columns: 120px 1fr; gap: 6px 14px; align-items: center; margin: 12px 0 4px;
  font-family: var(--font-ja); font-size: 12px; line-height: 1.6; color: var(--muted); }
.plan-qr > svg { grid-row: span 2; width: 120px; height: 120px; padding: 4px; border-radius: var(--radius); background: #fff; fill: #17181b; }
/* 区切ってよい所だけで折り返す（「この／日の」と切れていた。auto-phrase でも切れた）。 */
.plan-qr p { margin: 0; align-self: end; }
.plan-qr .phrase { display: inline-block; }
/* 「空にする」と同じく、× と文字を中央でそろえる。 */
.plan-qr .text-btn { justify-self: start; align-self: start; display: flex; align-items: center; gap: 5px;
  margin-left: -6px; }
.plan-qr .text-btn svg { width: 13px; height: 13px; }
/* 着く時間: マイ時間割の一覧の上の静かな1行。 */
.arrive { margin: 0 0 10px; font-family: var(--font-ja); font-size: 12px; color: var(--muted); }
.arrive label { display: inline-flex; align-items: center; gap: 8px; }
/* 山形は自前で描く: ブラウザ標準のものは右端に寄ってずれて見えた（menus.css の .vsort select と同じ理由）。 */
.arrive select { -webkit-appearance: none; appearance: none; font: inherit; color: var(--ink);
  background: var(--surface) no-repeat right 7px center / 11px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8e96' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  border: 1px solid var(--line-strong); border-radius: var(--radius-md); padding: 2px 24px 2px 8px; cursor: pointer; }
.arrive select:hover { border-color: var(--ink); }
.arrive select:focus-visible { outline: 2px solid var(--ladder); outline-offset: 1px; }
/* このあと間に合う上映回: 一覧の下で閉じておく。事実だけ。 */
:is(.after, .between) { margin: 10px 0 0; font-family: var(--font-ja); font-size: 13px; }
:is(.after, .between) summary { display: flex; align-items: center; gap: 6px; padding: 6px 4px; color: var(--muted); font-weight: 700;
  cursor: pointer; list-style: none; }
:is(.after, .between) summary::-webkit-details-marker { display: none; }
:is(.after, .between) summary:hover { color: var(--ink); }
:is(.after, .between) summary svg { width: 14px; height: 14px; transition: transform var(--dur-quick) var(--ease); }
:is(.after, .between)[open] summary svg { transform: rotate(180deg); }
:is(.after, .between) ul { list-style: none; margin: 0; padding: 0; }
:is(.after, .between) li button { display: grid; grid-template-columns: 3.2em 1fr auto; gap: 0 8px; align-items: baseline; width: 100%;
  padding: 6px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit;
  text-align: left; cursor: pointer; }
:is(.after, .between) li button:hover { background: var(--surface-2); }
:is(.after, .between) li button:focus-visible { outline: 2px solid var(--ladder); outline-offset: -2px; }
:is(.after, .between) li b { font-family: var(--font-num); }
:is(.after, .between) li .ttl { grid-column: 2; font-weight: 700; overflow-wrap: anywhere; }
:is(.after, .between) li em { grid-column: 3; grid-row: 1; color: var(--ok); font-style: normal; font-size: 12px; }
:is(.after, .between) li .where { grid-column: 2; display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: 12px; }
:is(.after, .between) li .where i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
:is(.after, .between) p { margin: 0; padding: 4px 4px 6px; color: var(--muted); font-size: 12px; }
/* 横のパネルのビュー遷移（広い画面）。 */
::view-transition-group(root) { animation-duration: var(--dur-open); }
::view-transition-new(plan) { animation: vt-slide-in var(--dur-panel) var(--ease) both; }
::view-transition-old(plan) { animation: vt-slide-out var(--dur-open) var(--ease) both; }
::view-transition-new(plan-tab) { animation: vt-slide-in var(--dur-open) var(--ease) .08s both; }
::view-transition-old(plan-tab) { animation: vt-slide-out var(--dur-quick) var(--ease) both; }
@keyframes vt-slide-in { from { opacity: 0; translate: 24px 0; } }
@keyframes vt-slide-out { to { opacity: 0; translate: 24px 0; } }
/* 紙のはしごメモ（js/plan.js printMemo）: 画面には出さず、印刷のときだけ、ほかを隠してこれだけを刷る。
   背景の塗りは印刷の設定で刷られないことがあるので、区切りは線と太さで。劇場の色は左の線だけ。黒に寄せて、ダークの設定（淡い色）や白黒の印刷でも濃く出す。 */
#printMemo { display: none; }
@media print {
  @page { size: A5; margin: 13mm 12mm; }
  body > :not(#printMemo) { display: none !important; }
  html, body { background: #fff !important; }
  #printMemo { display: block; color: #000; font-family: var(--font-ja); font-size: 10pt; line-height: 1.55;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #printMemo p { margin: 0; }
  #printMemo header { margin-bottom: 5mm; padding-bottom: 2.5mm; border-bottom: 1.2pt solid #000; }
  #printMemo h1 { margin: 0; font-size: 16pt; font-weight: 700; line-height: 1.3; }
  #printMemo header p { margin-top: 1mm; font-family: var(--font-num); font-size: 10pt; color: #333; }
  .pm-show { display: grid; grid-template-columns: 19mm 1fr; gap: 0 3.5mm; padding: 2.5mm 3mm 2.5mm 3.5mm;
    border: .6pt solid #555; border-left: 1.6mm solid color-mix(in srgb, var(--tc, #000) 70%, #000); border-radius: 1.5mm; break-inside: avoid; }
  .pm-time { font-family: var(--font-num); font-size: 16pt; font-weight: 700; line-height: 1.15; }
  .pm-time small { display: block; margin-top: .5mm; font-size: 9pt; font-weight: 400; color: #333; }
  .pm-title { margin-bottom: .8mm !important; font-size: 12.5pt; font-weight: 700; line-height: 1.35; }
  .pm-hall { font-size: 10pt; font-weight: 700; }
  .pm-hall small { margin-left: 2mm; font-size: 9pt; font-weight: 400; }
  .pm-show p:not(.pm-time):not(.pm-title):not(.pm-hall) { font-size: 9pt; color: #333; }
  /* 移動: 上映回のあいだを縦の点線でつなぎ（はしごの線）、目安と余裕を横に */
  .pm-move { display: flex; gap: 4mm; margin: 0 0 0 11mm !important; padding: 2mm 0 2mm 4mm; border-left: 1pt dashed #000;
    font-size: 9pt; }
  .pm-move .ng { font-weight: 700; text-decoration: underline; }
  #printMemo footer { margin-top: 6mm; padding-top: 2mm; border-top: .6pt solid #000; font-size: 8pt; color: #333; }
  #printMemo footer p + p { margin-top: 1mm; }
  #printMemo .pm-brand { font-family: "Hashigo Wordmark", var(--font-ja); font-weight: 900; font-size: 9pt; color: #000; }
}
