/* CSS Reset & 基礎設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
}

.fig-frame {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  overflow: hidden;
  container-type: inline-size;
}

.fig-frame:last-child {
  margin-bottom: 0;
}

.fig-frame__layer {
  position: absolute;
}

.fig-frame__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:root {
  --web-breakpoint: 1000;
  /* 響應式斷點基準值（桌機/手機切換），需與 @media (max-width) 及 window.__webBreakpoint 同步修改，見 docs/02-html-structure.md 2-B */
  /* Mobile Menu */
  --mobile-menu-height: 70px;
  /* 依設計稿實際高度覆寫此值，見 docs/02-html-structure.md mobile-menu.html 客製化 */
}

.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: var(--mobile-menu-height);
  /* background-color: #3E3A39; */
  background: url('../images/mobile/test.png') center center;

  /* 依設計稿實際底色替換 */
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
  
  /* 玻璃通透感 (Glassmorphism) */
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.mobile-menu--logo {
  width: clamp(100px, 40%, 140px);
}

.mobile-menu--container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(20px, 5vw, 28px);
  width: 50%;
}

.mobile-menu--item {
  display: block;
  width: clamp(12px, 5vw, 20px);
  aspect-ratio: 1 / 1;
}

.mobile-menu--item svg {
  width: 100%;
  height: 100%;
}

/* Mobile-only Layout */
:root {
  --theme-bg-color: #1B1464;
  /* Fallback theme color，純手機版模式時由 docs/01-setup.md 依設計稿主色調覆寫此值 */
}

body.mobile-only-layout {
  background-color: var(--theme-bg-color);
}

body.mobile-only-layout .mobile-view {
  display: block;
  /* 覆蓋預設的 none */
  max-width: 1000px;
  /* 與 breakpoint 相同 */
  margin: 0 auto;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

body.mobile-only-layout .desktop-view {
  display: none !important;
}

.desktop-view {
  display: block;
}

.mobile-view {
  display: none;
  padding-bottom: var(--mobile-menu-height);
}

@media (max-width: 1000px) {
  .desktop-view {
    display: none;
  }

  .mobile-view {
    display: block;
  }
}

/* Swiper Overrides */
.swiper-container-wrapper {
  overflow: hidden;
}

.swiper {
  width: 100%;
  height: 100%;
}

.swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bottom-align-swiper .swiper-slide {
  display: flex;
  align-items: flex-end;
}

.bottom-align-swiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: unset;
}

