/**
 * 共通タブスタイル
 * Common Tab Styles
 *
 * サイト全体で使用する統一タブデザイン
 * 各機能固有のスタイルは個別のCSSファイルで上書き可能
 *
 * @package Barom
 * @version 1.0.0
 */

/* ========================================
   基本タブコンテナ
======================================== */
.hapb-tabs {
    background: #383a3c;
    box-shadow: none;
    margin-bottom: 1.5rem;
    overflow: hidden;
    border-radius: 0;
}

/* ========================================
   タブナビゲーション
======================================== */
.hapb-tab-nav {
    display: flex;
    background: transparent;
}

.hapb-tab-button {
    flex: 1;
    padding: 0.875rem 1rem;
    background: var(--color_main, #742771);
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.hapb-tab-button:hover {
    background: rgba(116, 39, 113, 0.8);
}

.hapb-tab-button.active {
    background: #383a3c;
    color: white;
}

.hapb-tab-button.active::after {
    content: none;
}

/* ========================================
   タブコンテンツ
======================================== */
.hapb-tab-content {
    display: none;
    padding: 1.5rem 1rem;
    background: #383a3c;
}

.hapb-tab-content.active {
    display: block;
}

/* ========================================
   レスポンシブ対応
======================================== */
@media (max-width: 768px) {
    .hapb-tabs {
        margin-bottom: 1rem;
    }

    .hapb-tab-button {
        padding: 0.7rem 0.5rem;
        font-size: 0.85rem;
    }

    .hapb-tab-content {
        padding: 1rem;
    }
}

@media (max-width: 375px) {
    .hapb-tab-button {
        padding: 0.7rem 0.3rem;
        font-size: 0.85rem;
    }
}
