/**
 * タブスタイル - 標準テンプレート
 * @version v2.0.0
 * @updated 2025-10-25
 * 
 * 【使用方法】
 * 1. タブナビゲーションに .tab-navigation クラスを使用
 * 2. タブボタンに .tab-button クラスを使用
 * 3. アクティブなタブに .active クラスを追加
 * 4. タブコンテンツに .tab-content クラスを使用
 * 5. JavaScript で showTab() 関数を実装
 */

/* ========================================
   タブナビゲーション
   ======================================== */

.tab-navigation {
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 30px;
    display: flex;
    gap: 0;
}

.tab-button {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.tab-button:hover {
    color: #2c3e50;
    border-bottom: 3px solid #ccc;
}

.tab-button.active {
    color: #2c3e50;
    border-bottom: 3px solid #667eea;
}

/* ========================================
   タブコンテンツ
   ======================================== */

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   レスポンシブ対応（モバイル）
   ======================================== */

@media (max-width: 768px) {
    .tab-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin-bottom: 20px;
    }
    
    .tab-button {
        padding: 12px 16px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }
} 