@charset "utf-8";
/* ============================================================
 * 提灯献灯一覧（template-chochin.php）専用スタイル
 * いっとこミナミ旧静的ページ base.css の §6〜§11 を .chochin-page 配下に
 * スコープして移植。テーマ本体のスタイルと干渉しないようにしている。
 * ========================================================== */

/* --- コンテナ（テーマの .{section}__inner 規約に合わせる） --- */
.chochin { padding: 0 24px 30px; }
.chochin__inner { max-width: 1200px; margin: 0 auto; }

/* --- 見出し：スマホ時のみ「…2026」と「献灯場所検索」を2行に --- */
@media (max-width: 768px) {
  .chochin-title span { display: block; }
}

/* --- box-model / table reset（このページ内だけ） --- */
.chochin-page *,
.chochin-page *::before,
.chochin-page *::after { box-sizing: border-box; }
.chochin-page table { border-collapse: collapse; border-spacing: 0; }

/* --- 6. 検索コンポーネント --- */
.chochin-page #searchContainer {
  background-color: #fff;
  max-width: 700px;
  margin: 0 auto 3em;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.chochin-page #searchContainer label {
  font-weight: bold;
  color: #555;
}
.chochin-page .search-field input {
  flex: 1;
  min-width: 240px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.chochin-page input,
.chochin-page textarea,
.chochin-page select { font-size: 16px; }
.chochin-page .search-actions {
  display: flex;
  gap: 10px;
}
.chochin-page .search-actions button {
  font-size: 15px;
  padding: 10px 20px;
  width: 120px;
  border: none;
  border-radius: 4px;
  background-color: #d31001;
  color: #fff;
  cursor: pointer;
  transition: background-color .2s, transform .1s;
}
.chochin-page .search-actions #resetButton { background-color: #888; }
.chochin-page .search-actions button:hover { transform: translateY(-1px); }
.chochin-page .search-actions #searchButton:hover { background-color: #B00D00; }
.chochin-page .search-actions #resetButton:hover { background-color: #666; }
@media (max-width: 768px) {
  .chochin-page #searchContainer {
    flex-direction: column;
    align-items: stretch;
  }
  .chochin-page .search-field { width: 100%; margin-bottom: 10px; }
  .chochin-page .search-field label { display: block; margin-bottom: 4px; font-weight: bold; }
  .chochin-page .search-field input { width: 100%; }
  .chochin-page .search-actions { justify-content: center; }
}

/* --- 7. 横スクロールヒント --- */
.chochin-page .scroll-hint {
  display: none;
  max-width: 600px;
  margin: 0 auto 8px;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
}
@media (max-width: 768px) {
  .chochin-page .scroll-hint { display: block; }
}

/* --- 8. テーブルラッパ --- */
.chochin-page .table-wrapper {
  width: 100%;
  overflow-x: hidden;
}
@media (max-width: 768px) {
  .chochin-page .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* --- 9. テーブル本体 --- */
.chochin-page .table-wrapper table {
  width: 100%;
  min-width: 600px;
  background-color: #fff;
}
.chochin-page table th,
.chochin-page table td {
  border: 1px solid #333;
  padding: 8px;
  text-align: left;
  font-size: 15px;
  white-space: nowrap;
  -webkit-text-size-adjust: 100%;
}
.chochin-page table th {
  background-color: #efe6d9; /* テーマの和紙調パネル色に合わせる */
  text-align: center;
  font-weight: bold;
}
.chochin-page table td:nth-of-type(2),
.chochin-page table td:nth-of-type(3),
.chochin-page table td:nth-of-type(4) { text-align: center; }
.chochin-page table td a { color: #d31001; text-decoration: none; }

/* --- 10. モーダル（ポップアップ） --- */
.chochin-page .modal {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}
.chochin-page .modal.show { display: flex; }
.chochin-page .modal-content {
  background-color: #fff;
  padding: 16px;
  border-radius: 4px;
  width: 80vw;
  max-width: 800px;
  position: relative;
}
.chochin-page .modal-content img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.chochin-page .modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 32px;
  height: 32px;
  line-height: 32px;
  font-size: 24px;
  text-align: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

/* --- 11. MAPボタン --- */
.chochin-page .map-button {
  display: block;
  margin-top: 16px;
  padding: 12px 24px;
  width: 100%;
  text-align: center;
  background-color: #d31001;
  color: #fff;
  font-weight: bold;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  transition: background-color 0.3s, transform 0.1s;
}
.chochin-page .map-button:hover {
  background-color: #B00D00;
  transform: translateY(-1px);
}
