@charset "UTF-8";

/*
 * /estimate-test/ 専用（見積フォーム改善）
 * 本番 /estimate/ の estimate.css は編集しないこと。
 */

/* 説明ステップの表示調整（/estimate-test/ 限定） */
body.page-estimate-test .estimate .bg_white.box01,
body.page-estimate-test .estimate .bg_white.box02,
body.page-estimate-test .estimate .bg_white.box03,
body.page-estimate-test .estimate .bg_white.box04,
body.page-estimate-test .estimate .bg_white.box05 {
    display: none;
}

/* box06 の左上タグ画像（tag_06 / tag_06@2x）を消す */
body.page-estimate-test .estimate .box06 {
    background-image: none !important;
}

/* ----- フォーム全体 ----- */
body.page-estimate-test .estimate_form_improved {
    font-size: 14px;
}

body.page-estimate-test .est_form_intro {
    text-align: center;
    margin: 0 auto 24px;
    font-size: 14px;
    line-height: 1.8;
    color: #234e7a;
}

body.page-estimate-test .est_form_section {
    width: 100%;
}

body.page-estimate-test .est_lead {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.75;
    color: #333;
}

body.page-estimate-test .est_note {
    margin: 0 0 16px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.75;
    color: #444;
    background: #f4f7fb;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
}

body.page-estimate-test .est_note strong {
    color: #234e7a;
}

body.page-estimate-test .est_hint {
    margin: 8px 0 0;
    font-size: 12px;
    color: #666;
}

/* 設置スペース / 家具サイズの視覚区分 */
body.page-estimate-test .est_block_space {
    padding: 4px 0 0;
    border-left: 4px solid #234e7a;
    padding-left: 14px;
    margin-left: 0;
}

body.page-estimate-test .est_block_furniture {
    padding: 4px 0 0;
    border-left: 4px solid #8a9aaf;
    padding-left: 14px;
    margin-left: 0;
}

/* 寸法グリッド */
body.page-estimate-test .est_measure_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px 16px;
    max-width: 520px;
    margin-bottom: 8px;
}

body.page-estimate-test .est_measure_cell {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

body.page-estimate-test .est_measure_label {
    display: block;
    width: 100%;
    font-size: 13px;
    font-weight: 700;
    color: #234e7a;
}

body.page-estimate-test .est_size_input {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 120px;
}

body.page-estimate-test .est_measure_unit {
    font-size: 13px;
    color: #555;
}

body.page-estimate-test .est_checkbox_single {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #cfd6df;
}

body.page-estimate-test .est_checkbox_single .mwform-checkbox-field {
    margin: 0;
}

/* ラベル付き行 */
body.page-estimate-test .est_field_pair {
    margin-top: 18px;
}

body.page-estimate-test .est_field_pair:first-child {
    margin-top: 0;
}

body.page-estimate-test .est_field_label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
}

body.page-estimate-test .est_field_label + .check_area {
    margin-top: 0;
}

/* 設置状況チェック */
body.page-estimate-test .est_check_grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

@media screen and (min-width: 600px) {
    body.page-estimate-test .est_check_grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px 20px;
    }
}

/* 添付ブロック */
body.page-estimate-test .est_block_attach {
    padding: 0;
}

body.page-estimate-test .est_attach_lead {
    margin-bottom: 18px;
}

body.page-estimate-test .est_file_list {
    margin: 0;
    padding: 0;
    list-style: none;
}

