:root {
    --c-cream: #FAF6EC;
    --c-cream-deep: #F6EFDC;
    --c-ink: #3D3630;
    --c-ink-soft: #6B6258;
    --c-red: #C2273B;
    --c-pink: #F6C9CB;
    --c-pink-soft: #FBE9E7;

    --font-display: "Noto Sans TC", "PMingLiU", serif;
    --font-body: "Noto Sans TC", "Microsoft JhengHei", sans-serif;

    --container: 1100px;
    --header-h: 64px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    font-family: var(--font-body);
    color: var(--c-ink);
    background: var(--c-cream);

    font-weight: 300;
    line-height: 2;
    letter-spacing: .05em;
    font-size: 16px;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

.font_Regular {
    font-family: 'Noto Sans TC', sans-serif;
    font-weight: 400;

}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section {
    padding: 72px 0;
    position: relative;
}

.reveal {
    opacity: 1;
    transform: none;
}

.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 1.2s cubic-bezier(.25, .46, .45, .94),
        transform 1.2s cubic-bezier(.25, .46, .45, .94);
    transition-delay: var(--d, 0s);
    will-change: opacity, transform;
}

.js .reveal.is-in {
    opacity: 1;
    transform: none;
}


.hover-scale {
    transition: transform .3s cubic-bezier(.25, .46, .45, .94);
}

.hover-scale:hover,
.hover-scale:focus-visible {
    transform: scale(1.08);
}


.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(250, 255, 255, .90);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.site-header .container {
    height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand img {
    height: 40px;
    width: auto;
}

.main-nav {
    display: flex;
    gap: 32px;
    font-size: 21px;
    align-items: center;
}

.main-nav a {
    text-decoration: none;
    padding: 4px 2px;
    border-bottom: 2px solid transparent;
    transition: border-color .25s;
}

.main-nav a:hover,
.main-nav a:focus-visible {
    border-bottom-color: var(--c-red);
}

.nav-sns {
    display: flex;
    gap: 10px;
    margin-left: 8px;
}

.nav-sns a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    /*background: var(--c-red);
    color: #fff;*/
    display: grid;
    place-items: center;
    font-size: 13px;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 8px;
    right: 8px;
    height: 2px;
    background: var(--c-ink);
    transition: transform .25s, opacity .25s;
}

.nav-toggle span {
    top: 19px;
}

.nav-toggle span::before {
    top: -8px;
    left: 0;
    right: 0;
}

.nav-toggle span::after {
    top: 8px;
    left: 0;
    right: 0;
}

/* ============================================================
  1-1. 捐款圓標 icon-move
============================================================ */
.donate-float {
    position: fixed;
    z-index: 90;
    right: 50px;
    bottom: 120px;
    width: 128px;
    text-decoration: none;
}

.donate-float img {
    /*filter: drop-shadow(0 6px 16px rgba(194, 39, 59, .25));*/
}

/* ============================================================
  2. Hero 主視覺
============================================================ */
.hero {
    position: relative;
    /*padding: 40px 0 96px;*/
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    height: 700px;
    background: url("images/01-bg.webp") no-repeat top center / cover;
    -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
    mask-image: linear-gradient(#000 72%, transparent 100%);
}

.hero-title {
    width: min(520px, 70%);
    margin-top: 100px;
    margin-bottom: -60px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 32px 56px;
    align-items: start;
}

.intro-blob {
    background: url("images/01-text-bg.webp") no-repeat center / 115% 115%;
    padding: 48px 120px 60px;
    font-size: 18px;
}

.intro-blob .title-s {
    width: 280px;
    margin-bottom: 18px;
}

.intro-blob p {
    margin-bottom: 1.4em;
}

.intro-blob p:last-child {
    margin-bottom: 0;
}

.photo-title {
    width: 30%;
    margin: 300px 0 20px 0;
}


.hero-swiper {
    grid-column: 1 / -1;
}

.hero-slide {
    grid-template-columns: 1.05fr .95fr;
    gap: 32px 56px;
}

.hero-slide .slide-text p {
    margin-bottom: .9em;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(61, 54, 48, .5);
}

.hero-slide .slide-text p.lead {
    font-weight: 700;
    font-size: 16.5px;
    text-decoration-thickness: 2px;
}

.hero-slide .slide-photo {
    width: min(420px, 100%);
    margin: 0 auto;
}

.hero-slide .slide-photo img {
    filter: drop-shadow(0 14px 28px rgba(120, 90, 40, .18));
}

.hero-controls {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 4px;
}

.hero-controls button {
    border: 0;
    background: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 12px;
}

.hero-controls button img {
    width: 40px;
    height: auto;
}

.hero-controls button:focus-visible {
    outline: 2px solid var(--c-red);
    outline-offset: 2px;
}

.hero-controls button[aria-pressed="true"] {
    opacity: .35;
}


.hero-carousel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 32px 56px;
    align-items: end;
}

