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

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;
  scroll-behavior: smooth;
  --vw-base: calc(100vw / 1920);
  background-color: #f3eee7;
  cursor: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  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 {
  list-style: none;
  padding: 0;
  margin: 0;
}

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%;
  overflow: hidden;
}

.m1-video {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(950 * var(--vw-base));
  overflow: hidden;
}

.m1-video video {
  object-fit: cover;
  width: 100%;
  height: 100%;
  z-index: 1;
}

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

.m1-logo {
  position: absolute;
  left: 13.5vw;
  top: 0.5vw;
  width: calc(328*var(--vw-base));
  height: calc(56*var(--vw-base));
  overflow: hidden;
}

.m1-word {
  position: absolute;
  left: 6.6vw;
  top: 4.8vw;
  width: calc(413 * var(--vw-base));
  height: calc(26 * var(--vw-base));
  overflow: hidden;
}

.m1-logo img,
.m1-word img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.m1-word img {
  position: absolute;
  left: 0;
  top: 0;
}

.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 超出 */
  transition: all .5s ease-in-out;
}

.m1-line.active {
  animation: m1-line 1s linear;
  animation-delay: 1s;
  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);
  animation: drawLine 6s ease-in-out infinite;
}

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

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

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

.m1-line::after.active {
  animation: m1-line 1s linear;
  animation-delay: 6s;
  animation-fill-mode: forwards;
}

.voice {
  width: calc(48*var(--vw-base));
  height: calc(39*var(--vw-base));
  position: absolute;
  right: 2.5vw;
  bottom: 2vw;
  cursor: pointer;
  z-index: 9;
}

/* 兩層都吃滿 voice，並疊在一起 */
.noVoice,
.haveVoice {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;

  /* ✅ 淡入淡出核心 */
  opacity: 0;
  transition: opacity 0.85s ease;
  will-change: opacity;
}

/* 靜音預設顯示 */
.noVoice {
  opacity: 1;
}

/* 有聲層不吃事件（點擊交給 .voice 本體） */
.haveVoice {
  pointer-events: none;
}

.noVoice img {
  width: 100%;
  height: 100%;
  display: block;
}

#voiceLottie {
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ✅ 開聲音：兩層交叉淡入淡出 */
.voice.is-on .noVoice {
  opacity: 0;
}

.voice.is-on .haveVoice {
  opacity: 1;
}




/*main2*/
/* ✅ Main2：改成 pin 用的 100vh 視窗 */
#main2 {
  height: 100vh !important;
  min-height: 0 !important;
  /* ✅ 取消 400vh */
  overflow: hidden !important;
  /* ✅ 讓 pin 期間視覺穩定 */
}

.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 {
  0% {
    height: 0;
  }

  100% {
    height: 100vh;
  }
}

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

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

@keyframes m2-2-line {
  0% {
    height: 0;
  }

  100% {
    height: 100vh;
  }
}

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

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

@keyframes m2-3-line {
  0% {
    height: 0;
  }

  100% {
    height: 100vh;
  }
}

/* 左邊文字：在 main2 內 sticky */
.m2-txt {
  position: relative;
  /* ✅ 不用 GSAP pin */
  top: 15vw;
  /* 你原本 top:15vw 的感覺 */
  left: 0;
  width: 50vw;
  z-index: 10;
}

#main2 .m2-txt {
  z-index: 10;
  position: relative;
}

.m2-txt-title {
  position: absolute;
  left: 10.5vw;
  top: -7.2vw;
  transition: all .35s ease-in-out;
}

.t1 {
  color: #b6aaa0;
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: calc(48 * var(--vw-base));
  line-height: 3vw;
  letter-spacing: 0.04em;
  transform: scaleX(0.95);
  transform-origin: left center;
  writing-mode: vertical-rl;
  display: block;
}

.t2 {
  position: absolute;
  left: -7.25vw;
  top: 13.5vw;
  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.05em;
  font-weight: 600;
  transform: scaleX(0.95);
  transform-origin: left center;
  display: block;
}




.m2-txt-cent {
  position: absolute;
  left: 15vw;
  top: 0vw;
  width: calc(350*var(--vw-base));
  overflow: hidden;
  color: #756b66;
  font-size: calc(16 * var(--vw-base));
  line-height: calc(33 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.08em;
}

.m2-txt-cent.cent2 {
  position: absolute;
  top: 9.5vw;
}

.m2-txt-cent.cent3 {
  position: absolute;
  top: 18vw;
}

.m2-focus {
  font-size: calc(22 * var(--vw-base));
  line-height: calc(33 * var(--vw-base));
  letter-spacing: 0.1em;
  position: relative;
  padding: 0 0.8vw;
}

.m2-focus .Bickham-Script-Pro-3-Regular {
  font-size: calc(65 * var(--vw-base));
  line-height: calc(33 * var(--vw-base));
  opacity: 0.5;
}

.m2-focus .Bickham-Script-Pro-3-Regular.ftt {
  position: absolute;
  right: 6.2vw;
  top: 0.15vw;
}

.m2-focus .Bickham-Script-Pro-3-Regular.btt {
  position: absolute;
  right: 0.2vw;
  bottom: -1.45vw;
}

/*.m2-txt-title .t1,
.m2-txt-title .t2,
.m2-txt-cent{
  display:block;
  transform: scaleX(0.95);
  transform-origin: left center;
}*/


:root {
  --vw-base: calc(100vw / 1920);
  --ease: cubic-bezier(.2, .8, .2, 1);

  /* 右端要被裁掉的距離 */
  --line-shift: 1.35vw;
}

/* =========================
   MORE button
========================= */
.more-btn {
  position: absolute;
  left: 15vw;
  top: 23vw;
  display: inline-block;
  padding-right: calc(37 * var(--vw-base));
  text-decoration: none;
  z-index: 100;
}

/* 文字 */
.more-text {
  font-family: "Lora", serif;
  font-size: calc(18 * var(--vw-base));
  font-weight: 600;
  letter-spacing: .1em;
  color: #756b66;
  transition: color .35s var(--ease);
}

/* 線條外層：裁切框 */
.more-line {
  position: absolute;
  left: 0;
  top: calc(100% + 3 * var(--vw-base));
  width: calc(87 * var(--vw-base));
  height: calc(3 * var(--vw-base));
  overflow: hidden;
  pointer-events: none;
}

/* 兩張線圖共用同一個動作 */
.more-line img {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;

  /* 初始：整條線往左移 → 右邊被裁 */
  transform: translateX(calc(-1 * var(--line-shift)));
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}

/* 狀態 */
.line-gray {
  opacity: 1;
}

.line-gold {
  opacity: 0;
}

/* Hover：線補齊 + 換成金色 */
.more-btn:hover .more-line img {
  transform: translateX(0);
}

.more-btn:hover .line-gray {
  opacity: 0;
}

.more-btn:hover .line-gold {
  opacity: 1;
}

/* =========================
   右側圓圈
========================= */
.more-icon {
  position: absolute;
  right: 5%;
  top: 115%;
  width: calc(30 * var(--vw-base));
  height: calc(30 * var(--vw-base));
  transform: translateY(-50%) scale(0.35);
  /* 🔑 初始縮小 */
  opacity: 0;
  transition:
    opacity .4s var(--ease),
    transform .5s var(--ease);
}

.more-icon img {
  width: 100%;
  height: 100%;
  display: block;
}

.more-btn:hover .more-icon {
  opacity: 1;
  transform: translateY(-50%) scale(1);
  /* 🔑 從小到大 */
}

.more-btn:hover .more-text {
  color: #c5a583;
}




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

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

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

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

  100% {
    width: 4.5vw;
  }
}

/* ✅ progressive blur overlay（疊在 m2-pic 上） */
/* ✅ 右側：固定視窗高度（跟 main2 同段顯示） */
#main2 .m2-pic {
  position: absolute;
  top: 0vw;
  right: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden !important;
  z-index: 9;
}

#main2 .m2-pic-inner {
  position: relative !important;
  /* ✅ 讓內容基準穩 */
  width: 100%;
  height: 100%;
  /* ✅ 至少跟視窗一樣高 */
  will-change: transform;
}


/* 兩張圖定位 */
#main2 .m2-pic .m2-pic-1 {
  width: calc(350*var(--vw-base));
  position: absolute;
  top: 0;
  left: 50.8vw;
}

#main2 .m2-pic .m2-pic-2 {
  width: calc(380*var(--vw-base));
  position: absolute;
  top: 5vw;
  right: 2.5vw;
}

/* ✅ Main2 圖片：解除全域 img{height:100%} */
#main2 .m2-pic-1 img,
#main2 .m2-pic-2 img {
  width: 100% !important;
  height: auto !important;
  display: block;
  object-fit: contain;
}

.m2-pic-1,
.m2-pic-2 {
  opacity: 1;
  transform: none;
}



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

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

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

