/* Contact Form 7 送信後の表示（全フォーム共通）。js/cf7-feedback.js とセット */

.wpcf7 {
    --oya-cf7-accent: var(--pr-accent, var(--archive-accent, #008081));
    --oya-cf7-ink: var(--pr-ink, var(--archive-ink, #2b3036));
}

/* 読み上げ用の要素（CF7 本体の CSS は読み込まれないため、同じ指定で見た目だけ隠す） */
.wpcf7 .screen-reader-response {
    position: absolute;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    word-wrap: normal !important;
}

/* ----- 送信中 ----- */
.wpcf7 .wpcf7-spinner {
    display: none;
}

.wpcf7-form.is-oya-sending .wpcf7-submit {
    opacity: 0.6;
    cursor: progress;
    pointer-events: none;
    transform: none !important;
}

/* ----- 入力エラー・送信失敗のメッセージ枠 ----- */
.wpcf7 form .wpcf7-response-output {
    position: relative;
    margin: 22px 0 0;
    padding: 14px 18px 14px 46px;
    border: 1.5px solid #d08b89;
    border-radius: 10px;
    color: #7a2f2d;
    background: #fdf3f2;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.7;
    text-align: left;
}

.wpcf7 form .wpcf7-response-output.is-oya-top {
    margin: 0 0 24px;
    scroll-margin-top: 120px;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output,
.wpcf7 form.aborted .wpcf7-response-output,
.wpcf7 form.spam .wpcf7-response-output {
    border-color: #d08b89;
}

.wpcf7 form .wpcf7-response-output::before {
    content: '!';
    position: absolute;
    top: 50%;
    left: 16px;
    width: 20px;
    height: 20px;
    margin-top: -10px;
    border-radius: 50%;
    background: #c0504d;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

.wpcf7 form.init .wpcf7-response-output,
.wpcf7 form.sent .wpcf7-response-output,
.wpcf7 form .wpcf7-response-output:empty {
    display: none;
}

/* ----- 送信完了パネル ----- */
.wpcf7.is-oya-done > form {
    display: none;
}

.wpcf7 .oya-cf7-done {
    padding: 36px 20px 30px;
    text-align: center;
    word-break: auto-phrase;
    text-wrap: pretty;
    color: var(--oya-cf7-ink);
    outline: none;
    scroll-margin-top: 120px;
    animation: oya-cf7-done-in 0.45s ease both;
}

.wpcf7 .oya-cf7-done__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: var(--oya-cf7-accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

.wpcf7 .oya-cf7-done__title {
    margin: 0 0 12px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.wpcf7 .oya-cf7-done__text {
    max-width: 34em;
    margin: 0 auto 10px;
    font-size: 14.5px;
    line-height: 1.9;
    color: #4a5058;
}

.wpcf7 .oya-cf7-done__note {
    max-width: 32em;
    margin: 0 auto 24px;
    font-size: 12.5px;
    line-height: 1.8;
    color: #868d96;
}

.wpcf7 .oya-cf7-done__again {
    padding: 6px 4px;
    border: 0;
    background: none;
    color: var(--oya-cf7-ink);
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.wpcf7 .oya-cf7-done__again:hover {
    color: var(--oya-cf7-accent);
}

.wpcf7 .oya-cf7-done__again:focus-visible {
    outline: 2px solid var(--oya-cf7-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

@keyframes oya-cf7-done-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wpcf7 .oya-cf7-done {
        animation: none;
    }
}

@media screen and (max-width: 575px) {
    .wpcf7 .oya-cf7-done {
        padding: 26px 4px 22px;
    }

    .wpcf7 .oya-cf7-done__title {
        font-size: 18px;
    }

    .wpcf7 .oya-cf7-done__text {
        font-size: 13.5px;
    }
}
