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

/* 全站紙紋底：桌機／手機共用同一張，取代原本各區塊內的全寬高紋理圖層 */
/* 寬度填滿、沿垂直方向重複；桌機一格高度（100vw × 1080 / 1920）剛好等於一個區塊，接縫落在區塊交界 */
body {
  background: #f6f6f6 url("../images/bg-texture.webp") top center / 100% auto
    repeat-y;
}

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

.fig-frame__layer {
  position: absolute;
}

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

/* 共用線框（index.html 的 <symbol id="fig-line">）：線寬固定 1px，不隨畫面縮放 */
/* --line-v／--line-h 為直線／橫線的繪製進度（0~1），由 data-anim="draw-line" 驅動 */
.fig-line {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: #00a072;
  shape-rendering: crispEdges;
}

.fig-line--mirror {
  transform: scaleX(-1);
}

.fig-line__v {
  transform: scaleY(var(--line-v, 1));
}

.fig-line__h {
  transform: translateY(-1px) scaleX(var(--line-h, 1));
}

/* 光影流動效果：僅疊加於背景圖層之上，靠 DOM 疊層順序讓後續文字/圖片圖層自然遮蓋 */
/* <div class="fig-frame__glow" aria-hidden="true"></div> 放在背景圖之後、其他圖片之前 */
.fig-frame__glow {
  position: absolute;
  inset: -45%;
  pointer-events: none;
  mix-blend-mode: overlay;
  background:
    radial-gradient(
      circle at 28% 32%,
      rgba(255, 196, 110, 0.85),
      transparent 30%
    ),
    radial-gradient(circle at 74% 62%, rgba(255, 150, 60, 0.8), transparent 22%);
  animation: fig-frame-glow-drift 5s linear infinite;
}


.loop-fade {
    animation: loop-fade 5s infinite ;
}
@keyframes loop-fade {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.4;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fig-frame-glow-drift {
  0% {
    transform: translate(-10%, -8%) scale(1) rotate(0deg);
  }
  33% {
    transform: translate(9%, -6%) scale(1.5) rotate(45deg);
  }
  66% {
    transform: translate(4%, 10%) scale(0.95) rotate(25deg);
  }
  100% {
    transform: translate(-10%, -8%) scale(1) rotate(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fig-frame__glow {
    animation: none;
  }
}


/* RWD設定 */
.desktop-view {
  display: block;
  --container-width: 1920;
}

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

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

  .mobile-view {
    display: block;
  }
}

:root {
  --web-breakpoint: 768;
  /* 響應式斷點基準值（桌機/手機切換），需與 @media (max-width) 及 window.__webBreakpoint 同步修改，見 docs/02-html-structure.md 2-B */
  /* Menu */
  --desktop-menu-height: 80px;
  --mobile-menu-height: 0px;
  /* 依設計稿實際高度覆寫此值，見 docs/02-html-structure.md mobile-menu.html 客製化 */
  --theme-bg-color: #e25f2a;
  /* Fallback theme color，純手機版模式時由 docs/01-setup.md 依設計稿主色調覆寫此值 */
}

/* 選單樣式 */
.desktop-menu,
.mobile-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 2.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 999;
}

.desktop-menu {
  padding-right: 0;
  height: var(--desktop-menu-height);
  background: url("../images/desktop/menu-bg.webp") center center;
  --menu-font-size: clamp(
    14px,
    calc(16 / var(--container-width, 1920) * 100cqi),
    20px
  );
  /* backdrop-filter: saturate(180%) blur(20px); */
}
.mobile-menu {
  height: var(--mobile-menu-height);
  background: url("../images/mobile/menu-bg.webp") center center;
  font-size: clamp(
    10px,
    calc(16 / var(--container-width, 1920) * 100cqi),
    18px
  );
  /* 毛玻璃：主要於使用背景圖片時開啟 */
  /* backdrop-filter: saturate(180%) blur(20px); */
  /* 讓parallax效果正確，將height設為2倍 */
  background-size: 100% 200%;
}

.desktop-menu--logo {
  width: clamp(180px, calc(180 / var(--container-width, 1920) * 100cqi), 220px);
}
.mobile-menu--logo {
  width: clamp(100px, 35%, 180px);
  display: flex;
  align-items: center;
}

.desktop-menu--container,
.mobile-menu--container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: clamp(12px, 1.5%, 28px);
  width: 60%;
}

