@charset "UTF-8";

/* ========================================
   全ページ共通フッター
   新しいフッター内に限定して適用
======================================== */

footer.site-footer.site-footer-v2 {
    display: block;
    position: relative;
    inset: auto;
    float: none;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 65px 0 25px;
    border: 0;
    border-top: 1px solid #cbd3df;
    border-radius: 0;
    background: #f7f8fa;
    color: #354b70;
    box-shadow: none;
    text-align: left;
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN",
        "Meiryo", sans-serif;
    font-size: 14px;
    line-height: 1.8;
    letter-spacing: normal;
}

footer.site-footer-v2,
footer.site-footer-v2 *,
footer.site-footer-v2 *::before,
footer.site-footer-v2 *::after {
    box-sizing: border-box;
}

footer.site-footer-v2::before,
footer.site-footer-v2::after {
    content: none;
}

footer.site-footer-v2 p,
footer.site-footer-v2 address {
    margin: 0;
}

footer.site-footer-v2 a {
    position: relative;
    color: #354b70;
    text-decoration: none;
    overflow-wrap: anywhere;
}

footer.site-footer-v2 a:focus-visible {
    outline: 2px solid #7189bb;
    outline-offset: 4px;
}

footer.site-footer-v2 .sf-inner {
    width: min(1240px, calc(100% - 64px));
    margin-inline: auto;
}

footer.site-footer-v2 .sf-main {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 2.05fr);
    align-items: start;
    gap: 55px;
}

footer.site-footer-v2 .sf-office {
    min-width: 0;
}

/* ロゴ */

footer.site-footer-v2 .sf-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    width: fit-content;
    max-width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
}

footer.site-footer-v2 .sf-brand img {
    display: block;
    position: static;
    flex: 0 0 43px;
    width: 43px;
    max-width: 43px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 0;
    object-fit: contain;
}

footer.site-footer-v2 .sf-brand-text {
    display: block;
    min-width: 0;
}

footer.site-footer-v2 .sf-brand-name {
    display: block;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

footer.site-footer-v2 .sf-brand-english {
    display: block;
    margin-top: 5px;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.8;
    letter-spacing: 0.035em;
}

/* 所在地・連絡先 */

footer.site-footer-v2 .sf-address {
    display: block;
    margin-top: 28px;
    color: #535e6e;
    font-size: 13px;
    font-style: normal;
    line-height: 2;
}

footer.site-footer-v2 .sf-access-link {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    min-height: 44px;
    margin-top: 8px;
    font-size: 12px;
}

footer.site-footer-v2 .sf-phone {
    margin-top: 25px;
}

footer.site-footer-v2 .sf-phone-label {
    display: block;
    font-size: 11px;
    line-height: 1.8;
}

footer.site-footer-v2 .sf-phone>a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 5px;
    font-family: Arial, sans-serif;
    font-size: clamp(23px, 2.1vw, 28px);
    line-height: 1.5;
    letter-spacing: 0.035em;
}

footer.site-footer-v2 .sf-phone>p {
    margin-top: 4px;
    color: #535e6e;
    font-size: 10px;
    line-height: 1.8;
}

footer.site-footer-v2 .sf-contact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    width: 100%;
    max-width: 300px;
    min-height: 54px;
    margin-top: 25px;
    padding: 15px 20px;
    border: 1px solid #354b70;
    background: #354b70;
    color: #fff;
    font-size: 14px;
    line-height: 1.8;
    transition: background 220ms ease, border-color 220ms ease;
}

footer.site-footer-v2 .sf-contact>span,
footer.site-footer-v2 .sf-access-link>span {
    flex-shrink: 0;
    transition: transform 220ms ease;
}

/* 3列のページ一覧 */

