/* ==========================================================================
	company index
========================================================================== */
/*--------------
	content
--------------*/

.company_index li {
	margin-right: 4%;
	margin-bottom: 4%;
	width: 22%;
}

.company_group li {
	margin-left: 4%;
	margin-bottom: 4%;
}

.company_index li:nth-child(4n) {
	margin-right: 0;
}

.content .company_index li a,
.company_group li a {
	display: table;
	width: 100%;
	text-align: center;
	color: #000;
	text-decoration: none;
	backface-visibility: hidden;
}
.content .company_index li a p,
.company_group li a p {
	margin: 0;
	backface-visibility: hidden;
}

.company_index li a .img img,
.company_group li a .img img {
	width: 100%;
}

@media screen and (min-width: 961px) {
	.content .company_index li a:hover,
	.company_group li a:hover {
		color: #FFF;
		box-shadow: 0 0 10px #CCC;
		background: #01a0e9;
	}
}
.company_index li a .img img,
.company_group li a .img img {
	vertical-align: bottom;
	box-sizing: border-box;
}
.company_index li a .ttl,
.company_group li a .ttl {
	border-left: 1px solid #E5E5E5;
	border-bottom: 1px solid #E5E5E5;
	border-right: 1px solid #E5E5E5;
	box-sizing: border-box;
}
.company_index li a:hover .ttl,
.company_group li a:hover .ttl {
	border-color: #01a0e9;
}
.company_index li a .ttl .cell,
.company_group li a .ttl .cell {
	padding: 10px 5px;
	height: 40px;
	line-height: 1.4;
}

.list_group li,
.content .list_group li:nth-child(5n) {
	box-sizing: border-box;
	width: 20%;
	position: relative;
}
.list_group li:last-child {
	-moz-width: -moz-calc( 20% + 1px );
	-webkit-width: -webkit-calc( 20% + 1px );
	width: calc( 20% + 1px );
}
.list_group li a {
	padding: 7px 15px;
	display: block;
	border-left: 1px dotted #333;
	border-bottom: 1px dotted #333;
}

.list_group li:nth-child(-n+5) a {
	padding-top: 0;
}
.list_group li:nth-child(n+11) a {
	border-bottom: 0;
}

.list_group li a:hover {
	filter: alpha(opacity=70);
	-moz-opacity:0.7;
	opacity:0.7;
}

.list_group li:nth-child(5n) a,
.list_group li:last-child a {
	border-right: 1px dotted #333;
}
.list_group li a img {
	vertical-align: bottom;
}

.list_group li:before,
.list_group li:nth-child(5n):after,
.list_group li:last-child:after {
	content: "";
	display: block;
	width: 18px;
	height: 18px;
	background: #FFF;
	position: absolute;
	left: -9px;
	bottom: -9px;
	z-index: 1;
}
.list_group li:nth-child(5n):after,
.list_group li:last-child:after {
	left: auto;
	right: -9px;
}

@media screen and (max-width: 960px) {
	.company_index li,
	.company_group li {
		width: 30%;
		margin-right: 5%;
		margin-bottom: 5%;
	}
	.company_index li:nth-child(4n) {
		margin-right: 5%;
		margin-bottom: 5%;
	}
	.company_index li:nth-child(3n) {
		margin-right: 0;
		margin-bottom: 0;
	}
	.company_index li a .ttl .cell,
	.company_group li a .ttl .cell {
		padding: 5px;
	}
}

@media screen and (max-width: 600px) {
	.company_index li,
	.company_group li {
		width: 100%;
		margin-right: 0;
		font-size: 2rem;
	}
	.company_index li:not(:last-child),
	.company_group li:not(:last-child) {
		margin-bottom: 8%;
	}

	.content .list_group li,
	.content .list_group li:nth-child(5n) {
		width: 50%;
	}
	.list_group li:nth-child(5n) a {
		border-right: 0;
	}
	.list_group li:nth-child(2n) a,
	.list_group li:last-child a {
		border-right: 1px dotted #333;
	}
	.list_group li:nth-child(-n+5) a {
		padding-top: 7px;
	}
	.list_group li:nth-child(-n+2) a {
		padding-top: 0;
	}
	.list_group li:nth-child(n+11) a {
		border-bottom: 1px dotted #333;
	}
	.list_group li:nth-child(5n):after {
		display: none;
	}
	.list_group li:nth-child(2n):after {
		content: "";
		display: block;
		width: 18px;
		height: 18px;
		background: #FFF;
		position: absolute;
		left: -9px;
		bottom: -9px;
		z-index: 1;
	}
	.list_group li:nth-child(2n):after {
		left: auto;
		right: -9px;
	}

}