.mobile-menu--item {
  position: relative;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  flex-grow: 1;
  /* width: clamp(12px, 8vw, 48px); */
}

.desktop-menu--item::before,
.mobile-menu--item::before {
  position: absolute;
  content: "";
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  left: clamp(-6px, -0.75%, -28px);
}

.desktop-menu--item {
  position: relative;
  text-decoration: none;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding-block: 12px;
}

.desktop-menu--item svg {
  width: clamp(14px, 4vw, 24px);
  height: clamp(14px, 4vw, 24px);
}

.mobile-menu--item svg {
  width: clamp(12px, 4vw, 20px);
  height: clamp(12px, 4vw, 20px);
}

.desktop-menu--item span,
.mobile-menu--item span {
  color: #fff;
  text-align: center;
}

/* 懸浮選單（漢堡按鈕展開／收合下方的粉絲專頁、地圖導航） */
/* 桌機：貼左、垂直置中；尺寸與位置以設計稿寬度 1920 為基準隨視窗等比縮放 */
/* 收合時只剩漢堡按鈕、展開時為三顆按鈕，兩種狀態都以整組高度置中（translateY(-50%)） */
.float-menu {
  --float-btn-size: clamp(32px, calc(38 / 1920 * 100vw), 44px);
  --float-btn-gap: clamp(10px, calc(12 / 1920 * 100vw), 14px);
  --float-left: calc(60 / 1920 * 100vw);
  --float-color: #103020;
  --float-bg: #ebebeb;
  position: fixed;
  left: var(--float-left);
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.float-menu__btn {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: var(--float-btn-size);
  height: var(--float-btn-size);
  border: none;
  border-radius: 50%;
  background-color: var(--float-bg);
  color: var(--float-color);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}

.float-menu__btn svg {
  display: block;
  width: 78%;
  height: 78%;
}

.float-menu__btn:focus-visible {
  outline: 2px solid #00a072;
  outline-offset: 2px;
}

@media (hover: hover) {
  .float-menu__btn:hover {
    background-color: var(--float-color);
    color: var(--float-bg);
  }
}

/* 展開項目：以容器高度的過渡帶動整組重新置中 */
.float-menu__items {
  display: flex;
  flex-direction: column;
  height: 0;
  transition: height 0.4s ease;
}

.float-menu.is-open .float-menu__items {
  height: calc((var(--float-btn-size) + var(--float-btn-gap)) * 2);
}

.float-menu__items .float-menu__btn {
  margin-top: var(--float-btn-gap);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-40%) scale(0.8);
  transition:
    background-color 0.3s ease,
    color 0.3s ease,
    opacity 0.3s ease,
    transform 0.4s ease,
    visibility 0s linear 0.4s;
}

.float-menu.is-open .float-menu__items .float-menu__btn {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s, 0s, 0.05s, 0.05s, 0s;
}

.float-menu.is-open .float-menu__items .float-menu__btn:nth-child(2) {
  transition-delay: 0s, 0s, 0.12s, 0.12s, 0s;
}

