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

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

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

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

p {
  margin: unset;
}

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

.pc {
  display: none;
}
.mb {
  display: block;
}

@media screen and (max-width: 400px) {
  section {
    min-height: 874px;
  }
}

/*========================================================
                         區塊1
=========================================================*/

.section1 {
  position: relative;
  width: 100%;
  height: calc(100vh);
  background: url(../img/s1-bg-mb.png) no-repeat;
  background-size: cover;
  background-position: 70%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.s1 {
  width: 85%;
  height: 100%;
  color: #fff;
}
.s1 .box {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin: 20% 0 0 0;
  z-index: 2;
}
.s1 h2,
.s2 h2 {
  margin: 8% 0 3% 0;
}
.s1 p,
.s2 p {
  font-size: 1rem;
}
.sy5213 {
  width: 50%;
}
.s1 .line-div {
  content: "";
  width: 50px;
  height: 3px;
  background-color: #fff;
  margin: 5% 0;
}
.s1 span {
  width: 80%;
}
.s1-shape {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 55%;
}
.s1-shape img {
  width: 100%;
  height: 100%;
  opacity: 0.8;
  pointer-events: none;
}
.s1-line {
  width: 35%;
}
.s1 a {
  position: relative;
  width: 150px;
  background-color: transparent;
  color: #fff;
  border: 0.5px solid #ffffffd1;
  padding: 5px 10px 5px 5px;
  margin: 12% 0 8% 0;
  cursor: pointer;
  text-align: center;
}
.s1 a:focus {
  outline: unset;
}
.s1 a::before {
  content: "";
  width: 0%;
  height: 100%;
  display: block;
  background-color: #ffffff50;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: all 0.3s ease;
}
.s1 a:hover::before {
  width: 100%;
  height: 100%;
  opacity: 1;
}
.fa-arrow-right {
  transition: all 0.3s ease;
}
.s1 a:hover .fa-arrow-right {
  transform: translateX(5px);
}

@media screen and (min-width: 768px) {
  .section1 {
    min-height: 1100px;
    background-position: bottom center;
    font-size: 1.1rem;
  }
  .sy5213 {
    width: 35%;
  }
  .s1 h2,
  .s2 h2 {
    margin: 5% 0 2% 0;
    font-size: 2.2rem;
  }
  .s1 p,
  .s2 p {
    font-size: 1.2rem;
  }
  .s1 .box {
    margin: 15% 0 0 0;
  }
  .s1-shape img {
    opacity: 0.6;
  }
  .s1 a {
    width: 180px;
    padding: 10px 15px 10px 10px;
    margin: 8% 0 4% 0;
    font-size: 1rem;
  }
  .s1-line {
    width: 20%;
  }
}
@media screen and (min-width: 1024px) {
  .section1 {
    min-height: 1500px;
  }
  .sy5213 {
    width: 30%;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section1 {
    background: url(../img/s1-bg-pc.png) no-repeat;
    background-size: cover;
    background-position: 0 65%;
    min-height: unset;
    display: flex;
    overflow: hidden;
    font-size: 1rem;
    font-weight: 300;
  }
  .s1 {
    width: 80%;
    flex-direction: row;
  }
  .s1 .box {
    margin: unset;
    justify-content: center;
    width: 50%;
  }
  .mb {
    display: none;
  }
  .pc {
    display: block;
  }
  .s1-shape {
    left: 0;
    width: 100%;
    height: 100%;
  }
  .s1-shape img {
    opacity: 0.8;
  }
  .s1 a {
    padding: 8px 12px;
    margin: 8% 0 4% 0;
  }
  .s1-line {
    position: absolute;
    bottom: 8%;
    right: -2.5%;
    width: 22.5%;
  }
}

@media screen and (min-width: 1500px) {
}

/*========================================================
                         區塊2
=========================================================*/
.section2 {
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s2 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  position: relative;
  width: 85%;
  height: 100%;
}
.s2 .box {
  order: 1;
  width: 100%;
}
.s2 p,
.s2 span {
  color: #4d4d4d;
}
.s2 .line-div {
  content: "";
  width: 50px;
  height: 1px;
  background-color: #002878;
  margin: 5% 0;
}
.s2 .swiper1,
.s6 .swiper1 {
  order: 2;
  width: 100%;
  overflow: hidden;
}
.s2 .swiper-nav,
.s6 .swiper-nav {
  display: flex;
  justify-content: start;
  gap: 12px;
  margin-top: 32px;
}
/* Swiper 內部樣式 */
.s2 .swiper1 .swiper-slide,
.s6 .swiper1 .swiper-slide {
  width: 100%;
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: scale(0.9);
  opacity: 0.5;
}
.s2 .swiper1 .swiper-slide-prev,
.s2 .swiper1 .swiper-slide-next,
.s6 .swiper1 .swiper-slide-prev,
.s6 .swiper1 .swiper-slide-next {
  transform: scale(0.85);
  opacity: 0.8;
}
.s2 .swiper1 .swiper-slide-active,
.s6 .swiper1 .swiper-slide-active {
  transform: scale(1);
  opacity: 1;
  z-index: 2;
}
.s2 .swiper1 .swiper-slide img,
.s6 .swiper1 .swiper-slide img {
  width: 100%;
  display: block;
}
.s2 .swiper-button-prev,
.s2 .swiper-button-next,
.s6 .swiper-button-prev,
.s6 .swiper-button-next {
  position: static;
  width: 32px;
  height: 32px;
  font-weight: 700;
  border: 1px solid #002878;
  border-radius: 50%;
  background: #fff;
  color: #002878;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.s2 .swiper-button-prev::after,
.s2 .swiper-button-next::after,
.s6 .swiper-button-prev::after,
.s6 .swiper-button-next::after {
  font-size: 14px;
}

.s2 .swiper-button-prev:hover,
.s2 .swiper-button-next:hover,
.s6 .swiper-button-prev:hover,
.s6 .swiper-button-next:hover {
  background: #aebfe23d;
}

@media screen and (min-width: 768px) {
  .section2 {
    font-size: 1.1rem;
  }
  .s2 {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 32px;
  }
  .s2 .box {
    order: 1;
    width: 85%;
  }
  .desc {
    display: block;
    width: 55%;
    margin-bottom: 8%;
  }
  .s2 .swiper1,
  .s6 .swiper1 {
    order: 2;
    width: 85%;
  }
  .s2 .swiper1 .swiper-slide,
  .s6 .swiper1 .swiper-slide {
    width: 100%;
  }
  .s2 .swiper-nav,
  .s6 .swiper-nav {
    margin-top: 16px;
  }
  .s2 .swiper-button-prev,
  .s2 .swiper-button-next,
  .s6 .swiper-button-prev,
  .s6 .swiper-button-next {
    width: 36px;
    height: 36px;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section2 {
    font-size: 1rem;
    font-weight: 300;
  }
  .s2 {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: unset;
  }

  /* 左圖右文 */
  .s2 .swiper1,
  .s6 .swiper1 {
    width: 60%;
  }
  .s2 .box {
    width: 40%;
    height: 100%;
    padding-right: 10%;
    order: 2;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .s2 .line-div {
    position: relative;
    margin: 8% 0;
    left: -15%;
    width: 120px;
  }
  .desc {
    width: 100%;
    margin-bottom: 15%;
  }
  .s2 .swiper1 .swiper-slide,
  .s6 .swiper1 .swiper-slide {
    width: 65%;
  }
}

/*========================================================
                         區塊3
=========================================================*/
.section3 {
  width: 100%;
  height: 100%;
  background-color: #0b2b5b;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.s3 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.map {
  position: relative;
  width: 110%;
}
.s3-map {
  display: block;
  max-width: 100%;
  height: auto;
}
.style2 {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
}
.s3 .map img {
  width: 100%;
  height: 100%;
}
/* 共同設定 */
.style2.sparkle {
  position: absolute;
  top: 0;
  left: 0;
  mix-blend-mode: color-dodge;
  pointer-events: none;
  /* 每張圖可覆寫的亮點中心（百分比或px都可） */
  --cx: 50%;
  --cy: 50%;
  /* 光圈大小、強度可調 */
  --glow-size: 225%;
  --glow-max: 0.7; /* 最高不透明度 */
  --glow-min: 0; /* 最低不透明度 */
  --glow-scale-min: 0.3;
  --glow-scale-max: 1.5;
}
/* ✨放射光圈：以亮點座標為中心，不縮放原圖 */
.style2.sparkle::after {
  content: "";
  position: absolute;
  top: var(--cy);
  left: var(--cx);
  width: var(--glow-size);
  height: var(--glow-size);
  transform: translate(-50%, -50%) scale(var(--glow-scale-min));
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, var(--glow-max)) 0%,
    rgba(255, 255, 255, 0.25) 25%,
    rgba(255, 255, 255, 0) 70%
  );
  opacity: var(--glow-min);
  animation: glowPulse 2.8s ease-in-out infinite;
}

.style2.sparkle {
  animation: coreBlink 2.8s ease-in-out infinite;
}
@keyframes glowPulse {
  0%,
  100% {
    opacity: var(--glow-min);
    transform: translate(-50%, -50%) scale(var(--glow-scale-min));
  }
  50% {
    opacity: var(--glow-max);
    transform: translate(-50%, -50%) scale(var(--glow-scale-max));
  }
}
@keyframes coreBlink {
  0%,
  100% {
    filter: brightness(1);
    opacity: 0.85;
  }
  50% {
    filter: brightness(1.35);
    opacity: 1;
  }
}
/* 讓三顆星錯開時間（可調） */
.style2.sparkle:nth-of-type(2) {
  animation-delay: 0.6s;
}
.style2.sparkle:nth-of-type(2)::after {
  animation-delay: 0.6s;
}
.style2.sparkle:nth-of-type(3) {
  animation-delay: 1.2s;
}
.style2.sparkle:nth-of-type(3)::after {
  animation-delay: 1.2s;
}
/* 閃爍核心亮度變化 */
@keyframes sparkleGlow {
  0%,
  100% {
    opacity: 0.5;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}
/* 擴散光圈（柔和放大消失） */
@keyframes sparklePulse {
  0%,
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.6);
  }
  50% {
    opacity: 0.5;
    transform: translate(-50%, -50%) scale(1.1);
  }
}
/* 每個星點的時間錯開 */
.sparkle:nth-of-type(2) {
  animation-delay: 0.6s;
}
.sparkle:nth-of-type(2)::after {
  animation-delay: 0.6s;
}
.sparkle:nth-of-type(3) {
  animation-delay: 1.2s;
}
.sparkle:nth-of-type(3)::after {
  animation-delay: 1.2s;
}
.s3 .box {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 10%;
}
.s3-t1 {
  width: 70%;
}
.s3 .square {
  width: 100%;
  height: 100%;
}
.s3 .circle {
  width: 100%;
  margin: 10% 0 0 0;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  flex-wrap: wrap; /* 若寬度不足時自動換行 */
  gap: 15px;
}

.s3 .circle span {
  display: flex; /* 用 flex 置中文字 */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 30%; /* 固定寬度 */
  aspect-ratio: 1/1; /* 高度自動等於寬度 → 保持正圓形 */
  color: #ffffffe1;
  border: 1px solid #ffffffbd;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .s3 .map {
    width: 85%;
  }
  .s3 .box {
    width: 85%;
  }
  .s3-t1 {
    width: 60%;
  }
  .s3 .circle {
    margin: 10% 0;
  }
  .s3 .circle span {
    width: 30%; /* 固定寬度 */
    font-size: 20px;
    line-height: 36px;
    box-sizing: border-box;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section3 {
    height: 100vh;
    overflow: hidden;
  }
  .s3 {
    position: relative;
    flex-direction: row-reverse;
    align-items: start;
  }
  .s3 .map {
    width: 100%;
  }
  .s3 .square {
    position: absolute;
    top: 75%;
    left: 40%;
    width: 50%;
    transform: translate(-50%, -50%);
  }
  .s3 .circle {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translate(-50%, 0);
    margin: unset;
    width: 50%;
  }
  .s3 .circle span {
    width: 22%;
    font-size: 16px;
    line-height: 28px;
  }
}

@media screen and (min-width: 1500px) {
  .s3 .square {
    width: 45%;
  }
  .s3 .circle span {
    width: 18%;
    font-size: 18px;
    line-height: 32px;
  }
}

/*========================================================
                         區塊4
=========================================================*/
.section4 {
  width: 100%;
  height: 100%;
  background-color: #f3f3f3;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15% 0;
}
.s4 {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.s4 .title {
  width: 90%;
  text-align: center;
  margin-top: 10%;
}
.s4 h2 {
  font-size: 1.6rem;
}
.s4 p {
  font-size: 1rem;
  color: #4d4d4d;
}
.s4 .map {
  width: 90%;
  height: 350px;
  margin: 5% 0;
}
.s4 .map img {
  width: 100%;
  height: 100%;
  object-position: 55% 50%;
  object-fit: cover;
}
.s4 .box {
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 8% 0;
}
.s4 .circle {
  width: 100%;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  text-align: center;
  flex-wrap: wrap; /* 若寬度不足時自動換行 */
  gap: 15px;
}

.s4 .circle span {
  display: flex; /* 用 flex 置中文字 */
  justify-content: center;
  align-items: center;
  flex-direction: column;
  width: 30%; /* 固定寬度 */
  aspect-ratio: 1/1; /* 高度自動等於寬度 → 保持正圓形 */
  color: #fff;
  background-color: #002878;
  border: 1px solid #002878;
  border-radius: 50%;
  font-size: 13px;
  line-height: 1.6;
  padding: 12px;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  .section4 {
    padding: unset;
  }
  .s4 h2 {
    font-size: 2rem;
  }
  .s4 p {
    font-size: 1.2rem;
    font-weight: 300;
  }
  .s4 .box {
    width: 85%;
    margin: unset;
  }
  .s4 .circle {
    margin: 5% 0;
  }
  .s4 .circle span {
    width: 30%; /* 固定寬度 */
    font-size: 20px;
    line-height: 36px;
    box-sizing: border-box;
  }
  .s4 .map {
    width: 85%;
    height: 450px;
  }
  .s4 .map img {
    object-position: center;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section4 {
    height: 100%;
  }
  .s4 {
    position: relative;
  }
  .s4 .title {
    margin-top: 3.5%;
  }
  .s4 h2 {
    line-height: 40px;
    margin-bottom: 1.5%;
  }
  .s4 p {
    font-size: 1.4rem;
  }
  .s4 .map {
    width: 70%;
    height: unset;
    margin:0 0 5% 0;
  }
  .s4 .box {
    width: 100%;
    margin: 3% 0;
  }
  .s4 .circle {
    margin: unset;
    width: 50%;
  }
  .s4 .circle span {
    width: 22%;
    font-size: 16px;
    line-height: 28px;
  }
}

@media screen and (min-width: 1500px) {
  .s4 .circle span {
    width: 18%;
    font-size: 18px;
    line-height: 32px;
  }
}

/*========================================================
                         區塊5
=========================================================*/

.section5 {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url(../img/s5-bg.png) no-repeat;
  background-size: cover;
  background-position: 75%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.s5 {
  width: 85%;
  height: 100%;
  color: #fff;
}
.s5 .box {
  position: relative;
  width: 100%;
  height: 35%;
  display: flex;
  flex-direction: column;
  margin: 20% 0 0 0;
  z-index: 2;
}
.s5 .line-div {
  content: "";
  width: 50px;
  height: 3px;
  background-color: #fff;
  margin: 5% 0;
}
.s5 span {
  font-size: 24px;
  line-height: 32px;
  font-weight: 300;
}
.s5-shape {
  position: absolute;
  top: 0;
  z-index: 1;
  width: 100%;
  height: 35%;
}
.s5-shape img {
  width: 100%;
  height: 100%;
  opacity: 0.8;
  pointer-events: none;
}
.mm2h {
  display: flex;
  flex-direction: column;
  color: #000;
  background-color: #fff;
  padding: 65px 35px;
}
.mm2h p {
  font-size: 20px;
  line-height: 24px;
}
.s5 .pic {
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, max-content));
  gap: 25px;
  margin-top: 15%;
}
.s5 .pic img {
  width: 100%;
}

@media screen and (min-width: 768px) {
  .s5 {
    display: flex;
    flex-direction: column;
  }
  .s5 .box {
    margin: 15% 0 0 0;
  }
  .mm2h {
    width: 85%;
    align-self: center;
    padding: 65px;
  }
  .mm2h p {
    font-size: 26px;
    line-height: 32px;
    display: block;
    width: 100%;
    align-self: start;
  }
  .s5 .pic {
    gap: 30px;
    margin-top: 10%;
    align-self: start;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section5 {
    position: relative;
    min-height: unset;
    display: flex;
    height: 75vh;
    background-position: 100% 100%;
  }
  .s5-bg {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
  .s5 {
    width: 80%;
    flex-direction: row;
    justify-content: center;
    align-items: center;
  }
  .s5 .box {
    margin: unset;
    justify-content: center;
    width: 50%;
    height: 100%;
  }
  .s5-shape {
    left: 0;
    width: 40%;
    height: 100%;
  }
  .mm2h {
    justify-content: center;
    padding: 40px 75px;
    width: 50%;
  }
  .mm2h p {
    font-size: 1rem;
    line-height: 24px;
    width: 100%;
  }
  .s5 .pic {
    gap: 20px;
    margin-top: 5%;
  }
}

@media screen and (min-width: 1300px) {
  .mm2h {
    padding: 65px 75px;
  }
  .mm2h p {
    font-size: 24px;
    line-height: 32px;
  }
}

/*========================================================
                         區塊6
=========================================================*/
.section6 {
  width: 100%;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s6 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  position: relative;
  width: 90%;
  height: 100%;
}
.s6 .title {
  width: 100%;
  text-align: center;
  margin-bottom: 15%;
}
.s6 h2 {
  font-size: 1.6rem;
}
.s6 p {
  font-size: 1rem;
  color: #4d4d4d;
  font-weight: 300;
}
.s6 .swiper1 {
  order: unset;
}
.s6 .swiper-slide span {
  position: absolute;
  left: 10px;
  bottom: 3px;
  color: #fff;
  font-size: 12px;
}

@media screen and (min-width: 768px) {
  .section6 {
    height: 100vh;
  }
  .s6 {
    width: 100%;
  }
  .s6 .title {
    margin-bottom: 8%;
  }
  .s6 h2 {
    font-size: 2rem;
  }
  .s6 p {
    font-size: 1.2rem;
  }
  .s6 .swiper-slide span {
    left: 15px;
    bottom: 8px;
    font-size: 14px;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section6 {
    height: 100%;
  }
  .s6 .title {
    margin-top: 5%;
    margin-bottom: unset;
  }
  .s6 h2 {
    margin-bottom: 1.5%;
  }
  .s6 p {
    font-size: 1.4rem;
  }
  .s6 .swiper1 {
    width: 100%;
    margin: 3.5% 0;
  }
  .s6 .swiper-nav {
    margin: 16px 0 5% 0;
  }
  .s6 .swiper-slide span {
    font-size: 16px;
  }
}

/*========================================================
                         區塊7
=========================================================*/
.section7 {
  background-color: #efefef;
  width: 100%;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.s7 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 90%;
  height: 100%;
}
.s7 .title {
  width: 100%;
}
.s7 h2 {
  font-size: 1.6rem;
}
.s7 p {
  font-size: 1rem;
  color: #4d4d4d;
  font-weight: 300;
}
.s7 span {
  color: #4d4d4d;
  font-size: 12px;
  display: block;
  margin-top: 20%;
}
.s7 .box {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(100px, max-content));
  gap: 15px;
}
.s7 .pic {
  position: relative;
}
.s7 .pic img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
}
.s7 .pic span {
  font-size: 12px;
  color: #fff;
  position: absolute;
  left: 8px;
  bottom: 3px;
}

@media screen and (min-width: 768px) {
  .section7 {
    height: 100vh;
  }
  .s7 {
    margin: unset;
  }
  .s7 h2 {
    font-size: 2rem;
  }
  .s7 p {
    font-size: 1.2rem;
  }
  .s7 span {
    font-size: 14px;
  }
  .s7 .pic span {
    font-size: 14px;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .section7 {
    height: 100vh;
  }
  .s7 {
    flex-direction: row;
    align-items: start;
    width: 80%;
    height: 80%;
  }
  .s7 .title {
    position: relative;
    margin-top: unset;
    margin-bottom: unset;
    margin-right: 3%;
    display: flex;
    flex-direction: column;
    width: 40%;
    height: 100%;
  }
  .s7 .box {
    align-self: center;
    height: 100%;
  }
  .s7 h2 {
    margin-bottom: 1.5%;
  }
  .s7 p {
    font-size: 1.4rem;
  }
  .s7 span {
    position: absolute;
    bottom: 0;
    left: 0;
    margin: unset;
    justify-self: end;
  }
}

@media screen and (min-width: 1500px) {
  .s7 .title {
    width: 35%;
  }
}

/*========================================================
                         預約賞屋
=========================================================*/
.reservation {
  background: url(../img/form-bg.png) no-repeat;
  background-position: bottom;
  background-size: cover;
  width: 100%;
  height: 100%;
  min-height: 800px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 15%;
}
.reservation .box {
  background-color: #fff;
  max-width: 800px;
  width: 90%;
  display: flex;
  flex-direction: column;
  padding: 45px 25px;
}
.form-title {
  width: 90%;
  color: #fff;
  text-align: center;
  margin-top: 20%;
}
.form-title h2 {
  font-size: 24px;
}
.step {
  width: 100%;
  margin: 10% 0;
}
#myform h2 {
  text-align: center;
  font-size: 24px;
}
#myform p {
  color: #4d4d4d;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  margin-bottom: 8%;
}

input,
select,
textarea {
  background-color: #fff;
  color: #000;
  outline-color: #002878;
  border-radius: unset;
  border: 0px solid #333;
  border-bottom: 1px solid #333;
  opacity: 0.6;
  padding-left: 5px;
}
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;
}
textarea {
  width: 100%;
  color: #000;
  border: 1px solid #333;
  margin: 15px 0;
  padding: 10px 0 0 10px;
}
::placeholder {
  color: rgba(0, 0, 0, 0.6) !important;
}
:-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.6) !important;
}
::-ms-input-placeholder {
  color: rgba(0, 0, 0, 0.6) !important;
}
.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: #333;
  margin-left: 3px;
  line-height: 1.8;
}
.reservation .form_check_txt a {
  text-decoration: none;
  color: #333;
}
.reservation .reg_btn {
  width: 100%;
  background-color: #002878;
  color: #fff;
  font-size: 16px;
  font-weight: 400;
  border: none;
  margin-top: 20px;
  padding: 10px 20px;
  line-height: normal;
  max-width: 160px;
}
.reservation .reg_disabled {
  cursor: no-drop;
  opacity: 0.6;
}
.reservation .reg_btn:hover {
  background-color: #214a9cc4;
  color: #ffffffc8;
  opacity: 1;
}
.reservation .reg_btn:focus {
  outline: unset;
}
.reservation .reg_disabled:hover {
  background-color: #214a9cc4;
  opacity: 0.6;
}
#myform .msgerror {
  color: #c40101;
  font-size: 14px;
  text-align: center;
  margin-top: 10px;
  margin-bottom: unset;
}

