/* 試験版サイト（/beta/）のスタイル。2026-11-12 作成
   色は :root の変数で定義し、暗い画面用は下で上書きする（端末の設定に追従。ボタンで手動切り替えも可）。 */
:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #eef0f3;
  --text: #16181d;
  --muted: #5d6675;
  --line: #dfe3e8;
  --rule: #9aa3b2;
  --accent: #ffc21a;
  --accent-ink: #1a1400;
  --link: #1f5fd1;
  --fav: #e8a400;
  --oshi: #e0458b;
  --ok: #2f80ed;
  --low: #f08a00;
  --full: #e03a3a;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --top-h: 52px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d0e11; --surface: #17191e; --surface-2: #20232a; --text: #eceef2; --muted: #9aa3b2; --line: #2a2e37; --rule: #596273;
    --accent: #ffc933; --accent-ink: #1a1400; --link: #8ab4ff; --fav: #ffc933; --oshi: #ff7ab4;
    --ok: #5aa0ff; --low: #ffab3d; --full: #ff6b6b; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d0e11; --surface: #17191e; --surface-2: #20232a; --text: #eceef2; --muted: #9aa3b2; --line: #2a2e37; --rule: #596273;
  --accent: #ffc933; --accent-ink: #1a1400; --link: #8ab4ff; --fav: #ffc933; --oshi: #ff7ab4;
  --ok: #5aa0ff; --low: #ffab3d; --full: #ff6b6b; --shadow: none; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, p, ul, ol, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.ic { flex: none; }

/* ---------- ヘッダー ---------- */
.top {
  position: sticky; top: 0; z-index: 30; height: var(--top-h);
  display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 700; min-width: 0; }
.brand:hover { text-decoration: none; }
.brand img { border-radius: 6px; }
.brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-beta { font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); white-space: nowrap; }
.top-nav { display: flex; gap: 4px; margin-left: auto; }
.top-nav a { padding: 6px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 14px; white-space: nowrap; }
.top-nav a[aria-current] { color: var(--text); background: var(--surface-2); }
.top-nav a:hover { text-decoration: none; color: var(--text); }
.top-tools { display: flex; gap: 2px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text); position: relative;
}
.icon-btn:hover { background: var(--surface-2); text-decoration: none; }
.avatar { border-radius: 50%; display: block; }
@media (max-width: 520px) {
  .brand-name { display: none; }
  .brand { flex: none; gap: 6px; }
  .top { gap: 4px; padding: 0 8px; }
  .top-nav { gap: 0; }
  .top-nav a { padding: 6px 8px; font-size: 13px; }
  .icon-btn { width: 36px; }
}