footer.site-footer-v2 .sf-navigation {
    display: grid;
    position: static;
    grid-template-columns:
        minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

footer.site-footer-v2 .sf-group {
    min-width: 0;
}

footer.site-footer-v2 .sf-group-title {
    display: block;
    margin: 0 0 16px;
    padding-bottom: 15px;
    border-bottom: 1px solid #cbd3df;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.8;
}

footer.site-footer-v2 .sf-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

footer.site-footer-v2 .sf-links>a {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin: 0;
    padding: 9px 0;
    border: 0;
    background: transparent;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.8;
}

footer.site-footer-v2 .sf-links>.sf-medical-link {
    font-weight: 600;
}

/* 最下段 */

footer.site-footer-v2 .sf-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px 30px;
    margin-top: 45px;
    padding-top: 20px;
    border-top: 1px solid #cbd3df;
}

footer.site-footer-v2 .sf-bottom-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 25px;
}

footer.site-footer-v2 .sf-bottom-links>a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    font-size: 11px;
}

footer.site-footer-v2 .sf-copyright {
    display: block;
    position: static;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #535e6e;
    font-size: 10px;
    line-height: 1.9;
    text-align: left;
}

/* 操作時だけ控えめに動かす */

@media (hover: hover) {

    footer.site-footer-v2 .sf-links>a:hover,
    footer.site-footer-v2 .sf-bottom-links>a:hover,
    footer.site-footer-v2 .sf-access-link:hover {
        text-decoration: underline;
        text-underline-offset: 5px;
    }

    footer.site-footer-v2 .sf-contact:hover {
        background: #49638d;
        border-color: #49638d;
    }

    footer.site-footer-v2 .sf-contact:hover>span,
    footer.site-footer-v2 .sf-access-link:hover>span {
        transform: translateX(4px);
    }
}

/* 中間幅：事務所情報を上、リンク3列を下へ */

@media (max-width: 1100px) {
    footer.site-footer-v2 .sf-main {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    footer.site-footer-v2 .sf-navigation {
        gap: 35px;
    }

    footer.site-footer-v2 .sf-brand-name {
        font-size: 17px;
    }
}

/* SP：すべて縦並び。リンクを折りたたまない */

@media (max-width: 600px) {
    footer.site-footer.site-footer-v2 {
        padding: 40px 0 22px;
    }

    footer.site-footer-v2 .sf-inner {
        width: calc(100% - 40px);
    }

    footer.site-footer-v2 .sf-main {
        gap: 38px;
    }

    footer.site-footer-v2 .sf-brand {
        gap: 12px;
    }

    footer.site-footer-v2 .sf-brand img {
        flex-basis: 37px;
        width: 37px;
        max-width: 37px;
    }

    footer.site-footer-v2 .sf-brand-name {
        font-size: 15px;
        letter-spacing: 0;
    }

    footer.site-footer-v2 .sf-brand-english {
        font-size: 7px;
        letter-spacing: 0;
    }

    footer.site-footer-v2 .sf-address {
        margin-top: 24px;
        font-size: 13px;
    }

    footer.site-footer-v2 .sf-phone>a {
        font-size: 27px;
    }

    footer.site-footer-v2 .sf-contact {
        max-width: none;
        min-height: 56px;
    }

    footer.site-footer-v2 .sf-navigation {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    footer.site-footer-v2 .sf-group-title {
        margin-bottom: 8px;
        padding-bottom: 13px;
        font-size: 15px;
    }

    footer.site-footer-v2 .sf-links>a {
        min-height: 48px;
        padding-block: 11px;
        font-size: 14px;
    }

    footer.site-footer-v2 .sf-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-top: 30px;
        padding-top: 15px;
    }

    footer.site-footer-v2 .sf-bottom-links {
        gap: 8px 22px;
    }

    footer.site-footer-v2 .sf-bottom-links>a {
        min-height: 48px;
        font-size: 12px;
    }

    footer.site-footer-v2 .sf-copyright {
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    footer.site-footer-v2 .sf-contact,
    footer.site-footer-v2 .sf-contact>span,
    footer.site-footer-v2 .sf-access-link>span {
        transition: none;
    }
}

/* 画面下の固定お問い合わせ */
nav.quick-contact,
nav.quick-contact * {
    box-sizing: border-box;
}

nav.quick-contact {
    position: fixed;
    inset: auto 24px 20px auto;
    z-index: 300;
    display: grid;
    grid-template-columns: 1.25fr 1fr 1.2fr;
    width: 480px;
    max-width: calc(100% - 48px);
    margin: 0;
    padding: 0;
    border: 1px solid #cbd3df;
    border-radius: 0;
    background: #fff;
    box-shadow: 0 4px 24px rgb(30 46 70 / 12%);
    font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
}

nav.quick-contact>a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    min-height: 68px;
    margin: 0;
    padding: 10px 8px;
    background: #fff;
    color: #354b70;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms ease;
}

nav.quick-contact>a+a {
    border-left: 1px solid #cbd3df;
}

nav.quick-contact .quick-contact-number {
    font-family: Arial, sans-serif;
    font-size: 13px;
    letter-spacing: 0.02em;
}

nav.quick-contact .quick-contact-sub {
    font-size: 10px;
    font-weight: 400;
}

nav.quick-contact>a.quick-contact-mail {
    background: #354b70;
    color: #fff;
}

nav.quick-contact>a span {
    color: inherit;
}

nav.quick-contact>a:focus-visible {
    outline: 2px solid #7189bb;
    outline-offset: -4px;
}

@media (hover: hover) {
    nav.quick-contact>a:hover {
        background: #eaf0f6;
    }

    nav.quick-contact>a.quick-contact-mail:hover {
        background: #49638d;
    }
}

/* 最下部までスクロールした際、固定ボタンと重ならない余白 */
body:has(> .quick-contact)::after {
    content: "";
    display: block;
    height: 108px;
}

/* 既存の「ページ上部へ」ボタンを固定バーより上に */
body:has(> .quick-contact) #page-top {
    bottom: 108px;
}

