@charset "utf-8";

.works {
    background-color: #F8F8F8;
}

.center {
    text-align: center;
}

.gallery {
    margin: 129px 22% 0;
}

.gallery-filter {
    margin-top: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.gallery-filter p {
    font-size: 1.4rem;
    letter-spacing: 0.07rem;
}

.gallery-filter button {
    border-radius: 50px;
    border: 0.5px solid #333;
    padding: 8px 10px;
    font-size: 1.4rem;
    font-weight: 500;
    letter-spacing: 0.07rem;

}

.gallery-filter button:hover {
    background-color: #EEEEEE;
    color: #333;
    border-color: #333;
}

.gallery-filter button.active {
    background-color: rgba(51, 51, 51, 1);
    color: #fff;
    border-color: rgba(51, 51, 51, 1);
}

/* アクティブなボタンをホバーしても黒のまま */
.gallery-filter button.active:hover {
    background-color: rgba(51, 51, 51, 1);
    border-color: rgba(51, 51, 51, 1);
}

/* ギャラリーグリッド */
.gallery-list {
    margin-top: 60px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 👈 2列に固定 */
    gap: 22px;
    margin-bottom: 60px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


.gallery-item {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item img {
    width: 100%;
    height: auto;
    /* 👈 または固定値 height: 400px; */
    object-fit: cover;
    border-radius: 4px;
}

.gallery-item p {
    margin-top: 12px;
    font-size: 1.4rem;
    text-align: center;
}

/* もっと見るボタン */
#loadMore {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 4.8rem;
    height: 4.8rem;
    margin: 116px auto 0;
    border: 1px solid #333;
    border-radius: 50%;
    background-color: transparent;
    color: rgba(73, 75, 77, 1);
    font-size: 3rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

#loadMore:hover {
    transform: scale(1.15);
}


/* スマホ対応 */
@media screen and (max-width: 768px) {
    .gallery {
        margin: 49px 5% 0;
    }

    .gallery-list {
        grid-template-columns: 1fr;
        gap: 76px;
    }

    .gallery-item img {
        height: auto;
    }
}



/* =================================
price link
================================== */
.link__price {
    text-align: center;
    margin-top: 200px;
    margin-bottom: 300px;
}

.link__price--item {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding: 48px 70px;
    border: 1px solid #333;
    /* 👈 四角の枠 */
    text-decoration: none;
    font-size: 1.8rem;
    transition: all 0.3s ease;
    color: #494B4D;
}


.link__price--item img {
    width: 39px;
    height: auto;
    transition: transform 0.3s ease;
}

.link__price--item:hover img {
    transform: translateX(5px);
    /* ホバー時に矢印が右に動く */
}

/* pc 768px */
@media screen and (max-width:768px) {
    .link__price {
        margin: 120px 5% 0;
    }

    .link__price--item{
        padding: 25px 13%;
    }

    .link__price--item p {
        font-size: 1.4rem;
        letter-spacing: 0.07rem;
    }
}