@charset "UTF-8";

/* 簡易リセットCSS */

*,
*::before,
*::after {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

/* モーダル */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    margin: 0 auto;
    padding: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    pointer-events: none;
    opacity: 0;
    z-index: 100;
    background-color: rgba(120, 123, 131, 0.9);
}

/* モーダルがactiveの時 */

.modal.is-active {
    opacity: 1;
    pointer-events: auto;
}

/* モーダル背景のオーバーレイ部分 */

.modal__overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

/* モーダルのコンテンツ */

.modal__content {
    position: relative;
    background-color: rgba(255, 255, 255, 0.7);
    width: 100%;
    max-width: 600px;
    padding: 10px;
    border-radius: 12px;
}

.modal__content img {
    width: 100%;
}

.modal__slider {
    height: 60vh;
    min-height: 320px;
}

.modal__slider .swiper-wrapper,
.modal__slide {
    height: 100%;
}

.modal__slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal__slide img {
    width: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* モーダルを閉じるボタン */

.modal__close-btn {
    position: absolute;
    right: 0;
    top: -45px;
    color: #fff;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0);
    border: solid 2px #fff;
    cursor: pointer;
    z-index: 10;
}

.modal__close-btn::before {
    content: "✕";
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    display: inline-block;
    width: 30px;
    height: 35px;
    font-size: 30px;
    position: relative;
    top: -6px;
}

.swiper-slide {
    text-align: center;
}

.contact-modal__content {
    max-width: 640px;
    width: 85vw;
    max-height: 85vh;
    padding: 0;
    background-color: transparent;
    box-shadow: none;
}

.contact-modal__panel {
    background-color: #fff;
    border-radius: 26px;
    border: 16px solid #9a9ca5;
    padding: 36px 32px 28px;
}

.contact-modal__body {
    text-align: center;
}

.contact-modal__title {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 18px;
    color: #3c3c3c;
}

.contact-modal__qr {
    margin: 0 auto 20px;
    max-width: 220px;
}

.contact-modal__qr img {
    width: 100%;
    height: auto;
}

.contact-modal__note-wrapper {
    text-align: left;
    font-size: 12px;
    color: #3c3c3c;
    line-height: 1.4;
}

.contact-modal__note {
    margin-bottom: 4px;
}


.swiper-button-prev,
.swiper-rtl .swiper-button-next {
    color: #fff!important;
}

.swiper-button-next,
.swiper-rtl .swiper-button-prev {
    color: #fff!important;
}

/* Swiperの矢印部分 */

@media (max-width: 768px) {

    .modal__content {
        width: 100%;
        max-width: 300px;
        padding: 10px;
        border-radius: 12px;
    }
    .contact-modal__content {
        max-width: 320px;
        padding: 0;
    }
    .contact-modal__panel {
        border-width: 10px;
        padding: 24px 12px 20px;
    }
    .contact-modal__title {
        font-size: 17px;
        margin-bottom: 14px;
    }
    .contact-modal__qr {
        max-width: 170px;
        margin-bottom: 18px;
    }
    .swiper-button-prev,
    .swiper-rtl .swiper-button-next {
        left: -28px!important;
        z-index: 500!important;
    }
    .swiper-button-next,
    .swiper-rtl .swiper-button-prev {
        right: -28px!important;
        z-index: 500!important;
    }

    .modal__close-btn::before {
        top: -9px;
    }

    .modal__slider {
        height: 40vh;
        min-height: 260px;
    }
}
