.modal {
    padding: 0;
}

.inner {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 0 0px;
}



/* タブレット（600px以上〜1023px以下） */
@media screen and (min-width: 600px) and (max-width: 1023px) {
    .inner {
        width: 100%;
        margin: 0%;
        padding: 0%;
    }
}

/* スマホ（600px未満） */
@media screen and (max-width: 599px) {
    .inner {
        width: 100%;
        margin: 0%;
        padding: 0%;

    }
}

/* モーダルを開くボタン */
.modal__trigger {
    cursor: pointer;
}

.modal__trigger:nth-child(n + 2) {
    margin-top: 20px;
}


/* モーダル本体 */
.modal__wrapper {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
    height: 100%;
}

.modal__layer {
    height: 100%;
    background: rgba(50, 50, 50, .85);
    cursor: pointer;
}

.modal__container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(calc(80% - 40px), 1000px);
    height: auto;
    padding: 20px;
    background: #fff;
}

.modal__inner {
    position: relative;
    overflow-y: auto;
    height: calc(100% - 100px);
    padding: 80px 20px 20px;
}

/* モーダルを閉じるボタン */
.modal__close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(50, 50, 50, 1);
    cursor: pointer;
    transition: opacity .6s;
}

.modal__close:hover {
    opacity: .6;
}

.modal__close:before,
.modal__close:after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 1px;
    background: #fff;
    content: '';
}

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

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

/* モーダル内のコンテンツ */
.modal__content {}

.modal__text {}

/* タブレット（600px以上〜1023px以下） */
@media screen and (min-width: 600px) and (max-width: 1023px) {
    .modal__trigger {
        margin-top: 20px;
    }

}

/* スマホ（600px未満） */
@media screen and (max-width: 599px) {
    .modal__inner {
        padding: 80px 10px 20px;
    }

    .modal__container {
        width: min(calc(90% - 40px), 1000px);
        height: 80vh;
    }
}