.input-error {
  border: 2px solid #ee7878 !important;
}

.input-error:focus {
  outline: 0;
  box-shadow: 0 0 10px 3px rgb(149 149 149) !important;
}

@media screen and (min-width: 768px) {
  .reservation {
    padding: unset;
  }
  .reservation .box {
    padding: 45px 55px;
  }
  .form-title {
    margin-top: 10%;
  }
  .form-title h2 {
    font-size: 32px;
  }
  .form-title p {
    font-size: 20px;
  }
  .step {
    width: 70%;
    margin: 10% 0;
  }
  #myform h2 {
    font-size: 28px;
  }
  #myform p {
    font-size: 14.4px;
    line-height: unset;
    margin-bottom: 5%;
  }
  /* 768px 以上改用 Grid 兩欄 */
  .reservation .input-block {
    display: grid;
    grid-template-columns: 1fr 1fr; /* 左右兩欄 */
    column-gap: 80px; /* 左右欄間距 */
    row-gap: 14px; /* 每列垂直間距 */
    position: relative; /* 給中線用的定位基準 */
    margin-bottom: unset;
  }
  .reservation .input-block::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%; /* 中線在中間 */
    width: 1px;
    height: 55%;
    background: #ddd;
  }
  /* 左側欄：所有可見 input / select 都排在第 1 欄 */
  .reservation .input-block > input:not([type="hidden"]),
  .reservation .input-block > select {
    grid-column: 1;
    width: 100%;
  }
  /* 右側欄：textarea 固定在第 2 欄 */
  .reservation .input-block > textarea {
    grid-column: 2;
    grid-row: 1 / span 3; /* 視需要調整要佔幾列高度 */
    width: 100%;
    height: 100%;
    margin: unset;
  }
  /* 勾選＋送出按鈕：跨兩欄，排在最下面 */
  .reservation .input-block .btn-block {
    grid-column: 1 / -1;
    margin-top: 10px;
  }
}

