.c-modal__whole {
    position: fixed;
    top: 0;
    left: 0;
    background-color: #000;
    opacity: 0.5;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.c-modal__overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 3;
    opacity: 0;
    visibility: hidden;
    transition: .3s;
}

.c-modal__overlay.is-modal-active {
    opacity: 1;
    visibility: visible;
}

.c-modal__preview {
    position: fixed;
    width: 100%;
    overflow-y: hidden;
    top: 50%;
    left: 50%;
    z-index: 4;
    transform: translateX(-50%) translateY(-50%);
}

.c-modal__externalAndSearchAddress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.5);
    z-index: 1;
    transition: .3s;
    opacity: 0;
}

.c-modal__externalAndSearchAddress.is-active {
    opacity: 1;
}

/* 宛名登録で外部サービスからデータを読み込んだ時に発火するロード画面 */
.c-modal__loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0,0,0,0.2);
    z-index: 4;
}

.c-modal__loading.is-editArea {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 1);
    z-index: 4;
}

.c-modal__designPreview {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(10, 10, 10, 0.8);
    z-index: 3;
    opacity: 0;
    transition: .3s;
}

.c-modal__designPreview.is-active {
    opacity: 1;
}

/* PCとSPで表示位置を切り替える。クラスをバインドして切り替えています */
.c-modal__designPreview--cancel.is-pc {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

.c-modal__designPreview--cancel.is-sp {
    position: fixed;
    top: 1rem;
    right: 1rem;
}

.c-modal__designPreview__container {
    max-width: 32rem;
    width: 100%;
    height: 42rem;
    background-color: transparent;
    display: flex;
    align-items: center;
    position: relative;
}

.c-modal__temporarySave {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    background-color: #FFF;
    opacity: 0;
    visibility: hidden;
}

.c-modal__temporarySave.is-active {
    opacity: 1;
    z-index: 4;
    visibility: visible;
}

.c-modal__validate__fileSize {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 90%;
    max-width: 24rem;
    background-color: #FFF;
    z-index: 4;
    transform: translate(-50%, -50%);
}

@media screen and (min-width: 640px) {
    .c-modal__overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    .c-modal__preview {
        height: auto;
    }

    .c-modal__externalAndSearchAddress__box {
        width: 88%;
    }

    .c-modal__temporarySave {
        width: 50%;
    }
}

.c-modal__editDesign {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    transition: .3s;
}

.c-modal__editDesign.is-userImage {
    top: 0;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
}

@media screen and (min-width: 640px) {
    .c-modal__editDesign {
        width: calc(100% - 330px);
    }

    .c-modal__editDesign.is-userImage {
        width: 100%;
    }
}

.c-modal__frame__attention {
    display: none;
}

.c-modal__frame__attention.is-active {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 5%;
    left: 50%;
    background-color: #FFF;
    z-index: 3;
    width: 70%;
    max-width: 24rem;
    padding: .75rem;
    font-size: .75rem;
    font-weight: bold;
    transform: translate(-50%, 0);
    animation: blinking 1.2s ease-out infinite alternate;
}

@keyframes blinking {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
    }
}

@media screen and (min-width: 640px) {
    .c-modal__frame__attention.is-active {
        font-size: 1rem;
        transform: translate(-93%, 0);
    }
}