@charset "utf-8";

/* ==================================================
   TOPプログラム: シングルトラック表示(Merge Tokyo 2026 のボックスデザインに準拠)
   B-Square 標準のシングルトラック出力(.program-list > .time-group)をそのまま装飾する
   ・1つの時間枠に1セッション → 通常のボックス
   ・1つの時間枠に複数セッション → Keynote 型(1件目=見出し、2件目以降=登壇者の行)
   ・サブタイトル・登壇者が空のセッション → Lunch / Networking 型(タイトル大きめ)
================================================== */

body.top #program .program-list {
	display: flex;
	flex-direction: column;
	gap: 24px;
	color: #ffffff;
	font-size: 16px;
}

/* 1時間枠 = 1ボックス */
body.top #program .program-list .time-group {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	min-height: 182px;
	padding: 26px 20px;
	background: #000000;
	border: 1px solid #636363;
	border-radius: 2px;
	box-sizing: border-box;
	text-align: center;
}

/* 時間(標準の sticky 帯を解除) */
body.top #program .program-list .time-group > .time {
	position: static;
	padding: 0;
	background: none;
	opacity: 1;
	color: #828282;
	font-family: "Geist", "Helvetica Neue", Arial, sans-serif;
	font-size: 20px;
	font-weight: 600;
	line-height: 1;
}
body.top #program .program-list .time-group > .time + .flex-wrap {
	padding: 0;
}
body.top #program .program-list .time-group .flex-wrap {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	width: 100%;
}
body.top #program .program-list .time-group .flex-wrap .cell {
	margin: 0;
	padding: 0;
	background: none;
	box-shadow: none;
}
body.top #program .program-list .time-group .flex-wrap .cell .flex-container {
	margin-bottom: 0;
}
body.top #program .program-list .time-group .flex-wrap .cell .flex-container:empty {
	display: none;
}

/* タイトル・サブタイトル(カテゴリ表記)・登壇者 */
body.top #program .program-list .time-group .flex-wrap .cell div.title {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	margin: 0;
}
body.top #program .program-list .time-group .flex-wrap .cell div.title .main-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.4;
	white-space: pre-line;
}
body.top #program .program-list .time-group .flex-wrap .cell div.title .main-title a {
	color: var(--main-font-color);
	text-decoration: none;
}
body.top #program .program-list .time-group .flex-wrap .cell div.title .main-title a:hover {
	opacity: 0.6;
}
body.top #program .program-list .time-group .flex-wrap .cell div.title .sub-title {
	order: -1;
	margin: 0;
	font-size: 18px;
	font-weight: 400;
	line-height: 1.78;
}
body.top #program .program-list .time-group .flex-wrap .cell .speaker {
	margin: 4px 0 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	white-space: pre-line;
}
body.top #program .program-list .time-group .flex-wrap .cell .overview {
	margin: 12px 0 0;
	color: #cccccc;
}

/* Lunch / Networking 型: サブタイトルも登壇者もないセッション */
body.top #program .program-list .time-group:not(:has(.sub-title, .speaker, .cell + .cell)) .main-title {
	font-size: 26px;
	font-weight: 600;
}

/* Keynote 型: 同じ時間枠に複数セッションがある場合 */
body.top #program .program-list .time-group:has(.cell + .cell) {
	gap: 16px;
	padding: 78px 0 84px;
}
body.top #program .program-list .time-group:has(.cell + .cell) .flex-wrap .cell:first-child {
	margin-bottom: 20px;
}
body.top #program .program-list .time-group:has(.cell + .cell) .flex-wrap .cell:first-child div.title .main-title {
	font-size: 26px;
	line-height: 1.615;
}
body.top #program .program-list .time-group .flex-wrap .cell + .cell {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 92% !important;
	min-height: 78px;
	/*padding: 0 73px 0 15px;*/
	background: #121212;
	box-sizing: border-box;
	text-align: left;
	padding: .555556vw 5.069444vw .555556vw 1.0416666667vw;
}
body.top #program .program-list .time-group .flex-wrap .cell + .cell div.title {
	flex: 1 1 0;
	flex-direction: row;
	align-items: center;
	gap: 12px;
}
/* 登壇者の行のロゴ(管理画面「講演者」欄に入れた画像を右端に表示) */
body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker {
	display: flex;
	justify-content: flex-end;
	flex-shrink: 0;
	width: auto;
	margin: 0 0 0 auto !important;
	line-height: 0;
	white-space: normal;
	flex-direction: column;
	gap: .555556vw;
}
body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker p {
	display: flex;
	justify-content: flex-end;
	margin: 0;
}
/* エディタが img に付ける width / height / style を無視して東京版と同じ幅にそろえる */
body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker img {
	display: block;
	width: 176px !important;
	max-width: none;
	height: auto !important;
	margin: 0 !important;
	float: none !important;
	transition: opacity 0.3s;
}
body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker a {
	position: relative;
	z-index: 2;	/* ポップアップ用のクリック範囲より手前にして、ロゴのリンクを有効にする */
	display: block;
}
body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker a:hover img {
	opacity: 0.5;
}
@media only screen and (min-width: 769px) {
	body.top #program .program-list .time-group .flex-wrap .cell + .cell:has(a.detail:hover) div.title .main-title {
		color: #636363;
		transition: color 0.3s;
	}
}
body.top #program .program-list .time-group .flex-wrap .cell + .cell div.title .main-title {
	font-size: 16px;
	font-weight: 500;
	line-height: 1.5;
	text-align: left;
}
body.top #program .program-list .time-group .flex-wrap .cell + .cell div.title .sub-title {
	position: relative;
	flex-shrink: 0;
	width: 154px;
	padding-right: 12px;
	box-sizing: border-box;
	font-size: 14px;
	line-height: 1;
	text-align: center;
}
body.top #program .program-list .time-group .flex-wrap .cell + .cell div.title .sub-title::after {
	content: "";
	position: absolute;
	top: 50%;
	right: 0;
	width: 1px;
	height: 24px;
	background: #636363;
	transform: translateY(-50%);
}
body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker {
	margin: 0;
}

