:root {
  --menu-height: 80px;
}

/* 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;
}

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

.fig-frame__layer {
  position: absolute;
}

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

/* Mobile-only Layout */
:root {
  --theme-bg-color: #E25F2A; /* Fallback theme color */
}
body.mobile-only-layout {
  background-color: var(--theme-bg-color);
}
body.mobile-only-layout .mobile-view {
  display: block; /* 覆蓋預設的 none */
  max-width: 800px; /* 與 breakpoint 相同 */
  margin: 0 auto;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
  min-height: 100vh;
  overflow: hidden;
}
body.mobile-only-layout .desktop-view {
  display: none !important;
}
body.mobile-only-layout .mobile-menu {
  max-width: 800px;
  left: 50%;
  transform: translateX(-50%);
}

.desktop-view {
  display: block;
}

.mobile-view {
  display: none;
}

@media (max-width: 800px) {
  .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;
}

/* 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 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0;
}

.reservation-form input[type="text"],
.reservation-form input[type="tel"],
.reservation-form select {
  width: 100%;
  height: 16%;
  background-color: #EBEBEB;
  border: none;
  padding: 0 15px;
  font-size: 16px;
  color: #333;
  appearance: none;
}

.select-wrapper {
  position: relative;
  height: 16%;
}

.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: 14px;
  height: 10%;
  gap: 10px;
  cursor: pointer;
}

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

.reservation-form button {
  width: 50%;
  height: 16%;
  margin: 0 auto;
  display: block;
  background-color: #1A222B;
  color: white;
  border: none;
  font-size: 18px;
  letter-spacing: 2px;
  cursor: pointer;
}

/* Mobile Form Responsive Fonts & Spacing */
@media (max-width: 800px) {
  .mobile-view .fig-frame:last-child {
    margin-bottom: var(--menu-height);
  }

  .mobile-view .reservation-form input[type="text"],
  .mobile-view .reservation-form input[type="tel"],
  .mobile-view .reservation-form select {
    font-size: calc(100vw * 32 / 1000);
    padding: 0 calc(100vw * 20 / 1000);
  }

  .mobile-view .checkbox-label {
    font-size: calc(100vw * 26 / 1000);
    gap: calc(100vw * 10 / 1000);
  }

  .mobile-view .checkbox-label input[type="checkbox"] {
    width: calc(100vw * 28 / 1000);
    height: calc(100vw * 28 / 1000);
  }

  .mobile-view .reservation-form button {
    width: 55%;
    height: 16%;
    font-size: calc(100vw * 36 / 1000);
  }

  .mobile-view .select-icon {
    right: calc(100vw * 20 / 1000);
    width: calc(100vw * 24 / 1000);
    height: calc(100vw * 28 / 1000);
  }
}

/* Mobile Menu Styles */
.mobile-menu {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--menu-height);
  min-height: 60px;
  background-color: #926127;
  display: none;
  z-index: 100;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

@media (max-width: 800px) {
  .mobile-menu {
    display: flex;
  }
}

.mobile-menu a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: calc(100vw * 10 / 1000);
  color: white;
  text-decoration: none;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  font-size: calc(100vw * 28 / 1000);
}

.mobile-menu a .icon-wrapper {
  width: calc(100vw * 44 / 1000);
  height: calc(100vw * 44 / 1000);
  display: flex;
  justify-content: center;
  align-items: center;
}

.mobile-menu a .icon-wrapper svg {
  width: 100%;
  height: 100%;
}

.mobile-menu a:last-child {
  border-right: none;
}

/* 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;
  animation: swipeCircleFade 2.5s infinite ease-in-out;
}

.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);
  }
}

@keyframes swipeCircleFade {

  0%,
  100% {
    opacity: 0.5;
  }
}

/* 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;
}