@charset "utf-8";

/*
 * お問い合わせページ
 * サイトに合うデザイン：白背景・薄い緑アクセント・角丸・必須バッジ
 */

.contact_main {
    padding: 4rem 0 6rem;
    background: #fff;
    min-height: 60vh;
}

.contact_main::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 24rem;
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(200, 230, 200, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.contact_inner {
    position: relative;
    max-width: 64rem;
    margin: 0 auto;
    padding: 0 1.6rem;
}

.contact_title {
    font-size: 2.4rem;
    font-weight: 700;
    color: #141437;
    text-align: center;
    margin-bottom: 0.8rem;
}

.contact_lead {
    font-size: 1.4rem;
    color: #555;
    text-align: center;
    margin-bottom: 3rem;
}

.contact_error_block {
    background: #fff0f0;
    border: 1px solid #e88;
    color: #c00;
    padding: 1rem 1.2rem;
    border-radius: 0.8rem;
    margin-bottom: 2rem;
    font-size: 1.4rem;
}

.contact_form {
    background: #fefefe;
    border-radius: 1.6rem;
    padding: 2.4rem 1.6rem;
    box-shadow: 0 0.2rem 1.2rem rgba(0, 0, 0, 0.06);
}

@media screen and (min-width: 768px) {
    .contact_form {
        padding: 3.2rem 3rem;
    }
}

.contact_field {
    margin-bottom: 2rem;
}

.contact_label {
    display: block;
    font-size: 1.4rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
}

.contact_required {
    color: #c00;
    font-size: 1.2rem;
    margin-left: 0.4rem;
}

.contact_input,
.contact_textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    font-size: 1.5rem;
    border: 1px solid #ddd;
    border-radius: 0.8rem;
    background: #f8f8f8;
    color: #333;
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
}

.contact_input:focus,
.contact_textarea:focus {
    outline: none;
    border-color: #7cb342;
    background: #fff;
}

.contact_input.is_error,
.contact_textarea.is_error {
    border-color: #c00;
    background: #fff8f8;
}

.contact_textarea {
    resize: vertical;
    min-height: 12rem;
}

.contact_field_error {
    color: #c00;
    font-size: 1.2rem;
    margin-top: 0.4rem;
}

.contact_field_agree {
    margin-top: 2.4rem;
}

.contact_agree_label {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    font-size: 1.4rem;
    color: #333;
    cursor: pointer;
}

.contact_agree_label input[type="checkbox"] {
    margin-top: 0.3rem;
    width: 1.8rem;
    height: 1.8rem;
    accent-color: #7cb342;
}

.contact_field_recaptcha {
    margin: 2rem 0;
}

.contact_submit_wrap {
    text-align: center;
    margin-top: 3rem;
}

.contact_submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1.4rem 3.2rem;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, #8bc34a 0%, #7cb342 100%);
    border: none;
    border-radius: 2rem;
    box-shadow: 0 0.4rem 1.2rem rgba(124, 179, 66, 0.35);
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
}

.contact_submit:hover {
    opacity: 0.95;
    transform: translateY(1px);
}

.contact_submit_icon {
    display: inline-block;
    width: 1.4rem;
    height: 1.4rem;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: rotate(45deg);
    margin-left: 0.2rem;
}

/* 送信完了ページ */
.contact_thanks_inner {
    text-align: center;
}

.contact_thanks_text {
    font-size: 1.6rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 2.4rem;
}

.contact_thanks_back {
    margin: 0;
}

.contact_thanks_link {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: #7cb342;
    text-decoration: none;
    border: 2px solid #7cb342;
    border-radius: 2rem;
    transition: background 0.2s, color 0.2s;
}

.contact_thanks_link:hover {
    background: #7cb342;
    color: #fff;
}
