/*========================================
  全体共通
========================================*/
html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: "Noto Serif JP", "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 600;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

/* ========================================
   お問い合わせフォーム
======================================== */
.contact-page {
    background: #fff;
    color: #222;
    padding-top: 80px;
}

.contact-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* MV */
.contact-mv {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    background:
        linear-gradient(rgba(30, 30, 20, 0.25),
            rgba(30, 30, 20, 0.25)),
        url("../img/contact-cta-bg.webp") center / cover no-repeat;
}

.contact-mv__inner {
    padding: 50px 20px;
}

.contact-mv__en {
    margin: 0 0 12px;
    font-family: serif;
    font-size: 14px;
    letter-spacing: 0.2em;
}

.contact-mv__title {
    margin: 0;
    font-family: serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 400;
    letter-spacing: 0.08em;
}

.contact-mv__text {
    margin: 12px 0 0;
    font-family: serif;
    font-size: clamp(14px, 1.8vw, 20px);
}

/* パンくず */
.contact-breadcrumb {
    padding: 16px 0 20px;
    font-size: 12px;
}

.contact-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.contact-breadcrumb span {
    margin-right: 5px;
}

/* 電話 */
.contact-tel {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    margin-bottom: 22px;
    padding: 28px 40px;
    background: #f4f6f1;
    border-radius: 4px;
}

.contact-tel__main {
    display: flex;
    align-items: center;
    gap: 25px;
}

.contact-tel__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: #e7ebe2;
    border-radius: 50%;
}

.contact-tel__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.contact-tel__number {
    padding-right: 50px;
    border-right: 1px solid #bbb;
}

.contact-tel__number p {
    margin: 0 0 4px;
    font-family: serif;
    font-size: 18px;
}

.contact-tel__number a {
    color: #111;
    font-family: serif;
    font-size: 38px;
    letter-spacing: 0.08em;
    text-decoration: none;
}

.contact-tel__info p {
    margin: 4px 0;
    font-family: serif;
}

/* フォーム枠 */
.contact-form-section {
    margin-bottom: 80px;
    padding: 32px 38px 36px;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.contact-form__heading {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.contact-form__heading h2 {
    margin: 0 0 10px;
    font-family: serif;
    font-size: 30px;
    font-weight: 500;
}

.contact-form__heading p {
    margin: 0;
    line-height: 1.8;
}

.contact-form__required-note {
    flex-shrink: 0;
    font-size: 13px;
}

.required,
.contact-form__required-note span {
    color: #e44646;
}

/* 行 */
.contact-form__row {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 14px;
}

.contact-form__label {
    padding-top: 13px;
    font-family: serif;
    font-size: 16px;
}

.contact-form__field {
    min-width: 0;
}

/* INPUT */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    background: #fff;
    border: 1px solid #d8d8d8;
    border-radius: 3px;
    color: #222;
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}

.contact-form textarea {
    min-height: 130px;
    resize: vertical;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #aaa;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #596452;
    box-shadow: 0 0 0 2px rgba(89, 100, 82, 0.1);
}

/* チェックボックス */
.contact-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 40px;
    padding: 7px 0;
}

.contact-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    line-height: 1.5;
}

.contact-checkbox input[type="checkbox"] {
    appearance: none;
    flex: 0 0 auto;
    width: 21px;
    height: 21px;
    margin: 1px 0 0;
    background: #fff;
    border: 1px solid #999;
    border-radius: 2px;
    cursor: pointer;
}

.contact-checkbox input[type="checkbox"]:checked {
    background-color: #46503e;
    border-color: #46503e;
}

.contact-checkbox input[type="checkbox"]:checked::after {
    content: "";
    display: block;
    width: 5px;
    height: 10px;
    margin: 2px 0 0 6px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

/* プライバシー */
.contact-form__privacy {
    margin: 18px 0 0 270px;
}

.contact-checkbox--privacy a {
    color: #222;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* エラー */
.field-error {
    display: none;
    margin: 5px 0 0;
    color: #d93636;
    font-size: 13px;
}

.field-error.is-visible {
    display: block;
}

.contact-form .is-error {
    border-color: #d93636 !important;
    background: #fffafa !important;
}

/* 全体メッセージ */
.contact-message {
    display: none;
    margin-bottom: 25px;
    padding: 18px 20px;
    border-radius: 4px;
    line-height: 1.8;
}

.contact-message.is-success {
    display: block;
    color: #34402e;
    background: #f1f5ef;
    border: 1px solid #a9b7a1;
}

.contact-message.is-error {
    display: block;
    color: #a12828;
    background: #fff3f3;
    border: 1px solid #e1aaaa;
}

/* 送信ボタン */
.contact-form__submit {
    margin-top: 25px;
    text-align: center;
}

.contact-form__submit button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    width: min(450px, 100%);
    min-height: 60px;
    padding: 15px 30px;
    color: #fff;
    background: #3e4937;
    border: none;
    border-radius: 50px;
    font-family: serif;
    font-size: 17px;
    cursor: pointer;
    transition:
        opacity 0.2s,
        transform 0.2s;
}

.contact-form__submit button:hover {
    opacity: 0.85;
}

.contact-form__submit button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.contact-thanks {
    text-align: center;
    padding: 60px 20px;
    line-height: 2;
}

.contact-thanks strong {
    display: block;
    font-size: 24px;
    margin-bottom: 20px;
}

@media screen and (max-width: 768px) {
    .contact-container {
        width: min(100% - 30px, 1180px);
    }

    .contact-mv {
        min-height: 220px;
    }

    .contact-tel {
        display: block;
        padding: 25px 20px;
    }

    .contact-tel__main {
        justify-content: center;
    }

    .contact-tel__number {
        padding-right: 0;
        border-right: none;
    }

    .contact-tel__number a {
        font-size: 28px;
    }

    .contact-tel__info {
        margin-top: 20px;
        padding-top: 20px;

        text-align: center;

        border-top: 1px solid #ccc;
    }

    .contact-form-section {
        padding: 25px 18px;
    }

    .contact-form__heading {
        display: block;
    }

    .contact-form__required-note {
        margin-top: 10px !important;
    }

    .contact-form__row {
        display: block;
        margin-bottom: 22px;
    }

    .contact-form__label {
        display: block;
        margin-bottom: 7px;
        padding-top: 0;
    }

    .contact-checkbox-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .contact-form__privacy {
        margin-left: 0;
    }
}