@font-face {
  font-family: 'Bebas Neue';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(fonts/bebas-neue-latin.woff2) format('woff2');
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --paper-raised: #f7f6f2;
  --ink: #221f1a;
  --ink-soft: #4a4436;
  --hairline: #dcd6c8;
  --stamp: #b33a2e;
  --stamp-ink: #ffffff;
  --venue: #2e6e68;
  --venue-soft: #dce8e5;
  --shadow: rgba(34, 31, 26, 0.12);
  --chart-data: #1a8f75;
  --chart-track: #ddd6c3;
  /*
   * 紙の繊維・ザラつきを表現するノイズテクスチャ。feTurbulenceの生の出力は
   * カラフルな静電ノイズになってしまうため、feColorMatrixでインク色に近い
   * 低アルファの単色スペックル(最大でも5%の不透明度)に変換している。
   * 外部画像を使わずSVGをインライン化しているので追加のHTTPリクエストは無く、
   * 静止画のタイル(180x180)なのでアニメーションコストも無くモバイルでも軽い。
   */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.13 0 0 0 0 0.12 0 0 0 0 0.10 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background-color: var(--paper);
  background-image: var(--grain);
}

body {
  color: var(--ink);
  font-family: "Hiragino Sans", "Yu Gothic", "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.eyebrow, .brand, .num, button, select, .stat-num {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.06em;
}

a { color: var(--venue); }

/* ---------- header ---------- */
.topbar {
  /*
   * top を負の値にすると、ロゴと説明文のぶんだけ画面外へ流れてから止まる
   * (=メニュー行だけが追従する)。流す高さは header.js が実測して渡す。
   */
  position: sticky;
  top: calc(-1 * var(--topbar-collapse, 0px));
  z-index: 9;
  padding: 22px 20px 10px;
  border-bottom: 1px solid var(--hairline);
  background-color: var(--paper-raised);
  background-image: var(--grain);
}
.topbar .inner { max-width: 980px; margin: 0 auto; position: relative; }
.brand {
  font-size: clamp(30px, 6vw, 40px);
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.brand-wordmark {
  height: clamp(60px, 11vw, 76px);
  display: block;
  flex: none;
}

.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  opacity: 1;
  transition: opacity 0.7s ease;
}
.splash.splash-hide {
  opacity: 0;
  pointer-events: none;
}
.splash.splash-photo-mode { transition: opacity 1.2s ease; }
.splash-logo {
  width: clamp(64px, 16vw, 96px);
  height: clamp(64px, 16vw, 96px);
  border-radius: 50%;
  box-shadow: 0 6px 24px var(--shadow);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 1.1s ease, transform 1.1s ease;
}
.splash-logo.splash-logo-show {
  opacity: 1;
  transform: scale(1);
}
.splash-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform-origin: center center;
  border-radius: 0;
  box-shadow: none;
  opacity: 0;
  transform: scale(1);
  filter: grayscale(1);
  /* 全体を1秒でフェードイン+カラー化 → 1秒地点でズーム開始(1.2s、フェードアウトと同時)。
     合計2.2秒で完了 */
  transition: opacity 1s ease, filter 1s ease, transform 1.2s ease 1s;
}
.splash-photo.splash-photo-show {
  opacity: 1;
  /* splash.js が実際のビューポート/画像比率から必要なズーム量を計算してこの変数に設定する */
  transform: scale(var(--splash-zoom, 1.4));
  filter: grayscale(0);
}
@media (prefers-reduced-motion: reduce) {
  .splash-photo { transition: opacity 0.3s ease; }
}
.brand .sub {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  color: var(--stamp);
  letter-spacing: 0.08em;
}
.tagline {
  color: var(--ink-soft);
  font-size: 13.5px;
  margin-top: 4px;
}
.bi-disclaimer {
  color: var(--ink-soft);
  font-size: 11.5px;
  margin-top: 4px;
  opacity: 0.85;
}
.nav-tabs {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}
.nav-spacer { flex: 1; }
/* メニュー行だけになったとき(.is-stuck)に左端へ出す小さいロゴ */
.nav-tabs a.nav-logo {
  flex: none;
  padding: 0;
  border: none;
  max-width: 0;
  opacity: 0;
  visibility: hidden;
  overflow: hidden;
  transition: max-width 0.25s ease, opacity 0.2s ease, margin 0.25s ease, visibility 0s linear 0.25s;
}
.nav-logo img { display: block; height: 26px; width: auto; }
.topbar.is-stuck .nav-tabs a.nav-logo {
  max-width: 90px;
  margin-right: 8px;
  opacity: 1;
  visibility: visible;
  transition: max-width 0.25s ease, opacity 0.2s ease, margin 0.25s ease, visibility 0s;
}
@media (prefers-reduced-motion: reduce) {
  .nav-tabs a.nav-logo, .topbar.is-stuck .nav-tabs a.nav-logo { transition: none; }
}
.nav-tabs a {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.06em;
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  flex: none;
}
.nav-tabs a:hover { color: var(--ink); }
.nav-tabs a.active {
  color: var(--stamp);
  background: var(--paper);
  border-color: var(--hairline);
}
.nav-tabs a.icon {
  font-size: 19px;
  padding: 6px 13px;
  line-height: 1;
}
.nav-tabs a.gear-btn {
  flex: none;
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 50%;
  opacity: 0.4;
  transition: opacity 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.nav-tabs a.gear-btn:hover, .nav-tabs a.gear-btn:focus-visible {
  opacity: 1;
  background: var(--paper);
  border-color: var(--hairline);
}
.nav-tabs a.gear-btn.active { opacity: 0.8; }
.help-btn {
  flex: none;
  height: 32px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.04em;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  transition: border-color 0.2s ease;
}
.help-btn:hover, .help-btn:focus-visible { border-color: var(--stamp); }
.help-section { margin-top: 16px; }
.help-section-title {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.04em;
  font-size: 14px;
  color: var(--stamp);
  margin-bottom: 6px;
}
.help-list {
  margin: 0;
  padding-left: 20px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink);
}
.help-list li + li { margin-top: 6px; }
.help-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline);
  font-size: 12px;
  color: var(--ink-soft);
}

