body {
    font-family: 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; /* モダンなフォント */
    margin: 0;
    padding: 0;
    background-color: #eef2f7; /* 柔らかい背景色 */
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #2c3e50; /* ダークグレー */
    color: #fff;
    padding: 1.2em 0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

main {
    padding: 30px;
    max-width: 1200px;
    margin: 30px auto;
    background-color: #fff;
    border-radius: 10px; /* 角をさらに丸く */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08); /* 影を調整 */
}

#channel-list {
    display: flex; /* flexboxを使用して国ごとのセクションを配置 */
    flex-direction: column; /* 縦方向に並べる */
    gap: 30px; /* セクション間のギャップ */
    margin-top: 30px;
    padding: 0;
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
}


.country-section {
    margin-bottom: 0; /* #channel-list の gap で調整 */
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 25px;
    background-color: #fdfdfd;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.country-section h3 {
    margin-top: 0;
    color: #2c3e50;
    border-bottom: 2px solid #a7d9f7;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.8em;
    font-weight: 700;
    cursor: pointer; /* クリック可能であることを示す */
    transition: color 0.3s ease;
}

.country-section h3:hover {
    color: #007bff; /* ホバー時の色 */
}

.country-channel-list {
    display: none; /* 初期状態では非表示 */
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.channel-item {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #444;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.channel-item:hover {
    background-color: #f0f4f8; /* ホバー時の背景色を調整 */
    transform: translateY(-5px); /* 移動量を増やす */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15); /* 影を強調 */
}

#video-player-container {
    margin-bottom: 20px;
}

#video-player {
    width: 100%;
    max-height: 600px;
    background-color: #000;
}

#back-to-channels {
    display: block;
    margin: 20px auto; /* マージンを調整 */
    padding: 12px 25px; /* パディングを調整 */
    background-color: #6c757d; /* ダークグレー系の色 */
    color: white;
    border: none;
    border-radius: 6px; /* 角を丸く */
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#back-to-channels:hover {
    background-color: #5a6268; /* ホバー時の色 */
    transform: translateY(-2px); /* 少し上に移動 */
}


footer {
    text-align: center;
    padding: 25px;
    background-color: #2c3e50; /* ヘッダーと同じ色 */
    color: #fff;
    margin-top: 30px;
    box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.05);
}