@charset "utf-8";

/* form_modal.css で定義された CSS 変数のテーマカラーをここで上書きできます */
:root {
    --modal-color: #e7513c;
    --modal-color-light: #fdedeb;
}

input:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffc9 inset;
}
input,
select,
.dummy_select {
    width: 100%;
    height: 46px;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    padding-inline: 10px 25px;
    appearance: none;
    border-radius: 4px;
    font-family: initial;
    border: solid 1px #999;
}
@media screen and (max-width: 960px) {
    input,
    select,
    .dummy_select {
        display: block;
        height: 50px;
    }
}
input[name="car_id"] {
    position: absolute;
    overflow: hidden;
    width: 0;
}
select::-ms-expand {
    display: none;
}
.dummy_select {
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
}
@media screen and (max-width: 960px) {
    #user_area,
    #submit_btn_box {
        display: none;
    }
}
.err_msg {
    clear: both;
    padding-bottom: 0;
    color: #e50000;
    font-size: 13px;
    text-align: left;
    line-height: 1.6;
}

/*------------------------------ フォームinner ------------------------------*/
.main_form {
    border-radius: 4px;
    width: 460px;
    background-color: #f5f5e8;
    margin-inline: auto;
}
@media screen and (min-width:961px) {
    .main_form {
        margin-block: 5px 25px;
    }
    .contact_form {
        padding: 15px 20px;
    }
}
@media screen and (max-width: 960px) {
    .main_form {
        width: 100%;
    }
    .contact_form {
        padding: 4%;
    }
}

/*------------------------------ car_area & user_area タイトル ------------------------------*/
.form_heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-inline: 4px;
    margin: 15px auto;
    font-size: 15px;
    font-weight: bold;
    line-height: 1.3;
    text-align: center;
}
.form_heading::before,
.form_heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #CCCCCC;
}
.form_heading_pc {
    display: none;
}
@media screen and (max-width: 960px) {
    .form_heading {
        width: 95%;
        margin-block: 20px 10px;
        font-size: 1rem;
    }
}

/*------------------------------ 項目入力欄 ------------------------------*/
.form_area {
    position: relative;
    width: 70%;
    padding-left: 8px;
}
@media screen and (max-width: 960px) {
    .form_area {
        width: 100%;
        padding-left: 0;
    }
}
.form_area input,
.form_area select {
    background-color: #fff;
}
.form_area input.req_on,
.form_area select.req_on {
    background-color: #ffffc9;
}
.form_area.triangle::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 10px;
    width: 7px;
    height: 7px;
    border-top: 2px solid #afafaf;
    border-right: 2px solid #afafaf;
    -webkit-transform: rotate(135deg);
    transform: rotate(135deg);
    pointer-events: none;
}
@media screen and (max-width: 960px) {
    .form_area.triangle::after {
        top: 20px;
    }
}

/*------------------------------ 項目全体 ------------------------------*/
.form_item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}
@media screen and (max-width: 960px) {
    .form_item {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}

/*------------------------------ 項目タイトル ------------------------------*/
.form_title {
    display: flex;
    width: 41%;
    margin-bottom: 5px;
    justify-content: flex-start;
    align-items: center;
    font-size: 15px;
    font-weight: bold;
}
@media screen and (max-width: 960px) {
    .form_title {
        width: 100%;
        text-align: left;
    }
}
/* 必須・任意 */
span.req_on,
span.req_off {
    font-size: 12px;
    margin: 3px 7px 0 0;
    padding: 2px 5px;
    line-height: 1.5;
    color: #fff;
    display: inline-block;
    float: left;
    font-weight: 500;
}
span.req_on {
    background: #F83535;
}
span.req_off {
    background: #949494;
}

/*------------------------------ $form_sp_ver: PC でも SP レイアウトを使う ------------------------------*/
/* $form_sp_ver = true のとき form_box に sp_ver クラスが付与される */
#form_box.sp_ver #user_area,
#form_box.sp_ver .submit_btn_box {
    display: none;
}
#form_box.sp_ver .form_next_btn {
    display: flex;
}

/*------------------------------ $user_area_ttl_under_txt: 「お客様について」下テキスト ------------------------------*/
.user_area_ttl_under_txt {
    font-size: 13px;
    margin-bottom: 10px;
    text-align: start;
    line-height: 1.5;
}

