@charset "UTF-8";

/* ========================================
   共通ヘッダー
======================================== */

header.site-header,
header.site-header * {
    box-sizing: border-box;
}

header.site-header {
    position: relative;
    inset: auto;
    z-index: 100;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 18px 3%;

    border: 0;
    border-bottom: 1px solid #edf0f4;
    background: #fff;
    box-shadow: none;

    color: #354b70;
    font-family:
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
    line-height: 1.7;
    text-align: left;
}

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

header.site-header a {
    color: #354b70;
    text-decoration: none;
}

header.site-header a:focus-visible,
header.site-header summary:focus-visible {
    outline: 3px solid #354b70;
    outline-offset: 5px;
}

/* ロゴ・事務所名 */

header.site-header .brand {
    position: static;
    display: flex;
    flex: 0 1 auto;
    align-items: center;
    gap: 12px;

    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    background: transparent;
}

header.site-header .brand img {
    display: block;
    flex: 0 0 auto;
    width: 43px;
    max-width: 100%;
    height: auto;
    margin: 0;
}

header.site-header .brand-name {
    display: block;
    color: #354b70;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.04em;
}

header.site-header .brand-name small {
    display: block;
    margin-top: 3px;
    color: inherit;
    font-size: 8px;
    font-weight: 400;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* PCナビ */

header.site-header nav.desktop-nav {
    position: static;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;

    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    background: transparent;

    font-size: 13px;
    line-height: 1.5;
    letter-spacing: 0.02em;
}

header.site-header .desktop-nav>a {
    position: relative;
    display: inline-flex;
    align-items: center;

    width: auto;
    min-height: 44px;
    margin: 0;
    padding: 8px 0;

    color: #354b70;
    font-size: inherit;
    font-weight: 400;
    white-space: nowrap;
}

header.site-header .desktop-nav>a:not(.nav-contact)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 1px;
    background: #7189bb;

    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

header.site-header .desktop-nav>a:not(.nav-contact):hover::after,
header.site-header .desktop-nav>a:not(.nav-contact):focus-visible::after,
header.site-header .desktop-nav>a[aria-current="page"]::after {
    transform: scaleX(1);
}

header.site-header .desktop-nav>.nav-contact {
    gap: 14px;
    padding: 13px 18px;
    border: 1px solid #354b70;
    background: #354b70;
    color: #fff;
}

header.site-header .desktop-nav>.nav-contact:hover {
    background: #263c5e;
}

/* スマートフォン用メニュー */

header.site-header .mobile-menu {
    position: static;
    display: none;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

header.site-header .mobile-menu summary {
    display: block;
    margin: 0;
    padding: 9px 12px;
    border: 1px solid #cbd3df;
    background: #fff;
    color: #354b70;

    font-size: 13px;
    line-height: 1.7;
    list-style: none;
    cursor: pointer;
}

header.site-header .mobile-menu summary::-webkit-details-marker {
    display: none;
}

header.site-header .mobile-menu[open] summary {
    background: #eaf0f6;
}

header.site-header .mobile-menu nav {
    position: absolute;
    top: 100%;
    right: 20px;
    bottom: auto;
    left: auto;

    display: block;
    width: min(340px, calc(100vw - 40px));
    height: auto;
    max-height: 75vh;
    margin: 0;
    padding: 20px;
    overflow-y: auto;

    border: 1px solid #cbd3df;
    background: #fff;
    box-shadow: 0 8px 20px rgb(53 75 112 / 8%);
}

header.site-header .mobile-menu:not([open]) nav {
    display: none;
}

header.site-header .mobile-menu nav a {
    display: block;
    width: auto;
    margin: 0;
    padding: 10px;
    color: #354b70;
    font-size: 15px;
    line-height: 1.8;
}

header.site-header .mobile-menu nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}

header.site-header .mobile-menu nav .nav-contact {
    margin-top: 12px;
    padding: 12px 16px;
    background: #354b70;
    color: #fff;
}

/* メニュー切り替え */

@media screen and (max-width: 1240px) {
    header.site-header nav.desktop-nav {
        display: none;
    }

    header.site-header .mobile-menu {
        display: block;
    }
}

/* スマートフォン */

@media screen and (max-width: 768px) {
    header.site-header {
        gap: 12px;
        padding: 14px 18px;
    }

    header.site-header .brand {
        gap: 9px;
    }

    header.site-header .brand img {
        width: 34px;
    }

    header.site-header .brand-name {
        font-size: 12px;
    }

    header.site-header .brand-name small {
        max-width: 165px;
        font-size: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    header.site-header .desktop-nav>a::after {
        transition: none;
    }
}

/* ========================================
   共通フッター
======================================== */

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

footer.site-footer {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 48px 4%;
    border-top: 1px solid #edf0f4;
    background: #fff;
    background-image: none;
    color: #354b70;
    text-align: left;
    font-family:
        "Yu Gothic",
        "Hiragino Kaku Gothic ProN",
        Meiryo,
        sans-serif;
}

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

/* ロゴ */

footer.site-footer .footer-brand {
    position: static;
    display: flex;
    align-items: center;
    gap: 15px;
    width: fit-content;
    max-width: 100%;
    margin: 0;
    padding: 0;
    color: #354b70;
    text-decoration: none;
}

footer.site-footer .footer-brand img {
    display: block;
    flex: 0 0 auto;
    width: 54px;
    height: auto;
    margin: 0;
}

footer.site-footer .footer-brand>span {
    display: block;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.06em;
}

footer.site-footer .footer-brand small {
    position: static;
    display: block;
    margin: 4px 0 0;
    padding: 0;
    color: inherit;
    font-size: 9px;
    line-height: 1.7;
    letter-spacing: 0.04em;
    text-align: left;
}

/* リンク */

footer.site-footer nav.footer-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 16px 28px;
    width: auto;
    margin: 32px 0;
    padding: 0;
    background: transparent;
}

footer.site-footer .footer-nav a {
    display: inline-block;
    margin: 0;
    padding: 5px 0;
    color: #354b70;
    font-size: 12px;
    line-height: 1.8;
    text-decoration: none;
}

footer.site-footer .footer-nav a:hover,
footer.site-footer .footer-nav a[aria-current="page"] {
    text-decoration: underline;
    text-underline-offset: 5px;
}

footer.site-footer a:focus-visible {
    outline: 2px solid #354b70;
    outline-offset: 5px;
}

/* コピーライト */

footer.site-footer>.footer-copyright {
    position: static;
    display: block;
    width: auto;
    margin: 0;
    padding: 0;
    background: transparent;
    color: #354b70;
    font-size: 11px;
    line-height: 1.8;
    text-align: left;
}

/* スマートフォン */

@media screen and (max-width: 768px) {
    footer.site-footer {
        padding: 36px 20px;
    }

    footer.site-footer .footer-brand {
        gap: 10px;
    }

    footer.site-footer .footer-brand img {
        width: 34px;
    }

    footer.site-footer .footer-brand>span {
        font-size: 12px;
    }

    footer.site-footer .footer-brand small {
        font-size: 8px;
    }

    footer.site-footer nav.footer-nav {
        gap: 12px 20px;
        margin: 26px 0;
    }
}