@charset "UTF-8";

/* module_01-v3 の css/index.css より、TOPへ戻るフローティングバナー（.to-top）のみを抽出 */

:root {
	--line-seed-jp: 'LINE Seed JP', sans-serif;
}

/* --------- to-top --------- */
/* 元のCSSでは *,*::before,*::after { box-sizing: border-box; } が
   .content_wrap 配下限定のリセットとして効いており、.to-top もその対象だった。
   単体モジュールにはそのラッパーが無いため、ここで明示的に指定して
   見た目（padding-top 分でボックスが膨張しない）を厳密に再現する。 */
.to-top {
	display: block;
	box-sizing: border-box;
	width: 60px;
	height: 56px;
	padding-top: 24px;
	background: url(../img/bg_to-top01.svg) no-repeat center/cover;
	filter: drop-shadow(1px 1px 0 #221E20);
	color: #221E1F;
	font-size: 11px;
	font-weight: 800;
	font-family: var(--line-seed-jp);
	line-height: 1.64;
	text-align: center;
	text-decoration: none;
	position: fixed;
	bottom: 16px;
	right: 8px;
	z-index: 100;
	transition: opacity .3s, filter .3s, translate .3s;
	opacity: 0;
	&::before {
		content: '';
		display: block;
		width: 8px;
		height: 5px;
		background: #221E1F;
		clip-path: polygon(50% 0,100% 100%,0 100%);
		position: absolute;
		top: 19px;
		left: 50%;
		translate: -50%;
	}
	&.is-visible {
		opacity: 1;
	}
	&:active {
		filter: none;
		translate: 1px 1px;
	}
}

@media (min-width:751px) {
	.to-top {
		width: 84px;
		height: 78px;
		padding-top: 34px;
		font-size: 15px;
		bottom: 25px;
		right: 40px;
		z-index: 100;
		transition: opacity .3s, filter .3s, translate .3s;
		opacity: 0;
		&::before {
			width: 11px;
			height: 7px;
			top: 27px;
		}
		&.is-visible {
			opacity: 1;
		}
		&:hover {
			filter: none;
			translate: 1px 1px;
		}
	}
}
