@charset "utf-8";

/*==================================================
[sp]gallery
================================================== */
.gallery .lead {
    margin-bottom: 10.666666666666667vw;
}

.gallery .lead p {
    color: var(--color-black);
    font-family: var(--font-family-jp);
    font-size: 4.8vw;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
}

.gallery .note {
    margin-bottom: 8.533333333333333vw;
    color: var(--color-black);
    font-family: var(--font-family-jp);
    font-size: 4.266666666666667vw;
    font-style: normal;
    font-weight: 400;
    line-height: 180%;
}

.gallery .photo_list {
    display: flex;
    flex-wrap: wrap;
    gap: 8.533333333333333vw 5.333333333333333vw;
}

.gallery .photo_list li {
    width: 41.866666666666667vw;
}

.gallery .photo_list li a {
    display: block;
}

.gallery .photo_list figure {
    margin-bottom: 4.266666666666667vw;
    width: 41.866666666666667vw;
    position: relative;
}

.gallery .photo_list figure::before {
    content: '';
    width: 5.333333333333333vw;
    height: 5.333333333333333vw;
    background: rgba(0, 0, 0, 0.4);
    position: absolute;
    bottom: 2.133333333333333vw;
    right: 2.133333333333333vw;
    pointer-events: none;
    z-index: 10;
}

.gallery .photo_list figure::after {
    content: '';
    width: 3.733333333333333vw;
    height: 3.733333333333333vw;
    background-color: var(--color-white);
    -webkit-mask: var(--icon-zoom);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    position: absolute;
    bottom: 3.066666666666667vw;
    right: 3.066666666666667vw;
    pointer-events: none;
    z-index: 11;
}

.gallery .photo_list figure img {
    width: 100%;
    height: auto;
    border-radius: 2.133333333333333vw;
    overflow: hidden;
}

.gallery .photo_list .caption {
    color: var(--color-black);
    font-family: var(--font-family-jp);
    font-size: 4.266666666666667vw;
    font-style: normal;
    font-weight: 400;
    line-height: 200%;
    letter-spacing: -0.025em;
    white-space: nowrap;
}

.modal {
    /* display: none; */
    width: 89.333333333333333vw;
    max-height: 90vh;
    padding: 4.266666666666667vw;
    background: var(--color-white);
    /* display: block; */
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition-property: opacity, visibility;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
    z-index: 1001;
    pointer-events: auto;
}

.modal.active figure {
    margin-bottom: 4.266666666666667vw;
    width: 100%;
}

.modal.active figure img {
    width: 100%;
    height: auto;
}

.modal .modal_info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.modal .modal_info p {
    color: var(--color-black);
    font-family: var(--font-family-jp);
    font-size: 4.266666666666667vw;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
}


.modal .modal_nav {
    margin-top: 4.266666666666667vw;
    width: 100%;
    height: 3.733333333333333vw;
    position: relative;

}

.modal .modal_nav button {
    width: 14.4vw;
    height: 3.733333333333333vw;
    position: relative;
    text-align: right;
    color: var(--color-black);
    font-family: var(--font-family-jp);
    font-size: 3.733333333333333vw;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    padding: 0;
    text-align: right;
}

.modal .modal_nav button.btn_prev {
    position: absolute;
    top: 0;
    left: 22.4vw;
}

.modal .modal_nav button.btn_prev::before {
    content: '';
    width: 4.266666666666667vw;
    height: 2.133333333333333vw;
    background-color: var(--color-black);
    -webkit-mask: var(--icon-arrow-prev);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    position: absolute;
    top: calc(50% - 1.066666666666667vw);
    left: 0;
    pointer-events: none;
}

.modal .modal_nav button.btn_next {
    position: absolute;
    top: 0;
    right: 22.4vw;
    text-align: left;
}

.modal .modal_nav button.btn_next::before {
    content: '';
    width: 4.266666666666667vw;
    height: 2.133333333333333vw;
    background-color: var(--color-black);
    -webkit-mask: var(--icon-arrow-next);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    position: absolute;
    top: calc(50% - 1.066666666666667vw);
    right: 0;
    pointer-events: none;
}