@keyframes m3-1-line {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

.m3-line2 {
  width: 0%;
  height: 1px;
  background-color: rgba(137, 126, 121, 0.5);
  position: absolute;
  left: 0vw;
  bottom: 0vw;
  overflow: hidden;
  /* 🔴 很重要，避免 after 超出 */
  z-index: 100;
}

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

@keyframes m3-2-line {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

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

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

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

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

/* ===== 基本設定 ===== */
:root {
  --gap: 1vw;
  /* 卡片高度、整組寬度（你可依版面改） */
  --card-h: calc(830 * var(--vw-base));
  --cards-w: calc(900 * var(--vw-base));
  /* 推擠比例 */
  --grow-idle: 1;
  --grow-active: 2;
  /* 動畫 */
  --dur: .5s;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --card-w-idle: calc(265 * var(--vw-base));
  /* 沒被推擠 */
  --card-w-active: calc(365 * var(--vw-base));
  /* 被推擠 */
}


/* ===== 左邊三張按鈕區：貼齊最左 ===== */
.values-wrap {
  position: relative;
  width: 100%;
  height: var(--card-h);
  margin-top: calc(132.5 * var(--vw-base));
}

.values-cards {
  position: absolute;
  left: 0;
  /* ✅最左貼齊畫面 */
  top: 0;
  width: calc(850 * var(--vw-base));
  height: calc(834 * var(--vw-base));
  display: flex;
  /* ✅推擠靠 flex */
  gap: var(--gap);
  align-items: stretch;
  min-width: 0;

}

/* ===== 卡片（按鈕）===== */
.v-card {
  flex: 0 0 var(--card-w-idle);
  /* ✅ 關鍵 */
  max-width: var(--card-w-idle);
  min-width: 0;
  height: var(--card-h);
  position: relative;
  overflow: hidden;

  transition:
    flex-basis var(--dur) var(--ease),
    max-width var(--dur) var(--ease);

  will-change: flex-basis;
  background-color: transparent;
  border: none;
}

.v-card.is-hover {
  flex-basis: var(--card-w-active);
  max-width: var(--card-w-active);
}

/* ✅圖片：固定不縮放、不放大 */
.v-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: none !important;
  /* 保險：不讓其他 CSS 影響 */
}

/* ===== 遮罩（hover 才顯示）===== */
.v-card::after {
  content: "";
  position: absolute;
  inset: 0;
  /* 你要用你自己的遮罩圖也行（改成 background-image） */
  background-image: url(../img/m3-mask.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 0% 100%;
  opacity: 0;
  transition: opacity .5s var(--ease);
  /* ✅淡入淡出 */
  pointer-events: none;
  z-index: 1;
}

.v-card.is-hover::after {
  opacity: 1;
}



/* 底部標籤文字 */
.values-cards .v-card-label {
  width: calc(365*var(--vw-base));
  height: calc(18*var(--vw-base));
  position: absolute;
  left: 0;
  bottom: 1.5vw;
  z-index: 2;
  pointer-events: none;
}

.values-cards .v-card-label img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.values-cards .v-card-label-line {
  width: calc(247*var(--vw-base));
  height: calc(3*var(--vw-base));
  position: absolute;
  left: -10vw;
  bottom: 1vw;
  z-index: 2;
  pointer-events: none;
  transition: left .45s ease;
}

.values-cards .v-card.v-card1 .v-card-label-line {
  position: absolute;
  left: -7.8vw;
  bottom: 1vw;
}

.values-cards .v-card.v-card2 .v-card-label-line {
  position: absolute;
  left: -4.45vw;
  bottom: 1vw;
}

.values-cards .v-card.v-card3 .v-card-label-line {
  position: absolute;
  left: -4.9vw;
  bottom: 1vw;
}

.values-cards .v-card.v-card1:hover .v-card-label-line {
  left: -3.2vw;
}

.values-cards .v-card.v-card2:hover .v-card-label-line {
  left: 0vw;
}

.values-cards .v-card.v-card3:hover .v-card-label-line {
  left: -0.4vw;
}




/* =========================
   右側內容
   ========================= */
.m3-txt {
  position: absolute;
  top: 0vw;
  left: 71.25vw;
  width: 50vw;
  height: auto;
  z-index: 10;
}

.m3-txt-title {
  position: absolute;
  right: 24.9vw;
  top: 0vw;
  width: calc(200*var(--vw-base));
  height: calc(322*var(--vw-base));
  overflow: hidden;
  transition: all .35s ease-in-out;
  opacity: 0;
}

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

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

@keyframes m3-title {
  0% {
    opacity: 0;
    right: 23.9vw;
  }

  100% {
    opacity: 1;
    right: 24.9vw;
  }
}

.m3-txt .t1 {
  color: #897e79;
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: calc(48 * var(--vw-base));
  line-height: 3vw;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  opacity: 0.7;
}

.m3-txt .t2 {
  position: absolute;
  left: -4.9vw;
  top: 10.5vw;
  color: #897e79;
  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.05em;
  font-weight: 600;
  opacity: 0.7;
  display: block;
  transform: scaleX(0.95);
  transform-origin: right center;
}

.m3-txt-cent {
  text-align: right;
  position: absolute;
  left: -5.5vw;
  top: 11vw;
  width: calc(350*var(--vw-base));
  height: calc(256 * var(--vw-base));
  overflow: hidden;
  color: #897e79;
  font-size: calc(16 * var(--vw-base));
  line-height: calc(33 * var(--vw-base));
  font-family: 'Noto Serif TC', sans-serif;
  letter-spacing: 0.08em;
  display: block;
  transform: scaleX(0.95);
  transform-origin: right center;
  opacity: 0;
}

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

@keyframes m3-cent {
  0% {
    opacity: 0;
    left: -7.5vw;
  }

  100% {
    opacity: 1;
    left: -5.5vw;
  }
}

/*
.m3-txt-title .t1,
.m3-txt-title .t2,
.m3-txt-cent{
  display:block;
  transform: scaleX(0.95);
  transform-origin: right center;
}
*/
.m3-focus {
  font-size: calc(22 * var(--vw-base));
  line-height: calc(33 * var(--vw-base));
  letter-spacing: 0.1em;
  position: relative;
  padding: 0 1vw;
}

.m3-focus .Bickham-Script-Pro-3-Regular {
  font-size: calc(65 * var(--vw-base));
  line-height: calc(33 * var(--vw-base));
  opacity: 0.5;
}

.m3-focus .Bickham-Script-Pro-3-Regular.ftt {
  position: absolute;
  right: 4vw;
  top: 0.15vw;
}

.m3-focus .Bickham-Script-Pro-3-Regular.btt {
  position: absolute;
  right: 0.52vw;
  bottom: -1.45vw;
}



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

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

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

  100% {
    width: 12vw;
  }
}







/* =========================================
   MAIN4（完整整理版）
========================================= */

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

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

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

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

.m4-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;
  display: block;
  transform: scaleX(0.95);
  transform-origin: left center;
}

