/* Header specific styles */

/* ヘッダーのロゴとナビゲーション */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 900px;
    margin: 0 auto;
    padding: 1.2rem 2rem 1.2rem 2rem;
    background: #2a2a2a;
    border-bottom: 1px solid #444;
    overflow: visible;
    position: relative;
}

.site-title {
    font-family: 'Noto Sans JP', 'Yu Gothic', 'Hiragino Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #e0e0e0;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #82b5d1, #a8c8e1, #82b5d1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* 常時のアニメーションは控えめにするため無効化（ホバー時のみ） */
    /* animation: subtleShimmer 8s ease-in-out infinite; */
    /* 重めのテキストシャドウは外して落ち着いた表情に */
    text-shadow: none;
    position: relative;
    display: inline-block;
    /* グローも控えめに */
    filter: drop-shadow(0 0 6px rgba(130, 181, 209, 0.2));
}

.site-nav {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    overflow: visible;
    margin-top: 4px;
    margin-bottom: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-nav a {
    color: #e0e0e0 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    padding: 0.6em 1.2rem;
    border-radius: 8px;
    border: 1px solid rgba(130, 181, 209, 0.2);
    transition: all 0.25s ease;
    position: relative;
    display: inline-block;
    background: rgba(42, 42, 42, 0.8);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.site-nav a:visited {
    color: #e0e0e0 !important;
}

.site-nav a:hover {
    background: rgba(130, 181, 209, 0.15);
    border-color: rgba(130, 181, 209, 0.4);
    color: #e0e0e0 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(130, 181, 209, 0.2);
}

.site-nav a.active {
    background: rgba(130, 181, 209, 0.25);
    color: #e0e0e0 !important;
    border-color: rgba(130, 181, 209, 0.6);
    box-shadow: 0 2px 8px rgba(130, 181, 209, 0.3);
    font-weight: 600;
}

.site-nav a.active:hover {
    background: rgba(130, 181, 209, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(130, 181, 209, 0.4);
}

/* ハンバーガーメニューボタン */
.hamburger {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
    font-size: 1.5rem;
    color: #e0e0e0;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.hamburger:hover {
    color: #82b5d1;
}

/* ハンバーガーアイコンの表示切り替え */
.hamburger .hamburger-icon {
    display: block;
}

.hamburger .close-icon {
    display: none;
}

.hamburger.active .hamburger-icon {
    display: none;
}

.hamburger.active .close-icon {
    display: block;
}

/* モバイルメニューのオーバーレイ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
    display: block;
    opacity: 1;
}

/* モバイルナビゲーション */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100%;
    background: #2a2a2a;
    z-index: 1000;
    padding: 2rem 0;
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.5);
}

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

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.mobile-nav li {
    margin: 0;
}

.mobile-nav a {
    display: block;
    color: #e0e0e0 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid rgba(130, 181, 209, 0.1);
    transition: all 0.25s ease;
}

.mobile-nav a:hover {
    background: rgba(130, 181, 209, 0.15);
    color: #e0e0e0 !important;
}

.mobile-nav a.active {
    background: rgba(130, 181, 209, 0.25);
    color: #e0e0e0 !important;
    font-weight: 600;
    border-left: 4px solid #82b5d1;
}

/* レスポンシブデザイン */
@media (max-width: 900px) {
    .site-header {
        max-width: 100vw;
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .site-nav {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .mobile-nav {
        display: block;
    }
    
    .site-title {
        font-size: 1.2rem;
    }
}

/* クールで控えめなアニメーション */
@keyframes subtleShimmer {
    0%, 100% {
        background-position: 0% 50%;
        filter: drop-shadow(0 0 6px rgba(130, 181, 209, 0.2));
    }
    50% {
        background-position: 100% 50%;
        filter: drop-shadow(0 0 12px rgba(130, 181, 209, 0.4));
    }
}

/* ホバー効果の追加 */
.site-title:hover {
    animation: subtleShimmer 3s ease-in-out infinite;
    transform: translateY(-1px);
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 10px rgba(130, 181, 209, 0.35));
}

@media (max-width: 480px) {
    .site-header {
        padding: 1rem;
    }
    
    .site-title {
        font-size: 1.1rem;
    }
    
    .mobile-nav {
        width: 250px;
    }
    
    .mobile-nav a {
        font-size: 1rem;
        padding: 0.9rem 1.5rem;
    }
}