/* ---------- controls ---------- */
.controls {
  max-width: 980px;
  margin: 0 auto;
  padding: 12px 20px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.search-bar {
  max-width: 980px;
  margin: 0 auto;
  padding: 16px 20px 0;
}
.search-wrap { position: relative; }
.search-clear {
  position: absolute;
  top: 50%;
  right: 6px;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.search-clear:hover, .search-clear:focus-visible { background: var(--venue-soft); color: var(--ink); }
#search {
  width: 100%;
  padding: 10px 40px 10px 14px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 14.5px;
  font-family: inherit;
}
#search:focus {
  outline: 2px solid var(--venue);
  outline-offset: 1px;
}
.month-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.month-nav button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--hairline);
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
}
.month-nav button:hover { border-color: var(--venue); color: var(--venue); }
.month-nav button:focus-visible, #search:focus-visible, select:focus-visible,
.cal-cell:focus-visible, .list-item:focus-visible, .detail-card .close:focus-visible {
  outline: 2px solid var(--venue);
  outline-offset: 1px;
}
#monthSelect {
  padding: 8px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper-raised);
  color: var(--ink);
  font-size: 14px;
}
.stats {
  margin-left: auto;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.stats b { color: var(--stamp); font-family: "Bebas Neue", sans-serif; font-size: 15px; }

main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 20px 80px;
}

