.webcountdown {
    max-width: 900px;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.webcountdown__main {
    flex: 1;
    display: flex;
    flex-direction: column;
    max-width: 300px;
    /* aspect-ratio: 1 / 1; */
    /* border-radius: 12px; */
    overflow: hidden;
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
    background: rgba(0, 0, 0, 0);
}

.webcountdown__container {
    /* box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); */
    border-radius: 12px;
    max-height: 300px;
    position: relative;
    /* flex: 1; */
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

.webcountdown__track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.webcountdown__slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    opacity: 0;
    transform: translateX(100px);
    animation: slideIn 0.8s ease-out forwards;
}

.webcountdown__slide--active {
    opacity: 1;
    transform: translateX(0);
}

.webcountdown__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.webcountdown__content {
    /* background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.4), transparent); */
    color: black;
    padding: 30px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
}

.webcountdown__title {
    color: var(--white);
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 8px;
    transform: translateY(20px);
    opacity: 0;
    animation: contentSlideIn 0.8s ease-out 0.3s forwards;
}

.webcountdown__description {
    color: var(--white);
    font-size: 16px;
    line-height: 1.5;
    transform: translateY(20px);
    opacity: 0;
    animation: contentSlideIn 0.8s ease-out 0.5s forwards;
}

.webcountdown__button {
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
    flex-shrink: 0;
    opacity: 1;
    position: relative;
    top: 50%;
    /* transform: translateY(-12%); */
}

@media (max-width: 520px) {
    .webcountdown__button {
        /* transform: translateY(-222%); */
    }
}

.webcountdown__button:hover {
    background: rgba(0, 0, 0, 0.7);
    /* transform: scale(1.1); */
    /* transform: translateY(-172%); */
}

.webcountdown__button:active {
    /* transform: scale(0.95); */
    /* transform: translateY(-172%); */
}

.webcountdown__button--hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes contentSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .webcountdown {
        margin: 10px;
        gap: 10px;
    }

    .webcountdown__main {
        border-radius: 8px;
    }

    .webcountdown__title {
        font-size: 20px;
    }

    .webcountdown__description {
        font-size: 14px;
    }

    .webcountdown__content {
        padding: 20px;
        min-height: 200px;
    }

    .webcountdown__button {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}