@charset "utf-8";

/** ------------------
 * リキャプチャ表示
-------------------- */

.grecaptcha-badge {
    display: none !important;
}


/** ------------------
 * お問い合わせフォーム 全体
-------------------- */

/* 基本 */
.confirm2,
.confirm1,
.wpcf7,
.tabs {
    max-width: 900px;
    margin: 0 auto;
}


/* 上部タブ */
.tab_area {
    gap: 30px;
    margin-bottom: 40px;
}

.tab_area .tab_item {
    cursor: pointer;
    margin: initial;
}

.tab_area .tab_item span:hover {
    color: #ffffff;
    background: #0f0163;
}

.tab_area .tab_item span:hover::after {
    border-color: transparent transparent #ffffff transparent;
}

/* 注意事項 */
.caution ul {
    list-style: none;
    padding-left: 0;
}

.caution ul li {
    position: relative;
    padding-left: 1.4em;
    font-size: 14px;
    line-height: 1.5em;
}

.caution ul li::before {
    content: "※";
    position: absolute;
    left: 0;
    top: 0;
    width: 1em;
}


/* テーブル */
.wpcf7 table tr th,
.wpcf7 table tr td {
    background-color: transparent;
    padding: 20px;
}

.wpcf7 table tr th {
    width: auto;
    min-width: 16.5rem;
    vertical-align: top;
}

.wpcf7 table p {
    text-align: left;
    font-size: 14px;
}

.wpcf7 table span.td-left {
    padding-right: 10px;
}

.wpcf7 table span.wpcf7-list-item:first-child {
    margin: initial;
}

.wpcf7 table .contact-title {
    font-size: 18px;
}

.wpcf7 table .contact-must {
    float: right;
    background-color: #d92626;
    border-radius: 5px;
    color: #ffffff;
    font-size: 14px;
    padding: 3px 16px 5px 16px;
    margin: -4px 0 0 0;
}


/* 入力ボタン */
#page .contact-table input,
#page .contact-table .width-pref,
#page .contact-table .wpcf7-textarea {
    border: 1px solid #afafaf;
    border-radius: 5px;
    font-size: 1rem;
    padding: 4px 8px 2px 8px;
}

#page .contact-contents input {
    box-sizing: content-box;
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    -ms-box-sizing: border-box;
    width: 100%;
    max-width: -webkit-fill-available;
}


/* リセット・送信ボタン */
.wpcf7 .btn-confirm:disabled {
    cursor: no-drop;
    background-color: #008ddd;
    color: #fff;
}


.wpcf7 .btns-flex {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    height: fit-content;
    margin: 40px 16px 0 0;
    gap: 32px;
}

.wpcf7 .btns-flex .contact-btn {
    width: 318px;
    border-radius: 40px;
    font-size: 22px;
    font-weight: bold;
    padding: 10px 0 8px 0;
    cursor: pointer;
    transition: 0.3s;
}

.wpcf7 button:disabled,
.wpcf7 input[type="submit"]:disabled,
.wpcf7 input[type="button"]:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}


.wpcf7 .btns-flex .btn-back1,
.wpcf7 .btns-flex .btn-back2,
.wpcf7 .btns-flex .btn-reset {
    background-color: #e9e9e9;
    color: #1d2472;
    border: solid 2px #e9e9e9;

}

.wpcf7 .btns-flex .btn-confirm {
    background-color: #008ddd;
    color: #ffffff;
    border: solid 2px #008ddd;
}




/* 入力不可 */
.wpcf7 input:disabled,
.wpcf7 select:disabled,
.wpcf7 textarea:disabled {
    background-color: #eee;
    color: #999;
}


/* エラー表示用 */
.cust-tip {
    color: #dc3232;
    font-size: 1em;
    font-weight: normal;
    display: block;
}


/* 電話誘導ロック時の無効スタイルを強制 */
.form2.is-locked .contact-table {
    opacity: .8;
}

.form2.is-locked .contact-table input:not([name="tab2_radio_position_ui"]):not([name="tab2_radio_pay_ui"]):not([name="tab2_lock_ui"]),
.form2.is-locked .contact-table select,
.form2.is-locked .contact-table textarea {
    cursor: not-allowed;
    pointer-events: none;
    user-select: none;
    caret-color: transparent;
    background: #eee;
    color: #999;
}

/* select/ラジオ/チェックは disabled にするだけでOK（見た目補助） */
.form2.is-locked .wpcf7 select:disabled,
.form2.is-locked .wpcf7 input[type="radio"]:disabled,
.form2.is-locked .wpcf7 input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: .2;
}

/* 隠し入力項目を見えなく */
.hidden-send-field {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* 送信結果　非表示 */
.wpcf7 form .wpcf7-response-output {
    display: none;
    visibility: hidden;
}


.custom-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.custom-modal-box {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 90%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

.custom-modal-box button {
    margin-top: 15px;
    padding: 10px 20px;
}


/* 送信完了 */
.thanks-tips {
    text-align: center;
}


/** ------------------
 * お問い合わせフォーム 電話番号ページ下部
-------------------- */
/*
#page #confirm-mail-sent #lead>div,
#page #thanks #lead>div,
#page #contact-form #lead>div,
#page #step_form #lead>div {
    padding-bottom: initial;
}
*/

#confirm-mail-sent section,
#thanks section,
#contact-form section,
#step_form section {
    padding: 20px 0;
}

#confirm-mail-sent section:last-of-type,
#thanks section:last-of-type,
#contact-form section:last-of-type,
#step_form section:last-of-type {
    margin-bottom: 50px;
}