.hero-text-swiper {
    min-width: 0;
    width: 100%;
    padding-bottom: 24px;
}

.slide-text p {
    margin-bottom: .9em;
    font-size: 15px;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(61, 54, 48, .5);
}

.slide-text p.lead {
    font-weight: 700;
    font-size: 16.5px;
    text-decoration-thickness: 2px;
}

.photo-title {
    display: block;
    width: 280px;
    margin: 0 auto 20px;
}

.hero-photo-box {
    position: relative;
    width: min(420px, 100%);
    margin: 0 auto;
}

.hero-photo-swiper {
    min-width: 0;
    width: 100%;
    aspect-ratio: 537/657;
    position: relative;
    z-index: 1;
}

.hero-photo-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(120, 90, 40, .18));
}


.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    display: flex;
    gap: 22px;
}

.hero-controls button {
    border: 0;
    background: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 10px;
    transition: transform .3s ease;
}

.hero-controls button:hover {
    transform: scale(1.08);
}

.hero-controls button img {
    width: 36px;
    height: auto;
    display: block;
}

.hero-controls button:focus-visible {
    outline: 2px solid var(--c-red);
    outline-offset: 2px;
}

.hero-controls button[aria-pressed="true"] {
    opacity: .35;
}

.hero-text-swiper:not(.swiper-initialized) .swiper-wrapper,
.hero-photo-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: block;
    height: 100%;
}

.hero-photo-swiper:not(.swiper-initialized) .swiper-slide {
    height: 100%;
}

.hero-text-swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+2),
.hero-photo-swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+2) {
    display: none;
}

.hero-carousel {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 32px 56px;
    align-items: end;
}

.hero-text-swiper {
    min-width: 0;
    width: 100%;
    padding-bottom: 24px;
}

.slide-text p {
    margin-bottom: .9em;
    font-size: 16px;
    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-color: rgba(61, 54, 48, .5);
}

.slide-text p.lead {
    font-weight: 700;
    font-size: 16.5px;
    text-decoration-thickness: 2px;
}

.photo-title {
    display: block;
    width: 180px;
    margin: 300px 0 10px 0;
}

.hero-photo-box {
    position: absolute;
    width: min(420px, 100%);
    margin: 0 auto;
}

.hero-photo-swiper {
    min-width: 0;
    width: 100%;
    aspect-ratio: 537/657;
    position: relative;
    z-index: 1;
}

.hero-photo-swiper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 14px 28px rgba(120, 90, 40, .18));
}

.hero-left {
    width: 353px;
    margin: 14px 0 0 230px;
    height: 210px;
    font-size: 21px;
}

.hero-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 5%;
    transform: translateX(-50%);
    display: flex;
    gap: 22px;
}

.hero-controls button {
    border: 0;
    background: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 10px;
    transition: transform .3s ease;
}

.hero-controls button:hover {
    transform: scale(1.08);
}

.hero-controls button img {
    width: 36px;
    height: auto;
    display: block;
}

.hero-controls button:focus-visible {
    outline: 2px solid var(--c-red);
    outline-offset: 2px;
}

