@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%;
    height: 40px;
    color: #333;
    font-size: 16px;
    line-height: 1.5;
    padding: 0 15px;
    box-sizing: border-box;
    appearance: none;
    border-radius: 8px;
    font-family: initial;
    border: solid 1px #ccc;
}

@media screen and (max-width: 1100px) {

    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;
    box-sizing: border-box;
}

@media screen and (max-width: 1100px) {

    #user_area,
    #submit_btn_box {
        display: none;
    }
}

/* 必須・任意 */
span.req_on,
span.req_off {
    font-size: 12px;
    margin: 3px 10px 0 0;
    padding: 2px 6px;
    line-height: 1.5;
    color: #fff;
    display: inline-block;
    float: left;
    font-weight: 500;
}

span.req_on {
    background: #e50000;
}

span.req_off {
    background: #949494;
}

.err_msg {
    clear: both;
    padding-bottom: 0;
    color: #e50000;
    font-size: 13px;
    text-align: left;
    line-height: 1.6;
}

#next_btn,
.submit_btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 16px auto;
    padding: 18px 0;
    color: #fff;
    font-weight: 700;
    font-size: 24px;
    line-height: 1;
    text-align: center;
    border: none;
    border-radius: 5px;
    background: linear-gradient(to bottom, #e70012 0%, #e70012 36%, #a8000d 51%, #d90011 100%);
    cursor: pointer;
    transition: opacity .3s;
}

.submit_btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.2em;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 8px solid #fff;
    pointer-events: none;
}

#next_btn.disable {
    background: #dadada;
    color: #fff;
    box-shadow: 5px 5px 10px inset #cecece;
}

.submit_btn:hover {
    opacity: 0.85;
}

@media screen and (min-width:1101px) {
    #next_btn {
        display: none;
    }
}

@media screen and (max-width: 1100px) {
    .submit_btn {
        font-size: clamp(14px, 4.6vw, 20px);
    }
}

.main_form {
    box-sizing: border-box;
    border-radius: 4px;
    background-color: #fff;
}

@media screen and (min-width:1101px) {
    .main_form {
        max-width: 470px;
        min-width: 442px;
        padding: 0;
        margin: 1rem auto 2rem;
        box-shadow: 0 2px 5px 0 rgb(0 0 0 / 40%);
    }

    .main_form form {
        padding: 1em 1.5em;
    }
}

@media screen and (max-width: 1100px) {
    .main_form {
        padding-bottom: 8%;
        background-color: #fbecbd;
    }

    .main_form form {
        position: relative;
        background: #fff;
        width: 92vw;
        top: 0;
        margin: 0 auto;
        padding: 3% 3% 5%;
    }
}

.form_heading {
    margin-bottom: 12px;
    font-weight: bold;
    color: #3b3b3b;
}

@media screen and (min-width:1101px) {
    .form_heading {
        text-align: left;
        font-size: 16px;
        border-bottom: 1px solid #bbb;
    }

    .form_heading::before {
        content: '';
        display: inline-block;
        width: 18px;
        height: 18px;
        margin-right: 8px;
        margin-bottom: 3px;
        vertical-align: middle;
        background-repeat: no-repeat;
        background-size: contain;
    }

    #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: 1100px) {
    .form_heading {
        text-align: center;
        padding: 0 0 7px;
        border-bottom: 1px solid #ded8b5;
    }

    .form_heading_pc {
        display: none;
    }
}

.form_area {
    position: relative;
    width: 60%;
    padding-left: 8px;
    box-sizing: border-box;
}

@media screen and (max-width: 1100px) {
    .form_area {
        width: 100%;
        padding-left: 0;
    }
}

.form_area.triangle::after {
    content: "";
    position: absolute;
    top: 18px;
    right: 10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #333;
    pointer-events: none;
}

@media screen and (max-width: 1100px) {
    .form_area.triangle::after {
        top: 23px;
    }
}

.form_area input[readonly],
.form_area select {
    padding: 0 30px 0 15px;
}

.form_area input,
.form_area select {
    background-color: #fff;
}

.form_area input.req_on,
.form_area select.req_on {
    background-color: #ffffc9;
}

/* 入力項目　スタイル */
.form_item {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

@media screen and (max-width: 1100px) {
    .form_item {
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }
}

.form_title {
    display: flex;
    width: 40%;
    margin-bottom: 5px;
    align-items: baseline;
    justify-content: flex-start;
    align-items: center;
    font-size: 15px;
}

@media screen and (max-width: 1100px) {
    .form_title {
        width: 100%;
        text-align: left;
    }
}

form section#user_area {
    margin-top: 24px;
}

/* JS実行前のチラつき防止（applyConfig() が実行されると上書きされる） */
@media screen and (min-width:1101px) {
    .pc-hidden {
        display: none;
    }
}

@media screen and (max-width: 1100px) {
    .sp-hidden {
        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: 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;
    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;
}

/*------------------------------ SSL ------------------------------*/
.ssl_information {
    text-align: left;
    font-size: 0.8rem;
    line-height: 1.4;
}

.ssl_information span {
    font-size: 14px;
    font-weight: bold;
}

.ssl_information span::before {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABMAAAAVCAYAAACkCdXRAAABTElEQVQ4ja3UsWoUURTG8d+EyWJQkKzbpMgWJhAQm8gKeYNY2G4ICz7CPkr69JIgqXwCGxsLkyoWNjYrrIWlG0MUJsWeTWaHmdmR9YPhnHs55z/fmTszSXaiTCkO8QYv0MFPXOAt3uEvGGR3TUkJbBNn2Cu9zVSfcIBRHrZSKGrjQwF0hW8RZ9qLuna+uQg7wnbkP9DHY2xF7Me+qDvKN+fH3AwHKX6hh68lI+7gMx6ZPrenBtmo6Ox1gOC4AiT2jyNPsV/mbA0PIp/gpgIGLTyM/Nog+z0jf8FGTeNinSYwTvFsKdC91ounuZSawDJ8j7gUbIKXpq9NL9bz6t5fi2DvcR75RaznAHml6tWZc8CTuuJFzvZ1DQM0xKt/h82PMfvo6/4iyI/ZraxpFWKlkuzjwiP/g0s8x2ozZ9VaxW6DukYvbWOtYPyfWONbOhQ/85bcc2sAAAAASUVORK5CYII=");
    background-repeat: no-repeat;
    background-position: left;
    vertical-align: inherit;
    background-size: contain;
    margin-right: 4px;
}

.ssl_information p {
    font-size: 12px;
    line-height: 1.4;
}

/*------------------------------ 利用規約とプライバシーポリシー------------------------------*/
.form-agreement {
    margin-block: 15px;
    font-size: 14px;
    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;
}