/* ---------- calendar ---------- */
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-dow {
  text-align: center;
  font-size: 11px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  padding-bottom: 4px;
  font-family: "Bebas Neue", sans-serif;
}
.cal-cell {
  position: relative;
  min-height: 68px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 6px 6px 8px;
  background: var(--paper-raised);
  cursor: default;
  font: inherit;
  text-align: left;
  color: inherit;
  display: block;
  width: 100%;
}
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell .d { font-size: 12px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.cal-cell.has-event { cursor: pointer; border-color: var(--stamp); }
.cal-cell.has-event:hover { background: var(--venue-soft); }
.cal-cell.has-event .d { color: var(--ink); font-weight: 700; }
.cal-cell.cal-cell-empty { cursor: pointer; }
.cal-cell.cal-cell-empty:hover { background: var(--venue-soft); border-color: var(--hairline); }
.cal-cell.cal-cell-empty .cal-add-hint {
  display: block;
  text-align: center;
  font-size: 15px;
  color: var(--ink-soft);
  opacity: 0;
  transition: opacity 0.15s ease;
  margin-top: 10px;
}
.cal-cell.cal-cell-empty:hover .cal-add-hint,
.cal-cell.cal-cell-empty:focus-visible .cal-add-hint {
  opacity: 0.6;
}
.cal-cell .ev-title {
  display: block;
  font-size: 11.5px;
  margin-top: 4px;
  color: var(--ink);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.cal-cell .badge {
  position: absolute;
  top: 6px;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--venue);
  color: var(--stamp-ink);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}
/*
 * badge-warn/badge-x/badge-videoは常に.badge(出演者数バッジ)と併記される可能性があるため、
 * `.cal-cell .badge`と同じ詳細度(0,2,0)で明示的に上書きし、position:staticで通常の行内配置に戻す。
 * こうしないと.cal-cell .badgeのposition:absolute; top:6px; right:6px;が勝ってしまい、
 * 複数バッジが同じ角に重なって最後に描画された1つしか見えなくなる。
 */
.cal-cell .badge-warn {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0 4px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--stamp);
  color: var(--stamp);
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.cal-cell .badge-x,
.cal-cell .badge-video {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0 4px;
  border-radius: 4px;
  background: transparent;
  border: 1px solid var(--ink-soft);
  color: var(--ink);
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.cal-cell .badge-hype,
.cal-cell .badge-emoi {
  position: static;
  display: inline-flex;
  align-items: center;
  width: auto;
  min-width: 0;
  height: auto;
  padding: 0 4px;
  border-radius: 4px;
  background: transparent;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.cal-cell .badge-hype { border: 1px solid var(--stamp); }
.cal-cell .badge-emoi { border: 1px solid var(--venue); }
.cal-empty-month {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px 0;
  color: var(--ink-soft);
  font-size: 13.5px;
}

/* ---------- list (search results) ---------- */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 12px 14px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper-raised);
  cursor: pointer;
  font: inherit;
  text-align: left;
  color: inherit;
  width: 100%;
}
.list-item:hover { border-color: var(--stamp); }
.list-item .date {
  font-family: "Bebas Neue", sans-serif;
  font-size: 15px;
  color: var(--stamp);
  min-width: 92px;
  font-variant-numeric: tabular-nums;
}
.list-item .body { flex: 1; min-width: 0; }
.list-item .t { font-weight: 700; }
.list-item .p { color: var(--ink-soft); font-size: 13px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-empty { text-align: center; padding: 48px 0; color: var(--ink-soft); }
.list-count { font-size: 12.5px; color: var(--ink-soft); }
.list-count b { color: var(--stamp); font-family: "Bebas Neue", sans-serif; font-size: 16px; letter-spacing: 0.04em; }
.list-item .marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin-top: 5px;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.list-item .date .wd { display: block; font-family: "Hiragino Sans", "Yu Gothic", sans-serif; font-size: 11px; letter-spacing: 0; color: var(--ink-soft); }
/* その月の公演リスト。マスに公演名が入るパソコン幅では出さず、スマホ幅でだけ表示する */
.month-list { display: none; }

.hidden { display: none !important; }

/* ---------- detail overlay ---------- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 14, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 6vh 16px;
  overflow-y: auto;
  z-index: 10;
}
.detail-card {
  background-color: var(--paper-raised);
  background-image: var(--grain);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  padding: 26px 26px 22px;
  box-shadow: 0 24px 48px -20px var(--shadow);
  position: relative;
}
.detail-card .close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink);
  font-size: 15px;
  cursor: pointer;
}
.detail-eyebrow {
  font-family: "Bebas Neue", sans-serif;
  color: var(--stamp);
  font-size: 15px;
  letter-spacing: 0.08em;
}
.detail-title {
  font-size: 21px;
  font-weight: 700;
  margin: 6px 0 14px;
  padding-right: 30px;
  text-wrap: balance;
}
.detail-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 14px;
  font-size: 14px;
  margin-bottom: 14px;
}
.detail-grid dt {
  color: var(--ink-soft);
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.05em;
  font-size: 12px;
  align-self: baseline;
  padding-top: 2px;
}
.detail-grid dd { margin: 0; font-variant-numeric: tabular-nums; }
.performers {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}
.performers .chip {
  background: var(--venue-soft);
  color: var(--venue);
  border: none;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
}
.performers .chip:hover { background: var(--stamp); color: var(--stamp-ink); }
.performers .chip .chip-video-icon { font-size: 11px; opacity: 0.8; margin-left: 4px; }
.performers-hint {
  font-size: 11px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--hairline);
}
.hype-btn {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hype-btn:hover:not(:disabled) { border-color: var(--stamp); }
.hype-btn:disabled { cursor: default; }
.hype-btn.hyped {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--stamp-ink);
}
.hype-count {
  font-family: "Bebas Neue", sans-serif;
  font-size: 13px;
  min-width: 12px;
  text-align: left;
}
.emoi-btn {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 13px;
  cursor: pointer;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.emoi-btn:hover:not(:disabled) { border-color: var(--venue); }
.emoi-btn:disabled { cursor: default; }
.emoi-btn.emoid {
  background: var(--venue);
  border-color: var(--venue);
  color: #fff;
}
.emoi-count {
  font-family: "Bebas Neue", sans-serif;
  font-size: 13px;
  min-width: 12px;
  text-align: left;
}
.share-wrap { display: flex; flex-direction: column; gap: 8px; }
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-label { font-size: 11px; color: var(--ink-soft); }
.share-btn {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12px;
  text-decoration: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink);
}
.share-btn:hover { border-color: var(--venue); color: var(--venue); }
button.share-btn {
  background: var(--paper-raised);
  cursor: pointer;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
}
button.share-btn.copied {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--stamp-ink);
}
.share-x-panel {
  background: var(--paper);
  border: 1px dashed var(--hairline);
  border-radius: 6px;
  padding: 10px 12px;
}
.share-x-hint {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 0 0 6px;
}
.share-x-text {
  width: 100%;
  resize: none;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12px;
  color: var(--ink);
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 8px;
  margin-bottom: 8px;
  box-sizing: border-box;
}
.share-x-copy {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--ink);
  cursor: pointer;
}
.share-x-copy:hover { border-color: var(--venue); color: var(--venue); }
.share-x-copy.copied {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--stamp-ink);
}
.detail-notes {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--paper);
  border-left: 3px solid var(--stamp);
  padding: 8px 12px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.detail-source {
  font-size: 12px;
  color: var(--ink-soft);
  border-top: 1px dashed var(--hairline);
  padding-top: 12px;
}
.detail-source a { color: var(--venue); }

footer {
  text-align: center;
  padding: 30px 20px 50px;
  font-size: 12px;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .cal-grid { gap: 4px; }
  .cal-dow { font-size: 10px; padding-bottom: 6px; }
  .cal-cell {
    min-height: 46px;
    padding: 0;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
  }
  .cal-cell.has-event {
    background: var(--venue-soft);
    border-width: 1.5px;
  }
  .cal-cell .d {
    font-size: 13px;
    line-height: 1;
  }
  /* タイトル文字はセルが狭すぎて読めないため非表示にし、件数バッジのみで「予定あり」を示す */
  .cal-cell .ev-title { display: none; }
  .cal-cell .badge-warn, .cal-cell .badge-x { display: none; }
  .cal-cell .badge {
    top: 3px;
    right: 3px;
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    font-size: 9px;
  }
  /*
   * 🔗・🎬・𝕏・🔥・🥹 はマスの中では小さすぎて読めないため表示しない。
   * 代わりにカレンダー下の「その月の公演リスト」に文字付きで出す。
   */
  .cal-cell .badge-video,
  .cal-cell .badge-hype,
  .cal-cell .badge-emoi { display: none; }
  .month-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
  }
  .month-list .list-item { gap: 12px; padding: 10px 12px; }
  .month-list .list-item .date { min-width: 38px; font-size: 20px; line-height: 1.1; text-align: center; }
  .month-list .list-item .p { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .cal-cell.cal-cell-empty .cal-add-hint { margin-top: 0; font-size: 13px; }
  .stats { margin-left: auto; }
}

/* ================= 年選択ハブ ================= */

@keyframes yearTileIn {
  from { opacity: 0; transform: translateY(14px) rotate(0deg) scale(0.94); }
  to { opacity: 1; transform: translateY(0) rotate(var(--tilt)) scale(1); }
}

.year-hub {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 20px 90px;
  text-align: center;
}
.year-hub-lead {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.08em;
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 34px;
}
.year-hub-lead::before {
  content: "";
  display: block;
  width: 30px;
  height: 2px;
  background: var(--stamp);
  margin: 0 auto 14px;
}
.year-hub-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 14px;
}
.year-tile {
  position: relative;
  font: inherit;
  cursor: pointer;
  width: 118px;
  padding: 18px 8px 14px;
  background-color: var(--paper-raised);
  background-image: var(--grain);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  box-shadow: 0 2px 0 var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  opacity: 0;
  transform: translateY(14px) rotate(var(--tilt)) scale(0.94);
  animation: yearTileIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--i) * 45ms);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s ease, border-color 0.2s ease;
}
/*
 * チケット半券の切り取り線(ミシン目)。年タイルは横長寄りの比率なので
 * ここに適用する(カレンダー全体はほぼ正方形〜縦長なので不採用)。
 * 右から1/5(80%)の位置に縦の点線+上下の縁に半円の切り欠き(パンチ穴)。
 */
