.friends-page--contact {
    padding-bottom: 140px;
    background: #ffffff;
}

.friends-contact-hero {
    position: relative;
    height: 230px;
    min-height: 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("../images/subpage/obi.webp");
    background-size: cover;
    background-position: center 34%;
}

.friends-contact-hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
}

.friends-contact-hero__title {
    color: #2a3033;
    font-size: 32px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.friends-contact-content {
    padding-top: 56px;
}

body.friends-custom-site .friends-contact-content__inner.friends-container {
    width: min(1150px, calc(100% - 64px));
}

.friends-contact-intro {
    color: #2a3033;
    font-size: 20px;
    font-weight: 500;
    line-height: 28px;
    text-align: center;
}

.friends-contact-notices {
    margin-top: 43px;
    display: grid;
    gap: 18px;
}

.friends-contact-notice {
    padding: 22px 26px 20px;
    background: #fde3e6;
    border-radius: 5px;
}

body.friends-custom-site .friends-contact-notice h2 {
    margin: 0 0 8px;
    color: #2a3033;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.friends-contact-notice p {
    margin: 0;
    color: #2a3033;
    font-size: 17px;
    font-weight: 400;
    line-height: 26px;
}

body.friends-custom-site p.friends-contact-caution {
    margin-top: 18px;
    color: #5a4f4a;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
}

.friends-contact-mail {
    margin-top: 120px;
}

.friends-contact-heading {
    padding-bottom: 13px;
    border-bottom: 1px solid #5a4f4a;
    color: #2a3033;
    font-size: 24px;
    font-weight: 500;
    letter-spacing: 0.03em;
}

body.friends-custom-site p.friends-contact-mail__lead {
    margin-top: 47px;
    color: #2a3033;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.6;
}

.friends-contact-form-box,
.friends-contact-form {
    margin-top: 23px;
    border: 0;
    background: transparent;
    padding: 0;
}

.friends-contact-form .wpcf7 {
    margin: 0;
}

.friends-contact-form .wpcf7 form {
    display: grid;
    gap: 13px;
}

.friends-contact-form .wpcf7 form > p {
    margin: 0;
}

.friends-contact-form .friends-cf7-table {
    width: 100%;
    margin: 0 0 0;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #e2e2e2;
}

.friends-contact-form .friends-cf7-table th,
.friends-contact-form .friends-cf7-table td {
    border: 1px solid #e2e2e2;
    vertical-align: middle;
}

.friends-contact-form .friends-cf7-table th {
    width: 34%;
    padding: 20px 22px;
    background: #f4ede7;
    text-align: left;
}

.friends-contact-form .friends-cf7-table td {
    padding: 16px;
    background: #ffffff;
}

.friends-contact-form .friends-cf7-label {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.friends-contact-form .friends-cf7-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 60px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.friends-contact-form .friends-cf7-badge--required {
    background: #f56f81;
    color: #ffffff;
}

.friends-contact-form .friends-cf7-badge--optional {
    border: 1px solid #e2e2e2;
    background: #ffffff;
    color: #2a3033;
}

.friends-contact-form .friends-cf7-label-text {
    display: inline-flex;
    align-items: center;
    color: #2a3033;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.friends-contact-form .friends-cf7-table .wpcf7-form-control-wrap {
    display: block;
}

.friends-contact-form .wpcf7 input[type="text"],
.friends-contact-form .wpcf7 input[type="email"],
.friends-contact-form .wpcf7 input[type="tel"],
.friends-contact-form .wpcf7 textarea,
.friends-contact-form .wpcf7 select {
    width: 100%;
    border: 1px solid #e2e2e2;
    background: #ffffff;
    color: #38322f;
    font-size: 18px;
    padding: 8px 12px;
}

.friends-contact-form .wpcf7 input[type="text"],
.friends-contact-form .wpcf7 input[type="email"],
.friends-contact-form .wpcf7 input[type="tel"],
.friends-contact-form .wpcf7 select {
    height: 53px;
}

.friends-contact-form .wpcf7 textarea {
    min-height: 199px;
    resize: vertical;
}

.friends-contact-form .wpcf7 input[type="text"]:focus,
.friends-contact-form .wpcf7 input[type="email"]:focus,
.friends-contact-form .wpcf7 input[type="tel"]:focus,
.friends-contact-form .wpcf7 textarea:focus,
.friends-contact-form .wpcf7 select:focus {
    border-color: #6faf8c;
    outline: 2px solid rgba(111, 175, 140, 0.2);
    outline-offset: 0;
}

.friends-contact-form .wpcf7-checkbox {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 24px;
}

.friends-contact-form .wpcf7-checkbox .wpcf7-list-item {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.friends-contact-form .wpcf7-checkbox label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #2a3033;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.4;
}

.friends-contact-form .wpcf7-checkbox .wpcf7-list-item-label {
    display: inline-flex;
    align-items: center;
    line-height: 1.4;
}

.friends-contact-form .wpcf7-checkbox input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 0;
}

.friends-contact-form .friends-contact-policy-note {
    margin-top: 10px;
    margin-bottom: 0;
    color: #2a3033;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.8;
}

.friends-contact-form .friends-contact-policy-note a {
    color: #f56f81;
    text-decoration: underline;
}

.friends-contact-form .friends-cf7-consent,
.friends-contact-form .wpcf7 form > p:has(.wpcf7-acceptance) {
    margin-top: 36px;
    text-align: center;
}

.friends-contact-form .wpcf7 .wpcf7-acceptance {
    display: block;
    margin: 0;
}

.friends-contact-form .wpcf7 .wpcf7-acceptance .wpcf7-list-item {
    margin: 0;
}

.friends-contact-form .wpcf7 .wpcf7-acceptance label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 0;
    background: transparent;
    color: #2a3033;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.friends-contact-form .wpcf7 .wpcf7-acceptance label::before,
.friends-contact-form .wpcf7 .wpcf7-acceptance label::after {
    display: none;
}

.friends-contact-form .wpcf7 form > p:has(.wpcf7-submit) {
    margin-top: 30px;
    text-align: center;
}

.friends-contact-form .wpcf7-submit {
    display: block;
    margin: 0 auto;
    position: relative;
    min-width: 421px;
    height: 76px;
    border: 0;
    border-radius: 10px;
    background-color: #6faf8c;
    background-image: url("../images/top/arrow_icon.svg");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 30px 30px;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.friends-contact-form .wpcf7-submit:hover,
.friends-contact-form .wpcf7-submit:focus-visible {
    background-color: #5f9f7d;
    transform: translateY(-1px);
}

.friends-contact-form .wpcf7-not-valid-tip,
.friends-contact-form .wpcf7-response-output {
    margin: 8px 0 0;
    color: #c45a73;
    font-size: 14px;
}

.friends-contact-form .wpcf7 form.sent .wpcf7-response-output {
    color: #46b450;
}

.friends-contact-form__fallback {
    margin: 0;
    color: #6f6861;
    font-size: 20px;
}

body.friends-custom-site ul.friends-contact-attention {
    margin-top: 90px;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
    color: #5a4f4a;
    font-size: 15px;
    line-height: 1.9;
}

.friends-contact-attention li {
    position: relative;
    padding-left: 1em;
}

.friends-contact-attention li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
}

.friends-contact-phone {
    margin-top: 76px;
    position: relative;
}

.friends-contact-phone .friends-contact-heading {
    color: #2a3033;
    font-size: 24px;
    font-weight: 500;
}

body.friends-custom-site .friends-contact-phone__info {
    margin-top: 27px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
}

body.friends-custom-site p.friends-contact-phone__number {
    margin-top: 0;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #5a4f4a;
    font-size: 36px;
    font-weight: 500;
    line-height: 1;
}

.friends-contact-phone__icon {
    width: 27.6px;
    height: 27.6px;
    display: block;
}

.friends-contact-phone__number a {
    color: inherit;
    text-decoration: none;
}

body.friends-custom-site p.friends-contact-phone__hours {
    margin-top: 13px;
    margin-left: 0;
    width: 100%;
    text-align: center;
    color: #5a4f4a;
    font-size: 18px;
    line-height: 1.6;
}

.friends-contact-phone__deco {
    position: absolute;
    right: -14px;
    bottom: -124px;
    width: 118.8px;
    height: 155px;
    background: url("../images/subpage/oboto_icon.png") center / contain no-repeat;
}

@media (max-width: 767px) {
    .friends-page--contact {
        padding-bottom: 62px;
    }

    .friends-contact-hero {
        height: 150px;
        min-height: 150px;
    }

    .friends-contact-hero__title {
        font-size: 28px;
        font-weight: 500;
    }

    .friends-contact-content {
        padding-top: 24px;
    }

    body.friends-custom-site .friends-contact-content__inner.friends-container {
        width: min(1150px, calc(100% - 32px));
    }

    .friends-contact-intro {
        text-align: left;
        font-size: 14px;
        font-weight: 500;
        line-height: 24px;
    }

    .friends-contact-notices {
        margin-top: 24px;
        gap: 12px;
    }

    .friends-contact-notice {
        padding: 18px 16px;
    }

    body.friends-custom-site .friends-contact-notice h2 {
        font-size: 18px;
    }

    .friends-contact-notice p {
        font-size: 16px;
        line-height: 1.7;
    }

    body.friends-custom-site p.friends-contact-caution {
        margin-top: 12px;
        font-size: 15px;
        font-weight: 400;
    }

    .friends-contact-mail {
        margin-top: 40px;
    }

    .friends-contact-heading,
    .friends-contact-phone .friends-contact-heading {
        font-size: 18px;
    }

    body.friends-custom-site p.friends-contact-mail__lead {
        margin-top: 14px;
        font-size: 16px;
        font-weight: 400;
    }

    .friends-contact-form-box,
    .friends-contact-form {
        margin-top: 14px;
    }

    .friends-contact-form .friends-cf7-table,
    .friends-contact-form .friends-cf7-table tbody,
    .friends-contact-form .friends-cf7-table tr,
    .friends-contact-form .friends-cf7-table th,
    .friends-contact-form .friends-cf7-table td {
        display: block;
        width: 100%;
    }

    .friends-contact-form .friends-cf7-table th {
        border-bottom: 0;
        padding: 12px;
    }

    .friends-contact-form .friends-cf7-table td {
        border-top: 0;
        padding: 12px;
    }

    .friends-contact-form .friends-cf7-label {
        gap: 10px;
    }

    .friends-contact-form .friends-cf7-badge {
        min-width: 52px;
        padding: 6px 12px;
        font-size: 16px;
    }

    .friends-contact-form .friends-cf7-label-text {
        font-size: 18px;
    }

    .friends-contact-form .wpcf7 input[type="text"],
    .friends-contact-form .wpcf7 input[type="email"],
    .friends-contact-form .wpcf7 input[type="tel"],
    .friends-contact-form .wpcf7 select {
        height: 46px;
        font-size: 16px;
    }

    .friends-contact-form .wpcf7 textarea {
        min-height: 150px;
        font-size: 16px;
    }

    .friends-contact-form .wpcf7-checkbox {
        gap: 8px 14px;
    }

    .friends-contact-form .wpcf7-checkbox input[type="checkbox"] {
        width: 16px;
        height: 16px;
    }

    .friends-contact-form .friends-contact-policy-note {
        font-size: 15px;
    }

    .friends-contact-form .friends-cf7-consent,
    .friends-contact-form .wpcf7 form > p:has(.wpcf7-acceptance) {
        margin-top: 0;
        text-align: center;
    }

    .friends-contact-form .wpcf7 .wpcf7-acceptance label {
        font-size: 16px;
    }

    .friends-contact-form .wpcf7 form > p:has(.wpcf7-submit) {
        margin-top: 18px;
    }

    .friends-contact-form .wpcf7-submit {
        width: 100%;
        min-width: 0;
        height: 56px;
        font-size: 18px;
        background-position: right 14px center;
        background-size: 22px 22px;
    }

    body.friends-custom-site ul.friends-contact-attention {
        margin-top: 22px;
        font-size: 15px;
    }

    .friends-contact-phone {
        margin-top: 48px;
    }

    body.friends-custom-site .friends-contact-phone__info {
        margin-top: 16px;
    }

    body.friends-custom-site p.friends-contact-phone__number {
        margin-top: 0;
        gap: 8px;
        font-size: 28px;
    }

    .friends-contact-phone__icon {
        width: 27.6px;
        height: 27.6px;
    }

    body.friends-custom-site p.friends-contact-phone__hours {
        margin-top: 8px;
        margin-left: 0;
        font-size: 18px;
    }

    .friends-contact-phone__deco {
        right: 0;
        bottom: -54px;
        width: 90px;
        height: 155px;
    }
}
