/*
 * 「ページの先頭へ」ボタン（inc/back-to-top.php）。本番の ewebot（#back_to_top）と同じ:
 * 右下 40px（600px 以下は 25px）に 40px 四方・枠線 2px（テーマカラー 2）・角丸 5px。
 * 普段は透明で、.is-visible（assets/js/back-to-top.js）で表示する。ホバーで背景がテーマカラー 2。
 */

.cl-back-to-top {
	position: fixed;
	right: 40px;
	bottom: 40px;
	z-index: 3;
	pointer-events: none;
}

.cl-back-to-top__link {
	position: relative;
	display: block;
	width: 40px;
	height: 40px;
	border: 2px solid var(--wp--preset--color--theme-2);
	border-radius: 5px;
	background: #fff;
	color: #fff;
	font-size: 0;
	text-align: center;
	opacity: 0;
	pointer-events: none;
	cursor: pointer;
	transition: all 0.3s;
}

/* 上向きの矢印（Font Awesome 4 の angle-up） */
.cl-back-to-top__link::before {
	content: "\f106";
	position: absolute;
	top: 50%;
	left: 50%;
	z-index: 1;
	font: normal 400 26px FontAwesome;
	transform: translate(-50%, -50%);
}

.cl-back-to-top__link.is-visible {
	opacity: 1;
	pointer-events: auto;
}

.cl-back-to-top__link.is-visible:hover {
	background: var(--wp--preset--color--theme-2);
	color: #fff;
}

@media (width <= 600px) {
	.cl-back-to-top {
		right: 25px;
		bottom: 25px;
	}
}