.year-tile::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 80%;
  border-left: 1.5px dashed var(--hairline);
  pointer-events: none;
}
.year-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle 4px, var(--paper) 4px, transparent 4.5px),
    radial-gradient(circle 4px, var(--paper) 4px, transparent 4.5px);
  background-repeat: no-repeat, no-repeat;
  background-position: 80% 0, 80% 100%;
  background-size: 8px 8px, 8px 8px;
}
.year-tile:hover, .year-tile:focus-visible {
  transform: translateY(-4px) rotate(0deg) scale(1.05);
  border-color: var(--stamp);
  box-shadow: 0 10px 20px var(--shadow);
  outline: none;
  z-index: 1;
}
.year-tile:active {
  transform: translateY(-1px) rotate(0deg) scale(1.01);
  transition-duration: 0.08s;
}
.year-tile-num {
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.year-tile-count {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stamp);
}
@media (prefers-reduced-motion: reduce) {
  .year-tile { animation: none; opacity: 1; transform: rotate(var(--tilt)); }
  .year-tile:hover, .year-tile:focus-visible, .year-tile:active { transform: rotate(0deg); }
}
@media (max-width: 560px) {
  .year-hub { padding: 34px 16px 70px; }
  .year-tile { width: 30.5%; padding: 14px 4px 10px; }
  .year-tile-num { font-size: 26px; }
  .year-tile-count { font-size: 10.5px; }
}

