@charset "utf-8";

/* ==================================================================

    news.css

=================================================================== */
.news {
    background-color: #EFEBE1;
}

.news__container {
    padding-top: 6rem;
    padding-bottom: 10rem;
}

.news__list {
    display: flex;
    flex-wrap: wrap;
    padding: 0 2.85rem 4.5rem;
}

.news__item {
    width: calc(100% / 3);
    padding: 0 2.15rem;
    margin-bottom: 3.5rem;
}

.news__link {
    position: relative;
    display: block;
    padding: 1.7rem;
    border: 0.3rem solid #000;
    background-color: #EDE7E2;
    transition: background-color 0.4s, border-color 0.4s;
}

.news__link::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    left: 0.6rem;
    z-index: -1;
    width: calc(100% + 0.6rem);
    height: calc(100% + 0.6rem);
    background-color: #000;
    transition: background-color 0.4s;
}

.news__image {
    width: 100%;
    height: auto;
    margin-bottom: 1.2rem;
    transition: filter 0.4s;
}

.news__date {
    width: 9.6rem;
    margin-bottom: 1rem;
    margin-left: -2rem;
    padding: 0.2rem 0 0.2rem 2rem;
    background-color: #000;
    font-size: 1.4rem;
    line-height: 1.286;
    color: #fff;
    transition: background-color 0.4s;
}

.news__text {
    font-size: 1.8rem;
    font-weight: 600;
    line-height: 1.444;
    transition: color 0.4s;
}

.news__link:hover {
    background-color: #fff;
    border-color: #5D0E0E;
}

.news__link:hover::before {
    background-color: #5D0E0E;
}

.news__link:hover .news__image {
    filter: brightness(0.5);
}

.news__link:hover .news__date {
    background-color: #5D0E0E;
}

.news__link:hover .news__text {
    color: #5D0E0E;
}

@media screen and (max-width: 1180px) {
    .news__list {
        margin: 0 -2.15rem;
        padding: 0 0 4.5rem;
    }
}

/* SP用
----------- */
@media only screen and
(max-width : 767px) {
    .news__container {
        padding-top: 4rem;
        padding-bottom: 7rem;
    }

    .news__list {
        display: block;
        margin: 0;
        padding: 0 0 3rem;
    }

    .news__item {
        width: 100%;
        padding: 0;
        margin-bottom: 3rem;
    }

    .news__link {
        padding: 1.1rem 1.1rem 1.8rem;
    }

    .news__image {
        margin-bottom: 1rem;
    }

    .news__date {
        width: 10rem;
        margin-bottom: 1.5rem;
        margin-left: -1.4rem;
        padding: 0.2rem 0;
        text-align: center;
        font-size: 1.3rem;
        line-height: 1.231;
    }

    .news__text {
        font-size: 1.5rem;
        line-height: 1.4;
    }
}