/* 日本語フォントの読み込み */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

body
{
	font-family: 'Noto Sans JP', sans-serif;
	background: #f4f4f9;
	padding: 10px;
	/* ヘッダーのスリム化に合わせて調整 */
	padding-top: 135px; 
	margin: 0;
}

/* 固定ヘッダーのコンパクト化 */
.header-container
{
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: #f4f4f9;
	padding: 5px 20px;
	z-index: 1000;
	border-bottom: 1px solid #ddd;
	text-align: center; /* タイトル周りの中央寄せ */
}

h1
{
	color: #333;
	margin: 0;
	font-size: 1.2em;
	display: inline-block;
	vertical-align: middle;
}

.update-time
{
	font-size: 0.75em;
	color: #888;
	margin: 0 0 0 10px;
	display: inline-block;
	vertical-align: middle;
}

/* フィルタエリア全体のコンテナ */
.filter-container
{
	margin-top: 5px;
	margin-bottom: 5px;
	display: flex;
	flex-direction: column; /* 要素を縦に並べる（ステータスの下にタグ） */
	gap: 8px;
	align-items: center;    /* 子要素を中央に寄せる */
}

/* ステータスフィルター（配信中など）を行内中央寄せ */
.status-filters
{
	display: flex;
	justify-content: center; /* 横方向の中央寄せ */
	gap: 6px;
	width: 100%;
}

.filter-btn
{
	border: none;
	padding: 4px 12px;
	border-radius: 20px;
	cursor: pointer;
	background: #ddd;
	font-weight: bold;
	font-size: 0.8em;
	transition: 0.2s;
}

.filter-btn.active
{
	background: #333;
	color: #fff;
}

.filter-btn[data-status="live"].active
{
	background: #e63946;
}

.filter-btn[data-status="upcoming"].active
{
	background: #007bff;
}

.filter-btn[data-status="archived"].active
{
	background: #6c757d;
}

/* 事務所フィルター（別行・開閉式） */
.agency-filter-details {
	border: 1px solid #eee;
	border-radius: 6px;
	padding: 3px 10px;
	background: #fff;
	width: fit-content; /* 中身の幅に合わせる */
	margin: 0 auto;     /* 自身の位置を中央に */
}

.agency-filter-details summary {
	cursor: pointer;
	font-size: 0.8rem;
	font-weight: bold;
	color: #666;
	outline: none;
	list-style: none; /* デフォルトの矢印を消す（任意） */
}

/* 矢印をカスタムする場合（任意） */
.agency-filter-details summary::marker {
    display: none;
}
.agency-filter-details summary::before {
    content: "▶ ";
    font-size: 0.7em;
}
.agency-filter-details[open] summary::before {
    content: "▼ ";
}

.agency-filter-container {
	display: flex;
	flex-wrap: wrap;
	justify-content: center; /* 展開時のボタンも中央寄せ */
	gap: 6px;
	margin-top: 8px;
	padding: 5px 0;
}

.agency-btn {
	border: 1px solid #ddd;
	background: white;
	border-radius: 15px;
	padding: 3px 10px;
	font-size: 0.75rem;
	cursor: pointer;
	transition: all 0.2s;
}

.agency-btn.active {
	background: #555;
	color: white;
	border-color: #555;
}

/* スケジュール表示エリア */
.day-section
{
	margin-bottom: 30px;
}

.day-title
{
	border-bottom: 2px solid #ccc;
	padding-bottom: 5px;
	color: #444;
	font-size: 1.1em;
}

.hour-group
{
	margin-top: 15px;
}

.hour-label
{
	font-weight: bold;
	background: #ddd;
	padding: 2px 8px;
	display: inline-block;
	border-radius: 4px;
	font-size: 0.85em;
	margin-bottom: 10px;
}

.grid
{
	display: grid;
	grid-template-columns: repeat(auto-fill, 220px);
	gap: 15px;
	justify-content: center;
}

/* カードのデザイン */
.card
{
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.2s;
	width: 220px;
}

.card:hover
{
	transform: translateY(-2px);
}

.card.live
{
	outline: 3px solid #e63946;
	z-index: 1;
}

.card.archived
{
	opacity: 0.7;
}

.thumb
{
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
}

.card-inner
{
	padding: 10px;
	border-left-width: 6px;
	border-left-style: solid;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.time
{
	font-weight: bold;
	color: #e63946;
	font-size: 1em;
}

.name
{
	font-size: 0.8em;
	color: #555;
	font-weight: bold;
}

.title
{
	font-size: 0.85em;
	margin: 2px 0;
	font-weight: bold;
	color: #222;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.3;
}

.hidden
{
	display: none !important;
}