/* ==================================================
   検索フォームのデザイン
   ================================================== */

/* フォーム全体のコンテナ */
.search-form-container {
  background-color: #fff;
  padding: 30px;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  margin-bottom: 40px;
}

/* 各検索項目のグループ */
.search-item {
  margin-bottom: 25px;
  padding-bottom: 25px;
  border-bottom: 1px dashed #ced4da;
}
.search-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

/* 各項目の見出し (h4) */
.search-form-container h4 {
  font-size: 18px;
  margin-top: 0;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid #1a73e8; /* アクセントカラー */
}

/* --- チェックボックスのデザイン --- */
.search-item label {
  display: inline-flex; /* チェックボックスとテキストを横並び＆中央揃え */
  align-items: center;
  margin-right: 20px;
  margin-bottom: 10px;
  cursor: pointer;
}
.search-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  /* ここにカスタムチェックボックスのスタイルを追加することも可能 */
}

/* --- テキスト入力・数値入力のデザイン --- */
.search-item input[type="number"],
.search-item input[type="search"],
.search-item input[type="date"] {
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 16px;
  max-width: 150px; /* 幅が広がりすぎないように */
}

/* --- 送信ボタンのデザイン --- */
.search-submit {
  width: 100%;
  padding: 15px;
  font-size: 18px;
  font-weight: bold;
  background-color: #ff6f61; /* 目立つ色に */
  border: none;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.search-submit:hover {
  background-color: #e65447;
}

/* ==================================================
   WordPress標準カレンダーのデザイン
   ================================================== */

/* カレンダー全体を囲むテーブル */
#wp-calendar {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  font-size: 14px;
  margin-bottom: 20px;
}

/* カレンダーのキャプション（年月表示） */
#wp-calendar #caption {
  padding: 12px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  background-color: #f7f7f7;
  border-bottom: 1px solid #e0e0e0;
}

/* カレンダーのヘッダー（曜日） */
#wp-calendar thead th {
  padding: 10px 5px;
  text-align: center;
  font-weight: normal;
  color: #757575;
  background-color: #fafafa;
}

/* カレンダーのボディ（日付部分） */
#wp-calendar tbody td {
  padding: 8px;
  text-align: center;
  border: 1px solid #f0f0f0;
  height: 50px; /* セルの高さを均等に */
  vertical-align: top;
}

/* 空のセル（前月・次月の日付） */
#wp-calendar tbody td.pad {
  background-color: #fdfdfd;
}

/* イベントがある日付のリンク */
#wp-calendar tbody td a {
  display: block;
  width: 32px;
  height: 32px;
  line-height: 32px;
  margin: 0 auto;
  border-radius: 50%; /* 円形にする */
  text-decoration: none;
  color: #1a73e8; /* リンク色 */
  font-weight: bold;
  transition: background-color 0.2s, color 0.2s;
}

/* イベントがある日付にホバーした時のスタイル */
#wp-calendar tbody td a:hover {
  background-color: #1a73e8;
  color: #fff;
}

/* 今日の日付のセル */
#wp-calendar #today {
  background-color: #fffde7;
  font-weight: bold;
}
#wp-calendar #today a {
  background-color: #ffc107;
  color: #fff;
}
#wp-calendar #today a:hover {
  background-color: #ffa000;
}

/* カレンダーのフッター（前月・次月へのリンク） */
#wp-calendar tfoot #prev,
#wp-calendar tfoot #next {
  padding: 12px;
  text-align: center;
  background-color: #f7f7f7;
  border-top: 1px solid #e0e0e0;
}
#wp-calendar tfoot a {
  text-decoration: none;
  font-weight: bold;
}
#wp-calendar tfoot #prev {
  text-align: left;
}
#wp-calendar tfoot #next {
  text-align: right;
}

/* news */
.newsarea .page-title {
  font-size: 3rem;
  text-align: center;
}

.newsarea .site-main {
  max-width: 100%;
  width: calc(100% - 15rem);
  margin: auto;
}

@media (max-width: 767px) {
  .newsarea .site-main {
    width: calc(100% - 5rem);
  }
}

/* =======================================
/ルームツアーセクション
======================================= */
.room-tour-section {
  margin-bottom: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
}

