@charset "UTF-8";

/* 全デバイス共通（PC・SP・タブレット）。標準スクロールバーを隠してカスタムバーに置き換える
   JS が初期化に成功したときだけ html に付く .is-CustomScrollbar 配下で隠す（JS 非対応環境は標準バーのまま） */
.is-CustomScrollbar .js-CustomScrollbar {
	scrollbar-width: none;
	-ms-overflow-style: none;
}
.is-CustomScrollbar .js-CustomScrollbar::-webkit-scrollbar {
	display: none;
	/* display: none が効かない古い iOS Safari 向けに、幅・高さも 0 にして確実に見えなくする */
	-webkit-appearance: none;
	width: 0;
	height: 0;
	background: transparent;
}
.comScrollbar {
	--comScrollbar-PosiR: 0;
	--comScrollbar-W: 5px;
	--comScrollbarThum-W: 100%;
	--comScrollbar-BG: #25262c;
	position: absolute;
	border-radius: var(--comScrollbar-W);
	background: var(--comScrollbar-BG);
	z-index: 10;
}
.comScrollbar:not(.is-x) {
	right: var(--comScrollbar-PosiR);
	width: var(--comScrollbar-W);
}
.comScrollbar.is-x {
	bottom: 0;
	width: auto;
	height: var(--comScrollbar-W);
}
.comScrollbar-Thumb {
	--comScrollbarThumb-BG: #a3a4a6;
	position: absolute;
	left: calc((100% - var(--comScrollbarThum-W)) / 2);
	width: var(--comScrollbarThum-W);
	min-height: 20px;
	background: var(--comScrollbarThumb-BG);
	border-radius: var(--comScrollbar-W);
	cursor: grab;
	transition: background 0.3s;
	/* ドラッグ中にブラウザ標準のスクロール・ズームが発火しないようにする */
	touch-action: none;
}
.comScrollbar.is-x .comScrollbar-Thumb {
	top: 0;
	width: auto;
	height: 100%;
	min-height: unset;
	min-width: 20px;
}

/* ホバー演出はマウス操作の環境のみ */
@media (hover: hover) and (pointer: fine) {
	.comScrollbar-Thumb:hover {
		--comScrollbarThumb-BG-Hover: rgba(255, 255, 255, 0.8);
		background: var(--comScrollbarThumb-BG-Hover);
	}
}

/* タッチ操作では見た目を変えずに当たり判定だけ広げる（指で掴みやすくする） */
@media (pointer: coarse) {
	.comScrollbar-Thumb::before {
		content: "";
		position: absolute;
		top: 0;
		right: -12px;
		bottom: 0;
		left: -12px;
	}
	.comScrollbar.is-x .comScrollbar-Thumb::before {
		top: -12px;
		right: 0;
		bottom: -12px;
		left: 0;
	}
}
