/* ========================================
 * common.css overrides for books pages
 * booksページはmodernなHTML構造を使用しているため、
 * 古いスタイルを上書きする必要がある
 * ======================================== */


/* site-pagetop: Modern implementation with <div><img> structure */
@media screen and (min-width: 769px) {
	.site-pagetop {
		width: 50px;
		height: 50px;
	}
}

@media screen and (min-width: 769px) {
	.site-pagetop a {
		width: 50px;
		height: 50px;
		display: block;
	}
	.site-pagetop a::after {
		width: 100%;
	}
}

.site-pagetop a {
	height: 80px;
	text-indent: -5000px;
}

@media screen and (max-width: 768px) {
	.site-pagetop a {
		height: 60px;
	}
}

@media (min-width: 768px) {
	.site-pagetop a:hover > div img {
		-webkit-filter: brightness(0) invert(1);
		filter: brightness(0) invert(1);
	}
	.site-pagetop a:hover > div {
		background-color: #a54402;
		border-color: #a54402;
	}
}

.site-pagetop a > div {
	width: 50px;
	height: 50px;
	box-sizing: border-box;
	display: -webkit-box;
	display: -webkit-flex;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-align: center;
	-webkit-align-items: center;
	-ms-flex-align: center;
	align-items: center;
	-webkit-box-pack: center;
	-webkit-justify-content: center;
	-ms-flex-pack: center;
	justify-content: center;
	border-radius: 25px;
	border: 3px solid #ed6103;
	padding: 10px;
	background: #fff;
	-webkit-transition: background-color .3s ease, border-color .3s ease, color .3s ease;
	transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}

/* Remove ::after pseudo-element (old implementation) */
.site-pagetop a::after {
	display: none !important;
}

/* Override: from home_common_2.css */
@media screen and (max-width: 768px) {
	.site-pagetop a > div {
		border: 2px solid #ed6103;
		width: 46px;
		height: 46px;
	}
}
