.plan-wrapper {
    background-color: #E8F0F9;
    position: relative;
    padding: 0 4% 105px;
}

.price-image-back {
    position: absolute;
    top: 5px;
    left: 0;
}

.plan {
    max-width: 1460px;
    margin: 0 auto;
}

.plan-header {
    position: relative;
    padding: 181px 0 176px;
}

.plan-header h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    font-weight: bold;
    text-align: center;
    z-index: 1;
}

.plan-box {
    max-width: 1210px;
    margin: 72px auto 64px;
    display: flex;
    justify-content: center;
    gap: 40px;
}

.plan-box .box {
    width: 50%;
    border-radius: 15px;
    padding: 89px 0 69px;
    text-align: center;
    background-color: #FFF;
    position: relative;
}

.box .plan-circle {
    position: absolute;
    top: -75px;
    left: 0;
    text-align: center;
    width: 100%;
}

.plan-box .box h2 {
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 16px;
}

.plan-box .box .pbh {
    display: flex;
    justify-content: center;
    border-bottom: 1px solid #000;
    padding: 0 20px 16px;
    max-width: 520px;
    margin: 0 auto;
}

.plan-box .box p {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    white-space: nowrap;
}

.plan-box .box .price {
    font-size: 160px;
    font-weight: bold;
    margin: 0 12px;
    height: 190px;
    position: relative;
    z-index: 1;
}

.plan-box .box span {
    font-size: 48px;
    font-weight: bold;
    position: relative;
    z-index: 1;
}

.plan-box .box .vertical-text {
    writing-mode: vertical-rl;
    display: inline-block;
    font-size: 14px;
    padding-bottom: 3px;
    letter-spacing: 2px;
}

.plan-box .yellow-line {
    position: absolute;
    bottom: 0;
    z-index: 0;
    width: 350px;
}

.plan-box .yellow-line img {
    width: 100%;
}

.plan-btn {
    text-align: center;
}

.plan-btn a {
    width: 360px;
    height: 80px;
}

/* 1200px以下 */
@media (max-width: 1200px) {
    .plan-box .box h2 {
        font-size: 36px;
    }
    .plan-box .box .pbh {
        max-width: 400px;
    }
    .plan-box .box p {
        font-size: 20px;
    }
}

/* 992px以下 */
@media (max-width: 992px) {
    .plan-header {
        padding: 168px 0 156px;
    }
    .plan-header h1 {
        font-size: 40px;
    }
    .box .plan-circle {
        top: -60px;
    }
    .box .plan-circle img {
        width: 110px;
        height: 110px;
    }
    .plan-box .box h2 {
        font-size: 26px;
    }
    .plan-box .box .pbh {
        max-width: 330px;
    }
    .plan-box .box p {
        font-size: 16px;
    }
    .plan-box .box .price {
        font-size: 100px;
        height: 125px;
    }
    .plan-box .yellow-line {
        width: 320px;
    }
}

/* 768px以下 */
@media (max-width: 768px) {
    .plan-wrapper {
        padding: 0 16px 62px;
    }
    .price-image-back {
        top: 0;
    }
    .price-image-back img {
        max-width: 173px;
        width: 100%;
    }
    .plan-header {
        position: relative;
        padding: 220px 0 0;
    }
    .plan-header h1 {
        font-size: 23px;
        z-index: 1;
    }
    .plan-box {
        max-width: 1210px;
        margin: 72px auto 64px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 150px;
    }
    .plan-box .box {
        width: 80%;
        border-radius: 15px;
        padding: 65px 0 40px;
        margin: -50px auto 0;
        text-align: center;
        background-color: #FFF;
        position: relative;
    }
    .box .plan-circle {
        position: absolute;
        top: -52px;
        width: 100%;
    }
    .box .plan-circle img {
        width: 97px;
        height: 97px;
    }
    .plan-box .box h2 {
        font-size: 26px;
    }
    .plan-box .box p {
        display: inline-block;
        font-size: 14px;
        padding: 0;
    }
    .plan-box .box .price {
        font-size: 100px;
        font-weight: bold;
        margin: 0 12px;
        height: 125px;
        position: relative;
        z-index: 1;
    }
    .plan-box .box span {
        font-size: 32px;
        font-weight: bold;
        position: relative;
        z-index: 1;
    }
    .plan-box .box .vertical-text {
        writing-mode: vertical-rl;
        display: inline-block;
        font-size: 10px;
        padding-bottom: 0;
        letter-spacing: 2px;
    }
    .plan-box .yellow-line {
        position: absolute;
        bottom: 0;
        z-index: 0;
        width: 250px;
    }
    .plan-box .yellow-line img {
        width: 100%;
    }
    .plan-btn {
        text-align: center;
    }
    .plan-btn a {
        font-size: 15px;
        width: 231px;
        height: 55px;
    }
}

/* 668px以下 */
@media (max-width: 668px) {
    .plan-box .box {
        width: 100%;
    }
}

/* 500px以下 */
@media (max-width: 500px) {
    .box .plan-circle {
        top: -45px;
    }
    .box .plan-circle img {
        width: 80px;
        height: 80px;
    }
    .plan-box .box .price {
        font-size: 88px;
        height: 110px;
    }
}