@charset "utf-8";
/**
 * Contact Form 7「お問い合わせ」「資料請求」用（cf7_functions.php が対象ページでだけ読み込む）
 * 表・入力欄・送信ボタンは style.css の .contact_w の指定をそのまま使い、
 * ここでは CF7 で変わる部分（確認画面へ・戻るボタン、エラー表示、チェックボックス）だけを補う。
 */

/* 確認画面へ・戻るボタン（style.css の .contact_w input[type="submit"] と同じ見た目） */
.contact_w input.sh-cf7-btn[type="button"] {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0) 50%, rgba(42, 55, 157, 1) 50%);
    background-position: 0 0;
    background-size: 200% auto;
    transition: 0.5s;

    background-color: #c0252d;
    color: #fff;
    font-weight: bold;
    max-width: 300px;
    width: 100%;
    padding: 10px 0;
    display: inline-block;
    cursor: pointer;

    border-width: 0;

    margin: 1em;
}
.contact_w input.sh-cf7-btn[type="button"]:hover {
    background-position: -100% 0;
    color: #fff;
}
.contact_w input.sh-cf7-btn.modoru_btn[type="button"] {
    background-color: #cfcfcf;
}
.contact_w input.sh-cf7-btn.modoru_btn[type="button"]:hover {
    background-color: #fff;
    color: #cfcfcf;
}
.contact_w input.sh-cf7-btn[type="button"]:disabled {
    cursor: default;
    opacity: 0.6;
}

/* 送信中 */
.sh-cf7-confirm-root .wpcf7-spinner {
    display: none;
}
.sh-cf7-confirm-root.is-sending input[type="submit"] {
    cursor: wait;
    opacity: 0.6;
}

/* 確認画面 */
.sh-cf7-lead {
    margin-bottom: 1em;
}
.sh-cf7-lead:focus {
    outline: none;
}
.sh-cf7-value {
    white-space: pre-wrap;
    word-break: break-word;
}

/* エラー表示（MW WP Form と同じ見た目） */
.contact_w .wpcf7-not-valid-tip {
    font-size: 93%;
    color: #b70000;
    display: block;
}
.contact_w .wpcf7 form .wpcf7-response-output {
    margin: 1.5em 0 0;
}

/* チェックボックス（MW WP Form の横並び。768px 以下は縦並び） */
.contact_w .wpcf7-checkbox .wpcf7-list-item {
    margin: 0 10px 0 0;
}
.contact_w .wpcf7-list-item label {
    font-weight: normal;
    margin-bottom: 0;
}
.contact_w .wpcf7-list-item input {
    margin-right: 5px;
}
.contact_w .wpcf7-list-item-label::before,
.contact_w .wpcf7-list-item-label::after {
    content: none;
}
@media screen and (max-width: 768px) {
    .contact_w .wpcf7-checkbox .wpcf7-list-item {
        display: block;
        margin: 0;
    }
}