/* Custom Swiper Arrows */
.custom-arrows-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.custom-prev,
.custom-next {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.custom-prev::after,
.custom-next::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.custom-prev::after {
  border-right: 12px solid #926127;
  margin-right: 4px;
}

.custom-next::after {
  border-left: 12px solid #926127;
  margin-left: 4px;
}

/* Form Styles */
.form-layer {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reservation-form {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  container-type: inline-size;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 6px 15px;
  color: #333;
  border: 1px solid #ddd;
  border-radius: 0;
  font-size: clamp(12px, calc(16 / var(--container-width, var(--web-breakpoint, 1000)) * 100cqi), 18px);
  font-family: 'NotoSansHans', sans-serif;
  background-color: rgba(255, 255, 255, 0.75);
  border: solid 1px transparent;
  border-bottom: solid 1px #754C24;
}

.select-wrapper {
  position: relative;
}

.select-wrapper select {
  height: 100%;
}

.select-icon {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 16px;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.select-icon svg {
  width: 100%;
  height: 100%;
}

.checkbox-label {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(12px, calc(14 / var(--container-width, var(--web-breakpoint, 1000)) * 100cqi), 18px);
  /* 14px */
  height: 10%;
  gap: 10px;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.reservation-form button {
  width: 50%;
  margin: 0 auto;
  display: block;
  background-color: #1A222B;
  color: white;
  border: none;
  font-size: clamp(12px, calc(18 / var(--container-width, var(--web-breakpoint, 1000)) * 100cqi), 18px);
  /* 18px */
  letter-spacing: 2px;
  cursor: pointer;
}


/* Swipe Hint Overlay */
.swipe-hint-overlay {
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  pointer-events: none;
  transition: opacity 0.4s ease-out;
  z-index: 10;
}

.swipe-hint-overlay.hidden {
  opacity: 0 !important;
}

.swipe-hint-circle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.75);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  color: white;
  font-family: sans-serif;
}

.swipe-icon-container {
  animation: swipeHandAnim 2.5s infinite ease-in-out;
}

.swipe-icon-container svg {
  width: 45px;
  height: 45px;
}

.swipe-text {
  margin-top: 8px;
  font-size: 1rem;
  letter-spacing: 2px;
  font-weight: bold;
}

@keyframes swipeHandAnim {

  0%,
  100% {
    transform: translateX(8px);
  }

  50% {
    transform: translateX(-8px);
  }
}

/* Privacy Modal Styles */
.privacy-modal-trigger {
  text-decoration: underline;
  cursor: pointer;
  color: #1A222B;
}

.privacy-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.privacy-modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.privacy-modal-container {
  background-color: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.privacy-modal-overlay.is-open .privacy-modal-container {
  transform: translateY(0);
}

.privacy-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f0f0f0;
}

.privacy-modal-title {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.privacy-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: color 0.2s;
}

.privacy-modal-close:hover {
  color: #333;
}

.privacy-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #555;
}
.form-container {
  background-color: var(--theme-bg-color, #1B1464);
}
/* Reservation Form Styles */
.reservation-form {
  padding: 40px clamp(15px, 10vw, 40px);
  color: #fff;
  font-family: inherit;
}

.reservation-form .form-title {
  font-size: clamp(22px, 6vw, 32px);
  text-align: center;
  margin-bottom: 40px;
  font-weight: 400;
  letter-spacing: 1px;
}

.reservation-form .form-title .divider {
  margin: 0 10px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
}

.reservation-form .form-group {
  display: flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 4px;
  padding: 12px 15px;
  margin-bottom: 20px;
  background-color: transparent;
}

.reservation-form .form-group.align-top {
  align-items: flex-start;
}

.reservation-form .form-label {
  display: flex;
  align-items: center;
  width: 90px;
  flex-shrink: 0;
  color: #00ffff;
  font-size: clamp(14px, 4vw, 16px);
}

.reservation-form .form-label .label-text {
  flex: 1;
  text-align: justify;
  text-align-last: justify;
}

.reservation-form .req {
  color: #ff0000;
  margin-left: 5px;
}

.reservation-form .form-control {
  flex: 1;
  margin-left: 20px;
  display: flex;
  flex-direction: column;
}

.reservation-form .form-control input,
.reservation-form .form-control select,
.reservation-form .form-control textarea {
  width: 100%;
  background-color: transparent;
  border: none;
  color: #ffffff;
  font-size: clamp(14px, 4vw, 16px);
  font-family: inherit;
  outline: none;
  resize: none;
  padding: 0;
}

.reservation-form .form-control input::placeholder,
.reservation-form .form-control textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.reservation-form .form-control select {
  appearance: none;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") no-repeat right center;
  background-size: 16px;
  padding-right: 20px;
}

.reservation-form .form-control select option {
  color: #000;
}

.reservation-form .twzipcode-container {
  gap: 15px;
}

.reservation-form .twzipcode-container select {
  margin-bottom: 15px;
}
.reservation-form .twzipcode-container select:last-child {
  margin-bottom: 0;
}

.reservation-form .msg-group textarea {
  margin-top: 2px;
}

.reservation-form .form-terms {
  text-align: center;
  font-size: clamp(13px, 3.5vw, 15px);
  margin-bottom: 30px;
  margin-top: 10px;
}

.reservation-form .privacy-modal-trigger {
  color: #00ffff;
  text-decoration: underline;
  cursor: pointer;
}

.reservation-form .submit-btn {
  display: block;
  width: 100%;
  background-color: #ffffff;
  color: #1B1464;
  border: none;
  border-radius: 4px;
  padding: 15px;
  font-size: clamp(16px, 4.5vw, 18px);
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.3s;
  letter-spacing: 1px;
}

.reservation-form .submit-btn:hover {
  opacity: 0.9;
}
