@charset "UTF-8";
/* ========================================
works-list
======================================== */
.works-list__inner {
    width: min(1200px, 90%);
}
/* ========================================
heading
======================================== */
.works-list__heading {
    text-align: center;
    margin-bottom: 60px;
}
/* ========================================
filter
======================================== */
.works-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    margin-bottom: 70px;
    text-align: center;
}

.works-filter__button {
    border: 1px dashed #8f8f8f;
    border-radius: 999px;
    background: transparent;

    min-width: 180px;
    height: 56px;
    padding: 0 30px;

    font-size: 2rem;
    font-family: inherit;
    font-weight: 500;
    color: #555;

    cursor: pointer;
    transition: .3s;

    display: flex;
    justify-content: center;
    align-items: center;
}

.works-filter__button:hover,
.works-filter__button.is-active {
    background: #3f7d4e;
    border-color: #3f7d4e;
    color: #fff;
}

/* ========================================
grid
======================================== */
.works-archive__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 70px 30px;
}

/* ========================================
card
======================================== */
.works-card__link {
    display: block;
}

.works-archive__image {
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 20px;
    isolation: isolate;
    transform: translateZ(0);
}

.works-archive__image img {
    width: 100%;
    aspect-ratio: 1 / .72;
    object-fit: cover;
    max-height: 270px;
    display: block;
    transition: transform .4s ease;
    border-radius: 16px;
}

.works-archive__card:hover .works-archive__image img {
    transform: scale(1.05);
    border-radius: 16px;
}

.works-card__title {
    font-size: 2.5rem;
    line-height: 1.3;
    font-weight: 700;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.works-card__category {
    font-size: 1.6rem;
    color: #666;
    line-height: 1.2;
    margin-top: 15px;
}

/* ========================================
responsive
======================================== */
@media screen and (max-width: 768px) {
    .works-list {
        margin: 0;
    }

    .works-list__heading {
        margin-bottom: 40px;
    }

    .works-filter {
        gap: 12px;
        margin-bottom: 50px;
    }

    .works-filter__button {
        min-width: auto;
        width: calc(50% - 6px);
        height: 48px;
        font-size: 1.5rem;
        padding: 0 16px;
    }

    .works-archive__grid {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .works-card__title {
        font-size: 2.4rem;
    }

    .works-card__category {
        font-size: 1.5rem;
    }
}