* {
  box-sizing: border-box;
}

:root {
  --color-forest-green: #25483a;
  --color-cloud-beige: #edeadf;
  --color-accent-green: #207028;
  --color-accent-yellow: #efdf7f;
  --color-accent-orange: #c97d31;
  --cloud: #ffffff80;
  --bg: #0f1724;
  --card: #0b1220;
  --accent: #ffffff;
  --white: #ffffff;
  --radius: 12px;
}

body {
  font-family:
    Arial,
    noto sans CJK TC;
  background-color: #fadeac;
  margin: 0;
}

img {
  max-width: 100%;
}

/* 平滑滾動 */
html {
  scroll-behavior: smooth;
}

/*跳出*/
#overlay,
#popup {
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

#overlay.active {
  opacity: 1;
  pointer-events: auto;
}

#popup {
  transform: translate(-50%, -50%) scale(0.8);
}

#popup.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 50%);
  z-index: 9998;
}

#popup {
  position: fixed;
  top: 50%;
  left: 50%;
  width: 500px;
  max-width: 90%;
  background: white;
  border: 2px solid #888;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
}

#popup.active .carousel {
  opacity: 1 !important;
  transform: none !important;
}

/* 左右箭頭容器 */

.carousel-control-prev,
.carousel-control-next {
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  top: 60%;
}

/* 左右再分開一點 */

.carousel-control-prev {
  left: -50px;
}

.carousel-control-next {
  right: -50px;
}

.message-box {
  max-height: 420px;
  overflow-y: auto;
  padding: 20px;
}

.message-box p {
  margin-bottom: 6px;
}

.close-btn {
  float: right;
  cursor: pointer;
  font-weight: bold;
}

/* 固定 header */
.header {
  /*position: fixed;*/
  margin-top: 10px;
  top: 0;
  left: 0;
  width: 100%;
  height: 70px;
  background-color: #25483a;
  color: #edeadf;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  border-radius: 50px;
}

#header-wrap {
  position: absolute;
  z-index: 1;
  width: 100%;
}

#header-wrap.fixed-header {
  padding: 10px 0;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999 !important;
  animation: smoothScroll 1s forwards;
}

#header-wrap.fixed-header .header {
  box-shadow: 0 10px 55px 5px rgba(0, 0, 0, 0.09) !important;
  border: #207028 solid 2px;
}

.header-right {
  display: flex;
  align-items: center;
}

/* first page */

.hero {
  height: 100vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: #fbdeac url(image/banner_bg.png);
  background-size: cover;
  position: relative;
  overflow-x: clip;
}

.item {
  position: absolute;
  color: white;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
}

/* Logo */
.logo {
  font-size: 1.5rem;
}

#logo_s {
  width: 50px;
  margin-left: 10px;
}

#logo_s .cls {
  fill: #ece8dd;
}

#user_icon {
  width: 50px;
  margin-right: 10px;
}

#user_icon .us-1 {
  fill: #ebe7dc;
}

#user_icon .us-1:hover {
  fill: #efdf7f;
}

#user_icon .us-2 {
  fill: #25483a;
}

/* menu-toggle */
.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  display: none;
}

/* 桌機版選單 */
.desktop-nav .menu {
  display: flex;
  list-style: none;
  /*gap: 1rem;*/
  margin-bottom: 0;
  padding: 0;
}

.desktop-nav .menu li a {
  color: white;
  text-decoration: none;
  padding: 0.5rem;
  display: block;
}

.desktop-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #34495e;
  list-style: none;
  display: none;
  min-width: 160px;
}

.desktop-nav .has-submenu:hover .submenu {
  display: block;
}

.desktop-nav .submenu li a {
  color: #25483a;
  padding: 0.5rem 0.5rem;
  display: block;
  font-weight: bold;
}

ul.submenu li:hover {
  background: #c97d31;
}

/* 手機版選單 */
.mobile-nav {
  position: fixed;
  top: 70px;
  left: 50%;
  width: 90%;
  transform: translateX(-50%);
  background-color: #2c3e50;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  z-index: 999;
  border-radius: 20px;
}

