@charset "UTF-8";
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@100..900&family=Noto+Serif+TC:wght@200..900&display=swap");
:root {
  font-size: clamp(16px, 2.8vw, 18px);
}

h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 600;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 1.7rem);
  font-weight: 600;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.35rem);
  font-weight: 500;
}

h4 {
  font-size: clamp(1.2rem, 2vw, 1.3rem);
  font-weight: 500;
}

h5 {
  font-size: clamp(1.125rem, 1.7vw, 1.2rem);
  font-weight: 400;
}

h6 {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
}

p,
a,
span {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.6;
}

small {
  font-size: clamp(0.875rem, 1.3vw, 1rem);
  font-weight: 400;
}

li {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.5;
}

button,
input,
textarea,
select {
  font-size: clamp(1rem, 1vw, 1.125rem);
  font-weight: 400;
  line-height: 1.4;
}

body {
  font-family: "Noto Serif TC", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

/* CSS */
[data-aos=blur-up] {
  opacity: 0;
  filter: blur(4px);
  transform: translateY(10px);
  transition: all 0.1s ease;
}

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

h2 {
  text-align: center;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  h2 {
    margin-bottom: 2rem;
  }
}

.split {
  display: inline-block;
  overflow: hidden;
  text-shadow: 0 1.3em currentColor; /* 和 JS 位移一致 */
  will-change: transform;
  padding: 1 1rem;
}

.char {
  display: inline-block;
  position: relative;
}

section {
  padding: 8rem 0rem;
}
@media (max-width: 768px) {
  section {
    padding: 4rem 0;
  }
}

a {
  text-decoration: none;
  color: #6a396b;
}

img {
  -o-object-fit: cover;
     object-fit: cover;
}

.all-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  -o-object-fit: cover;
     object-fit: cover;
  z-index: -1;
  opacity: 0.5;
  background: url("../images/assets/bg.avif") repeat;
  background-size: 500px 500px;
}
.all-bg img {
  width: 100%;
  height: 100%;
}

.cta-link {
  position: fixed;
  right: 1rem;
  bottom: 2rem;
  z-index: 999;
  flex-direction: column;
  display: flex;
  gap: 1rem;
}
@media (max-width: 768px) {
  .cta-link {
    bottom: 1rem;
    right: 0.5rem;
  }
}
.cta-link .tel {
  position: relative;
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  outline: none;
}
.cta-link .tel.dropdown-toggle::before {
  display: none;
}
.cta-link .tel .name {
  position: absolute;
  top: -0.8rem;
  right: -0.8rem;
  border: 1.5px solid white;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
  border-radius: 100%;
}
.cta-link svg {
  width: 50px;
  fill: #6a396b;
}
@media (max-width: 768px) {
  .cta-link svg {
    width: 43px;
  }
}
.cta-link .dropdown-menu {
  margin-right: 0.25rem;
  margin-left: 0;
}

.navbar {
  background: #fff;
  position: fixed;
  top: 0;
  width: 100%;
  left: 0;
  z-index: 1049;
  transition: 0.5s;
}
.navbar .navbar-brand {
  transition: 0.5s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.navbar .navbar-brand img {
  width: 250px;
  transition: 0.5s;
}
@media (max-width: 768px) {
  .navbar .navbar-brand img {
    width: 150px;
  }
}
.navbar .navbar-collapse {
  flex-grow: 0;
}
@media (max-width: 768px) {
  .navbar .navbar-collapse {
    padding-top: 1rem;
  }
}
.navbar .navbar-collapse .navbar-nav {
  gap: 1.5rem;
}
@media (max-width: 768px) {
  .navbar .navbar-collapse .navbar-nav {
    gap: 0.5rem;
  }
}
.navbar .navbar-collapse .navbar-nav .nav-item.cta {
  background: #6a396b;
}

.parallax-fixed {
  position: relative;
  height: 100vh; /* 可自行調整高度 */
  overflow: hidden;
}
.parallax-fixed .parallax-img {
  position: absolute;
  top: -15%;
  left: 0;
  width: 100%;
  height: 120%;
}
.parallax-fixed .parallax-img img {
  width: 100%;
  height: 100%;
}

.parallax-dynamic {
  position: relative;
  /* 高度交給圖片本身決定 */
}
.parallax-dynamic .parallax-media {
  overflow: hidden;
  line-height: 0; /* 移除 img 作為 inline 元素的行高縫隙 */
}
.parallax-dynamic .parallax-media img {
  display: block;
  width: 100%;
  height: auto;
  /* 關鍵：先往上、並放大一點，避免上下兩端出現空白 */
  transform: translateY(-12%) scale(1.12);
  transform-origin: center;
  will-change: transform;
}

#hero {
  width: 100%;
  height: 60vh;
  position: relative;
  overflow: hidden;
  margin-top: 117.91px;
}
@media (max-width: 768px) {
  #hero {
    margin-top: 79.2px;
    height: 40vh;
  }
}
#hero .swiper {
  position: absolute;
  top: -10%; /* 往上預留位移空間 */
  left: 0;
  width: 100%;
  height: 120%;
  will-change: transform;
}
#hero .swiper .swiper-wrapper .swiper-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  transition: transform 8s ease; /* 控制漸進放大 */
}
#hero .swiper .swiper-slide-active img {
  transform: scale(1.1); /* 只要變 active 就開始放大 */
}

