#self_check {
    margin: 0 10px 6vw;
    border-radius: 12px;

    font-size: 3.6vw;

}

#self_check .self_check_wrapper {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 12px;
}

#self_check .self_check_track {
    display: flex;
    width: 100%;
    align-items: flex-start;
    transform: translateX(0);
    transition: transform 260ms ease;
    will-change: transform, height;
}

#self_check .self_check_card {
    flex: 0 0 100%;
    box-sizing: border-box;
    border-radius: 12px;
    overflow: hidden;
    background-color: #059804;
}

#self_check .card_header {
    font-weight: 700;
    line-height: 1.35;
    position: relative;
}

#self_check .step_badge {
    text-align: center;
    position: absolute;
    right: 26px;
    top: 19px;
    font-size: 12px;
    font-weight: 800;
    padding: 2px;
    transform: rotate(12deg);
}

#self_check .step_badge .num_green {
    font-size: 14px;
    color: #059804;
}

.card_body_form {
    font-weight: bold;
    background-color: #f0fff1;
    padding-bottom: 12px;
    border-radius: 0 0 12px 12px;
}

.card_body_form .label_case:not(:last-child) {
    border-bottom: dotted 2px #059804;
}

#self_check .txt_green {
    color: #059804;
    line-height: 1.5;
}

#self_check .card_body {
    padding: 0 16px 16px;
}

#self_check .choice {
    display: flex;
    gap: 10px;
    font-size: 14px;
    align-items: center;
    padding: 10px 8px;
    border-radius: 10px;
    cursor: pointer;
}

@media screen and (max-width: 767px) {
    #self_check .choice img {
        height: 50px !important;
        width: auto;
        max-width: 62px !important;
    }
}

#self_check .choice input {
    margin-top: 3px;
}

#self_check .form_error {
    margin-top: 12px;
    color: #c0392b;
    font-size: 14px;
    min-height: 1.2em;
}

#self_check .card_footer {
    padding: 12px 16px;
}

#self_check .btn_area {
    display: flex;
    gap: 10px;
    justify-content: space-around;
}

#self_check .btn {
    appearance: none;
    padding: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#self_check .result_score {
    font-weight: 700;
    margin-bottom: 8px;
}

#self_check .result_label {
    font-weight: 800;
    font-size: 18px;
    margin-bottom: 8px;
}

#self_check .result_message {
    line-height: 1.7;
}

/* checkbox自体は隠す*/
.choice input[type="checkbox"] {
    display: none;
}

.choice {
    display: flex;
    align-items: center;
    /* 文章が2行以上のとき上下中央揃え */
    cursor: pointer;
}

/* チェック画像は label に付ける：入れ子spanの影響を受けない */
.choice::before {
    content: "";
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    margin-top: 2px;
    /* ベースライン微調整 */
    background-image: url("../img/selfcheck/check_btn_off.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.choice input[type="checkbox"]:checked+span {}

.choice:has(input[type="checkbox"]:checked)::before {
    background-image: url("../img/selfcheck/check_btn_on.png");
}

#self_check .self_check_card.result_wrapper {
    background-color: white;
}

footer.result_footer {
    padding: 10px 16px;
}

.result_wrapper .result_body {
    border-radius: 0 0 12px 12px;
    padding-bottom: 12px;
    background-color: #059804;
}

div#selftop {
    position: fixed;
    bottom: 90px !important;
    width: 30%;
    left: 10px;
    z-index:9999;
}

div#selftop img {
    opacity: 1;
}
.btn_control_surface {
    width: 100%;
    position: relative;
}


.btn_control_surface img.closeUI {
    position: absolute;
    right: -10px;
    top: -10px;
    width: 24px;
    height: 24px;
}


@media screen and (min-width: 768px) {
    #self_check {
        width: 1000px;
        margin: 30px auto;
        border-radius: 0;
    }

    #self_check .self_check_wrapper {
        max-width: 1000px;
    }

    #self_check .card_header {
        text-align: center;
    }

    #self_check .card_body {
        position: relative;
        margin-top: 20px;
    }

    picture.ttl_question {
        margin: auto;
        display: block;
        text-align: center;
        margin-bottom: -40px;
    }

    .card_body_form {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
        border-radius: 12px;
        padding-top: 40px;
    }

    .card_body_form .label_case {
        border-bottom: none;
    }

    .card_body_form .label_case {
        border-right: dotted 2px #059804;
    }

    .card_body_form .label_case:not(:last-child) {
        border-bottom: none;
    }

    .card_body_form .label_case:nth-child(3n),
    .card_body_form .label_case:last-child {
        border: none;
    }

    .card_body_form .choice {
        display: flex;
        flex-direction: column;
        align-items: center;
        /* 中央寄せ（左寄せが良ければ flex-start） */
        gap: 8px;
        padding: 12px 10px;
    }

    .card_body_form .choice>img {
        width: 100%;
        height: auto;
        display: block;
    }

    .card_body_form .choice>span {
        width: 230px;
        text-align: left;
        line-height: 1.4;
    }

    .sp-only {
        display: none;
    }

    .img_arrow {
        text-align: center;
    }

    .first_one {
        display: none;
    }

    #self_check .step_badge {
        right: 251px;
        top: 39px;
        font-size: 12px;
        transform: rotate(12deg);
    }

    div#selftop {
        position: fixed;
        bottom: 104px !important;
        width: 320px;
        right: 85px;
        left:auto;
        }
    .btn_control_surface {
        width:320px;
    }
    .btn_control_surface img.closeUI {
        right: -15px;
        top: -15px;
        width: 36px;
        height: 36px;
    }
    #container #page-top.pt-active {
        bottom: 105px !important;
    }
}
@media screen and (max-width: 767px) {
    #container #page-top.pt-active {
        display:none;
    }
    div#selftop {
        position: fixed;
        bottom: 90px !important;
        width: 50%!important;
        right: 10px !important;
        left:auto !important;
        z-index: 9999;
    }
}