@charset "utf=8";

.gallery01 {
    padding: 14rem 0 10rem;
}

.gallery-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-direction: row-reverse;
}

.gallery-block {
    width: 70%;
}

.gallery-box {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.gallery-box > a {
    display: block;
    aspect-ratio: 300 / 300;
    width: 100%;
    height: 100%;
    position: relative;
}

.gallery-img img {
    max-height: 100%;
    height: 100%;
    max-width: 100%;
    width: 100%;
    object-fit: cover;
    /* position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0; */
}

.gallery-title {
    margin: 2rem 0 0;
    font-size: 1.8rem;
    letter-spacing: 0.05em;
}

.modaal-wrapper {
    z-index: 9999999;
    background: rgba(0, 0, 0, .8);
}

.modaal-close {
    position: absolute;
    right: -1rem;
    top: -1rem;
    background: #535353 !important;
}

.modaal-close:focus:after, .modaal-close:focus:before, .modaal-close:hover:after, .modaal-close:hover:before {
    background: #a7a7a7;
}

.modaal-container {
    max-width: 750px;
    width: 65%;
    /* height: 90vh;
    overflow-y: scroll; */
}

/*----カテゴリ----*/

.gallery-row .news-side-box .link {
    color: var(--black);
}

.parent-category {
    padding: 0 0 1.5rem 0;
    border-bottom: 1px solid #888888;
    font-family: var(--font-family01);
    font-size: 3rem;
    font-weight: 500;
    margin: 4rem 0 0;
    pointer-events: none;
}

.all-category {
    margin: 0;
    border-bottom: 0px solid;
    pointer-events: all;
}

.all-category a:hover {
    color: var(--base-font-color);
    transition: all .3s;
}

.child-category {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 0;
    padding: 0 0 0 1.5rem;
    position: relative;
}

.child-category:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    margin: auto;
    width: 0.5rem;
    height: .5rem;
    background: var(--black);
    border-radius: 100vmax;
    z-index: 5;
}

.child-category.active {
    text-decoration: underline;
}

.child-category a:hover {
    color: var(--base-font-color);
    transition: all .3s;
}

#gallery-cat-anchor {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 100%;
    height: 8rem;
    width: 100%;
    margin: 0 auto 0 auto;
    z-index: -1;
}


/*----詳細----*/



/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <=768px) {
    

    .gallery-row {
        flex-direction: column-reverse;
        align-items: center;
    }

    .gallery-block {
        width: 100%;
    }

    .gallery-box {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .parent-category {
        font-size: 2.2rem;
        margin: 0;
    }

    .child-category {
        font-size: 1.4rem;
        margin: 0;
    }

    .news-side-box {
        margin: 0 auto !important;
    }

    .gallery-block {
        width: 100%;
        margin: 4rem auto 0;
    }

    .child-category-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin: 2rem 0 0;
    }

}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (width <=576px) {
    
    .gallery01 {
        padding: 8rem 0;
    }

    .modaal-container {
        width: 95%;
        /* height: 90vh;
        overflow-y: scroll; */
    }

    #gallery-cat-anchor {
        height: 9rem;
    }

}

/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */