/*****************************************************************************
タブ切り替えのためのinput ラジオボタンを利用したcss
関連するtab-switch (input), tab-label, tab-contentごとに塊として、同じ階層に並ぶ前提。
全てのtab-labelを先に表示するためorder:-1を指定
******************************************************************************/
.tab-wrap {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	
}
.tab-label {	
	order: -1;
	position: relative;
	background-color: transparent;
}
.tab-content {
	width: 100%;
	height: 0;
	overflow: hidden;
	opacity: 0;
}
.tab-switch:checked+.tab-label+.tab-content {
	height: auto;
	overflow: auto;
	opacity: 1;
	transition: .5s opacity;
}
.tab-switch, .tab-cancel {
	display: none;
}
/********************************************************
連携大学院ページのタブメニューためのデザイン指定 
*********************************************************/

.tab-label.affiliate-tab-menu {
	position: relative;
	display: block;
	color: black;	
	background: #f8f8f8;
	border: 1px solid #e0e0e0;
	border-radius: 5px;
	font-size: 1.4rem;
	font-weight: 300;
	white-space: nowrap;
	text-align: center;
	padding: 1em .5em;
	cursor: pointer;
	width: 49%;
	margin-right: 1%;
}
.tab-label.affiliate-tab-menu:hover {
	background: #fff
}
/* アクティブなタブ */
.tab-switch:checked+.tab-label.affiliate-tab-menu {
	border: 1px solid #000;
	font-weight: 700;
	background: #fff;
}

@media(min-width:768px) {
	.tab-label.affiliate-tab-menu {width: 300px;margin: auto 1em}
     	.tab-switch:not(:checked)+.tab-label.affiliate-tab-menu:before {
		position: absolute;
		content: '';
		top: 0;
		bottom: 0;
		width: 9px;
		height: 9px;
		margin: auto;
		border: solid #e0e0e0;
		border-width: 2px 2px 0 0;
		-webkit-transform: rotate(45deg);
		transform: rotate(45deg);
		left: 10px;
		transition: 500ms;
	} 
	.tab-switch:not(:checked)+.tab-label.affiliate-tab-menu:hover:before {
		left: 20px
	}
}

/********************************************************
イベントページのタブメニューためのデザイン指定 
*********************************************************/
.tab-wrap.-green {
	background: linear-gradient(to bottom, green 0, darkgreen 30vw, #fff 30vw, #fff 100%)
}
.tab-wrap.-orange {
	background: linear-gradient(to bottom, orange 0, darkorange 30vw, #fff 30vw, #fff 100%)
}
.tab-wrap.-blue {
	background: linear-gradient(to bottom, blue 0, blue 30vw, #fff 30vw,#fff 100%)
}
.tab-label.event-tab-menu {
	color: White;	
	border: 1px solid #ffffff;
	font-size:4.266vw;
	font-weight: 600;
	white-space: nowrap;
	text-align: center;
	padding: 1em .5em;
	cursor: pointer;
	width: 50%;
	height: 15vw;
}
.tab-label.event-tab-menu:hover {
	background-color: rgba(0,0,0,.3)
}
/* アクティブなタブ */
.tab-switch:checked+.tab-label.event-tab-menu {
	background-color: rgba(0,0,0,.3);
}

@media(min-width:768px) {
	.tab-label.event-tab-menu {
		border-top: none;
		border-bottom: none;
		width: 25%;
		max-width: 192px;
		font-size: 1.6rem;
		height:60px;
	}
	.tab-wrap.-green {
		background: linear-gradient(to bottom, green 0, darkgreen 60px, #fff 60px,#fff 100%)
	}
	.tab-wrap.-orange {
		background: linear-gradient(to bottom, orange 0, darkorange 60px, #fff 60px,#fff 100%)
	}
	.tab-wrap.-blue {
		background: linear-gradient(to bottom, blue 0, blue 60px, #fff 60px,#fff 100%)
	}
}
/*タブ間の移動のためのscriptに関連して*/
.tab-link {
	color: #5072a5;
	cursor: pointer
}
.tab-link:hover {
	text-decoration: underline
}

/***********************************
ダイバーシティページの図の詳細の表示切り替えのため
タブを利用したスタイル tab-panel
************************************/
.tab-label.diversity-tab-panel {order: 0; width: 80%;}
.tab-label.diversity-tab-panel {
	font-size:4.2666vw;
	font-weight: 400;
	text-align: center;
	height: auto;		
}
.cancel-label {font-size: 4.2666vw; font-weight: 400; text-align: center;}
.tab-label.diversity-tab-panel label, .cancel-label label {
color: blue;}
.tab-label.diversity-tab-panel:not(:first-of-type){margin-top: 10vw;}
.tab-label.diversity-tab-panel label:hover, .cancel-label label:hover {
	text-decoration: underline;
}

@media(min-width:768px) {
	.tab-label.diversity-tab-panel {
		margin-top: 0;
		width: 33.33%;
		font-size: 1.6rem;
		order: -1
	}
	.cancel-label {font-size: 1.6rem;}
	.tab-label.diversity-tab-panel:not(:first-of-type){margin-top: 0}
	.cancel-label {
		margin: 0 auto;
	}
}
@media(min-width:1440px) {
	.tab-label.diversity-tab-panel {
		font-size: 1.11111vw;
	}
	.cancel-label {font-size: 1.11111vw;}
}
/* ラジオボタン非表示 */
.tab-cancel {
	display: none;
}
/*.diversity-item-title {
	margin-bottom: 1em;
	font-size: 4.8vw;
	font-weight: bold;
	text-align: center;
	color: #000000
}
.diversity-item-title span {
	font-size: 4.266vw;
}
@media(min-width:768px) {
	.diversity-item-title {
		font-size: 1.8rem;		
	}
	.diversity-item-title span {
		font-size: 1.6rem;
	}
}
@media(min-width:1440px) {
	.diversity-item-title {
		font-size: 1.25vw;
	}
	.diversity-item-title span {
		font-size: 1.11111vw;
	}
}*/