/* 手機：改貼左上角（以設計稿寬度 1080 為基準），展開時向下延伸 */
@media (max-width: 768px) {
  .float-menu {
    --float-btn-size: clamp(30px, calc(54 / 1080 * 100vw), 38px);
    --float-btn-gap: clamp(9px, calc(16 / 1080 * 100vw), 12px);
    --float-left: calc(44 / 1080 * 100vw);
    top: calc(68 / 1080 * 100vw);
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-menu__btn,
  .float-menu__items,
  .float-menu__items .float-menu__btn {
    transition: none;
  }
}

/* 回頂按鈕：固定於畫面右下角的灰色箭頭（無底色），尺寸與位置以設計稿寬度 1920 為基準等比縮放 */
/* --top-pad 為擴大點擊範圍用的內距，right／bottom 已扣除，箭頭本身的位置不受影響 */
.back-to-top {
  --top-icon-width: clamp(22px, calc(32 / 1920 * 100vw), 36px);
  --top-pad: 10px;
  position: fixed;
  right: max(0px, calc(20 / 1920 * 100vw - var(--top-pad)));
  bottom: max(0px, calc(23 / 1920 * 100vw - var(--top-pad)));
  z-index: 1000;
  display: block;
  width: calc(var(--top-icon-width) + var(--top-pad) * 2);
  padding: var(--top-pad);
  border: none;
  background: none;
  color: #b4b4b4;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  visibility: hidden;
  transition:
    color 0.3s ease,
    opacity 0.4s ease,
    visibility 0s linear 0.4s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.back-to-top svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.back-to-top:focus-visible {
  outline: 2px solid #00a072;
  outline-offset: -2px;
}

@media (hover: hover) {
  .back-to-top:hover {
    color: #00a072;
  }
}

/* 手機：以設計稿寬度 1080 為基準 */
@media (max-width: 768px) {
  .back-to-top {
    --top-icon-width: clamp(16px, calc(29 / 1080 * 100vw), 22px);
    right: max(0px, calc(18 / 1080 * 100vw - var(--top-pad)));
    bottom: max(0px, calc(27 / 1080 * 100vw - var(--top-pad)));
  }
}

@media (prefers-reduced-motion: reduce) {
  .back-to-top {
    transition: none;
  }
}

/* 只有手機版時額外樣式 */
body.mobile-only-layout {
  background-color: var(--theme-bg-color);
}

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

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

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

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

/* Custom Swiper Pagination */
/* 位置由各 .swiper-pagination 的 inline style（取自設計稿「輪播分頁」圖層）決定；
   圓點 12px、間距 20px（以設計稿寬度為基準等比縮放） */
.swiper-pagination {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: max(8px, calc(20 / var(--container-width, 1920) * 100cqi));
  --swiper-pagination-bottom: auto;
}

.swiper-pagination-bullet {
  flex-shrink: 0;
  width: max(5px, calc(12 / var(--container-width, 1920) * 100cqi));
  height: max(5px, calc(12 / var(--container-width, 1920) * 100cqi));
  background-color: #ffffff;
  opacity: 1;
  border-radius: 50%;
  border: none;
  margin: 0 !important;
  transition: background-color 0.3s ease;
}

.swiper-pagination-bullet-active {
  opacity: 1 !important;
  background-color: #00ff67;
}

/* 淺色底上的分頁：未選中為灰色 */
.swiper-pagination--gray .swiper-pagination-bullet {
  background-color: #c9caca;
}

.swiper-pagination--gray .swiper-pagination-bullet-active {
  background-color: #00ff67;
}

/* 團隊介紹輪播：選中為深綠 */
.swiper-pagination--deep .swiper-pagination-bullet-active {
  background-color: #00a072;
}

.justify-center {
  justify-content: center;
}
.justify-start {
  justify-content: start;
}
.justify-end {
  justify-content: end;
}

.object-cover {
  object-fit: cover;
}
.object-contain {
  object-fit: contain;
}

/* 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: auto;
  display: flex;
  flex-direction: column;
  gap: calc(16 / var(--container-width, 1920) * 100cqi);
  /* 背景填色 */
  /* background-color: #fff; */
  /* 內距 */
  /* padding: calc(48 / var(--container-width, 1920) * 100cqi) 0
    calc(28 / var(--container-width, 1920) * 100cqi); */
}

.desktop-view .reservation-form {
  --form-font-size: clamp(
    12px,
    calc(16 / var(--container-width, 1920) * 100cqi),
    20px
  );
}
.mobile-view .reservation-form {
  --form-font-size: clamp(
    10px,
    calc(16 / var(--container-width, 1920) * 100cqi),
    18px
  );
}

.reservation-form * {
  font-size: var(--form-font-size);
}

/* 單選 */
.radio-group {
  display: flex;
  gap: calc(20 / var(--container-width, 1920) * 100cqi);
  margin-bottom: calc(20 / var(--container-width, 1920) * 100cqi);
}

.radio-group label {
  display: flex;
  align-items: center;
  gap: calc(8 / var(--container-width, 1920) * 100cqi);
  cursor: pointer;
}

.radio-group input[type="radio"] {
  width: calc(16 / var(--container-width, 1920) * 100cqi);
  height: calc(16 / var(--container-width, 1920) * 100cqi);
  margin: 0;
}

/* 文字輸入 */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: calc(12 / var(--container-width, 1920) * 100cqi)
    calc(16 / var(--container-width, 1920) * 100cqi);
  font-family: "NotoSansHans", sans-serif;
  outline: none;
  /* 字色 */
  color: #333;
  /* 底色 */
  background-color: rgba(255, 255, 255, 0.75);
  /* 邊框 */
  border-radius: calc(4 / var(--container-width, 1920) * 100cqi);
  border: 1px solid #ddd;
}

