/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Noto+Sans+TC:wght@100..900&display=swap');
html {
  font-size: 62.5%
}
p {
  line-height: 1.6
}
:root {
  --color-primary: #5a5756;
  --container-padding: 7rem;
  --section-margin: 22rem;
  --aside-width: 14vw;
  --circle-width: 130px;
}
@media screen and (max-width:1440px) {
  html {
    font-size: 50%
  }
}
@media screen and (max-width:1200px) {
  :root {
    --container-padding: 3rem;
    --section-margin: 11rem;
  }
  html {
    font-size: 37.5%
  }
}
@media screen and (max-width:575px) {
  :root {
    --section-margin: 6rem;
    --aside-width: 100%;
  }
  html {
    font-size: 38%
  }
}
body {
  color: var(--color-primary);
  font-size: 2.4rem;
  font-family:
    -apple-system, BlinkMacSystemFont, "PingFang TC", "PingFang SC", "Microsoft JhengHei", "Noto Sans TC", "Helvetica Neue", Arial, sans-serif;
  background-image: url("../images/mbg.jpg");
  background-repeat: repeat-y;
  background-size: 100% auto;
}
a {
  color: var(--color-primary);
}
.en-font {
  font-family: "Marion", "Cormorant Garamond", "Playfair Display", Georgia, serif;
}
.sw {
  display: none;
}
.fade-up, .fade-down, .fade-left, .fade-right, .fade-in {
  opacity: 0;
  visibility: hidden;
  will-change: transform, opacity;
}
a[class^="btn-"] {
  transition: all .3s;
  text-decoration: none;
}
.btn-b.en-font {
  /* trim both sides to the capital letters */
  text-box: trim-end text alphabetic;
}
.btn-b {
  color: #231815;
  font-size: 3.2rem;
  border-radius: 100px;
  border: 1px solid #231815;
  padding: 0.3em 0.65em 0.3em 0.85em;
  letter-spacing: 0.2em;
}
.btn-w {
  color: #fff;
  border: 1px solid #fff;
}
a[class^="btn-"]:hover {
  opacity: 0.6;
}
/* Header & nav 基本樣式 */
header {
  position: absolute;
  z-index: 10;
  top: 0;
  width: 100%;
}
aside {
  width: var(--aside-width);
  background-color: #fff;
  text-align: center;
  height: 100%;
  max-height: 100vh;
  position: fixed;
  flex-direction: column;
  top: 0
}
.aside-logo {
  display: block;
  padding: calc(var(--aside-width) * 0.3) calc(var(--aside-width) * 0.15) 0
}
.tagline {
  color: #231815;
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: clamp(1rem, 10vh, 7.5vw) auto auto;
  font-size: 2.6rem;
  text-align: left;
  letter-spacing: 0.2em;
}
.top-nav {
  display: flex;
  padding: 12rem var(--container-padding) 0;
  justify-content: flex-end;
  position: absolute;
  width: 100%;
  top: 0;
}
.top-nav.is-sticky {
  position: fixed;
  width: 100%;
  padding: 1.5rem var(--container-padding);
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.nav-links {
  display: inline-flex;
  gap: 8rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  display: block;
  white-space: nowrap;
  font-weight: 600
}
/* 漢堡 icon */
.hamburger {
  width: 28px;
  height: 22px;
  position: relative;
  display: none; /* 桌機隱藏，手機顯示 */
  cursor: pointer;
  z-index: 30
}
.hamburger-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: 3px;
  background: #fff;
  transition: transform 0.3s ease, opacity 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}
.hamburger-line:nth-child(1) {
  top: 0;
}
.hamburger-line:nth-child(2) {
  top: 50%;
  transform: translateY(-50%);
}
.hamburger-line:nth-child(3) {
  bottom: 0;
}
/* 轉成 X 的狀態 */
.hamburger.active .hamburger-line:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.hamburger.active .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.active .hamburger-line:nth-child(3) {
  bottom: auto;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}
