/* count_anime.css */

/* --- 共通：土台 --- */
.timeline-section {
    position: relative;
    background: #FCF5ED;
    overflow: clip;
}

.clock-display {
    font-weight: bold;
    color: #3b5037;
    transition: 0.3s;
}

/* --- PC版：769px以上 --- */
@media (min-width: 769px) {
    .sticky-wrapper {
        position: absolute;
        left: 0;
        width: 41.666%;
        /* Bootstrapのcol-md-5相当 */
        height: 100%;
    }

    .clock-display {
        position: sticky;
        top: 0;
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 8rem;
    }

    .work-step {
        height: 80vh;
        opacity: 0.1;
        transition: 0.5s;
    }

    .work-step.active {
        opacity: 1;
    }
}

/* --- スマホ版：768px以下 --- */
@media (max-width: 768px) {
    .sticky-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 120px;
        z-index: 9999;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(to bottom, #FCF5ED 70%, rgba(252, 245, 237, 0));
        pointer-events: none;
    }

    .clock-display {
        font-size: 3.5rem;
    }

    .content-scroll {
        margin-top: 120px;
    }

    .work-step {
        height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }
}

/* スマホでの「時計の暴走」としつけ */
@media (max-width: 768px) {

    /* 1. 時計の固定位置を下げる（タイトルを隠さないように） */
    .sticky-wrapper {
        top: 20px;
        /* 画面上部から少し離す */
        margin-bottom: 2rem;
    }

    /* 2. 時計自体のサイズをスマホ用に少し絞る */
    .clock-display {
        font-size: 2.5rem;
        /* PCより少し小さくして圧迫感を減らす */
        text-align: center;
        background: rgba(255, 255, 255, 0.8);
        /* 背景を少し透かして下の文字をチラ見せ */
        backdrop-filter: blur(5px);
        /* ガラス越しのようなお洒落な効果 */
        border-radius: 10px;
    }

    /* 3. コンテンツが時計の下に潜り込みすぎないように余白調整 */
    .work-step {
        padding-top: 10vh;
    }
}