.form-input[type="tel"],
.form-input[type="email"] {
  /* 對齊中文 */
  text-indent: 4px;
}

.form-textarea {
  resize: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #555;
}

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

.form-container-wrapper {
  width: 30vw;
  max-width: 640px;
  margin: 0 auto;
}
.form-row {
  display: flex;
  gap: 16px;
  width: 100%;
}

.reservation-form .form-label {
  display: flex;
  align-items: center;
  width: clamp(60px, 20%, 100px);
  flex-shrink: 0;
  color: #192532;
  /* label大小與input不同的時候 */
  /* 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 .req--placeholder {
  color: transparent;
}
.reservation-form .form-terms {
  color: #ffffff;
  text-align: center;
  margin-block: 10px;
}
.form-group {
  display: flex;
  align-items: center;
  border: 1px solid #ffffff;
  background: rgba(255, 255, 234, 0.7);
  border-radius: 8px;
  padding: 8px 15px;
}
.v-form-group {
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-block: 24px;
}
.v-form-group .form-textarea {
  padding-left: 0;
}

@media screen and (max-width: 768px) {
  .form-row {
    flex-direction: column;
  }
}

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

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

.radio-group {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
  margin-bottom: 8px !important;
  color: #555;
}
.radio-group label {
  display: flex;
  align-items: center;
  gap: calc(8 / var(--container-width, 1920) * 100cqi);
  cursor: pointer;
}
.radio-group input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: calc(24 / var(--container-width, 1920) * 100cqi);
  height: calc(24 / var(--container-width, 1920) * 100cqi);
  background-color: #ffffff;
  border-radius: calc(6 / var(--container-width, 1920) * 100cqi);
  border: none;
  cursor: pointer;
  position: relative;
}
.radio-group input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: calc(12 / var(--container-width, 1920) * 100cqi);
  height: calc(12 / var(--container-width, 1920) * 100cqi);
  background-color: #4c7a6d;
  border-radius: calc(3 / var(--container-width, 1920) * 100cqi);
}

.zipcode3 {
  display: flex;
  gap: 1rem;
}
.zipcode3 .form-label {
  display: none !important;
}
.zipcode3 .select-wrapper {
  flex: 1;
}

/* 提交按鈕 */
.submit-btn-wrapper {
  position: relative;
  display: inline-block;
  margin-top: calc(10 / var(--container-width, 1920) * 100cqi);
  width: fit-content;
}
.submit-btn {
  display: block;
  cursor: pointer;
  /* 字跟其他欄位大小不同的時候 */
  /* font-size: clamp(
    12px,
    calc(20 / var(--container-width, 1920) * 100cqi),
    20px
  ); */
  /* 寬度、距 */
  margin: 0 auto;
  letter-spacing: calc(2 / var(--container-width, 1920) * 100cqi);
  /* padding: calc(14 / var(--container-width, 1920) * 100cqi)
    calc(32 / var(--container-width, 1920) * 100cqi); */
  /* 顏色 */
  background-color: #1a222b;
  color: white;
  /* 邊框 */
  border: none;
  /* border-radius: calc(12 / var(--container-width, 1920) * 100cqi); */
}

/* 額外裝飾icon svg */
/* .submit-btn svg {
  stroke: #760000;
  width: calc(32 / var(--container-width, 1920) * 100cqi);
  transition: stroke 0.3s ease-in-out;
} */

 /* 設計稿指標icon樣式 */
.submit-btn-wrapper .pointer-icon {
  position: absolute;
  right: calc(-20 / var(--container-width, 1920) * 100cqi);
  bottom: calc(-20 / var(--container-width, 1920) * 100cqi);
  width: calc(40 / var(--container-width, 1920) * 100cqi);
  pointer-events: 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;
}
.swipe-icon-container {
  animation: swipeHandAnim 2.5s infinite ease-in-out;
}
.swipe-icon-container svg {
  width: 45px;
  height: 45px;
}
.swipe-hint-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;
}

