.tab {
	/*zoom: 1;*/
	list-style: none;
	margin: 0 auto;
	padding: 0;
	padding-top: 0.5rem;
	width: calc(940/960*100%);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: stretch;
	align-content: space-around;
}
.tab-fair {
	/*zoom: 1;*/
	list-style: none;
	margin: 0 auto;
	padding: 0;
	padding-top: 0.5rem;
	width: calc(940/960*100%);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	align-items: stretch;
	align-content: space-around;
}
/*#tab:after { content:"."; display: block; height:0px; clear:both; line-height:0; visibility:hidden; }*/
.tab li {
	text-align: center;
	min-height: 1cm;
	flex: 1 2 auto;
	margin: 0 calc(10/960*100%) 0.5rem;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	background-color: #F5F5F5;
	border-radius: 4px;
}
.tab-fair li {
	text-align: center;
	min-height: 1cm;
	flex: 1 2 auto;
	margin: 0 calc(10/960*100%) 0.5rem;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	background-color: #fff;
	border-radius: 4px;
	border: 1px solid #bababa;
}
.tab li:last-child {
	background: none;
}
.tab-fair li:last-child {
	background: none;
}
.tab li a {
	display: block;
	width: 100%;
	padding: 0 1rem;
	text-decoration: none;
	color: #4d4d4d;
	/*font-weight: bold;*/
	line-height: 2.1rem;
	min-height: 1cm;
	border-radius: 4px;
}
.tab-fair li a {
	display: block;
	width: 100%;
	padding: 0 0.5rem;
	text-decoration: none;
	color: #4d4d4d;
	/*font-weight: bold;*/
	line-height: 2.75;
	min-height: 1cm;
	border-radius: 4px;
}
.tab li a:hover {
	/*background: #c95560;*/
	color: #fff;
	font-weight: bold;
	border-radius: 4px;
}
.tab-fair li a:hover {
	/*background: #c95560;*/
	color: #fff;
	font-weight: bold;
	border-radius: 4px;
}
.tab li.active,
.tab li.active a,
.tab li.active a:hover {
	color: #fff;
	border-radius: 4px;
}
.tab-fair li.active,
.tab-fair li.active a,
.tab-fair li.active a:hover {
	color: #fff;
	border-radius: 4px;
}
#tab1-fair a:hover,
#tab1-fair.active,
#tab1-fair.active a,
#tab1-fair.active a:hover,
#d-tab-fair01 h4 {
    background: #37BAAD;
	border: 1px solid #37BAAD;
}
#tab2-fair a:hover,
#tab2-fair.active,
#tab2-fair.active a,
#tab2-fair.active a:hover,
#d-tab-fair01 h4   {
    background: #2161B5;
}
#tab1 a:hover,
#tab1.active,
#tab1.active a,
#tab1.active a:hover,
#d-tab-kouza h4 {
    background: #223F65;
}
#tab2 a:hover,
#tab2.active,
#tab2.active a,
#tab2.active a:hover,
#d-tab-shidosha h4 {
	background: #223F65;
}
#tab3 a:hover,
#tab3.active,
#tab3.active a,
#tab3.active a:hover,
#d-tab-grp h4 {
	background: #223F65;
}

#tab4 a:hover,
#tab4.active,
#tab4.active a,
#tab4.active a:hover,
#d-tab-daigaku h4 {
    background: #223F65;
}

#tab5 a:hover,
#tab5.active,
#tab5.active a,
#tab5.active a:hover,
#d-tab-odekake h4 {
    /*background: #7F5C3C;*/
    background: #223F65;
}

#tab6 a:hover,
#tab6.active,
#tab6.active a,
#tab6.active a:hover,
#d-tab-kiki h4 {
    background: #223F65;
}

#tab7 a:hover,
#tab7.active,
#tab7.active a,
#tab7.active a:hover,
#d-tab-shisetu h4 {
    background: #223F65;
}

#tab8 a:hover,
#tab8.active,
#tab8.active a,
#tab8.active a:hover,
#d-tab-bunkazai h4 {
    background: #223F65;

}

#tab9 a:hover,
#tab9.active,
#tab9.active a,
#tab9.active a:hover,
#d-tab-shutsudo h4 {
    background: #223F65;
}

#tab10 a:hover,
#tab10.active,
#tab10.active a,
#tab10.active a:hover,
#d-tab-kodomo h4  {
    background: #223F65;
}

#tab10 {
	background: #F5F5F5;
	border-radius: 4px;
}

#tab-fair01 a:hover,
#tab-fair01.active,
#tab-fair01.active a,
#tab-fair01.active a:hover,
#d-tab-fair01 h4   {
    background: #37BAAD;
    border: 1px solid #37BAAD;
}

#tab-fair02 a:hover,
#tab-fair02.active,
#tab-fair02.active a,
#tab-fair02.active a:hover,
#d-tab-fair02 h4 {
	background: #2161B5;
    border: 1px solid #2161B5;
}

#detail-fair {
	margin: 0 auto;
	overflow: hidden;
	/*overflow: auto;*/
	/*background: #f7f7f7;*/
	/*background: #f9f9f9;*/
	border: 1px solid #ccc;
	width: calc(940/960*100%);
	padding-bottom: 1rem;
	/*height: 25rem;*/
	height: auto;
	background-color: #FFF;
}

#detail {
	margin: 0 auto;
	overflow: hidden;
	/*overflow: auto;*/
	/*background: #f7f7f7;*/
	/*background: #f9f9f9;*/
	border: 1px solid #ccc;
	width: calc(940/960*100%);
	padding-bottom: 1rem;
	/*height: 25rem;*/
	height: auto;
	background-color: #fdfdfd;
}
.tabbox {
	display: none;
}

.tabbox p {
	color: #000;
}

.tabbox h4 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
	padding: 0.6rem;
    text-align: center;
    font-size: 1.25rem;
	letter-spacing: 0.1rem;
}

.tabbox h5 {
	margin: 0;
}

/*↓ここから新規tab指定*/
.formtab {
	margin: 0 1.5rem;
}
.tabtext {
	text-align: center;
	margin: 2rem 1rem 1rem 1rem;
	font-size: 1.1rem;
}

/*↑ここまで新規tab指定*/

@media screen and (min-width: 60rem) {
	.tab {
		/*zoom: 1;*/
		list-style: none;
		margin: 0 auto;
		padding: 0;
		padding-top: 0.5rem;
		/*width: calc(780/960*100%);*/
		/*toda*/
		/*border: 1px solid red;*/
	}
	/*#tab:after { content:"."; display: block; height:0px; clear:both; line-height:0; visibility:hidden; }*/

	.tabbox h5 {
		margin: 0;
	}
}

@media screen and (max-width: 480px) {
	.formtab {
	margin: 0rem;
}
}