main {
  margin-left: var(--aside-width);
  margin-top: 21.5rem;
  min-width: 0;
  overflow: hidden;
}
h2 {
  font-size: 5rem;
  margin-bottom: 1em;
}
h2.en-font {
  letter-spacing: 0.2em;
}
h3 {
  font-size: 3.6rem;
  margin-bottom: 1em;
  line-height: 1.4;
  font-weight: 400;
}
.btn {
  border-radius: 100px;
  border: 1px solid #231815
}
.content-block > h2, .content-block > h3, .content-block > p {
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}
/*hero */
.hero {
  position: relative;
  margin-bottom: var(--section-margin);
}
.hero-left {
  flex: 1;
  z-index: 2
}
.hero-right {
  flex: 0 0 78%;
  min-width: 0;
  overflow: hidden;
  background-color: #fff;
}
.hero-title {
  position: absolute;
  z-index: 2;
  font-size: 11.8rem;
  top: 20%;
  left: 6.1%;
  letter-spacing: 0.2em;
}
.hero-title span {
  display: block
}
.hero-title i {
  font-style: normal;
  color: #fff;
}
.subline {
  text-align: center;
  color: #fff;
  position: absolute;
  width: 100%;
  bottom: 0;
  left: 0;
  z-index: 5;
  font-size: 14px;
  letter-spacing: 0.3em;
}
/*about */
.about {
  padding: 0 var(--container-padding) 0;
  scroll-margin-top: 100px;
  gap: 10rem;
}
.about-left {
  flex: 0 1 43%;
  min-width: 0;
}
.about-right {
  flex: 1;
  flex-direction: column;
  justify-content: space-between
}
.about-figures {
  flex-direction: column;
  gap: 3rem;
  margin-top: 9rem;
}
.about-figure {
  align-items: center;
  gap: 3rem;
}
.about-figure p {
  font-size: 1.8rem;
  flex: 1;
}
.about-figure-circle {
  flex-direction: column;
  color: #fff;
  padding: 1rem 3rem;
  font-size: 3.6rem;
  flex: 0 0 45%
}
.about-figure-circle .en-font {
  font-size: 3rem;
}
.about-figure:first-child .about-figure-circle {
  background-color: #a39f9d
}
.about-figure:last-child .about-figure-circle {
  background-color: #cbc5c1
}
.about-slide {
  height: 100%;
}
/*portfolio */
.portfolio {
  margin-top: var(--section-margin);
}
.divider {
  border-bottom: 1px solid var(--color-primary);
  margin: 1rem var(--container-padding) 3rem;
}
.case-heading {
  font-size: 7rem;
  font-weight: bold;
  margin: calc(var(--section-margin) * 0.5) auto
}
.case-title {
  flex: 0 0 21%;
  display: flex;
  align-items: center;
  justify-content: center
}
.case-title h5 {
  font-size: 3rem;
  line-height: 1;
  display: flex;
  align-items: center
}
.case-title h5:before {
  content: "";
  display: inline-block;
  width: 1.1em;
  height: 1.1em;
  background-image: url("../images/ico-logo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 0.08em;
}
.slide-btn {
  display: block;
  text-decoration: none;
  color: #fff;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
  margin-top: 2.5rem;
}
.slide-btn span {
  display: block;
  position: relative;
  padding: 0.25em;
  z-index: 2;
}
.slide-btn:before {
  content: "";
  background: linear-gradient(to left, #5a575600, #5a575600 10%, #5a5756ff);
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 100%;
  display: block;
  transition: all .3s;
  z-index: 1;
  transform: translateX(-10%)
}
.slide-btn:hover:before {
  transform: translateX(0)
}
.case {
  margin-bottom: 18rem;
}
/*
.case-01 {
  flex-direction: row-reverse;
  margin-bottom: 18rem;
}
*/

.case:nth-child(even) {
  flex-direction: row-reverse;
  margin-bottom: 18rem;
}
.case-figures {
  margin-top: calc(var(--section-margin) * 0.5);
  justify-content: center;
  column-gap: 11rem;
}
.case-figure {
  align-items: center;
  gap: 3rem
}
.case-figure-circle {
  align-items: center;
  justify-content: center;
  border-radius: 500px;
  aspect-ratio: 1 / 1;
  flex: 0 0 13vw;
  border: 1px solid var(--color-primary);
  font-size: 3.6rem;
  letter-spacing: 0.1em;
  font-weight: bold;
  padding: 0.5em;
}
.case-figure p {
  font-size: 2.2rem;
  flex: 1;
  white-space: nowrap;
}
.case-banner {
  margin: calc(var(--section-margin) * 0.5) var(--container-padding) auto;
  position: relative;
}
.case-banner img {
  width: 100%;
  height: auto
}
.case-banner span {
  position: absolute;
  right: 1em;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  font-weight: bold;
  letter-spacing: 0.25em;
  font-size: 2.8rem;
}
/*service */
.service {
  margin-top: var(--section-margin);
  margin-bottom: var(--section-margin);
  padding-bottom: 6rem;
}
.service-figures {
  margin: calc(var(--section-margin) * 0.5) calc(var(--container-padding) * 3) auto;
  justify-content: space-between;
  position: relative;
}
.service-figures > i {
  display: block;
  width: 100%;
  border-bottom: 3px solid #a39f9d;
  position: absolute;
  top: 50%;
  left: 0;
}
.service-figure {
  flex: 0 0 17%;
  position: relative;
  z-index: 2;
  margin: 0;
}
.service-figure .img-wrap {
  aspect-ratio: 1 / 1;
  border-radius: 500px;
  padding: 1.5em;
  background-color: #cbc5c1;
  justify-content: center;
}
.service-figure:nth-child(even) .img-wrap {
  background-color: #a39f9d
}
.service-figure figcaption {
  font-size: 3.4rem;
  position: absolute;
  bottom: -7rem;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap
}
/*contact */
.contact {
  scroll-margin-top: 100px;
}
.contact-h {
  margin: 14rem auto auto;
  padding: 0 var(--container-padding);
}
.contact h4 {
  font-size: 3rem;
  border: 2px solid #fff;
  color: #fff;
  padding: 1em;
  font-weight: bold;
}
.contact > div.text-center {
  padding: 0 var(--container-padding);
}
.contact .form-wrap {
  margin-top: 11rem;
  padding: calc(var(--container-padding) * 2) var(--container-padding);
  background-image:
    linear-gradient(to right, #150f0e99 0%, #150f0e99 75%, #150f0e00 100%), url("../images/form-bg.jpg");
  background-size: cover;
  display: flex;
  align-items: center;
  column-gap: 12rem;
  font-size: 3.3rem;
  position: relative
}
.contact form {
  flex: 1;
  display: flex;
  gap: 1em;
  flex-direction: column;
}
.contact .form-group {
  display: flex;
  gap: 0.8em;
  max-width: 55rem;
}
.contact .form-group.fullwidth {
  flex-direction: column;
  max-width: none;
}
.contact .form-group label {
  color: #fff;
  flex: 0 0 auto;
  white-space: nowrap
}
.contact .form-group label + * {
  flex: 1;
  padding: 0;
  border: 0
}
/*footer */
footer {
  padding: 6rem 12rem;
}
.footer {
  align-items: center;
  justify-content: space-between;
  gap: 7rem;
}
.ft-logo {
  flex: 0 1 20rem;
}
.contact-inf {
  list-style: none;
  padding: 0;
  margin: 0;
}
.social {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 3.5rem;
}
.social img {
  width: 100%;
  max-width: 7.6rem;
  aspect-ratio: 1/ 1;
  object-fit: contain;
  transition: all .3s
}
.social a {
  display: block
}
.social a:hover img {
  transform: scale(0.9)
}
/* swiper */
.swiper {
  width: 100%;
}
.swiper-slide {
  text-align: center;
  font-size: 18px;
  background: #444;
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-slide img {
  display: block;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 1.6/1
}
.swiper-button-prev, .swiper-button-next {
  width: calc(var(--section-margin) * 0.5);
  height: calc(var(--section-margin) * 0.5);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}
.swiper-button-prev {
  background-image: url('../images/btn-prev.svg');
  left: 20px;
}
.swiper-button-next {
  background-image: url('../images/btn-next.svg');
  right: 20px;
}
.swiper-button-prev::after, .swiper-button-next::after {
  display: none;
}
.swiper-pagination-bullet-active {
  background: #fff
}
/*inner page */
.entry-title {
  background: linear-gradient(to right, #5a575600, #5a575600 10%, #5a5756ff);
  color: #fff;
  font-size: 5rem;
  padding: 0.2em var(--container-padding);
  text-align: right;
  letter-spacing: 0.1em;
}
.btn-act {
  text-align: center;
  margin: 8rem auto
}
/*portfolio */
.works-loop {
  gap: 3rem;
  flex-wrap: wrap;
  list-style: none;
  padding: var(--container-padding);
  padding-bottom: 0
}
.works-loop li {
  flex: 0 1 calc((100% - 2 * 3rem) / 3);
}
.works-loop a {
  display: block;
  text-decoration: none;
  position: relative;
}
.works-loop span {
  display: block;
  position: relative;
  overflow: hidden
}
.works-loop span img {
  transition: all .3s;
  aspect-ratio: 1.37 / 1;
  object-fit: cover;
  width: 100%
}
.works-loop a:hover span img {
  transform: scale(1.05)
}
.works-loop h4 {
  margin: auto;
  text-align: center;
  font-size: 3rem;
  margin-top: 1em;
}
.works-loop .uncover {
  pointer-events: none;
}
.works-loop .uncover span:after {
  background-color: #00000080;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  content: '諮詢中';
  color: #fff;
}
/*service */
.services-loop {
  flex-wrap: wrap;
  justify-content: space-between;
  padding: var(--container-padding) calc(var(--container-padding) * 1.5) 0;
  row-gap: 4rem;
}
.services-loop > div {
  flex: 0 1 33%;
  display: flex;
  flex-direction: column;
  row-gap: 4rem;
  justify-content: space-between;
  position: relative;
  padding: 0 4rem;
}
.services-loop > div:before {
  content: "";
  width: 1px;
  height: 60%;
  top: 0;
  left: 0;
  position: absolute;
  background-color: var(--color-primary);
}
.services-loop i {
  font-size: 8.7rem;
  font-style: normal;
  line-height: 1
}
.services-loop h3 {
  font-size: 4rem;
  line-height: 1.1
}
.services-loop h3 em {
  display: inline-block;
  margin-right: 0.3em;
}
.services-loop h3 strong {
  font-weight: normal;
  font-size: 2.8rem;
  display: inline-block;
}
.services-loop ul {
  font-size: 1.5rem;
  margin-top: 4rem;
}
.services-loop img {
  width: 66.6%;
  object-fit: cover;
  aspect-ratio: 1/1;
}
/*post */
.post-container {
  padding: 0 calc(var(--container-padding) * 1.7)
}
.photo-portrait {
  aspect-ratio: 0.7/1;
  object-fit: cover;
  width: 25vw;
}
.post-top {
  background-color: #a39f9d;
  color: #fff;
  justify-content: space-between;
  align-items: center;
  margin-top: 5rem;
  letter-spacing: 0.2em;
  padding-bottom: 5rem;
  gap: 5rem;
}
.article-content {
  flex: 0 1 auto;
  display: flex;
  flex-direction: column;
  gap: 5rem;
}
.post-photo {
  flex: 0 1 auto;
}
.post-cover img {
  margin-top: -2.5rem;
}
.post-title {
  font-size: 5rem;
  font-weight: bold;
}
.post-top p {
  font-size: 2.1rem;
}
.post-top p.post-sub-title {
  font-size: 2.8rem;
  font-weight: bold;
}
.post-sub-title span {
  display: block
}
.post-sub-title .en-font {
  letter-spacing: 0.1em;
}
.post-mid {
  margin-top: 24.5rem;
  flex-direction: column;
  gap: 10rem;
}
.post-article {
  justify-content: space-between;
  align-items: center;
  gap: 15vw
}
/*
.post-article:first-child {
  flex-direction: row-reverse
}
*/
.post-article:nth-child(odd) {
  flex-direction: row-reverse
}
.article-heading {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 3rem;
  justify-content: flex-start;
}
.article-heading:after {
  content: "";
  display: block;
  width: 15px;
  height: 100%;
  min-height: 96px;
  align-self: stretch;
  background-color: #a39f9d;
  order: 2
}
.article-heading h2 {
  font-size: 3.8rem;
  flex: 0 0 auto;
  margin: 0;
}
.article-heading h3 {
  font-size: 2.8rem;
  flex: 0 0 auto;
  margin: 0;
  order: 3
}
.post-gallery {
  margin-top: 10rem;
  background: linear-gradient(to bottom, transparent calc(100% - 200px), #a39f9d calc(100% - 200px));
}
.post-bottom {
  background-color: #a39f9d;
  color: #fff;
  padding-top: 5rem;
  padding-bottom: 5rem;
}
.post-bottom .case-figure-circle {
  border-color: #fff;
  white-space: nowrap
}
/*loading */
#global-loader {
  position: fixed;
  inset: 0;
  background: #000; /* 可換色 */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  pointer-events: auto;
}
.loader-inner {
  color: #fff;
  font-size: 2rem;
  letter-spacing: 2px;
}
.loader-logo {
  margin: 5% auto;
  border: 1rem solid #5a5756;
  border-top: 1rem solid #fff;
  border-radius: 100%;
  width: 80px;
  height: 80px;
  animation: spining-loader 1s linear infinite;
}
@keyframes spining-loader {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
.slide-btn .en-font, .btn-b.en-font {
  font-family: serif
}
/* 暫時啟用項目 */
.social li {
  display: none
}
.social li:first-child {
  display: block
}