/*
 * =========================================
 * 法人全般 共通ヘッダー
 * /association/songen-include/songen-header.css
 * =========================================
 */


/* =========================================
   HEADER
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;

    width: 100%;
    height: 96px;

    border-bottom: 1px solid var(--color-line);

    background: rgba(251, 249, 252, 0.92);
    backdrop-filter: blur(15px);

    transition:
        height 0.3s ease,
        background 0.3s ease,
        box-shadow 0.3s ease;
}

.site-header.is-scrolled {
    height: 78px;

    background: rgba(251, 249, 252, 0.98);

    box-shadow:
        0 8px 26px rgba(56, 44, 63, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: min(calc(100% - 56px), 1440px);
    height: 100%;

    margin-inline: auto;
}


/* =========================================
   LOGO
========================================= */

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;

    text-decoration: none;
}

.site-logo__text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.site-logo__name {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.site-logo__sub {
    color: var(--color-lavender);

    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "游ゴシック",
        sans-serif;

    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}


/* =========================================
   GLOBAL NAVIGATION
========================================= */

.global-nav {
    height: 100%;
}

.global-nav__list {
    display: flex;
    align-items: center;

    gap: clamp(18px, 1.8vw, 32px);

    height: 100%;
    margin: 0;
    padding: 0;

    list-style: none;
}

.global-nav__link {
    position: relative;

    display: flex;
    align-items: center;

    height: 100%;

    color: var(--color-text-soft, #625b65);

    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "游ゴシック",
        sans-serif;

    font-size: 14px;
    letter-spacing: 0.08em;

    text-decoration: none;

    transition: color 0.3s ease;
}

.global-nav__link::after {
    position: absolute;
    right: 0;
    bottom: 23px;
    left: 0;

    width: 0;
    height: 1px;

    margin-inline: auto;

    content: "";

    background: var(--color-lavender);

    transition: width 0.3s ease;
}

.global-nav__link:hover,
.global-nav__link:focus-visible,
.global-nav__link[aria-current="page"] {
    color: var(--color-lavender-deep, #62536a);
}

.global-nav__link:hover::after,
.global-nav__link:focus-visible::after,
.global-nav__link[aria-current="page"]::after {
    width: 100%;
}

.global-nav__mobile-contact {
    display: none;
}

:root {
    --color-line: rgba(98, 83, 106, 0.16);
    --color-text-soft: #625b65;
    --color-lavender: #9885a3;
    --color-lavender-deep: #62536a;
}
/* =========================================
   HEADER CONTACT
========================================= */

.header-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;

    min-width: 165px;
    min-height: 52px;

    padding: 12px 22px;

    border: 1px solid var(--color-lavender-deep, #62536a);

    color: #ffffff;
    background: var(--color-lavender-deep, #62536a);

    font-family:
        "Noto Sans JP",
        "Yu Gothic",
        "游ゴシック",
        sans-serif;

    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.11em;

    text-decoration: none;

    transition:
        color 0.3s ease,
        background 0.3s ease;
}

.header-contact:hover,
.header-contact:focus-visible {
    color: var(--color-lavender-deep, #62536a);
    background: transparent;
}


/* =========================================
   MENU BUTTON
========================================= */

.menu-button {
    position: relative;

    display: none;

    width: 46px;
    height: 46px;

    padding: 0;

    border: 1px solid rgba(98, 83, 106, 0.4);

    background: transparent;

    cursor: pointer;
}

.menu-button span {
    position: absolute;
    left: 11px;

    display: block;

    width: 22px;
    height: 1px;

    background: var(--color-lavender-deep, #62536a);

    transition:
        top 0.3s ease,
        opacity 0.3s ease,
        transform 0.3s ease;
}

.menu-button span:nth-child(1) {
    top: 15px;
}

.menu-button span:nth-child(2) {
    top: 22px;
}

.menu-button span:nth-child(3) {
    top: 29px;
}

.menu-button.is-active span:nth-child(1) {
    top: 22px;
    transform: rotate(45deg);
}

.menu-button.is-active span:nth-child(2) {
    opacity: 0;
}

.menu-button.is-active span:nth-child(3) {
    top: 22px;
    transform: rotate(-45deg);
}


/* =========================================
   TABLET / MOBILE NAVIGATION
========================================= */

@media (max-width: 900px) {

    .site-header,
    .site-header.is-scrolled {
        height: 78px;
    }

    .header-inner {
        width: min(
            calc(100% - 32px),
            1440px
        );
    }

    .global-nav {
        position: fixed;
        top: 78px;
        right: 0;
        left: 0;

        height: auto;
        max-height: 0;

        overflow: hidden;

        border-bottom: 1px solid transparent;

        background: rgba(251, 249, 252, 0.98);

        opacity: 0;
        visibility: hidden;

        transition:
            max-height 0.35s ease,
            opacity 0.25s ease,
            visibility 0.25s ease,
            border-color 0.25s ease;
    }

    .global-nav.is-open {
        max-height: 560px;

        border-bottom-color: var(--color-line);

        opacity: 1;
        visibility: visible;
    }

    .global-nav__list {
        display: block;

        width: min(
            calc(100% - 32px),
            1180px
        );

        height: auto;

        margin-inline: auto;

        padding: 12px 0 18px;
    }

    .global-nav__link {
        display: flex;
        align-items: center;

        min-height: 52px;
        height: auto;

        border-bottom: 1px solid var(--color-line);

        font-size: 12px;
    }

    .global-nav__link::after {
        display: none;
    }

    .menu-button {
        display: block;
        flex-shrink: 0;
    }

    .header-contact {
        margin-left: auto;
        margin-right: 12px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .site-logo__name {
        font-size: 11px;
        line-height: 1.5;
        letter-spacing: 0.06em;
    }

    .site-logo__sub {
        display: none;
    }

    .header-contact {
        display: none;
    }

    .global-nav__mobile-contact {
        display: list-item;
    }

    .menu-button {
        width: 42px;
        height: 42px;

        margin-left: auto;
    }

    .menu-button span {
        left: 9px;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 420px) {

    .header-inner {
        width: calc(100% - 24px);
    }

    .site-logo__name {
        font-size: 10px;
        letter-spacing: 0.035em;
    }

    .menu-button {
        width: 40px;
        height: 40px;
    }

    .menu-button span {
        left: 8px;
    }
}