.recent-feed {
  max-width: 460px;
  margin: 36px auto 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.recent-feed-heading {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 6px;
  text-align: center;
}
.recent-feed-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--ink);
  font-size: 12.5px;
}
.recent-feed-item:hover { background: var(--paper-raised); }
.recent-feed-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.recent-feed-time {
  flex: none;
  font-family: "Bebas Neue", sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}

.back-to-years {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.05em;
  font-size: 13px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 7px 12px;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.back-to-years:hover { border-color: var(--venue); color: var(--venue); }

/* ================= BIダッシュボード ================= */

.bi-main {
  max-width: 980px;
  margin: 0 auto;
  padding: 20px 20px 80px;
  display: flex;
  flex-direction: column;
  gap: 34px;
}

/* --- フィルター行(年) --- */
.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.debug-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.debug-tab {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 16px;
  color: var(--ink-soft);
  cursor: pointer;
}
.debug-tab:hover { border-color: var(--venue); color: var(--venue); }
.debug-tab.active {
  background: var(--stamp);
  border-color: var(--stamp);
  color: var(--stamp-ink);
}
.changelog-type {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.04em;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
}
.changelog-type.type-override { background: var(--paper-raised); border: 1px solid var(--venue); color: var(--venue); }
.changelog-type.type-link { background: var(--paper-raised); border: 1px solid var(--hairline); color: var(--ink-soft); }
.changelog-type.type-video { background: var(--paper-raised); border: 1px solid var(--stamp); color: var(--stamp); }
.debug-filter-input {
  flex: 1;
  min-width: 200px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13.5px;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.debug-filter-input:focus { outline: 2px solid var(--venue); outline-offset: 1px; }
.filter-row .filter-label {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 12px;
  color: var(--ink-soft);
  margin-right: 4px;
}
.chip {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.04em;
  font-size: 13.5px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--paper-raised);
  color: var(--ink-soft);
  cursor: pointer;
}
.chip:hover { color: var(--ink); border-color: var(--venue); }
.chip.active {
  background: var(--venue);
  border-color: var(--venue);
  color: var(--stamp-ink);
}

/* --- KPI行 --- */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.stat-tile {
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 16px 18px;
}
.stat-tile .label {
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.06em;
  font-size: 11.5px;
  color: var(--ink-soft);
}
.stat-tile .value {
  font-family: "Bebas Neue", sans-serif;
  font-size: 34px;
  letter-spacing: 0.02em;
  color: var(--ink);
  line-height: 1.25;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.stat-tile.emphasis .value { color: var(--stamp); }
.stat-tile .sub {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* --- パネル共通 --- */
.panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.panel-title {
  font-size: 17px;
  font-weight: 700;
}
.panel-sub {
  font-size: 12.5px;
  color: var(--ink-soft);
}
.view-toggle {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.view-toggle button {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--hairline);
  background: var(--paper-raised);
  color: var(--ink-soft);
  cursor: pointer;
}
.view-toggle button.active { color: var(--venue); border-color: var(--venue); }

/* --- 横棒チャート(ランキング) --- */
.bar-chart-h { display: flex; flex-direction: column; gap: 2px; }
.bar-row-h {
  display: grid;
  grid-template-columns: 140px 1fr 56px;
  align-items: center;
  gap: 10px;
  padding: 5px 4px;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  text-align: left;
  text-decoration: none;
  color: inherit;
  background: transparent;
  border: none;
  width: 100%;
}
.bar-row-h:hover { background: var(--paper-raised); }
.bar-row-h .name {
  font-size: 13px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bar-row-h .track {
  height: 20px;
  background: var(--chart-track);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}
.bar-row-h .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--chart-data);
  border-radius: 4px 4px 4px 4px;
}
.bar-row-h.top1 .fill { background: var(--stamp); }
.bar-row-h .value {
  font-family: "Bebas Neue", sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  color: var(--ink);
  text-align: right;
}

/* --- 縦棒チャート(月別・年別/曜日別) --- */
.bar-chart-v {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 160px;
  padding-top: 20px;
  border-bottom: 1px solid var(--hairline);
}
.bar-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  cursor: default;
  background: none;
  border: none;
  font: inherit;
  padding: 0;
  position: relative;
}
.bar-col .cap {
  font-family: "Bebas Neue", sans-serif;
  font-size: 11px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.bar-col .stem {
  width: 100%;
  max-width: 28px;
  background: var(--chart-data);
  border-radius: 4px 4px 0 0;
  min-height: 2px;
}
.bar-col.empty .stem { background: var(--chart-track); }
.bar-col .axis-label {
  font-size: 10.5px;
  color: var(--ink-soft);
  font-family: "Bebas Neue", sans-serif;
}
.bar-chart-v-wrap { display: flex; flex-direction: column; gap: 6px; }
.axis-row { display: flex; gap: 6px; }
.axis-row .axis-cell { flex: 1; text-align: center; }

/* --- 曜日チャート(横) --- */

/* --- テーブルビュー --- */
.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.data-table th, .data-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--hairline);
}
.data-table th {
  font-family: "Bebas Neue", sans-serif;
  font-weight: 400;
  letter-spacing: 0.05em;
  font-size: 11.5px;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.data-table th:hover { color: var(--venue); }
.data-table th.sorted { color: var(--stamp); }
.data-table td.num { font-variant-numeric: tabular-nums; text-align: right; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover { background: var(--paper-raised); }
.table-wrap { overflow-x: auto; }
.open-day-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  font-size: 15px;
  text-decoration: none;
  background: var(--paper-raised);
  border: 1px solid var(--hairline);
}
.open-day-icon:hover { border-color: var(--venue); }

/* --- ドリルダウン(選択中の出演者の履歴) --- */
.drilldown {
  border: 1px solid var(--stamp);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--paper-raised);
}
.drilldown-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.drilldown-head h3 { margin: 0; font-size: 16px; }
.drilldown-head .count { font-size: 12.5px; color: var(--ink-soft); }
.drilldown-head button {
  border: none;
  background: none;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 13px;
}
.drilldown-list { display: flex; flex-direction: column; gap: 2px; }
.drilldown-item {
  display: flex;
  gap: 12px;
  padding: 6px 4px;
  border-radius: 6px;
  font-size: 13px;
  align-items: baseline;
}
.drilldown-item:hover { background: var(--paper); }
.drilldown-item .d { font-family: "Bebas Neue", sans-serif; color: var(--stamp); min-width: 84px; font-variant-numeric: tabular-nums; }
.drilldown-item a { color: var(--ink); text-decoration: none; }
.drilldown-item a:hover { text-decoration: underline; }

