@charset "UTF-8";
/* ========================================
contact-page
既存CSSと競合しないように cp- 接頭辞
======================================== */
.contact-page__inner {
    width: min(900px, 90%);
    margin: 0 auto;
}

/* ========================================
heading
======================================== */
.section-heading--contact {
    text-align: center;
    margin-bottom: 50px;
}

/* ========================================
text
======================================== */
.cp-description {
    text-align: center;
    margin: 50px 0 70px;
}

.cp-description p {
    font-size: 1.6rem;
    line-height: 1.2;
}

.cp-description p + p {
    margin-top: 28px;
}

/* ========================================
form (ベース)
======================================== */
.cp-form__group {
    padding-bottom: 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid #c3c3c3;
    display: flex;
    gap: 15px;
    align-items: center; 
}

.cp-form__group.cp-form__group--textarea {
    align-items: flex-start;
}

.cp-form__group.cp-form__privacy {
    padding-bottom: 0;
}

/* ========================================
【修正】ラベルの横幅を完全に固定する
======================================== */
.cp-form__label {
    font-size: 1.8rem;
    font-weight: 500;
    display: inline-block;
    width: 220px;
    flex-shrink: 0;
}

/* ========================================
【修正】Contact Form 7 が自動生成するタグへの対策
======================================== */
.cp-form .wpcf7-form-control-wrap {
    display: block;
    flex: 1;
}

.wpcf7-spinner {
    display: none;
}

/* ========================================
入力要素のスタイル
======================================== */
.cp-form input,
.cp-form textarea,
.cp-form select {
    width: 100%;
    border: none;
    background: #f5f5f5;
    outline: none;
    font-size: 1.6rem;
    font-family: inherit;
    color: #333;
    padding: 8px 12px;
}

.cp-form textarea {
    min-height: 100px;
    resize: vertical;
}

.cp-form .wpcf7-not-valid-tip {
    margin-top: 10px;
    font-size: 1.3rem;
}

.cp-form .wpcf7-response-output {
    margin: 30px 0 0 !important;
    padding: 15px !important;
    font-size: 1.4rem;
}

.count {
    font-size: 1.3rem;
}

/* =========================
    privacy
========================= */
.cp-form__privacy {
    margin-top: 70px;
    text-align: center;
    border-bottom: none;
    justify-content: center;
}

.cp-form__privacy-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

.cp-form__privacy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3f7d4e;
    appearance: auto;
    -webkit-appearance: auto;
}

.cp-form__privacy a {
    color: #3f7d4e;
    text-decoration: underline;
}

.cp-form__privacy a:hover {
    opacity: .7;
}

/* ========================================
submit
======================================== */
.cp-form__submit {
    text-align: center;
}

.cp-form__submit button,
.cp-form input[type="submit"] {
    width: 220px;
    height: 58px;
    border: none;
    border-radius: 10px;
    background: #3f7d4e;
    color: #fff;
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;
    transition: .3s;
}

.cp-form__submit button:hover,
.cp-form input[type="submit"]:hover {
    opacity: .8;
}

/* ========================================
responsive (スマホ対応)
======================================== */
@media screen and (max-width: 768px) {
    .cp-heading {
        margin-bottom: 40px;
    }

    .cp-heading__title {
        font-size: 4.2rem;
    }

    .cp-heading__subtitle {
        font-size: 1.8rem;
    }

    .cp-description {
        margin-bottom: 50px;
    }

    .cp-description p {
        font-size: 1.3rem;
        line-height: 1.5;
    }

    .cp-form__group,
    .cp-form__group.cp-form__group--textarea {
        display: block; 
        margin-bottom: 28px;
    }

    .cp-form__label {
        font-size: 1.6rem;
        width: 100%;
        margin-bottom: 10px;
    }

    .cp-form input,
    .cp-form textarea,
    .cp-form select {
        font-size: 1.5rem;
    }

    .cp-form__submit button,
    .cp-form input[type="submit"] {
        width: 180px;
        height: 52px;
        font-size: 1.6rem;
    }
}