@charset "UTF-8";

/* ========================================
   Base
======================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-size: 14px;
  font-family: 'EB Garamond', serif;
  letter-spacing: .1em;
  color: #3c3b3b;
  background: #ffffff;
}

#wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.schedule_button {
  margin: 0;
}

.sp_pager {
  display: none;
}

div.pager_button_area {
  display: none;
}

object.show-month {
  display: none;
}

/* ========================================
   Month Title
======================================== */
.calendar-year-month {
  margin: 0 0 28px;
  text-align: center;
  font-family: "Times New Roman", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 32px;
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: #2f2a26;
}

/* ========================================
   Calendar Table (PC)
======================================== */
table.reserve_calendar {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  border: none;
  background: #ffffff;
  margin-bottom: 0;
  line-height: 1.5;
}

/* 曜日ヘッダー */
table.reserve_calendar thead th {
  padding: 0 0 14px;
  border: none;
  border-bottom: 1px solid #ddd6cd;
  background: transparent;
  color: #5b534c;
  text-align: center;
  vertical-align: middle;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

table.reserve_calendar thead th.sun {
  color: #a24b4b;
}

table.reserve_calendar thead th.sat {
  color: #4d6698;
}

/* 各セル */
table.reserve_calendar tbody td {
  position: relative;
  width: 14.285%;
  height: 132px;
  padding: 12px 10px 10px;
  vertical-align: top;
  border: 1px solid #ece6de;
  background: #ffffff;
}

/* PCでは次月行を非表示（元仕様維持） */
table.reserve_calendar tbody tr.next {
  display: none;
}

/* 前月・次月 */
table.reserve_calendar tbody td.other,
table.reserve_calendar tbody td.next,
table.reserve_calendar tbody tr.next td {
  background: #f5f5f5;
  color: #b8afa5;
}

/* 今日 */
table.reserve_calendar tbody td.today {
  background: #faf7f2;
}

/* 日付 */
table.reserve_calendar tbody td i {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  font-style: normal;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.2;
  color: #2f2a26;
}

table.reserve_calendar tbody td.sun i {
  color: #a24b4b;
}

table.reserve_calendar tbody td.sat i {
  color: #4d6698;
}

table.reserve_calendar tbody td.other i,
table.reserve_calendar tbody td.next i,
table.reserve_calendar tbody tr.next td i {
  color: #b8afa5;
}

/* 予約ボタン */
table.reserve_calendar tbody td a.schedule_button,
table.reserve_calendar tbody td a.btn.schedule_button {
  display: block;
  width: 100%;
  margin: 7px 0 0;
  padding: 10px 12px;
  border: 1px solid #d8cbb8;
  background: #ffffff;
  background-image: none !important;
  border-radius: 0;
  box-shadow: none;
  text-shadow: none !important;
  color: #3a332c;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.05em;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

table.reserve_calendar tbody td a.schedule_button + a.schedule_button,
table.reserve_calendar tbody td a.btn.schedule_button + a.btn.schedule_button {
  margin-top: 8px;
}

table.reserve_calendar tbody td a.schedule_button:hover,
table.reserve_calendar tbody td a.btn.schedule_button:hover {
  background: #faf6f0;
  border-color: #c8b7a3;
  color: #2f2a26;
  text-decoration: none;
}

table.reserve_calendar tbody td a.schedule_button:focus,
table.reserve_calendar tbody td a.btn.schedule_button:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(191, 169, 149, 0.16);
}

/* 予約リンクが無い日を休館表示 */
table.reserve_calendar tbody td:not(.other):not(.next):not(:has(a.schedule_button))::after {
  content: "✕";
  display: block;
  margin-top: 8px;
  color: #9a8f84;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}
@media screen and (max-width: 600px) {

  table.reserve_calendar tbody td:not(.other):not(.next):not(:has(a.schedule_button))::after {
    content: none;
  }

}
table.reserve_calendar tbody td.other::after,
table.reserve_calendar tbody td.next::after,
table.reserve_calendar tbody tr.next td::after {
  content: none !important;
}

/* PCのみ：次月日の予約ボタンを非表示 */
@media screen and (min-width: 601px) {
  table.reserve_calendar tbody td.next a.schedule_button,
  table.reserve_calendar tbody td.next a.btn.schedule_button,
  table.reserve_calendar tbody tr.next td a.schedule_button,
  table.reserve_calendar tbody tr.next td a.btn.schedule_button {
    display: none !important;
  }
}

/* ========================================
   Rotate
======================================== */
#calendar {
  display: block;
}

#rotate {
  display: none;
  font-size: 5vw;
  width: 100%;
  height: auto;
  text-align: center;
  padding-top: 80px;
}

