@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 #ffffe4 inset;
}
input,select,.dummy_select{
    width: 100%;
    font-size: 16px;
    line-height: normal;
    padding: 12px 8px;
    box-sizing: border-box;
    appearance: none;
    border-radius: 5px;
    font-family: 'Noto Sans JP', sans-serif;
    border:2px solid #DDDDDD;
}

input[name="car_id"] {
    position: absolute;
    overflow: hidden;
    width: 0;
}
select::-ms-expand {
    display: none;
}
.dummy_select{
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
}

@media screen and (max-width: 768px) {
    #user_area,
    #submit_btn_box {
        display: none;
    }
}
/* 必須・任意 */
span.req_on,
span.req_off {
    font-size: 12px;
    padding: 1px 8px;
    color: #fff;
    display: inline-block;
    float: left;
    font-weight: 500;
    border-radius: 2px;
}
span.req_on {
    background: #e50000;
}
span.req_off {
    background: #ADADAD;
}

.err_msg{
    clear: both;
    padding-bottom: 0;
    color: #e50000;
    font-size:13px;
    text-align: left;
    line-height: 1.6;
}
.form_area input:not(#name):not(#phone_number):not(#zip_code):not(#email):not(.submit_btn):not([type="radio"]),
.form_area select {
    background-image: url('../img/select_mark.png');
    background-repeat: no-repeat;
    background-position: 98% 50%;
    background-size: 7px;
}
.form_area input.req_on,
.form_area select.req_on {
    background-color: #ffffc9;
}

/*------------------------------ フォームCSS ------------------------------*/

.main_form {
    position: relative;
    width: 80%;
    max-width: 960px;
    box-sizing: border-box;
}
.main_form_inner {
    overflow: hidden;
    border-radius: 10px;
}
#form_box {
    display: grid;
    grid-template-columns: 1fr 1fr ;
    grid-template-rows: auto auto auto;
    box-sizing: border-box;
    width: 100%;
    justify-content: center;
}
.form_heading {
    display: flex;
    align-items: center;
    text-align: center;
    font-weight: normal;
    background-color: transparent;
    font-size: 16.5px;
    margin-bottom: 15px;
}
.form_heading::before,
.form_heading::after{
    content: "";
    flex: 1;
    height: 1px;
    background: #ccc;
}
.form_heading::before {
    margin-right: 10px;
}
.form_heading::after {
    margin-left: 10px;
}

.form_item {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.form_title {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: 100%;
    margin-bottom: 5px;
}
.form_title label {
    font-weight: bold;
}
#submit_btn_box {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    text-align: center;
}
.submit_btn_box button.submit_btn {
    box-sizing: border-box;
    width: 100%;
    max-width: 335px;
    margin: 0 auto;
    padding: 25px 0;
    border: none;
    color: #fff;
    background: linear-gradient(180deg, #127AD0 0%, #1957B7 100%);
    border-radius: 4px;
    font-weight: bold;
    font-size: 1.2rem;
    text-align: center;
}
.submit_btn_box button.submit_btn:hover {
    filter: brightness(1.1);
}

@media screen and (min-width: 769px) {
    .contact_form {
        box-sizing: border-box;
        padding: 0;
        overflow: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    .main_form_ttl.pc {
        background-color: #E7513C;
        text-align: center;
        color: #ffffff;
        font-weight: bold;
        padding: 20px 0;
        font-size: 30px;
        overflow: hidden;
    }
    .form_box_catch {
        position: absolute;
        z-index: 5;
        top: -10px;
        left: 50%;
        transform: translate(-50%, -50%);
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 20px;
        width: 100%;
        height: auto;
        margin: 0 auto;
    }
    .form_box_catch p {
        color: #333333;
        background-color: #F7F7E9;
        font-size: 20px;
        font-weight: bold;
        padding: 5px 25px;
        border-radius: 50px;
        border: 3px solid #E7513C;
    }
    .form_box_catch p span {
        color: #127AD0;
    }
    #car_area,#user_area {
        padding: 20px 0;
        background: #F7F7E9;
    }
    #car_area {
        padding-left: 40px;
        padding-right: 10px;
        grid-column: 1 / 2;
        grid-row: 1 / 2;
    }
    #user_area {
        padding-right: 40px;
        padding-left: 10px;
        grid-column: 2 / 3;
        grid-row: 1 / 2;
    }
    .submit_btn_box {
        box-sizing: border-box;
        background-color: #ffffff;
        padding: 15px 40px 25px 40px
    }
    #next_btn {
        display: none;
    }
    /* テンプレートのSSL非表示*/
    .ssl_information {
        display: none;
    }
}
@media screen and (max-width: 768px) {
    .main {
        padding-bottom: 0;
    }
    .main_form{
        width: 100%;
        background-color: #ffffff;
    }
    .main_form_inner {
        border-radius: 0;
    }
    .main_form_ttl{
        font-size: 1.2em;
        font-weight: bold;
        color: #ffffff;
        padding: 10px 0;
        background-color: #127AD0;
        text-align: center;
    }
    .main_form_ttl.arrow:after{
        border-color: #127AD0 transparent transparent transparent;
    }
    .main_form_ttl em{
        color: #FFFF84;
    }
    #form_box {
        display: block;
        padding: 30px 20px 20px;
    }
    .form_inner {
        margin: 0 auto;
        width: 95%;
    }
    #car_area, #user_area {
        padding-bottom: 15px;
    }
    .form_heading {
        margin-bottom: 15px;
    }
    #next_btn {
        display: block;
        width: 95%;
        margin: 0 auto;
        padding: 20px 0;
        border-radius: 4px;
        box-sizing: border-box;
        background: linear-gradient(to bottom, #BD202D 0%, #E10214 88%);
        color: #fff;
        font-weight: bold;
        font-size: 1.2rem;
        text-align: center;
        box-sizing: border-box;
    }
    #next_btn.disable {
        background: #dadada;
        color: #A0A0A0;
        font-weight: 500;
        text-align: center;
        width: 95%;
        margin: 0 auto;
        box-sizing: border-box;
    }
    .submit_btn_box {
        padding-bottom: 15px;
    }
    .submit_btn_box input.submit_btn {
        width: 100%;
    }
}