@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  .reservation .box {
    width: 70%;
    max-width: 1000px;
    padding: 55px 85px;
  }
  .form-title {
    width: 60%;
  }
}

@media screen and (min-width: 1500px) {
  .reservation {
    background-position: 0 70%;
  }
  .form-title {
    width: 55%;
  }
}

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

footer {
  width: 90%;
  height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  border-bottom: 1px solid #fff;
  margin: 10% 0;
  max-width: 800px;
}
footer .info {
  display: flex;
  flex-direction: column;
  margin-top: 8%;
  width: 100%;
  height: 50%;
  justify-content: space-between;
}
footer .info .ys {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 20px;
}
footer .info .ys img {
  object-fit: contain;
  height: 30px;
}
.f-p2 {
  margin-left: 2.2%;
}
footer p {
  padding-left: 5px;
  font-size: 14px;
  line-height: 24px;
  font-weight: 300;
}
footer a {
  color: #fff;
}
footer a:hover {
  color: #ffffffaa;
}
.side-btn {
  list-style: none;
  display: flex;
  justify-content: end;
  padding: unset;
  margin: 5% 0;
}
.side-btn li .icon {
  display: block;
  width: 25px;
  margin-right: 10px;
}
.side-btn li .icon img {
  width: 100%;
}
@media screen and (min-width: 768px) {
  footer {
    margin: 5% 0 10% 0;
  }
  footer .info {
    justify-content: start;
    gap: 20px;
  }
  footer .info .ys {
    flex-direction: row;
    gap: 20px;
  }
  .f-p2 {
    margin-left: unset;
    margin-top: 4px;
  }
  footer p {
    font-size: 16px;
    line-height: 28px;
  }
}
@media screen and (min-width: 1100px),
  screen and (min-width: 1024px) and (max-height: 650px) {
  footer {
    width: 70%;
    max-width: 1000px;
    margin: 2% 0 10% 0;
  }
}

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

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