/*
 * myticket（~/Projects/myticket）とデザインをそろえるための共通部分。
 * コピー元と日付（2026-09-28 時点）:
 *   - app/assets/stylesheets/application.scss … Bootstrap 変数の上書き（font-size-base / badge / リンク下線なし）
 *   - app/assets/stylesheets/maichike.css      … body 背景色、.date-num、.badge のフォント
 * myticket 側を変えたら、ここも合わせて直す。
 */

/* ---- application.scss の Bootstrap 変数の上書き（CDN 版 Bootstrap なので CSS 変数で上書き） ---- */
:root {
  --bs-body-font-size: 0.9rem;
  --bs-link-decoration: none;
  --date-num-scale: 1.35;
  --site-header-height: 56px;
}

/* Local collection administration */
.admin-source-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: start;
}

.admin-source-form-panel,
.admin-source-summary {
  border: 1px solid #dee2e6;
  border-radius: 8px;
  padding: 24px;
  background: #fff;
}

.admin-source-metrics > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid #e9ecef;
}

.admin-source-metrics > div:last-child {
  border-bottom: 0;
}

.admin-source-metrics dt {
  color: #6c757d;
  font-weight: 500;
}

.admin-source-metrics dd {
  margin: 0;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 767.98px) {
  .admin-source-layout {
    grid-template-columns: 1fr;
  }

  .admin-source-form-panel,
  .admin-source-summary {
    padding: 18px;
  }
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.badge {
  --bs-badge-padding-y: 0.2rem;
  --bs-badge-padding-x: 0.5rem;
  --bs-badge-font-size: 0.7rem;
  /* 日本語が上に寄って見えるのを防ぐため、ラテン文字と日本語を同じフォントで描く（myticket と同じ対策） */
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
    "Noto Sans CJK JP", "Yu Gothic", Meiryo, sans-serif;
}

/* ---- maichike.css ---- */
html {
  scrollbar-gutter: stable;
}

body {
  background-color: #fafaf9;
}

/* 日付の「月」「日」の数字だけを大きく見せる */
.date-num {
  font-size: calc(1em * var(--date-num-scale));
  font-weight: 700;
  line-height: 1;
}

/* ---- hall-info 独自 ---- */
.concert-card .card-title {
  font-size: 1rem;
  line-height: 1.45;
}

.region-crumbs {
  --bs-breadcrumb-margin-bottom: 0.5rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.detail dl dt {
  color: var(--bs-secondary-color);
  font-weight: 600;
}

.answer {
  white-space: pre-wrap;
  line-height: 1.8;
}

.hit-source {
  white-space: pre-wrap;
  font-size: 0.8rem;
}

.site-header {
  min-height: var(--site-header-height);
  position: sticky;
  top: 0;
  z-index: 1040;
}

.performance-browse-main {
  width: 100%;
}

.performance-browse-page .site-header {
  margin-bottom: 0 !important;
}

.performance-search-shell {
  position: sticky;
  top: var(--site-header-height);
  z-index: 1030;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  background: #e2e8f0;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.performance-search-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
}

.performance-filter-details {
  min-width: 0;
}

.performance-filter-summary-trigger {
  display: none;
}

.performance-filter-body,
.performance-filter-details:not([open]) > .performance-filter-body {
  display: grid;
  gap: 0.55rem;
}

.performance-filter-form {
  display: grid;
  grid-template-columns:
    minmax(240px, 1.55fr)
    minmax(155px, 0.8fr)
    minmax(210px, 1.05fr)
    minmax(140px, 0.8fr)
    minmax(160px, 0.75fr);
  gap: 0.5rem;
  align-items: center;
}

.filter-field {
  min-width: 0;
}

.performance-filter-form .input-group {
  flex-wrap: nowrap;
}

.performance-filter-form .input-group-text {
  flex: 0 0 auto;
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 700;
}

.performance-filter-form .form-control,
.performance-filter-form .form-select {
  min-width: 0;
  font-weight: 600;
}

.performance-query-group .performance-query-input {
  border-radius: 0 var(--bs-border-radius-sm) var(--bs-border-radius-sm) 0 !important;
}

.performance-query-group:has(.filter-query-clear:not([hidden])) .performance-query-input {
  border-radius: 0 !important;
}

.performance-query-input::-webkit-search-cancel-button {
  appearance: none;
}

.filter-query-clear {
  display: inline-flex;
  min-width: 2rem;
  align-items: center;
  justify-content: center;
  border-left: 0;
  background: #fff;
  color: #64748b;
  cursor: pointer;
  font-size: 1.05rem;
  line-height: 1;
}

.filter-query-clear:hover,
.filter-query-clear:focus-visible {
  background: #e2e8f0;
  color: #1f2937;
  text-decoration: none;
}

.filter-query-clear[hidden] {
  display: none;
}

.category-button.active {
  border-color: #0d6efd;
  background: #0d6efd;
  color: #fff;
}

.performance-view-toolbar {
  max-width: 1440px;
  margin: 0.85rem auto 0;
  padding: 0 1rem;
}

.performance-view-toolbar-inner {
  display: flex;
  justify-content: flex-end;
}

.view-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 0 0 auto;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.view-toggle-option {
  display: inline-flex;
  min-height: 2.15rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 6px;
  padding: 0 0.75rem;
  color: #475569;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.view-toggle-option:hover,
.view-toggle-option:focus-visible {
  background: #eef2f7;
  color: #1f2937;
  text-decoration: none;
}

.view-toggle-option.active {
  background: #0d6efd;
  color: #fff;
}

.view-toggle-symbol {
  font-size: 1rem;
  line-height: 1;
}

.performance-results-shell {
  max-width: 1440px;
  margin: 0.75rem auto 0;
  padding: 0 1rem;
}

.performance-results-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .performance-filter-form {
    grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(140px, 1fr));
  }

}

@media (max-width: 767.98px) {
  .site-header .container {
    gap: 0.35rem;
  }

  .site-header .navbar-brand {
    margin-right: 0.5rem;
    font-size: 1rem;
  }

  .site-header .navbar-nav {
    gap: 0.75rem !important;
    margin-left: auto;
  }

  .site-header .nav-link {
    padding-right: 0;
    padding-left: 0;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .performance-search-inner {
    padding: 0.45rem 0.75rem;
  }

  .performance-filter-summary-trigger {
    display: flex;
    min-height: 2.25rem;
    align-items: center;
    gap: 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0.35rem 0.55rem;
    background: #fff;
    color: #1f2937;
    cursor: pointer;
    list-style: none;
  }

  .performance-filter-summary-trigger::-webkit-details-marker {
    display: none;
  }

  .performance-filter-summary-trigger::after {
    content: "⌄";
    margin-left: auto;
    color: #64748b;
    font-weight: 800;
  }

  .performance-filter-details[open] .performance-filter-summary-trigger::after {
    content: "⌃";
  }

  .performance-filter-summary-title {
    flex: 0 0 auto;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
  }

  .performance-filter-summary-text {
    min-width: 0;
    overflow: hidden;
    color: #1f2937;
    font-size: 0.82rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .performance-filter-details:not([open]) > .performance-filter-body {
    display: none;
  }

  .performance-filter-body {
    max-height: min(58vh, 30rem);
    margin-top: 0.5rem;
    overflow: auto;
  }

  .performance-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-query,
  .filter-prefecture,
  .filter-genre {
    grid-column: 1 / -1;
  }

  .view-toggle-option {
    min-height: 2.25rem;
    padding: 0 0.55rem;
    font-size: 0.78rem;
  }

  .performance-results-shell {
    margin-top: 0.65rem;
    padding: 0 0.75rem;
  }

  .performance-view-toolbar {
    margin-top: 0.65rem;
    padding: 0 0.75rem;
  }

  .performance-results-heading {
    align-items: flex-start;
  }
}

@media (max-width: 390px) {
  .site-header .navbar-brand {
    font-size: 0.95rem;
  }

  .site-header .nav-link {
    font-size: 0.78rem;
  }

  .view-toggle-option {
    gap: 0.25rem;
    padding: 0 0.45rem;
  }
}

/* ---- Home: myticket event index presentation ---- */
.hall-home-page .navbar {
  margin-bottom: 0 !important;
}

.hall-home-main {
  width: 100%;
}

.home-search-band {
  z-index: 1000;
  background: #e2e8f0;
  border-top: 1px solid #cbd5e1;
  border-bottom: 1px solid #cbd5e1;
  margin-bottom: 2rem;
}

.home-search-band .input-group-text {
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 600;
}

.home-category-filter,
.home-prefecture-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: center;
}

.category-button {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  color: #6c757d;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  line-height: 1.4;
  padding: 3px 10px;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.category-button:hover,
.category-button:focus-visible {
  background: #f1f3f5;
  color: #495057;
  text-decoration: none;
}

.home-index-shell {
  max-width: 1440px;
}

.home-summary-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, auto)) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: 0.5rem;
  align-items: stretch;
  margin-bottom: 1.25rem;
}