.tooltip {
  position: fixed;
  pointer-events: none;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 6px;
  z-index: 20;
  max-width: 240px;
  line-height: 1.5;
  box-shadow: 0 8px 20px -8px var(--shadow);
}
.tooltip b { font-variant-numeric: tabular-nums; }
.tooltip.hidden { display: none; }

@media (max-width: 620px) {
  .bar-row-h { grid-template-columns: 96px 1fr 44px; }
  .bar-row-h .name { font-size: 12px; }
}

/* ---------- 編集フォーム ---------- */
.detail-edit-toggle { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
/* 見るだけの人には入力欄・解除ボタン・中身のない見出しを見せない */
.detail-card:not(.is-adding) .tweet-form,
.detail-card:not(.is-adding) .tweet-unlink,
.detail-card:not(.is-adding) .tweet-panel.is-empty { display: none; }
.btn-add-toggle,
.btn-edit-toggle {
  background: none;
  border: 1px solid var(--hairline);
  color: var(--venue);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  cursor: pointer;
}
.btn-add-toggle:hover,
.btn-edit-toggle:hover { border-color: var(--venue); }
.btn-add-toggle[aria-expanded="true"] { background: var(--venue-soft); border-color: var(--venue); }

.edit-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.edit-row { display: flex; flex-direction: column; gap: 4px; }
.edit-row-2col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.edit-row-2col > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.edit-row-2col input { width: 100%; min-width: 0; box-sizing: border-box; }
.edit-form label {
  font-family: "Bebas Neue", sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
}
.edit-form input, .edit-form textarea {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13.5px;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.edit-form input:focus, .edit-form textarea:focus { outline: 2px solid var(--venue); outline-offset: 1px; }
.edit-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.edit-actions button {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid var(--hairline);
  background: var(--paper-raised);
  color: var(--ink);
}
.edit-actions .btn-save { background: var(--venue); border-color: var(--venue); color: var(--stamp-ink); }
.edit-status { font-size: 12px; color: var(--ink-soft); min-height: 1.2em; }

/* ---------- アーティスト名統合ページ ---------- */
.artist-groups { display: flex; flex-direction: column; gap: 10px; }
.artist-group {
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--paper-raised);
  overflow: hidden;
}
.artist-group-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 14px;
  background: var(--venue-soft);
}
.artist-group-name {
  font-family: "Bebas Neue", "Hiragino Sans", "Yu Gothic", sans-serif;
  letter-spacing: 0.03em;
  font-size: 16px;
  color: var(--venue);
}
.artist-group-total {
  font-family: "Bebas Neue", sans-serif;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.artist-group-members { display: flex; flex-direction: column; }
.artist-group-member {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid var(--hairline);
  font-size: 13.5px;
}
.artist-group-member.anchor { color: var(--ink-soft); font-style: italic; }
.artist-group-member .cnt {
  margin-left: auto;
  color: var(--ink-soft);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.unlink-btn {
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 11.5px;
  cursor: pointer;
}
.unlink-btn:hover { border-color: var(--stamp); color: var(--stamp); }

.artist-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  padding: 4px;
}
.artist-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13.5px;
}
.artist-row:hover { background: var(--paper-raised); }
.artist-row.is-anchor { background: var(--venue-soft); }
.artist-row-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  cursor: pointer;
}
.artist-row input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--venue); flex: 0 0 auto; }
.artist-row .name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.artist-row .cnt { color: var(--ink-soft); font-size: 12px; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.artist-row .sim {
  color: var(--venue);
  font-size: 11px;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.03em;
  flex: 0 0 auto;
  white-space: nowrap;
}
.anchor-btn {
  border: 1px solid var(--hairline);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 11px;
  cursor: pointer;
  flex: 0 0 auto;
}
.anchor-btn:hover { border-color: var(--venue); color: var(--venue); }

.anchor-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--venue-soft);
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 8px;
}
.anchor-bar b { color: var(--venue); }
.anchor-bar button {
  margin-left: auto;
  border: none;
  background: none;
  color: var(--stamp);
  text-decoration: underline;
  font-size: 12px;
  cursor: pointer;
}

