@charset "UTF-8";
@media (max-width: 991px) {
  .menu2 {
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
}
.menu2 li > a {
  font-size: 1.375rem;
}
.menu2 .sub_sub a {
  font-size: 1.125rem;
}

.d_no {
  display: none;
}

#header .top {
  background: white;
  transition: all 0.3s;
}

.sub_menu2 a:hover,
.sub_menu2 a:active {
  background: black;
  color: white;
}

.sub2 {
  display: none !important;
}

#header.menu_pos .top {
  position: fixed;
  top: 0;
  z-index: 99;
  width: 100%;
  max-width: inherit;
  margin: 0;
  border-bottom: 1px solid #ccc;
  padding: 0;
}
#header.menu_pos .top .top_bottom {
  align-items: center;
}
#header.menu_pos .menu_navigation {
  display: none;
}

.menu_pos #logo img {
  max-height: 60px;
}

.menu_pos .top_menu {
  padding-top: 0;
}

.content_txt a {
  position: relative;
  display: inline-block;
  overflow: hidden;
  transition: color 0.3s ease, transform 0.3s ease;
  vertical-align: middle;
  border-bottom: 1px solid #a3a3a3;
}
.content_txt a:not(:has(img))::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  transition: left 0.3s ease;
  mix-blend-mode: multiply;
  -webkit-transition: left 0.3s ease;
  -moz-transition: left 0.3s ease;
  -ms-transition: left 0.3s ease;
  -o-transition: left 0.3s ease;
}
.content_txt a:not(:has(img)):hover {
  color: #3e3a39;
}
.content_txt a:not(:has(img)):hover::before {
  left: 0;
}
.content_txt a:has(img) {
  padding: 5px;
}
.content_txt a:has(img)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  background-color: #f0f0f0;
  transition: transform 0.3s ease;
  mix-blend-mode: multiply;
  transform: translate(-50%, -50%) scaleX(0) scaleY(0);
  transform-origin: center;
  z-index: 0;
}
.content_txt a:has(img):hover::before {
  transform: translate(-50%, -50%) scaleX(1.05) scaleY(1.4);
}
.content_txt a:has(img)[target=_blank]::after {
  display: none !important;
}
.content_txt a:has(img) img {
  position: relative;
  z-index: 1;
}

.content_txt a:has(img) {
  border-bottom: none;
}

.content_txt .imgbox a:before {
  display: none;
}

.list_word img[src*="/Content/img"] {
  max-height: 35px;
}
@media (max-width: 991px) {
  .list_word img[src*="/Content/img"] {
    max-height: 50px;
  }
}

.tabulation_word a {
  color: #2f2725;
}
.tabulation_word a:hover {
  color: #767676;
}

.tabulation .tabulation_word #tm2 {
  height: 42px;
}

.no-wall {
  border: none;
  background-color: #fff;
  color: #000;
  text-align: center;
}

.reserve_Regulation {
  height: 45rem;
  border: 1px #ccc solid;
  padding: 20px;
  letter-spacing: 1px;
  overflow: auto;
  margin-bottom: 20px;
  font-size: 1.125rem;
}

#readchk {
  accent-color: #000; /* 設定主要顏色 */
  width: 16px;
  height: 16px;
}

/* 桌面版樣式 */
.calendar-header {
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #eeeeee;
  color: black;
  padding: 15px;
  border-radius: 6px;
  font-size: 1.125rem;
}

.reserve_calendar {
  max-width: 1200px;
  margin: 0 auto;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 20px;
}

.calendar_month {
  margin-top: 1rem;
  display: flex;
  align-items: center;
}
.calendar_month strong {
  font-size: 1.5rem;
}
.calendar_month .calendar_icon a {
  display: flex;
}
.calendar_month .calendar_icon a i {
  color: black;
  cursor: pointer;
}

.month-title {
  font-size: 1.25rem;
  font-weight: bold;
}

/* 桌面版網格日曆 */
ul.weekdays,
ul.days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0;
  margin: 0;
  list-style: none;
}

ul.weekdays li {
  background: #2f2725;
  color: #fff;
  padding: 10px 0;
  font-weight: bold;
  text-align: center;
  border: 1px solid #ccc;
}

