@charset "utf-8";

/* form_modal.css で定義された CSS 変数のテーマカラーをここで上書きできます */
:root {
    --modal-color: #00afec;
    --modal-color-light: #edfaff;
}

.main_form {
    color: #000;
    background: #edfaff;
    padding-bottom: 1em;
}

.main_form_inner {
    background: #fff;
    border-radius: 4px;
    padding: 20px 50px;
    margin: 20px auto 5px;
    box-sizing: border-box;
    width: 640px;
    max-width: 100%;
    height: auto;
    box-shadow: 1px 2px 13px 0 rgb(0 0 0 / 8%);
}

@media (max-width: 960px) {
    .main_form {
        padding-bottom: 0;
    }

    .main_form_inner {
        width: 100%;
        margin-block: 0;
        padding: initial;
        box-sizing: border-box;
        border-radius: 0;
        box-shadow: none;
        border: #00afec solid 5px;
    }
}

/*　ご利用の愛車について/お客様について　*/
.form_heading {
    font-size: 17px;
    padding: 4px;
    text-align: center;
    font-weight: bold;
    margin-bottom: 12px;
    color: #00aee8;
    border-bottom: solid 2px #00aee8;
}

@media (max-width: 960px) {
    .form_heading {
        color: #0068a5;
        background-color: #eaf1f9;
        border-bottom: none;
    }
}

/*　次へ　*/
.form_next_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(94%, 400px);
    margin: 15px auto 0;
    padding: 16px;
    background: linear-gradient(to bottom, #BD202D 0%, #E10214 88%);
    color: #fff;
    font-weight: bold;
    font-size: 24px;
    line-height: 1;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.form_next_btn::before {
    content: '無料';
    background: #fff;
    border-radius: 4px;
    color: #1e1e1e;
    font-size: 17px;
    letter-spacing: 0;
    padding: 5px;
}

.form_next_btn:hover {
    opacity: 0.8;
}

.form_next_btn.disable {
    background: #cfcfcf;
}

.form_next_btn.disable::before {
    color: #fff;
    background: #919191;
}

@media (max-width: 960px) {
    .form_next_btn {
        font-size: 20px;
    }
}

/* 入力フォームのスタイル */
input,
select {
    width: 100%;
    font-size: 18px;
    font-family: Meiryo, sans-serif;
    line-height: 1.5;
    padding: 5px 8px;
    border: solid 1px #888;
    border-radius: 8px;
    box-sizing: border-box;
    appearance: none;
}

input[name="car_id"] {
    position: absolute;
    overflow: hidden;
    width: 0;
}

select::-ms-expand {
    display: none;
}

#car_area,
#user_area {
    margin-bottom: 15px;
}

.form_title {
    display: flex;
    width: 40%;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9em;
    line-height: 1.4;
    align-items: center;
}

@media (max-width: 960px) {
    .form_title {
        width: 100%;
        margin-bottom: 5px;
    }
}

.form_title label {
    font-size: 16px;
}

.form_item:has(#model_year),
.form_item:has(#mileage) {
    display: none;
}

.form_item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 10px;
}

@media (max-width: 960px) {
    .form_item {
        flex-direction: column;
        gap: initial;
    }
}

.form_area {
    position: relative;
    width: 100%;
}

.form_box .form_area input:not(.submit_btn),
.form_box .form_area select {
    height: 45px;
    padding: 6px 8px 6px 8px;
    line-height: normal;
    cursor: pointer;
    border-radius: 8px;
}

.form_box .triangle input:not(.submit_btn),
.form_box .triangle select {
    padding: 6px 25px 6px 8px;
}

.form_area.triangle::after {
    content: "";
    position: absolute;
    top: 21px;
    right: 10px;
    margin-top: -3px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333;
    pointer-events: none;
}

@media (max-width: 960px) {

    .form_title label,
    input,
    select {
        font-size: 16px;
    }

    .form_box .form_area input:not(.submit_btn),
    .form_box .form_area select {
        height: 40px;
    }

    .form_inner {
        padding-inline: 3vw;
    }
}

.form_area input,
.form_area select {
    background-color: #fff;
}

.form_area input.req_on,
.form_area select.req_on {
    background-color: #fff;
}

/* JS実行前のチラつき防止（applyConfig() が実行されると上書きされる） */
@media screen and (min-width:961px) {
    .pc-hidden {
        display: none;
    }
}

@media screen and (max-width: 960px) {
    .sp-hidden {
        display: none;
    }
}

/*　必須/任意　*/
span.req_on,
span.req_off {
    margin-right: 5px;
    padding: 3px 5px;
    color: #fff;
    display: inline-block;
    font-weight: 500;
}

span.req_on {
    background: red;
}

span.req_off {
    background: #27a424;
}

/*------------------------------ ご売却希望時期 ラジオボタン ------------------------------*/
.period_group .question_head,
.radio_group .question_head {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 5px;
}

.period_group,
.radio_group {
    width: 100%;
    justify-content: flex-start;
}

.radio {
    width: fit-content;
    margin: 0;
    padding: 0;
}

.form_area.radio {
    width: fit-content;
}