.hero-controls button[aria-pressed="true"] {
    opacity: .35;
}

   Swiper JS 或 CSS 沒載入（斷網、CDN 失敗、腳本出錯）時：
   仍顯示第一組文字與第一張照片，版面不會垮、不會整塊消失 */
.hero-text-swiper:not(.swiper-initialized) .swiper-wrapper,
.hero-photo-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: block;
    height: 100%;
}

.hero-photo-swiper:not(.swiper-initialized) .swiper-slide {
    height: 100%;
}

.hero-text-swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+2),
.hero-photo-swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+2) {
    display: none;
}

/* ============================================================
  3. 影片區
============================================================ */
.video-wrap {
    /*max-width: 880px; margin:0 auto;*/
    padding: 50px 10px;
    /*border-radius: 28px;*/
    background: url(images/02-video-bg.webp) no-repeat top center / cover;
    /*background: linear-gradient(100deg,#f9d976,#f3a6b0 30%,#c9b6e4 55%,#9edbe0 80%,#bfe3b4);*/
    /*filter: drop-shadow(0 10px 30px rgba(180,150,80,.25));*/
}

.video-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
    aspect-ratio: 16/9;
    border-radius: 18px;
    overflow: hidden;
    background: #000;
}

.video-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-inner iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.video-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, .85);
    color: var(--c-red);
    font-size: 26px;
    display: grid;
    place-items: center;
}

/* ============================================================
  4. 區塊標題
============================================================ */
.sec-head {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 44px;
}

.sec-head img {
    margin: 30px 0 30px 0;
    height: 44px;
    width: auto;
}

.sec-head-1 {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 44px;
}

.sec-head-1 img {
    /*margin: 30px 0 30px 0;*/
    height: 44px;
    width: auto;
}

.sec-line {
    flex: 1;
    max-width: 460px;
    height: 2px;
    background: var(--c-red);
    position: relative;
}

.sec-line::before,
.sec-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 8px;
    background: var(--c-red);
    border-radius: 50%;
    transform: translateY(-50%);
}

.sec-line::before {
    left: 0;
}

.sec-line::after {
    right: 0;
}

.curve-deco {
    position: absolute;
    width: 216px;
    left: -50px;
    top: -75px;
    pointer-events: none
}

/* ============================================================
  5. 活動內容
============================================================ */
.about-grid {
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    gap: 48px;
    align-items: center;
    font-size: 21px;
    font-weight: 100;
}

.about-grid+.about-grid {
    margin-top: 56px;
}

.about-grid p+p {
    margin-top: 1.3em;
}

.about-illust {
    width: min(560px, 100%);
    margin: 0 auto;
}

.ambassador {
    text-align: center;
}

.ambassador img {
    width: min(550px, 100%);
    align-items: right;
    margin: 0 auto;
}

.ambassador figcaption a {
    font-size: 14px;
    color: var(--c-red);
    text-underline-offset: 4px;
}

/* 大使照片壓在參加辦法卡片「後面」：
   照片下緣延伸進卡片範圍（負 margin），卡片 z-index 較高蓋在照片上 */
.about-section {
    padding-bottom: 0;
    z-index: 0;
}

.ambassador {
    position: relative;
    z-index: 0;
    margin-bottom: -96px;
}

/* ============================================================
  6. 參加辦法
============================================================ */
.rules-section {
    background: url("images/03-bg.webp") no-repeat center / cover;
    padding-top: 96px;
}

.rules-box-bg {
    /*background: url("images/03-text-bg.webp") no-repeat center / 100%;*/
}

.rules-box {
    padding-top: 50px;
}

/*.rules-box dl{
  width: 900px;
}*/
.rules-card {
    width: auto;
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    /* 蓋在大使照片之上 */
    background: var(--c-pink-soft);
    /* 03-text-bg 改以 CSS 呈現，可隨文字量伸縮 */
    border-radius: 44px;
    padding: 56px 52px;
    box-shadow: 0 16px 48px rgba(194, 39, 59, .08);
    backdrop-filter: blur(10px);
    font-size: 21px;
}