/* ---------- 日付 ---------- */
.datebar { padding: 10px 12px 0; }
.datebar-head { display: flex; align-items: center; gap: 4px; }
.date-title { font-size: 18px; font-weight: 700; white-space: nowrap; padding: 0 4px; }
.date-title small { font-size: 14px; font-weight: 600; color: var(--muted); }
.datebar-space { flex: 1; }
.date-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap;
}
.chip-btn:hover { background: var(--surface-2); text-decoration: none; }
.badge { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; line-height: 18px; text-align: center; }
.strip { display: flex; gap: 4px; margin-top: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.strip::-webkit-scrollbar { display: none; }
.strip li { flex: 1 0 44px; }
.day {
  display: flex; flex-direction: column; align-items: center; padding: 5px 0 6px; border-radius: 10px;
  color: var(--text); line-height: 1.2; border: 1px solid transparent;
}
.day:hover { background: var(--surface-2); text-decoration: none; }
.day-w { font-size: 11px; color: var(--muted); }
.day-n { font-size: 16px; font-weight: 700; }
.day-sat .day-w, .day-sat .day-n { color: var(--ok); }
.day-sun .day-w, .day-sun .day-n { color: var(--full); }
.day.is-today { border-color: var(--line); }
.day[aria-current] { background: var(--accent); }
.day[aria-current] .day-w, .day[aria-current] .day-n { color: var(--accent-ink); }

/* ---------- 絞り込み ---------- */
.tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 12px; }
.search-box {
  flex: 1 1 200px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted);
}
.search-box:focus-within { border-color: var(--link); }
.search-box input { flex: 1; min-width: 0; border: 0; background: transparent; outline: 0; color: var(--text); font-size: 16px; }
.filters { flex-basis: 100%; display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.filters fieldset { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.filters legend { float: left; width: 3.2em; font-size: 13px; font-weight: 700; color: var(--muted); padding-top: 6px; }
.chip { display: inline-flex; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.chip input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }
.link-btn { border: 0; background: none; color: var(--link); padding: 4px 0; font-size: 13px; justify-self: start; }
.link-btn:hover { text-decoration: underline; }

/* ---------- スタジオのタブ（スマホ） ---------- */
.tabs {
  position: sticky; top: var(--top-h); z-index: 20; display: flex; gap: 6px; padding: 8px 12px; overflow-x: auto; scrollbar-width: none;
  background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.tab[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.tab-n { font-size: 11px; font-weight: 600; opacity: .75; }
.tab.is-empty:not([aria-current]) { opacity: .45; }

/* ---------- スタジオごとの列 ---------- */
.cols { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; align-items: flex-start; }
.cols::-webkit-scrollbar { display: none; }
.col { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 10px 12px 24px; min-width: 0; }
.col-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 16px; font-weight: 800; letter-spacing: .02em; padding: 2px 2px 8px; }
.col-head a { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; }
.col-head a .ic { width: 14px; height: 14px; }
.cards { display: grid; gap: 8px; }
.empty { color: var(--muted); font-size: 14px; padding: 16px 4px; }
.past-toggle { margin: 0 0 8px 2px; }

/* ---------- レッスンカード ---------- */
.card {
  position: relative; display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; --tag: transparent;
}
.card::before { content: ""; flex: none; width: 4px; background: var(--tag); }
.card-main { flex: 1; min-width: 0; display: flex; gap: 10px; padding: 9px 4px 9px 10px; border: 0; background: none; text-align: left; align-items: flex-start; }
.card-main:hover { background: color-mix(in srgb, var(--surface-2) 60%, transparent); }
.card-time { flex: none; width: 46px; font-weight: 800; font-size: 15px; line-height: 1.25; font-variant-numeric: tabular-nums; }
.card-time small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }
.card-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.card-perf { font-weight: 800; font-size: 16px; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.card-studio { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; }
.oshi-mark { font-size: 10px; font-weight: 800; padding: 0 6px; border-radius: 999px; background: var(--oshi); color: #fff; line-height: 16px; }
.card-prog { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); min-width: 0; }
.prog-name { overflow-wrap: anywhere; }
.chg { flex: none; font-size: 10px; font-weight: 700; padding: 0 5px; border-radius: 4px; border: 1px solid var(--low); color: var(--low); line-height: 15px; }
.card-msg { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 3px; }
.lv { display: inline-flex; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); }
.lv b { font-weight: 700; margin-right: 2px; }
.lv i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.lv i.on { background: var(--text); }
.lv-est i.on { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); }
.lv-na { color: var(--muted); }
.cap { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; }
.cap-bar { width: 44px; height: 5px; border-radius: 3px; background: var(--line); overflow: hidden; display: block; }
.cap-bar span { display: block; height: 100%; border-radius: 3px; background: var(--ok); }
.cap-low .cap-bar span { background: var(--low); } .cap-low { color: var(--low); }
.cap-full .cap-bar span { background: var(--full); } .cap-full { color: var(--full); }
.fav { flex: none; width: 44px; border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.fav:hover { color: var(--fav); }
.fav[aria-pressed="true"] { color: var(--fav); }
.fav[aria-pressed="true"] .ic { fill: currentColor; }
.card.is-past { opacity: .5; }
.card.is-oshi { border-color: var(--oshi); background: color-mix(in srgb, var(--oshi) 7%, var(--surface)); }
.card.is-fav { border-color: var(--fav); }
.card-closed { padding: 8px 12px; gap: 10px; align-items: center; color: var(--muted); box-shadow: none; background: transparent; border-style: dashed; }
.card-closed::before { display: none; }
.card-closed-label { font-size: 13px; font-weight: 700; }

.card-gap { display: none; }
/* プログラムの色分け（本番の分類と同じ。色は左の帯で示す） */
.tag-beginner, .tag-lite_program { --tag: #6fcf2a; --tagc: #6fcf2a; }
.tag-hard { --tag: #d42a2a; --tagc: #d42a2a; }
.tag-event1 { --tag: #eecc22; --tagc: #eecc22; } .tag-event2 { --tag: #c23ca9; --tagc: #c23ca9; } .tag-event3 { --tag: #f07212; --tagc: #f07212; } .tag-event4 { --tag: #06c9a0; --tagc: #06c9a0; }
.tag-event5 { --tag: #ed163e; --tagc: #ed163e; } .tag-event6 { --tag: #8d8a8a; --tagc: #8d8a8a; } .tag-event7 { --tag: #c77fcb; --tagc: #c77fcb; } .tag-event8 { --tag: #d25fd8; --tagc: #d25fd8; }
.tag-event9 { --tag: linear-gradient(#ff0000, #ff7700, #e6d600, #00b300, #2a52ff, #8b00ff); --tagc: #a24bff; }
.tag-event10 { --tag: #1207ae; --tagc: #1207ae; } .tag-event11 { --tag: #4a40d6; --tagc: #4a40d6; } .tag-event12 { --tag: #2eb9ff; --tagc: #2eb9ff; } .tag-event13 { --tag: #5a6577; --tagc: #5a6577; }
.tag-event14 { --tag: #ea8cb8; --tagc: #ea8cb8; } .tag-event15 { --tag: #ae93ed; --tagc: #ae93ed; } .tag-event16 { --tag: #ffc32c; --tagc: #ffc32c; } .tag-event17 { --tag: #ebbbde; --tagc: #ebbbde; }
.tag-event18 { --tag: #e05a2b; --tagc: #e05a2b; } .tag-event19 { --tag: #24a36b; --tagc: #24a36b; } .tag-event20 { --tag: #7a5cff; --tagc: #7a5cff; }
.tag-halloween { --tag: #ff7a00; --tagc: #ff7a00; } .tag-xmas { --tag: #1f9d55; --tagc: #1f9d55; } .tag-secret { --tag: #77716a; --tagc: #77716a; }

/* ---------- 詳細（下から出るシート） ---------- */
.sheet {
  border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 88dvh;
  border-radius: 18px 18px 0 0; background: var(--surface); color: var(--text); box-shadow: 0 -8px 40px rgba(0, 0, 0, .25);
}
.sheet::backdrop { background: rgba(0, 0, 0, .45); }
.sheet-in { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; }
.sheet-top { display: flex; align-items: flex-start; gap: 8px; }
.sheet-title { flex: 1; min-width: 0; }
.sheet-title h2 { font-size: 20px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.sheet-sub { color: var(--muted); font-size: 14px; }
.sheet-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; }
.sheet-meta .lv { font-size: 13px; } .sheet-meta .lv i { width: 8px; height: 8px; }
.sheet-note { font-size: 12px; color: var(--muted); }
.sheet-desc { font-size: 14px; line-height: 1.75; background: var(--surface-2); border-radius: 12px; padding: 12px; }
.sheet-desc small { display: block; margin-top: 6px; color: var(--muted); font-size: 12px; }
.sheet-cta { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 15px;
}
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(.96); }
.btn[aria-pressed="true"] { border-color: var(--fav); color: var(--fav); }
.btn[aria-pressed="true"] .ic { fill: currentColor; }
.sheet-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.sheet-links .btn { min-height: 42px; font-size: 14px; font-weight: 600; }
@media (min-width: 620px) {
  .sheet { margin: auto; border-radius: 18px; }
}

.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); z-index: 60;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.foot { padding: 20px 12px 32px; text-align: center; font-size: 13px; color: var(--muted); display: grid; gap: 4px; }
.foot-note { font-size: 12px; }
#page.is-loading .cols { opacity: .45; transition: opacity .15s .1s; }

/* ---------- パフォーマー検索 ---------- */
.wrap { max-width: 860px; margin: 0 auto; padding: 14px 12px 8px; display: grid; gap: 14px; }
.page-title { font-size: 20px; font-weight: 800; }
.perf-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; }
.perf-list a { display: block; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 14px; overflow-wrap: anywhere; }
.perf-list a:hover { background: var(--surface-2); text-decoration: none; }
.perf-list a small { display: block; font-weight: 500; font-size: 11px; color: var(--muted); }
.perf-list a.is-oshi { border-color: var(--oshi); }
.group-title { font-size: 13px; font-weight: 800; color: var(--muted); padding: 6px 2px 0; }
.day-group { display: grid; gap: 8px; }
.day-group h2 { font-size: 15px; font-weight: 800; padding: 6px 2px 0; display: flex; align-items: baseline; gap: 8px; }
.day-group h2 a { font-size: 12px; font-weight: 600; }
.perf-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.perf-head h1 { font-size: 24px; font-weight: 800; }
.perf-head .btn { min-height: 36px; font-size: 13px; padding: 0 12px; }
.stat { color: var(--muted); font-size: 13px; }

/* ---------- PC（横に並べて表示） ---------- */
@media (min-width: 900px) {
  body { height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
  #page[data-page="schedule"] { flex: 1; min-height: 0; display: flex; flex-direction: column; }
  body:has(#page[data-page="search"]) { height: auto; overflow: auto; display: block; }
  .datebar { padding: 10px 16px 0; display: flex; align-items: center; gap: 16px; }
  .datebar-head { flex: none; }
  .datebar-space { display: none; }
  .strip { flex: 1; margin-top: 0; }
  .strip li { flex: 1 0 40px; max-width: 64px; }
  .tools { padding: 10px 16px; }
  .search-box { flex: 0 1 340px; }
  .tabs { display: none; }
  .cols { flex: 1; min-height: 0; overflow: auto; scroll-snap-type: none; scrollbar-width: thin; padding: 0 8px; align-items: stretch; border-top: 1px solid var(--line); }
  .cols::-webkit-scrollbar { display: block; width: 10px; height: 10px; }
  .cols::-webkit-scrollbar-thumb { background: var(--line); border-radius: 5px; }
  .col { flex: 0 0 196px; padding: 0 5px 24px; height: max-content; }
  .col-head { font-size: 14px; white-space: nowrap; }
  .col-head > span { overflow: hidden; text-overflow: ellipsis; }
  .col-head a { font-size: 11px; flex: none; }
  .col .past-toggle { display: none; }
  .cards { gap: 6px; }
  /* カードは幅を狭く・高さを固定にして、スタジオ間で段がずれないようにする */
  .card, .card-gap { height: 92px; border-radius: 10px; }
  .card-gap { display: block; border: 1px dashed var(--line); opacity: .55; }
  .card-main { flex-direction: column; gap: 1px; padding: 7px 8px 9px 8px; }
  .card-time { width: auto; font-size: 13px; line-height: 1.3; }
  .card-time small { display: inline; font-size: 11px; }
  .card-body { width: 100%; gap: 0; }
  .card-perf { font-size: 15px; flex-wrap: nowrap; padding-right: 18px; }
  .card-perf, .card-prog .prog-name, .card-msg { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .card-prog { font-size: 13px; }
  .card-msg { display: none; }
  .card-meta { gap: 2px 8px; margin-top: 2px; flex-wrap: nowrap; }
  .lv { font-size: 10px; } .lv i { width: 5px; height: 5px; }
  .fav { position: absolute; top: 0; right: 0; width: 32px; height: 32px; }
  .fav .ic { width: 17px; height: 17px; }
  .cap { position: absolute; left: 4px; right: 0; bottom: 0; }
  .cap-bar { width: 100%; height: 4px; border-radius: 0; }
  .cap-bar span { border-radius: 0; }
  .cap-label { position: absolute; right: 6px; bottom: 9px; font-size: 10px; line-height: 15px; padding: 0 5px; border-radius: 4px; background: var(--surface); border: 1px solid currentColor; }
  .card-closed { justify-content: center; }
  .card.is-dim { opacity: .2; }
  .card.is-dim.is-past { opacity: .12; }
  .col-head { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 10px 2px 8px; }
  .foot { display: none; }
}

.prod-link { display: none; font-size: 13px; margin-left: auto; }
@media (min-width: 900px) { .prod-link { display: inline; } }

/* ---------- 今のサイトから取り込む画面（プログラム詳細・写真・マイページ） ---------- */
.embed { padding-bottom: 8px; }
body:has(#page[data-page="embed"]) { height: auto; overflow: auto; display: block; }
body:has(#page[data-page="embed"]) .foot { display: grid; }
.embed img { max-width: 100%; height: auto; }
.embed a { color: var(--link); }
.embed-photo { max-width: 720px; margin: 0 auto; padding: 12px; text-align: center; }
.embed-photo select, .embed-photo input, .embed-photo textarea, .embed-photo button {
  font-size: 16px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); max-width: 100%;
}
.embed-photo hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.embed-photo .photo_area { display: grid; gap: 16px; justify-items: center; }
.embed-photo .photo_area img { width: auto; max-width: min(100%, 400px); }
.embed-mypage { margin: 0 auto; }
/* 暗い画面のとき、取り込んだページのグラフ・カードの色を合わせる */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pd-wrap {
    --pd-c1: #5aa0ff; --pd-c1-light: #2f5fa8; --pd-other: #6b6f78; --pd-ink: #eceef2; --pd-ink2: #c3c8d2; --pd-muted: #9aa3b2;
    --pd-grid: #2a2e37; --pd-base: #3a3f4a; --pd-track: #20232a; --pd-up-ink: #5fd38a; --pd-down-ink: #ff7b7b;
  }
}
:root[data-theme="dark"] .pd-wrap {
  --pd-c1: #5aa0ff; --pd-c1-light: #2f5fa8; --pd-other: #6b6f78; --pd-ink: #eceef2; --pd-ink2: #c3c8d2; --pd-muted: #9aa3b2;
  --pd-grid: #2a2e37; --pd-base: #3a3f4a; --pd-track: #20232a; --pd-up-ink: #5fd38a; --pd-down-ink: #ff7b7b;
}

.past-all { display: none; }
@media (min-width: 900px) { .past-all { display: inline-flex; } }

/* ---------- パフォーマーの14日間（表形式：横に日付、縦に枠） ---------- */
.cols-days { scroll-snap-type: none; overflow-x: auto; padding: 0 8px 8px; align-items: flex-start; scrollbar-width: thin; }
.cols-days .col { flex: 1 0 150px; max-width: 220px; padding: 0 3px 8px; scroll-snap-align: none; height: auto; }
.cols-days .col.is-empty { flex: 0 0 52px; }
.cols-days .col-head { position: static; display: block; padding: 4px 0 6px; background: none; font-size: 13px; }
.cols-days .day-head { display: flex; flex-direction: column; align-items: center; line-height: 1.25; color: var(--text); font-size: 13px; gap: 0; }
.cols-days .day-head .day-n { font-size: 15px; font-weight: 800; }
.cols-days .day-head .day-w { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.cols-days .day-sat .day-n, .cols-days .day-sat .day-w { color: var(--ok); }
.cols-days .day-sun .day-n, .cols-days .day-sun .day-w { color: var(--full); }
.cols-days .cards { gap: 6px; }
.cols-days .card, .cols-days .card-gap { height: 92px; border-radius: 10px; }
.cols-days .card-gap { display: block; border: 1px dashed var(--line); opacity: .45; }
.cols-days .is-empty .card-gap { border-style: dotted; opacity: .3; }
.cols-days .card-main { flex-direction: column; gap: 1px; padding: 7px 8px 9px 8px; }
.cols-days .card-time { width: auto; font-size: 13px; line-height: 1.3; }
.cols-days .card-time small { display: inline; font-size: 11px; }
.cols-days .card-body { width: 100%; gap: 0; }
.cols-days .card-perf { font-size: 14px; flex-wrap: nowrap; padding-right: 18px; }
.cols-days .card-perf, .cols-days .card-prog .prog-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cols-days .card-prog { font-size: 13px; }
.cols-days .card-msg { display: none; }
.cols-days .card-meta { gap: 2px 8px; margin-top: 2px; flex-wrap: nowrap; }
.cols-days .lv { font-size: 10px; } .cols-days .lv i { width: 5px; height: 5px; }
.cols-days .fav { position: absolute; top: 0; right: 0; width: 32px; height: 32px; }
.cols-days .fav .ic { width: 17px; height: 17px; }
.cols-days .cap { position: absolute; left: 4px; right: 0; bottom: 0; }
.cols-days .cap-bar { width: 100%; height: 4px; border-radius: 0; }
.cols-days .cap-bar span { border-radius: 0; }
.cols-days .cap-label { position: absolute; right: 6px; bottom: 9px; font-size: 10px; line-height: 15px; padding: 0 5px; border-radius: 4px; background: var(--surface); border: 1px solid currentColor; }
@media (min-width: 900px) {
  .cols-days { flex: none; border-top: 0; overflow-y: visible; max-width: 1500px; margin: 0 auto; }
}

/* ---------- 罫線（パフォーマーの14日間） ---------- */
/* 列の縦線と段の横線で表のように区切り、その枠の中に丸みのあるカードを置く。
   段の高さは 100px（カード 92px ＋ 上下の余白 4px ずつ）。横線は .cards の背景で 100px ごとに引く。 */
.cols-days .col { padding-left: 0; padding-right: 0; border-right: 1px solid var(--line); }
.cols-days .col:first-child { border-left: 1px solid var(--line); }
.cols-days .col-head { padding-left: 8px; padding-right: 6px; border-bottom: 2px solid var(--rule); margin: 0; }
.cols-days .cards { display: flex; flex-direction: column; gap: 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 99px, var(--line) 99px, var(--line) 100px); }
.cols-days .card, .cols-days .card-gap { height: 92px; margin: 4px 5px; border-radius: 10px; }
.cols-days .card-gap { display: block; border: 0; background: transparent; opacity: 1; }

@media (min-width: 900px) {
  /* ---------- 罫線（PCのスケジュール） ---------- */
  /* 列の縦線と段の横線で表のように区切り、その枠の中に丸みのあるカードを置く。
     段の高さは 100px（カード 92px ＋ 上下の余白 4px ずつ）。横線は .cards の背景で 100px ごとに引く。 */
  #cols .col { padding-left: 0; padding-right: 0; border-right: 1px solid var(--line); }
  #cols .col:first-child { border-left: 1px solid var(--line); }
  #cols .col-head { padding-left: 8px; padding-right: 6px; border-bottom: 2px solid var(--rule); margin: 0; }
  #cols .cards { display: flex; flex-direction: column; gap: 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 99px, var(--line) 99px, var(--line) 100px); }
  #cols .card, #cols .card-gap { height: 92px; margin: 4px 5px; border-radius: 10px; }
  #cols .card-gap { display: block; border: 0; background: transparent; opacity: 1; }
  #cols { padding: 0 12px; }
  #cols .col { flex-basis: 196px; }
  #cols .col-head { padding-top: 10px; padding-bottom: 8px; }
}
.cols-days { padding: 0 12px 8px; }
.cols-days .col-head { padding: 4px 0 6px; }
.cols-days .col.is-empty .card-gap { margin-left: 0; margin-right: 0; }

/* 空き状況の確認時刻 */
.stamp { font-size: 12px; color: var(--muted); white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.stamp b { color: var(--text); font-variant-numeric: tabular-nums; }
.stamp-live { margin-left: 4px; padding: 0 6px; border-radius: 999px; border: 1px solid var(--line); font-size: 10px; line-height: 16px; display: inline-flex; align-items: center; gap: 4px; }
.stamp-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #2fb463; }
.stamp.is-stale .stamp-live::before { background: var(--low); }
.stamp.is-fresh b { animation: stampFlash 1.2s ease-out; }
@keyframes stampFlash { from { background: var(--accent); color: var(--accent-ink); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .stamp.is-fresh b { animation: none; } }

/* ---------- スマホのスケジュール：複数スタジオを横に並べた表（2026-11-12） ----------
   スタジオを横断して比べられるよう、1画面に 2〜4 スタジオを並べる（列数は利用者が選ぶ。既定は3）。
   スタジオ名の行（.tabs）を表の見出しとして使い、表を横に動かすと一緒に動く（beta.js の initTabs）。 */
.seg { display: none; align-items: center; gap: 2px; font-size: 12px; color: var(--muted); }
.seg span { margin-right: 4px; }
.seg button { width: 30px; height: 30px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 700; font-size: 13px; }
.seg button:first-of-type { border-radius: 8px 0 0 8px; } .seg button:last-of-type { border-radius: 0 8px 8px 0; }
.seg button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
.past-all { display: inline-flex; }
.col .past-toggle { display: none; }
@media (max-width: 899px) {
  :root { --mcols: 3; }
  :root[data-mcols="2"] { --mcols: 2; }
  :root[data-mcols="4"] { --mcols: 4; }
  #page[data-page="schedule"] { --colw: calc(100vw / var(--mcols)); }
  .seg { display: inline-flex; }
  .tools { gap: 6px 8px; padding-bottom: 8px; }
  .search-box { flex-basis: 100%; }

  /* 見出しの行（スタジオ名） */
  .tabs { gap: 0; padding: 0; border-bottom: 2px solid var(--rule); background: var(--bg); backdrop-filter: none; }
  .tab { flex: 0 0 var(--colw); height: 34px; padding: 0 3px; border: 0; border-right: 1px solid var(--line); border-radius: 0; background: transparent;
         color: var(--text); justify-content: center; gap: 4px; font-size: 12px; overflow: hidden; }
  .tab[aria-current] { background: transparent; color: var(--text); border-color: var(--line); }
  .tab.is-empty:not([aria-current]), .tab.is-empty { opacity: 1; color: var(--muted); }
  .tab-n { font-size: 10px; color: var(--muted); }
  :root[data-mcols="4"] .tab { font-size: 10.5px; letter-spacing: -.02em; } :root[data-mcols="4"] .tab-n { display: none; }

  /* 表の本体 */
  #cols { scroll-snap-type: x proximity; padding: 0; align-items: flex-start; }
  #cols .col { flex: 0 0 var(--colw); padding: 0 0 24px; border-right: 1px solid var(--line); scroll-snap-align: start; scroll-snap-stop: normal; }
  #cols .col-head { display: none; }
  #cols .cards { display: flex; flex-direction: column; gap: 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 99px, var(--line) 99px, var(--line) 100px); }
  #cols .card, #cols .card-gap { height: 92px; margin: 4px 3px; border-radius: 9px; }
  #cols .card-gap { display: block; border: 0; background: transparent; }
  #cols .card::before { width: 6px; }
  #cols .card-main { flex-direction: column; gap: 1px; padding: 6px 4px 9px 6px; }
  #cols .card-time { width: auto; font-size: 12.5px; line-height: 1.35; }
  #cols .card-time small { display: inline; font-size: 10px; }
  #cols .card-body { width: 100%; gap: 0; }
  #cols .card-perf { font-size: 14px; flex-wrap: nowrap; gap: 3px; }
  #cols .card-perf, #cols .card-prog .prog-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #cols .oshi-mark { font-size: 9px; padding: 0 4px; }
  #cols .card-prog { font-size: 12px; gap: 3px; }
  #cols .chg { font-size: 9px; padding: 0 3px; }
  #cols .card-msg { display: none; }
  #cols .card-meta { gap: 0 6px; margin-top: 2px; flex-wrap: nowrap; overflow: hidden; }
  #cols .lv { font-size: 9.5px; gap: 1.5px; } #cols .lv b { margin-right: 1px; } #cols .lv i { width: 4.5px; height: 4.5px; }
  #cols .fav { position: absolute; top: 0; right: 0; width: 28px; height: 28px; }
  #cols .fav .ic { width: 15px; height: 15px; }
  #cols .cap { position: absolute; left: 3px; right: 0; bottom: 0; }
  #cols .cap-bar { width: 100%; height: 4px; border-radius: 0; } #cols .cap-bar span { border-radius: 0; }
  /* 「満員」「残少」は時刻の右に小さく出す（そのカードでは終了時刻を省く） */
  #cols .cap-label { position: absolute; left: 50px; top: auto; right: auto; bottom: 66px; font-size: 0; line-height: 14px; padding: 0 3px; border-radius: 4px; background: var(--surface); border: 1px solid currentColor; }
  #cols .cap-full .cap-label::after { content: "満員"; font-size: 9.5px; }
  #cols .cap-low .cap-label::after { content: "残少"; font-size: 9.5px; }
  #cols .card:has(.cap-label) .card-time small { display: none; }
  #cols .card-closed { justify-content: center; padding: 4px; gap: 4px; flex-direction: column; }
  #cols .card.is-dim { opacity: .2; }
  :root[data-mcols="4"] #cols .card-time small { display: none; }
  :root[data-mcols="4"] #cols .card-perf { font-size: 13px; }
  :root[data-mcols="4"] #cols .card-main { padding-left: 4px; padding-right: 2px; }
  :root[data-mcols="4"] #cols .lv i { width: 4px; height: 4px; } :root[data-mcols="4"] #cols .card-meta { gap: 0 3px; }
  :root[data-mcols="4"] #cols .cap-label { left: 46px; padding: 0 2px; }
  :root[data-mcols="4"] #cols .fav { width: 22px; }
  :root[data-mcols="4"] #cols .lv b { margin-right: 0; } :root[data-mcols="4"] #cols .lv { gap: 1px; } :root[data-mcols="4"] #cols .lv i { width: 3.5px; height: 3.5px; }
  :root[data-mcols="2"] #cols .card-perf { font-size: 15px; } :root[data-mcols="2"] #cols .card-prog { font-size: 13px; }
  :root[data-mcols="2"] #cols .lv { font-size: 10.5px; } :root[data-mcols="2"] #cols .lv i { width: 5.5px; height: 5.5px; }
}

/* ---------- 詳細のボタンに付ける絵（ChatGPT で作成したアイコン） ---------- */
/* 紺色の絵柄が暗い画面で沈まないよう、明るい台紙の上に置く */
.btn-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #f1f3f6; }
.btn-ic img { display: block; width: 26px; height: 26px; }
.btn-primary .btn-ic { background: rgba(255, 255, 255, .7); }
.sheet-links .btn { justify-content: flex-start; padding: 0 10px 0 6px; gap: 8px; text-align: left; line-height: 1.25; min-height: 46px; }
.sheet-links .btn > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.sheet-cta .btn { gap: 8px; padding: 0 14px 0 8px; }
/* お気に入り：登録していないときは絵を灰色にする */
.btn-fav[aria-pressed="false"] .btn-ic img { filter: grayscale(1); opacity: .55; }
.btn-fav[aria-pressed="true"] { border-color: var(--fav); color: var(--text); }

/* ---------- プログラムの種類の色を分かりやすく（2026-11-12） ----------
   左の帯を太くし、カード全体をうっすら同じ色に染め、プログラム名にも色の下地を付ける。
   --tagc は染めるための単色（虹色の帯の種類は紫で代用）。 */
.card::before { width: 8px; }
.card[class*="tag-"] { background: color-mix(in srgb, var(--tagc) 10%, var(--surface)); }
.card[class*="tag-"] .prog-name { background: color-mix(in srgb, var(--tagc) 30%, var(--surface)); border-radius: 5px; padding: 0 5px; margin-left: -2px; font-weight: 600; }
.card[class*="tag-"] .card-main:hover { background: color-mix(in srgb, var(--tagc) 16%, var(--surface)); }
.cols-days .card::before { width: 7px; }
@media (min-width: 900px) { #cols .card::before { width: 7px; } }
@media (max-width: 899px) { #cols .card::before { width: 6px; } }

/* ---------- b-monster からのメッセージ（bmon_message。BtoB の出演者など）をカードに出す（2026-11-12） ----------
   カードの高さは変えられないので、メッセージがあるカードでは強度・難易度の点を省き、その行にメッセージを出す
   （強度・難易度は詳細で見られる）。 */
.card-msg { font-weight: 700; color: var(--text); }
#cols .card.has-msg .card-msg, .cols-days .card.has-msg .card-msg {
  display: block; font-size: 12px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px;
}
#cols .card.has-msg .lv, .cols-days .card.has-msg .lv { display: none; }

.btob-mark { font-size: 10px; font-weight: 800; padding: 0 5px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); line-height: 15px; }
.sheet-msg { font-size: 16px; font-weight: 800; margin-top: 2px; }
.sheet-msg::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: 1px; }
@media (max-width: 899px) { #cols .card.has-msg .card-msg { font-size: 11px; } }

/* ---------- パフォーマーの画面：表示する期間の移動 ---------- */
.range { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.range .chip-btn { height: 34px; padding: 0 10px; gap: 2px; font-size: 13px; }
.range .chip-btn .ic { width: 16px; height: 16px; }
.range .chip-btn.is-off { opacity: .35; pointer-events: none; }
.range-label { font-size: 14px; white-space: nowrap; }
/* すべて過去の期間では、カードを薄くしない（読みにくくなるため） */
.cols-days.is-history .card.is-past { opacity: 1; }

/* ---------- 長いメッセージは横に流して全部見せる（2026-11-12） ----------
   カードの高さは固定なので折り返さず、収まらないときだけ、ゆっくり左右に往復させる（beta.js の fitMessages）。
   動きを減らす設定の端末では流さず、末尾を「…」にする（全文は詳細で読める）。 */
#cols .card.has-msg .card-msg, .cols-days .card.has-msg .card-msg { display: flex; align-items: center; gap: 4px; overflow: hidden; min-width: 0; max-width: 100%; text-overflow: clip; }
.card.has-msg .card-msg::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.msg-clip { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.msg-in { display: inline-block; white-space: nowrap; }
.card-msg.is-long .msg-in { animation: msgSlide var(--dur, 8s) ease-in-out infinite alternate; }
.card-msg.is-long .msg-clip { -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 6px, #000 calc(100% - 6px), transparent 100%); }
@keyframes msgSlide { 0%, 18% { transform: translateX(0); } 82%, 100% { transform: translateX(var(--shift, 0)); } }
@media (prefers-reduced-motion: reduce) {
  .card-msg.is-long .msg-in { animation: none; display: block; overflow: hidden; text-overflow: ellipsis; }
  .card-msg.is-long .msg-clip { -webkit-mask-image: none; mask-image: none; }
}
.sheet-msg { overflow-wrap: anywhere; }

/* ---------- サイト名「PITCH BLACK」（2026-11-12） ---------- */
.brand-name { font-weight: 900; letter-spacing: .08em; font-size: 16px; }
.brand-tag { font-size: 11px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1099px) { .brand-tag { display: none; } }
@media (max-width: 520px) {
  .brand img { display: none; }               /* スマホは幅が足りないので、ロゴ画像の代わりにサイト名を出す */
  .brand-name { display: inline; font-size: 13.5px; letter-spacing: .04em; }
  .brand { flex: 0 1 auto; min-width: 0; }
  .brand-name { overflow: hidden; text-overflow: ellipsis; }
  .brand-beta { display: none; }               /* 幅が足りないので「試験版」の印は省く（ページ下部に書いてある） */
  .top-nav { flex: none; }
  .top-nav a { padding: 6px 5px; font-size: 12.5px; }
  .icon-btn { width: 34px; }
}
@media (max-width: 400px) {
  .top { gap: 2px; padding: 0 6px; }
  .brand-name { font-size: 13px; letter-spacing: 0; }
  .top-nav a { padding: 6px 4px; font-size: 12px; }
  .icon-btn { width: 30px; }
  .top-tools { gap: 0; }
}

/* ---------- 強調（パフォーマー・プログラム名の複数選択）（2026-11-12） ---------- */
.pick { align-items: center; }
.picked { display: contents; }
.picked-item { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px 5px 12px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.picked-item span { font-size: 14px; opacity: .7; }
.pick input { flex: 1 1 150px; min-width: 120px; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
.pick input:focus { outline: 0; border-color: var(--link); }
.filter-note { font-size: 12px; color: var(--muted); }
/* 条件に当たったカードは、黄色い枠で強調する */
.card.is-hit { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent), var(--shadow); }

/* ---------- 推しの色（マイページで選んだ色） ---------- */
:root[data-oshi="purple"] { --oshi: #9b6fe0; }
:root[data-oshi="blue"]   { --oshi: #3d94e6; }
:root[data-oshi="green"]  { --oshi: #3fae5a; }
:root[data-oshi="orange"] { --oshi: #f08a3c; }

/* ---------- デビュー記念日（ログイン中だけ） ---------- */
.anniv-mark { font-size: 10px; font-weight: 800; padding: 0 6px; border-radius: 999px; line-height: 16px; white-space: nowrap; color: #5a3d00;
  background: linear-gradient(110deg, #ffd65a 0%, #fff3c4 45%, #ffd65a 60%, #ffb92e 100%); background-size: 220% 100%; animation: annivShine 2.8s linear infinite; }
.card.is-anniv { border-color: #f3b93a; }
@keyframes annivShine { from { background-position: 120% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .anniv-mark { animation: none; } }
.sheet-anniv { font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 10px; color: #5a3d00; background: linear-gradient(110deg, #ffe38a, #fff3c4); }
#cols .card.is-anniv .card-perf { gap: 4px; }

/* ---------- 解説へのフィードバック ---------- */
.fb { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.fb-count, .fb-len { font-size: 12px; color: var(--muted); }
.fb-len { text-align: right; }
.fb-done { font-size: 13px; font-weight: 700; }
.fb-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.fb-btns .btn { min-height: 38px; font-size: 13px; padding: 0 14px; background: var(--surface); }
.fb-btns .btn-primary { background: var(--accent); }
.fb-form { display: grid; gap: 6px; }
.fb-form label { font-size: 13px; font-weight: 700; display: grid; gap: 6px; }
.fb-form textarea { width: 100%; font: inherit; font-size: 16px; font-weight: 400; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); resize: vertical; }
.pick input { max-width: 260px; }

/* ---------- プログラム詳細（取り込み）の「役に立った」「内容に齟齬あり」（2026-11-12） ----------
   今のサイトでは css/style.css が見た目を付けているが、試験版はそれを読み込まないので、
   ブラウザ標準のボタンになっていた。試験版のボタンと同じ見た目にそろえる。 */
.embed .pd-feedback { margin-top: 14px; padding: 12px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 10px; }
.embed .feedback-count { margin: 0; font-size: 13px; color: var(--muted); }
.embed .description-feedback, .embed .feedback-mismatch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.embed .feedback-btn {
  flex: 1 1 140px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; transition: background .15s, border-color .15s;
}
.embed .feedback-btn:hover { background: color-mix(in srgb, var(--text) 6%, var(--surface)); }
.embed .feedback-btn.feedback-helpful:hover { border-color: #2fb463; background: color-mix(in srgb, #2fb463 12%, var(--surface)); }
.embed .feedback-btn.feedback-mismatch:hover { border-color: var(--low); background: color-mix(in srgb, var(--low) 12%, var(--surface)); }
.embed .feedback-btn.feedback-submit { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.embed .feedback-btn.feedback-submit:hover { background: var(--accent); filter: brightness(.96); }
.embed .feedback-btn:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.embed .feedback-mismatch-form { margin: 0; text-align: left; }
.embed .feedback-comment-label { display: block; font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.embed .feedback-comment {
  width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; font-size: 16px; line-height: 1.5;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); resize: vertical;
}
.embed .feedback-comment:focus { outline: 0; border-color: var(--link); }
.embed .feedback-comment-counter { font-size: 12px; color: var(--muted); text-align: right; margin: 4px 0 8px; }
.embed .feedback-thanks { margin: 0; font-size: 14px; font-weight: 700; color: #2fb463; }

/* ---------- 案内のメニュー（使い方ガイド・はじめての方へ など）（2026-11-12） ---------- */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--surface-2); }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 50; min-width: 240px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); display: grid;
}
.menu-panel a, .menu-panel button {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 9px; border: 0; background: none;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600; text-align: left; white-space: nowrap; cursor: pointer;
}
.menu-panel a:hover, .menu-panel button:hover { background: var(--surface-2); text-decoration: none; }
.menu-panel a .ic { width: 14px; height: 14px; color: var(--muted); margin-left: auto; }
.menu-theme { display: none !important; border-top: 1px solid var(--line) !important; border-radius: 0 0 9px 9px !important; margin-top: 4px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; font-size: 13px; }
.foot-about { max-width: 720px; margin: 4px auto; font-size: 11.5px; line-height: 1.7; text-align: left; }
@media (max-width: 520px) {
  /* スマホは幅が足りないので、明暗の切り替えはメニューの中に入れる */
  #themeBtn { display: none; }
  .menu-theme { display: flex !important; }
}

/* ---------- 取り込み画面でも、書体・背景・リンクの色を試験版のものにそろえる（2026-11-12） ----------
   マイページ用のスタイル（mypage.css）が body の書体・背景・文字色と a の色を上書きしていたため。 */
html body {
  background: var(--bg); color: var(--text);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}
html body .top a, html body .foot a, html body .menu-panel a { color: var(--text); }
html body .foot a { color: var(--link); }
html body .top-nav a { color: var(--muted); }
html body .top-nav a[aria-current] { color: var(--text); }

/* ---------- スマホでもロゴマークを出す（2026-11-12） ---------- */
@media (max-width: 520px) {
  .brand img { display: block; width: 22px; height: 22px; }
  .brand { gap: 5px; }
}
@media (max-width: 400px) {
  .brand img { width: 20px; height: 20px; }
  .brand-name { font-size: 12.5px; }
  .top-nav a { padding: 6px 3px; font-size: 11.5px; }
  .icon-btn { width: 28px; }
}

/* ---------- Update・個人向けお知らせ ---------- */
.upd-list { display: grid; gap: 6px; max-height: 60dvh; overflow: auto; }
.upd-list a, .upd-list .upd-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 2px 10px; align-items: baseline; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); font-size: 14px;
}
.upd-list a:hover { background: var(--surface-2); text-decoration: none; }
.upd-when { font-variant-numeric: tabular-nums; white-space: nowrap; }
.upd-what { min-width: 0; overflow-wrap: anywhere; }
.upd-where { font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.upd-at { grid-column: 1 / -1; font-size: 11px; color: var(--muted); }
/* 直近12時間に登録・変更されたレッスンの印（カードの左上の角） */
.new-mark { position: absolute; left: 0; top: 0; z-index: 1; padding: 0 5px; border-radius: 0 0 7px 0; background: #e03a3a; color: #fff; font-size: 9px; font-weight: 800; line-height: 13px; letter-spacing: .04em; pointer-events: none; }
.card.is-new .card-time { padding-top: 5px; }

/* ---------- パフォーマー写真（作り直し。2026-11-12） ---------- */
body:has(#page[data-page="photo"]) { height: auto; overflow: auto; display: block; }
body:has(#page[data-page="photo"]) .foot { display: grid; }
.photo .wrap { max-width: 720px; }
.photo-head h1 { font-size: 24px; font-weight: 800; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.photo-head h1 small { font-size: 16px; font-weight: 600; color: var(--muted); }
.photo-box { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: grid; gap: 12px; }
.photo-box h2 { font-size: 16px; font-weight: 800; }
.photo-opts { display: grid; gap: 10px; }
/* 形の選択（縦長・正方形・横長…）。小さな図で形が分かるようにする */
.shape-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.shape { display: grid; justify-items: center; gap: 2px; padding: 8px 2px 6px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); min-width: 0; }
.shape:hover { background: var(--surface-2); }
.shape[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, var(--surface)); box-shadow: inset 0 0 0 1px var(--accent); }
.shape-ico { height: 30px; display: grid; place-items: center; }
.shape-ico i { display: block; height: calc(min(28px, 28px / var(--r))); width: calc(min(28px, 28px * var(--r))); border-radius: 3px; background: var(--muted); }
.shape[aria-selected="true"] .shape-ico i { background: var(--text); }
.shape-label { font-size: 12px; font-weight: 700; white-space: nowrap; }
.shape-size { font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; }
/* 入・切のスイッチ */
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; cursor: pointer; }
.switch small { font-weight: 500; color: var(--muted); }
.switch input { position: absolute; opacity: 0; }
.switch-ui { flex: none; width: 44px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.switch-ui::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch input:checked + .switch-ui { background: var(--accent); }
.switch input:checked + .switch-ui::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-ui { outline: 2px solid var(--link); outline-offset: 2px; }
.switch.is-off { opacity: .45; cursor: default; }
/* 画像の置き場 */
.photo-stage { position: relative; display: grid; place-items: center; min-height: 140px; padding: 12px; border-radius: 12px;
  background: repeating-conic-gradient(var(--surface-2) 0 25%, transparent 0 50%) 0 0 / 16px 16px; }
.photo-stage img { display: block; max-width: 100%; height: auto; border-radius: 4px; box-shadow: 0 6px 24px rgba(0, 0, 0, .25); transition: opacity .15s; }
.photo-stage.is-loading img { opacity: .35; }
.photo-loading, .photo-error { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; padding: 6px 12px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 13px; font-weight: 700; white-space: nowrap; }
.photo-error .link-btn { color: inherit; text-decoration: underline; margin-left: 6px; }
.photo-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.photo-more { display: flex; flex-wrap: wrap; gap: 8px; }
.photo-more .btn { min-height: 40px; font-size: 14px; font-weight: 600; }
/* 体感評価（★を押して選ぶ） */
.rate-form { display: grid; gap: 10px; }
.stars-pick { display: flex; align-items: center; gap: 10px; }
.stars-pick legend { float: left; width: 6.5em; font-size: 14px; font-weight: 700; }
.stars-row { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; }
.stars-row input { position: absolute; opacity: 0; }
.stars-row label { font-size: 28px; line-height: 1; padding: 2px 3px; color: var(--line); cursor: pointer; }
.stars-row input:checked ~ label, .stars-row label:hover, .stars-row label:hover ~ label { color: var(--fav); }
.stars-row input:focus-visible + label { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.rate-mode { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rate-mode .chip-btn[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
/* 写真カードの画像には半透明の部分があるので、今のサイトと同じ白の上に置く（市松模様だと透けて見えてしまう） */
.photo-stage { background: var(--surface-2); }
.photo-stage img { background: #fff; }

/* 絞り込みの行のボタン（条件・終了分を表示・Update・列）の上下をそろえる（2026-11-12）
   「終了分を表示」は列ごとのボタン用の余白（下 8px）を引き継いでいて、1つだけ上にずれていた。 */
.tools .past-all { margin: 0; }
.tools > .chip-btn, .tools > .seg, .tools > .stamp, .tools > .prod-link { align-self: center; }
.tools > .chip-btn { height: 36px; line-height: 1; }
.tools > .chip-btn .badge { line-height: 18px; }
.seg button { height: 36px; }

/* ---------- INFINITY∞（2026-11-12 追加） ----------
   くすんだ緑の地に、ぼかした光の玉。左の帯とカードの染めは緑、プログラム名の下地に光の玉を入れる。 */
.tag-infinity { --tag: #93a69b; --tagc: #93a69b; }
.card.tag-infinity .prog-name {
  color: #fff; text-shadow: 0 0 2px rgba(60, 75, 68, .6); font-weight: 700; padding: 0 7px;
  background:
    radial-gradient(circle at 10% 28%, rgba(226,235,238,.9) 0 2.5px, rgba(226,235,238,0) 5.5px),
    radial-gradient(circle at 30% 12%, rgba(236,208,162,.85) 0 2px, rgba(236,208,162,0) 4.5px),
    radial-gradient(circle at 90% 34%, rgba(236,208,162,.9) 0 3px, rgba(236,208,162,0) 6.5px),
    radial-gradient(circle at 73% 10%, rgba(112,118,118,.55) 0 1.5px, rgba(112,118,118,0) 3.5px),
    radial-gradient(circle at 57% 88%, rgba(226,235,238,.85) 0 2px, rgba(226,235,238,0) 4.5px),
    radial-gradient(circle at 19% 92%, rgba(236,208,162,.75) 0 2px, rgba(236,208,162,0) 4.5px),
    #93a69b;
}
.card.tag-infinity { background: color-mix(in srgb, #93a69b 16%, var(--surface)); }

/* ---------- 詳細（ポップアップ）のプログラム名にも、種類の色を付ける（2026-11-12） ---------- */
.sheet-title h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sheet-prog { font-weight: 700; }
.sheet-prog[class*="tag-"] {
  padding: 1px 12px 1px 14px; border-radius: 8px; font-size: 18px;
  background: color-mix(in srgb, var(--tagc) 30%, var(--surface)); box-shadow: inset 6px 0 0 var(--tagc);
}
.sheet-prog.tag-infinity {
  color: #fff; text-shadow: 0 0 3px rgba(60, 75, 68, .6); box-shadow: none; padding: 1px 14px;
  background:
    radial-gradient(circle at 8% 28%, rgba(226,235,238,.9) 0 4px, rgba(226,235,238,0) 9px),
    radial-gradient(circle at 28% 10%, rgba(236,208,162,.85) 0 3px, rgba(236,208,162,0) 7px),
    radial-gradient(circle at 92% 36%, rgba(236,208,162,.9) 0 5px, rgba(236,208,162,0) 10px),
    radial-gradient(circle at 74% 8%, rgba(112,118,118,.55) 0 2.5px, rgba(112,118,118,0) 5.5px),
    radial-gradient(circle at 58% 90%, rgba(226,235,238,.85) 0 3px, rgba(226,235,238,0) 7px),
    radial-gradient(circle at 18% 94%, rgba(236,208,162,.75) 0 3px, rgba(236,208,162,0) 7px),
    #93a69b;
}
/* ポップアップのプログラム名は、パフォーマー名（20px）より少し小さくする（2026-11-12） */
.sheet-title h2 .sheet-prog, .sheet-title h2 .sheet-prog[class*="tag-"] { font-size: 16px; }
/* ポップアップのプログラム名：文字に合わせて、色の下地（ラベル）も小さくする（2026-11-12） */
.sheet-title h2 .sheet-prog[class*="tag-"] { padding: 0 8px 0 11px; line-height: 1.35; border-radius: 6px; box-shadow: inset 4px 0 0 var(--tagc); }
.sheet-title h2 .sheet-prog.tag-infinity {
  padding: 0 9px; box-shadow: none;
  background:
    radial-gradient(circle at 8% 28%, rgba(226,235,238,.9) 0 3px, rgba(226,235,238,0) 6.5px),
    radial-gradient(circle at 28% 10%, rgba(236,208,162,.85) 0 2.2px, rgba(236,208,162,0) 5px),
    radial-gradient(circle at 92% 36%, rgba(236,208,162,.9) 0 3.5px, rgba(236,208,162,0) 7.5px),
    radial-gradient(circle at 74% 8%, rgba(112,118,118,.55) 0 1.8px, rgba(112,118,118,0) 4px),
    radial-gradient(circle at 58% 90%, rgba(226,235,238,.85) 0 2.2px, rgba(226,235,238,0) 5px),
    radial-gradient(circle at 18% 94%, rgba(236,208,162,.75) 0 2.2px, rgba(236,208,162,0) 5px),
    #93a69b;
}
/* ポップアップ：スマホでも大きさの差がはっきり分かるよう、パフォーマー名を大きく、プログラム名をさらに小さくする（2026-11-12） */
.sheet-title h2 { font-size: 23px; gap: 4px 9px; }
.sheet-title h2 .sheet-prog, .sheet-title h2 .sheet-prog[class*="tag-"] { font-size: 14px; font-weight: 600; }
.sheet-title h2 .sheet-prog[class*="tag-"] { padding: 0 7px 0 9px; border-radius: 5px; box-shadow: inset 3px 0 0 var(--tagc); }
.sheet-title h2 .sheet-prog.tag-infinity { padding: 0 8px; box-shadow: none; font-weight: 700; }
/* スケジュールのカード：パフォーマー名を少し大きくする（2026-11-12）。カードの高さ（92px）は変えない */
@media (min-width: 900px) {
  #cols .card-perf { font-size: 17.5px; line-height: 1.22; }
  #cols .card-time { line-height: 1.2; }
}
@media (max-width: 899px) {
  #cols .card-perf { font-size: 16.5px; line-height: 1.22; }
  #cols .card-time { line-height: 1.25; }
  :root[data-mcols="2"] #cols .card-perf { font-size: 18px; }
  :root[data-mcols="4"] #cols .card-perf { font-size: 14.5px; }
}

/* ---------- 人・プログラム名を一覧から選ぶ（2026-11-12） ----------
   以前はブラウザ標準の入力候補（datalist）に任せていたが、スマホでは一覧が出なかったため、専用の一覧にした。 */
.pick { position: relative; }
.pick-box { flex: 1 1 200px; min-width: 0; display: grid; gap: 6px; }
.pick-box .pick-input { width: 100%; max-width: 260px; flex: none; }
.pick-list { display: grid; gap: 6px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.pick-opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 5px; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.pick-opt { min-height: 36px; padding: 4px 8px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 13px; font-weight: 600; text-align: left; overflow-wrap: anywhere; line-height: 1.25; }
.pick-opt:hover { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); }
.pick-opt[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 800; }
.pick-opt[aria-pressed="true"]::before { content: "✓ "; }
.pick-none { font-size: 13px; color: var(--muted); padding: 4px 2px; }
.pick-close { justify-self: end; padding: 2px 4px; }
/* 一覧は入力欄の下に重ねて出す（開閉で下の内容が動かないように。動くと、次に押した場所がずれてしまう） */
.pick-box { position: relative; }
.pick-list { position: absolute; left: 0; top: calc(100% + 4px); z-index: 40; width: min(560px, calc(100vw - 64px)); background: var(--surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .2); }
.pick-list[hidden] { display: none !important; }
.pick-opt { background: var(--surface-2); }
.filters { overflow: visible; }
/* 一覧の幅は、条件の枠の内側いっぱいまで（スマホで画面からはみ出さないように、欄全体を基準に置く） */
.pick-box { position: static; }
.pick-list { left: 0; right: 0; top: calc(100% + 4px); width: auto; max-width: 560px; }

/* ---------- プログラムの種類の色を、今のサイトと同じにする（2026-11-12） ----------
   以前は一部の色を近い色で代用していたため、b-BURN（赤〜ゴールド）などが今のサイトと違う色になっていた。
   下の表は今のサイトの css/style.css の定義をそのまま写したもの。
     --tag   : カード左の帯        --tagc  : カード全体をうっすら染める色
     --tagbg : プログラム名の下地（今のサイトのラベルと同じ）   --tagfg : プログラム名の文字の色
   色を足すときは、今のサイトの css/style.css と、この表の両方に書く。 */
.tag-event1 { --tag: #eecc22; --tagc: #eecc22; --tagbg: linear-gradient(to bottom right, #eecc22, #eecc228c); --tagfg: inherit; }
.tag-event2 { --tag: #c23ca9; --tagc: #c23ca9; --tagbg: linear-gradient(to bottom right, #c23ca9, #c23ca9a5); --tagfg: #fff; }
.tag-event3 { --tag: #f07212; --tagc: #f07212; --tagbg: linear-gradient(to bottom right, #f07212, #f07212a8); --tagfg: #fff; }
.tag-event4 { --tag: linear-gradient(#01d58e, #12b8f0); --tagc: #0ac7bf; --tagbg: linear-gradient(to bottom right, #01d58e, #12b8f0); --tagfg: #fff; }
.tag-event5 { --tag: linear-gradient(#e6e8e7, #ed163e, #f8f80c, #e6e8e7); --tagc: #ed163e; --tagbg: linear-gradient(to bottom right, #e6e8e7, #ed163e, #f8f80c, #e6e8e7); --tagfg: #fff; }
.tag-event6 { --tag: #888585; --tagc: #888585; --tagbg: linear-gradient(to bottom right, #888585, #888585bb); --tagfg: #fff; }
.tag-event7 { --tag: #db9ede; --tagc: #db9ede; --tagbg: linear-gradient(to bottom right, #db9ede, #db9edebd); --tagfg: #fff; }
.tag-event8 { --tag: #d25fd8; --tagc: #d25fd8; --tagbg: linear-gradient(to bottom right, #d25fd8, #e4bfe6bd); --tagfg: #fff; }
.tag-event9 { --tag: linear-gradient(#ff0000, #ff7700, #ffff00, #00cc00, #0000ff, #8b00ff); --tagc: #a24bff; --tagbg: linear-gradient(to right, #ff0000, #ff7700, #ffff00, #00cc00, #0000ff, #8b00ff); --tagfg: #fff; }
.tag-event10 { --tag: #1207ae; --tagc: #1207ae; --tagbg: linear-gradient(to bottom right, #1207ae, #1207ae96); --tagfg: #fff; }
.tag-event11 { --tag: #1207ae; --tagc: #1207ae; --tagbg: #fff; --tagfg: #1207ae; --tagbd: 1px solid #1207ae; }
.tag-event12 { --tag: #2eb9ff; --tagc: #2eb9ff; --tagbg: linear-gradient(to bottom right, #2eb9ff, #2eb9ff7e); --tagfg: #fff; }
.tag-event13 { --tag: #3a424f; --tagc: #3a424f; --tagbg: linear-gradient(to bottom right, #3a424f, #3a424fc0); --tagfg: #fff; }
.tag-event14 { --tag: #3a424f; --tagc: #3a424f; --tagbg: linear-gradient(to bottom right, #3a424f, #3a424fc0); --tagfg: rgb(234, 140, 184); }
.tag-event15 { --tag: #3a424f; --tagc: #3a424f; --tagbg: linear-gradient(to bottom right, #3a424f, #3a424fc0); --tagfg: rgb(174, 147, 237); }
.tag-event16 { --tag: #3a424f; --tagc: #3a424f; --tagbg: linear-gradient(to bottom right, #3a424f, #3a424fc0); --tagfg: rgb(255, 195, 44); }
.tag-event17 { --tag: #3a424f; --tagc: #3a424f; --tagbg: linear-gradient(to bottom right, #3a424f, #3a424fc0); --tagfg: rgb(235, 187, 222); }
.tag-event18 { --tag: linear-gradient(#c2bec4, #d55f89, #8358b6, #c9aa7c, #e1a800); --tagc: #8358b6; --tagbg: linear-gradient(57deg, #c2bec4 0%, #d55f89 25%, #8358b6 48%, #c9aa7c 77%, #e1a800 100%); --tagfg: #fff; }
.tag-event19 { --tag: linear-gradient(#e13692, #b324dd, #4366f6); --tagc: #931cf5; --tagbg: linear-gradient(90deg, #e13692 0%, #e1349c 10%, #e132a7 20%, #e131b3 30%, #ce2cc8 40%, #b324dd 50%, #931cf5 60%, #7122f5 70%, #4b37f5 80%, #3b50f5 90%, #4366f6 100%); --tagfg: #fff; }
.tag-event20 { --tag: linear-gradient(#a52f2a, #c94a2b, #e9a540, #cd5a2d, #a3302b); --tagc: #c94a2b; --tagbg: linear-gradient(90deg, #a52f2a 0%, #c94a2b 25%, #e9a540 58%, #cd5a2d 75%, #a3302b 100%); --tagfg: #fff; }
.tag-halloween { --tag: #510bca; --tagc: #510bca; --tagbg: linear-gradient(to bottom right, #510bca, #510bcaaa); --tagfg: rgb(243, 169, 56); }
.tag-xmas { --tag: #1b5701; --tagc: #1b5701; --tagbg: linear-gradient(to bottom right, #1b5701, #1b5701c4); --tagfg: rgb(245, 4, 4); }
.tag-beginner { --tag: #7ed526; --tagc: #7ed526; --tagbg: linear-gradient(to bottom right, #7ed526, #7dd5268d); --tagfg: #fff; }
.tag-secret { --tag: #34312d; --tagc: #34312d; --tagbg: linear-gradient(to bottom right, #34312d, #34312da2); --tagfg: #fff; }
.tag-lite_program { --tag: #6099d5; --tagc: #6099d5; --tagbg: linear-gradient(to bottom right, #6099d5, #6099d5b1); --tagfg: #fff; }
.tag-hard { --tag: #c41b1b; --tagc: #c41b1b; --tagbg: linear-gradient(to bottom right, #c41b1b, #c41b1bac); --tagfg: #fff; }
.tag-pre-release { --tag: #f0f64e; --tagc: #d9df2a; --tagbg: linear-gradient(to bottom right, #f0f64e, #f0f64e9d); --tagfg: inherit; }
.tag-REHEARSAL { --tag: #e4ad16; --tagc: #e4ad16; --tagbg: linear-gradient(to bottom right, #e4ad16, #e4ad16b8); --tagfg: #fff; }

.card[class*="tag-"] .prog-name, .sheet-title h2 .sheet-prog[class*="tag-"] {
  background: var(--tagbg, color-mix(in srgb, var(--tagc) 30%, var(--surface))); color: var(--tagfg, inherit); border: var(--tagbd, 0);
  font-weight: 700; box-shadow: none; padding-left: 8px; padding-right: 8px;
}
/* 白い文字が薄い色の下地でも読めるよう、うっすら影を付ける（文字が白の種類だけ） */
.tag-event2 .prog-name, .tag-event3 .prog-name, .tag-event4 .prog-name, .tag-event5 .prog-name, .tag-event6 .prog-name, .tag-event7 .prog-name,
.tag-event8 .prog-name, .tag-event9 .prog-name, .tag-event12 .prog-name, .tag-event18 .prog-name, .tag-event19 .prog-name, .tag-event20 .prog-name,
.tag-beginner .prog-name, .tag-lite_program .prog-name, .tag-REHEARSAL .prog-name,
.sheet-prog.tag-event2, .sheet-prog.tag-event3, .sheet-prog.tag-event4, .sheet-prog.tag-event5, .sheet-prog.tag-event6, .sheet-prog.tag-event7,
.sheet-prog.tag-event8, .sheet-prog.tag-event9, .sheet-prog.tag-event12, .sheet-prog.tag-event18, .sheet-prog.tag-event19, .sheet-prog.tag-event20,
.sheet-prog.tag-beginner, .sheet-prog.tag-lite_program, .sheet-prog.tag-REHEARSAL { text-shadow: 0 0 2px rgba(0, 0, 0, .45); }
/* 明るい画面では、黄色系の下地の文字を濃い色に固定（暗い画面でも読めるように） */
.tag-event1 .prog-name, .tag-pre-release .prog-name, .sheet-prog.tag-event1, .sheet-prog.tag-pre-release { color: #16181d; }
/* INFINITY∞ は光の玉の下地を使う（上の共通の指定より優先） */
.card.tag-infinity .prog-name { background:
    radial-gradient(circle at 10% 28%, rgba(226,235,238,.9) 0 2.5px, rgba(226,235,238,0) 5.5px),
    radial-gradient(circle at 30% 12%, rgba(236,208,162,.85) 0 2px, rgba(236,208,162,0) 4.5px),
    radial-gradient(circle at 90% 34%, rgba(236,208,162,.9) 0 3px, rgba(236,208,162,0) 6.5px),
    radial-gradient(circle at 73% 10%, rgba(112,118,118,.55) 0 1.5px, rgba(112,118,118,0) 3.5px),
    radial-gradient(circle at 57% 88%, rgba(226,235,238,.85) 0 2px, rgba(226,235,238,0) 4.5px),
    radial-gradient(circle at 19% 92%, rgba(236,208,162,.75) 0 2px, rgba(236,208,162,0) 4.5px),
    #93a69b; color: #fff; }
.sheet-title h2 .sheet-prog.tag-infinity { color: #fff; background:
    radial-gradient(circle at 8% 28%, rgba(226,235,238,.9) 0 3px, rgba(226,235,238,0) 6.5px),
    radial-gradient(circle at 28% 10%, rgba(236,208,162,.85) 0 2.2px, rgba(236,208,162,0) 5px),
    radial-gradient(circle at 92% 36%, rgba(236,208,162,.9) 0 3.5px, rgba(236,208,162,0) 7.5px),
    radial-gradient(circle at 74% 8%, rgba(112,118,118,.55) 0 1.8px, rgba(112,118,118,0) 4px),
    radial-gradient(circle at 58% 90%, rgba(226,235,238,.85) 0 2.2px, rgba(226,235,238,0) 5px),
    radial-gradient(circle at 18% 94%, rgba(236,208,162,.75) 0 2.2px, rgba(236,208,162,0) 5px),
    #93a69b; }

/* ---------- ★検索（強度・エンジョイ・疾走感・没入感・初心者向き）（2026-11-12） ---------- */
.filters .star-row legend { width: 5.2em; }
.filters .star-row .chip span { padding: 5px 10px; }
@media (min-width: 900px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .filters .pick, .filters .filter-note, .filters #filterClear { grid-column: 1 / -1; }
}

/* ---------- Google ログインの案内 ---------- */
.login-points { display: grid; gap: 6px; padding-left: 0; font-size: 14px; }
.login-points li { position: relative; padding-left: 22px; }
.login-points li::before { content: ""; position: absolute; left: 4px; top: .5em; width: 9px; height: 5px; border-left: 2px solid var(--fav); border-bottom: 2px solid var(--fav); transform: rotate(-45deg); }
.login-btn { min-height: 44px; display: grid; justify-items: center; }

/* ---------- 広告 ----------
   自動広告が表（スタジオの列・パフォーマーの14日間）の中に差し込まれると、段がずれて表が崩れるので、
   表の中だけは出さない。表の外（上下）や、画面に重なる形の広告は今のサイトと同じように出る。 */
.cols .google-auto-placed, .cols ins.adsbygoogle, .tabs .google-auto-placed, .cards .google-auto-placed { display: none !important; }
.google-auto-placed { max-width: 100%; overflow: hidden; }

/* ---------- 自動広告が入っても、ヘッダーと表が崩れないようにする（2026-11-12） ----------
   自動広告は、ページの要素のすき間に勝手に差し込まれる。試したところ、ヘッダーの中（ロゴとメニューの間）と、
   PC画面の下端（表の表示領域を300px削る位置）に入って、レイアウトを崩した。
   ・ヘッダー・日付・絞り込み・表の中には入れない（最初から隠してある枠には、広告は読み込まれない）
   ・PCのスケジュールは、表を1画面ぶんの高さに固定し、広告は表の下（スクロールした先）に出るようにする */
.top .google-auto-placed, .datebar .google-auto-placed, .tools .google-auto-placed, .filters .google-auto-placed,
.sheet .google-auto-placed, .menu-panel .google-auto-placed, .strip .google-auto-placed { display: none !important; }
.brand { flex: none; }
@media (max-width: 520px) { .brand { flex: 0 1 auto; } }
@media (min-width: 900px) {
  body:has(#page[data-page="schedule"]) { height: auto; min-height: 100dvh; overflow: visible; display: block; }
  #page[data-page="schedule"] { height: calc(100dvh - var(--top-h)); }
  #page[data-page="schedule"] > .google-auto-placed { display: none !important; }
}
.filters .star-row legend { width: 6.2em; white-space: nowrap; }

/* ---------- 過去のパフォーマー（一覧で分けて出す）・リセット（2026-11-12） ---------- */
.past-perf { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 10px; }
.past-perf > summary { cursor: pointer; font-size: 14px; font-weight: 800; color: var(--text); padding: 8px 2px; list-style-position: inside; }
.past-perf > summary small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 10px; }
.past-perf > .perf-list { margin-top: 8px; }
.perf-list.is-past-list a { font-weight: 600; color: var(--muted); background: transparent; }
html body .perf-list.is-past-list a { color: var(--muted); }
.menu-panel .menu-reset { border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }
.menu-panel .menu-reset + .menu-reset { border-top: 0; margin-top: 0; border-radius: 9px; }
#performer-intro { scroll-margin-top: 72px; }

/* ---------- メニューの絵（2026-11-12） ---------- */
.menu-panel .btn-ic { width: 30px; height: 30px; border-radius: 8px; }
.menu-panel .btn-ic img { width: 22px; height: 22px; }
.menu-panel a, .menu-panel button { gap: 10px; padding: 7px 10px; }

/* ---------- カード：パフォーマー名・プログラム名以外は少し薄く（2026-11-12） ---------- */
.card .card-time { color: color-mix(in srgb, var(--text) 62%, transparent); }
.card .card-time small { color: color-mix(in srgb, var(--text) 48%, transparent); }
.card .lv { color: color-mix(in srgb, var(--text) 52%, transparent); }
.card .lv i.on { background: color-mix(in srgb, var(--text) 58%, transparent); }
.card .card-msg { color: color-mix(in srgb, var(--text) 60%, transparent); }
.card .fav[aria-pressed="false"] { color: color-mix(in srgb, var(--text) 42%, transparent); }

/* ---------- カード：パフォーマー名をさらに目立たせる（2026-11-12）。高さ92pxは変えない ---------- */
#cols .card-perf, .cols-days .card-perf { font-weight: 900; letter-spacing: .01em; }
.card .card-time { font-weight: 600; }
@media (min-width: 900px) {
  #cols .card-perf { font-size: 19px; line-height: 1.13; }
  #cols .card-time { font-size: 13.5px; }
}
@media (max-width: 899px) {
  #cols .card-perf { font-size: 17.5px; line-height: 1.15; }
  :root[data-mcols="2"] #cols .card-perf { font-size: 19px; }
  :root[data-mcols="4"] #cols .card-perf { font-size: 15px; }
}
