/* リセット & ベース */
* { 
  box-sizing: border-box;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  }
body {
  margin: 0;
  color: #3f2021;
  background: #f4f2ef;
  line-height: 1.6;
}
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}
.page-header h1 {
  font-size: 18px;
  text-align: center;
  border-bottom: 1px solid #ccc;
  padding-bottom: 12px;
  margin-bottom: 24px;
}
.event-title {
  text-align: center;
  font-size: 18px;
  margin-top: 32px;
}
.event-note {
  font-size: 13px;
  color: #555;
}

/* カレンダーヘッダ */
.calendar-wrap {
  border: 1px solid #D6D1CA;
  padding: 25px 29px 30px 29px;
  margin-top: 16px;
}
.calendar-title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  margin: 0 0 19px;
  padding-left: 15px;
  border-left: 5px solid #3f2021;
  color: #3f2021;
}
.calendar-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #3F2021;
  color: #fff;
  padding: 10px 15px;
  margin: 0 0 14px;
  min-height: 50px;
}
.month-label {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-size: 18px;
  color: #fff;
  margin: 0;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.nav-btn {
  background: #fff;
  color: #3F2021;
  border: 1px solid #ccc;
  padding: 6px 18px 7px 18px;
  cursor: pointer;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  height: 30px;
}
.nav-btn.js-next {
  margin: 0 0 0 auto;
}
.nav-btn:hover { background: #f0f0f0; }
.nav-btn[hidden] { visibility: hidden; }

/* 凡例 */
.legend {
  font-size: 12px;
  text-align: right;
  color: #666;
  padding: 0px 0 14px;
}
.legend .lg {
  display: inline-block;
  margin: 0 0 0 10px;
  font-weight: bold;
}
.lg-ok  { color: #3F2021; }
.lg-full { line-height: 1; vertical-align: middle; }
.lg-full svg { display: inline-block; vertical-align: middle; width: 10px;  margin-bottom: 2px;}
.lg-tel { color: #000; }

/* カレンダーテーブル */
.calendar {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 13px;
}
#wrap #main .calendar th, #wrap #main .calendar td {
  border: 1px solid #e5e5e5;
  background: #fff;
  text-align: center;
  vertical-align: top;
  padding: 9px 2px;
  height: 70px;
}
#wrap #main .calendar th {
  background-color: transparent;
  font-weight: normal;
  width: 40px !important;
  height: 40px;
  line-height: 1;
  text-align: center !important;
  padding: 10px 0;
}
#wrap #main .calendar th.sun, #wrap #main .calendar td.sun .day-num { color: #F00; }
#wrap #main .calendar th.sun { background: #FDEEF1; }
#wrap #main .calendar th.sat, #wrap #main .calendar td.sat .day-num { color: #00F; }
#wrap #main .calendar th.sat { background: #EEF3F7; }
#wrap #main .calendar td.holiday .day-num { color: #F00; } /* 祝日は曜日色より優先で赤 */

#wrap #main .calendar td.empty { background: #fff; }
#wrap #main .calendar td.past .day-num,
.calendar td.past .status { color: #bbb; }
#wrap #main .calendar td.past { background: #EEE; cursor: not-allowed; }
#wrap #main .calendar td.selectable { cursor: pointer; }
.calendar td.selectable:hover { background: #FFF5E5; }
.calendar td.selected {
  background: #D6D1CA80 !important;
  outline: 2px solid #3F2021; outline-offset: -2px; 
}

.day-num { font-weight: bold; display: block; line-height: 1.2; }
.status  { display: block; margin-top: 13px; font-weight: bold; }
.status.s-ok  { color: #3F2021; font-size: 16px; line-height: 1; }
.status.s-full { font-weight: normal; line-height: 1; }
.status.s-full svg { display: block; margin: 0 auto; }
.status.s-end { color: #888; font-size: 14px; line-height: 1; }
.status.s-tel { color: #000; font-size: 14px; line-height: 1; }

/* 連絡先情報ボックス（カレンダー直下） */
.contact-info {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 16px;
  padding: 27px 65px 25px 65px;
  border: 1px solid #3F2021;
  background: #f5f3ee;
  border-radius: 2px;
  color: #3F2021;
}
.contact-icon {
  width: 14px;
  height: 18px;
  margin: auto 0;
}
.contact-body { flex: 1 1 auto; }
.contact-body p {
  font-size: 16px;
  font-weight: 500;
}
.contact-note   { font-size: 14px; line-height: 1.5; }
.contact-details .contact-tel    {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.contact-details-right .contact-hours  {
  font-size: 13px;
  line-height: 20px;
}
.contact-closed { font-size: 14px; margin-top: 18px !important; }
.contact-header {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 21px;
}
.contact-details {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
}

/* 詳細時間枠エリア */
.slot-area {
  margin-top: 24px;
  border: 1px solid #D6D1CA;
  border-radius: 4px;
  padding: 25px 29px;
}
.slot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.slot-header h3 { font-size: 15px; margin: 0; }
.close-btn {
  background: none;
  border: none;
  font-size: 25px;
  font-weight: 700;
  cursor: pointer;
  color: #D9D9D9;
}
.slot-note { font-size: 12px; color: #666; margin: 0 0 12px; }
.slot-date-label {
  background: #D6D1CA;
  padding: 8px 20px;
  font-weight: bold;
  border: 1px solid #D6D1CA;
  border-bottom: none;
  font-size: 16px;
  line-height: 23px;
  height: 39px;
}
.slot-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #D6D1CA;
}
.slot-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-bottom: 1px solid #D6D1CA;
  font-size: 14px;
  height: 60px;
}
.slot-list li:last-child { border-bottom: none; }
.slot-time {
  font-weight: bold;
  font-size: 16px;
  font-weight: 700;
}
.btn-reserve {
  background: #3F2021;
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 8px 28px;
  font-weight: bold;
  cursor: pointer;
  font-size: 14px;
  min-width: 140px;
  height: 36px;
  line-height: 1;
}
.btn-reserve:hover { opacity: 0.6; }
.label-full {
  display: inline-block;
  border: 1px solid #DDD;
  color: #999;
  padding: 8px 28px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  background: #EEE;
  min-width: 140px;
  text-align: center;
  height: 36px;
  line-height: 20px;
}
.label-tel {
  display: inline-block;
  color: #3F2021;
  font-weight: 700;
  padding: 8px 28px;
  font-size: 14px;
  min-width: 140px;
  text-align: center;
}
.label-tel--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 140px;
  padding: 8px 28px;
  border-radius: 3px;
  background: #D6D1CA;
  text-decoration: none;
  cursor: pointer;
  gap: 6px;
}
.label-tel--icon:hover { opacity: 0.6; }
.label-tel--icon svg {
  width: 12px;
  height: 16px;
}
div.box p.txt_detail{
  border-bottom: none!important;
  padding-bottom: 0!important;
}

/* スマートフォン対応 */
@media (max-width: 736px) {
  div#main {
    padding: 10px 0;
  }
  .container { padding: 16px 8px 60px; }
  .calendar { font-size: 12px; }
  #wrap #main .calendar th, #wrap #main .calendar td { font-size: 13px;}
  #wrap #main .calendar th {
    width: 49px !important;
    height: 34px;
    line-height: 1;
    padding: 7px 0 8px 0;
  }
  #wrap #main .calendar td {
    height: 70px;
  }
  .status.s-ok { font-size: 16px; }
  .status.s-tel { font-size: 14px; }
  .status.s-full { margin-top: 15px; }
  .slot-list li {
    gap: 8px;
  }
  div.box p.txt_detail {
    margin-bottom: 0!important;
  }
  .month-label { font-size: 16px; }
  .nav-btn { padding: 6px 8px; font-size: 12px; }
  .contact-info {
    padding: 25px;
    margin: 20px 15px;
  }
  .contact-tel { font-size: 20px; }
  .contact-note, .contact-hours, .contact-closed { font-size: 13px; }
  .calendar-wrap{
    padding: 20px 16px;
    margin-top: 0;
  }
  .calendar-header {
    padding: 10px;
    margin: 0 0 8px;
  }
  .calendar-title {
    font-size: 15px;
    margin: 0 0 15px;
    padding-left: 12px;
  }
  .legend {
    padding: 0 0 9px;
  }
  .slot-area {
    margin-top: 20px;
    padding: 20px 15px;
  }
  .slot-header {
    margin-bottom: 10px;
  }
  .contact-header {
    margin-bottom: 14px;
    gap: 10px;
  }
  .contact-body p {
    font-size: 18px;
  }
  .contact-details {
    display: block;
    text-align: center;
  }
  .contact-details .contact-tel {
    margin-bottom: 12px;
  }
  .contact-details-right .contact-hours {
    max-width: 216px;
    margin: auto;
    text-align: left;
  }
}
