/* Header Navigation Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header h1 {
    font-family: 'Roboto', sans-serif;
    font-weight: 100; /* Thin weight */
    font-size: 1.5rem;
    margin: 0 0 0.5rem 0;
    color: #333;
    letter-spacing: 2px;
}

.header-nav {
    width: 100%;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 1rem; /* メニュー間のマージンを狭める（2rem → 1rem） */
    flex-wrap: wrap;
    justify-content: center; /* 画面横幅に対して中央配置 */
}

.nav-menu li {
    margin: 0;
}

.nav-link {
    font-family: 'Roboto', sans-serif;
    font-weight: 100; /* Thin weight */
    text-decoration: none;
    color: #666;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    letter-spacing: 1px;
}

.nav-link:hover {
    color: #333;
    background: rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.nav-link.active {
    color: #fff;
    background: #333;
}

/* Body padding to account for fixed header */
body {
    padding-top: 100px; /* Adjust based on header height */
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Section spacing - 削除してstyle.cssで統一管理 */

/* Responsive design */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    header h1 {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        gap: 0.75rem; /* タブレットでのマージンも調整（1rem → 0.75rem） */
        justify-content: center;
    }
    
    .nav-link {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    body {
        padding-top: 90px;
    }
    
    /* scroll-margin-top設定を削除 - style.cssで統一管理 */
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem;
    }
    
    header h1 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }
    
    .nav-menu {
        gap: 0.4rem; /* モバイルでのマージンも調整（0.5rem → 0.4rem） */
    }
    
    .nav-link {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    body {
        padding-top: 80px;
    }
    
    /* scroll-margin-top設定を削除 - style.cssで統一管理 */
}
