@charset "utf-8";
body {

    position:relative;
}

.title {
    color: var(--primary-black);
    font-size: 1.6rem;
    font-weight: 400;
    padding: 68px 0 16px;
    text-align: center;
}

.main_img {
    padding: 0 23px;
    display: flex;
    cursor: pointer;
    overflow: hidden;
    width: 100%;
    flex-wrap: wrap;
    justify-content: space-around;
}

.popup {
    width: 30%;
    padding: 10px 0;
    height: auto;
    transition: transform .6s ease;/* ゆっくり変化させる */
    object-fit: contain;
    cursor: pointer;
}

.popup_video {
    width: 30%;
    cursor: pointer;
}
 
.modal-container {
    display: none;
    position: fixed;
    background: rgba(0, 0, 0, .6);
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
}
  
.modal-container-img {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
}
  
.img, .modal-video {
    max-width: calc(100vw - 30px);
    max-height: calc(100vw - 30px);;
}

/*  illustration pc */
@media screen and (min-width:769px) {
    .popup {
        width: 22%;
        padding: 10px 0;
        height: auto;
        transition: transform .6s ease;/* ゆっくり変化させる */
        object-fit: contain;
    }

    .popup_video {
        width: 22%;
    }

    .main_img {
        padding: 0 80px;
    }

    .modal-container-img {
        display: flex;
        height: 100vh;
        justify-content: center;
        align-items: center;
        margin: 79px 0 0;
    }

    .img, .modal-video {
        max-width: calc(100vw - 30px);
        max-height: calc(74vh - 44px);;
    }

    .title {
        color: var(--primary-black);
        font-size: 2rem;
        font-weight: 400;
        padding: 148px 0 38px;
        text-align: center;
    }
}