/*------------------------------ $submit_btn_upper_txt: 送信ボタン上テキスト ------------------------------*/
.submit_btn_upper_txt {
    font-size: 13px;
    margin-bottom: 8px;
    text-align: center;
}

/*------------------------------ ご売却希望時期 ラジオボタン ------------------------------*/
#period_group,
#radio_group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}
#period_group .question_head,
#radio_group .question_head {
    width: 100%;
    margin-bottom: 8px;
    font-size: 13px;
}
/* ラジオボタン群を3列グリッドで並べる */
#period_group .form_area.question.radio,
#radio_group .form_area.question.radio {
    display: flex;
    align-items: center;
    width: 33.33%;
    margin-bottom: 8px;
    padding-right: 4px;
}
/* ラジオ input 自体のリセット（form.css グローバルの appearance:none / border / padding を上書き） */
#period_group input[type="radio"],
#radio_group input[type="radio"] {
    appearance: auto;
    -webkit-appearance: radio;
    width: 16px;
    height: 16px;
    min-width: 16px;
    flex-shrink: 0;
    margin: 0 6px 0 0;
    background-image: none;
    border: none;
    padding: 0;
    line-height: normal;
    cursor: pointer;
}
/* ラジオボタンへの点滅アニメーションを無効化 */
input[type="radio"].target_item {
    border: none;
    animation: none;
    box-shadow: none;
}
#period_group .radio-label,
#radio_group .radio-label {
    font-size: 13px;
    cursor: pointer;
    line-height: 1.4;
}

/*------------------------------ SSL ------------------------------*/
.ssl_information span {
    display: none;
}
.ssl_information p {
    padding-top: 5px;
    font-size: 11px;
    line-height: 1.4;
    border-top: 1px solid #acacac;
}

/*------------------------------ 利用規約とプライバシーポリシー------------------------------*/
.form-agreement {
    margin-block: 15px;
    font-size: 13px;
    text-align: center;
}
.form-agreement a {
    text-decoration: underline;
    color: #0095E3;
}

/*------------------------------ 同意する------------------------------*/
.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;
    appearance: checkbox;
    -webkit-appearance: checkbox;
    vertical-align: middle;
    margin: 0;
}

/*------------------------------ 次へボタン、送信ボタン ------------------------------*/
#next_btn,
.submit_btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 400px;
    margin: 16px auto;
    padding: 18px 0;
    color: #fff;
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    text-align: center;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to bottom, #1472CB, #1860BE);
    box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.2), 0 2px 0 rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: opacity .3s;
}
#next_btn {
    background: #F83535;
}
#next_btn.disable {
    color: #A0A0A0;
    background: #DDDDDD;
}
.submit_btn:hover {
    opacity: 0.85;
}
@media screen and (min-width:961px) {
    #next_btn {
        display: none;
    }
}
@media screen and (max-width: 960px) {
    #next_btn,
    .submit_btn {
        width: 95%;
    }
}

/* **************************************************************************************** */
/* ************************************* 以下編集しない ************************************* */
/* **************************************************************************************** */

/* JS実行前のチラつき防止（applyConfig() が実行されると上書きされる） */
@media screen and (min-width:961px) {
    .pc-hidden {
        display: none;
    }
}
@media screen and (max-width: 960px) {
    .sp-hidden {
        display: none;
    }
}
/* 点滅 */
.target_item {
    border: 3px solid #f12;
    animation-name: borderFlashing;
    animation-duration: 1s;
    animation-timing-function: ease;
    animation-iteration-count: infinite;
}
@keyframes borderFlashing {
    0% {
        box-shadow: 0 0 0 0px #f12, 0 0 0 0px #fff, 0 0 0 1px #f12
    }
    100% {
        box-shadow: 0 0 0 0px #f12, 0 0 0 0px rgba(255, 255, 255, 0), 0 0 0 5px rgba(100, 164, 134, 0)
    }
}
/* 送信ボタン後のloading画像 */
#loading_img {
    display: none;
    width: 10%;
}
/* #layer はモーダル背景。main.js が動的に追加するため定義のみ残す */
#layer {
    display: none;
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 990;
    background-color: #000;
    opacity: 0.6;
}
.tel_display {
    display: none;
}