.contact-page #header-inner,
.contact-page nav #header-menu,
.contact-page #main-contents,
.contact-page #top-service,
.contact-page #top-access,
.contact-page footer {
    width: calc(100% - 32px);
    max-width: 1000px;
}
.contact-page #main-contents { overflow: visible; }
.contact-page .h2-contact {
    box-sizing: border-box;
    height: 250px;
    padding: 100px 30px 0;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
.contact-page .h2-contact span { color: #257329; }
.contact-page #main-contents .contact-form { margin-bottom: 30px; }
.contact-form .form-group {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    border: 1px solid #ccc;
    border-bottom: 0;
    background: #fff;
}
.contact-form .form-group:last-of-type { border-bottom: 1px solid #ccc; }
.contact-form .form-group > label {
    box-sizing: border-box;
    flex: 0 0 240px;
    margin: 0;
    padding: 20px;
    background: #f5f5f5;
    font-weight: bold;
}
.contact-form .form-group > .col-sm-9,
.contact-form .form-group > .col-sm-4 {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    padding: 16px 20px;
    overflow-wrap: anywhere;
}
.contact-form .form-group > .col-sm-5 {
    box-sizing: border-box;
    padding: 16px 20px 16px 0;
}
.contact-form .form-control {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 44px;
    border: 1px solid #888;
    border-radius: 2px;
    padding: 10px 12px;
    background: #fff;
    color: #333;
    font: inherit;
}
.contact-form .form-control::placeholder { color: #666; opacity: 1; }
.contact-form textarea.form-control { min-height: 200px; resize: vertical; }
.contact-form .input-group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.contact-form .input-group .form-control { flex: 1; min-width: 100px; }
.contact-form .input-group .alert { flex-basis: 100%; }
.contact-form .badge-danger {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 6px;
    background: #b51f2c;
    color: #fff;
    font-size: 12px;
    line-height: 1.5;
    vertical-align: middle;
}
.contact-form .btn {
    box-sizing: border-box;
    min-height: 44px;
    padding: 10px 24px;
    border: 1px solid #257329;
    border-radius: 2px;
    background: #257329;
    color: #fff;
    font: inherit;
    font-weight: bold;
    cursor: pointer;
}
.contact-form .btn:hover { border-color: #1c5920; background: #1c5920; }
.contact-form .btn-secondary { background: #fff; color: #257329; }
.contact-form .btn-secondary:hover { background: #edf5ed; }
.contact-form input[type="submit"] { display: block; min-width: 180px; margin: 28px auto 0; }
.contact-form input[name="_back"],
.contact-form input[name="commit"] { display: inline-block; margin-right: 12px; }
.contact-form .alert-danger { margin: 8px 0 0; color: #a51b27; font-size: 14px; }
.contact-form #error_message { margin: 0 0 24px; padding: 16px; border: 1px solid #a51b27; background: #fff4f4; }
.contact-form .form-group.alert-warning { border-left: 3px solid #a51b27; }
.contact-form .text-right { margin-top: 24px; text-align: right; font-size: 13px; }
.contact-page a:focus-visible,
.contact-page button:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible { outline: 3px solid #1c5920; outline-offset: 3px; }
.contact-page #top-service { display: flex; flex-wrap: nowrap; justify-content: space-between; gap: 28px; }
.contact-page #top-service > div { float: none; margin: 0; width: calc((100% - 56px) / 3); }
.contact-page #top-service img { max-width: 100%; height: auto; }
.contact-page #top-access iframe { width: 100%; }
@media (max-width: 1020px) {
    .contact-page footer .footer-left { width: 55%; }
    .contact-page footer .footer-right { width: 45%; }
    .contact-page footer .footer-right img { max-width: 75%; height: auto; }
    .contact-page nav #header-menu li { width: calc((100% - 6px) / 7); }
}
@media (max-width: 767px) {
    .contact-page header { height: 96px; }
    .contact-page #header-inner { position: relative; height: 96px; }
    .contact-page header h1 { float: none; width: min(70%, 280px); height: auto; margin: 15px 0 0; }
    .contact-page header h1 img { width: 100%; height: auto; }
    .contact-page #header-right { display: none; }
    .contact-page #header-right-sp { display: block; position: absolute; right: 0; top: 6px; }
    .contact-page .top-button { margin: 0; width: 68px; }
    .contact-page .menu-btn { min-width: 60px; min-height: 44px; padding: 4px; border: 0; background: #fff; cursor: pointer; }
    .contact-page .menu-btn img { display: block; width: 60px; height: auto; }
    .contact-page #container2 > nav { display: none; }
    .contact-page #main-contents { margin-top: 12px; padding-bottom: 30px; }
    .contact-page .h2-contact { height: 180px; padding: 15px; margin-bottom: 24px; font-size: 24px; background-color: #fff; background-position: center bottom; background-size: 100% auto; }
    .contact-page .h2-contact span { font-size: 13px; }
    .contact-form .form-group > label { flex-basis: 100%; padding: 12px 14px; }
    .contact-form .form-group > .col-sm-9,
    .contact-form .form-group > .col-sm-4 { flex-basis: 100%; padding: 14px; }
    .contact-form .form-group > .col-sm-5 { padding: 0 14px 14px; }
    .contact-form .btn { max-width: 100%; }
    .contact-form textarea.form-control { min-height: 160px; }
    .contact-form input[name="_back"],
    .contact-form input[name="commit"] { display: block; width: 100%; margin: 20px 0 0; }
    .contact-page #top-service { display: block; }
    .contact-page #top-service > div { width: 100%; margin: 0 0 28px; }
    .contact-page #top-service img { display: block; width: 180px; margin: 0 auto 12px; }
    .contact-page footer .footer-left,
    .contact-page footer .footer-right { float: none; width: 100%; }
    .contact-page footer .footer-left-logo { float: none; margin-bottom: 16px; }
    .contact-page footer .footer-right { margin-top: 20px; text-align: left; }
    .contact-page footer .footer-right img { max-width: 75%; }
    .contact-page #footer-cc { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .contact-page .pushy, .contact-page .pushy-content { transition: none; }
}
.contact-page .menu-btn { color: #257329; font-weight: bold; font-size: 14px; }

.contact-form .text-right a { color: #257329; }