ul.days li {
  border: 1px solid #ddd;
  min-height: 150px;
  text-align: left;
  padding: 0;
  font-size: 1.125rem;
  background: #fff;
}

ul.days li.empty {
  background: #f2f2f2;
}

ul.days li.available {
  background: #fff;
}

ul.days li .day-number {
  font-weight: bold;
  display: block;
  font-size: 1.125rem;
  color: #2f2725;
  padding: 5px 8px;
  line-height: 100%;
}

.time-slot-grid {
  padding: 5px 8px;
}

ul.days li.available::-webkit-scrollbar {
  display: none;
}

.time-slot-grid a {
  display: block;
  color: #3e3a39;
  background: #f5f5f5;
  padding: 5px;
  border-radius: 3px;
  border: 1px solid #dbdbdb;
  line-height: 135%;
  margin-bottom: 6px;
  font-size: 1rem;
}
.time-slot-grid a.disabled {
  pointer-events: none;
  color: #6a6a6a;
  background: #ebebeb;
  border: 1px solid #ebebeb;
}

.time-slot-grid a:hover {
  background-color: #2f2725;
  color: #fff;
}

/* 手機版專用元素 - 默認隱藏 */
.booking-period,
.week-selector,
.calendar-table {
  display: none;
}

/* 響應式設計 - 991px以下 */
@media (max-width: 991px) {
  .reserve_calendar {
    padding: 15px;
  }
  /* 隱藏桌面版網格 */
  ul.weekdays,
  ul.days {
    display: none !important;
  }
  /* 顯示手機版元素 */
  .booking-period,
  .week-selector,
  .calendar-table {
    display: block !important;
  }
  /* 預約期間區塊 */
  .booking-period {
    background: #4a4a4a;
    color: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    text-align: center;
  }
  .period-title {
    margin-bottom: 8px;
    font-weight: 500;
  }
  .period-dates {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
  }
  .date-input {
    background: white;
    border: none;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #2f2725;
    min-width: 80px;
    text-align: center;
  }
  .date-separator {
    color: white;
    font-weight: bold;
  }
  .period-note {
    font-size: 0.75rem;
    line-height: 1.4;
    color: #ddd;
    margin-top: 8px;
  }
  /* 週選擇器 */
  .week-selector {
    display: flex !important;
    margin-bottom: 15px;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: center;
  }
  .week-btn {
    background: #f8f8f8;
    color: #2f2725;
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
  }
  .week-btn.active {
    background: #2f2725;
    color: white;
    border-color: #2f2725;
  }
  .week-btn:hover {
    background: #2f2725;
    color: white;
    border-color: #2f2725;
  }
  /* 表格樣式 */
  .calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    display: table !important;
  }
  .calendar-table th {
    background: #2f2725;
    color: white;
    padding: 12px 8px;
    text-align: center;
    font-weight: bold;
    border: none;
  }
  .calendar-table th:first-child {
    width: 80px;
  }
  .calendar-table th:last-child {
    width: 100px;
  }
  .calendar-table td {
    border: 1px solid #eee;
    vertical-align: top;
    padding: 8px;
  }
  .calendar-table td.date-cell {
    text-align: center;
    font-weight: bold;
    background: #f8f9fa;
    color: #2f2725;
  }
  .calendar-table td.event-cell {
    background: white;
    line-height: 1.4;
  }
  .calendar-table td.unit-cell {
    text-align: center;
    background: #f5f5f5;
  }
  .unit-name {
    font-weight: bold;
    color: #2f2725;
    line-height: 1.3;
  }
  .event-item {
    margin-bottom: 6px;
    padding: 4px 6px;
    background: #f8f9fa;
    border-radius: 3px;
    border-left: 3px solid #2f2725;
  }
  .event-item.disabled {
    border-left: 3px solid #b8b8b8;
  }
  .event-item a {
    color: #3e3a39;
    text-decoration: none;
    display: block;
  }
  .event-item a.disabled {
    pointer-events: none;
    color: #6a6a6a;
  }
  .event-item:hover {
    background: #ebebeb;
  }
  .event-item a:hover {
    color: #3e3a39;
  }
  .event-item:last-child {
    margin-bottom: 0;
  }
}
/* 小螢幕進一步優化 */
@media (max-width: 600px) {
  .booking-period {
    padding: 12px;
  }
  .date-input {
    padding: 3px 6px;
    min-width: 70px;
  }
  .calendar-table th {
    padding: 10px 6px;
  }
  .calendar-table td {
    padding: 6px;
  }
  .event-item {
    margin-bottom: 4px;
    padding: 3px 5px;
  }
  .week-btn {
    padding: 6px 10px;
  }
}
.form-check-input {
  vertical-align: middle;
}