.mobile-nav.show {
  max-height: 100vh;
}

.mobile-nav .menu {
  list-style: none;
  padding: 1rem;
}

.mobile-nav .menu li a {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
}

li.has-submenu:hover {
  background: #207028;
}

.mobile-nav .submenu {
  display: none;
  background-color: #34495e;
}

.mobile-nav .has-submenu.active .submenu {
  display: block;
}

.mobile-nav .submenu li a {
  padding-left: 2rem;
}

/* 第一 */
.item-1 {
  top: 0;
  left: -3%;
  width: 29%;
  opacity: 0;
  transform: translate(-200px, 0px);
}

.item-2 {
  top: 15%;
  left: 50%;
  width: 34%;
  transform: translate(-50%, 0px);
}

.item-3 {
  top: 0;
  right: 0;
  width: 23%;
}

.item-4 {
  top: 40%;
  left: 66%;
  width: 42%;
}

.item-5 {
  top: 60%;
  left: -10%;
  width: 73%;
}

.item-6 {
  top: 49%;
  left: 16%;
  width: 32%; /* opacity: 0; transform: translate(0px, 200px); */
}

.item-7 {
  top: 49%;
  left: 16%;
  width: 32%; /* opacity: 0; transform: translate(0px, 200px); */
}

.item-8 {
  top: 56%;
  left: 53%;
  width: 31%;
}

.item-9 {
  top: 56%;
  left: 53%;
  width: 31%;
}

.item-10 {
  top: 32%;
  left: 50%;
  width: 13%;
  transform: translate(-50%, 0px);
}

.item-12 {
  top: 92%;
  left: -1%;
  width: 31%;
}

.item-11 {
  top: 85%;
  left: 55%;
  width: 50%;
}

.item-13 {
  top: 70%;
  right: -22%;
  width: 31%;
}

.item-6,
.item-8 {
  will-change: transform, opacity; /* 優化動畫性能 */
}

/* 
.item-1 img,
.item-3 img
{ height: 100vh; }

 */

.section {
  min-height: 100vh;
  display: flex;
  justify-content: space-around;
  align-items: center;
  overflow-x: clip;
  /* border: 1px solid #fff;*/
}

/* 第二*/

.s02 {
  position: relative;
}

.s02::before {
  content: "";
  position: absolute;
  inset: 0; /* top:0; right:0; bottom:0; left:0; */
  background:
    url("image/s02_left01.png") center 100% / 120% no-repeat,
    url("image/s02_tree.png") center 100% / 100% no-repeat,
    url("image/s02_left02.png") center 100% / 85% no-repeat,
    #fbdeac;
  background-size: 120%, 100%, 85%, auto; /* 明確指定，避免繼承亂掉 */
  background-position:
    20% bottom,
    /* left01 往右偏移一點當起點 */ center bottom,
    52% bottom,
    /* left02 往左偏移一點 */ center;
  z-index: -1;
  animation: sway 3s ease-in-out infinite alternate;
}

@keyframes sway {
  0% {
    background-position:
      calc(50% + 16px) 100%,
      center bottom,
      calc(50% - 12px) 100%,
      center;
  }

  100% {
    background-position:
      calc(50% - 16px) 100%,
      center bottom,
      calc(50% + 12px) 100%,
      center;
  }
}

svg.bird-path {
  position: absolute;
  left: -18%;
  bottom: -50%;
  width: 50%;
  height: 50%;
}

.s2item-1 {
  width: 45%;
  top: 30%;
  left: 6%;
}

.s2item-2 {
  width: 40%;
  bottom: -50%;
  left: 50%;
}

.s2item-2 img {
  width: 100%;
}

/* 第三*/
.s03 {
  background: #164a38 url(image/s02_bg.png) center 90% / 110% no-repeat;
  position: relative;
  flex-direction: column;
  padding: 180px 0 50px;
}

.s03 h1 {
  color: #edeadf;
}

/* .s3item-1,
.s3item-2,
.s3item-3,
.s3item-4{
	width: 55%;
}
 */