.home-summary-item,
.home-hall-search {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.home-summary-item {
  color: inherit;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 54px;
  padding: 0.45rem 0.75rem;
}

.home-summary-item:hover,
.home-summary-item:focus-visible {
  color: inherit;
  text-decoration: none;
}

.home-summary-number {
  color: #1c1917;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.1;
}

.home-summary-label {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.home-hall-search {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem;
}

.home-hall-search .form-control {
  min-width: 0;
}

.home-hall-search .btn {
  white-space: nowrap;
}

.category-section + .category-section {
  margin-top: 2rem;
}

.category-title {
  background: #fff;
  border-left: 4px solid #b45309;
  color: #1c1917;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 16px;
  padding: 10px 12px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.category-title span {
  color: #6c757d;
  font-size: 0.85rem;
  font-weight: 400;
}

.home-event-card {
  background-color: #fff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 8px 20px -10px rgba(15, 23, 42, 0.10);
  display: flex;
  flex-direction: column;
  height: 440px;
  overflow: hidden;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.home-event-card:hover {
  border-color: rgba(15, 23, 42, 0.10);
  box-shadow: 0 4px 8px -4px rgba(15, 23, 42, 0.08),
    0 24px 36px -18px rgba(15, 23, 42, 0.22);
  transform: translateY(-4px);
}

.home-event-card a {
  color: inherit;
  display: block;
  height: 100%;
  text-decoration: none;
}

.home-event-info {
  padding: 0.9rem 1rem 1rem;
  text-align: left;
}

.event-organizer {
  color: #94a3b8;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 0.1rem;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.event-title-row,
.concert-card-title-row {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  align-items: start;
  gap: 0.45rem;
}

.event-genre-icon {
  --genre-icon-bg: #f1f5f9;
  --genre-icon-color: #475569;
  display: inline-flex;
  width: 1.8rem;
  height: 1.8rem;
  flex: 0 0 1.8rem;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--genre-icon-bg);
  color: var(--genre-icon-color);
  font-size: 0.92rem;
  line-height: 1;
}

.event-genre-icon--classical {
  --genre-icon-bg: #ede9fe;
  --genre-icon-color: #6d28d9;
}

.event-genre-icon--jazz {
  --genre-icon-bg: #fef3c7;
  --genre-icon-color: #a16207;
}

.event-genre-icon--dance {
  --genre-icon-bg: #fce7f3;
  --genre-icon-color: #be185d;
}

.event-genre-icon--pops {
  --genre-icon-bg: #ffedd5;
  --genre-icon-color: #c2410c;
}

.event-genre-icon--musical {
  --genre-icon-bg: #ffe4e6;
  --genre-icon-color: #be123c;
}

.event-genre-icon--workshop {
  --genre-icon-bg: #ccfbf1;
  --genre-icon-color: #0f766e;
}

.event-genre-icon--traditional {
  --genre-icon-bg: #e0e7ff;
  --genre-icon-color: #4338ca;
}

.event-genre-icon--children {
  --genre-icon-bg: #e0f2fe;
  --genre-icon-color: #0369a1;
}

.event-genre-icon--film {
  --genre-icon-bg: #e5e7eb;
  --genre-icon-color: #374151;
}

.event-genre-icon--theatre {
  --genre-icon-bg: #dcfce7;
  --genre-icon-color: #15803d;
}

.event-genre-icon--rakugo {
  --genre-icon-bg: #fef3c7;
  --genre-icon-color: #92400e;
}

.event-genre-icon--talk {
  --genre-icon-bg: #cffafe;
  --genre-icon-color: #0e7490;
}

.event-title-row .event-title,
.concert-card-title-row .card-title {
  min-width: 0;
  margin-bottom: 0;
}

.concert-card-title-row {
  margin-bottom: 0.5rem;
}

.event-title {
  color: #0f172a;
  display: -webkit-box;
  font-size: 0.78rem;
  font-weight: 700;
  height: 2.1rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  margin-bottom: 0.2rem;
  overflow: hidden;
  text-align: left;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  word-break: break-word;
}

.event-date,
.event-place {
  color: #64748b;
  font-size: 0.68rem;
  margin-bottom: 0.05rem;
  overflow: hidden;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}

.home-event-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.3rem;
}

.event-description {
  color: #64748b;
  display: -webkit-box;
  font-size: 0.66rem;
  line-height: 1.4;
  margin-bottom: 0;
  overflow: hidden;
  text-align: left;
  white-space: pre-line;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  word-break: break-word;
}

.home-more-link {
  margin: 1rem 0 0;
  text-align: right;
}

@media (min-width: 481px) and (max-width: 991px) {
  .home-event-card {
    height: 100%;
    overflow: hidden;
    padding: 15px;
    width: 100%;
  }

  .home-event-info {
    padding: 0 0 0 0.5rem !important;
    text-align: left !important;
  }

  .event-title {
    font-size: 1rem !important;
    font-weight: 700 !important;
    height: 4rem !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }
}

@media (max-width: 991.98px) {
  .home-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .home-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hall-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .home-event-card {
    height: 100%;
    overflow: hidden;
    padding: 10px;
    width: 100%;
  }

  .home-event-info {
    padding: 0 0 0 0.5rem !important;
    text-align: left !important;
  }

  .event-title {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    height: 3.5rem !important;
    line-height: 1.3 !important;
    text-align: left !important;
  }

  .event-description {
    -webkit-line-clamp: 2;
  }

  .home-event-tags {
    display: none;
  }
}
/* ---- Compact performance results ---- */
.home-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 0.75rem;
}

.home-event-card {
  height: 168px;
  padding: 0;
  border-radius: 8px;
}

.home-event-card__link,
.home-event-card a.home-event-card__link {
  display: block;
  height: 100%;
}

.home-event-info {
  min-width: 0;
  overflow: hidden;
  padding: 0.7rem 0.8rem;
}

.event-organizer {
  letter-spacing: 0;
}

.event-title {
  height: auto;
  min-height: 2.15rem;
  font-size: 0.86rem;
  letter-spacing: 0;
  line-height: 1.3;
}

.event-date,
.event-place {
  font-size: 0.68rem;
}

.event-title-row {
  margin-bottom: 0.2rem;
}

.home-event-tags {
  margin-top: 0.25rem;
}

.home-event-tags .badge {
  font-size: 0.62rem;
}

.event-description {
  margin-top: 0.25rem;
  font-size: 0.64rem;
  -webkit-line-clamp: 2;
}

@media (max-width: 640px) {
  .home-event-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .home-event-card {
    height: 150px;
    padding: 0;
  }

  .home-event-info {
    padding: 0.6rem 0.7rem !important;
  }

  .event-title {
    height: auto !important;
    min-height: 2.1rem;
    font-size: 0.82rem !important;
    line-height: 1.3 !important;
  }

  .event-description,
  .home-event-tags {
    display: none;
  }
}

/* 公演マップ */
.concert-map-page {
  background: #f7f3ee;
}

.concert-map-main {
  max-width: 1500px;
}

.map-hero {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1.5rem;
  padding: 0.25rem 0 1rem;
}

.map-eyebrow {
  margin: 0 0 0.25rem;
  color: #9b3412;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.map-hero h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2.1rem);
  font-weight: 800;
}

.map-copy {
  max-width: 46rem;
  margin: 0.55rem 0 0;
  color: #675f57;
}

.map-window-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.map-window-tab {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border: 1px solid #d7cdc2;
  border-radius: 999px;
  padding: 0 0.85rem;
  background: #fffaf4;
  color: #4c463f;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.map-window-tab.active {
  border-color: #9b3412;
  background: #9b3412;
  color: #fff;
}

.map-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid #ded5cc;
  border-radius: 8px;
  background: #ded5cc;
}

.map-summary > div {
  min-width: 0;
  padding: 0.8rem 1rem;
  background: #fff;
}

.map-summary strong {
  display: block;
  color: #241f1a;
  font-size: 1.35rem;
  line-height: 1;
}

.map-summary span {
  display: block;
  margin-top: 0.25rem;
  color: #746b62;
  font-size: 0.86rem;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 1rem;
  margin-top: 1rem;
}

.map-stage {
  position: relative;
  min-width: 0;
}

.concert-map {
  width: 100%;
  min-height: 68vh;
  border: 1px solid #d8cfc5;
  border-radius: 8px;
  background: #e7e1d8;
}

.map-status {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 500;
  max-width: min(30rem, calc(100% - 2rem));
  border: 1px solid rgba(74, 63, 51, 0.18);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  background: rgba(255, 250, 244, 0.94);
  color: #4e463e;
  font-size: 0.86rem;
  box-shadow: 0 8px 24px rgba(46, 36, 26, 0.14);
}

.locate-control {
  width: 34px;
  height: 34px;
  border: 0;
  background: #fff;
  color: #0f766e;
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 34px;
}

.locate-control:hover,
.locate-control:focus {
  background: #effaf8;
}

.map-side {
  min-width: 0;
  border: 1px solid #ded5cc;
  border-radius: 8px;
  background: #fffaf4;
  overflow: hidden;
}

.map-side-header {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid #eadfd4;
}

.map-side h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
}

