@charset "UTF-8";


html,
body{
	background-color: #e0e0e0;
	color: #000;
}

.globalhead a{
	display: block;
	white-space: nowrap;
	text-align: center;
	margin: 0 auto;
	padding: 0 var(--lrpadding);
	text-decoration: none !important;
	text-indent: -10000px;
	font-size: 14px;
	line-height: 16px;
	background-color: transparent;
	max-width: 280px;
	position: relative;
	border-radius: var(--gridradius);
}
.globalhead a[href]{
	opacity: 1;
}

.globalhead p{
	margin: 0;
}
.globalhead .globalnav{
	display: block;
	margin: 0;
}
.globalhead ul{
	display: flex;
	justify-content: space-around;
	list-style: none;
	align-items: center;
	margin: 0 auto;
	padding: 0;
	max-width: calc((345px + 92%) / 2);
}
.globalhead ul li{
	margin: 0;
	padding: 0;
	text-align: center;
}



/* ヘッダのロゴ */
.globalhead p a span{
	display: block;
	width: 280px;
	height: 54px;
	line-height: 54px;
	margin: 0 auto;

	text-align: center;
	white-space: nowrap;
	color: transparent;
	overflow: hidden;
	
	position: relative;
}
.globalhead p a span:before,
.globalhead p a span:after{
	content: "";
	display: block;
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	pointer-events: none;
}
.globalhead p a span:before{
	background-color: var(--globalheadcolour);
	mask-image: var(--mainlogo-image-72dpi);
	mask-size: 280px auto;
	mask-position: 0 -56px;
}
.globalhead p a span:after{
	background-image: var(--mainlogo-image-72dpi);
	background-size: 280px auto;
	background-position: 0 -2px;
}
@media
	(min-resolution:1.1dppx),
	(min-width:1980px) and (min-height:1197px)
{
	.globalhead p a span:before{
		mask-image: var(--mainlogo-image-144dpi);
	}
	.globalhead p a span:after{
		background-image: var(--mainlogo-image-144dpi);
	}
}
@media
	(min-resolution:2.1dppx),
	(min-width:1980px) and (min-height:1197px) and (min-resolution:1.5dppx)
{
	.globalhead p a span:before{
		mask-image: var(--mainlogo-image-216dpi);
	}
	.globalhead p a span:after{
		background-image: var(--mainlogo-image-216dpi);
	}
}
@supports not (mask-image: var(--mainlogo-image-72dpi)) {
	.globalhead p a span:before{
		background-image: url(navmenu/logo_72dpi.png);
		background-position: 0 -56px;
		background-color: #fff;
	}
	.globalhead p a span:after{
		background-image: url(navmenu/logo_72dpi.png);
		background-position: 0 -2px;
	}
}




/* ヘッダのナビゲーションのアイコンと文字 */
.globalhead ul a{
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 56px;
}
.globalhead ul a span,
.globalhead ul a:before{
	display: block;
	mask-size: 128px auto;
	background-size: 128px auto;
	mask-image: var(--menu-image-mono);
	background-color: var(--globalheadcolour);
}
@supports not (mask-image: var(--menu-image-mono)){
	.globalhead ul a span,
	.globalhead ul a:before{
		background-image: url(navmenu/b.svg?v3);
		background-color: #fff;
	}
}

.globalhead ul a:before{
	content: "";
	width: 36px;
	height: 36px;
	margin: 0 auto;
}
.globalhead ul a span{
	height: 20px;
	line-height: 20px;
	margin: 0 auto;

	text-align: center;
	white-space: nowrap;
	color: transparent;
	overflow: hidden;
	
	zoom: 0.87;
}
@media (min-width:375px){
	.globalhead ul a span{
		zoom: 1;
	}
}
@media (min-width:1004px){
	.globalhead ul a{
		flex-direction: row;
		justify-content: center;
		align-items: center;
		min-height: 54px;
	}
	.globalhead ul a:before{
		margin: 0 6px 0 0;
	}
	.globalhead ul a span{
		margin: 0;
	}
}

.mouseUI .globalhead ul:before{
	/*キャッシュ機構*/
	content: "";
	display: block;
	width: 1px;
	height: 1px;
	position: absolute;
	top: 0;
	right: 0;
	opacity: 0.01;
}
.globalhead ul a[aria-selected="true"]:before,
.mouseUI .globalhead ul a[href]:hover:before,
.mouseUI .globalhead ul a[href]:active:before,
.mouseUI .globalhead ul:before{
	background-color: transparent !important;
	mask-image: none;
	background-image: var(--menu-image-colour);
}
@supports not (mask-image: var(--menu-image-mono)){
	.globalhead ul a[aria-selected="true"]:before{
		background-image: url(navmenu/c.svg);
	}
}

.globalhead ul .webcomics a:before{
	background-position: -92px 0;
	mask-position: -92px 0;
}
.globalhead ul .books a:before{
	background-position:  0 -84px;
	mask-position: 0 -84px;
}
.globalhead ul .apps a:before{
	background-position: -74px -84px;
	mask-position: -74px -84px;
}
.globalhead ul .others a:before{
	background-position: -37px -84px;
	mask-position: -37px -84px;
}

.globalhead ul .webcomics a span{
	width: 91px;
	background-position: 0 0;
	mask-position: 0 0;
}
.globalhead ul .books a span{
	width: 48px;
	background-position: 0 -21px;
	mask-position: 0 -21px;
}
.globalhead ul .apps a span{
	width: 99px;
	background-position: 0 -42px;
	mask-position: 0 -42px;
}
.globalhead ul .others a span{
	width: 54px;
	background-position: 0 -63px;
	mask-position: 0 -63px;
}