.modal .btn_close {
    display: none;
    content: '';
    width: 6.133333333333333vw;
    height: 6.133333333333333vw;
    background-color: var(--color-white);
    -webkit-mask: var(--icon-close);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    -webkit-mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    text-indent: -9999px;
    overflow: hidden;
    position: absolute;
    top: -9.066666666666667vw;
    right: 0;
    z-index: 1001;
}

.modal.active .btn_close {
    display: block;
}



.overlay {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}


/*==================================================
        PC
    ================================================== */
@media (min-width: 768px) {

    /*==================================================
    [pc]gallery
    ================================================== */
    .gallery .lead {
        margin-bottom: 40px;
    }

    .gallery .lead p {
        font-size: 20px;
    }

    .gallery .note {
        margin-bottom: 32px;
        font-size: 16px;
    }

    .gallery .photo_list {
        display: flex;
        flex-wrap: wrap;
        gap: 40px 30px;
    }

    .gallery .photo_list li {
        width: 300px;
    }

    .gallery .photo_list li a {
        display: block;
    }

    .gallery .photo_list figure {
        margin-bottom: 16px;
        width: 300px;
        position: relative;
    }

    .gallery .photo_list figure::before {
        content: '';
        width: 32px;
        height: 32px;
        background: rgba(0, 0, 0, 0.4);
        position: absolute;
        bottom: 8px;
        right: 8px;
        pointer-events: none;
        z-index: 10;
    }

    .gallery .photo_list figure::after {
        content: '';
        width: 22px;
        height: 22px;
        background-color: var(--color-white);
        -webkit-mask: var(--icon-zoom);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        -webkit-mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        position: absolute;
        bottom: 12px;
        right: 12px;
        pointer-events: none;
        z-index: 11;
    }

    .gallery .photo_list figure img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        overflow: hidden;
    }

    .gallery .photo_list .caption {
        color: var(--color-black);
        font-family: var(--font-family-jp);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 200%;
        letter-spacing: 0;
        white-space: nowrap;
    }

    .modal {
        width: auto;
        max-width: 80vw;
        padding: 40px;

        max-width: min(780px, 100vw - 40px);
        max-height: calc(100vh - 60px);
    }

    .modal.active figure {
        margin-bottom: 16px;
        width: 100%;
        height: auto;
    }

    .modal.active figure img {
        width: 100%;
        height: auto;

        max-height: calc(100vh - 160px);
        object-fit: contain;
    }

    .modal .modal_info {
        margin: 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .modal .modal_info p {
        color: var(--color-black);
        font-family: var(--font-family-jp);
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;
    }

    .modal .caption {
        order: 1;
        width: auto;
        flex: 1 1 auto;
        min-width: 0;
        margin-right: 24px;
    }

    .modal .page_number {
        margin: 0;
        order: 3;
    }

    .modal .modal_nav {
        margin: 0;
        width: auto;
        height: 16px;
        position: relative;
        display: flex;
        order: 2;
    }

    .modal .modal_nav button {
        margin: 0 24px 0 0;
        width: 56px;
        height: 16px;
        position: relative;
        text-align: right;
        color: var(--color-black);
        font-family: var(--font-family-jp);
        font-size: 16px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;
        padding: 0;
        text-align: right;
    }

    .modal .modal_nav button.btn_prev {
        position: static;
    }

    .modal .modal_nav button.btn_prev::before {
        content: '';
        width: 16px;
        height: 8px;
        background-color: var(--color-black);
        -webkit-mask: var(--icon-arrow-prev);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        -webkit-mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        position: absolute;
        top: calc(50% - 4px);
        left: 0;
        pointer-events: none;
    }

    .modal .modal_nav button.btn_next {
        position: static;
    }

    .modal .modal_nav button.btn_next::before {
        content: '';
        width: 16px;
        height: 8px;
        background-color: var(--color-black);
        -webkit-mask: var(--icon-arrow-next);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        -webkit-mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        position: absolute;
        top: calc(50% - 4px);
        right: 24px;
        pointer-events: none;
    }

    .modal .btn_close {
        display: none;
        content: '';
        width: 23px;
        height: 23px;
        background-color: var(--color-white);
        -webkit-mask: var(--icon-close);
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
        -webkit-mask-size: 100% 100%;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-position: center;
        text-indent: -9999px;
        overflow: hidden;
        position: absolute;
        top: -34px;
        right: 0;
        z-index: 1001;
    }

    .overlay {
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-normal);
    }





}