.cta-box {
  position: relative;
  z-index: 20;
  margin-top: -2rem;
}
@media (max-width: 768px) {
  .cta-box {
    margin-top: 2rem;
  }
}
.cta-box .cta-content {
  background: white;
  border-left: 5px solid #6a396b;
}
.cta-box .cta-item {
  display: flex;
  height: 100%;
  align-items: center;
  gap: 1rem;
  padding: 2rem 1.5rem;
  border-right: 1px solid rgba(106, 57, 107, 0.3);
  transition: 1s;
}
.cta-box .cta-item h3 {
  display: block;
  color: #6a396b;
  transition: 1s;
}
.cta-box .cta-item .icon-box {
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #6a396b;
  border-radius: 100%;
  flex-shrink: 0;
  transition: 1s;
}
.cta-box .cta-item .icon-box i {
  font-size: 2rem;
  transition: 1s;
  color: white;
}

#about .about-content {
  position: relative;
}
#about .about-content img {
  width: 100%;
  background: #543a54;
}
@media (max-width: 768px) {
  #about .about-content img {
    height: 600px;
  }
}
#about .about-content .text {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  padding: 0 5rem;
}
@media (max-width: 768px) {
  #about .about-content .text {
    padding: 0 2rem;
  }
}

#services {
  position: relative;
}
#services::after {
  content: "";
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: url("../images/services/bg.avif") no-repeat;
  background-size: cover;
  z-index: -1;
  opacity: 0.5;
  filter: brightness(1);
}
@media (max-width: 768px) {
  #services::after {
    background: #f8f1e1;
    opacity: 0.8;
  }
}
#services .service-card {
  background: white;
  padding: 2rem;
  text-align: center;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
}
#services .service-card svg {
  width: 60%;
  stroke: #dcbb6f;
  fill: #dcbb6f;
}
@media (max-width: 768px) {
  #services .service-card svg {
    width: 35%;
  }
}
#services .service-card h3 {
  border-top: 1px solid #dcbb6f;
  margin-top: 1rem;
  padding-top: 1rem;
}

.auto-carousel .swiper {
  width: 100%;
  transform: rotate(0deg);
  position: relative;
}
.auto-carousel .swiper .swiper-wrapper {
  transition-timing-function: linear !important; /* 平滑線性移動 */
}
.auto-carousel .swiper .swiper-slide {
  width: 600px;
  aspect-ratio: 3/2;
}
@media (max-width: 768px) {
  .auto-carousel .swiper .swiper-slide {
    width: 300px;
  }
}
.auto-carousel .swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

#works .nav-pills .nav-link.active,
#works .nav-pills .show > .nav-link {
  background: #6a396b;
}
#works .nav-pills .nav-link {
  color: #ff6b00;
}

@media (max-width: 768px) {
  #contact {
    padding-bottom: 1rem;
  }
}
#contact .contact-box {
  display: flex;
  gap: 1rem;
  background: white;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
  margin-bottom: 2rem;
}
@media (max-width: 768px) {
  #contact .contact-box {
    margin-bottom: 1rem;
  }
}
#contact .contact-box:last-child {
  margin-bottom: 0;
}
#contact .contact-box .icon-box {
  background: #6a396b;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 100%;
}
#contact .contact-box .icon-box i {
  color: white;
  font-size: 2rem;
}
#contact .contact-box a {
  color: #6a396b;
  font-weight: 600;
}
#contact .contact-box span {
  display: block;
  color: gray;
  margin-top: 0.5rem;
}

footer {
  padding-bottom: 1rem;
}
footer a {
  text-decoration: underline;
}/*# sourceMappingURL=all.css.map */