/* ========================================
   全ページ共通ヘッダーCSS
   
   使い方：
   <link rel="stylesheet" href="includes/header-styles.css">
   または
   <link rel="stylesheet" href="../includes/header-styles.css">
   
   更新履歴：
   - 2025-XX-XX: メニュー最適化版（gap: 20px, 6項目）
======================================== */

/* ヘッダー基本スタイル */
.header {
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* コア：flexbox 設定（崩れ防止） */
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    flex-wrap: nowrap; /* 折り返し禁止 */
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ロゴエリア */
.logo-area {
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

.logo-area a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo {
    width: 48px;
    height: auto;
}

.company-name {
    font-size: 18px;
    line-height: 1.2;
    white-space: nowrap; /* 改行禁止 */
    font-weight: 600;
    color: #1e3a5f;
}

.company-name span {
    font-size: 18px;
    font-weight: 600;
    color: #666666;
    text-transform: uppercase;
    white-space: nowrap;
}

/* グローバルメニュー */
.global-nav ul {
    display: flex;
    gap: 20px;
    white-space: nowrap;
    margin: 0;
    padding: 0;
}

.global-nav li {
    list-style: none;
    font-size: 15px;
    letter-spacing: 0; /* 重要：広がり禁止 */
    margin: 0;
}

.global-nav a {
    color: #333333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    line-height: 1.6;
    transition: color 0.3s ease;
    white-space: nowrap;
}

.global-nav a:hover {
    color: #f39c12;
}

/* アクティブページ（現在のページ） */
.global-nav a.active {
    font-weight: 700;
    text-decoration: underline;
    color: #0A2240;
}

/* お問い合わせボタン */
.contact-btn {
    padding: 10px 20px;
    white-space: nowrap;
    align-self: center;
    background: #f39c12;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.contact-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* 資料請求ボタン（オレンジ） */
.cta-btn {
    padding: 10px 20px;
    white-space: nowrap;
    align-self: center;
    background: #f39c12;
    color: #ffffff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 15px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    background: #e67e22;
    transform: translateY(-2px);
}

/* ハンバーガーメニューボタン（PC時は非表示） */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 28px;
    height: 3px;
    background: #1e3a5f;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* スマホ時のレスポンシブ対応 */
@media (max-width: 768px) {
    .header-inner {
        height: 60px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: #ffffff;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
        z-index: 9999;
        padding: 80px 30px 30px;
    }
    
    .global-nav.is-open {
        right: 0;
    }
    
    /* ハンバーガーボタンのアニメーション */
    .mobile-menu-btn.is-open span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-btn.is-open span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-btn.is-open span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .global-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .global-nav li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .global-nav a {
        display: block;
        padding: 15px 0;
        font-size: 16px;
    }
    
    .contact-btn {
        display: none;
    }
    
    .company-name {
        font-size: 12px;
    }
    
    .company-name span {
        font-size: 8px;
    }
}