/* 20190717追加 */

.company_groupsp {
	display: none;
}

@media screen and (min-width: 601px) {
	.company_groupsp.second_block {
	display: none;
}
}

/*@media screen and (min-width: 961px) {
	.wrapper {
	padding-top: 0 !important;
	}
}*/
.company_group {
	display: -webkit-flex;
	display: -moz-flex;
	display: -ms-flex;
	display: -o-flex;
	display: flex;
	justify-content: space-between;
}

.company_group li a .ttl {
	background-color: #009FE8;
}

.company_group.second_block {
	flex-wrap: wrap;
}

.company_group.first_block li {
	width: 50%;
	margin-right: 0;
}

.company_group.first_block li span,
.company_group li a .ttl .cell {
	position: relative;
	color: #fff;
}

.company_group li a .ttl .cell {
	padding: .5rem 0;
	line-height: 1.6;
}



.company_group.first_block li span::after,
.company_group li a .ttl .cell::after {
	position: absolute;
	right: 15px;
	top: 27%;
	content: '\f105';
	font-family: 'Font Awesome 5 Free';
	font-weight: bold;
	color: #fff;
	z-index: 1;
}


.company_group.second_block li {
	width: 30%;
	margin-right: 0;
}

.company_group.second_block li:nth-child(4),
.company_group.second_block li:nth-child(7) {
	margin-left: 0;
}

.company_group.first_block li:first-child,
.company_group.second_block li:first-child {
	margin: 0;
}

.company_group.second_block li:last-child {
	background-color: transparent;
}

.company_group li:last-child a .ttl {
	border: none;
}


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


	.company_group.second_block,
	.sp {
		display: none;
	}
	.company_groupsp.second_block {
		display: block;
	}
	.company_group.first_block li,.company_group.second_block li {
		width: 100%;
		flex-direction: row;
	}
	.company_group.second_block li a p {
		text-align: left;
	}
	.company_group.second_block li .img img {
		width: 30%;
	}
	.company_groupsp.second_block {
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		display: flex;
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
		padding-top: 2rem;
	}
	.company_groupsp.second_block li {
		width: 100%;
		margin-bottom: 2rem;
	}
	.company_groupsp.second_block li a {
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		display: flex;
		justify-content: space-between;
		align-items: center;
		line-height: .6;
		-ms-align-self: stretch;
		align-self: stretch;
		background-color: #009FE8;
		color: #fff;
		text-decoration: none;

	}
	.company_groupsp.second_block li a:after {
		position: absolute;
		right: 30px;
		content: '\f105';
		font-family: 'Font Awesome 5 Free';
		font-weight: bold;
		color: #fff;
		z-index: 1;
		font-size: 2.4rem;
	}

	.company_groupsp.second_block .img {
		width: 30%;
	}
	.company_groupsp.second_block .ttl {
		width: 70%;
		padding-left: 1rem;
		align-self: center;
		z-index: 1;
		line-height: 1.6;
	}
	.company_group.first_block {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
	}

	.company_group.first_block li {
		margin-left: 0;
	}
	.company_group.first_block li:first-child {
		margin-bottom: 2rem;
	}
	.company_group.first_block li:last-child {
		margin-bottom: 0;
	}

	.company_group li a .ttl .cell,
	.company_groupsp.second_block .ttl {
		font-size: 2.4rem;
	}

}

@media screen and (max-width: 960px) {
	.mainvisual.pc {
		padding-bottom: 4rem;
	}
}