h1.m_title {
  font-size: 4em;
}

.testimonial-container {
  width: 50%;
  padding-top: 30%;
  position: relative;
  overflow: hidden;
}

.testimonial {
  position: absolute;
  top: 0;
  width: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.testimonial.active {
  opacity: 1;
}

#prevBtn,
#nextBtn {
  align-items: center;
  background: 0 0;
  border: 2px solid #edeadf;
  border-radius: 6.25rem;
  color: #edeadf;
  cursor: pointer;
  display: inline-flex;
  font-size: max(1rem, min(0.38835vw + 0.908981rem, 1.375rem));
  font-weight: 600;
  gap: 0.363636em;
  justify-content: center;
  letter-spacing: -0.01em;
  line-height: 1.04545;
  padding: 0.9375rem 1.2rem;
}

/*showcase*/
.carousel {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  width: 100%;
}

.items {
  position: relative;
  width: 70%;
  padding-top: 25%;
  overflow: hidden;
}

.item_sc {
  position: absolute;
  /* width: 140px; */
  /* height: 140px; */
  /* background: #fff; */
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: center;
  line-height: 140px;
  font-size: 36px;
  color: #2e4c46;
  opacity: 0.3;
  transform: translate(-50%, -50%) scale(0.8);
  transition: all 0.3s ease;
  cursor: pointer;
  /* box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1); */
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.item_sc:hover {
  filter: brightness(1.2) drop-shadow(0 0 8px #0ff);
  transform: scale(1.1);
}

/*發光*/
@keyframes flicker {
  0%,
  100% {
    filter: drop-shadow(0 0 5px #f6ff00);
  }

  50% {
    filter: drop-shadow(0 0 10px #f6ff00);
  }
}

@keyframes flicker1 {
  0%,
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 5px #ff0) brightness(1.5);
  }

  50% {
    opacity: 0.5;
    filter: drop-shadow(0 0 15px #ff0) filter brightness(1);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes sparkle {
  0%,
  100% {
    filter: brightness(1);
    transform: scale(1);
  }

  50% {
    filter: brightness(1.5);
    transform: scale(1.05);
  }
}

@keyframes bor_bg {
  0%,
  100% {
    filter: brightness(1.5);
    opacity: 1;
  }

  50% {
    filter: brightness(1);
    opacity: 0;
  }
}

/*發光結束*/
button.nav {
  align-items: center;
  background: #fff;
  border: 2px solid #edeadf;
  border-radius: 6.25rem;
  color: #164a38;
  cursor: pointer;
  display: inline-flex;
  font-size: max(1rem, min(0.38835vw + 0.908981rem, 1.375rem));
  font-weight: 600;
  gap: 0.363636em;
  justify-content: center;
  letter-spacing: -0.01em;
  line-height: 1.04545;
  padding: 0.9375rem 1.2rem;
  transition: 0.3s;
  position: relative; /* 必須加上，讓偽元素定位在按鈕內 */
  overflow: hidden; /* 避免偽元素超出邊界 */
}

button.nav:hover {
  background: unset;
  color: #fff;
}

button.nav:after {
  background: #d12345;
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 0.4s cubic-bezier(0.215, 0.61, 0.355, 1);
  content: "";
  will-change: transform;
  transform: scale(0); /* 初始縮小 */
}

button.nav:hover:after {
  transform: scale(1); /* hover 時放大，形成擴散效果 */
}

/* 第四*/
.s04 {
  background:
    url(image/s04_top_bg.png) center 0% / 100% no-repeat,
    url(image/s04_u_bg.png) center bottom / 100% no-repeat,
    #fbdeac;
  position: relative;
}

.s4item-link {
  width: 20%;
}

.s4item-link:hover {
  transform: scale(1.1);
  animation: flicker 1.2s infinite;
}

.s4item-1,
.s4item-2,
.s4item-3,
.s4item-4 {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.light_img {
  position: relative;
}

.light_img img {
  position: absolute;
  top: 0;
  left: 0;
}

.light_img img:first-child {
  position: relative; /* 最底層圖片保留原位 */
  z-index: 1;
}

.light_img .flashlight {
  animation: flicker1 1.2s infinite;
  z-index: 2;
}

.light_img img:last-child {
  z-index: 3;
}

.bottom-img {
  margin-top: 20px; /* 與上方圖片群組的間距 */
}

/* 第五*/
.s05 {
  background: url(image/s05_bg.png) center / 100% repeat-y;
  position: relative;
}

svg#footprint01 {
  width: 12%;
  top: 70%;
  left: 25%;
}

svg#footprint02 {
  width: 12%;
  top: 10%;
  left: 55%;
}

#footprint01 .st0,
#footprint02 .st0 {
  fill: #fbdeac;
}

@keyframes appearDisappear {
  0% {
    opacity: 0;
  }

  10% {
    opacity: 1;
  }
  /* 淡入 */
  40% {
    opacity: 1;
  }
  /* 保持顯示 */
  50% {
    opacity: 0;
  }
  /* 淡出 */
  100% {
    opacity: 0;
  }
}

/* 每組延遲不同，先依序出現，最後再依序消失 */
.fg_1 {
  animation: appearDisappear 12s linear infinite;
  animation-delay: 0s;
}

.fg_2 {
  animation: appearDisappear 12s linear infinite;
  animation-delay: 2s;
}

.fg_3 {
  animation: appearDisappear 12s linear infinite;
  animation-delay: 4s;
}

.s5item-1 {
  width: 45%;
  top: 54%;
  left: 8%;
  transform: translateY(-50%);
}

.s5item-2 {
  width: 33%;
  bottom: 5%;
  right: 3%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.s5item-3 {
  width: 45%;
  top: 0;
  right: 0;
}

.s5item-3 img {
  height: 100vh;
  mix-blend-mode: soft-light;
}

.news {
  width: 60%;
  top: 54%;
  left: 0%;
  transform: translateY(-40%);
}

.s5news-1 {
  width: 30%;
}

.news img {
  width: 100%;
  padding: 1em;
}

.s5news-2 {
  width: 30%;
}

.s5news-3 {
  width: 30%;
}

/* 第六*/
.s06 {
  background: #174a38 url(image/s06_bg.png) center bottom no-repeat;
  position: relative;
  align-items: flex-start;
}

.box_container {
  display: grid;
  grid-template-columns: repeat(5, auto); /* 桌機：一排五個 */
  gap: 2rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  justify-content: center;
}

.s6box {
  perspective: 200px; /* 增加 3D 效果 */
  /*   opacity: 0;
  transform: translateX(-150px); */
}

.s6box img {
  max-width: 100%;
  transition: transform 0.3s ease;
  will-change: transform;
}

/* 第七*/
.s07 {
  /* background: #073930 url(image/s07_map.png) center center repeat-x; */
  background: #073930;
  background-size: contain;
  position: relative;
  overflow-x: hidden;
}

.map-wrapper {
  background: #b5a173 url(image/s07_map_bg.png);
  height: 100vh; /* 初始就滿版高度 */
  overflow: hidden; /* 限制顯示範圍 */
  position: relative;
}

.map-container {
  position: absolute;
  bottom: 0%;
  left: 50%;
  transform-origin: center center;
  transform: translateX(-50%) scale(1); /* 初始置中 */
  width: unset;
  touch-action: none;
}

.map-container img {
  height: 90vh; /* 圖片高度 = 螢幕高度 */
  width: auto; /* 寬度自動等比例 */
  display: block;
  max-width: unset;
}

.hotspot {
  position: absolute;
  display: block;
  background: rgba(207, 157, 17, 0.23);
  cursor: pointer;
  transition: background 0.3s;
}

.hotspot:hover {
  background: unset;
  border: 1px #fff solid;
  filter: brightness(1.5);
}

.hotspot:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  top: -30px;
  left: 0;
  background: #333;
  color: #fff;
  padding: 5px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 14px;
}

/* 第八*/
.s08 {
  background: #fbdeac url(image/s08_tree.png) no-repeat;
  background-size: 40%;
  position: relative;
  display: flex;
  background-size: 40%;
  justify-content: flex-end;
  align-items: flex-start;
}

.s8item-1 {
  width: 33%;
  top: 350px;
  left: 8%;
}

svg#footprint03 {
  width: 10%;
  bottom: 0%;
  right: 2%;
}

/*FQA*/
.faq-section {
  padding: 8rem 2rem;
  width: 50%;
  z-index: 1;
  /*     position: absolute;
    width: 45%;
    top: 50%;
    right: 5%;
    transform: translateY(-50%); */
}

.faq-item {
  background: #fbf6ea;
  border: 1px solid #ddd;
  border-radius: 30px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.faq-item[aria-expanded="true"] {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.faq-question {
  width: 100%;
  padding: 10px 1rem;
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: #222;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: rgba(255, 255, 255, 0.5);
}

p.Q_list {
  font-weight: bold;
}

/* 加號圖示 */
.icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.15);
  display: grid;
  place-items: center;
  position: relative;
  transition: transform 0.35s ease;
}

.icon::before,
.icon::after {
  content: "";
  position: absolute;
  background: #222;
  transition: 0.35s ease;
}

.icon::before {
  width: 12px;
  height: 2px;
}

.icon::after {
  width: 2px;
  height: 12px;
}

.faq-answer {
  overflow: hidden;
  height: 0;
  padding: 0 1rem;
  background: #fff;
}

.faq-item.active .faq-answer {
  /*max-height: 200px;*/
  padding: 1rem;
}

.faq-item.active .icon {
  transform: rotate(180deg);
}

.faq-item.active .icon::after {
  opacity: 0;
}

/* 第九*/
@keyframes bgShake {
  0% {
    background-position: 48% bottom;
  }

  50% {
    background-position: 52% bottom;
  }

  100% {
    background-position: 48% bottom;
  }
}

.s09 {
  background: #fbdeac url(image/s09_bg.png) bottom center no-repeat;
  background-size: 105%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  animation: bgShake 1s infinite ease-in-out;
}

h1.m_title2 {
  color: #25483a;
  font-size: 5em;
  font-family: 微軟正黑體;
  text-align: center;
}

h1.m_title3 {
  color: #25483a;
  font-size: 5em;
  font-family: 微軟正黑體;
  text-align: center;
}

.icon2 {
  width: 24px;
}

.row_contact {
  position: absolute;
  bottom: 0px;
  width: 100%;
  text-align: center;
  color: #fff;
}

/* 雲層飄動 */
.cloud {
  position: absolute;
  top: 20%;
  left: -20%;
  width: 40%;
  height: 10%;
  filter: blur(6px);
  background:
    radial-gradient(40% 60% at 20% 50%, var(--cloud) 0 60%, #0000 61%),
    radial-gradient(40% 70% at 45% 55%, var(--cloud) 0 60%, #0000 61%),
    radial-gradient(50% 80% at 70% 50%, var(--cloud) 0 60%, #0000 61%);
  animation: clouds 20s linear infinite;
  opacity: 0.5;
}

@keyframes clouds {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(140%);
  }
}

/* 第一層雲：最近，速度快，透明度高 */
.layer1 {
  left: -20%;
  opacity: 0.9;
  animation: moveCloud1 25s linear infinite;
}

/* 第二層雲：中景，速度中等，透明度中 */
.layer2 {
  top: 20%;
  left: -30%;
  opacity: 0.6;
  transform: scale(1.3);
  animation: moveCloud2 45s linear infinite;
}

/* 第三層雲：遠景，速度慢，透明度低 */
.layer3 {
  top: 30%;
  left: -40%;
  opacity: 0.4;
  transform: scale(1.8);
  animation: moveCloud3 70s linear infinite;
}

@keyframes moveCloud1 {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(120vw);
  }
}

@keyframes moveCloud2 {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(150vw);
  }
}

@keyframes moveCloud3 {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(180vw);
  }
}

.site-footer {
  color: var(--muted);
  padding: 40px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  align-items: start;
}

.brand {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
}

.contact-list li {
  margin: 8px 0;
}

.contact-list a {
  color: var(--muted);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--white);
  text-decoration: underline;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  justify-content: center;
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.socials a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.map-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
  padding: 14px;
  border-radius: 10px;
}

