.contact-page {
    background: #f4f5f5;
}

.contact-mv {
    height: 400px;
    overflow: hidden;
}

.contact-mv .sub-mv-bg {
    width: 100%;
    height: 100%;
}

.contact-mv .sub-mv-bg img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center 58%;
}

.contact-intro-section {
    padding: 96px 24px 76px;
    background: #ffffff;
    text-align: center;
}

.contact-intro-inner {
    width: min(100%, 820px);
    margin: 0 auto;
}

.contact-intro-section h2 {
    margin-bottom: 26px;
    color: #333333;
    font-family: 'Zen Old Mincho', serif;
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    font-weight: 400;
    letter-spacing: 0.14em;
    line-height: 1.7;
}

.contact-intro-lead,
.contact-intro-note {
    color: #444444;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    line-height: 2;
}

.contact-intro-note {
    margin-top: 24px;
    color: #1b355a;
    font-size: 0.78rem;
}

.contact-complete-section {
    min-height: 420px;
    display: flex;
    align-items: center;
}

.contact-complete-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin-top: 42px;
}

.contact-complete-actions .contact-submit {
    text-decoration: none;
}

.contact-complete-link {
    color: #1b355a;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.contact-complete-link:hover {
    opacity: 0.6;
}

.contact-form-section {
    padding: 0 24px 120px;
    background: #ffffff;
}

.contact-form-shell {
    width: min(100%, 920px);
    margin: 0 auto;
    padding: 68px clamp(28px, 7vw, 86px) 76px;
    background: #f4f5f5;
    border-top: 1px solid rgba(27, 53, 90, 0.22);
}

.contact-form-heading {
    margin-bottom: 42px;
    text-align: center;
}

.contact-form-heading h2 {
    margin-bottom: 12px;
    color: #333333;
    font-family: 'Zen Old Mincho', serif;
    font-size: 1.65rem;
    font-weight: 400;
    letter-spacing: 0.15em;
}

.contact-form-heading p:last-child {
    color: #555555;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.contact-form-status {
    margin: -14px 0 34px;
    padding: 16px 20px;
    border: 1px solid rgba(27, 53, 90, 0.25);
    background: rgba(255, 255, 255, 0.72);
    color: #1b355a;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    line-height: 1.8;
    text-align: center;
}

.contact-form-status.is-error {
    border-color: rgba(150, 70, 62, 0.3);
    color: #8a423b;
}

.contact-form.is-sent .contact-form-grid,
.contact-form.is-sent .contact-submit-wrap {
    display: none;
}

.contact-honeypot {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.contact-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
}

.contact-field {
    min-width: 0;
}

.contact-property-field[hidden] {
    display: none;
}

.contact-field-note {
    margin-top: 8px;
    color: #6c737a;
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    line-height: 1.7;
}

.contact-field--full {
    grid-column: 1 / -1;
}

.contact-field > label:not(.contact-checkbox) {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #333333;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
}

.contact-field > label:not(.contact-checkbox) span {
    padding: 3px 7px;
    color: #ffffff;
    background: #1b355a;
    border-radius: 2px;
    font-family: sans-serif;
    font-size: 0.6rem;
    letter-spacing: 0.08em;
}

.contact-field input:not([type="checkbox"]),
.contact-field select,
.contact-field textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d4d8dc;
    border-radius: 0;
    outline: none;
    background: #ffffff;
    color: #333333;
    font: inherit;
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    line-height: 1.7;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.contact-field input:not([type="checkbox"]):focus,
.contact-field select:focus,
.contact-field textarea:focus {
    border-color: #1b355a;
    box-shadow: 0 0 0 3px rgba(27, 53, 90, 0.1);
}

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

.contact-field input::placeholder,
.contact-field textarea::placeholder {
    color: #a5a9ad;
}

.contact-field select:invalid {
    color: #a5a9ad;
}

.contact-consent {
    margin-top: -2px;
}

.contact-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #444444;
    cursor: pointer;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.contact-checkbox input {
    width: 17px;
    height: 17px;
    accent-color: #1b355a;
}

.contact-submit-wrap {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}

.contact-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-width: 190px;
    padding: 14px 34px;
    border: 1px solid #333333;
    border-radius: 50px;
    background: #ffffff;
    color: #333333;
    cursor: pointer;
    font: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    transition: all 0.3s ease;
}

.contact-submit:hover {
    border-color: #2b4c6f;
    background: #2b4c6f;
    color: #ffffff;
    transform: translateY(-2px);
}

.contact-submit:hover .arrow {
    color: #ffffff;
    transform: translateX(6px);
}

@media (max-width: 768px) {
    .contact-mv {
        height: 240px;
    }

    .contact-intro-section {
        padding: 60px 24px 56px;
    }

    .contact-intro-section h2 {
        font-size: 1.25rem;
        letter-spacing: 0.25em;
        line-height: 1.7;
    }

    .contact-intro-lead,
    .contact-intro-note {
        font-size: 0.9rem;
        text-align: left;
        letter-spacing: 0.08em;
        line-height: 2;
    }

    .contact-intro-note {
        font-size: 0.85rem;
    }

    .contact-complete-section {
        min-height: 430px;
    }

    .contact-complete-actions {
        margin-top: 34px;
    }

    .contact-form-section {
        padding: 0 24px 80px;
    }

    .contact-form-shell {
        padding: 52px 20px 58px;
    }

    .contact-form-heading {
        margin-bottom: 34px;
    }

    .contact-form-heading h2 {
        font-size: 1.25rem;
        letter-spacing: 0.25em;
        line-height: 1.7;
    }

    .contact-form-heading p:last-child {
        font-size: 0.85rem;
        letter-spacing: 0.08em;
        line-height: 2;
    }

    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .contact-field--full {
        grid-column: auto;
    }

    .contact-field > label:not(.contact-checkbox) {
        font-size: 0.9rem;
        letter-spacing: 0.08em;
    }

    .contact-field input:not([type="checkbox"]),
    .contact-field select,
    .contact-field textarea {
        font-size: 0.9rem;
        letter-spacing: 0.08em;
        line-height: 1.8;
    }

    .contact-field-note {
        font-size: 0.72rem;
        letter-spacing: 0.04em;
        line-height: 1.8;
    }

    .contact-checkbox {
        align-items: flex-start;
        font-size: 0.85rem;
        letter-spacing: 0.06em;
        line-height: 1.8;
    }

    .contact-checkbox input {
        flex-shrink: 0;
        margin-top: 5px;
    }

    .contact-submit {
        font-size: 0.88rem;
        letter-spacing: 0.1em;
    }

    .contact-field textarea {
        min-height: 170px;
    }
}
