.countdown-timer {
    position: fixed;
    bottom: 165px;
    right: 20px;
    background: #0099FFCC;
    color: #fff;
    padding: 10px;
    border-radius: 10px;
    font-size: 14px;
    min-width: 280px;
    text-align: center;
    z-index: 1000;
    box-sizing: border-box;
}
.countdown-timer.countdown-hidden {
    display: none !important;
}
/* ×閉じるボタン */
.countdown-close {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 28px;
    height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid #333;
    border-radius: 2px;
    background: #fff;
    color: #0099ff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: opacity 0.2s;
}
.countdown-close:hover {
    opacity: 0.8;
}
.timer-label {
    margin-bottom: 10px;
    text-align: center;
}
.timer-label-main,
.timer-label-sub {
    display: block;
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    color: #FFF95E;
    /* text-shadowで文字の周りに縁（ストローク風）を付与 */
    text-shadow:
        1px 1px 0 #222,
        1px -1px 0 #222,
        -1px 1px 0 #222,
        -1px -1px 0 #222,
        1px 0 0 #222,
        -1px 0 0 #222,
        0 1px 0 #222,
        0 -1px 0 #222;
}
.timer-label-sub {
    font-size: 16px;
}
.timer-content {
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}
.timer-item {
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
}
.timer-content .timer-item span:first-child {
    background: #FFF95E;
    color: #0099FF;
    border: 1px solid #222;
    padding: 0 6px;
    border-radius: 3px;
    display: inline-block;
    text-align: center;
    font-size: 20px;
    line-height: 150%;
    font-weight: bold;
}
.timer-unit {
    font-size: 16px;
    color: #fff;
    font-weight: bold;
    line-height: 150%;
    /* text-shadowで文字の周りに縁（ストローク風）を付与 */
    text-shadow:
        1px 1px 0 #222,
        1px -1px 0 #222,
        -1px 1px 0 #222,
        -1px -1px 0 #222,
        1px 0 0 #222,
        -1px 0 0 #222,
        0 1px 0 #222,
        0 -1px 0 #222;
}

a#countdownTimer .timer-label {
    margin-bottom: 0;
}
a#countdownTimer:hover {
    text-decoration: none;
    opacity: 0.7;
}
a#countdownTimer .countdown-close {
    width: 24px;
    height: 24px;
}

/* スマートフォン対応：デフォルトは最下部に吸着、floatArea表示時はその上に表示 */
@media (max-width: 768px) {
    .countdown-timer {
        position: fixed;
        bottom: 120px;
        right: 0;
        padding: 1.33vw 2.66vw;
        border-radius: 0;
        min-width: auto;
        width: 60%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 1.33vw;
        opacity: 1;
    }
    a#countdownTimer {
        padding: 2.66vw;
    }
    .countdown-timer.show {
        opacity: 1 !important;
        bottom: 17.33vw;
    }
    /* ×閉じるボタン */
    .countdown-close {
        top: -2.66vw;
        right: 1.66vw;
        width: 4.26vw;
        height: 4.26vw;
        border: 0.26vw solid #333;
        border-radius: 0.53vw;
        font-size: 3.73vw;
        box-sizing: border-box;
    }
    .countdown-close:hover {
        opacity: 0.8;
    }
    .timer-label {
        margin-bottom: 0;
        text-align: left;
        max-width: max-content;
        width: -webkit-fill-available;
    }
    .timer-label-main,
    .timer-label-sub {
        font-size: 3.2vw;
        line-height: 150%;
        /* text-shadowで文字の周りに縁（ストローク風）を付与 */
        text-shadow:
            1px 1px 0 #222,
            1px -1px 0 #222,
            -1px 1px 0 #222,
            -1px -1px 0 #222,
            1px 0 0 #222,
            -1px 0 0 #222,
            0 1px 0 #222,
            0 -1px 0 #222;
    }
    a#countdownTimer .timer-label-main,
    a#countdownTimer .timer-label-sub {
        font-size: 4.2vw;
    }
    .timer-content {
        gap: 0.53vw;
        justify-content: flex-start;
    }
    .timer-item {
        display: inline-flex;
        align-items: baseline;
        gap: 0.53vw;
    }
    .timer-content .timer-item span:first-child {
        padding: 0 1.06vw;
        border-radius: 0.53vw;
        font-size: 4.26vw;
    }
    .timer-unit {
        font-size: 3.73vw;
        /* text-shadowで文字の周りに縁（ストローク風）を付与 */
        text-shadow:
            1px 1px 0 #222,
            1px -1px 0 #222,
            -1px 1px 0 #222,
            -1px -1px 0 #222,
            1px 0 0 #222,
            -1px 0 0 #222,
            0 1px 0 #222,
            0 -1px 0 #222;
    }
}
