@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 Sans TC", Arial, Helvetica, sans-serif;
  font-weight: 400;
  line-height: 32px;
  font-size: 1rem;
  color: #1c1c1c;
  overflow-x: hidden;
  background-color: #fff;
  position: relative;
}
p {
  margin: unset;
}
img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* google recaptcha 隱藏 */
.grecaptcha-badge {
  visibility: hidden;
}
.pc {
  display: none;
}
.mb {
  display: block;
}
section {
  min-height: 800px;
}
@media screen and (min-width: 768px) {
  section {
    min-height: unset;
  }
}
@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .pc {
    display: block;
  }
  .mb {
    display: none;
  }
}

/*========================================================
                          nav
=========================================================*/

.navbar {
  padding: 0;
  position: fixed;
  z-index: 9999;
  top: 0;
  right: 0;
  display: flex;
  justify-content: end;
  /* Sticky */
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.5s;
}
.navbar .navbar-Link {
  display: flex;
  flex-direction: column;
}
.navbar .navbar-Link .btn {
  flex: 1;
  font-size: 1rem;
  color: #fff;
  padding: 20px;
  text-align: center;
  background-color: transparent;
  border-color: transparent;
  transition: all 0.4s;
  box-shadow: 0 0 0;
  text-shadow: 0 0 10px rgba(67, 66, 66, 0.678);
}
.navbar .navbar-Link .btn:hover,
.navbar .navbar-Link .btn:active {
  border-color: transparent;
}
.navbar .navbar-Link .btn:hover i,
.navbar .navbar-Link .btn:active i {
  font-size: 2.2rem;
  transition: all 0.4s;
}
.navbar .navbar-Link .btn i {
  display: block;
  font-size: 1.5rem;
}
.navbar .navbar-Link .btn span {
  display: block;
  font-size: 0.8rem;
}
.navbar.Sticky {
  opacity: 1;
  transform: translateY(0px);
  transition: all 0.5s;
}
@media (max-width: 991px) {
  .navbar {
    box-shadow: 0px -6px 20px rgba(0, 0, 0, 0.1);
    bottom: 0;
    top: auto;
    width: 100%;
    background-color: rgba(252, 252, 252, 0.571);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
  .navbar .navbar-brand {
    display: none;
  }
  .navbar .navbar-Link {
    width: 100%;
    flex-direction: row;
  }
  .navbar .navbar-Link .btn {
    min-width: auto;
    font-size: 14px;
    padding: 10px 0;
    padding-bottom: 14px;
    text-shadow: 0 0 0;
    color: #0c4349;
    border-left: 1px solid rgba(118, 114, 114, 0.1921568627);
  }
  .navbar .navbar-Link .btn:hover,
  .navbar .navbar-Link .btn:active {
    border-color: transparent;
    border-left: 1px solid rgba(118, 114, 114, 0.1921568627);
  }
  .navbar .navbar-Link .btn:hover i,
  .navbar .navbar-Link .btn:active i {
    font-size: 1rem;
  }
  .navbar .navbar-Link .btn i {
    display: block;
    font-size: 1.2rem;
  }
  .navbar .navbar-Link .btn span {
    display: none;
  }
}

/*========================================================
  區塊1
=========================================================*/
.section1 {
  min-height: unset;
  background: url(../img/kv-bg.png) no-repeat center center;
  background-size: cover;
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.section1::after {
  content: "";
  position: absolute;
  top: 20%;
  left: -80%;
  width: 260%;
  height: 100%;
  background: url("../img/fog.png") repeat-x center / auto 100%;
  background-size: cover;
  animation: fogMove2 25s linear infinite reverse;
  mix-blend-mode: hard-light;
  pointer-events: none;
  opacity: 0.6;
}
@keyframes fogMove2 {
  from {
    transform: translateX(10%);
  }
  to {
    transform: translateX(-25%);
  }
}
.section1 .box {
  width: 70%;
  height: 80%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.section1 .logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 5%;
  width: 30%;
}
.kv-t1 {
  position: relative;
  width: 100%;
  margin-bottom: 20%;
  pointer-events: none;
}
.kv-t1 img {
  animation: bob 2.8s ease-in-out infinite;
}
.kv-t2 {
  width: 60%;
  pointer-events: none;
}
.kv-t2 img {
  animation: bob 3.2s ease-in-out infinite;
}

@media screen and (min-width: 540px) {
  .section1 .box {
    width: 52.5%;
    height: 85%;
  }
  .section1 .logo {
    width: 20%;
  }
  .kv-t1 {
    margin-bottom: 15%;
  }
}
@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section1 {
    align-items: center;
  }
  .section1::after {
    top: 0;
    opacity: 0.7;
  }
  .section1 .box {
    width: 70%;
    justify-content: center;
  }
  .kv-t1 {
    width: 50%;
  }
  .kv-t2 {
    position: absolute;
    right: 3%;
    bottom: 3%;
    width: 8%;
  }
  .section1 .logo {
    position: relative;
    width: 19%;
    left: unset;
    bottom: unset;
    transform: unset;
    margin-left: 2%;
    margin-bottom: 5%;
  }
}
@media screen and (min-width: 1500px) {
  .section1 .box {
    width: 66%;
  }
  .kv-t2 {
    width: 7%;
  }
}

/*========================================================
  區塊2
=========================================================*/
.section2 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.section2 .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background: url(../img/s2-bg-mb.png) no-repeat;
  background-size: cover;
  background-position: center;
}
.section2 .box {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 85%;
  height: 100%;
}
.s2-t1 {
  width: 100%;
  pointer-events: none;
}
.s2-t2 {
  width: 33%;
  margin: 35% 0;
  pointer-events: none;
}

