/* ========== 詳細表示ポップアップ ========== */
#detail_popup {
  display: none; /* 初期は非表示 */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); /* 黒い半透明背景 */
  z-index: 9999;
}

/* ポップアップ表示時 */
#detail_popup.show {
  display: block;
}

/* ポップアップコンテンツ */
#detail_popup_content {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80%;
  background-color: white;
  border-radius: 1.5rem 1.5rem 0 0; /* 上部のみ角丸 */
  /* padding: 2.5rem; */
  overflow-y: auto; /* 内容が多い場合はスクロール */
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

/* スライドアップアニメーション */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

/* モバイル */
@media (max-width: 768px) {
  #detail_popup_content {
    padding: 2rem 1.5rem;
    border-radius: 1rem 1rem 0 0;
  }
}

/* タイトル */
#detail_popup_content h2 {
  font-size: 1.25em;
  font-weight: 700;
  color: #222;
  margin: 0 0 1.5rem 0;
  padding-right: 2.5rem; /* 閉じるボタンの分 */
  line-height: 1.4;
}

/* モバイル */
@media (max-width: 768px) {
  #detail_popup_content h2 {
    font-size: 1.125em;
  }
}

/* 閉じるボタン */
#detail_popup_content > button {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5em;
  height: 2.5em;
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  transition: all 0.3s;
  border-radius: 50%;
  z-index: 1;
  padding: 0.5em;
  min-width: initial;
}

#detail_popup_content > button:hover {
  background-color: #f0f0f0;
  color: #222;
}

#detail_popup_content > button .material-symbols-outlined {
  font-size: 1.5em;
}

/* コンテンツを中央寄せするラッパー */
#detail_popup_content > * {
  /* max-width: 600px; */
  margin-left: auto;
  margin-right: auto;
  padding: 0 1em 0 1em;
}

/* h2とbuttonは例外（全幅） */
#detail_popup_content h2,
#detail_popup_content > button {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding: 1em 1em;
}
#detail_popup_content h2 {
  border-bottom: solid 1px #e1e1e1;
}

/* 画像 */
#detail_popup_content img {
  width: 100%;
  max-width: 300px;
  height: auto;
  display: block;
  margin: 0 auto 1.5rem;
  border-radius: 0.5rem;
}

/* 金額 */
.detail_price {
  font-size: 2em;
  font-weight: 700;
  color: #136740;
  text-align: center;
  margin: 0 0 1rem 0;
}

/* モバイル */
@media (max-width: 768px) {
  .detail_price {
    font-size: 1.75em;
  }
}

/* チケット情報 */

.detail_ticket {
  display: flex;
  gap: 2em;
  justify-content: center;
}

.detail_ticket-a,
.detail_ticket-b {
  font-size: 0.9375em;
  color: #666;
  text-align: center;
  margin: 0.5rem 0;
}

.detail_ticket-a span,
.detail_ticket-b span {
  font-weight: 700;
  color: #222;
}

/* 説明エリア */
.detail_description {
  /* margin-top: 2rem; */
  padding-top: 1.5rem;
  /* border-top: 1px solid #e0e0e0; */
}

.detail_description p {
  font-size: 0.875em;
  font-weight: 700;
  color: #222;
  margin: 0 0 0.5rem 0;
}

.detail_description span {
  font-size: 0.875em;
  color: #666;
  line-height: 1.7;
  display: block;
}

/* スクロールバーのカスタマイズ */
#detail_popup_content::-webkit-scrollbar {
  width: 8px;
}

#detail_popup_content::-webkit-scrollbar-track {
  background-color: #f5f5f5;
}

#detail_popup_content::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 4px;
}

#detail_popup_content::-webkit-scrollbar-thumb:hover {
  background-color: #999;
}