/* Custom Click Animation */
@keyframes click-diagonal {
  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(-5px, -5px);
  }
}

.anim-click-diagonal {
  animation: click-diagonal 1.5s infinite ease-in-out;
}

/* Lightbox 點擊放大 */
[data-name="點擊放大"],
[data-name*="點擊放大"] {
  cursor: zoom-in;
}

[data-name="點擊放大"] a.pswp-item,
[data-name*="點擊放大"] a.pswp-item {
  display: block;
  width: 100%;
  height: 100%;
  cursor: zoom-in;
  text-decoration: none;
}

/* 聯絡區塊（地圖／基本資料／hiyes 預約表單） */
/* --u 為設計稿 1px 換算後的長度（桌機以 1920、手機以 1080 為基準）。桌機與手機設計稿的元件數值相同，
   因此同一組規則可對應兩版，手機版差異集中在下方 .mobile-view 的覆寫；max() 為小螢幕的可讀性下限 */
.contact-section {
  --u: calc(100cqi / var(--container-width, 1920));
  --contact-green: #009d70;
  --contact-deep: #005b2b;
  --contact-text: max(12px, calc(19 * var(--u)));
  --contact-label: max(12px, calc(18 * var(--u)));
  --contact-input: max(12px, calc(18 * var(--u)));
  --contact-note: max(11px, calc(16 * var(--u)));
  --contact-title: max(16px, calc(24 * var(--u)));
  --contact-field-height: max(30px, calc(43 * var(--u)));
  --contact-field-gap: calc(22 * var(--u));
  --contact-label-gap: calc(9 * var(--u));
  min-height: calc(100vw * 1080 / 1920);
  background: var(--contact-green) url("../images/bg-texture.webp") top
    center / 100% auto repeat-y;
  background-blend-mode: multiply;
  color: #fff;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  font-weight: 300;
}

/* 底紋葉片：沿用首屏的葉片圖，去色後以色彩增值疊在綠底上，呈現設計稿的同色系暗紋 */
.contact-section__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

/* 原圖的裁切邊在右側與下方：水平翻轉後貼齊區塊左下角，讓裁切邊落在區塊邊界上 */
.contact-section__leaf {
  position: absolute;
  left: -30%;
  top: -25%;
  /* width: 58%; */
  height: 150%;
  filter: grayscale(1) brightness(1.5) contrast(0.7);
  mix-blend-mode: multiply;
  opacity: 0.4;
}

.contact-section__brand {
  position: absolute;
  left: 4.12%;
  top: calc(68 * var(--u));
  width: 10.57%;
  filter: brightness(0) invert(1);
}

.contact-section__brand img {
  height: auto;
}

.contact-section__inner {
  position: relative;
  display: grid;
  grid-template-columns: calc(597 * var(--u)) calc(675 * var(--u));
  column-gap: calc(300 * var(--u));
  align-items: start;
  padding: calc(110 * var(--u)) 0 calc(76 * var(--u)) calc(185 * var(--u));
}

.contact-info {
  margin-top: calc(71 * var(--u));
}

.contact-map {
  aspect-ratio: 597 / 390;
  background-color: #e8eaed;
}

.contact-details {
  margin-top: calc(84 * var(--u));
}

.contact-title {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--u));
  font-size: var(--contact-title);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.contact-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.65);
}

.contact-title--info::after {
  display: none;
}

/* 桌機：「立即預約」的標題線延伸至畫面右緣 */
.contact-form-container .contact-title {
  margin-right: calc(-163 * var(--u));
}

.contact-list {
  margin-top: calc(24 * var(--u));
  list-style: none;
  font-size: var(--contact-text);
  line-height: calc(35 / 19);
  letter-spacing: 0.16em;
}

.contact-list li {
  display: flex;
}

