/* お問い合わせ固定ページ専用。承認済みA案・再修正版。 */
.mog-contact-page,
.mog-contact-page * {
    box-sizing: border-box;
}

.mog-contact-page {
    background: linear-gradient(180deg, #f3f8f1 0, #fff 520px);
    color: #172018;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}

.mog-contact-page a {
    color: inherit;
}

.mog-contact-breadcrumb {
    border-bottom: 1px solid #dfe8dc;
    background: #fff;
}

.mog-contact-breadcrumb__inner {
    display: flex;
    width: min(calc(100% - 48px), 1180px);
    align-items: center;
    gap: 10px;
    margin-inline: auto;
    padding-block: 12px;
    color: #546258;
    font-size: 13px;
}

.mog-contact-breadcrumb__inner a {
    text-decoration: none;
}

.mog-contact-main {
    width: min(calc(100% - 48px), 1180px);
    margin-inline: auto;
    padding-block: 42px 72px;
}

.mog-contact-hero {
    display: grid;
    min-height: 250px;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(135deg, #eaf5e8 0 68%, #fff0e3 68%);
}

.mog-contact-hero__copy {
    padding: 40px 48px;
}

.mog-contact-hero h1 {
    margin: 0;
    color: #155e25;
    font-size: 44px;
    line-height: 1.2;
}

.mog-contact-hero__media {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.mog-contact-hero__media img {
    display: block;
    width: 170px;
    height: 170px;
    object-fit: contain;
}

.mog-contact-notice,
.mog-contact-purchase,
.mog-contact-routes,
.mog-contact-other,
.mog-contact-mail {
    margin-top: 34px;
}

.mog-contact-notice {
    padding: 26px 30px;
    border: 1px solid #f0c99d;
    border-left: 7px solid #f36f0c;
    border-radius: 18px;
    background: #fff8f1;
}

.mog-contact-notice h2 {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.4;
}

.mog-contact-notice p {
    margin: 0;
}

.mog-contact-purchase {
    overflow: hidden;
    border: 2px solid #16802e;
    border-top-width: 10px;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff 0 64%, #edf7ec 64%);
    box-shadow: 0 18px 42px rgba(24, 94, 41, .16);
}

.mog-contact-purchase > h2 {
    margin: 0;
    padding: 22px 30px 18px;
    border-bottom: 1px solid #cfe2cc;
    background: #f4faf2;
    color: #0f6521;
    font-size: 30px;
    line-height: 1.25;
}

.mog-contact-purchase__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, .75fr);
    gap: 28px;
    align-items: stretch;
    padding: 30px;
}

.mog-contact-purchase__copy p {
    margin: 0 0 14px;
}

.mog-contact-purchase__note {
    margin-top: 14px !important;
}

.mog-contact-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 22px;
}

.mog-contact-action {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 12px;
    color: #fff !important;
    font-weight: 800;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 7px 16px rgba(0, 0, 0, .12);
}

.mog-contact-action--line {
    background: #0a8b2b;
}

.mog-contact-action--mail {
    background: #f26d0d;
}

.mog-contact-action:hover,
.mog-contact-action:focus-visible {
    filter: brightness(.94);
    outline: none;
}

.mog-contact-phone {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border-radius: 16px;
    background: #16762a;
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 10px 24px rgba(16, 101, 33, .24);
}

.mog-contact-phone span,
.mog-contact-phone small {
    display: block;
    font-weight: 600;
}

.mog-contact-phone strong {
    display: block;
    font-size: 34px;
    line-height: 1.2;
}

.mog-contact-phone--sp {
    display: none;
}

.mog-contact-routes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.mog-contact-route {
    padding: 28px;
    border-top: 6px solid #16762a;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(35, 74, 39, .07);
}

.mog-contact-route h2 {
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.4;
}

.mog-contact-route__link {
    display: flex;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 20px;
    border-radius: 12px;
    background: #16762a;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none !important;
}

.mog-contact-route__link svg {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mog-contact-route__link:hover,
.mog-contact-route__link:focus-visible {
    background: #0f6521;
    outline: none;
}

.mog-contact-other,
.mog-contact-mail {
    padding: 30px;
    border-radius: 20px;
}

.mog-contact-other {
    border: 1px solid #d3e5d0;
    background: #eef6ec;
}

.mog-contact-other h2,
.mog-contact-mail h2 {
    margin: 0 0 15px;
    font-size: 25px;
    line-height: 1.4;
}

.mog-contact-other p {
    margin: 6px 0;
}

.mog-contact-mail {
    border: 2px solid #d9e7d6;
    background: #fff;
}

.mog-contact-mail > p {
    margin: 0 0 22px;
}

.mog-contact-mail__form .wpcf7-form {
    margin: 0;
}

.mog-contact-mail__form input[type="text"],
.mog-contact-mail__form input[type="email"],
.mog-contact-mail__form input[type="tel"],
.mog-contact-mail__form textarea,
.mog-contact-mail__form select {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border: 1px solid #d9e2d7;
    border-radius: 10px;
    background: #f7f9f6;
    color: #172018;
}

.mog-contact-mail__form textarea {
    min-height: 140px;
    resize: vertical;
}

.mog-contact-mail__form input[type="submit"] {
    display: block;
    width: min(100%, 240px);
    min-height: 56px;
    margin: 22px auto 0;
    padding: 12px 20px;
    border: 0;
    border-radius: 12px;
    background: #f36f0c;
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.mog-contact-recaptcha {
    margin: 20px 0 0 !important;
    font-size: 13px;
}

@media (max-width: 991px) {
    .mog-contact-breadcrumb__inner,
    .mog-contact-main {
        width: min(calc(100% - 28px), 1180px);
    }

    .mog-contact-breadcrumb__inner {
        padding-block: 10px;
    }

    .mog-contact-main {
        padding-block: 22px 50px;
    }

    .mog-contact-hero {
        min-height: 164px;
        grid-template-columns: minmax(0, 1fr) 104px;
        border-radius: 18px;
    }

    .mog-contact-hero__copy {
        padding: 24px 16px 24px 22px;
    }

    .mog-contact-hero h1 {
        font-size: 32px;
    }

    .mog-contact-hero__media img {
        width: 100px;
        height: 100px;
    }

    .mog-contact-notice,
    .mog-contact-purchase,
    .mog-contact-routes,
    .mog-contact-other,
    .mog-contact-mail {
        margin-top: 22px;
    }

    .mog-contact-notice {
        padding: 20px;
        border-radius: 14px;
    }

    .mog-contact-notice h2 {
        font-size: 19px;
    }

    .mog-contact-purchase {
        border-radius: 15px;
    }

    .mog-contact-purchase > h2 {
        padding: 18px 20px 15px;
        font-size: 25px;
    }

    .mog-contact-purchase__inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 20px;
    }

    .mog-contact-actions,
    .mog-contact-routes {
        grid-template-columns: 1fr;
    }

    .mog-contact-phone--pc {
        display: none;
    }

    .mog-contact-phone--sp {
        display: flex;
    }

    .mog-contact-phone strong {
        font-size: 28px;
    }

    .mog-contact-routes {
        gap: 16px;
    }

    .mog-contact-route,
    .mog-contact-other,
    .mog-contact-mail {
        padding: 20px;
        border-radius: 15px;
    }

    .mog-contact-route h2 {
        font-size: 20px;
    }

    .mog-contact-other h2,
    .mog-contact-mail h2 {
        font-size: 21px;
    }
}