.form-check .form-check-input {
  float: inherit;
}

/* 預約申請表單主要容器 */
.reserve_apply {
  /* 表單區塊的容器 */
  /* 通用表單元素樣式 */
  /* 按鈕樣式 */
}
.reserve_apply .form-wrapper {
  background-color: #ffffff;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 2.5rem;
  padding: 0;
  overflow: hidden;
  /* 表單區塊的黑底標題 */
  /* 表單內容主體 */
}
.reserve_apply .form-wrapper .form-header {
  background-color: #2f2725;
  color: #ffffff;
  padding: 1rem 1.5rem;
}
.reserve_apply .form-wrapper .form-header .form-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
}
.reserve_apply .form-wrapper .form-header .form-subtitle {
  font-size: 0.9rem;
  color: #ccc;
  margin: 0.25rem 0 0 0;
  font-weight: 400;
}
.reserve_apply .form-wrapper .form-body {
  padding: 2.5rem;
  /* 表單中的每一個項目，帶有底部分隔線 */
  /* 移除最後一個項目的分隔線 (針對不同斷點的 col) */
  /* RWD: 處理手機螢幕下最後一個項目的分隔線 */
}
.reserve_apply .form-wrapper .form-body input[type=text], .reserve_apply .form-wrapper .form-body input[type=tel], .reserve_apply .form-wrapper .form-body input[type=email], .reserve_apply .form-wrapper .form-body input[type=number], .reserve_apply .form-wrapper .form-body select, .reserve_apply .form-wrapper .form-body textarea {
  border-radius: 30px;
  padding: 8px 10px;
}
.reserve_apply .form-wrapper .form-body .form-row-item {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  align-items: self-start;
  gap: 0 10px;
}
.reserve_apply .form-wrapper .form-body .form-row-item > .w50 {
  flex: 1;
}
.reserve_apply .form-wrapper .form-body .verification {
  height: 42px;
}
.reserve_apply .form-wrapper .form-body > .row > .col-12:last-child .form-row-item,
.reserve_apply .form-wrapper .form-body > .row > .col-lg-6:last-child .form-row-item,
.reserve_apply .form-wrapper .form-body > .row > .col-md-6:last-child .form-row-item {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}
@media (max-width: 991.98px) {
  .reserve_apply .form-wrapper .form-body > .row > div:last-child .form-row-item {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}
.reserve_apply .form-label {
  font-size: 1.125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: block;
  width: 100%;
}
.reserve_apply .required-mark {
  color: #dc3545;
  font-weight: bold;
  margin-right: 4px;
}
.reserve_apply .form-control,
.reserve_apply .form-select {
  margin-bottom: 6px;
}
.reserve_apply .form-control:focus,
.reserve_apply .form-select:focus {
  border-color: #343a40;
  box-shadow: 0 0 0 0.25rem rgba(82, 88, 93, 0.25);
}
.reserve_apply .btn-custom {
  padding: 0.5rem 1.5rem;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.2s ease-in-out;
}
.reserve_apply .btn-submit {
  background-color: #212529;
  color: #ffffff;
  border: 1px solid #212529;
}
.reserve_apply .btn-submit:hover {
  background-color: #000000;
}
.reserve_apply .btn-reset {
  background-color: transparent;
  color: #212529;
  border: 1px solid #6c757d;
}
.reserve_apply .btn-reset:hover {
  background-color: #f8f9fa;
}

.reserve .list .list_head span {
  padding: 5px 10px;
  font-size: 1.15rem;
}
.reserve .list .list_main span {
  padding: 10px;
  font-size: 1.15rem;
}

.space .space_btn {
  border-radius: 10px;
}

.left_menu .sub_sub a:hover {
  background: transparent;
}

