
#hero {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background-color: #000000;
    overflow: hidden;
    will-change: opacity;
}


.fullscreen-media {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    

    width: 700px; 
    
    height: auto;
    object-fit: cover;
}

#hero-static-image { z-index: 1; }
#hero-video { z-index: 2; }
.fullscreen-media.hidden { opacity: 0; pointer-events: none; }
.fullscreen-media.visible { opacity: 1; pointer-events: auto; }


.hero-content-overlay {
    position: absolute;
    z-index: 3;
    
    /* 1. 定位與圖片完全重疊 */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* 2. 寬度與圖片完全同步 (電腦版) */
    width: 700px; 
    
    container-type: inline-size;
    aspect-ratio: 16/9; 
    
    display: flex;
    flex-direction: column;
    justify-content: center; /* 垂直置中 (圖片中心點) */
    align-items: center;     /* 水平置中 */
    
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

.hero-content-overlay.hidden { opacity: 0; transform: translate(-50%, -50%) translateY(20px); pointer-events: none; }
.hero-content-overlay.visible { opacity: 1; transform: translate(-50%, -50%) translateY(0); pointer-events: auto; }


.motto {
    position: relative;
    z-index: 10;
    font-weight: 700;
    color: #444444; 
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    
    width: 100%; 
    margin-top: 15%; 
    line-height: 1;
    white-space: nowrap;

    font-size: 5cqi;   
}

@media (max-width: 1068px) {
    .fullscreen-media, 
    .hero-content-overlay {
        width: 600px;
    }

}

@media (max-width: 734px) {
    .fullscreen-media, 
    .hero-content-overlay {
        width: 450px;
    }

}


@media (max-width: 480px) {
    .fullscreen-media, 
    .hero-content-overlay {
        width: 350px;
    }

}