* {
  margin: 0;
  padding: 0;
  border: 0;
  /*list-style: none;*/
  font-family: 'Noto Sans TC', sans-serif;
  text-decoration: none;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
  scroll-behavior: auto !important;
  font-size: 12px;
}

.wrap {
  position: relative;
  width: 100%;
  margin: auto;
  height: auto;
  overflow: hidden;
}

/* header */
.header {
  width: 100%;
  margin: auto;
  position: fixed;
  z-index: 500;
  transition: background-color 0.3s ease;
  background-color: transparent;
  z-index: 500;
}

.header.scrolled {
  background-color: rgba(255, 255, 255, 0.9);
}

.header .logo {
  max-width: 1200px;
  margin: auto;
}

.header .logo img {
  width: 164px;
  margin: 30px;
  display: block;
  border: 0;
}

@media screen and (max-width: 768px) {
  .header {
    height: 120px;
  }

  .header .logo img {
    margin: 30px 20px;
  }
}

.kv-p-wrapper {
  width: 100%;
  max-width: 1920px;
  /* 設計稿寬度 */
  margin: 0 auto;
  /* 居中 */

}

.kv-p {
  position: relative;
  width: 100%;
  max-width: 1920px;
  height: 920px;

  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: top left;
  overflow: hidden
}

.kv-p::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('images/kv-p.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  z-index: -1;
  /* 放在內容後面 */
}

/* 觸發淡入，例如載入後 */
.kv-p.loaded::before {
  opacity: 1;
}


.kv-logo {
  position: static;
  max-width: 100%;
  margin: -35px auto;
  padding-top: 150px;
  padding-left: 120px;
  box-sizing: border-box;
}

.kv-title-1 {
  position: static;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}

.kv-title-2 {
  max-width: 100%;
  position: static;
  margin: 0 auto;
  padding: 10px 0 100px 120px;
  box-sizing: border-box;
  flex-wrap: wrap;
}

.kv-title-3 {
  position: static;
  max-width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  display: inline-block;
  animation: floatUpDown 3s ease-in-out infinite;
  /* 無限循環動畫 */
  /* 可搭配 AOS 動畫一起使用 */
}

@keyframes floatUpDown {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-15px);
    /* 向上移動 15px */
  }

  100% {
    transform: translateY(0px);
    /* 回到原位 */
  }
}

.kv-row {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  gap: 20px;
}



.title-box {
  position: relative;
  /* 方便子元素絕對定位 */
  display: inline-block;
}

.fan-1 {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* 不干擾其他互動 */
}

.fan-wrapper {
  position: absolute;
  width: 100px;
  /* 容器正方形 */
  height: 100px;
  transform: translate(-50%, -50%);
  animation: spin 10s linear infinite;
  transform-origin: top center;
}

.fans-group {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
  top: 46%;
  /* 控制整組垂直位置 */
  transform: translate(-50%, -50%);
}

.blade {
  position: absolute;
  width: 97px;
  height: 97px;
  transform-origin: top center;
  transform: translateX(-50%);
}

/* 自動以等角度散開 */
.blade1 {
  transform: rotate(0deg);
}

.blade2 {
  transform: rotate(120deg);
}

.blade3 {
  transform: rotate(240deg);
}


.axis {
  position: absolute;
  width: 13px;
  height: 13px;
  transform: translate(-50%, -50%);
  z-index: 10;
}

@keyframes spin-fan1 {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes spin-fan2 {
  from {
    transform: rotate(45deg);
  }

  to {
    transform: rotate(405deg);
  }
}

@keyframes spin-fan3 {
  from {
    transform: rotate(90deg);
  }

  to {
    transform: rotate(450deg);
  }
}

.scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: static;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 320px 0 100px;
  box-sizing: border-box;
  opacity: 0;
  /* 初始隱藏 */
  transition: opacity 0.5s ease-in-out;
}

.scroll.show {
  opacity: 1;
  /* 背景淡入後顯示 */
}


