@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: 400;
  line-height: 32px;
  font-size: 1rem;
  color: #1c1c1c;
  overflow-x: hidden;
  background-color: #fff;
  position: relative;
}
body:before {
  content: " ";
  position: fixed;
  z-index: -2;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: url(../img/body-bg.png) center 0 no-repeat;
  background-size: cover;
}

p {
  margin: unset;
}

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

/*========================================================
                          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: #013e47;
    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 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: transparent;
  aspect-ratio: 9 / 16;
}
.kv-video {
  background-color: #1c1c1c;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 9 / 16;
}
.kv-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65%;
}
.kv-text img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .section1 {
    aspect-ratio: 16 / 9;
  }
  .kv-video {
    aspect-ratio: 16 / 9;
  }
  .kv-text {
    width: 60%;
  }
}
@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section1 {
    height: 100%;
  }
  .kv-text {
    width: 40%;
  }
}
@media screen and (min-width: 1500px) {
  .kv-text {
    width: 35%;
  }
}

/*========================================================
                         video block
=========================================================*/
.main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
}
.clock {
  position: absolute;
  left: 0;
  top: 20%;
  width: 70%;
}
.clock-reverse {
  transform: scaleX(-1);
  position: absolute;
  right: 0;
  bottom: 30%;
  width: 70%;
}
.video-list {
  width: 90%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 0;
}
.video-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 15% 0;
}
.video-text {
  width: 100%;
  margin: 5% 0;
  font-weight: 600;
}
.video-text h2,
.video-text p {
  position: relative;
  display: inline-block;
  width: 100%;
  font-weight: 700;
}
.video-text h2 {
  font-size: 18px;
  letter-spacing: 2.5px;
  padding: 0 0 15px 15px;
  margin: 0;
}
/* 左邊線 */
.video-text h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to top, #2d657b 0%, rgba(45, 101, 123, 0) 100%);
}
/* 底部線 */
.video-text h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, #2d657b 0%, rgba(45, 101, 123, 0) 15%);
}
.video-text p {
  font-size: 16px;
  text-align: end;
  letter-spacing: 2px;
  margin: 0;
  padding: 10px 10px 0 0;
}
/* 右邊線 */
.video-text p::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(
    to bottom,
    #2d657b 0%,
    rgba(45, 101, 123, 0) 100%
  );
}
/* 頂部線 */
.video-text p::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(to left, #2d657b 0%, rgba(45, 101, 123, 0) 15%);
}
.youtube-wrap {
  width: 100%;
  aspect-ratio: 16 / 9; /* 改這裡就好 */
  position: relative;
}
.youtube-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media screen and (min-width: 768px) {
  .video-text {
    width: 80%;
  }
  .video-text h2 {
    font-size: 24px;
  }
  .video-text p {
    font-size: 22px;
  }
  .clock,
  .clock-reverse {
    width: 60%;
  }
}
@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .video-list {
    padding: 40px 0;
  }
  .video-block {
    width: 90%;
    margin: 8% 0;
  }
  .video-text {
    width: 50%;
  }
  .video-text h2 {
    font-size: 26px;
    letter-spacing: 3.5px;
    padding: 0 0 20px 20px;
  }
  .video-text h2::after {
    background: linear-gradient(
      to right,
      #2d657b 0%,
      rgba(45, 101, 123, 0) 10%
    );
  }
  .video-text p {
    font-size: 24px;
    letter-spacing: 3px;
    padding: 20px 20px 0 0;
  }
  .video-text p::after {
    background: linear-gradient(to left, #2d657b 0%, rgba(45, 101, 123, 0) 10%);
  }
  .clock,
  .clock-reverse {
    width: 50%;
  }
}