.contact-list__label {
  flex-shrink: 0;
  white-space: nowrap;
}

.contact-list__label::after {
  content: "|";
  margin: 0 0.55em 0 0.35em;
}

.contact-list a {
  color: inherit;
  text-decoration: none;
}

/* 預約表單 */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--contact-field-gap);
  margin-top: calc(55 * var(--u));
  font-size: var(--contact-label);
  letter-spacing: 0.06em;
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: var(--contact-label-gap);
}

.contact-form__label {
  line-height: 1.2;
}

.contact-form__label-row {
  display: flex;
  align-items: center;
  gap: calc(20 * var(--u));
}

.contact-form .radio-group {
  gap: calc(20 * var(--u));
  margin-bottom: 0 !important;
  color: inherit;
  line-height: 1.2;
}

.contact-form .radio-group label {
  gap: calc(5 * var(--u));
}

.contact-form .radio-group input[type="radio"] {
  flex-shrink: 0;
  width: max(12px, calc(16 * var(--u)));
  height: max(12px, calc(16 * var(--u)));
  border-radius: 50%;
}

.contact-form .radio-group input[type="radio"]:checked::after {
  width: 56%;
  height: 56%;
  border-radius: 50%;
  background-color: var(--contact-deep);
}

.contact-form .form-input,
.contact-form .form-select {
  height: var(--contact-field-height);
  padding: 0 calc(14 * var(--u));
  font-family: inherit;
  font-size: var(--contact-input);
  font-weight: 400;
  letter-spacing: inherit;
  text-indent: 0;
  color: #333;
  background-color: #fff;
  border: none;
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}

.contact-form .form-input[type="number"] {
  -moz-appearance: textfield;
}

.contact-form .form-input[type="number"]::-webkit-outer-spin-button,
.contact-form .form-input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.contact-form .form-select {
  padding-right: calc(52 * var(--u));
  cursor: pointer;
}

/* 尚未選擇（twzipcode 的預設選項 value 為空）時，以灰字呈現提示文字 */
.contact-form .form-select:has(option[value=""]:checked) {
  color: #777;
}

.contact-form .form-select option {
  color: #333;
}

.contact-form .select-icon {
  right: calc(18 * var(--u));
  width: max(10px, calc(18 * var(--u)));
  height: auto;
  color: #333;
}

.contact-form .form-input:focus-visible,
.contact-form .form-select:focus-visible,
.contact-form input[type="radio"]:focus-visible,
.contact-form input[type="checkbox"]:focus-visible,
.contact-form button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* twzipcode 的容器只負責包住縣市／鄉鎮市區兩個欄位，不參與排版 */
.contact-form__zipcode {
  display: contents;
}

.contact-form__verify {
  display: flex;
  gap: calc(12 * var(--u));
}

.contact-form__verify .form-input {
  flex: 1;
  min-width: 0;
}

.contact-form__verify-btn {
  flex-shrink: 0;
  height: var(--contact-field-height);
  padding: 0 calc(28 * var(--u));
  border: none;
  background-color: var(--contact-deep);
  color: #fff;
  font-family: inherit;
  font-size: var(--contact-label);
  font-weight: 400;
  letter-spacing: 0.1em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form__notice {
  margin-top: calc(6 * var(--u));
  font-size: var(--contact-note);
  line-height: 1.6;
}

.contact-form__notice p + p {
  margin-top: calc(10 * var(--u));
}

.contact-form__notice span {
  display: inline-block;
  margin-right: 2em;
}

.contact-form__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: calc(16 * var(--u)) calc(24 * var(--u));
  margin-top: calc(20 * var(--u));
}

.contact-form .checkbox-label {
  justify-content: flex-start;
  height: auto;
  gap: calc(12 * var(--u));
}

.contact-form .checkbox-label input[type="checkbox"] {
  position: relative;
  flex-shrink: 0;
  width: max(16px, calc(25 * var(--u)));
  height: max(16px, calc(25 * var(--u)));
  margin: 0;
  background-color: #fff;
  border-radius: max(3px, calc(4 * var(--u)));
  -webkit-appearance: none;
  appearance: none;
}