.scroll .arrow {
  width: 30px;
  /* 根據需要調整大小 */
  animation: arrowMove 0.5s infinite alternate ease-in-out;
}

/* 上下位移動畫 */
@keyframes arrowMove {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(10px);
    /* 往下 10px，可調整距離 */
  }
}

/* ============ 手機版 RWD ============ */
@media screen and (max-width: 768px) {
  .kv-p {
    background-image: url('images/kv-m.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    align-items: normal;
    position: relative;
  }

  .kv-title {
    display: flex;
    flex-direction: column;
  }

  .kv-logo {
    width: 70%;
    padding-top: 142px;
    padding-left: 125px;
    margin: 15px 0;
  }

  .kv-row {
    display: flex;
  }

  .title-box {
    width: 100%;
  }

  .kv-title-1 {
    width: 88%;
    padding-left: 90px;
  }

  .kv-title-3 {
    position: absolute;
    /* 疊在右上角 */
    top: -140px;
    right: 30px;
    width: 25%;
    /* 可依需求調整 */
    transform: translate(10%, -20%);
    /* 微調位置 */
  }


  .kv-title-2 {
    padding: 20px 0 0;
  }


  /* scroll 提示箭頭區塊 */
  .scroll {

    padding-top: 380px;
    gap: 5px;
  }

  .scroll .arrow {
    width: 24px;
  }


  .fans-group {
    display: none;
  }


}

@media screen and (max-width: 540px) {
  .kv-logo {
    width: 65%;
    padding-left: 50px;
  }


  .kv-title-1 {
    width: 90%;
    padding-left: 50px;
  }


  .kv-title-2 {
    max-width: 80%;
  }

  .kv-title-3 {
    top: -125px;
    width: 28%;
  }
}

@media screen and (max-width: 450px) {
  .kv-p {
    background-color: #f5e6cf;
    /* 底色 */
    background-image: url('images/kv-m-2.jpg');
    background-position: top;
    background-repeat: no-repeat;
    background-size: contain;
    align-items: normal;
    position: relative;
    /* 若將來要用絕對定位的子元素 */
  }

  .kv-logo {
    width: 68%;
    padding-top: 120px;
    padding-left: 40px;
    margin: 15px 0;
  }

  .kv-row {
    display: flex;
  }

  .title-box {
    width: 100%;
  }

  .kv-title-1 {
    width: 88%;
    padding-left: 50px;
  }

  .kv-title-3 {
    position: absolute;
    /* 疊在右上角 */
    top: -90px;
    right: 20px;
    width: 27%;
    /* 可依需求調整 */
    transform: translate(10%, -20%);
    /* 微調位置 */
  }


  .kv-title-2 {
    max-width: 80%;
  }


  /* scroll 提示箭頭區塊 */
  .scroll {
    padding-top: 255px;
    gap: 5px;
  }

  .scroll .arrow {
    width: 24px;
  }

  .fans-group {
    display: none;
  }
}


.content {
  position: relative;
  width: 100%;
  min-height: 1100px;
  background-image: url('images/bg-p-2.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.frame {
  position: relative;
  /* 讓內部絕對定位的元素參考此容器 */
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  padding-top: 70px;
}

.overlay-bg {
  position: relative;
  width: 100%;
  margin: 0 auto;
  background-image: url('images/frame.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top center;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.circle-group {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
}

.circle-text {
  position: relative;
  display: inline-block;
  margin-left: -8px;
  /* 圓與圓重疊一點 */
}

.circle-text:first-child {
  margin-left: 0;
  /* 第一個不要重疊 */
}

.circle-text img {
  display: block;
  width: 70px;
  height: 70px;
}

.circle-text span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-size: 3em;
  font-weight: bold;
}

.overlay-content {
  position: relative;
  inset: 0;
  /* 等於 top:0; right:0; bottom:0; left:0 */
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 120px 120px 140px;
  margin-top: 35px;

}

.overlay-title {
  font-size: clamp(2.2em, 2vw, 2.33em);
  /* 最小 2em，隨螢幕 2vw 縮放，最大 2.33em */
  font-weight: 700;
  color: #603814;
  padding-left: 20px;
}

.overlay-text {
  font-size: clamp(1.75em, 1.5vw, 2em);
  line-height: 2;
  color: #603814;
  font-weight: 700;
  padding-left: 20px;
}

.overlay-text-g {
  font-size: clamp(1.75em, 1.5vw, 2em);
  line-height: 1.5;
  color: #2d9b55;
  font-weight: 700;
  padding-left: 20px;
}

.red {
  font-size: clamp(1.5em, 1.5vw, 1.5em);
  color: #e72412;
  font-weight: 900;
  position: relative;
  top: 0.1em;
  /* 往下移動 */
}

.overlay-text-g-1 {
  font-size: clamp(1.75em, 1.5vw, 2em);
  line-height: 1.5;
  color: #2d9b55;
  font-weight: 500;
  padding-left: 20px;
  display: flex;
  /* 讓圖示和文字在同一行 */
  align-items: center;
  /* 垂直置中 */
  gap: 2px;
  margin-top: 10px;
}

.icon {
  width: 30px;
  /* 圖示大小 */
  height: 30px;
  vertical-align: bottom;
}

.overlay-text-1 {
  font-size: clamp(1.75em, 1.5vw, 2em);
  line-height: 1.5;
  color: #603814;
  font-weight: 500;
  padding-left: 16px;
}

.divider {
  margin: 25px 0;
  width: 100%;
  height: auto;
}

.mailbox {
  position: absolute;
  bottom: 2%;
  /* 相對於容器高度 */
  left: 3%;
  /* 相對於容器寬度 */
  width: 4vw;
  /* 隨螢幕縮放 */
  min-width: 50px;
  /* 最小寬度 */
  max-width: 100px;
  /* 最大寬度 */
  height: auto;
  /* 自動維持比例 */
  z-index: 3;
}

.scooter {
  position: absolute;
  bottom: 2%;
  right: -150px;
  width: 10vw;
  /* 隨螢幕縮放 */
  min-width: 120px;
  /* 最小寬度 */
  max-width: 140px;
  /* 最大寬度 */
  height: auto;
  z-index: 3;
  transition: right 1s ease-in-out;
}

.scooter.animate-in {
  right: 55px;
}

.atm-buttons {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 2vw;
  /* 間距也用相對單位 */
  z-index: 1;
}

.atm-buttons .button {
  cursor: pointer;
  width: 20vw;
  /* 隨螢幕縮放 */
  max-width: 283px;
  /* 最大寬度限制 */
  min-width: 220px;
  /* 最小寬度限制 */
  height: auto;
  /* 高度自動保持比例 */
  transition: transform 0.3s;
  filter: drop-shadow(0 8px 3px rgba(96, 56, 20, 0.5));
}

.atm-buttons .button:hover {
  transform: scale(1.05);
}




@media screen and (max-width: 768px) {
  .content {
    position: relative;
    background-color: #fbf4f0;
    min-height: 1250px;
  }

  .frame {
    min-height: 1000px;
  }

  .overlay-bg {
    background-image: url('images/frame-m.png');
  }

  .overlay-title {
    font-size: 2em;
    padding-left: 15px;
    line-height: 1.8;
  }

  .overlay-text,
  .overlay-text-g,
  .overlay-text-g-1,
  .overlay-text-1 {
    line-height: 1.8;
    font-size: 1.75em;
    padding-left: 15px;
    letter-spacing: 2px;
  }

  .red {
    font-size: 1.2em;
    top: 0.1em;
  }

  .circle-text img {
    width: 60px;
    height: 60px;
  }

  .circle-text span {
    font-size: 2.5em;
  }

  .atm-buttons {
    top: 102%;
    gap: 20px;
    flex-wrap: nowrap;
  }

  .atm-buttons .button {
    min-width: 250px;
  }

  .mailbox {
    left: 40px;
    bottom: 5px;
  }

  .scooter {
    right: -120px;
    bottom: 5px;
  }

  .scooter.animate-in {
    right: 20px;
  }

  .scroll {
    padding-top: 380px;
    /* scroll 下移，但背景不動 */
  }

}

@media screen and (max-width: 540px) {

  .overlay-content {
  padding: 85px;

}

  .scroll {
     padding-top: 420px;
    /* scroll 下移，但背景不動 */
  }

}

@media screen and (max-width: 450px) {
  .content {
    height: auto;
    margin-top: -250px;
  }

  .overlay-bg {
    background-image: url('images/frame-m.png');
  }

  .overlay-content {
    padding: 50px;
  }

  .scroll {
    padding-top: 255px;
  }


  .atm-buttons {
    top: 105%;
    gap: 15px;
  }

  .atm-buttons .button {
    min-width: 160px;
  }

  .mailbox {
    width: 12%;
    left: 30px;
    bottom: -10px;
  }

  .scooter {
    width: 25%;
    right: -80px;
    bottom: -10px;
  }

}

@media screen and (max-width: 400px) {

  .mailbox,
  .scooter {
    display: none;
  }

  .atm-buttons {
    top: 100%;
  }

}


.notice {
  position: relative;
  padding: 50px;
  background-image: url('images/bg-p-3.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  margin-top: -3px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.notice-text {
  max-width: 1100px;
  width: 90%;
  /* 小螢幕時縮小 */
  text-align: left;
  margin: 0 auto;
  color: #3a3939;
}

.notice-title {
  font-size: 2.5em;
  font-weight: 700;
  line-height: 2;
}

.notice-list {
  font-size: 1.6em;
  font-weight: 500;
  letter-spacing: 1px;
  line-height: 1.3;
  padding-left: 20px;
  /* 控制數字與文字間距 */
  margin: 20px 0;
  list-style-type: decimal;
  /* 預設就是 1.2.3… */
}

.notice-list li {
  margin-bottom: 10px;
  /* 每一條的間距 */
}

@media screen and (max-width: 768px) {
  .notice-title {
    font-size: 2.2em;
  }
}


@media screen and (max-width: 450px) {
  .notice {
    padding: 20px;
    margin-top: -10px;
  }

}

.footer {
  text-align: center;
  padding: 20px 10px;
  background: #603813;
  color: white;
  font-size: 1.6em;
  line-height: 1.5;
  letter-spacing: 1px;
}

.footer a {
    text-decoration: underline;
  color: #000;
  color: #ffffff;

  transition: color 0.3s;
}

.footer a:hover {
  color: #b79575;
}


@media screen and (max-width: 768px) {
  .footer {
    font-size: 1.7em;
    padding: 20px 12px;
  }

  .footer span {
    display: block; /* 每個 span 自動換行 */
    margin: 5px 0;
  }

  .footer .line3 a {
    margin: 0 5px; /* 第三行連結間距 */
  }
}

/* 桌面版保持一行 */
@media screen and (min-width: 769px) {
  .footer span {
    display: inline; /* 一行顯示 */
  }

  .footer .line3 a {
    margin: 0 10px;
  }
}

@media screen and (max-width: 450px) {
  .footer {
    font-size: 1.3em;
  }
}

.float-btn {
  position: fixed;
  right: 20px;
  bottom: 20px;
  filter: drop-shadow(0 8px 3px rgba(96, 56, 20, 0.5));
  z-index: 1000;
   opacity: 1; /* 預設顯示 */
  transition: opacity 0.5s ease; /* 淡入淡出效果 */
}

.float-btn:hover {
  transform: translateY(2px);
  /* 往下移动 2px */
  filter: drop-shadow(0 4px 2px rgba(96, 56, 20, 0.5));
  /* 阴影缩短，像被按下 */
}

  .float-btn.hide {
  opacity: 0;
  pointer-events: none;
}

@media screen and (max-width: 768px) {
  .float-btn {
    right: 0;
  }

  .float-btn img {
    width: 90%;
  }


}

@media screen and (max-width: 450px) {
  .float-btn img {
    width: 80%;

  }
}