/* JS実行前のチラつき防止（applyConfig() が実行されると上書きされる） */
@media screen and (min-width: 961px) {
    .pc-hidden { display: none; }
}
@media screen and (max-width: 960px) {
    .sp-hidden { display: none; }
}
/*------------------------------ ご売却希望時期 モーダル ------------------------------*/
.addAfModal_btn {
    width: 90%;
    border: none;
    padding: 1em 10px;
    border-radius: 5px;
    font-size: 23px;
    font-weight: bold;
    line-height: 1;
    color: #fff;
    background-color: #127AD0;
    transition: opacity .6s;
}

@media screen and (min-width: 769px) {
    .addAfModal_content {
        max-width: 700px;
        padding: 1.5em 1.5em 2em;
    }
    .addAfModal_btnGroup {
        flex-wrap: nowrap;
    }
}

/*------------------------------ $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: block;
}

/*------------------------------ $user_area_ttl_under_txt: 「お客様について」下テキスト ------------------------------*/
.user_area_ttl_under_txt {
    font-size: 13px;
    margin-bottom: 10px;
    text-align: center;
}

/*------------------------------ $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;
    box-sizing: border-box;
    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;
}

/*------------------------------ 自動車税文言スタイル ------------------------------*/
.jizei_text1{
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #ADADAD;
}
.jizei_text1 span{
    color: #FC5943;
}
.jizei_text2{
    font-size: 12px;
    text-align: center;
    font-weight: normal;
}

/*------------------------------ SSL ------------------------------*/
.ssl_text.pc {
    width: 80%;
    max-width: 960px;
    margin: 20px auto 0;
    text-align: center;
    font-size: 12px;
    color: #ffffff;
}

.ssl_information {
    color: #333333;
}
.ssl_information span {
    display: none;
}

.ssl_information p{
    font-size: 12px;
    text-align: center;
    font-weight: 400;
}

/*------------------------------ 利用規約とプライバシーポリシー------------------------------*/
.form-agreement {
    font-size: 14px;
    padding: 0 0 5px;
    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;
  box-sizing: border-box;
  appearance: checkbox;
  -webkit-appearance: checkbox;
  vertical-align: middle;
  margin: 0;
}

/* **************************************************************************************** */
/* ************************************* 以下編集しない ************************************* */
/* **************************************************************************************** */

/* 点滅 */
.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;
}
.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;*/
/*}*/
/*@media screen and (min-width: 769px) {*/
/*    .tel_display.sp {*/
/*        display: none !important;*/
/*    }*/
/*}*/

/*@media screen and (max-width: 768px) {*/
/*    .tel_display.pc {*/
/*        display: none !important;*/
/*    }*/
/*}*/