.map-side p {
  margin: 0.35rem 0 0;
  color: #756c62;
  font-size: 0.87rem;
}

.unmapped-list {
  display: grid;
  gap: 1px;
  max-height: 68vh;
  margin: 0;
  padding: 0;
  overflow: auto;
  background: #eadfd4;
  list-style: none;
}

.unmapped-list li {
  padding: 0.85rem 1rem;
  background: #fff;
}

.unmapped-list a {
  display: block;
  color: #1d4f7a;
  font-weight: 800;
  line-height: 1.35;
  text-decoration: none;
}

.unmapped-list span,
.unmapped-list small {
  display: block;
  margin-top: 0.3rem;
  color: #746b62;
}

.map-empty-note {
  padding: 1rem;
}

.map-popup {
  min-width: 220px;
}

.map-popup-date,
.map-popup-price {
  margin: 0 0 0.35rem;
  color: #756c62;
}

.map-popup h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 800;
}

.map-popup p {
  margin: 0 0 0.45rem;
}

.map-popup span {
  color: #746b62;
}

.map-popup a {
  font-weight: 800;
}

@media (max-width: 900px) {
  .map-hero {
    display: block;
  }

  .map-window-tabs {
    margin-top: 1rem;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .concert-map,
  .unmapped-list {
    min-height: 58vh;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .concert-map-main {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .map-summary {
    grid-template-columns: 1fr;
  }

  .concert-map {
    min-height: 62vh;
  }

  .map-status {
    right: 0.6rem;
    bottom: 0.6rem;
    max-width: calc(100% - 1.2rem);
  }
}

/* ---- トップページ（棚を並べる入口。検索結果は /search） ---- */
.top-main {
  width: 100%;
}

.top-hero {
  border-bottom: 1px solid #cbd5e1;
  background: #e2e8f0;
}

.top-hero-inner,
.top-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 1rem;
}

.top-hero-inner {
  padding-top: 1.5rem;
  padding-bottom: 1.25rem;
}

.top-hero-title {
  margin-bottom: 0.25rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.top-hero-lead {
  margin-bottom: 0.9rem;
  color: #475569;
  font-size: 0.8rem;
}

.top-hero-search {
  display: flex;
  gap: 0.5rem;
  max-width: 860px;
  margin: 0 auto 0.9rem;
}

.top-hero-prefecture,
.top-hero-near {
  flex: 0 0 auto;
  width: auto;
}

.top-hero-search .input-group {
  flex: 1 1 auto;
  width: auto;
}

.top-zone-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
}

.top-zone-chip {
  padding: 0.25rem 0.7rem;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #fff;
  color: #334155;
  font-size: 0.78rem;
  line-height: 1.4;
}

.top-zone-chip:hover {
  border-color: #94a3b8;
  color: #0f172a;
}

.top-zone-chip.active {
  border-color: var(--bs-primary);
  background: var(--bs-primary);
  color: #fff;
}

.top-section {
  margin-top: 1.75rem;
}

.top-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #0f172a;
}

.top-section-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.top-section-more {
  flex: 0 0 auto;
  font-size: 0.78rem;
}

.top-genre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.5rem;
}