.m4-txt-title .t2 {
  position: absolute;
  left: -7.1vw;
  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;
  display: block;
  transform: scaleX(0.95);
  transform-origin: left center;
}

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

@keyframes m4-title {
  0% {
    opacity: 0;
    left: 9.5vw;
  }

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


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

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

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

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

  100% {
    width: 4.5vw;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

  --bg: #f3eee7;
  --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」：只露一點點第四張 */
.m4-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 */
#m4Swiper {
  width: 100%;
  overflow: visible;
}

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

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

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

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

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

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

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


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

/* ✅ 1) thumb 永遠固定「最大高度」 */
.m4-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) 圖片：底部對齊（很重要） */
.m4-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) 遮色片：預設開 */
.m4-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;
}


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

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

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

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

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

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

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

#m4Swiper .swiper-slide.is-focus .m4-desc {
  opacity: 1;
}

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

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

/* ===============================
   scrollbar
================================ */
#m4-scroll {
  position: absolute !important;
  left: 15vw !important;
  right: auto !important;
  top: 37vw !important;
  bottom: auto !important;
  height: 3px !important;
  margin: 0 !important;
  background: transparent !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  z-index: 10;
}

#m4-scroll {
  cursor: pointer;
}

#m4-scroll .m4-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;
}

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

/* 這是那個關鍵的「右側特別圖案」 */
.m4-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 */
#m4-scroll.is-at-end .m4-special-pattern {
  opacity: 1;
}


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

#m4-scroll .swiper-slide.is-focus .m4-desc {
  opacity: 1;
}


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

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

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

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

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

#m4Swiper .swiper-slide {
  transform: none !important;
}

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


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

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

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

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

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

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

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

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

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






/*main5*/
:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --bg: #eae0d7;
  --ink: #2b2420;
  --muted: rgba(43, 36, 32, .55);
  --revealDur: 1.2s;
  --textDur: .9s;
  --zoomDur: 5s;

  --line-shift5: calc(38 * var(--vw-base));
}

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

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

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

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

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

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

