.tabnav{
	width: 100%;
	margin-bottom: 8px;
	background: #fff;
	box-shadow: 0,0,0,rgba(0,0,0,0.2);
	height: 48px;
}

.tabnav ul{
	display: flex;
	justify-content: center;
	align-items: flex-end;
	overflow: visible;
	position: relative;
}

.tabnav ul li{
	width: 100px;
}

.tabnav ul li a{	
	display: block;
	text-align: center;
	background: #eeeeee;
	height: 43px;
	padding-top: 10px;
	box-sizing: border-box;
	border-top-left-radius: 5px;
	border-top-right-radius: 5px;
	box-shadow: 0 -1px 4px rgba(0,0,0,0.2);	
	transition: all 0.5s;
	margin-top: 5px;
	font-weight: bold;
}

.tabnav ul li.active{
	z-index: 200 !important;
}

.tabnav ul li.active a{
	height: 48px;
	padding-top: 13px;
	color: #fefefe !important;
	position: relative;
	overflow: visible;
	margin-top: 0px;
}

.tabnav ul li.active a:after{
	content: "";
	position: absolute;
	z-index: 200;
	left: calc(50% - 15px);
	bottom: -23px;
	border-top: solid 15px #ff0000;
	border-left: solid 15px transparent !important;
	border-right: solid 15px transparent !important;
}

.tabnav ul li.active:after{
	content: "";
	position: absolute;
	z-index: 200;
	left: 0;
	height: 0;
	width: 100%;
	bottom: -8px;
	border-bottom: solid 8px #ff0000;
}

.tabnav ul li:nth-child(1) a{
	color: #eb6877;
}
.tabnav ul li:nth-child(1).active a{
	background-color: #eb6877;
}
.tabnav ul li:nth-child(1).active:after,
.tabnav ul li:nth-child(1).active a:after{
	border-color: #eb6877;
}


.tabnav ul li:nth-child(2) a{
	color: #ea68a2;
}
.tabnav ul li:nth-child(2).active a{	
	background-color: #ea68a2;
}
.tabnav ul li:nth-child(2).active:after,
.tabnav ul li:nth-child(2).active a:after{
	border-color: #ea68a2;
}


.tabnav ul li:nth-child(3) a{
	color: #ae5da1;
}
.tabnav ul li:nth-child(3).active a{	
	background-color: #ae5da1;
}
.tabnav ul li:nth-child(3).active:after,
.tabnav ul li:nth-child(3).active a:after{
	border-color: #ae5da1;
}


.tabnav ul li:nth-child(4) a{
	color: #5f52a0;
}
.tabnav ul li:nth-child(4).active a{
	background-color: #5f52a0;
}
.tabnav ul li:nth-child(4).active:after,
.tabnav ul li:nth-child(4).active a:after{
	border-color: #5f52a0;
}



.tabnav ul li:nth-child(5) a{
	color: #448aca;	
}
.tabnav ul li:nth-child(5).active a{
	background-color: #448aca;
}
.tabnav ul li:nth-child(5).active:after,
.tabnav ul li:nth-child(5).active a:after{
	border-color: #448aca;
}



.tabnav ul li:nth-child(6) a{
	color: #00b7ee;	
}
.tabnav ul li:nth-child(6).active a{
	background-color: #00b7ee;
}
.tabnav ul li:nth-child(6).active:after,
.tabnav ul li:nth-child(6).active a:after{
	border-color: #00b7ee;
}


.tabnav ul li:nth-child(7) a{
	color: #13b5b1;	
}
.tabnav ul li:nth-child(7).active a{
	background-color: #13b5b1;
}
.tabnav ul li:nth-child(7).active:after,
.tabnav ul li:nth-child(7).active a:after{
	border-color: #13b5b1;
}


.tabnav ul li:nth-child(8) a{
	color: #1dbe60;	
}
.tabnav ul li:nth-child(8).active a{
	background-color: #1dbe60;
}
.tabnav ul li:nth-child(8).active:after,
.tabnav ul li:nth-child(8).active a:after{
	border-color: #1dbe60;
}


.tabnav ul li:nth-child(9) a{
	color: #88be2a;	
}
.tabnav ul li:nth-child(9).active a{
	background-color: #88be2a;
}
.tabnav ul li:nth-child(9).active:after,
.tabnav ul li:nth-child(9).active a:after{
	border-color: #88be2a;
}


