@charset "utf-8";

/*
 * slur creative - New Contact Form
 * 既存 contact.css の補正用
 */

/* 郵便番号と住所の間隔 */
#contact .form_list input[name="address"] {
    display: block;
    margin-top: 12px;
}


/* メールアドレス入力欄 */
@media screen and (min-width: 769px) {
    #contact .form_list input[type="email"] {
        box-sizing: border-box;
        width: 462px;
        padding: 10px;
        font-size: 16px;
    }
}

@media screen and (max-width: 768px) {
    #contact .form_list input[type="email"] {
        box-sizing: border-box;
        width: 100%;
        padding: 2%;
        font-size: 1.3em;
    }
}

/* 個人情報の取扱いへの同意欄 */
#contact .contact_privacy_agreement {
    box-sizing: border-box;
    width: 100%;
    max-width: 702px;
    margin: 16px auto 0;
    padding: 14px 18px;

    background: #f3f4f6;
    text-align: center;
    font-size: 0.9em;
    color: #444;
}

#contact .contact_privacy_agreement label {
    display: inline-block;
    cursor: pointer;
}

#contact .contact_privacy_agreement input {
    margin-right: 6px;
    vertical-align: middle;
}



/* 送信内容確認ボタン */
#contact #form_confirm_btn .contact_confirm_button {
    display: block;
    box-sizing: border-box;
    width: 350px;
    max-width: 100%;
    margin: 0 auto;
    padding: 14px 20px;

    border: none;
    border-radius: 5px;
    background: #001E45;
    color: #FFFFFF;

    font-size: 1.2em;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
}

#contact #form_confirm_btn .contact_confirm_button:hover {
    opacity: 0.8;
}

#contact #form_confirm_btn .contact_confirm_button:focus-visible {
    outline: 3px solid #E6B84A;
    outline-offset: 3px;
}

/* スマートフォン */
@media screen and (max-width: 768px) {
    #contact #form_confirm_btn .contact_confirm_button {
        width: 100%;
    }
}


/* 確認画面：案内文と入力内容一覧の間隔 */
#contact p.sec_in + .form_list {
    margin-top: 24px;
}

/* 確認画面：入力画面へ戻るボタン */
#contact #form_back_btn .contact_back_button {
    display: block;
    box-sizing: border-box;
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
    padding: 12px 20px;

    border: none;
    border-radius: 5px;
    background: #7F8EA2;
    color: #FFFFFF;

    font-size: 0.9em;
    line-height: 1.4;
    text-align: center;
    cursor: pointer;
}

#contact #form_back_btn .contact_back_button:hover {
    opacity: 0.8;
}

#contact #form_back_btn .contact_back_button:focus-visible {
    outline: 3px solid #E6B84A;
    outline-offset: 3px;
}


/* 最終送信ボタン：Turnstileとの間隔 */
#contact .contact_send {
    margin-top: 24px;
}

/* スマホ：最終送信ボタンの左右余白 */
@media screen and (max-width: 768px) {
    #contact #form_confirm_btn.contact_send .contact_confirm_button {
        width: calc(100% - 32px);
        max-width: 350px;
    }
}

/* 入力エラー：案内エリア */
#contact .contact_error_summary {
    font-size: 0.9em;
    box-sizing: border-box;
    max-width: 702px;
    margin: 24px auto 36px;
    padding: 16px 20px;
    border-left: 4px solid #8B3040;
    background: #FAF5F6;
    color: #812A3A;
    text-align: left;
    line-height: 1.7;
}

#contact .contact_error_summary p {
    margin: 0 0 8px;
    font-weight: bold;
}

#contact .contact_error_summary ul {
    margin: 0;
    padding-left: 1.5em;
    list-style: disc;
}

#contact .contact_error_summary li {
    margin: 0 0 4px;
}

/* スマホ：入力エラーの文字サイズ */
@media screen and (max-width: 768px) {
    #contact .contact_error_summary {
        font-size: 1em;
    }
}


/* 入力エラー：該当項目の枠線 */
#contact .form_list input.contact_input_error,
#contact .form_list textarea.contact_input_error {
    border: 2px solid #8B3040;
    background-color: #FFF9FA;
}

/* 入力エラー：お問い合わせ項目全体 */
#contact .form_list li.contact_topics_error {
    background-color: #FFF9FA;
    box-shadow: inset 4px 0 0 #8B3040;
}

/* 入力エラー：個人情報の取扱いへの同意 */
#contact .contact_privacy_agreement.contact_privacy_error {
    background-color: #FFF9FA;
    box-shadow: inset 4px 0 0 #8B3040;
}

/* スマホ：お問い合わせ項目のエラー表示 */
@media screen and (max-width: 768px) {
    #contact .form_list li.contact_topics_error {
        box-sizing: border-box;
        padding-left: 12px;
    }
}

input::placeholder,
textarea::placeholder {
    color: #aaa;
    opacity: 1;
}