/* ========================================
   Mobile
   既存のページ送り仕様を維持
======================================== */
@media screen and (max-width: 600px) {
  #wrap {
    padding: 0 12px 32px;
  }

  .pager {
    display: none;
  }

  .sp_pager {
    display: block;
    margin-top: 20px;
    text-align: center;
  }

  div.pager_button_area {
    display: block;
    margin-top: 20px;
    text-align: center;
  }

  object.show-month {
    display: inline;
  }

  .calendar-year-month {
    margin-bottom: 20px;
    font-size: 24px;
    letter-spacing: 0.06em;
  }

  table.reserve_calendar thead {
    display: none;
  }

  table.reserve_calendar thead tr th,
  table.reserve_calendar tbody tr td {
    display: block;
    width: 100%;
    min-height: 0 !important;
    padding: 0;
  }

  /* 1日を静かなリストとして見せる */
  table.reserve_calendar tbody tr td {
    display: flex;
    align-items: flex-start;
    height: auto;
    padding: 16px 0;
    border: none !important;
    border-bottom: 1px solid #ece7df !important;
    background: transparent !important;
  }

  /* 元仕様維持 */
  table.reserve_calendar thead tr.before,
  table.reserve_calendar tbody tr.before {
    display: none;
  }

  table.reserve_calendar thead tr.next,
  table.reserve_calendar tbody tr.next {
    display: block;
  }

  table.reserve_calendar thead tr.empty,
  table.reserve_calendar tbody tr.empty {
    display: none;
  }

  table.reserve_calendar tbody tr td.before,
  table.reserve_calendar tbody tr td.after,
  table.reserve_calendar tbody tr td.empty {
    display: none !important;
  }

  /* 日付 */
  table.reserve_calendar tbody tr td i,
  table.reserve_calendar tbody tr td .calendar-day-number {
    display: block;
    width: 76px;
    margin: 0;
    padding: 0 10px 0 0;
    background: transparent !important;
    border: none !important;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 500;
    color: #2f2a26;
    flex-shrink: 0;
  }

  /* 曜日表示 */
  table.reserve_calendar tbody tr td i:after {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.2;
    color: #8a8076;
    font-weight: 400;
  }

  table.reserve_calendar tbody tr td:nth-child(1) i:after { content: "（日）"; }
  table.reserve_calendar tbody tr td:nth-child(2) i:after { content: "（月）"; }
  table.reserve_calendar tbody tr td:nth-child(3) i:after { content: "（火）"; }
  table.reserve_calendar tbody tr td:nth-child(4) i:after { content: "（水）"; }
  table.reserve_calendar tbody tr td:nth-child(5) i:after { content: "（木）"; }
  table.reserve_calendar tbody tr td:nth-child(6) i:after { content: "（金）"; }
  table.reserve_calendar tbody tr td:nth-child(7) i:after { content: "（土）"; }

  /* 土日 */
  table.reserve_calendar tbody td.sun i {
    color: #a24b4b;
  }

  table.reserve_calendar tbody td.sat i {
    color: #4d6698;
  }

  /* 前後月 */
  table.reserve_calendar tbody td.other i,
  table.reserve_calendar tbody td.next i {
    color: #b8afa5;
  }

  /* 今日も囲わない */
  table.reserve_calendar tbody td.today {
    background: transparent !important;
  }

  /* ボタン */
  table.reserve_calendar tbody td a.schedule_button,
  table.reserve_calendar tbody td a.btn.schedule_button {
    display: block;
    width: calc(100% - 8px);
    margin: 0 0 0 8px;
    padding: 13px 14px;
    background: #ffffff;
    border: 1px solid #ddd2c3;
    border-radius: 0;
    box-shadow: none;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    color: #3a332c;
  }

  table.reserve_calendar tbody td a.schedule_button + a.schedule_button,
  table.reserve_calendar tbody td a.btn.schedule_button + a.btn.schedule_button {
    margin-top: 10px;
  }

  table.reserve_calendar tbody td a.schedule_button:hover,
  table.reserve_calendar tbody td a.btn.schedule_button:hover {
    background: #faf6f0;
    border-color: #c8b7a3;
    color: #2f2a26;
  }

 

  /* ラベル */
  [class*="calender-label"] {
    display: inline-block;
    padding: 5px 8px;
    margin-top: 0;
    margin-right: 5px;
    font-size: 12px;
    line-height: 1.3;
    color: #5f564e;
    background: #faf7f2;
    border: 1px solid #d8cbb8;
    border-radius: 999px;
  }

  /* 次の日程ボタン */
  .sp_pager a,
  .pager_button_area a,
  .sp_pager .btn,
  .pager_button_area .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid #d7cab8;
    border-radius: 999px;
    background: #ffffff;
    color: #3a332c;
    font-size: 13px;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-decoration: none;
    box-shadow: none;
  }

  .sp_pager a:hover,
  .pager_button_area a:hover,
  .sp_pager .btn:hover,
  .pager_button_area .btn:hover {
    background: #f8f4ee;
    border-color: #c8b8a4;
    color: #2f2a26;
    text-decoration: none;
  }
}
/* ========================================
   SP：前月・次月の弱化を解除（UX改善）
======================================== */
@media screen and (max-width: 600px) {

  table.reserve_calendar tbody td.other,
  table.reserve_calendar tbody td.next,
  table.reserve_calendar tbody tr.next td {
    background: transparent !important;
    color: #2f2a26 !important;
  }

  table.reserve_calendar tbody td.other i,
  table.reserve_calendar tbody td.next i,
  table.reserve_calendar tbody tr.next td i {
    color: #2f2a26 !important;
  }

}
/* ========================================
   SP：日付間の余白調整（重要）
======================================== */
@media screen and (max-width: 600px) {

  /* 1日ブロックの余白を広げる */
  table.reserve_calendar tbody tr td {
    padding: 22px 0 !important;
    border-bottom: 1px solid #f1ece4 !important;
  }

  /* 日付と内容の間を少し広げる */
  table.reserve_calendar tbody tr td i,
  table.reserve_calendar tbody tr td .calendar-day-number {
    padding-right: 14px;
  }

  /* 予約ボタン側にも余白をつける */
  table.reserve_calendar tbody td a.schedule_button,
  table.reserve_calendar tbody td a.btn.schedule_button {
    margin-left: 10px;
  }



}