.tabnav ul li:nth-child(10) a{
	color: #f7a403;	
}
.tabnav ul li:nth-child(10).active a{
	background-color: #ffb72c;
}
.tabnav ul li:nth-child(10).active:after,
.tabnav ul li:nth-child(10).active a:after{
	border-color: #ffb72c;
}


.tabnav ul li:nth-child(11) a{
	color: #ff802c;	
}
.tabnav ul li:nth-child(11).active a{
	background-color: #ff802c;
}
.tabnav ul li:nth-child(11).active:after,
.tabnav ul li:nth-child(11).active a:after{
	border-color: #ff802c;
}

.tabnav ul li:nth-child(12) a{
	color: #fff;
	background-color: #999;
}
.tabnav ul li:nth-child(12).active a{
	background-color: #451313;
}
.tabnav ul li:nth-child(12).active:after,
.tabnav ul li:nth-child(12).active a:after{
	border-color: #451313;
}

.tabnav ul li:nth-child(2) a span,
.tabnav ul li:nth-child(4) a span,
.tabnav ul li:nth-child(7) a span,
.tabnav ul li:nth-child(10) a span{
	display: block;
	white-space: nowrap;
}
.tabnav ul li:nth-child(4) a span{	
	-webkit-transform: scale(0.8,1);
	transform: scale(0.8,1);
}
.tabnav ul li:nth-child(7) a span{
	-webkit-transform: scale(0.6,1);
	transform: scale(0.6,1);
	margin-left: -8px;
}

.tabnav ul li:nth-child(10) a span{
	-webkit-transform: scale(0.7,1);
	transform: scale(0.7,1);
	margin-left: -5px;
}

.tabnav.is-liveActive li:first-child {
	width: 214px;
}

.tabnav.is-liveActive ul li:nth-child(1).active a {
	color: #f60215 !important;
	background-color: #222;
}

.tabnav.is-liveActive ul li:nth-child(1).active:after,
.tabnav.is-liveActive ul li:nth-child(1).active a:after {
	border-color: #222;
}


@media screen and (max-width:767px) { 	

	.tabnav{
		width: 100%;
		margin-top: 7px;
	}
	.tabnav.is-tabFixed{
		margin-top: 7px;
		margin-bottom: 0;
	}

	.tabnav ul{
		width: 100%;
		overflow-x: scroll;
		justify-content: flex-start;
		-ms-overflow-style: none;    /* IE, Edge 対応 */
        scrollbar-width: none;       /* Firefox 対応 */
	}
	.tabnav ul::-webkit-scrollbar{
		display:none;
	}

	.tabnav ul li{
		min-width: 100px;
		height: 66px;
	}
	.tabnav ul li a{
		transition: all 0s;
	}
	
	.tabnav ul li.active:after{
		bottom: 10px;
		width: 1200px;/*ボタン100px×12個*/
	}
	.tabnav ul li.active a:after{
		bottom: -18px;
	}
		
	.tabnav.is-tabFixed{
		height: 36px;
	}
	.tabnav.is-tabFixed li{
		min-width: 60px;
		height: 44px;
	}
	.tabnav.is-tabFixed li a{
		padding-top: 5px;
		height: 28px;
		font-size: 1.2rem;
	}
	.tabnav.is-tabFixed ul li.active a{
		padding-top: 10px;
		height: 34px;
	}

	.tabnav.is-tabFixed ul li.active:after {
		bottom: 8px;
		height: 4px;
		border-bottom-width: 4px;
		width: 720px;/*ボタン50px×12個*/
	}
	
	.tabnav.is-tabFixed ul li.active a:after{
		bottom:-10px;
		left: 15px;
	}
	
	.tabnav ul li:nth-child(2) a span{
		-webkit-transform: scale(0.8,1);
		transform: scale(0.8,1);
	}

	.tabnav.is-tabFixed ul li:nth-child(2) a span,
	.tabnav.is-tabFixed ul li:nth-child(4) a span,
	.tabnav.is-tabFixed ul li:nth-child(7) a span,
	.tabnav.is-tabFixed ul li:nth-child(10) a span{
		font-size: 1.1rem;
	}

	.tabnav.is-liveActive li:first-child {
		width: 185px;
		min-width: 185px;
	}
	
	.tabnav.is-liveActive ul li.active:after {
		width: 1285px;
	}
	
	.tabnav.is-liveActive.is-tabFixed ul li.active:after {
		width: 845px;
	}
	
	.tabnav.is-liveActive.is-tabFixed ul li.active a:after {
		left: 77.5px;
	}
}

@media screen and (max-width:769px) and (min-width:768px){
	.tabnav a{
		font-size: 1.4rem;
	}
}