@media screen and (min-width: 1500px) {
  .video-text {
    width: 42.5%;
  }
}
/*========================================================
                         text-block
=========================================================*/
.main .text-block {
  text-align: center;
  color: #013e46;
  font-weight: 700;
}
.main .text-block h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 3px;
}
.main .text-block p {
  display: block;
  margin: 8% 0 15% 0;
  color: #000;
  letter-spacing: 1.5px;
  line-height: 2;
}
.main .text-block span {
  position: relative;
  letter-spacing: 1.5px;
  line-height: 2;
}
.main .text-block span::before,
.main .text-block span::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent 0%,
    #013e46 50%,
    transparent 100%
  );
  left: 0;
}
.main .text-block span::before {
  top: -35%;
}
.main .text-block span::after {
  bottom: -35%;
}
.main .pic {
  width: 100%;
}
.main .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  .main .text-block h2 {
    font-size: 32px;
  }
  .main .text-block p {
    margin: 8% 0 15% 0;
    font-size: 20px;
  }
  .main .text-block span {
    font-size: 20px;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .main .text-block h2 {
    font-size: 40px;
    line-height: 1.5;
    letter-spacing: 12px;
  }
  .main .text-block p {
    margin: 8% 0 15% 0;
    font-size: 24px;
    letter-spacing: 6px;
  }
  .main .text-block span {
    font-size: 24px;
    letter-spacing: 6px;
  }
}
/*========================================================
                         banner
=========================================================*/
.banner {
  position: relative;
  background-color: #ffffff;
  width: 100%;
  height: 100%;
  aspect-ratio: 414 / 736;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.banner .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  background-image: url(../img/banner_bg2.png);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.banner .py-logo {
  position: absolute;
  right: 2.5%;
  top: 2.5%;
  width: 15%;
}
.banner .text {
  display: flex;
  flex-direction: column;
  width: 90%;
  margin-bottom: 15%;
}
.banner .text img {
  width: 100%;
  object-fit: cover;
  z-index: 1;
}
.banner .text .s1-t1 {
  margin-bottom: 10%;
}

@media screen and (min-width: 768px) {
  .banner {
    height: 100%;
    aspect-ratio: 1920 / 558;
  }
  .banner .bg {
    background-image: url(../img/banner_bg1.png);
    background-repeat: no-repeat;
    background-size: cover;
  }
  .banner .text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 80%;
    height: 100%;
    margin-bottom: unset;
  }
  .banner .text .s1-t1 {
    width: 66%;
    margin-bottom: 0;
  }
  .banner .text .s1-logo {
    width: 40%;
  }
  .banner .py-logo {
    right: 5%;
    top: 10%;
    width: 7%;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .banner .text .s1-t1 {
    width: 55%;
  }
  .banner .text .s1-logo {
    width: 35%;
  }
}
/*========================================================
                         detail
=========================================================*/
.detail {
  background: url(../img/info-bg.png) no-repeat top right;
  background-size: cover;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 40px 0;
}
.detail-row {
  position: relative;
  display: flex;
  width: 85%;
  max-width: 1100px;
  padding: 30px 0;
  gap: 10%;
  color: #013e46;
  font-weight: 700;
}
.detail-row h6 {
  font-weight: 700;
}
.detail-row:after {
  position: absolute;
  left: 0;
  bottom: 0;
  content: "";
  width: 100%;
  height: 5px;
  background-color: #bdcfd1;
}
.detail-row:last-child::after {
  content: unset;
}
.detail-row .left {
  width: 60%;
}
.detail-row .right {
  width: 40%;
}

@media screen and (min-width: 768px) {
  .detail-row {
    width: 85%;
    padding: 15px 0;
    gap: unset;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .detail {
    padding: 80px 0;
  }
  .detail-row {
    width: 65%;
  }
  .detail-row h6 {
    font-size: 18px;
  }
}
/*========================================================
                         form-title
=========================================================*/
.form-title {
  width: 100%;
  margin: 0 0 5% 0;
  text-align: center;
  font-weight: 700;
}
.form-title p {
  font-size: 32px;
  letter-spacing: 1.5px;
  margin-bottom: 3%;
}

@media screen and (min-width: 768px) {
  .form-title {
    width: unset;
  }
  .form-title span {
    font-size: 18px;
  }
}

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

@media screen and (min-width: 1500px) {
  .form-title {
    margin: 0 0 3% 0;
  }
}

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

input,
select {
  background-color: #fff;
  border-radius: 0;
  color: #013e47;
  outline-color: #d87635;
  border: 1px solid #d87635;
  padding-left: 15px;
}
input:focus,
select:focus {
  scale: 1.01;
}
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: #013e47 !important;
}
:-ms-input-placeholder {
  color: #013e47 !important;
}
::-ms-input-placeholder {
  color: #013e47 !important;
}
.reservation {
  background-color: #013e47;
  color: #fff;
  width: 100%;
  height: 100%;
  min-height: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 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: #f2f2f2;
  font-size: 14.4px;
  margin-left: 3px;
  line-height: 1.8;
}
.reservation .form_check_txt a {
  text-decoration: none;
}
.reservation .reg_btn {
  width: 100%;
  background-color: #c0915f;
  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.8;
}
.reservation .reg_btn:hover {
  background-color: #e6b37de7;
  color: #333;
  opacity: 0.8;
}
.reservation .reg_btn:focus {
  outline: unset;
}
.reservation .reg_disabled:hover {
  background-color: #e6b37de7;
  opacity: 0.8;
}
.reservation .msgerror {
  color: #ffa4a4;
  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;
}
.reservation .priv {
  margin-bottom: 2%;
}
.reservation .info {
  margin-top: 4%;
}
.map-block {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 5% 0 15% 0;
}
.map {
  width: 100%;
  height: 350px;
}
.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%;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .reservation {
    height: 100vh;
    justify-content: center;
    padding: 80px 0;
  }
  .reservation .box {
    display: flex;
    max-width: 1000px;
    gap: 5%;
  }
  #myform {
    width: 50%;
  }
  .map-block {
    width: 50%;
    margin: unset;
  }
  .map {
    height: 300px;
  }
  .reservation .form_check_txt {
    font-size: 16px;
  }
}

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

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

.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: #dbeff1;
  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: rgba(255, 255, 255, 0.92);
  stroke-width: 0.5;
}

.wn-fill {
  fill: #013e46;
}

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