/* /koyomi/christmas の特設「締め切りの時刻表」（案 ka v3）。初画面の夜の帯（koyomi_christmas_fv.css）と同じ家族: 紺 #14213f・金 #e9c46a。
   崩す色（状態の赤・緑）はこの塊の中の変数 --xk-* だけで持つ。頁の地は白のまま。値は page_generators/koyomi_christmas_retail.py が決め、ここは見た目だけ。 */
.bc.ds .ds-xk{
  --xk-night: #14213f;
  --xk-kin: #e9c46a;
  --xk-kin-ink: #7a5a12;
  --xk-soon: #b3261e;
  --xk-open: #17734c;
  --xk-open-bg: #e6f4ec;
  --xk-paper: #fff;
  --xk-soft: #cfd6e6;
  --xk-closed-bg: #e9ecef;
  --xk-ink: var(--bc-text);
  --xk-sub: var(--bc-muted);
  --xk-line: var(--bc-border);
  --xk-surface: var(--bc-surface);
}
.bc.ds .ds-xk-vh{ position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bc.ds .ds-xk{ margin: 20px 0 0; scroll-margin-top: 12px; }
.bc.ds .ds-xk [hidden]{ display: none !important; }

/* ── 時刻表 ── */
.bc.ds .ds-xk-board{ background: var(--xk-night); color: var(--xk-paper); border-radius: var(--bc-radius-card); padding: 12px 14px 14px; border-top: 3px solid var(--xk-kin); }
.bc.ds .ds-xk-board h2, .bc.ds .ds-xk-board__t{ margin: 0; padding: 0; border: 0; font-size: 1.125rem; line-height: 1.4; color: var(--xk-kin); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; }

.bc.ds .ds-xk-now{ font-size: .8125rem; font-weight: 400; color: var(--xk-soft); }
.bc.ds .ds-xk-rows{ list-style: none; margin: 8px 0 0; padding: 0; border-top: 1px solid rgba(229,195,114,.35); }
.bc.ds .ds-xk-rows li{ margin: 0; padding: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.bc.ds .ds-xk-rows a{ display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; min-height: 56px; padding: 6px 0; color: var(--xk-paper); text-decoration: none; }
.bc.ds .ds-xk-rows a:hover b{ text-decoration: underline; }
.bc.ds .ds-xk-th{ display: block; width: 48px; height: 48px; border-radius: 4px; overflow: hidden; background: rgba(255,255,255,.1); }
.bc.ds .ds-xk-th img{ display: block; width: 100%; height: 100%; object-fit: cover; margin: 0; }
.bc.ds .ds-xk-th--word{ display: flex; align-items: center; justify-content: center; border: 1px solid rgba(229,195,114,.5); }
.bc.ds .ds-xk-th--word span{ font-size: .75rem; color: var(--xk-kin); }
.bc.ds .ds-xk-bd{ display: flex; align-items: center; gap: 2px 4px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.bc.ds .ds-xk-bd .ds-xk-tag{ margin-left: 4px; }
.bc.ds .ds-xk-bd b{ font-size: 1.125rem; line-height: 1.2; color: var(--xk-kin); font-weight: 700; }
.bc.ds .ds-xk-bd small{ font-size: .75rem; color: var(--xk-soft); }
.bc.ds .ds-xk-bt{ display: block; line-height: 1.4; min-width: 0; }
.bc.ds .ds-xk-bt__t{ display: block; }
.bc.ds .ds-xk-bt b{ font-size: .9375rem; font-weight: 700; }
.bc.ds .ds-xk-bt small{ display: block; font-size: .8125rem; color: var(--xk-soft); }
.bc.ds .ds-xk-find{ margin-top: 10px; position: relative; }
.bc.ds .ds-xk-search{ display: flex; align-items: center; gap: 8px; background: var(--xk-paper); border-radius: var(--bc-radius-input); padding: 0 10px; min-height: 44px; }
.bc.ds .ds-xk-search svg{ width: 20px; height: 20px; flex: none; fill: none; stroke: var(--xk-night); stroke-width: 2; }
.bc.ds .ds-xk-search input{ flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 1rem; color: var(--xk-ink); background: transparent; min-height: 44px; }
.bc.ds .ds-xk-hits{ list-style: none; margin: 6px 0 0; padding: 0; background: var(--xk-paper); border-radius: var(--bc-radius-input); }
.bc.ds .ds-xk-hits li{ margin: 0; border-bottom: 1px solid var(--xk-line); }
.bc.ds .ds-xk-hits li:last-child{ border-bottom: 0; }
.bc.ds .ds-xk-hits a{ display: flex; justify-content: space-between; gap: 8px; min-height: 44px; align-items: center; padding: 4px 10px; color: var(--xk-ink); text-decoration: none; font-size: .9375rem; }
.bc.ds .ds-xk-hits a span:last-child{ color: var(--xk-soon); font-weight: 700; white-space: nowrap; }
.bc.ds .ds-xk-hits .ds-xk-nohit{ padding: 10px; color: var(--xk-sub); font-size: .875rem; }

/* 状態の札 */
.bc.ds .ds-xk-tag{ display: inline-block; font-size: .75rem; line-height: 1; font-weight: 700; padding: 4px 6px; border-radius: 3px; white-space: nowrap; }
.bc.ds .ds-xk-tag--soon{ background: var(--xk-soon); color: var(--xk-paper); }
.bc.ds .ds-xk-tag--open{ background: var(--xk-open-bg); color: var(--xk-open); }
.bc.ds .ds-xk-tag--before{ background: var(--xk-surface); color: var(--xk-sub); border: 1px solid var(--xk-line); }
.bc.ds .ds-xk-tag--pickup, .bc.ds .ds-xk-tag--market{ background: var(--xk-kin); color: var(--xk-night); }
.bc.ds .ds-xk-tag--closed{ background: var(--xk-closed-bg); color: var(--xk-sub); }
.bc.ds .ds-xk-board .ds-xk-tag--open{ background: rgba(255,255,255,.14); color: var(--xk-open-bg); }
.bc.ds .ds-xk-tag--on{ position: absolute; left: 6px; top: 6px; font-size: .8125rem; padding: 5px 7px; }

/* ── 札の格子（写真が札の頭・幅いっぱい 3:2） ── */
.bc.ds .ds-xk-grid{ list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.bc.ds .ds-xk-stop{ margin: 0; padding: 0; min-width: 0; scroll-margin-top: 12px; }
.bc.ds .ds-xk-stop:has(details[open]){ grid-column: 1 / -1; }
.bc.ds .ds-xk-card{ height: 100%; display: flex; flex-direction: column; border: 1px solid var(--xk-line); border-radius: var(--bc-radius-card); background: var(--xk-paper); overflow: hidden; }
.bc.ds .ds-xk-stop--soon .ds-xk-card{ border-color: var(--xk-soon); }
.bc.ds .ds-xk-media{ min-width: 0; }
.bc.ds .ds-xk-media{ position: relative; }
.bc.ds .ds-xk-ph{ position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--xk-surface); }
.bc.ds .ds-xk-stop:has(details[open]) .ds-xk-card{ display: grid; grid-template-columns: minmax(0, 300px) 1fr; }
.bc.ds .ds-xk-ph img{ display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; margin: 0; }
.bc.ds .ds-xk-ph--wide{ background: var(--xk-night); }
.bc.ds .ds-xk-ph--wide img{ object-fit: contain; }
/* 出どころ: 写真の下端の外（写真と札の頭の間）に 12px の 1 行。写真の中の字に重ねない */
.bc.ds .ds-xk-credit{ display: block; padding: 3px 8px 0; font-size: .75rem; line-height: 1.4; color: var(--xk-sub); }
.bc.ds .ds-xk-plate{ position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: 10px; text-align: center; border-bottom: 1px solid var(--xk-line); }
.bc.ds .ds-xk-plate b{ font-size: 1.125rem; line-height: 1.35; color: var(--xk-ink); }
.bc.ds .ds-xk-plate--long b{ font-size: 1rem; }
.bc.ds .ds-xk-plate i{ font-style: normal; font-size: .8125rem; color: var(--xk-kin-ink); border-top: 1px solid var(--xk-kin); padding-top: 2px; }
.bc.ds .ds-xk-ph--night{ background: var(--xk-night); display: flex; align-items: center; justify-content: center; }
.bc.ds .ds-xk-mk{ color: var(--xk-kin); display: flex; align-items: baseline; gap: 2px; }
.bc.ds .ds-xk-mk b{ font-size: 3rem; line-height: 1; }
.bc.ds .ds-xk-mk i{ font-style: normal; color: var(--xk-paper); font-size: .9375rem; }
.bc.ds .ds-xk-body{ padding: 8px 12px 10px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.bc.ds .ds-xk-when{ margin: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 4px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.bc.ds .ds-xk-k{ font-size: .75rem; font-weight: 700; color: var(--xk-sub); margin-right: 6px; }
.bc.ds .ds-xk-big{ font-size: 1.25rem; font-weight: 700; color: var(--xk-ink); letter-spacing: -.01em; }
.bc.ds .ds-xk-to{ font-size: .75rem; margin: 0 1px; font-weight: 400; }
.bc.ds .ds-xk-wd{ font-size: .8125rem; color: var(--xk-sub); }
.bc.ds .ds-xk-stop--soon .ds-xk-big{ color: var(--xk-soon); }
.bc.ds .ds-xk-name{ margin: 4px 0 0; padding: 0; border: 0; font-size: 1.1875rem; line-height: 1.4; font-weight: 700; }

.bc.ds .ds-xk-info{ margin-top: 4px; }
.bc.ds .ds-xk-li{ margin: 2px 0 0; font-size: .8125rem; line-height: 1.55; color: var(--xk-sub); }
.bc.ds .ds-xk-li:first-child{ color: var(--xk-ink); }
.bc.ds .ds-xk-acts{ display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.bc.ds .ds-xk-btn{ display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; padding: 0 12px; font: inherit; font-size: .875rem; font-weight: 700; border-radius: var(--bc-radius-input); border: 1px solid var(--xk-line); background: var(--xk-paper); color: var(--xk-ink); text-decoration: none; cursor: pointer; list-style: none; }
.bc.ds .ds-xk-btn::-webkit-details-marker{ display: none; }
.bc.ds .ds-xk-btn--go{ background: var(--bc-brand); border-color: var(--bc-brand); color: var(--xk-paper); }
.bc.ds .ds-xk-btn--text{ border-color: transparent; color: var(--bc-brand); text-decoration: underline; padding: 0 6px; }
.bc.ds .ds-xk-btn--sm{ font-size: .8125rem; font-weight: 400; padding: 0 10px; }
.bc.ds .ds-xk-more{ flex: 0 0 auto; min-width: 0; }
.bc.ds .ds-xk-more[open]{ flex: 1 1 100%; }
.bc.ds .ds-xk-more[open] > summary{ background: var(--xk-surface); }
.bc.ds .ds-xk-cal{ display: inline-flex; flex-wrap: wrap; gap: 6px; }
.bc.ds .ds-xk-main-cal{ display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px; margin: 8px 0 4px; }
.bc.ds .ds-xk-pick{ display: block; }
.bc.ds .ds-xk-pick span{ display: block; font-size: .8125rem; color: var(--xk-sub); }
.bc.ds .ds-xk-pick select{ min-height: 44px; font: inherit; font-size: .875rem; border: 1px solid var(--xk-line); border-radius: var(--bc-radius-input); background: var(--xk-paper); padding: 0 4px; color: var(--xk-ink); max-width: 100%; }
.bc.ds .ds-xk-panel{ list-style: none; margin: 6px 0 2px; padding: 0; border-top: 1px solid var(--xk-line); }
.bc.ds .ds-xk-panel li{ display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; padding: 6px 0; border-bottom: 1px solid var(--xk-line); font-size: .875rem; line-height: 1.5; }
.bc.ds .ds-xk-panel li .ds-xk-cal{ flex: 1 1 100%; }
.bc.ds .ds-xk-pd{ font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bc.ds .ds-xk-pw{ flex: 1 1 8rem; min-width: 0; }
.bc.ds .ds-xk-panel li.ds-xk-pq{ display: block; color: var(--xk-sub); font-size: .8125rem; }
.bc.ds .ds-xk-pq a{ display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; margin-left: 6px; }

.bc.ds .ds-xk-unfold{ display: flex; align-items: center; justify-content: center; list-style: none; min-height: 48px; margin: 14px 0 0; font: inherit; font-size: 1rem; font-weight: 700; color: var(--xk-paper); background: var(--xk-night); border: 0; border-radius: var(--bc-radius-input); cursor: pointer; }
.bc.ds .ds-xk-unfold::-webkit-details-marker{ display: none; }
.bc.ds .ds-xk-restbox[open] > .ds-xk-unfold{ background: var(--xk-surface); color: var(--xk-night); border: 1px solid var(--xk-line); }
.bc.ds .ds-xk-rest{ margin-top: 16px; }
.bc.ds .ds-xk-filter{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.bc.ds .ds-xk-sel{ display: block; min-width: 0; }
.bc.ds .ds-xk-sel span{ display: block; font-size: .8125rem; color: var(--xk-sub); line-height: 1.5; }
.bc.ds .ds-xk-sel select{ width: 100%; min-height: 44px; font: inherit; font-size: .9375rem; border: 1px solid var(--xk-line); border-radius: var(--bc-radius-input); background: var(--xk-paper); padding: 0 6px; color: var(--xk-ink); }
.bc.ds .ds-xk-status{ margin: 8px 0 0; font-size: .875rem; color: var(--xk-sub); line-height: 1.6; }
.bc.ds .ds-xk-closed{ margin: 16px 0 0; border-top: 1px solid var(--xk-line); }
.bc.ds .ds-xk-closed > summary{ cursor: pointer; min-height: 44px; display: flex; align-items: center; font-weight: 700; color: var(--xk-sub); }
.bc.ds .ds-xk-grid--closed .ds-xk-card{ opacity: .85; }
.bc.ds .ds-xk-empty{ margin: 12px 0; padding: 12px; background: var(--xk-surface); border-radius: var(--bc-radius-card); font-size: .9375rem; }
.bc.ds .ds-xk-source{ margin: 14px 0 0; font-size: .8125rem; line-height: 1.7; color: var(--xk-sub); }
.bc.ds .ds-xk-source p{ margin: 0; }
.bc.ds .ds-xk-source__links{ display: flex; flex-wrap: wrap; gap: 4px 12px; }
.bc.ds .ds-xk-cakelink{ margin: 8px 0 0; }

/* PC の右カラムの頭 */

@media (max-width: 768px){
  .bc.ds .ds-xk{ margin-top: 10px; }
  .bc.ds .ds-xk-board{ padding: 10px 12px 12px; }
  .bc.ds .ds-xk-rows a{ gap: 0 10px; padding: 5px 0; }
  /* SP: 頭の 4 枚は横に並べて指で送る（4 枚だけ・自動では動かない）。すべて見るの中は 1 列で写真を幅いっぱいに */
  .bc.ds #xk-line{ grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; overscroll-behavior-x: contain; }
  .bc.ds #xk-line > .ds-xk-stop{ scroll-snap-align: start; }
  .bc.ds #xk-line .ds-xk-li:nth-child(n+2){ display: none; }
  .bc.ds .ds-xk-grid--closed#xk-line{ grid-auto-flow: row; grid-template-columns: 1fr; overflow: visible; }
  .bc.ds .ds-xk-grid--closed#xk-line .ds-xk-li:nth-child(n+2){ display: block; }
  .bc.ds .ds-xk-unfold{ margin-top: 6px; }
  .bc.ds .ds-xk-grid{ margin-top: 12px; }
  .bc.ds #xk-line > .ds-xk-stop:has(details[open]){ grid-column: auto; }
  .bc.ds .ds-xk-rest .ds-xk-grid{ grid-template-columns: 1fr; gap: 14px; }
  .bc.ds .ds-xk-body{ padding: 6px 8px 8px; }
  .bc.ds .ds-xk-big{ font-size: 1.0625rem; }
  .bc.ds .ds-xk-wd{ font-size: .75rem; }
  .bc.ds .ds-xk-name{ font-size: 1.125rem; line-height: 1.3; }
  .bc.ds .ds-xk-plate b{ font-size: .9375rem; }
  .bc.ds .ds-xk-plate--long b{ font-size: .8125rem; }
  .bc.ds .ds-xk-btn{ padding: 0 8px; font-size: .8125rem; }
  .bc.ds .ds-xk-acts{ gap: 4px; }
  .bc.ds .ds-xk-btn--text{ padding: 0 4px; }
  .bc.ds .ds-xk-more > summary{ padding: 0 6px; }
  .bc.ds .ds-xk-stop:has(details[open]) .ds-xk-card{ display: flex; }
  .bc.ds .ds-xk-mk b{ font-size: 2.25rem; }
  .bc.ds .ds-xk-tag--on{ font-size: .75rem; }
}
@media (prefers-reduced-motion: no-preference){ .bc.ds .ds-xk-stop{ transition: opacity .15s; } }
