/* AI生成: 新しいヘッダーCSS | 2025-12-17 */

/* AI変更: ヘッダーをコンテンツの後ろに配置（スクロール時に白いカードが上に重なる） | 2025-12-24 */
/* ヘッダー全体 */
.new-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: transparent;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    box-shadow: none;
    z-index: 1; /* AI変更: コンテンツの後ろに配置 */
    min-height: 64px;
    overflow: visible; /* ドロップダウンがクリップされないように */
}
/* /AI変更 */

/* 左側：ロゴ */
.header-logo {
    display: flex;
    align-items: center;
}

.header-logo a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

/* AI変更: ロゴサイズを小さくしてALLボタンの画像と同じくらいのサイズに調整 | 2025-12-18 */
.header-logo img {
    height: 30px;
    cursor: pointer;
    transition: transform 0.3s ease;
}
/* /AI変更 */

.header-logo img:hover {
    transform: scale(1.05);
}

/* AI変更: ドロップダウンを正しく表示するために設定を追加 | 2025-12-24 */
/* 中央：メニューボタン */
.header-center {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1; /* AI変更: ヘッダーと同じレベル */
    overflow: visible;
}
/* /AI変更 */

/* AI変更: ボタンのサイズ調整（横長に、上下の余白を減らす、枠線を控えめに、透明感をアップ） | 2025-12-18 */
.menu-button {
    background: rgba(255, 255, 255, 0.1); /* AI変更: 0.2 → 0.1 (透明度アップ) | 2025-12-18 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* AI変更: 0.15 → 0.1 (より薄く) | 2025-12-18 */
    border-radius: 12px;
    padding: 0 32px;
    height: 48px;
    width: 240px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
    backdrop-filter: blur(10px);
    /* AI変更: position: relativeとz-indexを削除（親要素.header-centerが管理） | 2025-12-18 */
    pointer-events: auto;
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.05em;
}
/* /AI変更 */

.menu-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
}

.menu-button:active {
    transform: translateY(0);
}

.menu-button img {
    height: 24px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    pointer-events: none;
}

/* AI変更: プルダウンメニューをfixedで配置（コンテンツより上に表示） | 2025-12-24 */
/* プルダウンメニュー */
.header-dropdown {
    position: fixed;
    /* top と left はJavaScriptで動的に設定 */
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    min-width: 220px;
    padding: 0.5rem 0;
    display: none;
    z-index: 200; /* AI変更: コンテンツ（z-index: 100）より上に表示 */
}

.header-dropdown.show {
    display: block !important;
}
/* /AI変更 */

.header-dropdown-item {
    display: block;
    padding: 0.75rem 1.5rem;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-weight: 400;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.header-dropdown-item:hover {
    background: linear-gradient(90deg, #f0f4ff 0%, #ffffff 100%);
    border-left: 3px solid #667eea;
    color: #667eea;
    padding-left: 1.8rem;
}

/* AI変更: 階層構造とサブ項目のスタイル | 2025-12-22 */
.header-dropdown-group {
    margin: 0;
    position: relative; /* AI変更: サブメニューの位置基準 | 2025-12-22 */
}

.header-dropdown-group-title {
    padding: 0.75rem 1.5rem;
    font-size: 15px; /* AI変更: 13px → 15px（通常項目と同じサイズ） | 2025-12-22 */
    font-weight: 400; /* AI変更: 600 → 400（通常項目と同じ太さ） | 2025-12-22 */
    color: #333; /* AI変更: #667eea → #333（通常項目と同じ色） | 2025-12-22 */
    text-transform: none; /* AI変更: uppercase → none（大文字変換なし） | 2025-12-22 */
    letter-spacing: 0; /* AI変更: 0.5px → 0 | 2025-12-22 */
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
}

.header-dropdown-toggle {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s ease;
    border-left: 3px solid transparent; /* AI変更: 通常項目と同じボーダー追加 | 2025-12-22 */
}

.header-dropdown-toggle:hover {
    background: linear-gradient(90deg, #f0f4ff 0%, #ffffff 100%);
    border-left: 3px solid #667eea; /* AI変更: 通常項目と同じホバー効果 | 2025-12-22 */
    color: #667eea;
    padding-left: 1.8rem; /* AI変更: 通常項目と同じホバー時のpadding | 2025-12-22 */
}

.toggle-icon {
    font-size: 10px;
    transition: transform 0.2s ease;
    display: inline-block;
}

/* AI変更: サブメニューを右側に表示 | 2025-12-22 */
.header-dropdown-submenu {
    position: absolute;
    left: 100%;
    top: 0;
    min-width: 200px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 0.5rem 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 100000;
}

.header-dropdown-group:hover .header-dropdown-submenu {
    opacity: 1;
    visibility: visible;
}
/* /AI変更 */

.header-dropdown-subitem {
    padding: 0.75rem 1.5rem;
    font-size: 14px; /* AI変更: サブ項目は少し小さく | 2025-12-22 */
    border-left: 3px solid transparent;
}

.header-dropdown-subitem:hover {
    padding-left: 1.8rem;
}

.header-dropdown-disabled {
    color: #999;
    cursor: pointer; /* AI変更: クリック可能にする | 2025-12-22 */
    /* pointer-events: none; */ /* AI変更: コメントアウト | 2025-12-22 */
}

.dev-badge {
    display: inline-block;
    background: #fbbf24;
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 0.5rem;
    font-weight: 600;
}
/* /AI変更 */

/* AI変更: logoutボタンだけを右に移動（max produce/ALLは動かさない） | 2025-12-18 */
/* 右側：ログアウトボタン */
.header-right {
    display: flex;
    align-items: center;
    margin-left: 40px; /* 元の位置を維持 */
    position: relative !important;
    left: 130px !important; /* AI変更: 138px → 130px | 2025-12-22 */
}
/* /AI変更 */

/* AI変更: ボタンのサイズ調整（横長に、上下の余白を減らす、枠線を控えめに、透明感をアップ） | 2025-12-18 */
.btn-logout-new {
    background: rgba(255, 255, 255, 0.1); /* AI変更: 0.2 → 0.1 (透明度アップ) | 2025-12-18 */
    border: 1px solid rgba(255, 255, 255, 0.1); /* AI変更: 0.15 → 0.1 (より薄く) | 2025-12-18 */
    color: white;
    padding: 0 32px;
    height: 48px;
    width: 240px;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Zen Kaku Gothic Antique', sans-serif;
    font-weight: 500;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s;
    backdrop-filter: blur(10px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* /AI変更 */

.btn-logout-new:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 255, 255, 0.4);
}

.btn-logout-new:active {
    transform: translateY(0);
}

