@charset "utf-8";


/* ==========================================
       1. 基本スタイル・カラー設定
       ========================================== */
:root {
    --card-bg: #1e293b;
    /* カード・枠線の背景 */
    --accent-color: #f59e0b;
    /* アクセント（アンバー/イエロー） */
    --text-sub: #d8dce2;
    /* 補足テキスト */
    --hover-bg: #334155;
    /* ホバー時背景 */
    --active-border: #f59e0b;
    /* 選択中の枠線 */
}

/* ==========================================
       2. メインプレイヤーエリア（左側）
       ========================================== */
.player-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sound-wrapper {
    margin-bottom: 20px;
    width: 100%;
}

.sound-info {
    background-color: var(--card-bg);
    padding: 1.25rem;
    border-radius: 12px;
}

.sound-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: bold;
}

.tag-category {
    background-color: #3b82f6;
    color: #fff;
}

.tag-series {
    background-color: #334155;
    color: #fff;
}

.sound-info h2 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.sound-info p {
    font-size: 0.9rem;
    color: var(--text-sub);
}

/* ==========================================
       3. 形式リスト・カテゴリフィルター（右側）
       ========================================== */
.sidebar-section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: calc(100vh - 120px);
    /* 画面の高さに合わせる */
}

/* フィルタータブ */
.filter-tabs {
    display: flex;
    gap: 0.5rem;
    background-color: var(--card-bg);
    padding: 0.4rem;
    border-radius: 8px;
}

.tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-sub);
    padding: 0.5rem;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #fff;
}

.tab-btn.active {
    background-color: var(--accent-color);
    color: #000;
}

/* 形式リスト（スクロール領域） */
.train-list {
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-right: 0.25rem;
}

/* スクロールバーのカスタマイズ */
.train-list::-webkit-scrollbar {
    width: 6px;
}

.train-list::-webkit-scrollbar-thumb {
    background: #334155;
    border-radius: 3px;
}

/* リストアイテム */
.list-item {
    display: flex;
    gap: 0.75rem;
    background-color: var(--card-bg);
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.list-item:hover {
    background-color: var(--hover-bg);
}

.list-item.active {
    border-color: var(--active-border);
    background-color: var(--hover-bg);
}

/* サムネイル */
.item-thumb {
    width: 70px;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 4px;
    flex-shrink: 0;
}

/* アイテムテキスト情報 */
.item-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.item-company {
    font-size: 0.75rem;
    color: var(--text-sub);
}

.item-title {
    font-size: 0.85rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================================
       4. レスポンシブ対応（スマホ向け）
       ========================================== */
@media (max-width: 900px) {
    .container {
        grid-template-columns: 1fr;
        /* 1カラムに変更 */
    }

    .sidebar-section {
        height: auto;
    }

    .train-list {
        max-height: 400px;
        /* スマホでは最大高さを指定 */
    }
}