/**
 * お問い合わせフォーム（Contact Form 7）
 */

.contact-page {
    padding-top: 100px;
    padding-bottom: 48px;
    background: #f5f5f8;
}

.p-contact {
    padding: 48px 0 56px;
}

.p-contact__inner {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
}

.p-contact__header {
    text-align: center;
    margin-bottom: 2rem;
}

.p-contact__eyebrow {
    margin: 0 0 0.35rem;
    color: #020283;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.p-contact__title {
    margin: 0 0 0.75rem;
    color: #020283;
    font-size: 1.75rem;
    font-weight: 900;
    line-height: 1.3;
}

.p-contact__lead {
    margin: 0;
    color: #333345;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.p-contact__form-wrap {
    background: #ffffff;
    border: 2px solid #020283;
    border-radius: 12px;
    padding: 1.75rem 1.5rem;
}

.p-contact__notice {
    margin: 0;
    color: #E6192E;
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* CF7 基本レイアウト */
.p-contact__form-wrap .wpcf7 {
    margin: 0;
}

.p-contact__form-wrap .wpcf7-form > p,
.p-contact__form-wrap .wpcf7-form label {
    display: block;
    margin: 0 0 1.15rem;
    color: #111118;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
}

.p-contact__form-wrap .wpcf7-form-control-wrap {
    display: block;
    margin-top: 0.4rem;
}

.p-contact__form-wrap input.wpcf7-form-control:not([type="submit"]),
.p-contact__form-wrap textarea.wpcf7-form-control {
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid #c5c9d6;
    border-radius: 8px;
    background: #f8f9fb;
    color: #111118;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.p-contact__form-wrap textarea.wpcf7-form-control {
    min-height: 9rem;
    resize: none; /* 右下のリサイズ斜線を非表示 */
}

.p-contact__form-wrap input.wpcf7-form-control:focus,
.p-contact__form-wrap textarea.wpcf7-form-control:focus {
    outline: none;
    border-color: #020283;
    box-shadow: 0 0 0 3px rgba(2, 2, 131, 0.12);
    background: #ffffff;
}

.p-contact__form-wrap .wpcf7-not-valid {
    border-color: #E6192E !important;
}

.p-contact__form-wrap .wpcf7-not-valid-tip {
    display: block;
    margin-top: 0.35rem;
    color: #E6192E;
    font-size: 0.8125rem;
    font-weight: 700;
}

.p-contact__form-wrap .wpcf7-spinner {
    margin-left: 0.5rem;
}

.p-contact__form-wrap .wpcf7-form > p.p-contact__privacy-note,
.p-contact__privacy-note {
    margin: 0 0 1rem;
    color: #666677;
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.7;
}

.p-contact__form-wrap .wpcf7-form > p.p-contact__privacy-note a,
.p-contact__privacy-note a {
    color: #020283;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.15em;
    transition: color 0.2s ease;
}

.p-contact__form-wrap .wpcf7-form > p.p-contact__privacy-note a:hover,
.p-contact__privacy-note a:hover {
    color: #0a0a9e;
}

.p-contact__form-wrap .wpcf7-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.95rem 1.5rem;
    border: none;
    border-radius: 999px;
    background: #020283;
    color: #ffffff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 4px 0 #01015c;
    transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.p-contact__form-wrap .wpcf7-submit:hover {
    background: #0a0a9e;
}

.p-contact__form-wrap .wpcf7-submit:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 #01015c;
}

.p-contact__form-wrap .wpcf7-response-output {
    margin: 1rem 0 0;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .contact-page {
        padding-top: 72px;
        padding-bottom: 96px; /* 下固定バー分 */
    }

    .p-contact {
        padding: 32px 0 40px;
    }

    .p-contact__title {
        font-size: 1.5rem;
    }

    .p-contact__form-wrap {
        padding: 1.35rem 1.1rem;
    }
}
