@charset "UTF-8";
/* CSS Document */

/* =========================
   お祭り・バザー 共通
========================= */
.festival h2 {
  color: var(--color-deep);
  border-bottom: 2px solid var(--color-deep);
}

.festival h3 {
  text-align: center;
  border-bottom: 1px solid #111;
}

.festival-lead {
  margin: 10px auto 30px;
  padding: 16px;
  max-width: 720px;
  background: #f8f8f8;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
}

.festival-lead p {
  margin-bottom: 12px;
  line-height: 1.7;
  color: #333;
}
/* =========================
   コーナー選択カード
========================= */
.festival-nav-section {
  margin: 40px 0;
}

.festival-nav-lead {
  text-align: center;
  margin-bottom: 20px;
}

.festival-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
}

.festival-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 18px 16px;
  font-size: 0.95rem;
  text-align: left;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.festival-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
  border-color: #999;
}

.festival-card__title {
  display: block;
  font-weight: bold;
  font-size: 1.05rem;
  margin-bottom: 6px;
  line-height: 1.4;
}

.festival-card__text {
  display: block;
  color: #666;
  line-height: 1.6;
  font-size: 0.92rem;
}

/* =========================
   共通モーダル
========================= */
.festival-guide-modal[hidden] {
  display: none;
}

.festival-guide-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.festival-guide-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.festival-guide-modal__content {
  position: relative;
  z-index: 1;
  width: min(92%, 560px);
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  box-sizing: border-box;
  text-align: center;
}

.festival-guide-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: none;
  background: transparent;
  color: #333;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.festival-guide-modal__title {
  margin-top: 0;
  margin-bottom: 14px;
  text-align: center;
}

.festival-guide-modal__summary,
.festival-guide-modal__feature {
  max-width: 400px;
  margin: 0 auto 10px;
  line-height: 1.7;
  color: #555;
}

.festival-guide-modal__actions {
  margin-top: 20px;
  text-align: center;
}

.festival-guide-modal__detail-btn {
  display: inline-block;
  border: none;
  background: #333;
  color: #fff;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
}

/* =========================
   詳細トグル一覧
========================= */
.festival-detail-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.festival-detail-section {
  margin: 0;
  max-width: 920px;
}

.festival-detail-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid #d8d8d8;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.festival-detail-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  border-color: #bdbdbd;
}

.festival-detail-toggle__title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.festival-detail-toggle__title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  line-height: 1.4;
}

.festival-detail-toggle__lead {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.5;
}

.festival-detail-toggle__icon {
  flex: 0 0 auto;
  font-size: 1.4rem;
  font-weight: bold;
  color: #444;
  transition: transform 0.25s ease;
}

.festival-detail-toggle[aria-expanded="true"] .festival-detail-toggle__icon {
  transform: rotate(45deg);
}

.festival-detail-content {
  margin-top: 10px;
  padding: 22px 20px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background: #fcfcfc;
}

.festival-detail-content p {
  text-align: left;
}

.festival-detail-content__summary {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f3f6f8;
  font-weight: bold;
  color: #333;
  text-align: center !important;
}

/* =========================
   旧くじタブUI
========================= */
.kuji-tabs {
  margin-top: 1rem;
}

.tab-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
}

.tab-btn {
  flex: 1;
  padding: 8px;
  background: #fff;
  color: var(--color-subtext);
  border: 2px solid var(--color-subtext);
  cursor: pointer;
  border-radius: 5px 5px 0 0;
  font-weight: bold;
}

.tab-btn.active {
  color: #fff;
  background: var(--color-subtext);
  border-bottom: 2px solid var(--color-subtext);
}

.tab-panel {
  display: none;
  padding: 1rem;
  background: #fff;
  border-radius: 0 0 5px 5px;
}

.tab-panel.active {
  display: block;
}

/* =========================
   テーブル共通
========================= */
table.setting-table,
table.wanage-setting-table {
  width: 33%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.5rem;
}

table.box-setting-table {
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.5rem;
}

table.game-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 1.5rem;
}

.setting-table caption,
.game-table caption,
.wanage-setting-wrap caption,
.box-setting-table caption {
  color: #333;
  font-weight: bold;
}

.setting-table th,
.setting-table td,
.wanage-setting-table th,
.wanage-setting-table td,
.game-table th,
.game-table td,
.box-setting-table th,
.box-setting-table td {
  padding: 5px;
  border: 1px solid #ddd;
  text-align: left;
}

.setting-table th,
.wanage-setting-table th,
.game-table th,
.box-setting-table th {
  background-color: #f4f4f4;
  font-weight: bold;
}

/* 輪投げ用2カラム */
.wanage-setting-wrap {
  width: 95%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-left: 10px;
  padding-right: 10px;
}

.wanage-setting-wrap table {
  width: 48%;
  table-layout: fixed;
  word-break: break-word;
}

.wanage-setting-wrap table td,
.wanage-setting-wrap table th {
  overflow: hidden;
}

/* テーブル角丸 */
.setting-table tr:first-child th {
  border-top-left-radius: 10px;
}

.setting-table tr:first-child td {
  border-top-right-radius: 10px;
}

.setting-table tr:last-child th {
  border-bottom-left-radius: 10px;
}

.setting-table tr:last-child td {
  border-bottom-right-radius: 10px;
}

.wanage-setting-table tr:first-child th:first-child,
.game-table tr:first-child th:first-child {
  border-top-left-radius: 10px;
}

.wanage-setting-table tr:first-child th:last-child,
.game-table tr:first-child th:last-child {
  border-top-right-radius: 10px;
}

.wanage-setting-table tr:last-child td:first-child {
  border-bottom-left-radius: 10px;
}

.wanage-setting-table tr:last-child td:last-child {
  border-bottom-right-radius: 10px;
}

/* =========================
   動画
========================= */
.video-caption {
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
}

.festival-detail-video {
  margin-top: 20px;
}

.festival-detail-video video {
  width: 100%;
  max-width: 300px;
  display: block;
  margin: 0 auto;
  border-radius: 10px;
}

/* =========================
   補足
========================= */
.colint {
  margin-top: 20px;
}

.festival-contact {
  margin: 40px auto;
  padding: 24px 16px;
  max-width: 720px;
  text-align: center;
  border-top: 1px solid #ddd;
}

.festival-contact h2 {
  margin-bottom: 12px;
}

.festival-contact p {
  margin-bottom: 16px;
  line-height: 1.7;
}
/* PC・タブレットでは擬似見出しを消す */
@media (min-width: 768px) {
  .setting-table td::before,
  .game-table td::before {
    content: none;
  }
}

/* =========================
   スマホ
========================= */
@media (max-width: 768px) {
  .festival-cards {
    grid-template-columns: repeat(2, 1fr);
    max-width: 640px;
  }

  .festival-card {
    padding: 16px 14px;
  }

  .festival-card__title {
    font-size: 1rem;
  }

  .festival-card__text {
    font-size: 0.85rem;
    line-height: 1.5;
  }

  .festival-detail-toggle {
    padding: 14px 14px;
    gap: 12px;
  }

  .festival-detail-toggle__title {
    font-size: 1rem;
  }

  .festival-detail-toggle__lead {
    font-size: 0.85rem;
  }

  .festival-detail-content {
    padding: 16px 14px;
  }

  .festival-detail-content__summary {
    font-size: 0.95rem;
  }

  .festival-guide-modal__content {
    width: min(94%, 520px);
    padding: 22px 16px;
  }

  table.setting-table,
  table.wanage-setting-table {
    width: 100%;
  }

  .wanage-setting-wrap table {
    width: 100%;
  }
}