/* フィルターボタン */
.works__filter {
    margin-top: 79px;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 35px;
}

.filter-btn {
    width: 200px;
    height: 59px;
    text-align: center;

    background-color: #B9CEE2;
    color: white;
    font-size: 20px;
    font-family: "Alata", sans-serif;
    font-weight: 400;
    letter-spacing: 0.1em;

    transition: 0.3s;
}

.filter-btn:hover {
    background-color: #80A6CB;
}

.filter-btn.active {
    background-color: #80A6CB;
}

/* カードレイアウト */
.works__container {
    margin-top: 80px;

    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    column-gap: 5%;
    row-gap: 40px;
}

.works-item {
    width: 47%;
    min-width: 250px;

    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/*  フェードアウト＋下方向へ  */
.works-item.hide {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
}

/*  完全非表示用  */
.works-item.hidden {
    display: none;
}

.works-img-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;

    background-color: #F1F8FF;
    max-width: 487px;
    width: 100%;
    aspect-ratio: 4.5 / 3;
    transition: background-color 0.4s ease;
}

.works-item:hover .works-img-wrapper {
    background-color: #d0e1f0;
}

.img-pf,
.img-kodomo,
.img-hug,
.img-originals,
.img-basket,
.img-hokkaido {
    width: 80%;
}

.img-jutaku,
.img-school,
.img-hakkou {
    width: 60%;
}

.img-syuusyoku {
    width: 40%;
}

.works-title {
    margin-top: 5px;
}

@media (max-width: 768px) {
    .works-item {
        width: 90%;
    }

    .works-img-wrapper {
        max-width: none;
    }
}