@charset "utf-8";

/* GALLERY */
main.gallery {
    background: #ffffff;
    background-image: none;
}

main.gallery .mainvisual {
    position: relative;
    margin-bottom: 5rem;
    width: 100%;
    height: 780px;
}

main.gallery .mainvisual .mv_main {
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    position: relative;
}

main.gallery .mainvisual div {
    position: absolute;
    bottom: 0;
    z-index: 3;
    width: 100%;
}

main.gallery .mainvisual div strong,
main.gallery .mainvisual div p {
    width: 96%;
    max-width: 1100px;
    display: block;
    color: #ffffff;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-weight: 700;
}

main.gallery .mainvisual div strong {
    font-size: 6rem;
}
main.gallery .mainvisual div p {
font-size: 1.5rem;
    padding-bottom: 3rem;
}

/* サブページタイトル */
h2.subtitle {
    width: 100%;
    height: 100px;
    background: var(--red);
    justify-content: center;
    align-items: center;
    color: #ffffff;
    font-size: 2.625rem;
}


/* SP */
@media (max-width: 768px) {
    main.gallery .mainvisual div strong,
main.gallery .mainvisual div p {
    display: none;
}
    main.gallery .mainvisual {
        width: 100%;
        height: auto;
        aspect-ratio: 400 / 290;
        margin-bottom: 0;
    }

    main.gallery .mainvisual .mv_main {
        width: 100%;
        height: 100%;
        object-fit: cover;
        z-index: 1;
        position: relative;
    }
    main.gallery .mainvisual .mv_logo {
        width: 50%;
        top: 42%;
        height: fit-content;
    }

    h2.subtitle {
        height: 75px;
        font-size: 1.5rem;
        bottom: 0;
    }
    p.gl_exp {
        padding: 1rem 1rem 2rem;

    }
}


.gallery_list {
    margin-bottom: 4rem;
}

/* SP */
@media (max-width: 768px) {
    .gallery_list {
    margin-bottom: 2rem;
}

}

.displayorder {
    width: 96%;
    max-width: 1210px;
    margin: 1rem auto 0;
    align-items: center;
    justify-content: flex-end;
    gap: 0.75rem;
}

.displayorder span {
    font-size: 0.875rem;
    line-height: 1;
}

.displayorder .select_wrap {
    position: relative;
    width: 130px;
}

.displayorder .select_wrap::after {
    content: "";
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-35%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid var(--red);
    pointer-events: none;
}

.displayorder select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 100%;
    height: 2rem;
    padding: 0 2rem 0 0.625rem;
    border: 1px solid #cfcfcf;
    border-radius: 0;
    background: #ffffff;
    font-size: 0.875rem;
    line-height: 1;
}

/* SP */
@media (max-width: 768px) {
    .displayorder {
        width: 94%;
        justify-content: flex-start;
        margin-top: 1rem;
    }
    .displayorder span {
        display: none;
    }
    .displayorder .select_wrap {
        width: 100%;
    }
}

.gl_list {
    width: 96%;
    max-width: 1210px;
    margin: 1.5rem auto 0;
    gap: 2rem 1rem;
    flex-wrap: wrap;
}

.gl_list .gl_modal_trigger {
    display: block;
    width: calc((100% - 3rem) / 4);
    border: 0;
    padding: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.gl_list .gl_modal_trigger span {
    display: block;
    padding-top: 0.5rem;
    font-size: 0.875rem;
}
.gl_list .gl_modal_trigger img {
    transition-duration: 300ms;
}

.gl_list .gl_modal_trigger:hover img {
    opacity: 0.7;
    transition-duration: 300ms;
}

.gl_item_overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.gl_item_overlay.gl_is_hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.gl_item_modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(92vw, 600px);
    height: 86vh;
    background: #ffffff;
    border-radius: 12px;
    z-index: 2000;
    padding: 2px;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

.gl_item_modal.gl_is_hidden {
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -47%);
    pointer-events: none;
}

body.gl-modal-open {
    overflow: hidden;
}

.gl_item_modal_close {
    position: absolute;
    top: -2.2rem;
    right: 0rem;
    background: transparent;
    border: solid 2px #ffffff;
    border-radius: 9999px;
    font-size:2rem;
    font-weight: normal;
    color: #ffffff;
    line-height: 1;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gl_item_modal_body {
    width: 100%;
    height: 100%;

    padding: 1.5rem 1.5rem 1.5rem;
    overflow-y: auto;
    align-items: center;

}

.gl_item_modal_body h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.gl_item_modal_body a.booknow {
    max-width: 280px;
    width: 90%;
    margin-bottom: 1rem;
}

.gl_item_modal img {
    margin-bottom: 1rem;

}

.gl_item_modal_body p {
    font-size: 0.8rem;
}


/* SP */
@media (max-width: 768px) {
    .gl_list {
        width: 94%;
    }

    .gl_list .gl_modal_trigger {
        width: calc(50% - 0.5rem);
    }

    .gl_item_modal {
        width: 92vw;
        height: auto;
        max-height: 90vh;
        max-height: 90svh;
        /* overflow: hidden; */
    }
    .gl_item_modal_body {
        padding: 1rem;
        height: auto;
        max-height: calc(90vh - 2rem);
        max-height: calc(90svh - 2rem);
        overflow-y: auto;
    }
}




