/* mailformpro.css上書き／フォームスタイル調整用 */

/* 入力項目関連 */
form#mailformpro {
    width: 100%;
    align-items: center;
    margin: 0 auto;
    padding: 0;
}

form#mailformpro dl {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    color: #3c3c3c;
}

form#mailformpro dl dt {
    width: 100%;
    margin-top: 24px;
    padding: 0;
    float: none;
    width: auto;
    clear: none;
    text-align: right;
    border-top: none;
}

form#mailformpro dl dt:first-child {
    margin-top: 0px;
}

form#mailformpro dl dt label {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.08em;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: start;
    cursor: default;
}

form#mailformpro dl dt .required {
    background-color: #fff;
    color: #dc0000;
    border: 1px solid #dc0000;
    font-size: 12px;
    padding: 0.3em 0.6em;
    line-height: 1;
    letter-spacing: 0.05em;
    font-weight: 400;
    border-radius: 4px;
    margin-right: 0.8em;
}

form#mailformpro dl dd {
    width: 100%;
    border-top: none;
    margin-top: 12px;
    padding: 0px;
    font-size: 16px;
    line-height: 1.5em;
    text-align: left;
}


/* プライバシーポリシー */
form#mailformpro .agree {
    max-width: 280px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
    margin: 56px auto 0;
}

form#mailformpro .agree label {
    display: flex;
    align-items: start;
    line-height: 1;
}

form#mailformpro .agree label a {
    border-bottom: 1px solid #362928;
    transition: all .3s ease;
    font-weight: 400;
}

form#mailformpro .agree label a:hover {
    opacity: 0.5;
}

.visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/*チェックボックス*/
input[type="checkbox"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #0c0b07;
    width: 20px;
    height: 20px;
    border-radius: 2px;
    text-align: center;
    cursor: pointer;
    margin-right: 12px;
}

/*チェックボックス -チェックマーク*/
input[type="checkbox"]:checked::before {
    content: "";
    display: inline-block;
    width: 9px;
    height: 6px;
    border-left: 2px solid #937754;
    border-bottom: 2px solid #937754;
    transform: rotate(-54deg);
    margin-top: -2px;
}

/* 送信ボタン */
form#mailformpro .submit {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 56px;
}

form#mailformpro .submit button,
.mfp_element_submit,
.mfp_element_reset,
.mfp_element_button,
button.mfp_next,
button.mfp_prev {
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.08em;
    text-align: center;
    color: #40466d;
    border: 1px solid #40466d;
    border-radius: 6px;
    padding: 1.2em 6em;
    background: #fff;
    transition: all .5s ease;
    text-shadow: none;
}

form#mailformpro .submit button:hover,
.mfp_element_submit:hover,
.mfp_element_reset:hover,
.mfp_element_button:hover,
button.mfp_next:hover,
button.mfp_prev {
    border-color: #40466d;
    background: #40466d;
    color: #fff;
    box-shadow: none;
}

/* 確認画面 */
div#mfp_phase_confirm {
    clear: both;
    width: 100%;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    margin-top: 0;
}

div#mfp_phase_confirm h4 {
    font-family: "Zen Kaku Gothic New", sans-serif;
    font-size: 22px;
    letter-spacing: 0.05em;
    font-weight: 500;
    padding: 0;
    text-align: center;
}

div#mfp_phase_confirm_inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

table#mfp_confirm_table {
    border-spacing: 0px;
    border-collapse: collapse;
    width: 100%;
    margin-top: 32px;
    border-top: solid 1px #CCC;

}

table#mfp_confirm_table tr.mfp_achroma {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    width: 100%;
}

table#mfp_confirm_table tr.mfp_colored {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    width: 100%;
}

table#mfp_confirm_table tr th {
    white-space: nowrap;
    width: 100%;
    font-weight: 600;
    background-color: #f7f7f9;
}

table#mfp_confirm_table tr th,
table#mfp_confirm_table tr td {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    letter-spacing: 0.08em;
    text-align: left;
    border-top: none;
    border-bottom: solid 1px #CCC;
    padding: 1em 0.5em;
}


/* 確認画面ボタン順番 */
div.mfp_buttons {
    display: flex;
    flex-direction: row-reverse;
    clear: both;
    padding: 0;
    margin-top: 56px;
    text-align: center;
    gap: 8px;
}

/* 確認画面キャンセルボタン */
button#mfp_button_cancel {
    border-color: #c6c8d1;
    background-color: #fff;
    color: #b3b5be;
}

button#mfp_button_cancel:hover {
    background-color: #c6c8d1;
    color: #424543;
}

/* 入力項目関連 */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
.mfp_element_text,
.mfp_element_number,
.mfp_element_select-one,
.mfp_element_email,
.mfp_element_tel,
.mfp_element_textarea,
.mfp_element_date,
.mfp_element_password {
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #3c3c3c;
    letter-spacing: 0.05em;
    line-height: 1.8;
    width: 100% !important;
    padding: 0.6em;
    border: 1px solid #c6c8d1;
    border-radius: 4px;
    background-color: #fff;
    margin: 0;
    box-shadow: none;
}

input[type="number"] {
    text-align: left !important;
}

textarea,
.mfp_element_textarea {
    height: auto !important;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #86888d;
}

/* エラー表示 */
div.mfp_err {
    clear: both;
    display: none;
    text-align: left;
    margin: 5px 0px 0px 0px;
    padding: 0;
    color: #dc0000;
    font-size: 12px;
    line-height: normal;
    background-image: none;
}


/* =========================
   Tablet
========================= */

@media screen and (max-width: 1024px) {}

/* =========================
   Mobile
========================= */

@media screen and (max-width: 590px) {

    form#mailformpro dl dt {
        margin-top: 16px;
    }

    form#mailformpro dl dd {
        margin-top: 8px;
    }

    form#mailformpro dl dt label {
        font-size: 14px;
    }

    form#mailformpro dl dt .required {
        font-size: 11px;
    }

    form#mailformpro .agree {
        font-size: 14px;
        margin-top: 40px;
    }

    /*チェックボックス*/
    input[type="checkbox"] {
        width: 17px;
        height: 17px;
        margin-right: 12px;
    }

    /* 送信ボタン */
    form#mailformpro .submit {
        margin-top: 40px;
    }

    form#mailformpro .submit button {
        font-size: 15px;
    }

    /* 入力項目関連 */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="number"],
    textarea {
        font-size: 14px;
    }

    /* 確認画面 */

    div#mfp_phase_confirm h4 {
        font-size: 18px;
    }

    table#mfp_confirm_table tr th,
    table#mfp_confirm_table tr td {
        font-size: 14px;
        padding: 0.5em 0.5em;
    }

    div.mfp_buttons {
        flex-direction: column;
        margin-top: 48px;
        gap: 0;
    }

    button#mfp_button_cancel {
        margin-top: -12px;
    }

}