/* SP・タブレット：画面下いっぱいに表示 */
@media (max-width: 1100px) {
    nav.quick-contact {
        inset: auto 0 0;
        width: 100%;
        max-width: none;
        grid-template-columns: 1.1fr 0.85fr 1.15fr;
        padding-bottom: env(safe-area-inset-bottom);
        border: 0;
        border-top: 1px solid #cbd3df;
    }

    nav.quick-contact>a {
        min-height: 64px;
        padding: 9px 5px;
        font-size: 13px;
        letter-spacing: 0;
    }

    nav.quick-contact .quick-contact-number {
        font-size: 11px;
    }

    body:has(> .quick-contact)::after {
        height: calc(65px + env(safe-area-inset-bottom));
    }

    body:has(> .quick-contact) #page-top {
        bottom: calc(80px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    nav.quick-contact>a {
        transition: none;
    }
}

/* 共通：ページ上部へ戻る */
button.site-back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 301;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 52px;
    height: 56px;
    margin: 0;
    padding: 6px;
    border: 1px solid #cbd3df;
    border-radius: 0;
    background: #fff;
    color: #354b70;
    box-shadow: 0 3px 16px rgb(30 46 70 / 10%);
    font-family: Arial, sans-serif;
    line-height: 1;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease;
}

button.site-back-top[hidden] {
    display: none;
}

button.site-back-top span:first-child {
    font-size: 23px;
}

button.site-back-top span:last-child {
    font-size: 9px;
    letter-spacing: 0.12em;
}

/* 固定お問い合わせバーがあるページ */
body:has(> .quick-contact) button.site-back-top {
    bottom: 104px;
}

button.site-back-top:focus-visible {
    outline: 2px solid #7189bb;
    outline-offset: 3px;
}

@media (hover: hover) {
    button.site-back-top:hover {
        background: #354b70;
        color: #fff;
    }
}

@media (max-width: 1100px) {
    button.site-back-top {
        right: 12px;
        bottom: calc(16px + env(safe-area-inset-bottom));
        width: 46px;
        height: 48px;
    }

    body:has(> .quick-contact) button.site-back-top {
        bottom: calc(78px + env(safe-area-inset-bottom));
    }
}

@media (prefers-reduced-motion: reduce) {
    button.site-back-top {
        transition: none;
    }
}