/**
 * Header Top 共通CSS
 * 依存: inc/common/utilities.css
 * 注意: グリッドシステムはaffiliated-stores.cssに移行済み
 * 全てのheader-topパターンで共通的に使用されるスタイル
 */

/* ==========================================================================
   Header Top 共通レイアウト
   ========================================================================== */

.gnaviWrap_custom {
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
}

.gnavi_custom {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.gnavi_custom li {
    margin: 0;
}

.gnavi_custom a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gnavi_custom a:hover {
    text-decoration: none;
}

.__mainText {
    display: block;
}

/* ==========================================================================
   Header Top レスポンシブ共通
   ========================================================================== */

@media (max-width: 768px) {
    .gnavi_custom {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .gnaviWrap_custom {
        padding: 0.5rem;
    }
    
    .gnavi_custom {
        gap: 0.3rem;
    }
}

/* ==========================================================================
   Header Top カラー変数（カスタマイザー用）
   ========================================================================== */

:root {
    --header-top-bg-color: transparent;
    --header-top-text-color: inherit;
    --header-top-menu-bg-color: transparent;
    --header-top-menu-hover-bg-color: rgba(0, 0, 0, 0.1);
}

/* カスタマイザーからの動的スタイル適用用 */
.l-header__body {
    background-color: var(--header-top-bg-color);
    color: var(--header-top-text-color);
}

.l-header__body a {
    color: var(--header-top-text-color);
}

/* ==========================================================================
   Header Top パターン別クラス基盤
   ========================================================================== */

/* デフォルトパターン用 */
.header-top-pattern-default .gnavi_custom {
    justify-content: flex-end;
    gap: 1rem;
}

.header-top-pattern-default .gnavi_custom a {
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: var(--header-top-menu-bg-color);
    transition: all 0.3s ease;
}

.header-top-pattern-default .gnavi_custom a:hover {
    opacity: 0.7;
    transform: translateY(-1px);
}

/* メニュースタイルパターン用 */
.header-top-pattern-menu_style .gnavi_custom {
    justify-content: flex-end;
    gap: 1rem;
}