@media screen and (min-width: 540px) {
  .s2-t2 {
    width: 25%;
    margin: 15% 0;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section2 {
    flex-direction: column;
    align-items: center;
  }
  .section2 .bg {
    background: url(../img/s2-bg-pc.png) no-repeat;
    background-size: cover;
    background-position: top right;
  }
  .section2 .box {
    width: 55%;
    justify-content: center;
  }
  .s2-t2 {
    width: unset;
    margin: unset;
    position: absolute;
    right: 2%;
    height: 90%;
  }
  .s2-t2 img {
    object-fit: contain;
    object-position: center;
  }
}

@media screen and (min-width: 1500px) {
  .section2 .box {
    width: 50%;
  }
}

/*========================================================
  區塊3
=========================================================*/
.section3 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  isolation: isolate;
}
.section3 .bg {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: -1;
  background: url(../img/s3-bg.png) no-repeat;
  background-size: cover;
  background-position: center;
}
.section3 .bg::after {
  content: "";
  position: absolute;
  top: 0;
  left: -80%;
  width: 260%;
  height: 100%;
  background: url("../img/fog.png") repeat-x center / auto 100%;
  background-size: cover;
  animation: fogMove2 35s linear infinite;
  mix-blend-mode: hard-light;
  pointer-events: none;
}
@keyframes fogMove {
  from {
    transform: translateX(-35%);
  }
  to {
    transform: translateX(50%);
  }
}
.section3 .box {
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: center;
  width: 80%;
  height: 95%;
}
.s3-p1 {
  width: 60%;
  animation: bob 2.8s ease-in-out infinite;
}
.s3-t1 {
  pointer-events: none;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@media screen and (min-width: 768px) {
  .section3 .box {
    width: 65%;
    height: 90%;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section3 {
    align-items: center;
  }
  .section3 .box {
    flex-direction: row;
    justify-content: space-around;
    width: 80%;
  }
  .s3-p1 {
    width: 35%;
  }
  .s3-t1 {
    width: 50%;
  }
}

@media screen and (min-width: 1500px) {
  .section3 .box {
    width: 70%;
  }
}

/*========================================================
  info-block
=========================================================*/
.info-block {
  width: 85%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12%;
}
.info-logo,
.info-t1 {
  width: 60%;
}
.info-t1 {
  margin: 10% 0;
}
.info-t2 {
  width: 100%;
}
.sanyin {
  margin-top: 3%;
  width: 40%;
}
@media screen and (min-width: 768px) {
  .info-block {
    width: 66%;
    margin-bottom: 6%;
  }
}
/*========================================================
  form-title
=========================================================*/
.form-title {
  margin: 10% 0 2.5% 0;
  font-size: 32px;
  font-weight: 200;
  transform: scaleX(1.1);
  transform-origin: left;
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .form-title {
    margin: 3% 0 1.5% 0;
    font-size: 36px;
    line-height: 1.5;
    letter-spacing: 1px;
  }
}

@media screen and (min-width: 1500px) {
  .form-title {
    font-size: 40px;
  }
}

/*========================================================
                         預約賞屋
=========================================================*/

input,
select {
  background-color: transparent;
  border-radius: 0;
  color: #424866;
  outline-color: #424866;
  border: 1px solid #424866;
  padding-left: 15px;
}
input[type="text"],
input[type="phone"],
select {
  height: 45px;
  width: 100%;
}
select {
  background-image: url(../img/arrow.png);
  background-repeat: no-repeat;
  background-position: 98%;
  background-size: 24px auto;
  appearance: none;
  -moz-appearance: none;
  -webkit-appearance: none;
}
::placeholder {
  color: #424866 !important;
}
:-ms-input-placeholder {
  color: #424866 !important;
}
::-ms-input-placeholder {
  color: #424866 !important;
}
.reservation {
  background-color: rgba(24, 99, 107, 0.9);
  color: #424866;
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 100px 0;
}
.reservation .box {
  position: relative;
  background: url(../img/form-bg.png) no-repeat center center;
  background-size: cover;
  max-width: 650px;
  margin: 0 auto;
  width: 95%;
  padding: 30px 25px;
}
.reservation .box::before {
  content: "";
  position: absolute;
  inset: 10px; /* 控制「縮進距離」 */
  border: 1px solid #424866;
  pointer-events: none;
}
.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: #424866;
  font-size: 14px;
  margin-left: 3px;
  line-height: 1.8;
}
.reservation .form_check_txt a {
  text-decoration: none;
}
.reservation .reg_btn {
  width: 125px;
  height: 125px;
  background-color: #2e828b;
  color: #fff;
  padding: 10%;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  line-height: 1.2;
  letter-spacing: 3px;
  overflow: hidden;
  box-shadow: 0.5px 1.5px 3px 1px rgba(0, 0, 0, 0.727);
  transition: all 0.3s ease;
}
@media screen and (max-width: 360px) {
  .reservation .reg_btn {
    padding: 12%;
  }
}
.reservation .reg_disabled {
  cursor: no-drop;
  opacity: 0.8;
}
.reservation .reg_btn:hover {
  background-color: #538a91;
  opacity: 0.8;
  box-shadow: unset;
}
.reservation .reg_btn:focus {
  outline: unset;
}
.reservation .reg_disabled:hover {
  background-color: #538a91;
  opacity: 0.8;
}
.reservation .msgerror {
  width: 100%;
  display: block;
  color: #d92929;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
}
.input-error {
  border: 2px solid #ee7878 !important;
}
.input-error:focus {
  outline: 0;
}
.reservation .priv {
  margin-bottom: 2%;
  font-size: 14.4px;
  line-height: 28px;
}
.reservation .info {
  margin-top: 4%;
}
.reservation .priv-block {
  font-size: 16px;
  margin-bottom: 5%;
}
.btn-block {
  width: 100%;
}

/* 平板以上：兩欄排版邏輯 */
@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%;
  }
  .reservation .box {
    padding: 20px 55px;
  }
  .reservation .box::before {
    inset: 20px;
  }
  .reservation .priv-block {
    margin-bottom: unset;
  }
  .reservation .msgerror {
    margin-top: unset;
  }
  .btn-block {
    display: flex;
    margin: 4% 0 0 0;
  }
  .btn-block .text-center {
    margin: 0 0 0 auto;
  }
  .reservation .reg_btn {
    padding: 22%;
    font-size: 22px;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .reservation {
    height: 100vh;
    flex-direction: row;
    justify-content: center;
    padding: 0;
  }
  .reservation .box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60%;
    height: 80%;
    max-height: 700px;
    margin: 0 8% 0 0;
  }
  .reservation .box::before {
    inset: 20px;
    border: 1.5px solid #424866;
  }
  .reservation .input-block {
    margin-bottom: unset;
  }
  .info-block {
    width: 40%;
    justify-content: center;
    padding: 8% 4%;
    margin-bottom: unset;
  }
  #myform {
    max-width: 600px;
  }
  .btn-block {
    margin: unset;
  }
  .reservation .priv {
    font-size: 16px;
    line-height: 32px;
  }
}

