/* css/style.css */
:root {
    --text-color: #ffffff;
    --yellow-color: #ffed00;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    /* << 修改 */
    overflow-x: hidden;
    /* << 修改 */
    font-family: 'Josefin Sans', 'Microsoft JhengHei', '微軟正黑體', sans-serif;
    color: var(--text-color);
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.video-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    /* << 修改 */
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: linear-gradient(180deg, rgba(125, 145, 165, 0.4) 0%, rgba(205, 185, 175, 0.4) 100%);
    z-index: -1;
    padding: 20px;
    box-sizing: border-box;
}

.content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    width: 60px;
    /* Logo asterisk size for mobile */
    height: auto;
}

.main-headline {
    font-size: 2rem;
    font-weight: 200;
    line-height: 1.4;
    letter-spacing: 1px;
    margin: 0 auto 30px;
    max-width: 320px;
    /* Force wrap to two lines on mobile */
}

.tagline-image {
    display: block;
    margin-top: 20px;
}

.tagline-image img {
    width: 100%;
    max-width: 400px;
    /* Max size for mobile tagline image */
    height: auto;
}

.bottom-container {
    width: 100%;
    padding-top: 40px;
}

.coming-soon-title {
    font-size: 1.8rem;
    font-weight: 200;
    margin: 0 0 15px 0;
    letter-spacing: 1px;
}

.new-site-text {
    font-size: 0.9rem;
    line-height: 1.8;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.new-site-text a {
    color: var(--text-color);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.new-site-text a svg {
    width: 20px;
    height: 20px;
}

.new-site-text a:hover {
    transform: scale(1.1);
}

.image-link-container {
    position: relative;
    display: inline-block;
    font-size: 0;
}

.clickable-area {
    position: absolute;

    /* 水平置中 50% 的設定 */
    width: 50%;
    /* 寬度為容器的 50% */
    left: 25%;
    /* 從左邊 25% 處開始，(100%-50%)/2=25% */

    /* 垂直位置下方 6% ~ 12% 的設定 */
    bottom: 6%;
    /* 離容器底部 6% */
    height: 6%;
    /* 高度為 6% (12% - 6%) */

    /* --- 開發時建議開啟此行，方便查看點擊範圍 --- */
    /*background-color: rgba(255, 0, 0, 0.4);*/
}

footer {
    width: 100%;
    padding: 20px 0 10px;
    font-size: 0.8rem;
    font-weight: 300;
}

/* PC Version - rwd_pc.jpg */
@media (min-width: 768px) {
    .logo {
        margin-bottom: 40px;
    }

    .logo img {
        width: 80px;
        /* Logo asterisk size for PC */
    }

    .main-headline {
        font-size: 3.5rem;
        margin-bottom: 40px;
        max-width: none;
        /* Remove width constraint */
        white-space: nowrap;
        /* Ensure it stays on one line */
    }

    .tagline-image {
        margin-top: 30px;
    }

    .tagline-image img {
        max-width: 550px;
        /* Max size for PC tagline image */
    }

    .bottom-container {
        padding-top: 60px;
    }

    .coming-soon-title {
        font-size: 2.2rem;
    }

    .new-site-text {
        font-size: 1rem;
    }
}