.m5-line1-ar {
  width: 3px;
  height: calc(0 * var(--vw-base));
  position: absolute;
  left: 12.6vw;
  top: 31vw;
  overflow: hidden;
  z-index: 11;
}

.m5-line1-ar.active {
  animation: m5-1-line-ar 0.5s linear;
  animation-fill-mode: forwards;
  animation-delay: 0.8s;
}

@keyframes m5-1-line-ar {
  from {
    height: 0
  }

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

.m5-line1-ar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

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

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

.m5-txt-title .t1 {
  color: #756b66;
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: calc(48 * var(--vw-base));
  line-height: 3vw;
  letter-spacing: 0.04em;
  writing-mode: vertical-rl;
  opacity: 0.7;
  display: block;
  transform: scaleX(0.95);
  transform-origin: left center;
}

.m5-txt-title .t2 {
  position: absolute;
  left: -7.1vw;
  top: 13.2vw;
  color: #756b66;
  opacity: 0.7;
  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.05em;
  font-weight: 600;
  display: block;
  transform: scaleX(0.95);
  transform-origin: left center;
}

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

@keyframes m5-title {
  0% {
    opacity: 0;
    left: 9.5vw;
  }

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


#m5Swiper,
#m5Swiper .swiper-wrapper,
#m5Swiper .swiper-slide {
  width: 100%;
  height: 100%;
}

#m5Swiper .swiper-slide {
  transform: none !important;
}

/* ================= Layout ================= */
.m5-slide {
  display: flex;
}

.m5-left {
  width: 42%;
  padding: calc(160 * var(--vw-base)) calc(0 * var(--vw-base)) calc(50 * var(--vw-base)) calc(140 * var(--vw-base));
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(12 * var(--vw-base));
}

.m5-right {
  width: 51%;
  position: relative;
  overflow: hidden;
  background: #eae0d7;
  /* 沒圖時的底色 */
}

/* ================= Image Reveal ================= */
/* m5-media 容器：只負責裁切框，不再做 clip-path */
.m5-media {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background: #eae0d7;
  display: block;
  /* 沒圖時的底色 */
}

.m5-media img {
  /* 確保圖片在還沒載入完時不要有預設的邊框或空白符號 */
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 底圖（上一張） */
.m5-media .m5-under {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;

  /* 讓底圖有「被壓在下面」的感覺（可調） */
  opacity: 1;
  /*filter: saturate(.95);*/
}

/* 新圖層（會被刷出） */
.m5-media .m5-fg {
  position: absolute;
  inset: 0;
  z-index: 1;

  /* ✅ 新圖整塊先遮住（右→左刷出） */
  clip-path: inset(0 0 0 100%);
  will-change: clip-path;
}

/* 新圖本體 */
.m5-media .m5-fg .m5-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  /* 你原本的縮放/灰階/transition 都留在新圖上 */
  transform: scale(1);
  /*filter: grayscale(0%);*/
  transition:
    /*filter .45s var(--ease),*/
    transform .45s var(--ease);
}

/* 刷出動畫：控制 fg 的 clip-path */

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

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

}

/* 由 JS 在 active slide 加 .m5-enter 觸發刷出 */
.m5-enter .m5-small .m5-fg,
.m5-enter .m5-big .m5-fg {
  animation: revealRTL var(--revealDur) var(--ease) both;
}

/* 🚩 新增：濾鏡容器層，專門處理灰階過渡，不干擾 img 的 transform 動畫 */
.m5-filter {
  width: 100%;
  height: 100%;
  transition: filter .45s var(--ease);
  will-change: filter;
  overflow: hidden;
}

/* ================= Hover → grayscale（現在作用於專屬的 .m5-filter 層） ================= */
.m5-small:hover .m5-filter,
.m5-big:hover .m5-filter {
  filter: grayscale(50%);
}

.m5-img {
  will-change: transform;
}

/* ================= Small Image（你原本的尺寸保留） ================= */
.m5-small {
  width: calc(275 * var(--vw-base));
  aspect-ratio: 1/1;
  margin-left: calc(190 * var(--vw-base));
  cursor: pointer;
}

/* ================= Big Image Zoom（改成只縮放新圖 m5-img） ================= */
.m5-big {
  position: absolute;
  inset: 0;
}

/* 大圖的新圖起始放大 */
.m5-big .m5-fg .m5-img {
  transform: scale(1.18);
}