.rules-card .sec-head {
    margin-bottom: 28px;
}

.rules-row {
    display: grid;
    grid-template-columns: 106px 0.9fr;
    gap: 28px;
    padding: 18px 0;
}

.rules-row dt {
    font-weight: 400;
    font-size: 21px;
}

.rules-row dd ul {
    padding-left: 1.2em;
}

.rules-row dd li {
    margin-bottom: .4em;
}

.rules-note {
    margin-top: 28px;
    padding-top: 22px;
    padding-bottom: 50px;
    border-top: 2px solid var(--c-red);
    color: var(--c-red);
    font-size: 21px;
    text-align: center;
}

/* ============================================================
  7. 徵件時間：響應式時間軸（純 CSS）
============================================================ */
.timeline {
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    position: relative;
    margin-top: 56px;
}

.timeline::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 7%;
    right: 7%;
    top: 96px;
    border-top: 5px dashed var(--c-pink);
}

.tl-item {
    position: relative;
    z-index: 1;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.tl-label {
    color: var(--c-red);
    font-weight: 700;
    margin-bottom: 14px;
}

.tl-circle {
    width: 132px;
    height: 132px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #FADADB, var(--c-pink));
    display: grid;
    place-items: center;
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 21px;
    line-height: 1.45;
}

.tl-note {
    margin-top: 14px;
    font-size: 13px;
    line-height: 1.7;
    color: var(--c-red);
    max-width: 230px;
}

/* ============================================================
  8. 上傳寶寶出生照片
============================================================ */
.upload-grid {
    display: grid;
    grid-template-columns: 0.8fr 3.2fr;
    gap: 24px 48px;
    align-items: center;
}

.upload-left {
    margin-top: -200px;
    text-align: center;
}

/* 04-upload-title 整張圖即為超連結 */
.upload-link {
    display: inline-block;
    transition: opacity .3s ease, transform .3s ease;
}

.upload-link:hover {
    opacity: .7;
    transform: scale(1.03);
    /* 想同時保留放大就留這行，不要就刪掉 */
}

.upload-link img {
    width: min(200px, 100%);
    margin: 50px auto 0;
}

.upload-right img {
    width: 100%;
}

/* ============================================================
  9. 歷屆回顧
     圖層順序（依標註）：曲線/光暈 z1 → 直式標題 z2 → 照片輪播 z3
============================================================ */

.review-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 20px;
}

.review-head {
    font-family: "Noto Serif TC";
    font-weight: 400;
    font-size: clamp(32px, 2.4vw, 21px);
    text-decoration: underline;
    text-underline-offset: 8px;
    margin-bottom: 6px;
}

/* ---------- 每一屆：兩欄圖文 ---------- */
.review-item {
    /* minmax(0,1fr)：鎖住欄寬，防 Swiper 以圖片原寬撐爆版面（重要！） */
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 32px 56px;
    align-items: center;
    padding: 56px 0;
    position: relative;
    font-size: 21px;
}

.review-text p+p {
    margin-top: 1.2em;
}

/* 圖文左右交錯：偶數屆照片換到左邊 */
.review-item:nth-of-type(even) .review-wrap {
    order: -1;
}

