@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;
    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 {
    width: 100%;
    height: calc(950 * var(--vw-base));
    position: relative;
    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(540*var(--vw-base));
    /* height: calc(710*var(--vw-base)); */
    position: absolute;
    /* bottom: 0; */
    top: calc(240 * var(--vw-base));
    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;
}

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





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

.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;
    z-index: 10;
    opacity: 0;
}

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

.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;
    z-index: 10;
    opacity: 0;
}

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

.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;
    z-index: 5;
    opacity: 0;
}

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

/* 修正後的 Keyframes */
@keyframes m2-1-line {
    from {
        height: 0;
        opacity: 0;
    }

    to {
        height: 100%;
        opacity: 1;
    }
}

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

    to {
        height: 100%;
        opacity: 1;
    }

    /* 🚀 這裡原本是 0 */
}

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

    to {
        height: 100%;
        opacity: 1;
    }

    /* 🚀 這裡原本是 0 */
}


.m2-container {
    width: 100%;
    margin: 8vw auto 12vw;
    position: relative;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: calc(198*var(--vw-base));
}

.m2-section {
    display: flex;
    align-items: flex-start;
    position: relative;
    justify-content: flex-end;
    width: 86.5vw;
    gap: calc(32*var(--vw-base));
}

.m2-section:nth-child(even) {
    width: calc(1509*var(--vw-base));
}

.m2-content {
    position: relative;
    display: table;
    flex-direction: column;
    margin-top: calc(80*var(--vw-base));
}

.m2-title {
    position: relative;
    display: flex;
    gap: calc(16*var(--vw-base));
    align-items: end;
    width: max-content;
}

.m2-title-name {
    position: relative;
    font-family: "Noto Serif TC", sans-serif;
    font-size: calc(22 * var(--vw-base));
    letter-spacing: 0.1em;
    color: rgb(137, 126, 121);
    font-weight: 700;
}

.m2-year {
    position: relative;
    width: calc(481*var(--vw-base));
    font-family: "Lora", serif;
    font-size: calc(48 * var(--vw-base));
    color: rgba(182, 170, 160, 0.5);
    letter-spacing: 0.05em;
}

.m2-year-line {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(182, 170, 160, 0.5);
}

.m2-grid {
    position: absolute;
    left: 0;
    top: calc(87*var(--vw-base));
    /* margin-top: calc(30*var(--vw-base)); */
    display: grid;
    /* 關鍵：第一欄由內容決定寬度，第二欄固定給線(比如1px)，第三欄填滿剩餘空間 */
    grid-template-columns: max-content 1px 1fr;
    /* 設定列與列之間的間距（視覺上的行距） */
    row-gap: calc(6*var(--vw-base));
    /* 設定欄與欄之間的間距（文字與線的距離） */
    column-gap: calc(20*var(--vw-base));
    align-items: start;
    /* 確保右邊字多換行時，左邊標題仍對齊頂部 */
    width: 100%;
    overflow: hidden;
    /* grid-template-rows: repeat(5, auto); */
    grid-template-columns: max-content 1px minmax(0, 1fr);
}

/* 左側名稱 */
.m2-grid-name {
    grid-column: 1;
    text-align: left;
    /* 這裡可以加顏色、字體大小等 */
    font-size: calc(16 * var(--vw-base));
    line-height: calc(25 * var(--vw-base));
    color: #897e79;
    font-family: "Noto Serif TC", sans-serif;
}

/* 右側描述 */
.m2-grid-desc {
    grid-column: 3;
    font-size: calc(16 * var(--vw-base));
    line-height: calc(25 * var(--vw-base));
    color: #897e79;
    font-family: "Noto Serif TC", sans-serif;
}


/* 完整的那條線 */
.m2-grid-line {
    position: relative;
    grid-column: 2;
    /* 放在中間那一欄 */
    /* grid-row: 1 / -1; */
    /* 讓它從第一行跨越到最後一行 (20只是一個保險的大數字) */
    top: 50%;
    width: 1px;
    height: 94%;
    background-color: rgba(182, 170, 160, 0.5);
    /* 線條顏色 */
    justify-self: center;
    transform: translateY(-50%);
    /* 在 1px 的空間裡水平居中 */

    /* 如果要做動態，可以加這行 */
    transform-origin: top;
}