/* zoom-out 動畫沿用你原本的 keyframes */
@keyframes zoomOut {
  to {
    transform: scale(1);
  }
}

/* 只對新圖做 zoom-out（底圖不動） */
.m5-zoom .m5-big .m5-fg .m5-img {
  animation: zoomOut var(--zoomDur) linear both;
}

/*================ Text ================= */
.m5-meta {
  margin-left: calc(190 * var(--vw-base));
  max-width: calc(270 * var(--vw-base));
  text-align: right;
  display: block;
}

.m5-year {
  color: #897e79;
  font-family: "Lora", serif;
  font-weight: 600;
  font-size: calc(22 * var(--vw-base));
  letter-spacing: .05em;
}

/* 外層只做動畫 */
.m5-title,
.m5-sub {
  opacity: 0;
  transform: translateY(calc(18 * var(--vw-base)));
}

/* 內層只做縮字 */
.m5-text {
  display: inline-block;
  transform: scaleX(0.95);
  transform-origin: right center;
}

/* title */
.m5-title {
  color: #897e79;
  font-family: 'Noto Serif TC', sans-serif;
  font-weight: 600;
  font-size: calc(22 * var(--vw-base));
  line-height: calc(30 * var(--vw-base));
  letter-spacing: 0.08em;
  margin: 0;
}

/* 分隔線 */
.m5-sline {
  width: 1vw;
  height: 1px;
  margin-left: auto;
  margin-top: 1vw;
  margin-bottom: 1vw;
  margin-right: calc(2.5 * var(--vw-base));
  background-color: #897e79;
}

/* sub */
.m5-sub {
  color: #897e79;
  font-family: 'Noto Serif TC', sans-serif;
  font-size: calc(16 * var(--vw-base));
  line-height: calc(20 * var(--vw-base));
  letter-spacing: 0.08em;
}

/* 動畫 */
@keyframes textUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}




/* ================= Big Image Zoom ================= */
.m5-big {
  position: absolute;
  inset: 0;
}

.m5-big img {
  transform: scale(1.18);
}

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

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

/* ================= Swiper Navigation ================= */
.swiper-button-prev,
.swiper-button-next {
  width: calc(90 * var(--vw-base));
  height: calc(46 * var(--vw-base));
  top: calc(475 * var(--vw-base));
  ;
  z-index: 99;
  /* ✅ 按鈕永遠在上層 */
  pointer-events: auto;
  /* ✅ 可點 */
  cursor: pointer;
}

.swiper-button-prev {
  left: calc(0 * var(--vw-base));
}

/* ✅ 依你截圖：Next 在中線附近 */
.swiper-button-next {
  left: calc(875 * var(--vw-base));
  transform: translateX(-50%);
}

.swiper-button-prev::after,
.swiper-button-next::after {
  display: none;
}

/* Arrow content */
.m5-arrow-line {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: calc(87 * var(--vw-base));
  height: calc(3 * var(--vw-base));
  overflow: hidden;
  pointer-events: none;
  /* ✅ 裝飾不吃點擊 */
}

.m5-arrow-line img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: translateX(calc(-1 * var(--line-shift5)));
  transition: transform .45s var(--ease), opacity .3s var(--ease);
}

.m5-line-gray {
  opacity: 1;
}

.m5-line-gold {
  opacity: 0;
}



.swiper-button-prev:hover .m5-line-gray,
.swiper-button-next:hover .m5-line-gray {
  opacity: 0;
}

.swiper-button-prev:hover .m5-line-gold,
.swiper-button-next:hover .m5-line-gold {
  opacity: 1;
}

/* circle */
.m5-arrow-circle {
  position: absolute;
  top: 50%;
  width: calc(35 * var(--vw-base));
  height: calc(35 * var(--vw-base));
  transform: translateY(-50%) scale(.35);
  opacity: 0;
  transition: opacity .4s var(--ease), transform .5s var(--ease);
  pointer-events: none;
  /* ✅ 裝飾不吃點擊 */
}

.m5-arrow-circle img {
  width: 100%;
  height: 100%;
  display: block;
}

.swiper-button-prev:hover .m5-arrow-circle,
.swiper-button-next:hover .m5-arrow-circle {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* direction */
.swiper-button-prev .m5-arrow-line {
  transform: translateY(-50%) scaleX(-1);
}

.swiper-button-prev .m5-arrow-circle {
  left: 1.5vw;
}

.swiper-button-next .m5-arrow-circle {
  right: 1.5vw;
}