@media screen and (min-width: 1500px) {
  .info-block {
    max-width: 700px;
  }
  .reservation .box {
    max-width: 750px;
  }
  .reservation .box::before {
    inset: 25px;
    border: 2px solid #424866;
  }
}

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

footer {
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #13444a;
  color: #fff;
}

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

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

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

.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 {
  font-family: "HunInn";
  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;
  }
}

/*========================================================
                         loader
=========================================================*/
#js-loader.loading {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: #18636b;
  display: flex;
  align-items: center;
  justify-content: center;
}

#js-loader.is-exit {
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.wn-holder {
  width: 300px;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.wn-logo {
  width: 180px;
  height: auto;
  display: block;
  overflow: visible;
  animation: mobileLogoFade 1.5s ease-in-out infinite alternate;
}

.wn-stroke {
  fill: none;
  stroke-width: 0.5;
}

.wn-fill {
  fill: #fff;
}

.wn-fill-rect {
  animation: none !important;
  transform: scaleX(1);
}

@keyframes mobileLogoFade {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

.wn-text {
  color: rgba(255, 255, 255, 0.8);
  font:
    14.4px/1.2 "Noto Sans TC",
    system-ui,
    -apple-system,
    "Segoe UI",
    Arial;
  letter-spacing: 0.28em;
  user-select: none;
}

@media (prefers-reduced-motion: reduce) {
  .wn-logo,
  .wn-fill-rect {
    animation: none !important;
  }
}

[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;
}