/* ポップアップ付きセッション: ボックス全体をクリック可能にし、右下に矢印ボタンを出す
   (講演詳細ポップアップが登録されているセッションだけ .main-title に a.detail が出力される) */
body.top #program .program-list .time-group {
	position: relative;
}
body.top #program .program-list .time-group .flex-wrap .cell {
	position: static;
}
body.top #program .program-list .time-group:has(.cell + .cell) .flex-wrap .cell {
	position: relative;
}
body.top #program .program-list .time-group .flex-wrap .cell div.title .main-title a.detail::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
}
body.top #program .program-list .time-group .flex-wrap .cell div.title .main-title a.detail:hover {
	opacity: 1;
}
body.top #program .program-list .time-group:not(:has(.cell + .cell)):has(a.detail)::after,
body.top #program .program-list .time-group .flex-wrap .cell + .cell:has(a.detail)::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	width: 4.02778vw;
	height: 2.77778vw;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M28.2236 0.829102L36.4668 5.8291L39.2188 7.49902H0V5.69824H26.8574V0L28.2236 0.829102Z' fill='white'/%3E%3C/svg%3E") no-repeat center / 2.77778vw 0.555556vw;
	transition: background-color 0.3s;
	pointer-events: none;
}
@media only screen and (min-width: 769px) {
	body.top #program .program-list .time-group:not(:has(.cell + .cell)):has(a.detail:hover)::after,
	body.top #program .program-list .time-group .flex-wrap .cell + .cell:has(a.detail:hover)::after {
		background-color: #ffffff;
		background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 8'%3E%3Cpath d='M28.2236 0.829102L36.4668 5.8291L39.2188 7.49902H0V5.69824H26.8574V0L28.2236 0.829102Z' fill='black'/%3E%3C/svg%3E");
	}
}

/* ==================================================
   スマホ(東京版の 390px 幅の値を vw で使用)
================================================== */
@media only screen and (max-width: 768px) {
	body.top #program .program-list .time-group:not(:has(.cell + .cell)):has(a.detail)::after,
	body.top #program .program-list .time-group .flex-wrap .cell + .cell:has(a.detail)::after {
		width: 14.8718vw;
		height: 10.2564vw;
		background-size: 10.2564vw 2.05128vw;
	}

	body.top #program .program-list {
		gap: 4.10256vw;
	}
	body.top #program .program-list .time-group {
		gap: 1.02564vw;
		min-height: 0;
		padding: 6.15385vw 5.12821vw;
	}
	body.top #program .program-list .time-group > .time {
		top: auto;
		font-size: 4.10256vw;
	}
	body.top #program .program-list .time-group .flex-wrap .cell {
		padding: 0;
	}
	body.top #program .program-list .time-group .flex-wrap .cell div.title .main-title {
		font-size: 4.61538vw;
		line-height: 1.33333;
	}
	body.top #program .program-list .time-group .flex-wrap .cell div.title .sub-title {
		font-size: 4.10256vw;
		line-height: 1.5;
	}
	body.top #program .program-list .time-group .flex-wrap .cell .speaker {
		font-size: 4.10256vw;
	}
	body.top #program .program-list .time-group:not(:has(.sub-title, .speaker, .cell + .cell)) .main-title {
		font-size: 5.64103vw;
	}

	/* Keynote 型 */
	body.top #program .program-list .time-group:has(.cell + .cell) {
		gap: 4.10256vw;
		padding: 17.4359vw 5.12821vw;
	}
	body.top #program .program-list .time-group:has(.cell + .cell) .flex-wrap {
		gap: 4.10256vw;
	}
	body.top #program .program-list .time-group:has(.cell + .cell) .flex-wrap .cell:first-child {
		margin-bottom: 3.07692vw;
	}
	body.top #program .program-list .time-group:has(.cell + .cell) .flex-wrap .cell:first-child div.title .main-title {
		font-size: 4.61538vw;
		line-height: 1.33333;
	}
	body.top #program .program-list .time-group .flex-wrap .cell + .cell {
		flex-direction: column;
		justify-content: center;
		width: 100% !important;
		min-height: 0;
		padding: 3.84615vw 5.64103vw;
		text-align: center;
	}
	body.top #program .program-list .time-group .flex-wrap .cell + .cell:has(a.detail) {
		padding-bottom: 12.3077vw;
	}
	body.top #program .program-list .time-group .flex-wrap .cell + .cell div.title {
		flex: 0 0 auto;
		flex-direction: column;
		gap: 4.61538vw;
	}
	body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker,
	body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker p {
		justify-content: center;
		margin: 4.61538vw auto 0 !important;
	}
	body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker p {
		margin: 0 !important;
	}
	body.top #program .program-list .time-group .flex-wrap .cell + .cell .speaker img {
		width: 40.2564vw !important;
	}
	body.top #program .program-list .time-group .flex-wrap .cell + .cell div.title .main-title {
		font-size: 4.10256vw;
	}
	body.top #program .program-list .time-group .flex-wrap .cell + .cell div.title .sub-title {
		width: auto;
		padding: 0 0 4.61538vw;
		font-size: 3.58974vw;
	}
	body.top #program .program-list .time-group .flex-wrap .cell + .cell div.title .sub-title::after {
		top: auto;
		right: auto;
		bottom: 0;
		left: 50%;
		width: 5.12821vw;
		height: 1px;
		transform: translateX(-50%);
	}
}
