@charset "utf-8";

body {
    transition: 0s;
}

.galleryCateBx section {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, 1fr);
}

.galleryBx section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.galleryCateBx .firstBox:nth-of-type(n+2) {
    display: none;
}

.galleryItem {
    position: relative;
}

.galleryImg {
    cursor: pointer;
    overflow: hidden;
    aspect-ratio: 39 / 50;
    background-color: #888279;
}

.galleryImg img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: all .3s;
}

.galleryImg:hover img {
    transform: scale(1.1);
}

.galleryImg>img+.noImg {
    display: none;
}

.galleryCate {
    display: block;
    width: 100%;
    max-width: max-content;
    height: 28px;
    padding: 0 15px;
    background: var(--white);
    color: var(--primary);
    font-size: clamp(0.938rem, 0.892rem + 0.194vw, 1.125rem);
    font-weight: 500;
    line-height: 1.4em;
    letter-spacing: 0.05em;
    text-align: center;
    word-break: keep-all;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border-radius: 2px;
    border: 1px solid #888279;
}

.galleryModal.modal {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100svh;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 9999;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.galleryModal.modal.show {
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.galleryModalContent {
    position: relative;
    margin: auto;
    max-height: 100%;
    width: 100%;
    max-width: 540px;
    overflow-y: auto;
    padding: 24px 15px;
    background-color: var(--white);
    border-radius: 8px;
}

.galleryModalContent::-webkit-scrollbar {
    width: 12px;
    /* 横幅 */
}

.galleryModalContent::-webkit-scrollbar-thumb {
    background: var(--primary);
    /* ハンドルの色 */
}

.galleryModalContent::-webkit-scrollbar-track {
    background: var(--white);
    /* 背景色 */
}

.modalCloseBtn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

.modalCloseBtn::before,
.modalCloseBtn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--black);
    transition: all .3s;
}

.modalCloseBtn:hover::before,
.modalCloseBtn:hover::after {
    background: var(--primary);
}

.modalCloseBtn::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.modalCloseBtn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.carousel {
    width: 100%;
    margin-bottom: 20px;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #888279;
}

.carousel-item {
    display: none;
    width: 100%;
    height: 100%;
    /* aspect-ratio: 39 / 50; */
}

.carousel-item.active {
    display: block;
}

.carousel-item img {
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    margin: auto;
}

.galleryModalImg>img+.noImg {
    display: none;
}

.carousel-indicators {
    position: static;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin: 12px 0;
    padding: 0;
}

.carousel-indicators .indicator {
    width: 100%;
    aspect-ratio: 39 / 50;
    cursor: pointer;
    overflow: hidden;
    background-color: #888279;
    transition: .3s;
}

.carousel-indicators .indicator img {
    object-fit: cover;
    width: 100%;
    height: 100% !important;
    transition: all .3s;
}

.carousel-indicators .indicator:hover img {
    transform: scale(1.1);
}

.carousel-indicators .indicator img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.galleryModalMovie {
    width: 100%;
}

.galleryModalMovie iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

/* ==========================================================================
ページャー
========================================================================== */
.webgene-pagination {
    width: 100%;
    grid-column: 1/3;
}

.webgene-pagination>ul {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.webgene-pagination>ul>li {
    display: flex;
    margin: 30px 0 0;
    height: 40px;
    min-height: 40px;
    width: 100%;
    max-width: 40px;
    font-size: 14px;
    list-style: none;
    display: flex;
    justify-content: center;
    padding: 4px 0;
    align-items: center;
    border-radius: 50%;
}

.webgene-pagination>ul>li>a {
    width: 100%;
    height: 30px;
    width: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: initial;
    font-size: 15px;
    transition: all .3s;
    color: var(--black);
}

.webgene-pagination>ul>li>a:hover {
    color: #fff;
    background-color: var(--black);
    text-decoration: none;
    transition: all .3s;
}

.webgene-pagination>ul>li.selected>a {
    color: #fff;
    background: var(--black);
    cursor: inherit;
    border-radius: 50%;
    transition: all .3s;
}

.webgene-pagination>ul>li.selected>a:hover {
    color: #fff;
    background-color: var(--black);
    transition: all .3s;
}

.webgene-pagination>ul>.prev>a,
.webgene-pagination>ul>.next>a {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 30px;
    width: 40px;
    border: 0;
    font-size: 0;
    font-weight: 500;
    letter-spacing: .05em;
    color: var(--black);
}

.webgene-pagination>ul>.prev>a:hover,
.webgene-pagination>ul>.next>a:hover {
    color: #fff;
    opacity: .5;
    background-color: initial;
}


.webgene-pagination>ul>.prev>a::before,
.webgene-pagination>ul>.next>a::before {
    content: "";
    display: block;
    top: 50%;
    width: 20px;
    height: 16px;
    margin: 0 0 .3em;
    transition: all .3s;
}

.webgene-pagination>ul>.prev>a::before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 16px 10px 0;
    border-color: transparent var(--black) transparent transparent;
}

.webgene-pagination>ul>.next>a::before {
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 0 10px 16px;
    border-color: transparent transparent transparent var(--black);
}

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:768px) {

    .galleryCateBx section {
        grid-template-columns: repeat(5, 1fr);
        gap: 20px;
    }

    .galleryBx section {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }

    .galleryCate {
        padding: 0 22px;
    }


    .galleryModalContent {
        padding: 32px 24px;
    }

    .webgene-pagination>ul>li {
        margin: 40px 10px 0;
    }

    .webgene-pagination>ul>li>a {
        height: 40px;
        width: 40px;
        font-size: 18px;
    }

    .webgene-pagination {
        grid-column: 1/5;
    }
}


/* min-width: 768px ここまで */
/* ☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆☆ */

/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */
/* ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★ */

@media screen and (min-width:1024px) {
    .galleryCateBx section {
        grid-template-columns: repeat(6, 1fr);
        gap: 25px;
    }

}