.m2-img-wrap {
    position: relative;
    width: calc(336 * var(--vw-base));
    height: calc(336 * var(--vw-base));
    transition: transform 0.1s ease-out;
    overflow: hidden;
}

/* 內部圖片：寬度 120% */
.m2-img-wrap img {
    display: block;
    width: 120%;
    /* 👈 比容器大，才有橫向可移動空間 */
    height: 100%;
    object-fit: cover;
}



/* =========================================================
   Main3: Award Section 視覺稿還原版
   ========================================================= */

:root {
    --vw-base: calc(100vw / 1920);

    /* 視覺稿色彩 */
    --m3-bg: #eae0d7;
    --m3-ink: #897e79;
    --m3-line-color: rgba(137, 126, 121, 0.5);
    --gapDesign: 65;
    /* 排版參數 */

    --cardW: calc(375 * var(--vw-base));
    /* 視覺稿圖片寬度 */
    --imgH: calc(460 * var(--vw-base));
    /* 視覺稿圖片高度 */
    --imgGrow: calc(0 * var(--vw-base));
}

.main3 {
    position: relative;
    width: 100%;
    height: calc(1000 * var(--vw-base));
    /* 稍微拉高以符合視覺比例 */
    background-color: var(--m3-bg);
    overflow: hidden;
    z-index: 10;
}

/* -------------------------
   1. 線條與遮罩 (Lines & Mask)
   ------------------------- */
.m3-line1,
.m3-line4 {
    width: 0%;
    height: 1px;
    background-color: var(--m3-line-color);
    position: absolute;
    top: 0;
    z-index: 100;
}

.m3-line1 {
    left: 0;
}

.m3-line4 {
    right: 0;
    bottom: 0;
    top: auto;
}

.m3-line2,
.m3-line3 {
    width: 1px;
    height: 0;
    background-color: var(--m3-line-color);
    position: absolute;
    top: 0;
    z-index: 100;
}

.m3-line2 {
    left: 12.7vw;
}

/* 視覺稿關鍵左對齊線 */
.m3-line3 {
    left: 86.5vw;
}

/* 視覺稿右對齊線 */

/* 線條啟動動畫 */
.m3-line1.active,
.m3-line4.active {
    animation: m3-h-line 1.2s ease-out forwards;
}

.m3-line2.active,
.m3-line3.active {
    animation: m3-v-line 1.5s ease-out forwards;
}

@keyframes m3-h-line {
    100% {
        width: 100%;
    }
}

@keyframes m3-v-line {
    100% {
        height: 100%;
    }
}

.m3-mask {
    width: 12.7vw;
    height: 100%;
    background: var(--m3-bg);
    /* 確保滑動時左側被蓋住，達成從線條長出的效果 */
    z-index: 99;
    position: absolute;
    pointer-events: none;
}

.m3-mask.m3-mask-L {
    width: 12.7vw;
    position: absolute;
    left: 0;
    top: 0;

}

.m3-mask.m3-mask-R {
    width: 13vw;
    position: absolute;
    right: 0;
    top: 0;
}


.m3-txt {
    position: absolute;
    top: 4vw;
    left: 71.25vw;
    width: 50vw;
    height: auto;
    z-index: 100;
}

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

.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: 9.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-clip {
    position: absolute;
    left: -4vw;
    top: 12vw;
    width: 100%;
    z-index: 15;
    margin-bottom: 10vw;
}

.m3-card {
    width: var(--cardW) !important;
    transition: transform 0.6s ease;
}

/* 獎項名稱在圖片上方 */
.m3-meta {
    margin-bottom: 20px;
}

.m3-title {
    font-family: "Lora", 'Noto Serif TC', sans-serif;
    font-size: calc(22 * var(--vw-base));
    color: var(--m3-ink);
    letter-spacing: 0.05em;
    font-weight: 600;
    text-align: left;
    display: block;
    transform: scaleX(0.95);
    transform-origin: left center;
}