/* --- 動画プレイヤー --- */
.room-tour-video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9のアスペクト比を維持 */
  height: 0;
  overflow: hidden;
  margin-bottom: 20px;
}
.room-tour-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* --- チャプターリスト --- */
.room-tour-chapters .chapters-title {
  font-size: 1.2em;
  font-weight: bold;
  margin-bottom: 15px;
}
.chapters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chapter-link {
  display: inline-flex;
  align-items: center;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chapter-link:hover {
  background-color: #e0e0e0;
  border-color: #ccc;
}
.chapter-link .chapter-time {
  font-weight: bold;
  color: #007bff;
  margin-right: 8px;
}

/* =========================================
   コーポレート系固定ページ共通スタイル
   ========================================= */
.corporate-page .page-header {
  background-color: #f7f7f7;
  padding: 40px 0;
  text-align: center;
  margin-bottom: 40px;
}

.corporate-page .page-title {
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.corporate-container {
  max-width: 800px;
  margin: 0 auto 60px;
  padding: 0 20px;
}

/* 運営会社：会社概要リスト */
.corporate-data-list {
  border-top: 1px solid #ddd;
}

.corporate-data-list .data-row {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #ddd;
}

.corporate-data-list dt {
  width: 30%;
  background-color: #f9f9f9;
  padding: 15px;
  font-weight: bold;
  box-sizing: border-box;
}

.corporate-data-list dd {
  width: 70%;
  padding: 15px;
  margin: 0;
  box-sizing: border-box;
}

@media (max-width: 600px) {
  .corporate-data-list .data-row {
    display: block;
  }
  .corporate-data-list dt,
  .corporate-data-list dd {
    width: 100%;
  }
  .corporate-data-list dt {
    padding-bottom: 5px;
  }
  .corporate-data-list dd {
    padding-top: 5px;
  }
}

/* 運営会社：マップ */
.access-map {
  margin-bottom: 15px;
}

/* お問い合わせ：電話ボックス */
.contact-intro {
  text-align: center;
  margin-bottom: 40px;
}

.contact-tel-box {
  background-color: #f0fdf4; /* 薄い緑など */
  border: 2px solid #c6f6d5;
  padding: 20px;
  margin-top: 20px;
  border-radius: 8px;
}

.contact-tel-box .tel-number {
  font-size: 2rem;
  font-weight: bold;
  margin: 5px 0;
  color: #2f855a;
}

/* お知らせ一覧 */
.news-list-items {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid #eee;
}

.news-item {
  border-bottom: 1px solid #eee;
}

.news-item a {
  display: block;
  padding: 15px 0;
  color: inherit;
  text-decoration: none;
  transition: background-color 0.2s;
}

.news-item a:hover {
  background-color: #fafafa;
}

.news-meta {
  margin-bottom: 5px;
  font-size: 0.9rem;
  color: #666;
}

.news-date {
  margin-right: 15px;
}

.news-title {
  font-size: 1.1rem;
  margin: 0;
  font-weight: normal;
}

/* プライバシーポリシー */
.policy-content h2 {
  font-size: 1.5rem;
  border-bottom: 2px solid #ddd;
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
}

.policy-content h3 {
  font-size: 1.2rem;
  margin-top: 30px;
  margin-bottom: 15px;
  border-left: 4px solid #666;
  padding-left: 10px;
}

.policy-content p {
  line-height: 1.8;
  margin-bottom: 20px;
}

/* =========================================
   イベントカレンダー調整
   ========================================= */

/* カレンダー全体枠 */
.srec-calendar-wrapper {
  width: 100%;
  margin-bottom: 40px;
}

/* ヘッダー（年月移動） */
.srec-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 10px;
  background: #f8f8f8;
  border-radius: 8px;
}

.srec-cal-title {
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0;
}

.srec-cal-nav {
  text-decoration: none;
  padding: 8px 16px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: #333;
  font-weight: bold;
  transition: all 0.3s;
}
.srec-cal-nav:hover {
  background: #eee;
}

/* カレンダーテーブル本体 */
.srec-calendar-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed; /* 均等幅にする */
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.srec-calendar-table th {
  padding: 15px 0;
  text-align: center;
  background: #f0f0f0;
  border: 1px solid #ddd;
  font-weight: bold;
}
.srec-calendar-table th.sun {
  color: #e74c3c;
  background: #ffeaea;
}
.srec-calendar-table th.sat {
  color: #3498db;
  background: #eaf4ff;
}

/* 日付セル */
.srec-calendar-table td {
  border: 1px solid #ddd;
  height: 100px; /* ★ここで高さを確保（大きくする） */
  vertical-align: top;
  position: relative;
  padding: 5px;
  background: #fff;
  transition: background-color 0.2s;
}

/* 日付の数字 */
.calendar-date-num {
  display: block;
  font-size: 14px;
  margin-bottom: 5px;
  color: #555;
  font-weight: bold;
}

/* 今日のスタイル */
.srec-calendar-table td.today {
  background-color: #fffde7; /* 薄い黄色 */
}
.srec-calendar-table td.today .calendar-date-num {
  color: #d35400;
  text-decoration: underline;
}

/* イベントがある日のスタイル（クリック可能に見せる） */
.srec-calendar-table td.has-events {
  cursor: pointer;
  background-color: #f9fcff;
}
.srec-calendar-table td.has-events:hover {
  background-color: #e3f2fd;
}

/* 選択された日 */
.srec-calendar-table td.selected-day {
  background-color: #ffe082 !important;
  border: 2px solid #ffb300;
}

/* イベント件数バッジ */
.event-count-badge {
  display: block;
  background-color: #2c93d8; /* メインカラー */
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 4px 2px;
  border-radius: 4px;
  margin-top: 5px;
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

/* スマホ対応 */
@media screen and (max-width: 768px) {
  .srec-calendar-table td {
    height: 70px; /* スマホでは少し高さを抑える */
    padding: 2px;
  }
  .calendar-date-num {
    font-size: 12px;
  }
  .event-count-badge {
    font-size: 10px;
    padding: 2px 0;
  }
  .srec-cal-title {
    font-size: 1.2rem;
  }
}

/* Ajax読み込み結果エリア */
.selected-date-title {
  font-size: 1.4rem;
  font-weight: bold;
  margin: 30px 0 20px;
  border-left: 5px solid #2c93d8;
  padding-left: 15px;
}
.calendar-loading {
  text-align: center;
  padding: 40px;
  font-size: 1.2rem;
  color: #888;
}

/* =========================================
   パターンA：横スクロール（レスポンシブ完全対応版）
   ========================================= */

/* PC・スマホ共通設定 */
#selected-date-events .event-grid-4col {
  display: flex;
  flex-wrap: nowrap; /* 折り返さない */
  overflow-x: auto; /* 横スクロール有効 */
  gap: 20px; /* カード間の隙間 */
  padding-bottom: 20px; /* 下部のスクロールバー/操作用余白 */
  margin-bottom: 20px;

  /* スクロールの挙動を滑らかに */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory; /* スナップ（ピタッと止まる）設定 */

  /* 初期スタイル（gridなど）を打ち消す */
  grid-template-columns: none !important;
}

/* カードごとの設定 */
#selected-date-events .event-grid-4col > * {
  flex: 0 0 280px; /* PCでのカード幅 */
  width: 280px;
  scroll-snap-align: center; /* 画面の中央で止まるようにする（スマホで見やすい） */
}

/* ★★★ スマホ専用の調整 ★★★ */
@media screen and (max-width: 768px) {
  #selected-date-events .event-grid-4col {
    gap: 15px; /* 隙間を少し狭く */
    padding: 0 15px 20px; /* 左右に少し余白を持たせる */

    /* スクロールバーを非表示にする（見た目をスッキリさせる） */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
  }

  /* Chrome/Safariでスクロールバー非表示 */
  #selected-date-events .event-grid-4col::-webkit-scrollbar {
    display: none;
  }

  /* スマホでのカード幅調整 */
  #selected-date-events .event-grid-4col > * {
    flex: 0 0 80vw; /* 画面幅の80%にする（次のカードが少し見えるサイズ感） */
    width: 80vw;
    max-width: 300px; /* 大きくなりすぎないように上限を設定 */
  }
}