.top-genre-tile {
  display: grid;
  grid-template-columns: 1.8rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: #fff;
  color: inherit;
}

.top-genre-tile:hover {
  border-color: #94a3b8;
}

.top-genre-name {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-genre-count,
.top-rank-count,
.top-rank-sub {
  color: #64748b;
  font-size: 0.72rem;
  white-space: nowrap;
}

.top-rank-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 0 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: top-rank;
}

.top-rank-list li {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  counter-increment: top-rank;
}

.top-rank-list a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.5rem 0.25rem;
  color: inherit;
}

.top-rank-list a::before {
  flex: 0 0 1.4rem;
  color: #94a3b8;
  font-weight: 700;
  text-align: right;
  content: counter(top-rank);
}

.top-rank-list a:hover .top-rank-name {
  color: var(--bs-link-color);
}

.top-rank-name {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-rank-sub {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-rank-count {
  flex: 0 0 auto;
  margin-left: auto;
}

@media (max-width: 767.98px) {
  .top-hero-inner,
  .top-shell {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .top-hero-title {
    font-size: 1.15rem;
  }

  .top-genre-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  /* スマホでは棚が縦に長くなるので、1 段 4 件までにする（残りは「すべて見る」から） */
  .top-section .home-event-grid > :nth-child(n + 5) {
    display: none;
  }
}

/* ---- テーマ: 映画情報サイト風（白い面・赤の差し色・灰色の見出しバー・左のサイドナビ） ---- */
:root {
  --site-accent: #e61e0f;
  --bs-primary: #e61e0f;
  --bs-primary-rgb: 230, 30, 15;
  --bs-link-color: #333;
  --bs-link-color-rgb: 51, 51, 51;
  --bs-link-hover-color: #e61e0f;
  --bs-link-hover-color-rgb: 230, 30, 15;
  --bs-body-color: #222;
  --bs-border-color: #e2e2e2;
}

body {
  background: #fff;
}

.btn-primary {
  --bs-btn-bg: var(--site-accent);
  --bs-btn-border-color: var(--site-accent);
  --bs-btn-hover-bg: #c71a0d;
  --bs-btn-hover-border-color: #c71a0d;
  --bs-btn-active-bg: #b0170b;
  --bs-btn-active-border-color: #b0170b;
  --bs-btn-disabled-bg: var(--site-accent);
  --bs-btn-disabled-border-color: var(--site-accent);
}

.badge.text-bg-primary {
  background-color: var(--site-accent) !important;
}

/* ヘッダー */
.site-header {
  border-bottom: 1px solid #e2e2e2 !important;
  margin-bottom: 0 !important;
}

.site-header .container {
  max-width: 1440px;
  gap: 1rem;
}

.site-header .navbar-brand {
  color: #111;
  letter-spacing: 0.02em;
}

.brand-mark {
  color: var(--site-accent);
}

.site-header .nav-link {
  color: #333;
  font-size: 0.85rem;
  font-weight: 500;
}

.site-header .nav-link:hover {
  color: var(--site-accent);
}

.header-search {
  display: flex;
  width: min(260px, 100%);
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.header-search input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0.3rem 0.6rem;
  border: 0;
  font-size: 0.78rem;
  outline: 0;
}

.header-search button {
  padding: 0 0.7rem;
  border: 0;
  background: #e8e8e8;
  color: #555;
}

.header-search button:hover {
  background: var(--site-accent);
  color: #fff;
}

/* 検索窓（ホーム・検索結果） */
.top-hero {
  border-bottom: 1px solid #f3d2cf;
  background: linear-gradient(180deg, #fdeceb 0%, #fff6f5 100%);
}

.top-hero-inner {
  padding-top: 2rem;
  padding-bottom: 1.6rem;
}

.top-zone-chip {
  border-color: #e0e0e0;
  color: #333;
}

.top-zone-chip:hover {
  border-color: var(--site-accent);
  color: var(--site-accent);
}

.top-zone-chip.active {
  border-color: var(--site-accent);
  background: var(--site-accent);
  color: #fff;
}

/* 見出しバー */
.top-section-heading {
  align-items: center;
  margin-bottom: 0.9rem;
  padding: 0.55rem 0.9rem;
  border-bottom: 0;
  border-radius: 4px;
  background: #f2f2f2;
}

.top-section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}

.top-section-more {
  color: #7a7a7a;
  font-size: 0.78rem;
}

.top-section-more .bi {
  color: var(--site-accent);
}

/* カード */
.home-event-card {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  box-shadow: none !important;
}

.home-event-card:hover {
  border-color: #cfcfcf;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
}

/* 左のサイドナビ（ホーム） */
.site-layout {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
  max-width: 1440px;
  margin: 0 auto;
  padding: 1.25rem 1rem 0;
}

.site-layout > main {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.top-side-nav {
  position: sticky;
  top: calc(var(--site-header-height) + 1rem);
  padding: 0.9rem 1rem;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
  background: #fff;
  font-size: 0.82rem;
}

.top-side-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-side-main {
  padding-bottom: 0.7rem !important;
  border-bottom: 1px solid #efefef;
}

.top-side-main a {
  display: block;
  padding: 0.4rem 0;
  color: #222;
  font-weight: 500;
}

.top-side-main .bi {
  margin-right: 0.35rem;
  color: var(--site-accent);
}

.top-side-sub {
  padding-top: 0.5rem !important;
}

.top-side-sub a {
  display: block;
  padding: 0.28rem 0;
  color: #444;
  font-size: 0.78rem;
}

.top-side-sub .bi {
  margin-right: 0.2rem;
  color: var(--site-accent);
  font-size: 0.65rem;
}

.top-side-nav a:hover {
  color: var(--site-accent);
}

@media (max-width: 991.98px) {
  .site-layout {
    display: block;
    padding-top: 0.75rem;
  }

  /* スマホ幅では、サイドナビを上に横並びで出す（横にスクロールできる） */
  .top-side-nav {
    position: static;
    display: flex;
    gap: 0.25rem 1rem;
    margin-bottom: 0.75rem;
    padding: 0.4rem 0.75rem;
    overflow-x: auto;
    white-space: nowrap;
  }

  .top-side-nav ul {
    display: flex;
    gap: 1rem;
  }

  .top-side-main {
    padding-bottom: 0 !important;
    border-bottom: 0;
  }

  .top-side-sub {
    padding-top: 0 !important;
  }

  .header-search {
    display: none;
  }
}

/* ヘッダー右上のアカウント */
.header-account {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding-left: 1rem;
  border-left: 1px solid #e2e2e2;
  font-size: 0.8rem;
  white-space: nowrap;
}

.header-account-link,
.header-account-name {
  color: #222;
  font-weight: 600;
}

.header-account-name {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-account .bi {
  color: var(--site-accent);
}

.header-account-button {
  padding: 0;
  border: 0;
  background: none;
  color: #7a7a7a;
  font-size: 0.75rem;
}

.header-account-button:hover {
  color: var(--site-accent);
}

/* ログイン・新規登録 */
.auth-page {
  max-width: 880px;
  padding-top: 1.5rem;
}

.auth-title {
  font-size: 1.3rem;
  font-weight: 700;
}

.auth-lead {
  color: #555;
}

.auth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.auth-card {
  padding: 1.25rem;
  border: 1px solid #e2e2e2;
  border-radius: 10px;
}

.auth-card h2 {
  font-size: 1rem;
  font-weight: 700;
}

@media (max-width: 767.98px) {
  .auth-grid {
    grid-template-columns: 1fr;
  }
}

/* カード⇔マップを切り替える、浮かせたボタン */
.view-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.5rem;
  z-index: 1030;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--site-accent);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.view-fab:hover,
.view-fab:focus-visible {
  background: #c71a0d;
  color: #fff;
}

/* ホール一覧: 全国地図をページのベースにする */
.hall-map-wrap {
  position: relative; /* .map-status を地図の右下に置く */
}

.hall-map {
  width: 100%;
  height: 56vh;
  min-height: 360px;
  border: 1px solid #d8cfc5;
  border-radius: 8px;
  background: #e7e1d8;
}

/* 検索結果の「終了した公演」: これからの公演の下に、少し間をあけて並べる */
.past-heading {
  margin-top: 2.5rem;
}

.past-event-grid .home-event-card {
  opacity: 0.85;
}

/* 気になる（ハート）・フォロー・おすすめ */
.save-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #6b6b6b;
  cursor: pointer;
}

.save-btn:hover,
.save-btn:focus-visible {
  color: var(--site-accent, #e61e0f);
  border-color: var(--site-accent, #e61e0f);
}

.save-btn.is-saved {
  color: var(--site-accent, #e61e0f);
}

.save-btn-detail .save-btn {
  position: static;
}

.save-search-form {
  margin-bottom: 1rem;
}

.recommend-reason {
  margin: 0.25rem 0 0;
}

.taste-chip {
  cursor: pointer;
}

/* サイドバーのマイ（おすすめ・気になる・フォロー・保存した検索条件） */
.top-side-me {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.top-side-nav a.active {
  color: var(--site-accent, #e61e0f);
  font-weight: 700;
}

.side-count {
  margin-left: 0.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.07);
  font-size: 0.75rem;
}

/* 出演者の名前の横の、文字だけの小さなフォローボタン。フォロー中は、目立たない色 */
.performer-heart {
  margin-left: 0.35rem;
  padding: 0 0.2rem;
  border: 0;
  background: none;
  color: var(--site-accent, #e61e0f);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.performer-heart:hover {
  text-decoration: underline;
}

.performer-heart.is-following {
  color: var(--bs-secondary-color, #6c757d);
}
