@charset "UTF-8";
/* CSS Document */

.gallery_popup_close {
	outline: none;
}

.gallery_intro {
    background: #f4f1ee;
}

.photo_gallery {
    background: #f4f1ee;
}

.photo_gallery_list {
    display: flex;
    flex-wrap: wrap;
}

.photo_gallery_list li {
    line-height: 0;
}

.photo_gallery_list button {
    width: 100%;
    display: block;
    cursor: pointer;
}

.photo_gallery_list button:focus-visible {
    outline: 3px solid #5b9843;
    outline-offset: 3px;
}

.photo_gallery_list img {
    width: 100%;
    aspect-ratio: 1.45 / 1;
    object-fit: cover;
    border: solid #fff;
}

.gallery_popup[hidden] {
    display: none;
}

.gallery_popup {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(91, 152, 67, 0.82);
    padding: 4.3vw;
    position: fixed;
    inset: 0;
    z-index: 1000;
    animation: gallery-popup-fade-in 0.35s ease-out both;
}

.gallery_popup_inner {
    width: min(90.5vw, 1295px);
    container-type: inline-size;
    max-height: 92vh;
    max-height: min(92vh, calc(100dvh - 8.6vw));
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    position: relative;
    animation: gallery-popup-zoom-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.gallery_popup_content {
    min-height: 0;
    overflow: hidden;
}

@keyframes gallery-popup-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes gallery-popup-zoom-in {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery_popup,
    .gallery_popup_inner {
        animation: none;
    }
}

.gallery_popup_content > figure {
    line-height: 0;
}

.gallery_popup_content > figure img {
    width: 100%;
    height: auto;
}

.gallery_popup_caption {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    background: #fff;
    z-index: 1;
}

.gallery_popup_caption > img {
    flex-shrink: 0;
}

.gallery_popup_close {
    position: absolute;
    cursor: pointer;
}

.gallery_popup_close span {
    width: 100%;
    height: 1px;
    display: block;
    background: #000;
    position: absolute;
    top: 50%;
    left: 0;
}

.gallery_popup_close span:first-child {
    transform: rotate(45deg);
}

.gallery_popup_close span:last-child {
    transform: rotate(-45deg);
}

body.is-gallery-popup-open {
    overflow: hidden;
}

@media print, screen and (min-width: 961px) {
    header .slide_nav li.parent:nth-child(4) {
        border-bottom: 2px solid #6faf69;
    }

    .gallery_intro .section_inner {
        display: flex;
        align-items: center;
        min-height: clamp(calc(215px * 0.672), 15.03vw, 215px);
    }

    .gallery_intro figure {
        width: clamp(calc(115px * 0.672), 8.04vw, 115px);
        flex-shrink: 0;
        align-self: flex-end;
        line-height: 0;
        margin-left: clamp(calc(10px * 0.672), 0.69vw, 10px);
        margin-right: clamp(calc(30px * 0.672), 2.09vw, 30px);
        transform: translateY(clamp(-24px, -1.67vw, -16px));
    }

    .gallery_intro figure img {
        width: 100%;
    }

    .gallery_intro_text {
        padding-top: clamp(calc(8px * 0.672), 0.55vw, 8px);
        transform: translateY(clamp(calc(14px * 0.672), 0.97vw, 14px));
    }

    .gallery_intro_text p {
        font-size: clamp(calc(1.4rem * 0.672), 0.97vw, 1.4rem);
        font-weight: 400;
        line-height: 2.3;
        letter-spacing: 0.04em;
    }

    .photo_gallery {
        padding: clamp(calc(40px * 0.672), 2.79vw, 40px) 0 clamp(calc(100px * 0.672), 6.99vw, 100px);
    }

    .photo_gallery_list {
        gap: clamp(calc(12px * 0.672), 0.83vw, 12px);
    }

    .photo_gallery_list li {
        width: calc((100% - clamp(calc(24px * 0.672), 1.67vw, 24px)) / 3);
    }

    .photo_gallery_list img {
        border-width: clamp(calc(6px * 0.672), 0.41vw, 6px);
    }

    .gallery_popup_inner {
        width: min(90.5vw, 1295px, calc((100dvh - 8.6vw) * 1.37));
        padding: clamp(calc(50px * 0.672), 3.49vw, 50px) clamp(calc(50px * 0.672), 3.49vw, 50px) 0;
    }

    .gallery_popup_caption {
        min-height: 9.27cqw;
        padding: 1cqw 5.79cqw 1cqw 11.58cqw;
        position: relative;
    }

    .gallery_popup_caption > img {
        width: 8.11cqw;
        position: absolute;
        bottom: 2.7cqw;
        left: 1.16cqw;
    }

    .gallery_popup_caption p {
        font-size: clamp(calc(1.4rem * 0.672), 0.97vw, 1.4rem);
        line-height: 2;
        letter-spacing: 0.04em;
    }

    .gallery_popup_close {
        width: 4.02cqw;
        height: 4.02cqw;
        right: 0;
        top: 50%;
        transform: translateY(-50%);
    }
}

@media screen and (min-width: 961px) and (max-height: 699px) {
    .gallery_popup_inner {
        width: min(90.5vw, 1295px, calc((700px - 8.6vw) * 1.37));
    }

    .gallery_popup_content {
        overflow-y: auto;
        overscroll-behavior: contain;
    }
}

@media screen and (max-width: 960px) {
    .gallery_intro {
        padding: 15vw 0 clamp(calc(80px * 0.375), 8.33vw, 80px);
    }

    .gallery_intro .section_inner {
        display: block;
    }

    .gallery_intro figure {
        width: 20%;
        line-height: 0;
		position: absolute;
        top: -35vw;
		left: 0;
    }

    .gallery_intro figure img {
        width: 100%;
    }

    .gallery_intro_text {
        flex: 1;
    }

    .gallery_intro_text p {
        font-size: clamp(calc(3.6rem * 0.375), 3.75vw, 3.6rem);
        line-height: 2;
        letter-spacing: 0.04em;
    }

    .gallery_intro_text p + p {
        margin-top: 0.8em;
    }

    .photo_gallery {
        padding: clamp(calc(40px * 0.375), 4.16vw, 40px) 0 clamp(calc(100px * 0.375), 10.41vw, 100px);
    }

    .photo_gallery_list {
        gap: clamp(calc(18px * 0.375), 1.87vw, 18px);
    }

    .photo_gallery_list li {
        width: calc((100% - clamp(calc(18px * 0.375), 1.87vw, 18px)) / 2);
    }

    .photo_gallery_list img {
        border-width: clamp(calc(8px * 0.375), 0.83vw, 8px);
    }

    .gallery_popup {
        padding: 5vw;
    }

    .gallery_popup_inner {
        width: min(100%, calc((100dvh - 10vw) * 1.02));
        max-height: calc(100vh - 10vw);
        max-height: calc(100dvh - 10vw);
        padding: 3.64% 2.6% 0;
    }

    .gallery_popup_caption {
        align-items: flex-start;
        padding: 8cqw 0 12cqw 0;
        position: relative;
    }

    .gallery_popup_caption > img {
        width: 16%;
        position: absolute;
        top: -22cqw;
        left: 1%;
    }

    .gallery_popup_caption p {
        flex: 1;
        font-size: 3.75cqw;
        line-height: 1.8;
    }

    .gallery_popup_close {
        width: 10cqw;
        height: 10cqw;
        right: 0;
        bottom: -6%;
        transform: translateY(-50%);
    }

}
