@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: 1.5;
    padding: 7px 8px;
    box-sizing: border-box;
    appearance: none;
    border-radius: 2px;
    font-family: 'Noto Sans JP', sans-serif;
    border: 1px solid #888;
}
@media screen and (max-width: 960px) {
    input, select, .dummy_select {
        padding-block: 10px;
    }
}
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;
}

#submit_btn_box{
    text-align: center;
}
@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;
}

/*------------------------------ ページ独自 ------------------------------*/
@media screen and (min-width: 961px) {
    .main_form {
        position: absolute;
        top: 20px;
        right: 0;
        width: 400px;
        background-color: #fff;
        border-radius: 4px;
        overflow: hidden;
        box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.4);
    }
}
@media screen and (max-width: 960px) {
    .main_form {
        background-color: #fbecbd;
    }
}

/*------------------------------ フォームinner ------------------------------*/
.contact_form{
    padding: 10px 15px;
}
@media screen and (max-width: 960px) {
    .contact_form {
        padding-bottom: 15px;
        margin: 10px 3%;
        background-color: #fff;
    }
}

/*------------------------------ car_area & user_area タイトル ------------------------------*/
.form_heading {
    margin-bottom: 15px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: left;
    border-bottom: 1px solid #bbb;
}
@media screen and (min-width: 961px) {
    .form_heading::before {
        content: '';
        width: 30px;
        height: 30px;
        display: inline-block;
        vertical-align: middle;
        margin-right: 8px;
        margin-bottom: 5px;
        background-size: contain;
        background-repeat: no-repeat;
    }
    #car_area .form_heading::before {
        background-image: url("../img/form_icon_car.png");
    }
    #user_area .form_heading::before {
        background-image: url("../img/form_icon_customer.png");
    }
}
@media screen and (max-width: 960px) {
    .form_heading {
        padding-block: 10px;
        text-align: center;
        color: #525252;
        border-bottom: 1px solid #ded8b5;
    }
}

/*------------------------------ 項目全体 ------------------------------*/
.form_item {
    margin-bottom: 8px;
}
@media screen and (max-width: 960px) {
    .form_item {
        margin-bottom: 10px;
    }
}

/*------------------------------ 項目タイトル ------------------------------*/
.form_title {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.form_title label {
    font-size: 14px;
}
@media screen and (min-width: 961px) {
    .form_title {
        width: 35%;
    }
}
@media screen and (max-width: 960px) {
    .form_title {
        margin-bottom: 5px;
    }
    .form_title label {
        font-size: 16px;
    }
    .form_title label[for="as_maker"],
    .form_title label[for="name"],
    .form_title label[for="phone_number"],
    .form_title label[for="email"] {
        color: #ff0000;
    }
}
/* 必須・任意 */
span.req_on,
span.req_off {
    font-size: 10px;
    padding: 5px;
    color: #fff;
    float: left;
    font-weight: 500;
    border-radius: 2px;
}
span.req_on {
    background: #ff0000;
}
span.req_off {
    background: #27a424;
}
@media screen and (max-width: 960px) {
    span.req_on,
    span.req_off {
        font-size: 15px;
        font-weight: normal;
    }
    span.req_off {
        background: #a0a0a0;
    }
}

/*------------------------------ 項目入力欄 ------------------------------*/
.form_area {
    position: relative;
}
.form_area.triangle::after {
    content: "";
    position: absolute;
    top: 50%;
    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;
}
.form_area input,
.form_area select {
    background-color: #fff;
}
.form_area input.req_on,
.form_area select.req_on {
    background-color: #ffffc9;
}
@media screen and (min-width: 961px) {
    .form_area {
        display: inline-block;
        vertical-align: middle;
        width: 62%;
    }
}
@media screen and (max-width: 960px) {
    .form_area select {
        padding: 12px 8px;
    }
}

/*------------------------------ 次へボタン、送信ボタン ------------------------------*/
#next_btn,
.submit_btn_box button.submit_btn {
    display: block;
    width: 100%;
    padding-block: 10px;
    margin: 15px auto;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    font-size: 26px;
    text-align: center;
    background: linear-gradient(to bottom, #e70012 0%, #e70012 36%, #e70012 36%, #a8000d 51%, #d90011 100%);
    border: none;
    cursor: pointer;
}
@media screen and (max-width: 960px) {
    #next_btn,
    .submit_btn_box button.submit_btn {
        padding-block: 20px;
        font-size: 5vw;
        background: linear-gradient(to bottom, #BD202D 0%, #E10214 88%);
    }
}
.submit_btn_box button.submit_btn:hover {
    opacity: 0.8;
}
#next_btn.disable {
    background: #dadada;
    color: #fff;
}
@media screen and (min-width: 961px) {
    #next_btn {
        display: none;
    }
}

/*------------------------------ $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;
    line-height: 1.4;
    margin-bottom: 10px;
    text-align: left;
}

/*------------------------------ $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: 15px;
    cursor: pointer;
    line-height: 1.4;
}
@media screen and (max-width: 960px) {
    #period_group .radio-label,
    #radio_group .radio-label {
        font-size: 14px;
    }
}

/*------------------------------ 自動車税文言スタイル ------------------------------*/
.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_information {
    text-align: left;
    line-height: 1.4;
}
.ssl_information span {
    padding-bottom: 3px;
    font-size: 13px;
    font-weight: bold;
    text-align: left;
}
.ssl_information span::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url('../img/ssl_icon.png') center;
    background-repeat: no-repeat;
    background-position: left;
    vertical-align: inherit;
    background-size: contain;
    margin-right: 4px;
}
.ssl_information p {
    font-size: 12px;
    color: #535353;
}
@media screen and (min-width: 961px) {
    .ssl_information {
        display: none;
    }
}

/*------------------------------ 利用規約とプライバシーポリシー ------------------------------*/
.form-agreement {
    font-size: 14px;
    margin-block: 10px 20px;
    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;
}

/*------------------------------ アクセス時モーダル ------------------------------*/
.addAfModal_content {
    max-width: 650px;
    line-height: 1.4;
}
.addAfModal_text_emphasis {
    font-size: 25px;
}
.addAfModal_btn {
    padding: 30px 10px;
    font-size: 23px;
    font-weight: bold;
    background-color: #00a856;
}
@media screen and (min-width: 961px) {
    .addAfModal_btnGroup {
        flex-wrap: nowrap;
    }
}
@media screen and (max-width: 960px) {
    .addAfModal_content {
        padding: 7%;
    }
    .addAfModal_text_emphasis {
        font-size: clamp(14px, 5vw, 1.5em);
    }
    .addAfModal_btnGroup {
        gap: 10px;
    }
    .addAfModal_btn {
        width: 100%;
        padding-block: 20px;
    }
}

/* **************************************************************************************** */
/* ************************************* 以下編集しない ************************************* */
/* **************************************************************************************** */

/* 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;
}