/**
 * Header Component Styles
 *
 * @package NONKE_SPA
 * @since 1.0.0
 */

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.l-header {
    position: sticky;
    top: 0;
    background: #303c09;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.l-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 20px;
    position: relative;
}

/* ロゴ（中央配置） */
.l-header__logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.c-headLogo {
    display: inline-block;
    font-size: 20px;
    font-weight: 700;
    color: #fff5b8;
    text-decoration: none;
    letter-spacing: 0.05em;
}

/* PCナビゲーション */
.l-header__gnav {
    display: none;
}

/* 多言語切替 */
.l-header__lang {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

/* メニューボタン（右側配置） */
.c-menuBtn {
    position: absolute;
    right: 20px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.c-menuBtn__bar {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff5b8;
    transition: all 0.3s ease;
}

.c-menuBtn__bar:nth-child(1) {
    top: 3px;
}

.c-menuBtn__bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.c-menuBtn__bar:nth-child(3) {
    bottom: 3px;
}

/* メニューが開いた時のアニメーション */
.c-menuBtn.is-open .c-menuBtn__bar:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.c-menuBtn.is-open .c-menuBtn__bar:nth-child(2) {
    opacity: 0;
}

.c-menuBtn.is-open .c-menuBtn__bar:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .l-header__inner {
        height: 35px;
    }
    
    .c-headLogo {
        font-size: 18px;
    }
    
    .l-header__lang {
        left: 15px;
    }
    
    .c-menuBtn {
        right: 15px;
    }
}

@media (min-width: 961px) {
    .l-header__inner {
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .l-header__logo {
        position: static;
        transform: none;
        flex-shrink: 0;
    }
    
    .l-header__gnav {
        display: block;
        flex-grow: 1;
        margin: 0 40px;
        position: relative;
        z-index: 1;
    }
    
    .l-header__lang {
        position: static;
        transform: none;
        margin-left: auto;
        margin-right: 20px;
    }
    
    .c-gnav {
        display: flex;
        justify-content: center;
        gap: 20px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    
    .c-gnav a {
        color: #fff5b8;
        text-decoration: none;
        font-weight: 500;
        transition: color 0.3s ease;
        display: inline-block;
        padding: 5px 10px;
        position: relative;
        z-index: 10;
    }
    
    .c-gnav a:hover {
        color: #fff;
    }
    
    .c-menuBtn {
        display: none;
    }
}