@charset "utf-8";

/* CSS Document - CONTACT FORM */

.contact_lead {
    margin: 0 15px 30px !important;
}

.contact_form {
    margin: 0 15px;
    border-bottom: 1px solid #d4d4d4;
}

.form_row {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    border-top: 1px solid #d4d4d4;
    padding: 25px 10px;
}

.form_label {
    width: 230px;
    padding: 12px 10px 0 0;
    font-weight: bold;
    -ms-flex-negative: 0;
    flex-shrink: 0;
}

.form_field {
    -webkit-box-flex: 1;
    -ms-flex: 1;
    flex: 1;
    min-width: 0;
}

.req {
    display: inline-block;
    background: #ba1717;
    color: #fff;
    font-size: 11px;
    font-weight: normal;
    line-height: 1.4;
    padding: 2px 8px;
    margin-left: 10px;
    border-radius: 2px;
    vertical-align: 2px;
}

.contact_form input[type="text"],
.contact_form input[type="email"],
.contact_form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fff;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    color: #1d1d1d;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    -webkit-transition: border-color 0.3s, background 0.3s;
    transition: border-color 0.3s, background 0.3s;
}

.contact_form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact_form input[type="text"]:focus,
.contact_form input[type="email"]:focus,
.contact_form textarea:focus {
    outline: none;
    border-color: #ba1717;
}

.contact_form .is_error {
    border-color: #ba1717;
    background: #fff6f6;
}

.err {
    display: none;
    margin: 8px 0 0 !important;
    color: #ba1717;
    font-size: 12px;
    line-height: 1.5;
}

.err.is_shown {
    display: block;
}

/* 個人情報の取扱い */

.form_row_privacy {
    display: block;
    text-align: center;
    padding: 25px 10px;
}

.check_label {
    display: inline-block;
    cursor: pointer;
    font-size: 15px;
}

.check_label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    vertical-align: -3px;
    cursor: pointer;
}

.check_label a {
    color: #ba1717;
}

.form_row_privacy .err {
    text-align: center;
}

/* 送信ボタン */

.form_btn {
    text-align: center;
    padding: 35px 0 40px;
}

.submit_btn {
    width: 320px;
    max-width: 100%;
    padding: 18px 10px;
    border: none;
    border-radius: 3px;
    background: #ba1717;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 0.1em;
    cursor: pointer;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
}

.submit_btn:hover {
    background: #8f1111;
}

.submit_btn:disabled {
    background: #999;
    cursor: default;
}

/* reCAPTCHA バッジ（画面右下に固定表示される） */

.grecaptcha-badge {
    z-index: 100;
}

/* 送信結果メッセージ */

.form_msg {
    display: none;
    margin: 0 0 30px !important;
    padding: 20px;
    border-radius: 3px;
    font-size: 15px;
    line-height: 1.8;
    text-align: center;
}

.form_msg.is_success {
    display: block;
    border: 1px solid #1891c9;
    background: #f1f9fd;
    color: #0d5f85;
}

.form_msg.is_failure {
    display: block;
    border: 1px solid #ba1717;
    background: #fff6f6;
    color: #ba1717;
}

/* スパム対策（画面には出さない） */

.hp_field {
    position: absolute !important;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 720px) {
    .contact_lead,
    .contact_form {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    .form_row {
        display: block;
        padding: 20px 0;
    }
    .form_label {
        width: auto;
        padding: 0 0 10px;
    }
    .contact_form input[type="text"],
    .contact_form input[type="email"],
    .contact_form textarea {
        font-size: 16px;
        /* iOSの自動ズーム防止 */
    }
    .contact_form textarea {
        min-height: 150px;
    }
    .form_row_privacy {
        padding: 20px 0;
        text-align: left;
    }
    .form_row_privacy .err {
        text-align: left;
    }
    .check_label {
        font-size: 14px;
    }
    .form_btn {
        padding: 25px 0 30px;
    }
    .submit_btn {
        width: 100%;
    }
}
