@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400..900&family=Lora:ital,wght@0,400..700;1,400..700&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+TC:wght@200..900&family=Noto+Serif:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');
/*.lora-<uniquifier> {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
}*/

/*
Bickham Script Pro 3 Regular
font-family: "bickham-script-pro-3", sans-serif;
font-weight: 400;
font-style: normal;
Bickham Script Pro 3 Bold
font-family: "bickham-script-pro-3", sans-serif;
font-weight: 700;
font-style: normal;
*/
.Bickham-Script-Pro-3-Regular {
  font-family: "bickham-script-pro-3", sans-serif;
  font-weight: 400;
  font-style: normal;
}

.lora-Regular {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

.lora-Bold {
  font-family: "Lora", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
}

body,
html {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  position: relative;
  width: 100%;
  height: auto;
  min-height: 100%;
  margin: 0;
  padding: 0;
  --vw-base: calc(100vw / 1920);
  background-color: #f3eee7;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  padding: 0;
}

a:link,
a:visited,
a:hover,
a:active {
  text-decoration: none;
}

button,
input,
textarea,
select,
option {
  margin: 0;
  padding: 0;
  -webkit-appearance: none;
  -webkit-border-radius: 0px;
  border-radius: 0;
  -moz-appearance: none;
  appearance: none;
  outline: none;
}

ul,
ol {
  /* list-style: none; */
  padding: 0;
  padding-left: 1.5em;
  margin: 0;
}

.acc-inner-txt ol ul {
  list-style-type: disc;
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: relative;
  display: block;
}

.container {
  width: 100%;
  height: auto;
  position: relative;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease;
}

.no-scroll {
  overflow: hidden;
  /* 禁止滚动条 */
  touch-action: none;
  /* 禁止移动端触摸滚动 */
  position: fixed;
  /* 防止页面跳动 */
  width: 100%;
  height: 100vh;
}

.opacity {
  opacity: 1;
  position: relative;
  visibility: visible;
}

/*影片區*/
.main1 {
  position: relative;
  width: 100%;
  height: calc(950 * var(--vw-base));
  background-color: #f3eee7;
  /* 確保超出容器的部分被隱藏，達成裁切感 */
  overflow: hidden;
}

/* 這裡維持你的動畫觸發 */
.main1.active {
  animation: m1-bg-motion 1.5s forwards;
  /* 移除 alternate 避免來回彈跳，除非你原本就需要 */
  animation-delay: 0s;
  animation-timing-function: ease-out;
}

.m1-bg {
  width: 100%;
  /* 初始高度與容器一致 */
  height: calc(950 * var(--vw-base));
  position: relative;
  margin: 0 auto;
  z-index: 98;
  overflow: hidden;
  /* 重要：裁切關鍵 */
}

/* 動畫改為縮減容器高度 */
@keyframes m1-bg-motion {
  0% {
    height: calc(950 * var(--vw-base));
  }

  100% {
    height: calc(760 * var(--vw-base));
  }
}

.m1-bg img {
  object-fit: cover;
  width: 100%;
  /* 關鍵：高度固定為原始高度，不要隨父層縮放 */
  height: calc(950 * var(--vw-base));
  position: absolute;
  top: 0;
  left: 0;
  display: block;
}


.m1-txt {
  width: 100%;
  height: calc(520*var(--vw-base));
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 105;
  overflow: hidden;
}

.m1-t1 {
  color: rgba(255, 255, 255, 0.2);
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: calc(48 * var(--vw-base));
  line-height: 3vw;
  letter-spacing: 0em;
  transform: scaleX(0.95);
  transform-origin: left center;
  writing-mode: vertical-rl;
  display: block;
  position: absolute;
  left: 12.6vw;
  top: 0.4vw;
  width: calc(50 * var(--vw-base));
  height: calc(260 * var(--vw-base));
  overflow: hidden;
  opacity: 0;
  letter-spacing: 0.1vw;
}

.m1-t2 {
  color: rgba(255, 255, 255, 0.6);
  line-height: 3vw;
  font-size: calc(22 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.05em;
  font-weight: 600;
  transform: scaleX(0.95);
  transform-origin: left center;
  display: block;
  position: absolute;
  left: 12.75vw;
  top: 13.3vw;
  width: calc(120 * var(--vw-base));
  height: calc(50 * var(--vw-base));
  overflow: hidden;
  opacity: 0;
}

.m1-t1.active {
  animation: m1-t1-ani 1.5s ease;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

.m1-t2.active {
  animation: m1-t2-ani 1.5s ease;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes m1-t1-ani {
  0% {
    left: 11.65vw;
    transform: scaleX(0.95);
    opacity: 0;
  }

  100% {
    left: 12.65vw;
    transform: scaleX(0.95);
    opacity: 1;
  }
}

@keyframes m1-t2-ani {
  0% {
    left: 13.75vw;
    transform: scaleX(0.95);
    opacity: 0;
  }

  100% {
    left: 12.75vw;
    transform: scaleX(0.95);
    opacity: 1;
  }
}

.m1-line {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(255, 255, 255, .35);
  position: absolute;
  left: 12.7vw;
  top: 0.4vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
}

.m1-line.active {
  animation: m1-line 1.5s linear;
  animation-delay: 2s;
  animation-fill-mode: forwards;
}

@keyframes m1-line {
  0% {
    height: calc(0*var(--vw-base));
  }

  100% {
    height: calc(665*var(--vw-base));
  }
}

.m1-line::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);

  transform-origin: top;
  transform: scaleY(0);
}

@keyframes drawLine {
  0% {
    transform: scaleY(0);
    opacity: 1;
  }

  70% {
    transform: scaleY(1);
    opacity: 1;
  }

  100% {
    transform: scaleY(1);
    opacity: 0;
    /* 畫完淡出再重來 */
  }
}

.m1-line.active::after {
  animation: drawLine 3s ease-in-out infinite;
  animation-delay: 3s;
}

.bottom-line {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(137, 126, 121, 0.5);
  z-index: 10;
}

.main2 {
  position: relative;
  width: 100%;
  height: calc(950 * var(--vw-base));
  background-color: #f3eee7;
  overflow: hidden;
}

.m2-txt {
  position: absolute;
  top: calc(332*var(--vw-base));
  left: calc(315*var(--vw-base));
  width: calc(480*var(--vw-base));
  z-index: 10;
}

.m2-txt-title {
  width: 100%;
  overflow: hidden;
  color: #756b66;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-weight: 700;
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.1em;
  transform: scaleX(0.95);
  transform-origin: left center;
  display: block;
}

.m2-txt-stitle {
  width: 100%;
  overflow: hidden;
  color: #756b66;
  font-size: calc(18 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-weight: 700;
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.1em;
  margin-bottom: 1vw;
}

.m2-txt-cent {
  width: 100%;
  overflow: hidden;
  color: #756b66;
  font-size: calc(16 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.1em;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
}

.m2-scale {
  display: inline-block;
  transform: scaleX(0.95);
  transform-origin: left center;
}

.m2-line1 {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  left: 12.7vw;
  top: 0vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
  z-index: 10;
}

.m2-line1.active {
  animation: m2-1-line 1s linear;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}

@keyframes m2-1-line {
  from {
    height: 0
  }

  to {
    height: calc(950*var(--vw-base));
  }
}

.m2-pic {
  position: absolute;
  top: 0;
  left: calc(1045*var(--vw-base));
  width: calc(644*var(--vw-base));
  height: 0%;
  z-index: 1;
  overflow: hidden;
  background-color: #000;
}


.m2-pic.active {
  animation: m2-pic 1.3s linear 0.2s;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}

@keyframes m2-pic {
  from {
    height: 0;
  }

  to {
    height: 100%;
  }
}

.m2-pic-clip {
  position: relative;
  height: calc(950*var(--vw-base));
  width: calc(644*var(--vw-base));
  background-color: #000;
  scale: 1.06;
  opacity: 0;
  overflow: hidden;
}

.m2-pic-clip img {
  position: absolute;
  top: 0;
  left: 0;
  width: 120%;
  height: 110%;
  object-fit: cover;
}

.m2-pic.active .m2-pic-clip {
  animation: m2-pic-clip 1.5s ease-in-out 0.2s forwards;
}

@keyframes m2-pic-clip {
  0% {
    scale: 1.06;
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    scale: 1;
    opacity: 1;
  }
}

.m2-en {
  position: absolute;
  top: calc(834*var(--vw-base));
  left: calc(1708*var(--vw-base));
  /* width: calc(480*var(--vw-base)); */
  z-index: 10;
  opacity: 0.25;
}

.m2-en .en1 {
  position: relative;
  color: #756b66;
  font-size: calc(34 * var(--vw-base));
  line-height: calc(50 * var(--vw-base));
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  transform-origin: left center;
  display: block;
}

.m2-en .en2 {
  position: relative;
  color: #756b66;
  font-size: calc(34 * var(--vw-base));
  line-height: calc(50 * var(--vw-base));
  font-family: 'Lora', serif;
  font-weight: 600;
  letter-spacing: 0.1em;
  transform-origin: left center;
  display: block;
}

.main3 {
  position: relative;
  width: 100%;
  /* min-height: calc(950*var(--vw-base)); */
  overflow-y: visible;
}

.m3-line1 {
  position: absolute;
  left: 69vw;
  top: 0;
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(137, 126, 121, 0.5);
  overflow: hidden;
  z-index: 100;
  animation: m3-1-line 1s linear;
  animation-delay: 0s;
  animation-fill-mode: forwards;
}

@keyframes m3-1-line {
  from {
    height: 0
  }

  to {
    height: 100%;
  }
}

.m3-qa-ls {
  position: relative;
  width: 69vw;
  overflow: hidden;
}

.m3-qa-box {
  position: relative;
  width: 100%;
  /* transition: all 0.5s; */
  max-height: calc(180*var(--vw-base));
  transition: max-height ease 1s;
}

.m3-qa-box.active {
  max-height: 80vw;
}

.m3-qa-box:nth-child(odd) {
  background-color: #f3eee7;
}

/* 雙數項 (2, 4, 6...) 使用你指定的 eae0d7 */
.m3-qa-box:nth-child(even) {
  background-color: #eae0d7;
}

.m3-qa-ele {
  position: relative;
  width: 100%;
  transition: transform ease 0.5s;
}

.m3-qa-box:hover .m3-qa-ele {
  transform: translateY(calc(-35 * var(--vw-base)));
}

.m3-qa-box.active:hover .m3-qa-ele {
  transform: translateY(calc(0 * var(--vw-base)));
}


.m3-qa-box:nth-child(odd) .m3-qa-ele {
  background-color: #f3eee7;
}

/* 雙數項 (2, 4, 6...) 使用你指定的 eae0d7 */
.m3-qa-box:nth-child(even) .m3-qa-ele {
  background-color: #eae0d7;
}

.m3-ques {
  position: relative;
  height: calc(180*var(--vw-base));
  box-sizing: border-box;
  padding: calc(50*var(--vw-base)) calc(90*var(--vw-base)) 0 calc(90*var(--vw-base));
  display: flex;
  justify-content: space-between;
  transition: all 0.5s;
}

.m3-ques-line {
  position: absolute;
  left: 50%;
  top: calc(129*var(--vw-base));
  transform: translateX(-50%);
  width: calc(1146*var(--vw-base));
  height: 1px;
  background-color: rgba(137, 126, 121, 0.5);
}

.m3-ques-title {
  color: #756b66;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(40 * var(--vw-base));
  font-weight: 700;
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.2em;
}

.m3-ques-num {
  position: relative;
  width: calc(184*var(--vw-base));
  height: calc(40 * var(--vw-base));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #756b66;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-weight: 600;
  font-family: 'Lora', serif;
  letter-spacing: 0.1em;
  border: 1px solid rgba(137, 126, 121, 0.5);
}


.m3-acc {
  position: relative;
  width: 100%;
  /* display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 1s; */
  overflow: hidden;
  /* transition: all ease 1s; */
  max-height: calc(50*var(--vw-base));
  transition: max-height ease 1.4s;
}

.m3-qa-box.active .m3-acc {
  /* grid-template-rows: 1fr; */
  max-height: 80vw;

}

.m3-acc-content {
  position: relative;
  width: 100%;
  box-sizing: border-box;
  padding: calc(0*var(--vw-base)) calc(90*var(--vw-base)) calc(0*var(--vw-base)) calc(90*var(--vw-base));
  overflow: hidden;
  /* color: #756b66;
  font-size: calc(16*var(--vw-base));
  font-weight: 700;
  line-height: calc(30*var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.2em; */
  transition: all 0.5s;
}

.m3-acc-inner {
  position: relative;
  width: 100%;
  padding-bottom: calc(70*var(--vw-base));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: calc(44*var(--vw-base));
}

.m3-qa-box:not(:last-child):hover {
  /* transform: translateY(calc(-20 * var(--vw-base))); */
}


.m3-qa-box.active:hover {
  /* transform: translateY(calc(0*var(--vw-base))); */
}

.acc-inner-txt {
  position: relative;
  width: 100%;
  height: auto;
  color: #756b66;
  font-size: calc(16*var(--vw-base));
  font-weight: 400;
  line-height: calc(30*var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.1em;
  text-align: justify;
}

.acc-inner-pic {
  position: relative;
  width: 100%;
  height: auto;
}

.acc-inner-title {
  color: #756b66;
  font-size: calc(18 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-weight: 600;
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.2em;
}

.acc-inner-detail {
  position: relative;
  display: inline-block;
  color: #756b66;
  font-size: calc(16 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-weight: 300;
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.2em;
  box-sizing: border-box;
  padding-left: calc(30*var(--vw-base));
}

.acc-inner-numlist {
  list-style: none;
  /* 隱藏預設數字 */
  padding: 0;
  counter-reset: num-count;
  /* 重置計數器 */
  display: flex;
  flex-direction: column;
  gap: calc(0 * var(--vw-base));
}

.acc-inner-numlist>li {
  display: flex;
  align-items: flex-start;
  /* 讓數字對齊第一行文字 */
  counter-increment: num-count;
  /* 數字遞增 */
}

.acc-inner-numlist>li::before {
  content: counter(num-count) ".";
  /* 自動顯示數字與句點 */
  margin-right: calc(15*var(--vw-base));
  /* 這裡就是你想要的「間距」 */
  flex-shrink: 0;
}

.acc-inner-dotlist {
  list-style: none;
  /* 移除預設點點 */
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: calc(0 * var(--vw-base));
}

.acc-inner-dotlist li {
  display: flex;
  align-items: flex-start;
  /* 確保圓點對齊第一行文字 */
}

.acc-inner-dotlist li::before {
  content: "•";
  /* 這裡填入你想要的圓點符號 */
  margin-right: calc(15 * var(--vw-base));
  /* 與數字列表相同的間距 */
  flex-shrink: 0;

  /* 為了讓點點看起來更精緻，可以調整大小與垂直對齊 */
  font-size: 1.2em;
  line-height: 1;
  /* 避免圓點撐開行高 */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.5em;
  /* 這裡的高度建議設為跟文字行高接近，讓點點自然置中 */
}

.acc-li-content {
  flex: 1;
  /* 佔滿右側空間 */
  display: flex;
  flex-direction: column;
}

.main4 {
  position: relative;
  width: 100%;
  height: calc(497 * var(--vw-base));
  overflow: hidden;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --revealDur: 1.2s;
  --zoomDur: 5s;
}

/* ================= Image Reveal ================= */
.m4-media {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #eae0d7;
  display: block;
  width: 100%;
  height: 100%;
}

.m4-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 底圖 */
.m4-media .m4-under {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 1;
}

/* 新圖層（會被刷出） */
.m4-media .m4-fg {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 0 0 100%);
  will-change: clip-path;
}

/* 新圖本體 */
.m4-media .m4-fg .m4-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform .45s var(--ease), filter .45s var(--ease);
}

/* ✅ 改為灰階效果 */
.m4-media:hover .m4-fg .m4-img {
  filter: grayscale(50%);
}



/* 刷出動畫 */
@keyframes revealRTL {
  from {
    clip-path: inset(0 0 0 100%);
  }

  to {
    clip-path: inset(0 0 0 0);
  }
}

@keyframes zoomOut {
  to {
    transform: scale(1);
  }
}

.m4-enter .m4-fg {
  animation: revealRTL var(--revealDur) var(--ease) both;
}

.m4-zoom .m4-fg .m4-img {
  animation: zoomOut var(--zoomDur) linear both;
}

/* 配合 swiper-slide 使用 */
.swiper-slide {
  width: 100%;
  height: 100%;
}


.sw4-txt {
  position: absolute;
  right: calc(1180*var(--vw-base));
  top: calc(190*var(--vw-base));
  width: calc(400*var(--vw-base));
  display: flex;
  flex-direction: column;
  align-items: end;
  gap: calc(3*var(--vw-base));
  text-decoration: none;
  z-index: 10;
}

.sw4-year {
  position: relative;
  font-family: 'Lora', serif;
  font-weight: 600;
  font-size: calc(22*var(--vw-base));
  letter-spacing: 0.1em;
  color: #756b66;
  line-height: 1.15em;
}

.sw4-road {
  position: relative;
  color: #756b66;
  color: #756b66;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-weight: 600;
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.1em;
}

.sw4-line {
  position: relative;
  height: 1px;
  width: calc(20*var(--vw-base));
  margin: calc(7*var(--vw-base)) calc(4*var(--vw-base)) calc(7*var(--vw-base)) 0;
  background-color: rgba(137, 126, 121, 0.7);
}

.sw4-desc {
  position: relative;
  color: #756b66;
  font-size: calc(16 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.1em;
}

.swiper4 {
  position: absolute;
  right: 0;
  top: 0;
  width: calc(1032*var(--vw-base));
  height: 100%;
}


.sw4-prev {
  position: absolute;
  top: calc(243*var(--vw-base));
  left: calc(22*var(--vw-base));
  width: calc(59*var(--vw-base));
  height: calc(36*var(--vw-base));
  /* background-color: #756b66; */
  overflow: hidden;
}

.sw4-prev-ani {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(59*var(--vw-base));
  height: 100%;
  overflow: hidden;
  transition: all 0.35s;
}

.sw4-prev:hover .sw4-prev-ani {
  /* width: calc(59*var(--vw-base)); */
}

.sw4-prev-arr {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(88*var(--vw-base));
  height: 100%;
  mask-image: url(../img/05/sw4-prev-arr.png);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  /* background-color: #c5a583; */
  background-color: #897e79;
  transition: all 0.35s;
}

.sw4-prev-cir {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(36*var(--vw-base));
  height: calc(36*var(--vw-base));
  background-image: url(../img/05/sw4-prev-cir.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  scale: 0.7;
  transition: all 0.35s 0.1s;
  /* animation: prev-rotate-cir 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; */
}

.sw4-prev:hover .sw4-prev-arr {
  background-color: #c5a583;
}

.sw4-prev:hover .sw4-prev-cir {
  opacity: 1;
  scale: 1;
}

@keyframes prev-rotate-cir {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(-360deg);
  }
}


.sw4-next {
  position: absolute;
  top: calc(240*var(--vw-base));
  left: calc(790*var(--vw-base));
  width: calc(59*var(--vw-base));
  height: calc(36*var(--vw-base));
  /* background-color: #756b66; */
}

.sw4-next-ani {
  position: absolute;
  top: 0;
  left: 0;
  width: calc(59*var(--vw-base));
  height: 100%;
  overflow: hidden;
  transition: all 0.5s;
}

/* .sw4-next:hover .sw4-next-ani {
  width: calc(59*var(--vw-base));
} */

.sw4-next-arr {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(88*var(--vw-base));
  height: 100%;
  mask-image: url(../img/05/sw4-next-arr.png);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  background-color: #897e79;
  transition: all 0.35s;
}


.sw4-next-cir {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(36*var(--vw-base));
  height: calc(36*var(--vw-base));
  background-image: url(../img/05/sw4-next-cir.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0;
  scale: 0.7;
  transition: all 0.35s 0.1s;
  /* animation: next-rotate-cir 2.2s cubic-bezier(0.45, 0, 0.55, 1) infinite; */
}

.sw4-next:hover .sw4-next-arr {
  background-color: #c5a583;
}

.sw4-next:hover .sw4-next-cir {
  opacity: 1;
  scale: 1;
}

@keyframes next-rotate-cir {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* =========================================
   news
========================================= */
.news {
  position: relative;
  width: 100%;
  height: calc(950*var(--vw-base));
  overflow: hidden;
  background-color: #eae0d7;
  z-index: 10;
}

.news>img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 標題區 */
.news-txt {
  position: absolute;
  top: 0vw;
  left: 0;
  width: 50vw;
  z-index: 105;
}

.news-txt-title {
  position: absolute;
  left: 10.4vw;
  top: 3.5vw;
  width: calc(287 * var(--vw-base));
  height: calc(365 * var(--vw-base));
  transition: all .35s ease-in-out;
  opacity: 0;
}

.news-txt-title .t1 {
  color: #b6aaa0;
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: calc(48 * var(--vw-base));
  line-height: 3vw;
  letter-spacing: 0.08em;
  writing-mode: vertical-rl;
}

.news-txt-title .t2 {
  position: absolute;
  left: -7.6vw;
  top: 8vw;
  color: #b6aaa0;
  width: 10vw;
  text-align: right;
  line-height: 3vw;
  font-size: calc(22 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.news-txt-title.active {
  animation: news-title 1.5s ease;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes news-title {
  0% {
    opacity: 0;
    left: 9.4vw;
  }

  100% {
    opacity: 1;
    left: 10.4vw;
  }
}


.news-txt-title img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.news-txt-line {
  width: 0vw;
  height: 1px;
  background-color: rgba(89, 80, 76, 1);
  position: absolute;
  left: 9.8vw;
  top: 0.45vw;
  transition: all .5s ease-in-out;
}

.news-txt-line.active {
  animation: news-line 1s linear;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes news-line {
  0% {
    width: 0vw;
  }

  100% {
    width: 4.5vw;
  }
}

/* 左側遮罩圖 */
.news-mask {
  width: calc(260*var(--vw-base));
  height: calc(950*var(--vw-base));
  z-index: 90;
  position: absolute;
  left: 0;
  top: 0;
}

/* 分隔線（你原本三條線） */
.news-line1,
.news-line2,
.news-line3 {
  width: 1px;
  height: calc(0*var(--vw-base));
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  overflow: hidden;
  z-index: 100;
}

.news-line4,
.news-line5 {
  width: 100%;
  height: 1px;
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  overflow: hidden;
  z-index: 100;
}

.news-line4 {
  position: absolute;
  top: 0;
  left: 0;
}

.news-line5 {
  position: absolute;
  bottom: 0;
  left: 0;
}

.news-line1 {
  left: 12.7vw;
  top: 0;
}

.news-line2 {
  left: 69vw;
  bottom: 0;
}

.news-line3 {
  left: 86.5vw;
  top: 0;
}

.news-line1.active {
  animation: news-1-line 2s linear;
  animation-fill-mode: forwards;
}

.news-line2.active {
  animation: news-2-line 2s linear;
  animation-delay: 0.5s;
  animation-fill-mode: forwards;
}

.news-line3.active {
  animation: news-3-line 2s linear;
  animation-delay: 1s;
  animation-fill-mode: forwards;
}

@keyframes news-1-line {
  from {
    height: 0
  }

  to {
    height: calc(1950*var(--vw-base));
  }
}

@keyframes news-2-line {
  from {
    height: 0
  }

  to {
    height: calc(1950*var(--vw-base));
  }
}

@keyframes news-3-line {
  from {
    height: 0
  }

  to {
    height: calc(1950*var(--vw-base));
  }
}


/* ===============================
   news 基本版型
================================ */
:root {
  /* ===== 等比系統（照你站的慣例） ===== */
  --vw-base: calc(100vw / 1920);

  --bg: #eae0d7;
  --ink: #111;
  --muted: rgba(0, 0, 0, .55);
  --line: rgba(0, 0, 0, .18);

  /* ===== 線位置（照圖） ===== */
  --line2: 69vw;
  --line3: 86.5vw;

  /* ===== 卡片尺寸（照圖：正方形） ===== */
  --cardW: calc(336 * var(--vw-base));
  --imgH: calc(336 * var(--vw-base));

  /* 向上長的高度 */
  --imgGrow: calc(50 * var(--vw-base));

  /* ===== 關鍵：間距（照圖偏大） =====
     設計稿 px(@1920)，JS 會換算成 px */
  --gapDesign: 185;

  /* ===== 關鍵：讓第 3 張落在兩線中間 =====
     這個值我已經用「目標 band 中心」反推過，參考圖會很接近 */
  --stageLeft: calc(283 * var(--vw-base));

  /* ===== 右邊露出第四張 ===== */
  --peek: calc(230 * var(--vw-base));
}

/* ✅ 裁切到「線3 + peek」：只露一點點第四張 */
.news-clip {
  position: relative;
  width: calc(var(--line3) + var(--peek));
  max-width: 100vw;
  overflow: visible;
  margin-top: calc(150 * var(--vw-base));
  z-index: 80;
}


/* Swiper */
#newsSwiper {
  width: 100%;
  overflow: visible;
}

#newsSwiper .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  padding-left: var(--stageLeft);
}

#newsSwiper .swiper-slide {
  width: var(--cardW) !important;
  flex: 0 0 auto !important;
  margin-right: 0;
  /* 間距交給 spaceBetween */
}

#newsSwiper {
  position: relative;
  /* ✅ 讓 Swiper 容器本身覆蓋你想要可拖的整塊高度
     你可以依你的版型調大一點 */
  padding-bottom: calc(120 * var(--vw-base));
}

#newsSwiper .news-drag-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  /* ✅ 在背後 */
  background: transparent;
}

/* ✅ slides / scrollbar 在上層 */
#newsSwiper .swiper-wrapper,
#newsSwiper .swiper-scrollbar {
  position: relative;
  z-index: 2;
}

/* 游標手勢（可選） */
.news-clip {
  cursor: grab;
}

.news-clip:active {
  cursor: grabbing;
}


/* 卡片 */
.news-card {
  display: block;
  text-decoration: none;
  color: inherit;
  user-select: none;
}

/* ✅ 1) thumb 永遠固定「最大高度」 */
.news-thumb {
  position: relative;
  width: 100%;
  height: calc(var(--imgH) + var(--imgGrow));
  /* ✅ 最大高度 */
  overflow: hidden;
  background: #000;

  /* ✅ 預設裁切：只顯示 imgH（從上裁掉 grow 的量） */
  clip-path: inset(var(--imgGrow) 0 0 0);
  transition: clip-path 0.8s cubic-bezier(.16, 1, .3, 1);
  will-change: clip-path;
}

/* ✅ 2) 圖片：底部對齊（很重要） */
.news-thumb img {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  /* ✅ 貼底 */
  top: auto;
  /* ✅ 不要 top:0 */
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  /* ✅ 取景偏底 */
  display: block;
}

/* ✅ 3) 遮色片：預設開 */
.news-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: #59504c;
  opacity: 0.5;
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity;
}


.news-sline {
  width: 1vw;
  height: 1px;
  position: relative;
  margin: 1vw 0.5vw 0 0.5vw;
  padding: 0;
  background-color: #897e79;
}

.news-meta {
  width: 100%;
  position: relative;
  padding-top: 10px;
}

.news-date {
  font-size: calc(22 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  letter-spacing: .2em;
  color: #897e79;
  margin: 0;
  font-family: "Lora", serif;
  font-weight: 600;
  padding: 0 10px;
}

.news-title {
  letter-spacing: .2em;
  margin: 0;
  color: #897e79;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(22 * var(--vw-base));
  font-family: "Noto Serif TC";
  font-weight: 700;
  padding: 0 10px;
}

.news-sline {
  width: 1vw;
  height: 1px;
  position: relative;
  margin: 1vw 0.5vw 0 0.5vw;
  padding: 0;
  background-color: #897e79;
}

.news-desc {
  letter-spacing: .2em;
  margin: 0;
  color: #897e79;
  font-size: calc(16 * var(--vw-base));
  font-family: "Noto Serif TC";
  line-height: calc(30 * var(--vw-base));
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(.2, .8, .2, 1);
  will-change: opacity;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-ideograph;
  padding: 20px 10px;
}

.news-date,
.news-title,
.news-desc {
  display: block;
  transform: scaleX(0.95);
  transform-origin: left center;
}

#newsSwiper .swiper-slide.is-focus .news-desc {
  opacity: 1;
}

/* slot4 首屏隱藏 */
#newsSwiper .swiper-slide.is-slot4.is-hidden {
  opacity: 0;
}

/* ✅ focus：遮色片關 + desc 顯示（你原本保留） */
.swiper-slide.is-focus .news-thumb::after {
  opacity: 0;
}

/* ===============================
   scrollbar
================================ */
#news-scroll {
  position: absolute !important;
  left: 15vw !important;
  right: auto !important;
  top: 37vw !important;
  bottom: auto !important;
  width: 50vw;
  /* 確保有寬度 */
  height: 3px !important;
  margin: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  z-index: 10;
  cursor: pointer;
}

#news-scroll .news-scrollbar-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 3px;
  background-image: url(../img/m4-barbg.png);
  background-position: 100% 50%;
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  z-index: 0;
}

#news-scroll .swiper-scrollbar-drag {
  height: 1px !important;
  width: 100%;
  position: relative;
  background: rgba(89, 80, 76, 1);
  border-radius: 0;
  left: 0;
  top: 0;
}

/* 這是那個關鍵的「右側特別圖案」 */
.news-special-pattern {
  position: absolute;
  right: 0;
  top: 0;
  width: 19px;
  height: 3px;
  background-image: url(../img/m4-barbgafdot.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: right center;

  opacity: 0;
  /* 預設隱藏 */
  transition: opacity 0.3s ease-out 0.1s;
  z-index: 3;
  /* 確保在 drag 之上或之下，視設計而定 */
  pointer-events: none;
}

/* 當 JS 判定到最右邊時，切換此 Class */
#news-scroll.is-at-end .news-special-pattern {
  opacity: 1;
}


/* ✅ focus：永遠是兩線中間那張 */
.swiper-slide.is-focus .news-thumb::after {
  opacity: 0;
}

.swiper-slide.is-focus .news-desc {
  opacity: 1;
}


/* 1) clip 當定位容器，避免 absolute 層亂飛 */
#news-main .news-clip {
  position: relative;
}