.m3-thumb {
    position: relative;
    width: 100%;
    height: var(--imgH);
    overflow: hidden;
    /* 確保切掉外面模糊的邊緣 */
    transition: clip-path 0.8s cubic-bezier(.16, 1, .3, 1);
    background-color: #000;

    /* 關鍵修正：讓父層原圖尺寸歸零，防止邊緣滲漏 */
    background-size: 0 !important;
}

.m3-thumb:before {
    content: "";
    position: absolute;

    /* 關鍵修正：將範圍擴大，確保模糊的半透明邊緣在容器外 */
    inset: -20px;

    background-image: inherit;
    background-repeat: no-repeat !important;
    background-size: 200% 200%;
    background-position: center center;

    /* 模糊度 */
    filter: blur(8px);

    /* 遮罩感 */
    background-color: rgba(0, 0, 0, 0.6);
    background-blend-mode: multiply;

    z-index: 1;
    /* 確保沒有 transition 影響縮放，或是維持與父層一致 */
    pointer-events: none;
}

/* 確保獎狀圖片不受模糊影響 */
.m3-thumb img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    transition: transform 0.6s ease;
    /* 防止圖片邊緣也出現奇怪的採樣 */
    backface-visibility: hidden;
}

.m3-thumb img.imgH {
    height: 100.5%;
    width: auto;
}

.m3-thumb img.imgW {
    width: 100.5%;
    height: auto;
}


/* 圖片遮色片 */
.m3-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: #59504c;
    opacity: 0.3;
    /* 預設微暗 */
    transition: opacity 0.5s ease;
    z-index: 10;
}

.swiper-slide:hover .m3-thumb::after {
    opacity: 0;
    /* 視覺中心那張變亮 */
}

#m3-scroll {
    width: 67vw !important;
    position: absolute !important;
    left: 19vw !important;
    right: auto !important;
    top: 32vw !important;
    bottom: auto !important;
    height: 3px !important;
    margin: 0 !important;
    background: transparent !important;
    overflow: hidden !important;
    border-radius: 0 !important;
    z-index: 10;
}

#m3-scroll {
    cursor: pointer;
}

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

#m3-scroll  .swiper-scrollbar-drag{
  height: 1px !important;
  width: 100%;
  position: relative;
  background: rgba(89, 80, 76, 1);
  border-radius: 0;
  left: 0;
  top: 0;
}
/* 這是那個關鍵的「右側特別圖案」 */
.m3-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 */
#m3-scroll.is-at-end .m3-special-pattern {
  opacity: 1;
}



/* 拖曳中禁止圖片展開效果 */
.is-dragging-m3 .m3-thumb {
    clip-path: inset(var(--imgGrow) 0 0 0) !important;
}

/* 讓裝飾用的遮罩與線條不吃點擊事件 */
.m3-mask,
.m3-line1,
.m3-line2,
.m3-line3,
.m3-line4,
.m3-drag-layer,
.m3-hover-shield {
    pointer-events: none !important;
}

#m3Swiper {
    pointer-events: auto;
    /* 讓 Swiper 恢復點擊 */
    cursor: grab;
    padding-bottom: 10vw;
}

#m3Swiper:active {
    cursor: grabbing;
}


/* 防止 Main3 整體區塊被框選 */
#main3 {
    -webkit-user-select: none;
    /* Safari */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* IE10+/Edge */
    user-select: none;
    /* Standard syntax */
}

/* 確保圖片不會被滑鼠選取變藍，且無法拖動 */
#main3 img {
    pointer-events: none;
    /* 讓滑鼠事件穿透圖片，徹底無法選取/拖動 */
    -webkit-user-drag: none;
    /* 防止 Safari 拖曳圖片 */
}

/* 如果你的 Swiper 按鈕或特定連結「需要」被點擊，可以單獨放行 */
#main3 .m3-swiper-scrollbar,
#main3 a {
    pointer-events: auto;
    /* 恢復連結的點擊功能 */
}