@charset "utf-8";

.section--cheers {
    text-align: center;
    padding: 20px 16px 0;
}

.topic--cheers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 2.7rem;
    font-weight: 900;
    margin: 0 auto;
    position: relative;
}

.topic--cheers::before {
    content: "";
    display: inline-block;
    width: 50px;
    height: 50px;
    background-image: url(../images/cheers-icon.svg);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.cheers__txt {
    margin-top: 30px;
    font-size: 1.4rem;
    line-height: 1.65;
}


.nexs {
    font-size: 1.2rem;
}

.news__date {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
}

.cheers__txt a {
    display: block;
}

.news__content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border: 2px solid black;
    padding: 16px;
    border-radius: 20px;
    max-width: 315px;
    margin: 40px auto;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.next {
    font-size: 1.2rem;
}

.news__txt {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.3;
}

.news__content::after {
    display: block;
    content: '';
    width: 30px;
    height: 30px;
    background-image: url(../images/arrow.svg);
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 50%;
    right: 5px;
    transform: translateY(-50%);
}

.news__content:hover {
    transform: scale(1.02);
}


.cheers__archive {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    max-width: 600px;
    margin: 60px auto 20px;
}

.cheers-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.cheers-img:hover {
    transform: scale(1.05);
}

@media screen and (min-width: 600px) and (max-width: 1079px) {
    .cheers__txt {
        margin-top: 40px;
        font-size: 2rem;
        line-height: 1.65;
    }
}

@media screen and (min-width: 600px) and (max-width: 1079px) {
    .cheers__txt {
        margin-top: 40px;
        font-size: 2rem;
        line-height: 1.65;
    }

    .cheers-mainImg {
        max-width: 700px;
    }

}

@media screen and (min-width: 1080px) {
    .topic--cheers {
        font-size: 6rem;
    }

    .news__content {
        width: 350px;
    }

    .cheers__wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 125px;
        margin-top: 40px;

    }


    .topic--cheers::before {
        width: 111px;
        height: 111px;
    }

    .cheers__about img {
        width: 466px;
        height: auto;
        border-radius: 8px;
    }

    .cheers__txt {

        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        line-height: 1.8;
        font-size: 2.3rem;
    }

    .cheers__archive {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        /* 4列 */
        gap: 20px;
        max-width: 1000px;
        margin: 80px auto 40px;
    }
}

/* モーダル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.modal.active {
    display: flex;
}

.modal__img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
}

.modal__inner {
    text-align: center;
    color: #fff;
}

.modal__caption {
    margin-top: 20px;
    font-size: 1.4rem;
    font-weight: 400;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}