body.page-estimate-test .est_file_item {
    margin: 0 0 20px;
    padding: 16px 14px;
    background: #fafbfc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

body.page-estimate-test .est_file_item:last-child {
    margin-bottom: 0;
}

body.page-estimate-test .est_file_ttl {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 700;
    color: #234e7a;
}

body.page-estimate-test .est_file_item .mwform-file-field {
    width: 100%;
}

/* 任意: 添付説明のラッパー（重複定義しない） */
body.page-estimate-test .file_group {
    margin-bottom: 16px;
}

body.page-estimate-test .file_group p {
    margin: 0 0 6px;
    font-size: 13px;
    color: #333;
}

/* 任意: フォーム内セクション見出し（dt.form_section + dd.form_section_body） */
body.page-estimate-test .estimate .cont_form dt.form_section {
    float: none !important;
    clear: both;
    width: 100% !important;
    display: block !important;
    box-sizing: border-box;
    margin: 28px 0 0 !important;
    padding: 18px 24px !important;
    background: #fff !important;
    color: #234e7a;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
    border: 2px solid #234e7a;
    border-left-width: 8px;
}

body.page-estimate-test .estimate .cont_form dd.form_section_body {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 12px 0 0 !important;
    min-height: 0 !important;
    border: 0 !important;
    background: #fff !important;
}

body.page-estimate-test .estimate .cont_form dt.form_section + dd.form_section_body + dt {
    margin-top: 0;
}

/* お客様情報（wrapper + heading 方式） */
body.page-estimate-test .form_section_customer {
    background: #fff;
    margin: 0 0 24px;
    padding: 0 0 10px;
    border: 2px solid #d6e0eb;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(35, 78, 122, 0.08);
    position: relative;
}

body.page-estimate-test .form_section_heading {
    margin: 40px 0 40px !important;
    padding: 20px 24px;
    background: #fff;
    color: #234e7a;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    letter-spacing: 0.05em;
    border-top: 2px solid #234e7a;
    border-bottom: 2px solid #234e7a;
}

body.page-estimate-test .form_section_customer .cont_form {
    margin-top: 0 !important;
    padding-top: 0 !important;
    background: #fff;
    border-bottom: 1px solid #234e7a;
}

body.page-estimate-test .form_section_customer .cont_form dt:first-of-type,
body.page-estimate-test .form_section_customer .cont_form dd:first-of-type {
    border-top: 1px solid #234e7a;
}

body.page-estimate-test .form_section_customer .cont_form dt {
    background-color: #eef2f8;
    clear: both;
    float: left;
    width: 25%;
    min-height: 96px;
    padding: 20px 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    line-height: 1.5;
}

body.page-estimate-test .form_section_customer .cont_form dd {
    background-color: #fff;
    margin-left: 25%;
    min-height: 96px;
    padding: 20px 15px 20px;
    box-sizing: border-box;
}

/* フォールバック（body class が異なる場合） */
.estimate .form_section_customer .cont_form dt {
    clear: both;
    float: left;
    width: 25%;
    min-height: 96px;
    padding: 20px 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    line-height: 1.5;
}

.estimate .form_section_customer .cont_form dd {
    margin-left: 25%;
    min-height: 96px;
    padding: 20px 15px 20px;
    box-sizing: border-box;
}

/* お客様情報の必須バッジ */
body.page-estimate-test .form_section_customer .cont_form dt > span,
.estimate .form_section_customer .cont_form dt > span {
    position: static;
    transform: none;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
}

/* モバイルは1カラム */
@media (max-width: 767px) {
    body.page-estimate-test .form_section_customer .cont_form dt,
    .estimate .form_section_customer .cont_form dt {
        float: none;
        width: 100%;
        min-height: auto;
        padding: 10px;
    }

    body.page-estimate-test .form_section_customer .cont_form dd,
    .estimate .form_section_customer .cont_form dd {
        margin-left: 0;
        width: 100%;
        min-height: auto;
        padding: 10px 0 25px;
    }
}

/* body class が想定と異なる場合のフォールバック */
.estimate .form_section_customer {
    background: #fff !important;
    margin: 0 0 24px !important;
    border: 2px solid #d6e0eb !important;
    border-radius: 0 !important;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(35, 78, 122, 0.08);
    position: relative;
}

.estimate .form_section_heading {
    margin: 40px 0 40px !important;
    padding: 20px 24px !important;
    background: #fff !important;
    color: #234e7a !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    letter-spacing: 0.05em;
    border-top: 2px solid #234e7a !important;
    border-bottom: 2px solid #234e7a !important;
}

.estimate .form_section_customer .cont_form {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.estimate .estimate-term-help {
    margin: 0 0 10px;
}

.estimate .estimate-help-link {
    display: inline-block;
    margin-right: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #234e7a;
    text-decoration: underline;
    cursor: pointer;
    font-size: 13px;
}

.estimate .estimate-help-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
}

.estimate .estimate-help-modal.is-open {
    display: block;
}

.estimate .estimate-help-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.estimate .estimate-help-modal__dialog {
    position: relative;
    max-width: 560px;
    margin: 10vh auto 0;
    padding: 24px 20px 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.estimate .estimate-help-modal__dialog h4 {
    margin: 0 0 12px;
    color: #234e7a;
    font-size: 20px;
}

.estimate .estimate-help-modal__dialog p {
    margin: 0;
    line-height: 1.8;
    color: #333;
}

.estimate .estimate-help-modal__img {
    margin: 0 0 12px;
}

.estimate .estimate-help-modal__img img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid #d8e0ea;
    border-radius: 6px;
    background: #f7f9fb;
}

.estimate .estimate-help-modal__close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 26px;
    line-height: 1;
    color: #666;
    cursor: pointer;
}

body.estimate-modal-open {
    overflow: hidden;
}

/* セレクト（都道府県）— contact.css の width:30% を上書き */
body.page-estimate-test .estimate_form_improved select[name="pref"] {
    width: 100% !important;
    max-width: 420px;
    height: 44px;
    padding: 8px 12px;
    box-sizing: border-box;
}

/* 確認エリア */
body.page-estimate-test .confirm_on .f13 {
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    body.page-estimate-test .est_measure_grid {
        grid-template-columns: 1fr;
        max-width: none;
    }

    body.page-estimate-test .est_size_input {
        max-width: none;
        width: 100% !important;
    }

    body.page-estimate-test .estimate_form_improved select[name="pref"] {
        max-width: 100%;
    }

    body.page-estimate-test .est_file_item {
        padding: 14px 12px;
    }

    body.page-estimate-test .estimate .cont_form dt.form_section {
        margin: 20px 0 0 !important;
        padding: 14px 16px !important;
        font-size: 15px;
        border-left-width: 5px;
    }

    body.page-estimate-test .estimate .cont_form dd.form_section_body {
        padding-top: 8px !important;
    }

    body.page-estimate-test .form_section_customer {
        margin: 0 0 16px;
        border-radius: 0;
    }

    body.page-estimate-test .form_section_heading {
        margin: 28px 0 8px;
        padding: 14px 14px;
        font-size: 16px;
    }

    .estimate .estimate-help-modal__dialog {
        margin: 12vh 12px 0;
        max-width: none;
        padding: 20px 16px 16px;
    }
}
