/* ============================
   ヘッダー
============================ */
.l-header {
    position: fixed;
    top: 4%;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 9999;
    width: clamp(31.375rem, 20.058rem + 48.28vw, 78rem);
    height: clamp(4.5rem, 3.955rem + 2.32vw, 6.75rem);
    overflow: visible;
    background: transparent;
}

/* ヘッダーぼかし背景 */
.l-header__bg {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    overflow: hidden;
    z-index: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.l-header__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, .75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: inset 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* 枠線 */
.l-header__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .95);
    pointer-events: none;
}

.l-header__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 clamp(1rem, 2vw, 2.5rem);
}

.l-header__logo {
    flex-shrink: 0;
    width: clamp(1.875rem, 1.42rem + 1.94vw, 3.75rem);
    margin-left: clamp(0.5rem, 0.363rem + 0.58vw, 1.063rem);
}


/* ============================
   PC用グローバルナビ
============================ */
.nav-pc {
    width: clamp(23rem, 14.687rem + 35.47vw, 57.25rem);
    margin-right: clamp(2.25rem, 1.431rem + 3.5vw, 5.625rem);
}

.nav-pc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.nav-pc__item {
    position: relative;
}

.nav-pc__item--has-submenu::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 3.4vw;
    background: transparent;
}

.nav-pc__link {
    color: #414141;
    text-align: center;
    font-size: clamp(0.625rem, 0.413rem + 0.91vw, 1.5rem);
    font-weight: 400;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s ease;
    font-family: 'ShipporiGothic';
}

.nav-pc__link:hover {
    color: #3172FF;
    opacity: 1;
    transition: all 0.2s ease;
}

/* ホバー時:上から下へふわっと */
.nav-pc__item:hover .nav-pc__submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* サブメニュー */
.nav-pc__submenu {
    position: absolute;
    top: clamp(1.25rem, 0.871rem + 1.62vw, 2.813rem);
    width: max-content;
    left: 0;
    min-width: 6.25rem;
    max-width: 16rem;
    background: #ffffffb7;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    list-style: none;
    padding: clamp(1.25rem, 1.022rem + 0.97vw, 2.188rem);
    padding-right: clamp(1.875rem, 1.496rem + 1.62vw, 3.438rem);
    margin: 0;
    z-index: 1000;
    border-radius: 16px;

    /* 最初は隠す */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: all 0.3s ease;
}


.nav-pc__submenu li:nth-child(n+2) {
    margin-top: 20px;
}

.nav-pc__submenu li a {
    display: block;
    color: #414141;
    font-size: clamp(0.625rem, 0.473rem + 0.65vw, 1.25rem);
    text-decoration: none;
    position: relative;
    text-align: left;
}

.nav-pc__submenu li a:hover {
    color: #3172FF;
    opacity: 1;
    transition: all 0.3s ease;
}


/* ============================
   SP用メニューを非表示
============================ */
.nav-sp-toggle {
    display: none;
}

.nav-sp {
    display: none;
}


/* ============================
   SP(768px以下)
============================ */
@media screen and (max-width: 768px) {
    .l-header {
        top: 4%;
        width: calc(100% - 2.5rem);
    }

    .l-header__inner {
        z-index: 150;
    }

    .l-header__bg {
        display: none;
    }

    .l-header__logo {
        display: none;
    }

    /* PC用グローバルナビはSPで非表示 */
    .nav-pc {
        display: none;
    }

    /* ▼ ハンバーガーボタン */
    .nav-sp-toggle {
        display: block;
        position: relative;
        cursor: pointer;
        width: 40px;
        height: 32px;
        background: none;
        border: none;
        z-index: 200;
        margin-left: auto;
    }

    .nav-sp-toggle span {
        display: block;
        position: absolute;
        width: 100%;
        height: 2px;
        left: 0;
        background-color: #414141;
        transition: all 0.4s;
    }

    .nav-sp-toggle, .nav-sp-toggle span {
        display: inline-block;
        transition: all .5s;
        box-sizing: border-box;
    }

    .nav-sp-toggle span:nth-of-type(1) {
        top: 0;
    }
    .nav-sp-toggle span:nth-of-type(2) {
        top: 50%;
    }
    .nav-sp-toggle span:nth-of-type(3) {
        bottom: 0;
    }

    /* 開いている間:3本線→×に変形 */
    .nav-sp-toggle.is-active span:nth-of-type(1) {
        top: 50%;
        transform: translateY(-50%) rotate(45deg);
    }
    .nav-sp-toggle.is-active span:nth-of-type(2) {
        opacity: 0;
    }
    .nav-sp-toggle.is-active span:nth-of-type(3) {
        bottom: 50%;
        transform: translateY(50%) rotate(-45deg);
    }

    /* ドロワー本体 */
    .nav-sp {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: #FFF;
        margin: 0;
        padding: 100px 40px 60px 40px;
        box-sizing: border-box;
        z-index: 100;

        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
        overflow-y: auto;

        align-items: center;
    }

    .nav-sp.is-open {
        opacity: 1;
        visibility: visible;
    }

    .nav-sp__close {
        display: block;
        position: absolute;
        top: 24px;
        right: 24px;
        width: 32px;
        height: 32px;
        background: none;
        border: none;
        cursor: pointer;
    }

    .nav-sp__instagram-logo {
        display: block;
        width: 29px;
        margin: 70px auto 40px auto;
    }

    .nav-sp__logo {
        display: block;
        width: 160px;
        margin: 0 auto 24px auto;
    }

    .nav-sp__list {
        list-style: none;
        margin: 33px 0 0 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content:center;
        gap: 60px;
    }

    .nav-sp__item {
        position: relative;
    }

    .nav-sp__link {
        display: block;
        width: 100%;
        text-decoration: none;
        color: #050505;
        font-size: 18px;
        letter-spacing: 0.05em;
        text-align: center;
    }

    /* 見出し行がタップ対象(サブメニューを持つ項目) */
    .nav-sp__head {
        display: flex;
        align-items: center;
        justify-content: center;

        width: 100%;
        background: none;
        border: none;
        padding: 0;
        margin: 0;
        font: inherit;
        cursor: pointer;
    }

    /* ▼ アコーディオン折りたたみ用ラッパー */
    .nav-sp__submenu-wrap {
        display: grid;
        grid-template-rows: 0fr;
        opacity: 0;
        transition: grid-template-rows 0.35s ease, opacity 0.35s ease;
    }

    .nav-sp__submenu-wrap > .nav-sp__submenu {
        min-height: 0;
        overflow: hidden;
    }

    .nav-sp__submenu-wrap.is-open {
        grid-template-rows: 1fr;
        opacity: 1;
        margin-top: 16px;
    }

    .nav-sp__submenu {
        list-style: none;
        padding: 0;
        margin: 0;
        text-align: center;
    }

    .nav-sp__submenu li {
        padding: 12px 0;
    }

    .nav-sp__submenu li a {
        color: #858585;
        font-size: 14px;
        text-decoration: none;
    }
}