.radio input[type="radio"] {
    /* デフォルトのinputを見えないように（余白の原因になる） */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.radio input[type="radio"]+.radio-label::before {
    content: "";
    background: #f4f4f4;
    border-radius: 100%;
    border: 1px solid #b4b4b4;
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    position: relative;
    top: 0;
    margin-right: 0.3em;
    vertical-align: top;
    cursor: pointer;
    text-align: center;
    transition: all 250ms ease;
}

.radio-label {
    display: flex;
    width: fit-content;
    font-size: 15px;
    align-items: center;
}

.question.radio:nth-of-type(2),
.question.radio:nth-of-type(3) {
    padding-left: 20px;
}

.radio input[type="radio"]:checked+.radio-label::before {
    background-color: #3197ee;
    box-shadow: inset 0 0 0 4px #f4f4f4;
}

.radio input[type="radio"]:focus+.radio-label::before {
    outline: none;
    border-color: #3197ee;
}

.radio input[type="radio"]:disabled+.radio-label::before {
    box-shadow: inset 0 0 0 4px #f4f4f4;
    border-color: #b4b4b4;
    background: #b4b4b4;
}

.radio input[type="radio"]+.radio-label:empty::before {
    margin-right: 0;
}

/*------------------------------　利用規約/プライバシーポリシー　------------------------------*/
.form-agreement {
    font-size: 14px;
    margin-bottom: 15px;
    text-align: center;
}

/*------------------------------ 同意する ------------------------------*/
.agree-txt {
    font-size: 13px;
    margin: 14px 0 8px;
    line-height: 1.5;
}

.terms {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 16px;
    margin-bottom: 10px;
}

.terms input[id="chkbox"],
.terms input[id="chkbox2"] {
    width: 20px;
    height: 20px;
    box-sizing: border-box;
    appearance: checkbox;
    -webkit-appearance: checkbox;
    vertical-align: middle;
    margin: 0;
}

/*------------------------------　CVボタン　------------------------------*/
.submit_btn {
    position: relative;
    color: #fff;
    height: inherit;
    padding: 18px 10px 18px 0;
    line-height: 1;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-inline: auto;
    display: block;
    transition: opacity 0.3s ease;
    width: min(94%, 430px);
    background: linear-gradient(to bottom, #BD202D 0%, #E10214 88%);
    font-size: 24px;
}

.submit_btn::after {
    position: absolute;
    top: 0;
    right: 20px;
    bottom: 0;
    display: inline-block;
    content: '';
    width: 0.9em;
    height: 0.9em;
    margin: auto;
    background-image: url(../img/cv_form_btn_icon.png);
    background-repeat: no-repeat;
    background-size: contain;
}

.submit_btn:hover {
    opacity: 0.8;
}

@media (max-width: 960px) {
    .submit_btn {
        font-size: 20px;
    }

    .submit_btn::after {
        right: 10px;
        width: 0.8em;
        height: 0.8em;
    }
}

/*------------------------------　SSL信号　------------------------------*/
.ssl_information {
    margin: 20px auto 0;
    padding-top: 10px;
    font-size: 0.8rem;
    line-height: 1.4;
    border-top: 1px solid #ddd;
}

.ssl_information span {
    font-size: 12px;
    font-weight: bold;
}

.ssl_information p {
    font-size: 13px;
}

.ssl_information span::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("../img/ssl_icon.png") left center / contain no-repeat;
    vertical-align: inherit;
    margin-right: 4px;
}

@media (max-width: 960px) {
    .ssl_information {
        padding: 10px;
    }

    .ssl_information p {
        margin-top: 5px;
    }
}

#user_area,
.submit_btn_box {
    display: none;
}

/*------------------------------ $user_area_ttl_under_txt: 「お客様について」下テキスト ------------------------------*/
.user_area_ttl_under_txt {
    position: relative;
    font-size: 14px;
    line-height: 1.2;
    width: 100%;
    padding: 10px 12px 10px 28px;
    margin: 0 auto 10px;
    background-color: #dddddd;
}

.user_area_ttl_under_txt::before {
    content: "";
    position: absolute;
    background: url(../img/lightbulb.png) center / contain no-repeat;
    width: 24px;
    height: 24px;
    top: 4px;
    left: 5px;
}

@media (max-width: 960px) {
    .user_area_ttl_under_txt {
        width: 94%;
    }
}

/* **************************************************************************************** */
/* ************************************* 以下編集しない ************************************* */
/* **************************************************************************************** */
/* 点滅 */
input.target_item {
    border: 3px solid #f12;
    animation: inputPulse 1s ease-out infinite;
}

/* アニメーション */
@keyframes inputPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(241, 18, 34, 0.8);
    }

    60% {
        box-shadow: 0 0 0 4px rgba(241, 18, 34, 0.2);
    }

    100% {
        box-shadow: 0 0 0 6px rgba(241, 18, 34, 0);
    }
}

/* 送信項目のエラーメッセージ */
.err_msg {
    clear: both;
    padding-top: 3px;
    color: #f00;
    font-size: 13px;
    text-align: left;
    line-height: 1.6;
}

/* 送信ボタン後のloading画像 */
#loading_img {
    display: none;
    /* 編集しないで下さい */
    width: 10%;
}