@charset "utf-8";

#schedule {
	background: var(--white);
	border-top: 2px solid var(--pk1);
	border-bottom: 2px solid var(--pk1);
}
.sched-note {
	font-size: .84rem;
	color: var(--text2);
	font-family: var(--fn-jp);
	margin-bottom: 28px;
	font-weight: 600;
}
.week {
	display: grid;
	grid-template-columns: repeat(7,1fr);
	gap: 9px;
	margin-bottom: 24px;
}
.day-col {
	display: flex;
	flex-direction: column;
	gap: 7px;
}
.dlabel {
	text-align: center;
	font-size: .72rem;
	font-weight: 900;
	padding: 7px 4px;
	border-radius: var(--radius-sm);
	background: var(--pk0);
	color: var(--text2);
	border: 2px solid var(--pk1);
}
.dlabel.sat {
	background: var(--pk1);
	color: var(--pk4);
}
.dlabel.sun { 
	background: linear-gradient(135deg, var(--pk2), var(--pk3));
	color: var(--white);
}
.chip {
	padding: 9px 6px;
	border-radius: var(--radius-sm);
	font-size: .71rem;
	font-weight: 800;
	text-align: center;
	line-height: 1.4;
	cursor: default;
	transition: transform .2s, box-shadow .2s;
}
.chip:hover {
	transform: translateY(-3px);
	box-shadow: var(--shadow-sm);
}
.c-collabo {
	background: linear-gradient(135deg, #ffe4ec, #ffcede);
	color: var(--pk5);
	border: 1.5px solid var(--pk2);
}
.c-talk {
	background: linear-gradient(135deg, #fff0d6, #ffe4a8);
	color: #8a5a00;
	border: 1.5px solid #ffd87a;
}
.c-game {
	background: linear-gradient(135deg, #e4f0ff, #c4deff);
	color: #1a4a8a;
	border: 1.5px solid #9dc0ff;
}
.c-rest {
	background: var(--pk0);
	color: var(--text3);
	border: 1.5px dashed var(--pk2);
	font-style: italic;
}
.legend {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.leg-item {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: .74rem;
	font-weight: 700;
	color: var(--text2);
}
.leg-dot {
	width: 11px;
	height: 11px;
	border-radius: 3px;
}

/* =========================================================
	変更内容：JSON描画化した予定チップのボタン表示を調整
	目的：button要素でも既存のchipデザインを崩さず表示する
========================================================= */
.chip {
	width: 100%;
/*	border-style: solid;*/
	font-family: var(--fn-jp);
	cursor: pointer;
}

.chip-title,
.chip-time {
	display: block;
}

.chip-time {
	margin-top: 4px;
	font-size: .8rem;
	opacity: .8;
}

/* =========================================================
	変更内容：配信中のLIVE表示を追加
	目的：現在配信中の予定を赤く発光させる
========================================================= */
.chip.is-live {
	position: relative;
	border: 2px solid #ff4a64;
	box-shadow:
		0 0 0 3px rgba(255, 74, 100, .12),
		0 0 18px rgba(255, 74, 100, .45);
	animation: livePulse 1.6s ease-in-out infinite;
}

.live-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 5px;
	padding: 2px 8px;
	border-radius: 999px;
	background: #ff0033;
	color: #fff;
	font-size: .58rem;
	font-weight: 900;
	letter-spacing: .08em;
}

@keyframes livePulse {
	0%,
	100% {
		transform: translateY(0);
	}
	50% {
		transform: translateY(-2px);
	}
}

/* =========================================================
	変更内容：スケジュール詳細モーダルを追加
	目的：予定クリック時にタイトル・説明・URL・コラボ相手を表示する
========================================================= */
.schedule-modal {
	position: fixed;
	inset: 0;
	z-index: 720;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 22px;
	background: rgba(58, 24, 40, .62);
	backdrop-filter: blur(7px);
	-webkit-backdrop-filter: blur(7px);
	visibility: hidden;
	opacity: 0;
	pointer-events: none;
	transition: opacity .25s, visibility .25s;
}

.schedule-modal.show {
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.schedule-modal-box {
	position: relative;
	width: min(100%, 560px);
	padding: 26px 24px;
	border-radius: var(--radius);
	background: linear-gradient(135deg, #fff, #fff7fb);
	border: 2px solid var(--pk1);
	box-shadow: var(--shadow);
	transform: translateY(14px) scale(.96);
	transition: transform .25s;
}

.schedule-modal.show .schedule-modal-box {
	transform: translateY(0) scale(1);
}

.schedule-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	width: 34px;
	height: 34px;
	border: none;
	border-radius: 50%;
	background: var(--pk1);
	color: var(--pk4);
	font-size: 1.2rem;
	font-weight: 900;
	cursor: pointer;
}

.schedule-modal-close:hover {
	background: var(--pk2);
}

.schedule-modal-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-right: 36px;
	margin-bottom: 10px;
}

.schedule-modal-type {
	font-size: 1.4rem;
}

.schedule-modal-head h3 {
	margin: 0;
	font-size: 1.2rem;
	color: var(--text);
}

.schedule-modal-meta {
	margin: 0 0 16px;
	font-size: .82rem;
	font-weight: 800;
	color: var(--text3);
}

.schedule-modal-summary,
.schedule-modal-collabo p {
	margin: 0;
	font-family: var(--fn-jp);
	font-size: .92rem;
	line-height: 1.8;
	color: var(--text2);
}

.schedule-modal-collabo {
	margin-top: 18px;
	padding: 14px 16px;
	border-radius: var(--radius-sm);
	background: var(--pk0);
	border: 1.5px solid var(--pk1);
}

.schedule-modal-subtitle {
	margin-bottom: 8px;
	font-size: .78rem;
	font-weight: 900;
	color: var(--pk4);
}

.schedule-modal-link {
	display: none;
	width: fit-content;
	margin-top: 20px;
	padding: 10px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ff5f7e, #ff0033);
	color: #fff;
	text-decoration: none;
	font-family: var(--fn-jp);
	font-size: .86rem;
	font-weight: 900;
	box-shadow: 0 6px 18px rgba(255, 0, 51, .22);
	transition: transform .2s, box-shadow .2s;
}

.schedule-modal-link:hover {
	transform: translateY(-2px);
	box-shadow: 0 9px 24px rgba(255, 0, 51, .3);
}

.schedule-modal-link.is-show {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

body.schedule-modal-open {
	overflow: hidden;
}

/* =========================================================
	変更内容：おやすみ予定のクリック不可表示を追加
	目的：休みの日はモーダルを開かず、hover演出も無効にする
========================================================= */
.chip.is-rest-disabled {
	cursor: default;
}

.chip.is-rest-disabled:hover {
	transform: none;
	box-shadow: none;
}

/* =========================================================
	変更内容：モーダル内の日付・時刻表示を調整
	目的：日付と時間を見やすく分けて表示する
========================================================= */
.schedule-modal-meta {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.schedule-modal-date {
	font-size: .9rem;
	font-weight: 900;
	color: var(--text3);
}

.schedule-modal-time {
	font-size: .9rem;
	font-weight: 900;
	color: var(--text2);
}

/* =========================================================
	変更内容：土曜・日曜祝日の日付色を追加
	目的：休日感をモーダル内でも分かりやすくする
========================================================= */
.schedule-modal-meta.is-saturday .schedule-modal-date {
	color: #5f8fd8;
}

.schedule-modal-meta.is-holiday .schedule-modal-date {
	color: #d94b5f;
}

/* =========================================================
	変更内容：スマホ表示時のモーダル調整
	目的：小画面でも詳細を読みやすくする
========================================================= */
@media(max-width:768px) {
	.schedule-modal-box {
		padding: 22px 18px;
	}

	.schedule-modal-head h3 {
		font-size: 1.05rem;
	}
}