/* ━━━ リンクティッカー（横スクロールバナー帯） ━━━ */
.link-ticker {
	background: #0F172A;
	overflow: hidden;
	position: relative;
	padding-block: .6rem;
	border-top:    1px solid rgba(255,255,255,.07);
	border-bottom: 1px solid rgba(255,255,255,.07);
}

/* 左右をグラデーションでフェードアウト */
.link-ticker::before,
.link-ticker::after {
	content: '';
	position: absolute;
	top: 0; bottom: 0;
	width: 72px;
	z-index: 2;
	pointer-events: none;
}
.link-ticker::before {
	left: 0;
	background: linear-gradient( to right, #0F172A 0%, transparent 100% );
}
.link-ticker::after {
	right: 0;
	background: linear-gradient( to left, #0F172A 0%, transparent 100% );
}

/* ━━━ トラック（2コピーを並べて -50% スクロールでシームレスループ） ━━━ */
.link-ticker__track {
	display: flex;
	width: max-content;
	animation: ticker-scroll 40s linear infinite;
	will-change: transform;
}

/* ホバー時・フォーカス時は JS で pauseState を切り替える */
.link-ticker__track.is-paused {
	animation-play-state: paused;
}

@keyframes ticker-scroll {
	from { transform: translateX( 0 ); }
	to   { transform: translateX( -50% ); }
}

/* ━━━ グループ（コンテンツ1周分） ━━━ */
.link-ticker__group {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* ━━━ 各リンク ━━━ */
.link-ticker__item {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	color: rgba(255,255,255,.78);
	font-size: .8rem;
	font-weight: 700;
	white-space: nowrap;
	padding: .15rem .9rem;
	transition: color .2s ease;
	text-decoration: none;
	line-height: 1;
}
.link-ticker__item:hover,
.link-ticker__item:focus-visible {
	color: #FFD700;
	text-decoration: underline;
	text-underline-offset: 3px;
}
.link-ticker__item:focus-visible {
	outline: 2px solid #FFD700;
	outline-offset: 2px;
	border-radius: 2px;
}

/* ━━━ セパレーター ━━━ */
.link-ticker__sep {
	color: #0055FF;
	font-size: .5rem;
	flex-shrink: 0;
	opacity: .75;
	margin-inline: .15rem;
	user-select: none;
}

/* ━━━ 自動スクロールの一時停止トグル（WCAG 2.2.2 Pause,Stop,Hide） ━━━ */
.link-ticker__toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	z-index: 3;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(255,255,255,.28);
	border-radius: 50%;
	background: #0F172A;
	color: #fff;
	cursor: pointer;
	line-height: 1;
	transition: background .2s ease;
}
.link-ticker__toggle:hover { background: #1E293B; }
.link-ticker__toggle:focus-visible {
	outline: 2px solid #FFD700;
	outline-offset: 2px;
}
.link-ticker__toggle-icon::before {
	content: "\275A\275A"; /* 再生中は一時停止アイコン（❚❚） */
	font-size: .62rem;
	letter-spacing: 1px;
}
.link-ticker__toggle[aria-pressed="true"] .link-ticker__toggle-icon::before {
	content: "\25B6"; /* 停止中は再生アイコン（▶） */
	font-size: .72rem;
}

/* ━━━ アクセシビリティ: 動きを減らす設定 ━━━ */
@media (prefers-reduced-motion: reduce) {
	.link-ticker__track { animation: none; }
	.link-ticker__group + .link-ticker__group { display: none; }
	.link-ticker {
		overflow-x: auto;
		scrollbar-width: thin;
	}
	/* 動きが無いので停止ボタンは不要（混乱を避けるため非表示）。 */
	.link-ticker__toggle { display: none; }
}