.map-card small {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
}

.map-card a {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 16px;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: 12px;
  align-items: center;
}

.license {
  font-size: 13px;
  width: 100%;
}

.copyright {
  font-size: 13px;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 12px;
}

.footer-links a {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

/* Responsive tweak */
@media (max-width: 520px) {
  .footer-inner {
    gap: 16px;
    padding-bottom: 6px;
  }

  .brand {
    font-size: 16px;
  }
}

/*準備中*/
.coming_soon {
  background-size: 100%;
  height: 110vh;
  overflow-x: clip;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/*關於我們*/
.about,
.shop {
  background-size: 100%;
  min-height: unset;
  overflow-x: clip;
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.about_img {
  width: 85%;
  margin-bottom: 300px;
  margin-top: 180px;
}

/*關於我們*/
.shop_img {
  margin-bottom: 210px;
}

/*動物*/
.top_dis #header-wrap {
  position: relative;
  margin-bottom: 10px;
}

.animals {
  background-size: 100%;
  min-height: unset;
  overflow-x: clip;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.animals .row_contact {
  position: relative;
  text-align: center;
  color: #fff;
}

/* 前往*/

.access {
  background-size: 100%;
  min-height: unset;
  overflow-x: clip;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.access .row_contact {
  position: relative;
  text-align: center;
  color: #fff;
}

/* 準備中*/
.coming_soon {
  background-size: 100%;
  height: 110vh;
  overflow-x: clip;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/*隱私權/資安政策/版權宣告*/
.h1_main {
  margin-top: 100px;
  text-align: center;
  margin-bottom: 50px;
  color: #25483a;
}

.h2_main {
  margin-top: 30px;
  margin-bottom: 30px;
  color: #25483a;
  font-size: 1.5rem;
}

/* RWD 切換 */
@media (max-width: 768px) {
  /* Logo */
  #logo_s {
    width: 40px;
  }

  #user_icon {
    width: 36px;
    margin-right: 5px;
  }

  /* 固定 header */
  #header-wrap.fixed-header {
    padding: 0px 0 10px;
  }

  .header {
    height: unset;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    display: block;
    width: 38px;
  }

  .has-submenu > a,
  .has-submenu_nosub > a {
    display: flex;
    justify-content: space-between; /* 左右分散 */
    align-items: center;
  }

  .has-submenu > a::after {
    content: "＋"; /* 預設符號 */
    font-weight: bold;
  }

  .has-submenu.active > a::after {
    content: "－"; /* 展開時符號 */
  }

  .has-submenu.nosub > a::after,
  .has-submenu.nosub.active > a::after {
    content: unset; /* 展開時符號 */
  }

  li.has-submenu.active {
    background: #207028;
  }

  .hero {
    height: 80vh;
    background-size: 130% 60%;
    background-position: center top;
    position: relative;
    overflow-x: clip;
    background-repeat: no-repeat;
  }

  /* 第一 */
  .item.item-1.tiger {
    top: 22%;
    left: 2%;
    width: 36%;
  }

  .item-1 {
    left: -6%;
    width: 55%;
  }

  .item-2 {
    top: 12%;
    left: 50%;
    width: 75%;
    transform: translate(-50%, 0px);
  }

  .item-3 {
    width: 32%;
  }

  .item-4 {
    top: 36%;
    left: 58%;
    width: 52%;
  }

  .item-5 {
    top: 48.5%;
    left: -10%;
    width: 80%;
  }

  .item-6 {
    top: 47%;
    left: 12%;
    width: 40%; /* opacity: 0; transform: translate(0px, 200px); */
  }

  .item-7 {
    top: 47%;
    left: 12%;
    width: 40%; /* opacity: 0; transform: translate(0px, 200px); */
  }

  .item-8 {
    top: 47%;
    width: 41%;
  }

  .item-9 {
    top: 47%;
    width: 41%;
  }

  .item-10 {
    top: 26%;
    left: 50%;
    width: 20%;
    transform: translate(-50%, 0px);
  }

  .item-12 {
    top: 75%;
    left: 2%;
    width: 40%;
  }

  .item-11 {
    top: 75%;
    left: 50%;
    width: 65%;
  }

  .item-11 img.phone_tree {
    position: absolute;
    width: 60%;
    bottom: -70%;
    left: -50%;
  }

  .item-13 {
    top: 50%;
    width: 40%;
  }

  .item-6,
  .item-8 {
    will-change: transform, opacity; /* 優化動畫性能 */
  }

  /* 第二*/
  .s02 {
    position: relative;
  }

  .s02::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      url(image/s02_left01.png) center 100% / 120% no-repeat,
      url(image/s02_tree.png) center 100% / 150% no-repeat,
      url(image/s02_left02.png) center 100% / 85% no-repeat;
    background-position:
      center bottom,
      /* left01 往右偏移一點當起點 */ center bottom,
      60% 96%,
      /* left02 往左偏移一點 */ center;
    background-size: 125%, 200%, 110%, auto;
    z-index: -1;
    animation: swayph 3s ease-in-out infinite alternate;
  }

  .s02::after {
    content: "";
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0; */
    background:
      url("image/s02_tree2xx.png") center 101% / 200% no-repeat,
      #fbdeac;

    z-index: -2;
    /* animation: sway 3s ease-in-out infinite alternate; */
  }

  @keyframes swayph {
    0% {
      background-position:
        calc(50% + 16px) bottom,
        center bottom,
        calc(50% - 12px) 96%,
        center;
    }

    100% {
      background-position:
        calc(50% - 16px) bottom,
        center bottom,
        calc(50% + 12px) 96%,
        center;
    }
  }

  svg.bird-path {
    position: absolute;
    left: -50%;
    bottom: -55%;
    width: 100%;
    height: 50%;
  }

  .s2item-1 {
    width: 60%;
    top: 30%;
    left: 6%;
  }

  .s2item-2 {
    width: 90%;
    bottom: -70%;
    left: 50%;
    transform: translateX(-50%);
  }

  .s2item-2 img {
    width: 100%;
  }

  /* 第三*/

  .s03 {
    padding: 100px 0 50px;
  }

  .s03 h1 {
    text-align: center;
  }

  h1.m_title {
    font-size: 2.8em;
  }

  .items {
    width: 100%;
    padding-top: 65%;
  }

  .item_sc {
    width: 90%;
  }

  /* 第四*/
  .s04 {
    background:
      url(image/s04_top_bg.png) center 0% / 300% no-repeat,
      url(image/s04_u_bg.png) center bottom / 200% no-repeat,
      #fbdeac;
  }

  .section.s04 {
    height: 100vh;
    display: flex;
    justify-content: space-around;
    align-items: center;
    align-content: center;
    overflow-x: clip;
    /* border: 1px solid #fff; */
    flex-direction: row;
    flex-wrap: wrap;
    padding: 50px 10px;
    gap: 20px;
  }

  .s4item-link {
    width: 46%;
  }

  /* 第四*/
  .section.s04 {
    flex-direction: column;
    justify-content: center;
  }

  /* 第五*/
  .s5item-1 {
    width: 80%;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
  }

  svg#footprint01 {
    width: 30%;
    top: 48%;
    left: 10%;
  }

  svg#footprint02 {
    width: 30%;
    top: 80%;
    left: 75%;
  }

  .news {
    width: 98%;
    top: 23%;
    left: 50%;
    transform: translateX(-50%);
  }

  .news img {
    width: 100%;
    padding: 5px;
    mix-blend-mode: soft-light;
  }

  .s5item-3 {
    width: 100%;
  }

  .s5item-2 {
    width: 80%;
    bottom: 5%;
    right: 3%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* 第六*/
  .s06 {
    background-size: 160%;
    padding-top: 50px;
    min-height: 100vh;
    height: unset;
  }

  .box_container {
    display: grid;
    grid-template-columns: repeat(2, auto); /* 手機兩欄 */
    gap: 1.2rem 1rem;
    justify-content: center;
    position: relative; /* 改成 relative，不要絕對定位 */
    top: auto; /* 移除 top */
    transform: none; /* 移除 transform */
    padding: 3rem 1.5rem 2rem; /* 上方留空間避免被選單遮住 */
  }

  .s6box {
    text-align: center;
  }

  .s6box img {
    height: 36vh;
  }

  /* 第七*/

  .map-wrapper {
    height: 100vh; /* 初始就滿版高度 */
    overflow: hidden; /* 限制顯示範圍 */
    position: relative;
  }

  .map-word {
    position: absolute;
    top: 100px;
    left: 50%;
    transform-origin: center center;
    transform: translateX(-50%) scale(1);
    width: unset;
    touch-action: none;
  }

  .map-container {
    position: absolute;
    bottom: 0%;
    left: 50%;
    transform-origin: center center;
    transform: translateX(-50%) scale(1); /* 初始置中 */
    width: unset;
    touch-action: none;
  }

  .map-container img {
    height: 80vh; /* 圖片高度 = 螢幕高度 */
    width: auto; /* 寬度自動等比例 */
    display: block;
    max-width: unset;
  }

  .hotspot {
    position: absolute;
    display: block;
    background: rgba(207, 157, 17, 0.23);
    cursor: pointer;
    transition: background 0.3s;
  }

  .hotspot:hover {
    background: unset;
    border: 1px #fff solid;
    filter: brightness(1.5);
  }

  .hotspot:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    top: -30px;
    left: 0;
    background: #333;
    color: #fff;
    padding: 5px 8px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
  }

  /* 第八*/
  .s08 {
    background-size: 80%;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
  }

  .s8item-1 {
    width: 58%;
    top: 150px;
    left: 20%;
    bottom: auto;
  }

  .faq-section {
    padding: 0rem;
    position: relative;
    margin: 300px auto 0;
    width: 90%;
    top: auto;
    right: auto;
    transform: none;
  }

  .faq-item {
    background: #fbf6ea;
    border: 1px solid #ddd;
    border-radius: 20px;
    margin-bottom: 0.5rem;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
  }

  .faq-question {
    padding: 6px 10px;
  }

  .faq-item.active .faq-answer {
    padding: 6px 10px;
  }

  .icon {
    width: 24px;
    height: 24px;
  }

  svg#footprint03 {
    width: 30%;
    bottom: 0%;
    right: 2%;
  }

  /* 第九*/
  .s09 {
    background-size: 200%;
  }

  h1.m_title2 {
    color: #25483a;
    font-size: 2em;
    top: 200px;
    position: absolute;
  }

  h1.m_title3 {
    font-size: 2.8em;
  }

  /* 雲層飄動 */
  .cloud {
    width: 20%;
    height: 8%;
  }
}

/* .section {
  padding: 4rem;
  text-align: center;
  font-size: 1.5rem;
  height:50vh;
}
 */

.menu-toggle {
  font-size: 1.5rem;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  max-width: 50px;
  overflow: hidden;
  white-space: nowrap;
}

.desktop-nav .has-submenu,
.desktop-nav .has-submenu_nosub {
  position: relative; /* 讓 submenu 以此為定位基準 */
  min-width: 136px;
  text-align: center;
  font-size: 1.2em;
}

li.has-submenu:hover,
li.has-submenu_nosub:hover {
  background: #207028;
}

.desktop-nav .submenu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #efdf7f;
  list-style: none;
  display: none;
  min-width: 136px;
  z-index: 999;
  padding: 0;
  text-align: center;
}

.mobile-nav .submenu {
  background-color: #efdf7f;
  list-style: none;
  padding: 0;
  text-align: center;
}

.mobile-nav .submenu li a {
  color: #25483a;
  padding: 0.5rem 0.5rem;
  display: block;
  font-weight: bold;
}