.merge-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--hairline);
}
.merge-bar #mergeCount {
  font-family: "Bebas Neue", sans-serif;
  font-size: 13px;
  color: var(--ink-soft);
}
.merge-bar input {
  flex: 1 1 200px;
  padding: 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 13.5px;
}
.merge-bar button {
  background: var(--venue);
  border: 1px solid var(--venue);
  color: var(--stamp-ink);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13.5px;
  cursor: pointer;
}
.merge-bar button:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- 当日ツイート埋め込み ---------- */
.tweet-panel {
  margin: 4px 0 14px;
}
.tweet-panel-title {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: var(--venue);
  margin-bottom: 6px;
}
.tweet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tweet-embed { max-width: 100%; overflow: hidden; position: relative; }
.tweet-embed .twitter-tweet { margin: 0 !important; }
.tweet-unlink {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 1;
  font-size: 11px;
  padding: 3px 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--paper-raised);
  color: var(--ink-soft);
  cursor: pointer;
}
.tweet-unlink:hover { border-color: var(--stamp); color: var(--stamp); }
.tweet-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 0 0;
  flex-wrap: wrap;
}
.tweet-form .tw-url {
  flex: 1;
  min-width: 180px;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.tweet-form .tw-url:focus { outline: 2px solid var(--venue); outline-offset: 1px; }
.tweet-form .tw-submit,
.tweet-form .lk-submit {
  background: var(--venue);
  border: 1px solid var(--venue);
  color: var(--stamp-ink);
  border-radius: 6px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}
.tweet-status { font-size: 11.5px; color: var(--ink-soft); flex-basis: 100%; }
.link-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.link-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper-raised);
  font-size: 13px;
}
.link-item a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-item .tweet-unlink { position: static; flex: none; }
.tweet-form .lk-url, .tweet-form .lk-title {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.tweet-form .lk-url { flex: 2; min-width: 180px; }
.tweet-form .lk-title { flex: 1; min-width: 140px; }
.tweet-form .lk-url:focus, .tweet-form .lk-title:focus { outline: 2px solid var(--venue); outline-offset: 1px; }

/* ---------- 動画URLパネル ---------- */
.video-panel {
  margin: 4px 0 14px;
  border: 1px solid var(--venue);
  border-radius: 8px;
  background: var(--paper-raised);
  overflow: hidden;
}
.video-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--venue-soft);
}
.video-panel-title {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-weight: 700;
  font-size: 13.5px;
  color: var(--venue);
}
.video-panel-close {
  border: none;
  background: none;
  color: var(--ink-soft);
  font-size: 14px;
  cursor: pointer;
  width: 24px;
  height: 24px;
  border-radius: 50%;
}
.video-panel-close:hover { background: var(--paper); }
.video-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 14px;
  max-height: 360px;
  overflow-y: auto;
}
.video-item {
  border: 1px solid var(--hairline);
  border-radius: 6px;
  padding: 10px;
  font-size: 12.5px;
}
.video-item-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.video-link { display: block; color: var(--venue); word-break: break-all; font-size: 12.5px; }
.video-item-actions { flex: none; display: flex; gap: 6px; }
.video-remove, .video-edit {
  flex: none;
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 11px;
  background: none;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 2px 8px;
  color: var(--ink-soft);
  cursor: pointer;
  white-space: nowrap;
}
.video-remove:hover { border-color: var(--stamp); color: var(--stamp); }
.video-edit:hover { border-color: var(--venue); color: var(--venue); }
.video-meta { color: var(--ink-soft); font-size: 11px; margin-top: 4px; }
.video-notes { color: var(--ink); font-size: 12px; margin-top: 4px; }
.video-edit-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--hairline);
}
.video-edit-form.hidden { display: none; }
.video-edit-form input {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12.5px;
  padding: 6px 9px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
}
.video-edit-form input:focus { outline: 2px solid var(--venue); outline-offset: 1px; }
.video-edit-actions { display: flex; gap: 8px; }
.ve-save, .ve-cancel {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 12px;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
}
.ve-save { background: var(--venue); border: 1px solid var(--venue); color: var(--stamp-ink); }
.ve-cancel { background: none; border: 1px solid var(--hairline); color: var(--ink-soft); }
.video-edit-status { font-size: 11px; color: var(--ink-soft); }
.video-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px dashed var(--hairline);
}
.video-form input, .video-form textarea {
  font-family: "Hiragino Sans", "Yu Gothic", sans-serif;
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  resize: vertical;
}
.video-form input:focus, .video-form textarea:focus { outline: 2px solid var(--venue); outline-offset: 1px; }
.video-form .v-submit {
  align-self: flex-start;
  background: var(--venue);
  border: 1px solid var(--venue);
  color: var(--stamp-ink);
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 13px;
  cursor: pointer;
}
.video-status { font-size: 11.5px; color: var(--ink-soft); }
