/* ==========================================================
   Calendar Search (site-setting 統合)
   ========================================================== */

/* ----------------------------------------------------------
   日付ナビゲーションバー
   ---------------------------------------------------------- */

/*

.cs-nav-bar {
  background: #f0f0f0;
  padding: 16px 5%;
  margin-bottom: 0;
}

.cs-nav-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.cs-nav-day {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #333333;
  text-decoration: none;
  font-size: 1.4rem;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.cs-nav-day:hover {
  opacity: 0.6;
}

// 前日リンク：今日の日付のときは無効・グレーアウト
.cs-nav-day.cs-nav-day-disabled {
  opacity: 0.5;
  color: #999;
  pointer-events: none;
  cursor: not-allowed;
}

.cs-nav-day.cs-nav-day-disabled .cs-nav-circle {
  border-color: #999;
}

.cs-nav-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid #333333;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  line-height: 1;
  flex-shrink: 0;
}

.cs-date-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 22px;
  border: 1px solid #333333;
  background: #ffffff;
  cursor: pointer;
  font-size: 1.5rem;
  font-family: a-otf-futo-go-b101-pr6n, sans-serif;
  font-weight: 500;
  color: #333333;
  transition: background 0.2s;
  white-space: nowrap;
}

.cs-date-btn:hover {
  background: #f9f9f9;
}

.cs-date-btn svg {
  flex-shrink: 0;
}

#cs_filter_submit {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  font-size: inherit;
  color: inherit;
  display: block;
}

.cs-nav-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.calendar-search-category-area.hidden {
  display: none !important;
}

.calendar-search-category-area.hidden .cs-category-hr {
  display: none !important;
}

.calendar-search-closed-message {
  text-align: center;
  font-size: 2rem;
  margin: 60px auto;
}

.cs-cal-popup {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 3000;
  align-items: center;
  justify-content: center;
}

.cs-cal-popup.active {
  display: flex;
}

.cs-cal-inner {
  position: relative;
  background: #fff;
  padding: 36px 28px 28px;
  width: 90%;
  max-width: 420px;
}

.cs-cal-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: transparent;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  color: #333333;
  padding: 0;
}

.cs-cal-month-title {
  text-align: center;
  font-size: 2rem;
  font-family: a-otf-futo-go-b101-pr6n, sans-serif;
  font-weight: 500;
  margin: 0 0 16px;
}

.cs-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 22px;
}

.cs-cal-nav-btn {
  width: 38px;
  height: 38px;
  border: 1px solid #333333;
  background: #fff;
  cursor: pointer;
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333333;
  padding: 0;
  border-radius: 50%;
  transition: background 0.2s;
}

.cs-cal-nav-btn:hover {
  background: #f0f0f0;
}

.cs-cal-today-btn {
  border: 1px solid #333333;
  background: #fff;
  cursor: pointer;
  font-size: 1.4rem;
  color: #333333;
  padding: 6px 18px;
  transition: background 0.2s;
}

.cs-cal-today-btn:hover {
  background: #f0f0f0;
}

.cs-cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.cs-cal-weekdays span {
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  color: #333333;
  display: block;
  padding: 2px 0;
}

.cs-cal-weekdays span.sun { color: #c00; }
.cs-cal-weekdays span.sat { color: #33c; }

.cs-cal-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
}

.cs-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.15s;
  color: #333333;
}

.cs-cal-day:nth-child(7n+1) { color: #c00; }
.cs-cal-day:nth-child(7n)   { color: #33c; }

.cs-cal-day:not(.cs-disabled):not(.cs-closed):hover {
  background: #eaeaea;
}

.cs-cal-day.cs-disabled {
  color: #ccc !important;
  cursor: not-allowed;
  background: transparent !important;
}

.cs-cal-day.cs-closed {
  color: #bbb !important;
  background: #f5f5f5 !important;
  cursor: not-allowed;
}

.cs-cal-day.cs-today {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cs-cal-day.cs-selected {
  background: #b69f59 !important;
  color: #fff !important;
}

.cs-cal-submit {
  margin-top: 18px;
  text-align: center;
}

.cs-cal-submit .btn_base.btn_search {
  margin: 0 auto;
}

#cs_cal_submit {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  width: 100%;
  font-size: inherit;
  color: inherit;
  display: block;
}

 */

/* ----------------------------------------------------------
   祝日セルの赤色表示
   ---------------------------------------------------------- */
.cs-cal-day.cs-holiday {
  color: #c00 !important;
}

/* 祝日かつ選択済みの場合は選択色を優先し、テキストを白にする */
.cs-cal-day.cs-holiday.cs-selected {
  color: #fff !important;
}

/* ----------------------------------------------------------
   カレンダーテンプレート専用の崩れ対策
   ---------------------------------------------------------- */
.cs-calendar-template .exhibition .exhibition_list01_item > a,
.cs-calendar-template .exhibition .exhibition_list01_item > .no_link {
  display: block;
  width: 100%;
}

.cs-calendar-template .exhibition .exhibition_list01_item .exhibition_title,
.cs-calendar-template .exhibition .exhibition_list01_item .exhibition_date,
.cs-calendar-template .exhibition .exhibition_list01_item .exhibition_venue,
.cs-calendar-template .exhibition .exhibition_list01_item .exhibition_subTitle {
  word-break: normal;
  overflow-wrap: break-word;
}

@media screen and (max-width: 767px) {
  .cs-nav-bar-inner {
    gap: 12px;
  }
  .cs-date-btn {
    font-size: 1.3rem;
    padding: 7px 12px;
  }
  .cs-nav-day {
    font-size: 1.2rem;
    gap: 5px;
  }
  .cs-nav-circle {
    width: 28px;
    height: 28px;
    font-size: 1.8rem;
  }
  .cs-cal-inner {
    padding: 30px 14px 22px;
  }
  .cs-cal-day {
    font-size: 1.2rem;
  }
}