/* ---------- 照片組：輪播＋直式標題＋光暈 ---------- */
.review-media {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.review-media .swiper {
    position: relative;
    z-index: 3;
    /* 照片輪播 z3 */
    flex: 1;
    min-width: 0;
    width: 100%;
    /* min-width:0：flex 內 Swiper 必加 */
    aspect-ratio: 524/354;
    /* 固定比例：初始化前後不跳版 */
    border-radius: 6px;
    overflow: hidden;
    /*box-shadow: 0 10px 30px rgba(120, 90, 40, .18);*/
}

.review-media .swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 彎曲標題1貼近照片 */
.review-vtitle-1 {
    position: absolute;
    z-index: 2;
    width: 196px;
    flex: none;
    /* margin-left: -6px; */
    margin: -38px 0 0 347px;
}

/* 彎曲標題2貼近照片 */
.review-vtitle-2 {
    position: absolute;
    z-index: 2;
    width: 196px;
    flex: none;
    /* margin-left: -6px; */
    margin: -38px 0 0 347px;
}

/* 彎曲標題2貼近照片 */
.review-vtitle-3 {
    position: absolute;
    z-index: 2;
    width: 215px;
    flex: none;
    /* margin-left: -6px; */
    margin: -43px 0 0 331px;
}

/* 直式標題 z2 貼近照片 */
.review-caption {
    margin-top: 0px;
    font-size: 16px;
    color: var(--c-ink2);
    text-align: right;
}

/* 粉紅光暈：純 CSS radial-gradient（取代 05-circle 切圖） */
.glow {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    /* 光暈 z1 壓在照片後當點綴 */
    width: 184px;
    height: 184px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 169, 175, .55), rgba(246, 169, 175, 0) 80%);
}

/* 紅色手繪曲線：浮在最上層 */
.review-curve {
    position: absolute;
    z-index: 4;
    pointer-events: none;
    opacity: .9;
}

/* ---------- 保底樣式 ----------
   Swiper 沒載入（斷網、CDN 失敗、腳本出錯）時：
   顯示每屆第一張照片、版面不垮，至少看得到內容 */
.review-swiper:not(.swiper-initialized) .swiper-wrapper {
    display: block;
    height: 100%;
}

.review-swiper:not(.swiper-initialized) .swiper-slide {
    height: 100%;
}

.review-swiper:not(.swiper-initialized) .swiper-slide:nth-child(n+2) {
    display: none;
}

/* ============================================================
  10. 主辦 / 合作單位、Footer
============================================================ */
.org {
    background: var(--c-cream-deep);
    border-radius: 60px 60px 0 0;
}

.org-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 28px;
    margin-bottom: 36px;
    font-size: 21px;
}

.org-row:last-child {
    margin-bottom: 0;
}