.contact-form .checkbox-label input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 34%;
  top: 12%;
  width: 28%;
  height: 56%;
  border: solid var(--contact-deep);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.contact-form .submit-btn {
  height: max(36px, calc(52 * var(--u)));
  margin: 0;
  padding: 0 calc(27 * var(--u));
  border-radius: 999px;
  background-color: var(--contact-deep);
  font-family: inherit;
  font-size: var(--contact-title);
  font-weight: 400;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.contact-form .submit-btn:disabled {
  opacity: 0.7;
  cursor: default;
}

@media (hover: hover) {
  .contact-form__verify-btn:hover,
  .contact-form .submit-btn:not(:disabled):hover {
    background-color: #00401e;
  }
}

/* 手機版：單欄直排（地圖 → 基本資料 → 預約表單），高度隨內容延伸 */
.mobile-view .contact-section {
  --contact-text: max(13px, calc(19 * var(--u)));
  --contact-label: max(13px, calc(18 * var(--u)));
  --contact-input: max(14px, calc(18 * var(--u)));
  --contact-note: max(11px, calc(16 * var(--u)));
  --contact-title: max(16px, calc(25 * var(--u)));
  --contact-field-height: max(38px, calc(43 * var(--u)));
  --contact-field-gap: max(14px, calc(22 * var(--u)));
  --contact-label-gap: max(6px, calc(9 * var(--u)));
  min-height: 0;
}

/* 手機：改用完整去背的葉片圖（contact-leaf.webp，無裁切邊），不需翻轉 */
.mobile-view .contact-section__leaf {
  top: -10%;
  left: -50%;
  bottom: auto;
  width: 150%;
  height: auto;
}

.mobile-view .contact-section__inner {
  display: block;
  padding: calc(95 * var(--u)) calc(107 * var(--u)) max(56px, calc(105 * var(--u)))
    calc(124 * var(--u));
}

.mobile-view .contact-info {
  margin-top: 0;
}

.mobile-view .contact-map {
  aspect-ratio: 852 / 518;
}

.mobile-view .contact-details {
  margin-top: max(28px, calc(75 * var(--u)));
}

.mobile-view .contact-title {
  gap: max(10px, calc(14 * var(--u)));
  margin-right: 0;
}

.mobile-view .contact-title--info::after {
  display: block;
}

.mobile-view .contact-list {
  margin-top: max(12px, calc(24 * var(--u)));
  letter-spacing: 0.1em;
}

.mobile-view .contact-form-container {
  margin-top: max(32px, calc(52 * var(--u)));
}

.mobile-view .contact-form {
  margin-top: max(20px, calc(55 * var(--u)));
}

.mobile-view .contact-form .form-input,
.mobile-view .contact-form .form-select {
  padding-left: max(12px, calc(14 * var(--u)));
}

.mobile-view .contact-form .form-select {
  padding-right: 40px;
}

.mobile-view .contact-form .select-icon {
  right: 14px;
  width: 14px;
}

.mobile-view .contact-form .radio-group,
.mobile-view .contact-form__label-row {
  gap: max(14px, calc(20 * var(--u)));
}

.mobile-view .contact-form .radio-group label {
  gap: max(5px, calc(5 * var(--u)));
}

.mobile-view .contact-form__verify {
  gap: max(8px, calc(12 * var(--u)));
}

.mobile-view .contact-form__verify-btn {
  padding: 0 max(14px, calc(28 * var(--u)));
}

.mobile-view .contact-form__notice p + p {
  margin-top: max(6px, calc(10 * var(--u)));
}

.mobile-view .contact-form__actions {
  gap: 16px;
  margin-top: max(12px, calc(40 * var(--u)));
}

.mobile-view .contact-form .checkbox-label {
  gap: max(8px, calc(12 * var(--u)));
}

.mobile-view .contact-form .submit-btn {
  height: max(40px, calc(52 * var(--u)));
  padding: 0 max(18px, calc(27 * var(--u)));
  font-size: max(15px, calc(24 * var(--u)));
}

/* jquery-confirm 提示框（booking.js 的驗證與送出訊息）：本頁 body 未指定字體，補上與聯絡區塊一致的字體 */
.jconfirm,
.jconfirm .jconfirm-box .jconfirm-buttons button {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}
