@charset "UTF-8";
/* モーダルスライダー全体の横幅です。組み込み時に調整ください */
.modal-container {
    width: 195px;
}

[class*="swiper"]:focus {
    outline: none;
}

/* メインスライダー */
.main-swiper {
    cursor: pointer;
    margin-bottom: 10px;
}
.main-swiper .swiper {
    /* メインスライダーの高さです。こちらも調整ください */
    height: 190px;
}
@media not all and (min-width: 768px), print {
    .main-swiper .swiper {
        padding-bottom: 30px;
    }
}
.main-swiper .slide {
    display: flex;
    height: 100%;
}

.all-img{
    font-size: 13px;
    text-decoration: underline;
    margin-bottom: 20px;
}

/* サムネイルスライダー */
.thumbnail-swiper {
    cursor: pointer;
}
.overflow-ui{
    width: 42px;
    height: 42px;
    position: absolute;
    top: 0;
    right: 3px;
    pointer-events: none;
    z-index: 999;
    
    font-size: 20px;
    color: #fff;
    line-height: 42px;
    text-align: center;
    opacity: 0.4;
    background-color: #000;
}
.thumbnail-swiper .swiper-wrapper {
    /* -ms-grid-columns: 1fr 6px 1fr 6px 1fr 6px 1fr 6px 1fr; */
    /* display: -ms-grid; */
    /* display: grid; */
    gap: 8px;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    height: 42px;
    margin-bottom: 6px;
}
.thumbnail-swiper .swiper-slide {
    border: 2px solid #d5dbdb;
    height: 38px;
    overflow: hidden;
    width: 38px !important;
}
@media not all and (min-width: 768px), print {
    .thumbnail-swiper {
        display: none;
    }
}

.swiper-slide {
    align-items: center;
    display: flex;
    justify-content: center;
    line-height: 1;
    text-align: center;
}
.swiper-slide img {
    -ms-grid-row-align: center;
    -o-object-fit: contain;
    align-self: center;
    display: inline;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    width: 100%;
}

/* モーダル */
/* modal ⇒ photoModalに名称変更 */
.photoModal {
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    transition: opacity 0.3s;
    width: 100%;
    z-index: 999;
}

/* モーダルがactiveの時 */
.photoModal.is-active {
    opacity: 1;
    pointer-events: auto;
}
@media screen and (min-width: 768px), print {
    .photoModal.is-active .modal__content {
        -webkit-transform: translateY(0);
        transform: translateY(0);
    }
}

/* モーダル背景のオーバーレイ部分 */
.modal__overlay {
    cursor: pointer;
    height: 100%;
    position: absolute;
    width: 100%;
}

/* モーダルのコンテンツ */
.modal__content {
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
    box-shadow: 0 0 14px 0 rgba(15, 17, 17, 0.5);
    height: 100%;
    position: relative;
    width: 100%;
}
@media screen and (min-width: 768px), print {
    .modal__content {
        -webkit-transform: translateY(15px);
        border-radius: 8px;
        height: 80vh;
        max-width: 90%;
        padding: 25px 35px 25px 30px;
        transform: translateY(15px);
        transition: -webkit-transform 0.3s ease-in-out;
        transition: transform 0.3s ease-in-out;
        transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
    }
}

/* モーダルを閉じるボタン */
.modal__close-btn {
    background: transparent;
    /* border: 1px solid #fff; */
    color: #000;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    left: 15px;
    padding: 8px 8px;
    position: absolute;
    top: 15px;
    z-index: 10;
    text-align: right;
}
@media screen and (min-width: 768px), print {
    .modal__close-btn {
        font-size: 30px;
        height: 40px;
        left: auto;
        right: 3px;
        top: -10px;
        width: 40px;
    }
}
@media not all and (min-width: 768px), print {
    .modal__close-btn {
        background: rgba(255, 255, 255, 0.5);
        border: 1px solid rgba(0, 0, 0, 0.17);
        border-radius: 8px;
        box-shadow: 0 0.2rem 0.5rem 0 rgba(213, 217, 217, 0.5);
    }
}

/* モーダル内メインスライダーとサムネイルスライダー */
.modal__wrap {
    align-items: center;
    display: flex;
    gap: 20px;
    height: 100%;
    position: relative;
}
@media screen and (min-width: 768px), print {
    .modal__wrap {
        align-items: flex-start;
        height: 80vh;
    }
}
@media not all and (min-width: 768px), print {
    .modal__wrap {
        flex-direction: column;
        justify-content: center;
    }
}

/* モーダル内メインスライダー */
.modal__slider {
    margin-bottom: 50px;
    width: 100%;
}
@media screen and (min-width: 768px), print {
    .modal__slider {
        height: 100%;
        width: 80%;
    }
}
.modal__slider .slide {
    height: 100%;
}
@media not all and (min-width: 768px), print {
    .modal__slider .slide {
        display: flex;
        height: 95%;
    }
}
.modal__slider img {
    width: auto;
}

/* モーダル内サムネイルスライダー */
.modal__thumbnail-swiper {
    cursor: pointer;
}
.modal__img-title{
    width: 285px;
    font-weight: bold;
    margin-bottom: 10px;
}
.modal__img-title h3{
    font-weight: bold;
    line-height: 1.3;
    margin-bottom: 8px;
}
@media screen and (min-width: 768px), print {
    .modal__thumbnail-swiper {
        flex-shrink: 0;
    }
}
@media not all and (min-width: 768px), print {
    .modal__thumbnail-swiper {
        bottom: 0;
        left: 0;
        overflow-x: auto;
        position: fixed;
        width: 100%;
        z-index: 200;
    }
}

.modal__thumbnail-swiper .swiper-wrapper {
    overflow-x: auto;
}
@media screen and (min-width: 768px), print {
    .modal__thumbnail-swiper .swiper-wrapper {
        -ms-grid-columns: 1fr 15px 1fr 15px 1fr 15px 1fr;
        display: -ms-grid;
        display: grid;
        gap: 15px;
        grid-template-columns: repeat(4, 1fr);
    }
}
@media not all and (min-width: 768px), print {
    .modal__thumbnail-swiper .swiper-wrapper {
        justify-content: center;
    }
}

.modal__thumbnail-swiper .swiper-slide {
    height: 40px;
    width: 40px;
}
@media screen and (min-width: 768px), print {
    .modal__thumbnail-swiper .swiper-slide {
        border: 2px solid #d5dbdb;
        height: 50px;
        width: 50px;
    }
}

@media not all and (min-width: 768px), print {
    .swiper-horizontal > .swiper-pagination-bullets,
    .swiper-pagination-bullets.swiper-pagination-horizontal {
        bottom: 0;
    }
}

.swiper-pagination-bullet-active {
    background-color: #007185;
}

/* 選択されたサムネイルにボーダースタイルを適用 */
.js-thumbnail-swiper .swiper-slide.selected-thumbnail {
    border: 2px solid #ff8f00;
}

.modal__thumbnail-swiper .active-thumbnail {
    border: 2px solid #ff8f00;
}