/* 2) 裝飾層永遠不吃事件（避免偶發蓋住 swiper） */
#news-main .news-drag-layer,
#news-main .news-mask {
  pointer-events: none;
}

/* 3) Shield：預設完全穿透；只有 is-on 才擋 */
#news-main .news-hover-shield {
  position: absolute;
  inset: 0;
  background: transparent;
  z-index: 20;
  /* 只要高於卡片即可，不要亂拉到 999 */
  pointer-events: none !important;
}

#news-main .news-hover-shield.is-on {
  pointer-events: auto;
  /* 開啟時才擋 */
}

/* 4) 確保 swiper / 卡片層在 shield 底下（或同層） */
#news-main #newsSwiper {
  position: relative;
  z-index: 10;
}

/* 如果你的 .news-card 有自己的 z-index，可補強一下 */
#news-main .news-card {
  position: relative;
  z-index: 11;
}


/* ✅ 只要在滑動/拖曳狀態，一律保持低（不管 hover 不 hover） */
#news-main.is-dragging-news #newsSwiper .news-thumb {
  clip-path: inset(var(--imgGrow) 0 0 0) !important;
}

/* ✅ 只有「視覺鎖定」那張，滑到圖片才變高 */
#newsSwiper .swiper-slide.is-focus-lock .news-thumb:hover,
#newsSwiper .swiper-slide.is-focus-lock .news-thumb:focus-within {
  clip-path: inset(0 0 0 0);
}

/* 遮色片/desc 也只在「focus-lock + hover 到圖片」才出現變化 */
.news-thumb::after {
  opacity: .5;
  transition: opacity .55s cubic-bezier(.2, .8, .2, 1);
}

.news-desc {
  opacity: 0;
  transition: opacity .55s cubic-bezier(.2, .8, .2, 1);
}

#newsSwiper .swiper-slide.is-focus-lock .news-thumb:hover::after,
#newsSwiper .swiper-slide.is-focus-lock .news-thumb:focus-within::after {
  opacity: 0;
}

#newsSwiper .swiper-slide.is-focus-lock .news-thumb:hover~.news-meta .news-desc,
#newsSwiper .swiper-slide.is-focus-lock .news-thumb:focus-within~.news-meta .news-desc {
  opacity: 1;
}

/* ✅ 拖曳中完全禁止 hover 展開（防抖） */
#news-main.is-dragging-news .news-thumb:hover {
  clip-path: inset(var(--imgGrow) 0 0 0) !important;
}

#news-main.is-dragging-news .news-thumb:hover::after {
  opacity: .5 !important;
}

#news-main.is-dragging-news .news-thumb:hover~.news-meta .news-desc {
  opacity: 0 !important;
}