/* site.css - ユーザー画面 全ページ共通（トークン・リセット・ヘッダー/フッター・カード・行カルーセル・チップ・ボタン・グリッド） */

:root {
  --bg: #f6f7fa;
  --surface: #fff;
  --surface-2: #eef1f5;
  --ink: #1f2933;
  --ink-2: #3b4653;
  --muted: #647180;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #315fbd;
  --accent-ink: #fff;
  --accent-soft: rgba(49, 95, 189, 0.1);
  --accent-2: #d9534f;
  --accent-2-soft: rgba(217, 83, 79, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: clamp(12px, 3vw, 40px);
  --gap: clamp(8px, 1.2vw, 14px);
  --cards: 2.5;
  --header-h: 56px;
  --shadow-1: 0 1px 2px rgba(20, 30, 45, 0.06), 0 1px 6px rgba(20, 30, 45, 0.06);
  --shadow-2: 0 6px 18px rgba(20, 30, 45, 0.14), 0 2px 6px rgba(20, 30, 45, 0.08);
  --shadow-3: 0 18px 40px rgba(20, 30, 45, 0.22), 0 6px 14px rgba(20, 30, 45, 0.1);
  --font: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-num: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --focus: 0 0 0 3px rgba(49, 95, 189, 0.4);
}

@media (min-width: 560px) { :root { --cards: 3.5; } }
@media (min-width: 900px) { :root { --cards: 5; --header-h: 60px; } }
@media (min-width: 1200px) { :root { --cards: 6.5; } }
@media (min-width: 1600px) { :root { --cards: 7; } }

/* 分類色（common/tagsets.py の facet + other）。落ち着いた彩度 */
.f-form { --g1: #3b5b95; --g2: #6b8ac9; }
.f-instrument { --g1: #8a5a3c; --g2: #c48f66; }
.f-style { --g1: #764c8c; --g2: #ad86bf; }
.f-program { --g1: #3f7d6a; --g2: #72b19c; }
.f-occasion { --g1: #ad4a3a; --g2: #e08d6e; }
.f-exclude { --g1: #6a6a8b; --g2: #9c9cba; }
.f-other { --g1: #6b7f96; --g2: #9bacbf; }
/* v1 語彙（退役 PoC）の facet 名。昇格までの互換 */
.f-genre { --g1: #764c8c; --g2: #ad86bf; }
.f-audience { --g1: #ad4a3a; --g2: #e08d6e; }

/* ---------- リセット ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.page {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; cursor: pointer; }
a { -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }

:focus-visible { outline: 0; box-shadow: var(--focus); border-radius: 4px; }
a:focus-visible { border-radius: 6px; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- ボタン・チップ・ピル ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn--primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); box-shadow: 0 4px 12px rgba(49, 95, 189, 0.28); }
.btn--primary:hover { background: #2a52a6; }
.btn--ghost { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  font-size: 18px;
  line-height: 1;
}
.icon-btn:hover { background: var(--surface-2); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chip__count { color: var(--muted); font-size: 12px; font-family: var(--font-num); }
.chip:hover .chip__count { color: inherit; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 20px;
  padding: 1px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--g1, #6b7f96) 14%, #fff);
  color: var(--g1, #6b7f96);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pill--free { background: rgba(58, 138, 122, 0.14); color: #2e7466; }

.date-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-family: var(--font-num), var(--font);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.date-chip--weekend { background: var(--accent-2-soft); color: var(--accent-2); }
.date-chip--today { background: var(--accent-2); color: #fff; }
.date-chip--lg { min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 16px; }
.date-chip--lg .date-chip__wd { font-size: 0.85em; }

.distance {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  font-family: var(--font-num), var(--font);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.distance:empty { display: none; }
.distance::before { content: "📍"; font-size: 0.9em; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
}

.site-header__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  grid-template-areas:
    "brand toggle loc"
    "search search search"
    "nav nav nav";
  align-items: center;
  column-gap: 8px;
  max-width: 1760px;
  min-height: var(--header-h);
  margin: 0 auto;
  padding: 6px var(--gutter) 0;
}

.brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 44px;
  color: var(--ink);
  font-size: clamp(17px, 4.6vw, 21px);
  font-weight: 800;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand:hover { color: var(--accent); }

.site-header__search-toggle { grid-area: toggle; }

.loc-chip {
  grid-area: loc;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 46vw;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.loc-chip:hover { border-color: var(--accent); color: var(--accent); }
.loc-chip[data-state="set"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.loc-chip[data-state="busy"] { opacity: 0.7; }
.loc-chip::after { content: "▾"; margin-left: 2px; font-size: 11px; opacity: 0.7; }

.site-nav {
  grid-area: nav;
  display: flex;
  gap: 2px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 10px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.site-nav a:hover { color: var(--accent); }
.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after { opacity: 1; }
.site-nav a[aria-current="page"] { color: var(--accent); }

.site-search {
  grid-area: search;
  display: none;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 4px 0 2px;
}
.site-search[data-open="true"] { display: flex; }
.site-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
}
.site-search input:focus-visible { border-color: var(--accent); }
.site-search button {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
}

@media (min-width: 900px) {
  .site-header__inner {
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "brand nav search loc";
    column-gap: 18px;
    padding-top: 0;
  }
  .site-header__search-toggle { display: none; }
  .site-nav { margin: 0; padding: 0; overflow: visible; }
  .site-nav a { padding: 0 11px; }
  .site-search { display: flex; justify-self: end; width: min(100%, 360px); margin: 0; }
  .loc-chip { max-width: 240px; }
}

.loc-menu {
  position: absolute;
  top: calc(100% - 2px);
  right: var(--gutter);
  z-index: 50;
  display: grid;
  min-width: 180px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}
.loc-menu button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  text-align: left;
  font-size: 14px;
}
.loc-menu button:hover { background: var(--surface-2); }
.loc-menu [aria-checked="true"] { background: var(--surface-2); font-weight: 700; }
.loc-menu [aria-checked="true"]::before { content: '✓ '; }
.loc-menu__label {
  padding: 6px 12px 4px;
  color: var(--muted);
  font-size: 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

/* ---------- エリア選択ダイアログ ---------- */
.area-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: min(88vh, 720px);
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-3);
}
.area-dialog::backdrop { background: rgba(20, 30, 45, 0.45); backdrop-filter: blur(2px); }
.area-dialog__form { display: flex; flex-direction: column; max-height: min(88vh, 720px); }
.area-dialog__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 8px;
}
.area-dialog__head h2 { font-size: 18px; }
.area-dialog__note { padding: 0 18px 10px; color: var(--muted); font-size: 13px; }
.area-dialog__regions { overflow-y: auto; padding: 0 18px 18px; }
.area-dialog__region { padding: 10px 0; border-top: 1px solid var(--line); }
.area-dialog__region h3 { margin-bottom: 8px; color: var(--ink-2); font-size: 14px; }

/* ---------- レイアウト ---------- */
.site-main { display: block; min-height: 60vh; }
.container { max-width: 1760px; margin: 0 auto; padding: 0 var(--gutter); }

.site-footer {
  margin-top: 48px;
  padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 13px;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.site-footer__brand { color: var(--ink-2); font-weight: 700; }
.site-footer__meta { flex: 1 1 auto; }
.site-footer__links { display: flex; gap: 14px; }
.site-footer__links a { color: var(--accent); }
.site-footer__links a:hover { text-decoration: underline; }

/* ---------- 行（カルーセル） ---------- */
.row { position: relative; margin: 30px 0 0; }
.row__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  max-width: 1760px;
  margin: 0 auto 10px;
  padding: 0 var(--gutter);
}
.row__title {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 800;
  letter-spacing: 0.01em;
}
.row__sub { flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row__more {
  margin-left: auto;
  color: var(--accent);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
}
.row__more:hover { text-decoration: underline; }

.row__scroller { position: relative; max-width: 1760px; margin: 0 auto; }
.row__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gutter) * 2 - var(--gap) * (var(--cards) - 1)) / var(--cards));
  gap: var(--gap);
  padding: 6px var(--gutter) 14px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.row__track::-webkit-scrollbar { display: none; }
.row__item { position: relative; min-width: 0; scroll-snap-align: start; }
.row__track--tiles { grid-auto-columns: clamp(150px, 16vw, 210px); }
.row__track--venues { grid-auto-columns: clamp(220px, 20vw, 280px); }
.row__track--rank { grid-auto-columns: clamp(200px, 19vw, 260px); }

.row__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: var(--shadow-2);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-60%);
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.row__arrow--prev { left: calc(var(--gutter) - 22px); }
.row__arrow--next { right: calc(var(--gutter) - 22px); }
.row__arrow:hover { transform: translateY(-60%) scale(1.06); background: #fff; }
.row__arrow:disabled { opacity: 0; pointer-events: none; }
@media (hover: hover) and (min-width: 900px) {
  .row__arrow { display: grid; place-items: center; }
}

/* ---------- 公演カード ---------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-width: 0;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover,
.card:focus-within { transform: translateY(-2px); box-shadow: var(--shadow-2); }
@media (prefers-reduced-motion: reduce) { .card, .card:hover { transform: none; } }

.card__media {
  position: relative;
  display: block;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--surface-2);
}
.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-2);
}
.card--landscape .card__media { background: linear-gradient(160deg, var(--g1, #6b7f96), var(--g2, #9bacbf)); }
.card--landscape .card__media img { position: relative; z-index: 1; object-fit: contain; }
.card--landscape .card__media::before {
  content: "";
  position: absolute;
  inset: -20px;
  background-image: var(--poster);
  background-size: cover;
  background-position: center;
  filter: blur(18px) saturate(1.1);
  opacity: 0.8;
}
.card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(31, 41, 51, 0.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px 10px;
}
.card__meta { display: flex; align-items: center; gap: 6px; min-width: 0; }
.card__time { color: var(--ink-2); font-family: var(--font-num), var(--font); font-size: 12.5px; font-weight: 700; }
.card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.card__venue,
.card__performers {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.card__venue { color: var(--ink-2); }
.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  margin-top: auto;
  padding-top: 4px;
}
.card__foot .pill { flex: 0 1 auto; }
.card__foot .distance { flex: 0 0 auto; margin-left: auto; }
.card__foot:empty { display: none; }

/* チケット風プレースホルダー（ポスター無し） */
.ticket {
  --t1: var(--g1, hsl(var(--hue, 210) 42% 48%));
  --t2: var(--g2, hsl(calc(var(--hue, 210) + 24) 46% 66%));
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 10% 9% 8%;
  background: linear-gradient(160deg, var(--t1), var(--t2));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.22), transparent 42%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 2px, transparent 2px 12px);
  pointer-events: none;
}
.ticket__date {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-num), var(--font);
  line-height: 1;
}
.ticket__day { font-size: clamp(30px, 5.6cqw, 48px); font-weight: 800; letter-spacing: -0.02em; }
.ticket__mon { font-size: clamp(12px, 2cqw, 15px); font-weight: 700; opacity: 0.92; }
.ticket__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 8%;
  font-size: clamp(13px, 2.1cqw, 16px);
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.ticket__venue {
  margin-top: auto;
  padding-top: 12%;
  overflow: hidden;
  font-size: clamp(10px, 1.6cqw, 12px);
  white-space: nowrap;
  text-overflow: ellipsis;
  opacity: 0.9;
}
.ticket__venue::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 22%;
  border-top: 2px dashed rgba(255, 255, 255, 0.55);
}
.ticket__notch {
  position: absolute;
  bottom: calc(22% - 7px);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}
.ticket__notch--l { left: -7px; }
.ticket__notch--r { right: -7px; }
.card__media { container-type: inline-size; }

/* ---------- ランキング・タイル ---------- */
.rank {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  min-height: 120px;
  padding: 8px 10px 8px 4px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rank:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.rank__num {
  flex: 0 0 auto;
  min-width: 1.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
  font-family: var(--font-num);
  font-size: clamp(64px, 8vw, 120px);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.06em;
  text-align: center;
}
.rank__num--1 { -webkit-text-stroke-color: var(--accent); }
.rank__body { min-width: 0; }
.rank__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}
.rank__full { display: block; overflow: hidden; color: var(--muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rank__count { display: block; margin-top: 4px; color: var(--accent); font-family: var(--font-num), var(--font); font-size: 13px; font-weight: 700; }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 16px 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.monogram {
  display: grid;
  place-items: center;
  width: clamp(56px, 6vw, 72px);
  height: clamp(56px, 6vw, 72px);
  border-radius: 50%;
  background: linear-gradient(150deg, hsl(var(--hue, 210) 40% 46%), hsl(calc(var(--hue, 210) + 30) 45% 64%));
  color: #fff;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  box-shadow: inset 0 -3px 8px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(20, 30, 45, 0.15);
}
.tile__name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  width: 100%;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.tile__count { color: var(--muted); font-size: 12px; }

/* 会場タイル */
.venue-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.venue-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.venue-tile__mosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(150deg, hsl(var(--hue, 210) 30% 52%), hsl(calc(var(--hue, 210) + 40) 35% 70%));
}
.venue-tile__mosaic img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: cover; }
.venue-tile__mosaic img:first-child { grid-row: 1 / 3; }
.venue-tile__mosaic--1 { grid-template-columns: 1fr; }
.venue-tile__mosaic--1 img:first-child { grid-row: auto; }
.venue-tile__mosaic--2 img:first-child { grid-row: auto; }
.venue-tile__mosaic--2 { grid-template-rows: minmax(0, 1fr); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.venue-tile__mosaic--0 { display: grid; place-items: center; color: rgba(255, 255, 255, 0.9); font-size: 30px; }
.venue-tile__body { display: flex; flex-direction: column; gap: 2px; padding: 9px 10px 10px; }
.venue-tile__name { overflow: hidden; font-size: 14px; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.venue-tile__pref { color: var(--muted); font-size: 12px; }
.venue-tile__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 4px; }
.venue-tile__count { color: var(--accent); font-family: var(--font-num), var(--font); font-size: 13px; font-weight: 700; }
.venue-tile__map { position: relative; z-index: 2; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-size: 15px; }
.venue-tile__map:hover { background: var(--accent-soft); }
.venue-tile__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.venue-tile { position: relative; }

/* ---------- 汎用グリッド・空状態 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--gap);
}
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); } }

.empty {
  margin: 0 var(--gutter);
  padding: 22px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}
.empty a { color: var(--accent); font-weight: 700; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

.note-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 0 var(--gutter);
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.note-box p { flex: 1 1 240px; color: var(--ink-2); font-size: 14px; }

.sr-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- トースト ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(31, 41, 51, 0.92);
  color: #fff;
  font-size: 13px;
  box-shadow: var(--shadow-2);
  transform: translateX(-50%);
}

/* ======================================================================
   詳細・一覧・探索ページ（WS1-c）。既存トークン・カード・行を再利用する
   ====================================================================== */

/* ---------- 共通: タブ・バッジ・チップ状態・パンくず ---------- */
.tabs {
  display: flex;
  gap: 4px;
  margin: 0 calc(var(--gutter) * -1);
  padding: 0 var(--gutter);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 12px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}
.tab::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 2px;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.15s ease;
}
.tab:hover { color: var(--accent); }
.tab--active { color: var(--accent); }
.tab--active::after { opacity: 1; }
@media (max-width: 419px) {
  /* 390px 幅で期間タブ5つが収まるように詰める */
  .tabs { gap: 0; }
  .tab { padding: 0 8px; font-size: 13px; }
  .tab::after { left: 6px; right: 6px; }
}

.chip--on { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.chip--on:hover { background: #2a52a6; color: var(--accent-ink); }
.chip--on .chip__count { color: inherit; }
.chip__x { font-size: 14px; line-height: 1; opacity: 0.85; }
.chip--genre { border-color: color-mix(in srgb, var(--g1, #6b7f96) 40%, #fff); background: color-mix(in srgb, var(--g1, #6b7f96) 10%, #fff); color: var(--g1, #6b7f96); }
.chip--genre:hover { background: var(--g1, #6b7f96); border-color: var(--g1, #6b7f96); color: #fff; }

.badge {
  display: inline-block;
  vertical-align: middle;
  padding: 1px 7px;
  border-radius: 5px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}
.pill--past { background: rgba(100, 113, 128, 0.14); color: var(--muted); }
.pill--link:hover { background: var(--g1, #6b7f96); color: #fff; }

.breadcrumb { padding: 12px var(--gutter) 0; color: var(--muted); font-size: 12.5px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.breadcrumb li + li::before { content: "›"; color: var(--line-strong); }
.breadcrumb a { color: var(--accent); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb [aria-current="page"] span {
  display: inline-block;
  max-width: 60vw;
  overflow: hidden;
  color: var(--ink-2);
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- 公演詳細 ---------- */
.detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding-top: 14px;
}
.detail__gallery { min-width: 0; }
.gallery { display: flex; flex-direction: column; gap: 10px; }
.gallery__main {
  position: relative;
  display: block;
  width: min(100%, 420px);
  margin: 0 auto;
  overflow: hidden;
  border-radius: 14px;
  background: var(--surface-2);
  box-shadow: var(--shadow-2);
  isolation: isolate;
}
.gallery__main img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  background: #fff;
}
.gallery__main--landscape { width: 100%; }
.gallery__main--landscape::before {
  content: "";
  position: absolute;
  inset: -24px;
  background-image: var(--poster);
  background-size: cover;
  background-position: center;
  filter: blur(20px) saturate(1.1);
  opacity: 0.75;
}
.gallery__main--landscape img { background: transparent; }
.gallery__zoom {
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(31, 41, 51, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.gallery__main:hover .gallery__zoom,
.gallery__main:focus-visible .gallery__zoom { opacity: 1; }
@media (hover: none) { .gallery__zoom { opacity: 0.9; } }
.gallery__thumbs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.gallery__thumb {
  display: block;
  width: 64px;
  height: 84px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--surface-2);
  box-shadow: var(--shadow-1);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { transform: translateY(-1px); }
.gallery__thumb[aria-pressed="true"] { border-color: var(--accent); }
.gallery__caption { color: var(--muted); font-size: 12px; text-align: center; }

.detail__placeholder {
  width: min(100%, 360px);
  margin: 0 auto;
  aspect-ratio: 5 / 7;
  overflow: hidden;
  border-radius: 14px;
  box-shadow: var(--shadow-2);
  container-type: inline-size;
}
.ticket--lg { padding: 9% 9% 8%; }
.ticket--lg .ticket__day { font-size: clamp(44px, 16cqw, 84px); }
.ticket--lg .ticket__mon { font-size: clamp(14px, 4.5cqw, 20px); }
.ticket--lg .ticket__title { font-size: clamp(16px, 5.4cqw, 24px); -webkit-line-clamp: 4; }
.ticket--lg .ticket__venue { font-size: clamp(12px, 3.6cqw, 15px); }

.detail__main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.detail__kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.detail__times { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-family: var(--font-num), var(--font); font-size: 15px; font-weight: 700; }
.detail__time-label { margin-right: 4px; color: var(--muted); font-size: 12px; font-weight: 700; }
.detail__time--start { color: var(--ink); font-size: 17px; }
.detail__title {
  font-size: clamp(21px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
  overflow-wrap: anywhere;
}
.detail__venue { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: 16px; font-weight: 700; }
.detail__venue-link { color: var(--ink-2); }
.detail__venue-link:hover { color: var(--accent); text-decoration: underline; }
.detail__pref { color: var(--muted); font-size: 13px; font-weight: 400; }
.detail__loc { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13px; }
.detail__loc .distance { font-size: 14px; }
.detail__from { color: var(--muted); }
/* 位置行は距離が分かったときだけ出す（CTA の「地図で見る」と重ねない） */
.detail__loc:not(:has(.distance:not(:empty))) { display: none; }
.detail__map-link { color: var(--accent); font-weight: 700; }
.detail__map-link:hover { text-decoration: underline; }
.detail__map-link::before { content: "· "; color: var(--muted); font-weight: 400; }
.detail__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.detail__tags .pill { min-height: 24px; padding: 2px 10px; font-size: 12px; }
.detail__copy { font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.detail__desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.75; white-space: pre-line; }
.detail__facts { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow-1); }
.detail__fact { display: grid; grid-template-columns: 3.5em minmax(0, 1fr); gap: 8px; align-items: baseline; }
.detail__fact dt { color: var(--muted); font-size: 12px; font-weight: 700; }
.detail__fact dd { margin: 0; font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.detail__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.detail__note { color: var(--muted); font-size: 12.5px; }

.detail__body { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.detail__sections { display: grid; gap: 16px; }
.detail__section { padding: 16px 18px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.detail__h2 { margin-bottom: 10px; font-size: 16px; font-weight: 800; }
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px 16px; }
.people__item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; min-width: 0; padding: 4px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.people__name { font-weight: 700; color: var(--ink); }
.people__name:hover { color: var(--accent); text-decoration: underline; }
.people__role { color: var(--muted); font-size: 12.5px; }
.program { display: grid; gap: 4px; counter-reset: program; }
.program__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  padding: 6px 0 6px 28px;
  border-bottom: 1px dashed var(--line);
  font-size: 14.5px;
  position: relative;
}
.program__item::before {
  counter-increment: program;
  content: counter(program);
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--font-num), var(--font);
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
}
.program__composer { color: var(--accent); font-weight: 700; }
.program__composer:hover { text-decoration: underline; }
.program__title { color: var(--ink); overflow-wrap: anywhere; }
.venue-info__body { display: grid; gap: 4px; }
.venue-info__name { font-size: 15px; font-weight: 700; }
.venue-info__address { color: var(--ink-2); font-size: 13.5px; }
.venue-info__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.page-detail .row { margin-top: 30px; }

@media (min-width: 720px) {
  .detail__grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(20px, 3vw, 40px); align-items: start; padding-top: 18px; }
  .detail__gallery { position: sticky; top: calc(var(--header-h) + 14px); }
  .gallery__main { width: min(100%, 460px); }
}
@media (min-width: 1000px) {
  .detail__grid { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); }
  .detail__sections { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail__section.venue-info { grid-column: 1 / -1; }
}
@media (min-width: 1400px) {
  .detail__grid { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
}

/* ---------- 一覧・検索 ---------- */
.browse { display: grid; gap: 14px; padding-top: 18px; }
.browse__head { display: grid; gap: 8px; }
.browse__title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.browse__count { color: var(--muted); font-size: 13.5px; }
.browse__total { color: var(--ink); font-family: var(--font-num), var(--font); font-size: 18px; margin-right: 2px; }
.browse__chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.browse__clear { color: var(--accent); font-size: 13px; font-weight: 700; }
.browse__clear:hover { text-decoration: underline; }
.browse__tabs { border-bottom: 1px solid var(--line); }
.browse__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.browse__group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.browse__group-label { color: var(--muted); font-size: 12.5px; font-weight: 700; margin-right: 2px; }
.browse__group .chip { min-height: 30px; padding: 0 11px; font-size: 12.5px; }
.browse__sort { margin-left: auto; }
.browse__locate[data-loc-state="unset"] { border-style: dashed; }
.browse__genres .chip { min-height: 30px; font-size: 12.5px; }
.browse > * { min-width: 0; }
@media (max-width: 719px) {
  /* モバイルではジャンルチップを1行の横スクロールにして縦を圧迫しない
     （grid item の min-width:auto で親が広がらないよう min-width:0 を併用） */
  .browse__genres { min-width: 0; margin: 0 calc(var(--gutter) * -1); }
  .browse__genres .chips { flex-wrap: nowrap; gap: 6px; padding: 2px var(--gutter) 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .browse__genres .chips::-webkit-scrollbar { display: none; }
}
.browse__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--gap);
  margin-top: 4px;
}
@media (min-width: 900px) { .browse__grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); } }
@media (min-width: 1400px) { .browse__grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.browse__item { min-width: 0; }
.browse__empty { margin: 8px 0 0; padding: 36px 18px; }
.browse__empty-icon { font-size: 36px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; }
.pager__list { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pager__num,
.pager__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-2);
  font-family: var(--font-num), var(--font);
  font-size: 14px;
  font-weight: 700;
}
.pager__num:hover,
.pager__nav:hover { border-color: var(--accent); color: var(--accent); }
.pager__num--active { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.pager__nav--disabled { opacity: 0.4; pointer-events: none; }
.pager__gap { padding: 0 4px; color: var(--muted); }

/* ---------- 探索 ---------- */
.explore { display: grid; gap: 16px; padding-top: 14px; }
.explore__switch { border-bottom: 1px solid var(--line); }
.explore__head { display: grid; gap: 4px; }
.explore__title { font-size: clamp(20px, 3vw, 28px); font-weight: 800; }
.explore__sub { color: var(--muted); font-size: 13.5px; }

.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--gap); }
.genre-tile {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 112px;
  padding: 14px;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--g1, #6b7f96), var(--g2, #9bacbf));
  color: #fff;
  box-shadow: var(--shadow-1);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.genre-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.genre-tile--empty { opacity: 0.55; }
.genre-tile__label { font-size: 16px; font-weight: 800; line-height: 1.3; }
.genre-tile__count { font-family: var(--font-num), var(--font); font-size: 12.5px; font-weight: 700; opacity: 0.92; }

.composer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--gap); counter-reset: none; }
.composer-tile {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 10px 12px 10px 6px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.composer-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.composer-tile__rank {
  flex: 0 0 auto;
  min-width: 1.4em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
  font-family: var(--font-num);
  font-size: 34px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  text-align: center;
}
.composer-tile__body { display: grid; gap: 2px; min-width: 0; }
.composer-tile__name { font-size: 15px; font-weight: 800; line-height: 1.3; overflow-wrap: anywhere; }
.composer-tile__full { overflow: hidden; color: var(--muted); font-size: 11.5px; text-overflow: ellipsis; white-space: nowrap; }
.composer-tile__count { color: var(--accent); font-family: var(--font-num), var(--font); font-size: 12.5px; font-weight: 700; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--gap); }
.tile-grid .tile { padding: 14px 8px 12px; }

.venue-regions { display: grid; gap: 22px; }
.venue-region__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; font-size: 18px; font-weight: 800; }
.venue-region__title a:hover { color: var(--accent); }
.venue-region__meta { color: var(--muted); font-family: var(--font-num), var(--font); font-size: 12.5px; font-weight: 700; }
.venue-region__list { display: grid; gap: 8px; align-items: start; }
@media (min-width: 900px) { .venue-region__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .venue-region__list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.venue-pref { min-width: 0; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-1); }
.venue-pref summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 14px;
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.venue-pref summary::-webkit-details-marker { display: none; }
.venue-pref summary::after { content: "▾"; margin-left: auto; color: var(--muted); font-size: 12px; transition: transform 0.15s ease; }
.venue-pref:not([open]) summary::after { transform: rotate(-90deg); }
.venue-pref__meta { color: var(--muted); font-family: var(--font-num), var(--font); font-size: 12px; font-weight: 700; }
.venue-pref__body { padding: 0 14px 12px; }
.venue-pref__all { margin-bottom: 8px; }
.venue-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2px 18px; }
.venue-list__item { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.venue-list__item--empty { color: var(--muted); }
.venue-list__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.venue-list__name:hover { color: var(--accent); text-decoration: underline; }
.venue-list__count { flex: 0 0 auto; color: var(--accent); font-family: var(--font-num), var(--font); font-size: 12.5px; font-weight: 700; }
.venue-list__item--empty .venue-list__count { color: var(--muted); }
.venue-list__map { flex: 0 0 auto; display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); font-size: 14px; }
.venue-list__map:hover { background: var(--accent-soft); }

/* ---------- エラーページ ---------- */
.error { display: grid; gap: 10px; justify-items: center; padding: 56px var(--gutter) 24px; text-align: center; }
.error__code { color: var(--line-strong); font-family: var(--font-num); font-size: 72px; font-weight: 900; line-height: 1; letter-spacing: -0.04em; }
.error__title { font-size: clamp(20px, 3vw, 26px); font-weight: 800; }
.error__note { max-width: 40em; color: var(--ink-2); }
.error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

/* タグの分類見出し */
.genre-facet__title { margin-bottom: 10px; font-size: 18px; font-weight: 800; }
.detail__tag-groups { display: grid; gap: 8px; }
.detail__tag-group { display: grid; gap: 4px; }
.detail__tag-label { color: var(--muted); font-size: 12px; font-weight: 700; }

/* 作曲家の肖像とジャンルのアートワーク */
.composer-grid { grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); }
.composer-tile, .rank { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; }
.composer-tile__portrait, .rank__portrait { display: block; width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; }
.composer-tile__placeholder, .rank__placeholder { display: grid; place-items: center; aspect-ratio: 1; color: #b8aa8c; background: #eee9df; font-size: 64px; }
.composer-tile__body, .rank__body { display: grid; gap: 4px; padding: 14px; }
.composer-tile__rank, .rank__num { position: absolute; top: 10px; left: 10px; min-width: 32px; padding: 5px 7px; border-radius: 6px; background: rgba(29, 32, 26, .7); color: #fff; -webkit-text-stroke: 0; font-size: 21px; line-height: 1; letter-spacing: 0; }
.rank__num--1 { background: #786339; }
.row__track--rank { grid-auto-columns: clamp(170px, 17vw, 230px); }
.genre-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.genre-tile { position: relative; isolation: isolate; overflow: hidden; width: 100%; min-height: 0; aspect-ratio: 1; }
.genre-tile::after { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 35%, rgba(27, 34, 27, .78) 100%); }
.genre-tile__image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.genre-tile__label, .genre-tile__count { position: relative; z-index: 2; }
.genre-tile__label { text-wrap: balance; }
.row__track--genres { grid-auto-columns: clamp(180px, 18vw, 240px); }
.row__artwork { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.row__head--artwork { align-items: center; }
@media (max-width: 559px) {
  .composer-grid, .genre-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .composer-tile__body, .rank__body { padding: 11px; }
  .genre-grid .genre-tile { min-height: 175px; padding: 12px; }
  .genre-tile__label { font-size: 14px; }
  .row__artwork { width: 42px; height: 42px; }
}
