/* header.css - なっちの最新スタイルにアクティブ判定を追加 */

.global-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px; /* ナッチのリクエスト：60px */
    z-index: 99999;
    background: rgba(0, 0, 0, 0.6) !important; 
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(230, 180, 34, 0.2);
    display: flex;
    align-items: center;
}

.header-inner {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ロゴ周り：なっちのリクエストによる大きく設定 */
.header-logo-group .logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.h-mark { 
    height: 42px; /* 42px */
    width: auto; 
}
.h-logo-text { 
    height: 28px; /* 28px */
    width: auto; 
}

/* PCナビ */
.pc-nav .nav-list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-list a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: 0.3s;
}

.jp-txt {
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    font-family: 'Noto Sans JP', sans-serif;
    transition: color 0.3s;
}

.nav-line {
    width: 0;
    height: 1px;
    background: #e6b422;
    margin: 4px 0;
    transition: 0.4s;
}

.kana-txt {
    color: #e6b422;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    opacity: 0.7;
    transition: opacity 0.3s;
}

/* --- 追加：ホバー & アクティブ（選択中）の色指定 --- */
.nav-list a:hover .nav-line,
.nav-list a.active .nav-line {
    width: 100%;
}

.nav-list a.active .jp-txt {
    color: #f39800; /* アクティブ時は橙色 */
}

.nav-list a.active .kana-txt {
    opacity: 1;
}

/* ハンバーガーメニュー：z-index 100001 */
.menu-trigger {
    width: 40px;
    height: 40px;
    position: relative;
    cursor: pointer;
    display: none; 
    z-index: 100001;
}

.menu-trigger span {
    position: absolute;
    left: 10px;
    width: 20px;
    height: 1px;
    background: #e6b422;
    transition: 0.4s;
}

.menu-trigger span:nth-child(1) { top: 14px; }
.menu-trigger span:nth-child(2) { top: 20px; }
.menu-trigger span:nth-child(3) { top: 26px; }

.menu-trigger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-trigger.active span:nth-child(2) { opacity: 0; }
.menu-trigger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* スマホナビ */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 100000;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.mobile-nav.active {
    left: 0;
}

.mobile-nav-list {
    list-style: none;
    text-align: center;
}

.mobile-nav-list li {
    margin: 40px 0;
}

.mobile-nav-list a {
    text-decoration: none;
    color: #fff;
    font-size: 1.5rem;
    font-family: 'Noto Serif JP', serif;
}

.mobile-nav-list a.active {
    color: #f39800;
}

/* スクロール時のロゴ表示用 */
.header-logo-group {
    opacity: 0;
    transition: opacity 0.5s ease;
}
body.scrolled .header-logo-group {
    opacity: 1;
}

/* レスポンシブ */
@media screen and (max-width: 950px) {
    .pc-nav { display: none !important; }
    .menu-trigger { display: block !important; }
}

/* 最終防衛ライン：クリックを貫通させない */
#js-mobile-menu-trigger {
    pointer-events: auto !important;
}