table.reserve_calendar tbody td:not(.other):not(.next):not(:has(a.schedule_button)) {
  background: #f5f5f5;
}

table.reserve_calendar tbody td br {
  display: none;
}
/* =========================
   Pager（月ナビ）
========================= */
.pager{
  margin: 32px 0 28px;
}

.pager .pagination{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 0;
  margin: 0;
}

.pager .pagination li{
  margin: 0 !important;
  list-style: none;
}

/* 共通 */
.pager .page-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;

  border: 1px solid #d9d2c8;
  border-radius: 999px !important;
  background: #fff;

  color: #5f584f;
  font-size: 16px;
  line-height: 1;
  letter-spacing: .06em;
  text-decoration: none;

  transition: .25s ease;
  box-shadow: none;
}

/* 押せる月移動リンク */
.pager .page-link[href]:not([href="javascript:void(0);"]){
  border-color: #314238;
  color: #314238;
}

.pager .page-link[href]:not([href="javascript:void(0);"]):hover{
  background: #314238;
  color: #fff;
  text-decoration: none;
}

/* 現在の月だけ非アクティブ */
.pager .page-link[href="javascript:void(0);"]{
  border-color: #e3ddd4;
  color: #8a7f73;
  cursor: default;
  pointer-events: none;
}

/* Bootstrapの余白打ち消し */
.pager .mx-2{
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 767px){
  .pager{
    margin: 24px 0 20px;
  }

  .pager .pagination{
    gap: 10px;
    flex-wrap: wrap;
  }

  .pager .page-link{
    min-height: 40px;
    padding: 0 18px;
    font-size: 13px;
  }
}