#confirm-mail-sent .emg-blue p:nth-last-of-type(2),
#thanks .emg-blue p:nth-last-of-type(2),
#contact-form .emg-blue p:nth-last-of-type(2),
#step_form .emg-blue p:nth-last-of-type(2) {
    margin-bottom: 1rem;
}

#confirm-mail-sent h3,
#thanks h3,
#contact-form h3,
#step_form h3 {
    margin-bottom: 20px;
}

#confirm-mail-sent .guidance dl,
#thanks .guidance dl,
#contact-form .guidance dl,
#step_form .guidance dl {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    width: 100%;
    margin: 0;
    border: none;
}

#confirm-mail-sent .guidance dt,
#thanks .guidance dt,
#contact-form .guidance dt,
#step_form .guidance dt {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    color: #fff;
    width: 15%;
    margin-bottom: 3px;
    padding: 1em;
    background: #008ddd;
    border: solid 1px #008ddd;
}

#confirm-mail-sent .guidance dd,
#thanks .guidance dd,
#contact-form .guidance dd,
#step_form .guidance dd {
    width: 85%;
    margin-bottom: 3px;
    padding: 1em;
    border: solid 1px #1d2472;
    border-left: none;
    box-sizing: border-box;
    background: #fff;
}


#confirm-mail-sent .border-btn-blue,
#thanks .border-btn-blue,
#contact-form .border-btn-blue,
#step_form .border-btn-blue {
    line-height: 80px;
    height: 80px;
}


#confirm-mail-sent .border-btn-blue span,
#thanks .border-btn-blue span,
#contact-form .border-btn-blue span,
#step_form .border-btn-blue span {
    font-size: 16px;
    line-height: 60px;
    height: 60px;
    width: fit-content;
    padding: 0 10px;
}

#contact-form .border-btn-blue:first-child,
#contact-form .border-btn-blue:first-child span {
    border: solid 1px #ec6d7c;
}



#contact-form .border-btn-blue:first-child span::after {
    border-color: transparent transparent #ec6d7c transparent;
}

#contact-form .border-btn-blue:first-child span:hover::after {
    border-color: transparent transparent #ffffff transparent;
}


/* hidden同期方式flex*/
.wpcf7 table #tab2_radio_pay_group p,
.wpcf7 table #tab2_lock_group p,
.wpcf7 table #tab2_radio_position_group p {
    display: flex;
    gap: 8px;
}


@media (max-width: 900px) {

    /* 基本 */
    .confirm2,
    .confirm1,
    .wpcf7,
    .tabs {
        max-width: 100%;
    }

    #page .contact-table input {
        width: 95%;
    }

    #page .contact-table .wpcf7-acceptance input,
    #page .contact-table .wpcf7-radio input {
        width: initial;
    }


    #confirm-mail-sent section:last-of-type,
    #thanks section:last-of-type,
    #contact-form section:last-of-type,
    #step_form section:last-of-type {
        margin-bottom: 150px;
    }


    #confirm-mail-sent section .in1200,
    #thanks section .in1200,
    #contact-form section .in1200,
    #step_form section .in1200 {
        width: initial;
    }

    #confirm-mail-sent section h2,
    #thanks section h2,
    #contact-form section h2,
    #step_form section h2 {
        font-size: 24px;
    }



    /* 上部タブ */
    .tab_area {
        gap: 10px;
    }

    #confirm-mail-sent .border-btn-blue span,
    #thanks .border-btn-blue span,
    #contact-form .border-btn-blue span,
    #step_form .border-btn-blue span {
        font-size: 12px;
    }


    /* リセット・送信ボタン */
    .wpcf7 .btns-flex {
        gap: initial;
        flex-direction: column;
        align-items: center;
    }

    /* テーブル */
    .wpcf7 table tr th,
    .wpcf7 table tr td {
        display: block;
        box-sizing: border-box;
        width: 100%;
        height: auto !important;
        padding: 8px 10px;
    }

    .wpcf7 table tr th {
        border-bottom: initial;
    }

    .wpcf7 table tr th p {
        display: flex;
        gap: 10px;
        margin-bottom: initial;
    }

    .wpcf7 table tr th p span.contact-title {
        order: 2;
    }

    .wpcf7 table tr th p span.contact-title br {
        display: none;
    }

    .wpcf7 table tr th p span.contact-must {
        order: 1;
    }



    .wpcf7 table span.wpcf7-list-item {
        margin: 0 0 0 0.5em;
    }

    .wpcf7 table span.wpcf7-list-item:first-child {
        margin: initial;
    }


    .wpcf7 table tr td {
        border-top: initial;
    }

    .wpcf7 table tr td p {
        margin-top: initial;
    }


    /* hidden同期方式flex*/
    .wpcf7 table #tab2_radio_pay_group p input,
    .wpcf7 table #tab2_lock_group p input,
    .wpcf7 table #tab2_radio_position_group p input {
        width: initial;
    }


}