.denki-modal-moving {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: white;
    z-index: 20000;
    overflow-y: auto;
    [data-denki-modal-page="2"] {
        display: none;
    }
    .denki-modal-moving-inner {
        width: min(90%, 620px);
        margin: 0 auto;
        * {
            box-sizing: border-box;
            line-height: 1.714;
            @media (max-width: 869px) {
                line-height: 1.55;
            }
        }
        h1 {
            font-size: 3.6rem;
            font-weight: 700;
            text-align: center;
            padding: 50px 10px 40px;
            line-height: 1.8;
            @media (max-width: 869px) {
                padding-bottom: 20px;
                font-size: 2rem;
            }
        }
        .denki-modal-moving-detail-head {
            /* 女性とフキダシ */
            display: flex;
            align-items: flex-start;
            justify-content: center;
            gap: 8px;
            margin: 16px auto 36px;
            text-align: center;
            &:first-child {
                margin-top: 66px;
                @media (max-width: 869px) {
                    margin-top: 53px;
                }
            }
            @media (max-width: 869px) {
                gap: 1.33vw;
                margin: 3px auto 0;
                width: 80.8vw;
            }
            img {
                margin-top: 18px;
                width: 71px;
                @media (max-width: 869px) {
                    margin-top: 6px;
                    width: 15.75vw;
                }
            }
            p {
                margin-top: 0;
                padding: 14px 17px 12px;
                max-width: 270px;
                font-weight: 700;
                font-size: 16px;
                line-height: 1.5;
                letter-spacing: 0.04em;
                text-align: left;
                border: 1px solid #333;
                border-radius: 24px;
                box-sizing: border-box;
                position: relative;
                @media (max-width: 869px) {
                    padding: 10px 8px 8px;
                    max-width: 63.73vw;
                    border-radius: 16px;
                    font-size: 1.5rem;
                }
                @media (max-width: 369px) {
                    font-feature-settings: "palt";
                }
                &::before {
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: 0;
                    border-style: solid;
                    border-width: 7px 14px 7px 0;
                    border-color: transparent #333 transparent transparent;
                    translate: -100% -50%;
                    @media (max-width: 869px) {
                        top: 42%;
                        border-width: 5px 10px 5px 0;
                    }
                }
                &::after {
                    content: "";
                    position: absolute;
                    top: 50%;
                    left: 0;
                    border-style: solid;
                    border-width: 5.9px 11.8px 5.9px 0;
                    border-color: transparent #fff transparent transparent;
                    translate: -100% -50%;
                    @media (max-width: 869px) {
                        top: 42%;
                        left: 0.5px;
                        border-width: 3.9px 7.8px 3.9px 0;
                    }
                }
            }
        }
        section {
            & + section {
                margin-top: -6px;
            }
            h2 {
                display: flex;
                justify-content: flex-start;
                align-items: center;
                height: 43px;
                gap: 8px;
                font-weight: 700;
                font-size: 20px;
                letter-spacing: 0.05em;
                border-bottom: 2px solid #ffe658;
                margin-bottom: 17px;
                @media (max-width: 869px) {
                    gap: 3.2vw;
                    font-size: 1.5rem;
                    letter-spacing: 0.05em;
                    margin-top: 18px;
                    padding-top: 8px;
                }
                img {
                    height: 41px;
                    margin-bottom: 8px;
                    @media (max-width: 869px) {
                        height: 35px;
                    }
                }
                @media (max-width: 369px) {
                    font-feature-settings: "palt";
                }
            }
        }
        .denki-modal-moving-detail-list {
            /* 選択ボタン */
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 20px;
            margin-bottom: 45px;
            @media (max-width: 869px) {
                margin-top: 13px;
                flex-wrap: wrap;
                gap: 10px 2.66vw;
                margin-bottom: 10vw;
            }
            li {
                display: flex;
                justify-content: space-between;
                align-items: center;
                width: calc(50% - 10px);
                height: 100%;
                min-height: 100px;
                position: relative;
                margin: 0 auto;
                padding: 16px 16px 16px;
                border: 4px solid white;
                border-radius: 20px;
                color: inherit;
                &[data-btn-type="continue"] {
                    /* 「引っ越し先でも継続」のボーダー色 */
                    border-color: #ffd400;
                }
                &[data-btn-type="cancel"],
                &[data-btn-type="denki"] {
                    /* 「引っ越しに伴う解約」「でんき」のボーダー色 */
                    border-color: #ffe658;
                }
                &[data-btn-type="sb"],
                &[data-btn-type="not"] {
                    /* 「SoftBank」「わからない」のボーダー色 */
                    border-color: #b7bbbe;
                }
                &[data-btn-type="ym"] {
                    /* 「Y!mobile」のボーダー色 */
                    border-color: #e72e35;
                }
                &[data-btn-type="bb"] {
                    /* 「SoftBank 光／SoftBank Air」のボーダー色 */
                    border-color: #bd79c8;
                }
                @media (max-width: 869px) {
                    width: 80vw;
                    margin: 0 auto;
                    min-height: 80px;
                    border-width: 2px;
                }
                div {
                    display: flex;
                    align-items: center;
                    flex-wrap: wrap;
                    width: calc(100% - 100px);
                    p {
                        font-size: 1.7rem;
                        font-weight: 700;
                        margin-bottom: 5px;
                        &:last-child {
                            margin: 0 auto;
                            line-height: 1.5;
                            text-align: center;
                            font-weight: normal;
                        }
                        @media (max-width: 869px) {
                            font-size: 1.5rem;
                        }
                    }
                    img {
                        position: relative;
                        max-width: 100%;
                        @media (max-width: 869px) {
                            max-width: 130px;
                        }
                    }
                }
                &[data-link-type="denki"] img {
                    top: -4px;
                }
                button {
                    display: grid;
                    place-content: center;
                    margin-left: auto;
                    width: 84px;
                    height: 30px;
                    font-weight: 700;
                    font-size: 16px;
                    color: #fff;
                    background: #4788ee;
                    border-radius: 50px;
                    transition: opacity 0.3s;
                    border: none;
                    cursor: pointer;
                    &::before {
                        content: "";
                        position: absolute;
                        top: -2px;
                        left: -2px;
                        right: -2px;
                        bottom: -2px;
                    }
                }
                &:hover button {
                    opacity: 0.7;
                }
            }
        }
        .denki-modal-moving-btn {
            display: flex;
            justify-content: center;
            align-items: center;
            margin: 30px auto 0;
            width: 350px;
            height: 54px;
            font-weight: bold;
            font-size: 1.8rem;
            line-height: 1.5;
            letter-spacing: 0.05em;
            text-align: center;
            text-decoration: none;
            color: #333;
            background-color: white;
            border: 1px solid #c1c1c2;
            border-radius: 50px;
            box-shadow: 0px 3px 2px -3px rgb(0 0 0 / 80%);
            position: relative;
            opacity: 1;
            transition: opacity 0.5s;
            cursor: pointer;
            @media (max-width: 869px) {
                width: 280px;
                height: 43px;
                font-size: 1.5rem;
            }
            &:hover {
                opacity: 0.7;
            }
            &::after {
                content: "";
                display: inline;
                width: 7px;
                height: 7px;
                border-top: 2px solid #ff7e00;
                border-right: 2px solid #ff7e00;
                position: absolute;
                top: 50%;
                right: 27px;
                transform: translateY(-50%) rotate(45deg);
                @media (max-width: 869px) {
                    right: 20px;
                }
            }
            &:hover::after {
                animation: wiggle-link-arrow 0.8s ease 0s forwards;
            }
            .newwindowicon {
                display: none;
            }
        }
        .denki-modal-moving-back {
            padding: 45px 0;
            text-align: center;
            @media (max-width: 869px) {
                padding: 18px 0;
            }
            a {
                position: relative;
                color: #333;
                font-size: 18px;
                line-height: 1.5;
                padding-left: 16px;
                text-decoration: none;
                transition: opacity 0.4s;
                cursor: pointer;
                @media (max-width: 869px) {
                    font-size: 15px;
                    line-height: 1.4;
                    padding-left: 12px;
                    text-decoration: none;
                }
                &::before {
                    content: "";
                    display: block;
                    border-top: solid 3px #333;
                    border-right: solid 3px #333;
                    width: 8px;
                    height: 8px;
                    position: absolute;
                    top: 7px;
                    left: 0;
                    transform: translateY(-25%) rotate(-135deg);
                    @media (max-width: 869px) {
                        border-top: solid 1px #333;
                        border-right: solid 1px #333;
                        width: 6px;
                        height: 6px;
                        top: 6px;
                    }
                }
                &:hover,
                &:hover::before {
                    opacity: 0.7;
                }
                &:hover::before {
                    animation: arrow-l 0.4s ease-in-out 0s 2 alternate;
                }
            }
        }
    }
}

@keyframes wiggle-link-arrow {
    0% {
        right: 20px;
    }
    25% {
        right: 15px;
    }
    50% {
        right: 20px;
    }
    75% {
        right: 15px;
    }
    100% {
        right: 20px;
    }
}
@keyframes arrow-l {
    0% {
        transform: translateY(-25%) translate3d(0, 0, 0) rotate(-135deg);
    }
    50% {
        transform: translateY(-25%) translate3d(-30%, 0, 0) rotate(-135deg);
    }
    100% {
        transform: translateY(-25%) translate3d(0, 0, 0) rotate(-135deg);
    }
}
