
/* ============================================
   Meguri Contact v3
   White / Clean Design
============================================ */

body.page:has(.meguri-contact) {
    background: #f5f6f8;
    color: #30343b;
}

body.page:has(.meguri-contact) .site-main,
body.page:has(.meguri-contact) .site-content,
body.page:has(.meguri-contact) .elementor,
body.page:has(.meguri-contact) .elementor-section-wrap {
    background-color: transparent;
}

.meguri-contact,
.meguri-contact * {
    box-sizing: border-box;
}

.meguri-contact {
    width: 100%;
    min-height: 80vh;
    padding: 64px 20px 100px;
    color: #30343b;
    font-family: inherit;
}

.meguri-contact-inner {
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 48px;
    border: 1px solid #c5a46a;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 40px rgba(20, 25, 35, 0.045);
}

/* Header */

.meguri-contact-header {
    margin-bottom: 40px;
    text-align: center;
}

.meguri-contact-kicker {
    margin: 0 0 12px;
    color: #a68b5b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2em;
}

.meguri-contact-title {
    margin: 0 0 18px;
    color: #252932;
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 600;
    line-height: 1.4;
}

.meguri-contact-lead {
    margin: 0;
    color: #666d78;
    font-size: 14px;
    line-height: 1.9;
}

/* Form */

.meguri-contact-form {
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.meguri-contact-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.meguri-contact-field label {
    color: #343943;
    font-size: 14px;
    font-weight: 600;
}

.meguri-contact-field label span {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f5f0e6;
    color: #987747;
    font-size: 11px;
    font-weight: 500;
}

/* Inputs */

.meguri-contact-field input,
.meguri-contact-field select,
.meguri-contact-field textarea {
    display: block;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 13px 16px;
    border: 1px solid #c5a46a;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #30343b;
    font-family: inherit;
    font-size: 15px;
    line-height: 1.6;
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.meguri-contact-field textarea {
    min-height: 190px;
    resize: vertical;
}

.meguri-contact-field input:focus,
.meguri-contact-field select:focus,
.meguri-contact-field textarea:focus {
    border-color: #a78549;
    background: #ffffff;
    color: #30343b;
    box-shadow: 0 0 0 3px rgba(181, 154, 106, 0.12);
}

.meguri-contact-field select option {
    background: #ffffff;
    color: #30343b;
}

/* Submit */

.meguri-contact-actions {
    margin-top: 12px;
    text-align: center;
}

.meguri-contact #meguriContactSubmit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-height: 54px;
    padding: 14px 24px;
    border: 1px solid #343943;
    border-radius: 8px;
    background: #343943;
    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.meguri-contact #meguriContactSubmit:hover:not(:disabled),
.meguri-contact #meguriContactSubmit:focus-visible:not(:disabled) {
    background: #4a515e;
    border-color: #4a515e;
    color: #ffffff;
}

.meguri-contact #meguriContactSubmit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.meguri-contact-status {
    margin: 16px 0 0;
    color: #737b86;
    font-size: 13px;
    line-height: 1.8;
}

/* Mobile */

@media (max-width: 600px) {
    .meguri-contact {
        padding: 36px 14px 70px;
    }

    .meguri-contact-inner {
        padding: 32px 20px;
        border-radius: 12px;
    }

    .meguri-contact-header {
        margin-bottom: 32px;
    }

    .meguri-contact-form {
        gap: 22px;
    }

    .meguri-contact-lead {
        font-size: 13px;
    }

    .meguri-contact #meguriContactSubmit {
        max-width: 100%;
    }
}
/* 送信完了後：元のページに戻る */

.meguri-contact-return {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 12px 30px;
    border: 1px solid #c5a46a;
    border-radius: 4px;
    background: #fff;
    color: #584525;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s;
}

.meguri-contact-return:hover,
.meguri-contact-return:focus-visible {
    background: #c5a46a;
    color: #fff;
    text-decoration: none;
}