@import url(../fonts/flaticon/flaticon.css);
@import url(../css/revise.css);

.wow {
  visibility: hidden;
}
.wow.animate__animated {
  visibility: visible;
}

/*========================================================
                         基本設定
=========================================================*/

/* 基礎重置 */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Serif TC", Arial, Helvetica, sans-serif;
  font-weight: 500;
  line-height: 32px;
  font-size: 1rem;
  color: #111;
  overflow-x: hidden;
  background-color: #fff;
}

p {
  margin: unset;
}

/* google recaptcha 隱藏 */
.grecaptcha-badge {
  visibility: hidden;
}

.pc {
  display: none;
}

.mb {
  display: block;
}
section {
  min-height: 800px;
}
@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  section {
    min-height: unset;
  }
}
/*========================================================
                          區塊1
=========================================================*/

.section1 {
  width: 100vw;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* --- 新增：背景動畫層 --- */
.bg-animate-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0; /* 在最底層 */
  /* 原本的手機版背景設定搬來這裡 */
  background: url(../img/banner-mb.png) no-repeat bottom center;
  background-size: cover;

  /* 放大動畫的核心設定 */
  transform-origin: bottom center; /* 錨點設在底部中心 */
  transform: scale(
    var(--scroll-scale, 1),
    rotate(90deg)
  ); /* 預設 1，由 JS 控制變數 */
  transition: transform 0.1s linear; /* 讓滑動更順暢 */
  will-change: transform;
}
@keyframes colorShiftHorizontal {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  100% {
    background-position: 0% 50%;
  }
}
@keyframes colorShiftVertical {
  0% {
    background-position: 50% 0%;
  }
  50% {
    background-position: 50% 100%;
  }
  100% {
    background-position: 50% 0%;
  }
}
.section1::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(30, 182, 216, 0.5),
    rgba(63, 188, 181, 0.5),
    rgba(96, 194, 145, 0.5)
  );
  background-size: 400% 400%;
  animation: colorShiftVertical 5s ease infinite;
  opacity: 0.8;
  pointer-events: none;
}
.particles {
  position: absolute;
  left: 0;
  bottom: -5%;
  width: 100%;
  height: 100%;
}
.particles img {
  position: absolute;
  width: 100%;
  object-fit: contain;
  mix-blend-mode: screen;
  transform-origin: center;
}
.particles .particle01 {
  bottom: -10%;
  left: -40%;
  width: 125%;
  z-index: 1;
}
.particles .particle02 {
  bottom: -15%;
  left: 18%;
  width: 85%;
  z-index: 2;
}
.s1 {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  height: 100%;
  margin-top: 35%;
}
.s1 .text-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}
.s1 .text-box img {
  width: 100%;
  margin-bottom: 8%;
}
.s1 .text-box .hong-1 {
  width: 35%;
  margin-bottom: 5%;
}
.s1 .text-box .coming {
  width: 65%;
}