.org-row h3 {
    font-size: 21px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.org-body>img {
    height: 60px;
    width: auto;
    margin-bottom: 16px;
}

.org-quote {
    color: var(--c-ink-soft);
    margin: 1em 0;
}

.partner-logos {
    display: flex;
    /*gap: 28px;*/
    align-items: start;
}

.partner-logos img {
    height: 56px;
    width: auto;
}

.site-footer {
    text-align: center;
    padding: 64px 20px 40px;
}

.back-top {
    display: inline-grid;
    place-items: center;
    text-decoration: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1.5px solid var(--c-ink);
    font-size: 18px;
    margin-bottom: 32px;
}

.footer-logo {
    width: 390px;
    margin: 0 auto 24px;
}

.copyright {
    font-size: 12px;
    color: var(--c-ink-soft);
}

/* picture 容器：預設 inline，需 block 才能置中；內部 img 撐滿 */
picture {
    display: block;
}

picture img {
    width: 100%;
    height: auto;
    display: block;
}

/* ★ 最強保險：無論任何引擎/情況，輪播容器都不得超過這個高度，
   徹底杜絕「輪播撐爆成整片色塊佔滿畫面」 */
.review-swiper {
    max-height: 60vh;
}

.hero-photo-swiper {
    max-height: 80vh;
}

.review-swiper .swiper-slide,
.hero-photo-swiper .swiper-slide {
    max-height: inherit;
}

/* 手機版 Hero 背景（預設不顯示，手機才開） */
.hero-bg-m {
    display: none;
}

/* ============================================================
   修正：手機版選單「首頁小房子」icon 沒顯示（寬高為0）
============================================================ */
.nav-sns a {
    width: auto;
    height: auto;
}

.nav-sns img {
    width: 28px;
    height: 28px;
    display: block;
}

/* ============================================================
   背景音樂切換按鈕（選單內，首頁圖示左方）
============================================================ */
.music-btn {
    width: 28px;
    height: 28px;
    padding: 4px 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform .25s ease, opacity .25s ease;
}

.music-btn img {
    width: 28px;
    height: 28px;
    display: block;
}

.music-btn:hover {
    transform: scale(1.12);
}

.music-btn:focus-visible {
    outline: 2px solid var(--c-red);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================================
   浮動回到頂端按鈕
============================================================ */
.back-top-float {
    display: none;
    position: fixed;
    z-index: 89;
    right: 50px;
    bottom: 291px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: none;
    border: 1.5px solid var(--c-ink);
    place-items: center;
    font-size: 18px;
    text-decoration: none;
    color: var(--c-ink);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity .3s ease, transform .3s ease;
}

.back-top-float.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.back-top-float:hover {
    transform: translateY(-3px) scale(1.06);
}



@media (max-width: 1500px) {
    .donate-float {
        right: 48px;
    }

    .back-top-float {
        right: 48px;
    }
}


@media (max-width: 1100px) {
    .nav-toggle {
        display: block;
    }

    .site-header {
        background: rgba(255, 255, 255, .2);
        backdrop-filter: none;
    }

    .site-header .container>a img {
        height: 37px;
        width: auto;
        opacity: 10;
    }

    .main-nav {
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 8px 0 16px;
        background: rgba(255, 255, 255, .8);
        border-bottom: 1px solid rgba(0, 0, 0, .06);
        display: none;
        backdrop-filter: blur(6px);
    }

    .main-nav.is-open {
        display: flex;
    }

    .main-nav a {
        padding: 12px 24px;
        width: 100%;
        text-align: center;
    }

    .nav-sns {
        margin: 8px 0 0;
    }

    .donate-float {
        width: 25vw;
        max-width: 140px;
        min-width: 92px;
        right: 14px;
        bottom: 76px;
    }

    .hero {
        padding-top: 16px;
    }

    .hero-grid,
    .hero-slide {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .intro-blob {
        padding: 44px 30px 52px;
    }

    .hero-slide .slide-photo {
        order: -1;
    }

    .hero-carousel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-right {
        order: -1;
    }

    .hero-text-swiper {
        padding-bottom: 0;
    }

    .hero-carousel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .hero-right {
        order: -1;
    }

    .hero-text-swiper {
        padding-bottom: 0;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ambassador {
        margin-bottom: -56px;
    }

    .rules-card {
        width: auto;
        max-width: 100%;
        padding: 36px 24px;
        border-radius: 30px;
        font-size: 17px;
    }

    .rules-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 0;
    }

    .rules-row dt {
        color: var(--c-red);
    }

    .timeline {
        flex-direction: column;
        gap: 36px;
        padding-left: 4px;
        margin-top: 36px;
    }

    .timeline::before {
        left: 64px;
        right: auto;
        top: 20px;
        bottom: 20px;
        border-top: 0;
        border-left: 5px dashed var(--c-pink);
    }

    .tl-item {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 20px;
    }

    .tl-label {
        margin: 0;
        order: 2;
        min-width: 70px;
    }

    .tl-circle {
        width: 112px;
        height: 112px;
        font-size: 18px;
        flex: none;
    }

    .tl-note {
        order: 3;
        margin: 0;
    }

    .upload-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .upload-right {
        margin: 0 -20px;
        overflow: hidden;  
    }

    .upload-right .upload-link,
    .upload-right picture,
    .upload-right img {
        display: block;
        width: 100%;
        margin: 0;
    }


    .upload-buttom img {
        transform: scale(1.15);
    }


    .review-item {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 32px 0;
    }

    .review-item:nth-of-type(even) .review-wrap {
        order: 0;
    }

    .review-curve {
        display: none;
    }

    .review-vtitle {
        width: 52px;
    }

    .org-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .desktop-only {
        display: none !important;
    }
 
    .hero-grid {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }

    .hero-grid #photos {
        order: 1;
        width: 100%;
    }

    .hero-grid .intro-blob {
        order: 0;
        width: 100%;
    }

  
    .photo-title {
        width: 200px;
        margin: 20px 0;
        display: block;
    }

 
    .hero-photo-box {
        position: relative;
        width: min(340px, 90%);
        margin: 10px auto;
    }

    .hero-photo-swiper {
        aspect-ratio: 537 / 657;
        height: auto;
    }

    .hero-photo-swiper img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

 
    .hero-controls {
        position: absolute;
        z-index: 10;
        left: 50%;
        bottom: 4%;
        transform: translateX(-50%);
        display: flex;
        gap: 20px;
    }

    .hero-controls button img {
        width: 34px;
        height: auto;
    }

    .hero-carousel {
        display: block !important;
        margin-top: 20px;
    }

    .hero-carousel .hero-left {
        width: 100%;
    }

    .slide-text {
        text-align: center;
        font-size: 15px;
    }

    .slide-text p.lead {
        font-size: 16.5px;
        font-weight: 700;
    }

    .hero-text-swiper {
        width: 100%;
    }

    .hero-left {
        width: 333px;
        margin: 14px 0 0 0px;
        height: 300px;
        font-size: 21px;
    }

    .hero-bg {
        display: none;
    }


    .hero-bg-m {
        display: block;
        position: absolute;
        inset: 0;
        z-index: -1;
        height: 780px;
        background: url("images/01-bg-m.webp") no-repeat top center / cover;
        -webkit-mask-image: linear-gradient(#000 82%, transparent 100%);
        mask-image: linear-gradient(#000 82%, transparent 100%);
    }

    .ambassador {
        text-align: center;
        margin-bottom: 0;
    }

    .ambassador picture {
        width: min(320px, 80%);
        margin: 0 auto;
    }


    .about-illust {
        width: 100%;
    }

    .timeline-img {
        width: 100% !important;
        height: auto !important;
    }

    .review-media {
        display: flex;
        position: relative;
        align-items: center;
        gap: 8px;
        padding-right: 0;
    }

    .review-media .swiper {
        flex: 1;
        min-width: 0;
        width: auto;
        aspect-ratio: auto;
        aspect-ratio: 524/354;
        overflow: hidden;
    }

    .review-media .swiper .swiper-slide {
        overflow: hidden;
    }

    .review-media .swiper .swiper-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

    .review-vtitle-1,
    .review-vtitle-2,
    .review-vtitle-3 {
        position: static;
        flex: none;
        margin: 0;
        transform: none;
        width: 42px;
        align-self: center;
    }

    .review-caption {
        text-align: center;
        margin-top: 8px;
    }

    .glow {
        width: 120px !important;
        height: 120px !important;
    }



    .main-nav {
        z-index: 200;
        background: #FAF6EC;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    }

    .hero-bg {
        height: auto;
        inset: 0 0 auto 0;
        aspect-ratio: 736 / 1780;
        background: url("images/01-bg-m.webp") no-repeat top center / 100% auto;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .hero-title {
        position: relative;
        z-index: 2;
        width: 100%;
        margin: 180px auto 0;
        display: block;
    }


    .intro-blob {
        background: none;
        padding: 14px 24px 40px;
        margin: 0;
        width: 100%;
        font-size: 17px;
        position: relative;
        z-index: 1;
    }

    .intro-blob .title-s {
        width: 260px;
        margin: 0 auto 20px;
        display: block;
    }

    .intro-blob p {
        text-align: center;
        line-height: 2;
        margin-bottom: 1.6em;
    }

    .video-wrap {
        padding: 30px 10px;
    }

    .video-box-m {
        padding: 0px 0 72px 0;

    }

    .curve-deco {
        left: 10px;
    }

    .sec-head img {
        margin: 0;
    }

    .sec-head-1 img {
        margin: -10px 0 30px 50px;
        height: 44px;
        width: auto;
    }


    .about-section .curve-deco {
        /*display: none; */
    }

    .about-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .about-illust {
        width: min(420px, 90%);
        margin: 0 auto;
    }

    .about-grid .ambassador {
        order: 2;
    }

    .about-grid>p.reveal {
        order: 1;
    }

    .about-grid .desktop-only {
        display: none;
    }


    .ambassador {
        margin: 0 -20px;
        text-align: center;
    }

    .ambassador picture,
    .ambassador img {
        width: 100%;
        height: auto;
        display: block;
        margin: 0;
    }


    .review-section {
        padding: 40px 20px;
    }

    .review-head {
        font-size: 22px;
        margin-bottom: 8px;
        text-align: left;
    }

    .review-item {
        display: flex;
        flex-direction: column;
        gap: 14px;
        padding: 28px 0;
    }

    .review-item:nth-of-type(even) .review-wrap {
        order: 0;
    }

    .review-text {
        margin-left: 0 !important;
    }

    .review-text p {
        font-size: 17px;
    }

    .review-curve {
        display: none !important;
    }

    .review-media {
        position: relative;
        display: flex;
        align-items: center;
        gap: 8px;
        padding-right: 0;
    }

    .review-media .swiper {
        position: relative;
        z-index: 3;
        flex: 1;
        min-width: 0;
        width: auto;
        aspect-ratio: auto;
        aspect-ratio: 524/354;
        border-radius: 6px;
        overflow: hidden;
    }

    .review-media .swiper .swiper-slide img {
        width: 100%;
        height: auto;
        display: block;
    }

    .review-vtitle-1,
    .review-vtitle-2,
    .review-vtitle-3 {
        display: none !important;
    }

    .review-media .swiper {
        flex: 1 1 100%;
        width: 100%;
    }

    .glow {
        z-index: 1;
        width: 120px !important;
        height: 120px !important;
    }

    .review-caption {
        text-align: center;
        margin-top: 8px;
        font-size: 13px;
    }


    .review-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 14px;
    }

    .review-item:nth-of-type(even) .review-wrap {
        order: 0 !important;
    }

    .review-text {
        width: 100%;
        margin: 0 !important;
    }


    .review-wrap {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .review-media {
        display: block !important;
        position: relative;
        width: 100%;
        max-width: 400px;
        margin: 0 auto !important;
    }


    .review-media .swiper {
        width: 100% !important;
        max-width: 400px;
        margin: 0 auto !important;
        aspect-ratio: 1032 / 692 !important;
        height: auto !important;
        border-radius: 8px;
        overflow: hidden;
    }

    .review-media .swiper .swiper-wrapper {
        height: auto !important;
    }

    .review-media .swiper .swiper-slide {
        height: auto !important;
    }

    .review-media .swiper .swiper-slide img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        display: block;
    }


    .review-vtitle-1,
    .review-vtitle-2,
    .review-vtitle-3,
    .review-curve {
        display: none !important;
    }

    .glow {
        display: none !important;
    }

    .review-caption {
        text-align: center !important;
        margin-top: 8px;
    }


    .hero-photo-box {
        margin: 0 auto !important;
    }

    .hero-text-swiper,
    .hero-carousel {
        text-align: center;
    }

    .slide-text {
        text-align: center !important;
    }

    .nav-sns {
        justify-content: center;
        margin: 12px 0 4px;
    }

    .nav-sns img {
        width: 32px;
        height: 32px;
    }

    .music-btn,
    .music-btn img {
        width: 32px;
        height: 32px;
    }

    .back-top-float {
        display: grid;
        width: 40px;
        height: 40px;
        font-size: 16px;
        right: calc(14px + clamp(92px, 25vw, 140px) / 2 - 20px);
        bottom: 20px;
    }


    .video-wrap {
        margin-left: -20px;
        margin-right: -20px;
        max-width: none;
        border-radius: 0;
    }

    .rules-note {
        font-size: 17px;
        text-align: left;
    }

    .org-row {
        font-size: 17px;
    }

    .music-btn {
        padding: 10px 0px;
    }

    .about-grid {
        font-size: 17px;
        font-weight: 300;
    }
}


@media (max-width: 380px) {
    .review-vtitle-1,
    .review-vtitle-2,
    .review-vtitle-3 {
        width: 36px;
    }
}



@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hover-scale {
        transition: none;
    }

    .hover-scale:hover {
        transform: none;
    }
}
