/**
 * Header Bar - 湯氣パターン CSS
 * 依存: ../../header-bar.css（共通CSS）
 * 湯氣パターン固有のスタイル
 * ※ header-top の湯氣パターンと組み合わせて使用することを想定
 */

/* ==========================================================================
   Bar 背景・ボーダー
   ========================================================================== */

.header-bar-pattern-yuge .l-header__bar {
    background: #1a1a1a;
    border-top: 3px solid #c8390e;
}

/* ==========================================================================
   Menu Items - 自動幅・区切りなし
   ========================================================================== */

.header-bar-pattern-yuge .hb-menu {
    justify-content: flex-start;
}

.header-bar-pattern-yuge .hb-item {
    flex: none;
    border-right: none;
}

/* ==========================================================================
   Menu Links - アンダーラインアニメーション
   ========================================================================== */

.header-bar-pattern-yuge .hb-link {
    position: relative;
    height: 48px;
    padding: 0 20px;
    gap: 3px;
    margin: 0;
    border-radius: 0;
}



/* アクティブ・ホバー時のアンダーライン */
.header-bar-pattern-yuge .hb-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20px;
    right: 20px;
    height: 3px;
    background: #c8390e;
    transform: scaleX(0);
    transition: transform .2s ease;
}

.header-bar-pattern-yuge .hb-item:hover .hb-link::after,
.header-bar-pattern-yuge .hb-item--current .hb-link::after,
.header-bar-pattern-yuge .hb-item--active .hb-link::after {
    transform: scaleX(1);
}

/* 子ページありのホバー時はアンダーラインを表示しない */
.header-bar-pattern-yuge .hb-item--dropdown:hover .hb-link::after {
    transform: scaleX(0);
}

/* 共通CSSのアクティブ背景色を無効化（アンダーラインで表現） */
.header-bar-pattern-yuge .hb-item--active,
.header-bar-pattern-yuge .hb-item--current {
    background-color: transparent;
}

/* ホバー背景色を無効化 */
.header-bar-pattern-yuge .hb-item:hover {
    background-color: transparent;
}

/* ==========================================================================
   テキスト - 日本語（セリフ・ミュート）
   ========================================================================== */

.header-bar-pattern-yuge .hb-text--primary {
    font-size: 12px;
    color: #aaa;
    letter-spacing: .16em;
    transition: color .18s;
    margin-bottom: 0;
}

.header-bar-pattern-yuge .hb-item:hover .hb-text--primary,
.header-bar-pattern-yuge .hb-item--current .hb-link .hb-text--primary,
.header-bar-pattern-yuge .hb-item--active .hb-link .hb-text--primary {
    color: #fff;
    font-weight: 600;
}

/* ==========================================================================
   テキスト - 英語（サブ）
   ========================================================================== */

.header-bar-pattern-yuge .hb-text--secondary {
    font-size: 8px;
    color: #555;
    letter-spacing: .2em;
    transition: color .18s;
}

.header-bar-pattern-yuge .hb-item:hover .hb-text--secondary {
    color: #888;
}

/* ==========================================================================
   ドロップダウンアイコン - 非表示（子要素展開はホバーCSSで動作）
   ========================================================================== */

.header-bar-pattern-yuge .hb-icon--dropdown,
.header-bar-pattern-yuge .dropdown-icon {
    display: none;
}

/* ==========================================================================
   サブメニュー - ダークテーマ
   ========================================================================== */

.header-bar-pattern-yuge .hb-submenu {
    background: #111;
    border-top: 2px solid #c8390e;
    border-radius: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .3);
    min-width: 120px;
    padding: 0;
}

.header-bar-pattern-yuge .hb-submenu .hb-item {
    width: 100%;
    text-align: left;
}

.header-bar-pattern-yuge .hb-submenu .hb-link {
    flex-direction: row;
    height: auto;
    padding: 12px 16px;
    min-height: auto;
    border-bottom: none;
    border-top: 1px solid #222;
    margin: 0;
}

/* サブメニューのアンダーラインを非表示 */
.header-bar-pattern-yuge .hb-submenu .hb-link::after {
    display: none;
}

.header-bar-pattern-yuge .hb-submenu .hb-item:hover {
    background-color: rgba(255, 255, 255, .05);
}

.header-bar-pattern-yuge .hb-text--submenu {
    font-size: 12px;
    color: #888;
    letter-spacing: .12em;
    transition: color .18s;
}

.header-bar-pattern-yuge .hb-submenu .hb-item:hover .hb-text--submenu {
    color: #fff;
}

/* ==========================================================================
   SP (≤768px) - 全項目を均等配置
   ========================================================================== */

@media (max-width: 768px) {
    .header-bar-pattern-yuge .l-header__barInner {
        padding: 0;
    }

    .header-bar-pattern-yuge .hb-menu {
        flex-wrap: nowrap;
        justify-content: space-between;
    }

    .header-bar-pattern-yuge .hb-item {
        flex: 1;
    }

    .header-bar-pattern-yuge .hb-link {
        height: 42px;
        padding: 0 4px;
        justify-content: center;
    }

    .header-bar-pattern-yuge .hb-link::after {
        left: 4px;
        right: 4px;
    }

    .header-bar-pattern-yuge .hb-text--primary {
        font-size: 10px;
        letter-spacing: 0.05em;
    }

    /* SP では英語サブテキストを非表示 */
    .header-bar-pattern-yuge .hb-text--secondary {
        display: none;
    }
}