@media screen and (min-width: 768px) {
  .s1 {
    width: 70%;
    margin-top: unset;
  }
  .s1 .text-box {
    justify-content: center;
    margin-bottom: 25%;
  }
  .s1 .text-box .coming {
    margin-bottom: unset;
  }
  .particles {
    width: 85%;
    left: -10%;
    bottom: -20%;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section1 {
    flex-direction: row;
    justify-content: end;
  }
  .section1 .bg-animate-layer {
    background: url(../img/banner-pc.png) no-repeat;
    background-size: cover;
  }
  .particles {
    width: 50%;
    left: 0;
    bottom: -10%;
  }
  .particles .particle01 {
    bottom: -25%;
    left: -48%;
    width: 135%;
  }
  .particles .particle02 {
    bottom: -30%;
    left: 17%;
    width: 90%;
  }
  .section1::before {
    background: linear-gradient(
      90deg,
      rgba(30, 182, 216, 0.5),
      rgba(63, 188, 181, 0.5),
      rgba(96, 194, 145, 0.5)
    );
    background-size: 400% 400%;
    animation: colorShiftHorizontal 5s ease infinite;
    opacity: 0.8;
  }
  .s1 {
    width: 100%;
  }
  .s1 .text-box {
    width: 33%;
    margin-bottom: 5%;
  }
}
@media screen and (min-width: 1500px) {
  .s1 .text-box {
    width: 30%;
  }
  .particles .particle01 {
    bottom: -25%;
    left: -33%;
    width: 120%;
  }
  .particles .particle02 {
    bottom: -30%;
    width: 85%;
  }
}

/*========================================================
                          區塊2
=========================================================*/

.section2 {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}
.s2 {
  width: 100%;
  height: 100%;
}
.s2 .text-box {
  position: absolute;
  z-index: 2;
  width: 75%;
  top: 12%;
  right: 3%;
}
.s2 .text-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.style2 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.s2 .swiper1 {
  height: 100%;
}
.s2 .swiper1 .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 100%;
  pointer-events: none;
}
.s2 .swiper1 .swiper-slide span {
  position: absolute;
  left: 3%;
  bottom: 1%;
  font-size: 12px;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .s2 .text-box {
    width: 50%;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .s2 .text-box {
    top: 10%;
    right: 5%;
    width: 25%;
  }
  .s2 .swiper1 .swiper-slide img {
    object-position: 90% 100%;
  }
  .s2 .swiper1 .swiper-slide span {
    left: 1%;
    bottom: 3%;
    font-size: 14px;
  }
}
@media screen and (min-width: 1500px) {
  .s2 .text-box {
    right: 3%;
  }
}
/*========================================================
                         預約賞屋
=========================================================*/

.res {
  width: 90%;
  text-align: center;
  margin: 10% 0;
}
.res img {
  width: 100%;
}
.form-text {
  width: 70%;
  margin-bottom: 8%;
}

input,
select {
  background-color: #eeeeef;
  border-radius: 0;
  color: #111;
  outline-color: #22a6c0;
  border: 1px solid #888888;
  padding-left: 15px;
  opacity: 0.6;
}
input:focus,
select:focus {
  scale: 1.01;
  opacity: 1;
}
input[type="text"],
input[type="phone"],
select {
  height: 45px;
  width: 100%;
}
select {
  background-image: url(../img/arrow.png);
  background-repeat: no-repeat;
  background-position: center right;
  background-size: 24px auto;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}
::placeholder {
  color: #111 !important;
}
:-ms-input-placeholder {
  color: #111 !important;
}
::-ms-input-placeholder {
  color: #111 !important;
}
.reservation {
  width: 100%;
  height: 100%;
  min-height: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0 60px 0;
}
.reservation .box {
  max-width: 800px;
  margin: 0 auto;
  width: 90%;
}
.reservation .input-block {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 20px;
}
/* 所有欄位預設一列寬 */
.reservation .input-block input,
.reservation .input-block select {
  flex: 1 1 100%;
}
.reservation .form_check_txt {
  color: #000;
  font-size: 14.4px;
  margin-left: 3px;
  line-height: 1.8;
}
.reservation .form_check_txt a {
  text-decoration: none;
  color: #000;
}
.reservation .reg_btn {
  width: 100%;
  background-color: #787878;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  border: none;
  margin-top: 20px;
  padding: 10px 20px;
  line-height: normal;
}
.reservation .reg_disabled {
  cursor: no-drop;
  opacity: 0.6;
}
.reservation .reg_btn:hover {
  background-color: #a4a3a3d2;
  color: #565555;
  opacity: 1;
}
.reservation .reg_btn:focus {
  outline: unset;
}
.reservation .reg_disabled:hover {
  background-color: #a4a3a3d2;
  opacity: 0.6;
}
.reservation .msgerror {
  color: #c40101;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}
.input-error {
  border: 2px solid #ee7878 !important;
}
.input-error:focus {
  outline: 0;
  box-shadow: 0 0 10px 3px rgb(149 149 149) !important;
}
.priv {
  margin-bottom: 2%;
}
.info {
  margin-top: 4%;
}
.map-block {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 5% 0;
}
.map {
  width: 100%;
  height: 350px;
}

/* 平板以上：兩欄排版邏輯 */
@media screen and (min-width: 768px) {
  .reservation .input-block .field-group-half {
    flex: 1 1 calc(50% - 7px); /* 兩欄，中間 gap 是14px */
  }

  .reservation .input-block .field-group-full {
    flex: 1 1 100%;
  }
  .form-text {
    width: 55%;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .reservation {
    justify-content: center;
    padding: 80px 0;
  }
  .res {
    max-width: 900px;
    margin: 5% 0;
  }
  .reservation .box {
    display: flex;
    max-width: 1100px;
    gap: 5%;
  }
  #myform {
    width: 50%;
  }
  .map-block {
    width: 50%;
    margin: unset;
  }
  .priv,
  .info {
    font-size: 17px;
  }
  .reservation .form_check_txt {
    font-size: 16px;
  }
  .form-text {
    width: 65%;
  }
}

@media screen and (min-width: 1500px) {
  .reservation .box {
    max-width: 1440px;
  }
  .res {
    max-width: 1000px;
  }
}

/*========================================================
                         左側選單
=========================================================*/

.icon_Community a.js-btn-icon_Community {
  text-align: center;
  width: 50px;
  line-height: 47px;
  border-radius: 100px;
  position: absolute;
  bottom: 0;
  left: 0;
  padding: 0;
  cursor: pointer;
  color: #fff;
  background: #000;
  font-size: 22px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
  height: 50px;
  pointer-events: auto;
  overflow: hidden;
}

.js-btn-icon_Community:hover,
.js-btn-icon_Community:focus {
  color: #fff;
  background-color: #451209;
  border-color: #451209;
}

.js-icon_Community .icon_li {
  position: relative;
  left: -100px;
}

.icon_li_img {
  max-width: 50px;
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  left: 0;
  z-index: 1;
}

.js-icon_Community.active .icon_li {
  left: 0;
  pointer-events: auto;
}

.js-icon_Community .icon_li:nth-child(1) {
  transition: all 0.1s ease-out;
  -moz-transition: all 0.1s ease-out;
  -o-transition: all 0.1s ease-out;
  -webkit-transition: all 0.1s ease-out;
}

.js-icon_Community .icon_li:nth-child(2) {
  transition: all 0.3s ease-out;
  -moz-transition: all 0.3s ease-out;
  -o-transition: all 0.3s ease-out;
  -webkit-transition: all 0.3s ease-out;
}

.js-icon_Community .icon_li:nth-child(3) {
  transition: all 0.5s ease-out;
  -moz-transition: all 0.5s ease-out;
  -o-transition: all 0.5s ease-out;
  -webkit-transition: all 0.5s ease-out;
}

.icon_li a:hover .icon {
  animation: go 3s linear infinite;
}

@keyframes go {
  10% {
    transform: rotate(15deg);
  }

  20% {
    transform: rotate(-10deg);
  }

  30% {
    transform: rotate(5deg);
  }

  40% {
    transform: rotate(-5deg);
  }

  50%,
  100% {
    transform: rotate(0deg);
  }
}

@media (max-width: 991.98px) {
  .icon_Community {
    width: 100%;
    position: fixed;
    left: auto;
    bottom: 0;
    z-index: 999998;
    pointer-events: none;
  }

  .icon_Community_ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
  }

  .icon_Community_ul .icon_li {
    width: 33.33%;
    border-right: 1px solid #fff;
  }

  .icon_Community_ul .icon_li:last-child {
    border-right: none;
  }

  .icon_Community_ul .icon_name {
    font-size: 0.75rem;
    padding-top: 2px;
  }

  .icon_img {
    display: block;
    background-color: #1c8ba1;
    overflow: hidden;
    text-align: center;
    color: #fff;
    position: relative;
    padding: 11px 5px 3px 5px;
    text-decoration: none;
  }

  .icon_Community a {
    color: #fff;
    text-decoration: none;
  }

  .icon_Community a img {
    display: block;
    margin: 0 auto;
    width: 20px;
  }

  .icon_Community a:hover {
    background-color: #22a6c0;
  }

  .icon_Community a:hover img {
    animation: go 3s linear infinite;
  }
}

@media (min-width: 992px) {
  .icon_Community {
    position: fixed;
    right: 20px;
    bottom: 92px;
    z-index: 9998;
    pointer-events: none;
  }

  .icon_Community_ul {
    list-style: none;
    padding: 0;
    flex-direction: column;
    align-items: flex-end;
    display: flex;
    margin-bottom: 59px;
  }

  .icon_img {
    background-color: #22a6c0;
    border: none;
    overflow: hidden;
    text-align: center;
    margin-bottom: 6px;
    width: 50px;
    text-decoration: none;
    border-radius: 100px;
    color: #fff;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .icon_img.active {
    width: 142px;
  }

  .icon_img.active .icon_name {
    text-indent: 0;
    opacity: 1;
  }

  .icon_img:hover {
    text-decoration: none;
    width: 142px;
  }

  .icon_img:before {
    opacity: 0;
  }

  .icon_img .icon {
    color: #fff;
    font-size: 22px;
    width: 50px;
    line-height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    right: 0;
    z-index: 1;
  }

  .icon_img:hover .icon {
    text-decoration: none;
  }

  .icon_img:hover .icon_name {
    opacity: 1;
    text-indent: 0;
  }

  .icon_name {
    position: relative;
    line-height: 50px;
    padding-left: 15px;
    padding-right: 50px;
    transition: all 0.3s ease;
    opacity: 0;
    text-decoration: none;
    color: #fff;
    white-space: nowrap;
    border-radius: 100px;
    overflow: hidden;
    /*text-indent: -100px;*/
    font-family: Arial, "Microsoft JhengHei", sans-serif;
  }
}

/*========================================================
                         隱私權聲明
=========================================================*/

.fancybox-container {
  z-index: 9999999;
}

.modal-body {
  overflow-y: auto;
  padding: 20px;
}

.modal-header {
  border-bottom: none;
}

.modal-body h2 {
  text-align: center;
  margin-bottom: 20px;
}

.modal-body p span {
  font-weight: bold;
  font-size: 1.1rem;
}

.modal-dialog {
  margin-bottom: 80px;
}

@media (min-width: 576px) {
  .modal-body {
    padding: 20px 40px;
  }

  .modal-dialog {
    max-width: 1000px;
  }
}

@media (min-width: 1024px) {
  .modal-body {
    padding: 20px 80px;
  }

  .modal-dialog {
    max-width: 1200px;
    margin-bottom: 0;
  }
}

/*========================================================
                         footer
=========================================================*/

footer {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #22a6c0;
  color: #fff;
  margin-bottom: 68px;
}

footer p {
  margin: unset;
  font-size: 0.75rem;
}

@media screen and (min-width: 992px) {
  footer {
    height: 50px;
    margin-bottom: unset;
  }
}

[data-aos="custom-zoom-out"] {
  transform: scale(1.2);
  opacity: 1;
  transition-property: transform, opacity;
  transition:
    transform 5s ease,
    opacity 3s ease !important;
}

[data-aos="custom-zoom-out"].aos-animate {
  transform: scale(1);
  opacity: 1;
}

[data-aos="custom-fade-up"] {
  transform: translateY(30px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="custom-fade-up"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

[data-aos="custom-fade-down"] {
  transform: translateY(-30px);
  opacity: 0;
  transition-property: transform, opacity;
}

[data-aos="custom-fade-down"].aos-animate {
  transform: translateY(0);
  opacity: 1;
}

[data-aos="fade"] {
  opacity: 0;
  transition: opacity 2s ease;
}

[data-aos="fade"].aos-animate {
  opacity: 1;
}
