@charset "UTF-8";
/* =========================================================
   重要なお知らせバー（Figma: PC「重要なお知らせ」/ SP「TOP_お知らせ」）
   トップページで、表示する記事があるときだけ読み込む。
   ========================================================= */

.c-notice {
	position: relative;
	z-index: 5;
	display: flex;
	align-items: center;
	background: #d5e8ef;
	color: var(--c-navy);
}
.c-notice__badge {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	background: var(--c-navy);
	color: #fff;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .08em;
	white-space: nowrap;
}
.c-notice__list { position: relative; flex: 1; align-self: stretch; min-width: 0; }
.c-notice__item { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; visibility: hidden; transition: opacity .6s, visibility .6s; }
.c-notice__item.is-active { opacity: 1; visibility: visible; }
.c-notice__item a {
	display: block;
	overflow: hidden;
	max-width: 100%;
	color: var(--c-navy);
	font-weight: 700;
	letter-spacing: .08em;
	white-space: nowrap;
	text-overflow: ellipsis;
}
.c-notice__item a:hover { text-decoration: underline; text-underline-offset: .25em; }

/* ---------- PC ---------- */
@media (min-width: 1024px) {
	.c-notice { gap: calc(40 * var(--u)); height: calc(56 * var(--u)); padding: 0 calc(24 * var(--u)) 0 calc(18 * var(--u)); border-radius: calc(6 * var(--u)); }
	.c-notice__badge { width: calc(148 * var(--u)); height: calc(38 * var(--u)); border-radius: calc(4 * var(--u)); font-size: max(calc(14 * var(--u)), 12px); }
	.c-notice__item a { font-size: max(calc(15 * var(--u)), 12px); }

	/* TOP: MV の上部に置き、MV 全体を 100px 下げる */
	.c-notice--mv { position: absolute; left: 50%; top: calc(150 * var(--u)); width: calc(1200 * var(--u)); translate: -50% 0; }
	.p-mv.has-notice { height: calc(clamp(calc(800 * var(--u)), 100svh, calc(1024 * var(--u))) + calc(100 * var(--u))); }
	.p-mv.has-notice .p-mv__stage { top: calc(100 * var(--u)); }
}

/* ---------- SP ---------- */
@media (max-width: 1023px) {
	.c-notice { gap: calc(16 * var(--s)); height: calc(46 * var(--s)); padding: 0 calc(12 * var(--s)) 0 calc(10 * var(--s)); border-radius: calc(6 * var(--s)); }
	.c-notice__badge { width: calc(100 * var(--s)); height: calc(25 * var(--s)); border-radius: calc(3 * var(--s)); font-size: max(calc(11 * var(--s)), 10px); letter-spacing: .04em; }
	/* スマホは高さを変えずに 2 行まで表示する */
	.c-notice__item a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; font-size: max(calc(12 * var(--s)), 11px); line-height: 1.4; letter-spacing: .04em; white-space: normal; word-break: auto-phrase; }

	/* TOP: MV の上部に置き、MV 全体を 60px 下げる */
	.c-notice--mv { position: absolute; left: calc(20 * var(--s)); right: calc(20 * var(--s)); top: calc(80 * var(--s)); }
	.p-mv.has-notice { height: calc(800 * var(--s)); }
	.p-mv.has-notice .p-mv__stage { top: calc(60 * var(--s)); }
}

@media (prefers-reduced-motion: reduce) {
	.c-notice__item { transition: none; }
}
