/*-------------------------------------------
header
-------------------------------------------*/
/* ヘッダー全体 */
.header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: transform 0.3s ease;
    will-change: transform;
}

.header.is-fixed {
	position: fixed;
    background: var(--color_white);
    box-shadow: 0 6px 9px rgba(51, 51, 51, 0.08);
}

/* スクロールで隠す */
.header.hide {
    transform: translateY(-100%);
}

/* スクロールで出す */
.header.show {
    transform: translateY(0);
}

.header.hide .header-inner,
.header.show .header-inner {
    padding: 20px 60px;
}

.header.hide .header-logo,
.header.show .header-logo {
    width: 60px;
}

.header.hide .global-menu,
.header.show .global-menu {
    font-size: 2rem;
}


/* 横並びコンテナ */
.header-inner {
    padding: 40px 60px;
    display: flex;
    align-items: center;
    gap: 80px;
    position: relative;
}

/* ロゴ */
.header-logo {
    width: 100px;
    flex-shrink: 0;
}

.header-logo .header-logo-text {
    display: none;
}


@media (max-width: 1224px) {
    /* 横並びコンテナ */
    .header-inner {
        padding: 30px 40px;
        gap: 30px;
    }

    /* ロゴ */
    .header-logo {
        width: 80px;
    }
}

@media (max-width: 1024px) {
    /* 横並びコンテナ */
    .header-inner {
        justify-content: space-between;
        padding: 30px 18px;
    }

    /* ロゴをテキスト表示 */
    .header-logo {
        width: auto;
    }

    .header-logo img {
        display: none;
    }

    .header-logo .header-logo-text {
        display: inline;
        font-size: 1.6rem;
        white-space: nowrap;
    }

    .header.hide .header-inner,
    .header.show .header-inner {
        padding: 20px 24px;
    }
}



/* ========================
.global-nav
======================== */
.global-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.global-menu {
    display: flex;
    gap: 70px;
    font-size: 2.4rem;
    text-align: center;
}

.global-menu a {
    position: relative;
    padding-bottom: 12px;
}

.global-menu a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--color_brand-red);
    transform: translateX(-50%);
    transition: width 0.12s cubic-bezier(0.4, 0, 0.2, 1);
}

.global-menu a:hover::after,
.global-menu-item.is-current a::after,
.global-menu a:focus-visible::after {
    width: 56px;
}

@media (max-width: 1224px) {
    .global-menu {
        gap: 50px;
        font-size: 2.2rem;
    }

    .global-menu a {
        padding-bottom: 8px;
    }

    .global-menu a:hover::after,
    .global-menu-item.is-current a::after,
    .global-menu a:focus-visible::after {
        width: 46px;
        left: 0;
        transform: translateX(0%);
    }
}

@media (max-width: 1024px) {
    .global-nav {
        display: block;
    }
    .global-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        font-size: 2.4rem;
    }
}



/* ========================
.hamburger
======================== */
.hamburger-btn {
    display: none;
}

@media (max-width: 1024px) {
    .hamburger-btn {
        display: block;
        position: relative;
        z-index: 1100;
        background: none;
        border: none;
        font-size: 16px;
        font-weight: bold;
        cursor: pointer;
    }

    .hamburger-btn span::before {
        content: '';
        display: inline-block;
        width: 18px;
        height: 2px;
        margin-right: 6px;
        vertical-align: middle;
    }

    .hamburger-btn.open .hamburger-btn span::before {
        content: '';
    }

    /* メニューはフルスクリーン・縦並び */
    .hamburger-menu {
        position: fixed;
        background: rgba(0, 0, 0, 0.95);
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        opacity: 0;
        visibility: hidden;
        transform:translateY(-20px);
        transition: opacity .3s, transform .3s, visibility .3s;
        padding: 88px 20px 40px;
        z-index: 999;
        width: 100%;
        height: 100vh;
        overflow-y: auto;
    }

    /* ハンバーガー開いたとき */
    .hamburger-menu.open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
}



/* ========================
.lang-nav
======================== */
.lang-nav {
    position: absolute;
    top: 0;
    right: 0;
    .l-footer & {
        position: static;
    }
}

.lang-list {
    display: flex;
    gap: 2px;
    background: var(--color_brand-red);
    color: #fff;
    font-size: 1.6rem;
    padding: 0 16px;
    .l-footer & {
        background: none;
        color: currentColor;
        font-size: 2rem;
        padding: 0;
    }
}

.lang-item+.lang-item::before {
    content: "/";
}

.lang-link {
    padding: 6px 4px 10px;
    .l-footer & {
        padding: 6px 4px;
    }
}

@media (max-width: 1024px) {
    .lang-nav {
        position: relative;
        margin-top: 30px;
        .global-menu-item & {
            margin-top: 0;
        }
    }

    .lang-list {
        gap: 4px;
        font-size: 2rem;
    }

    .lang-link {
        padding: 6px 4px 10px;
    }
}


/* ========================
.pc-nav .sp-nav
======================== */
/* PC */
.pc-nav {
	display: flex;
}

.sp-nav {
	display: none;
}

/* SP */
@media (max-width:1024px){
    .pc-nav {
        display: none;
    }

    .sp-nav {
        display: block;
    }
}