@charset "utf-8";

/*===================================================================

	001. works

===================================================================*/
.title{
	background: url(../images/works_title_bg.jpg) no-repeat center center / cover;
}

.works{
	margin-top: 40px;
}


.tab-menu{
	border: none;
	justify-content: flex-start;
	margin-bottom: 80px;
}

.tab-menu .works__tab{
	width: 100%;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.tab-list {
	width: calc(100% / 6);
	min-width: 155px;
	height: 100%;
	display: flex;
	align-items: center;
	border: 1px solid #707070;
	font-size: 14px;
	font-weight: bold;
	position: relative;
}

.tab-list a {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: 100%;
}

.tab-list:nth-child(2) a {
	/* padding: 0 20%; */
}

.tab-list:nth-child(4) a {
	/* padding: 0 14%; */
}

@media (max-width:768px) {
	.tab-list:nth-child(2) a {
		/* padding: 0 14%; */
	}

	.tab-list:nth-child(4) a {
		/* padding: 0 7%; */
	}
}

.tab-list:not(:last-of-type){
	border-right: none;
}

.tab-list:nth-of-type(6){
	border-right: 1px solid #707070;
}

.tab-list:nth-of-type(7+n){
	border-top: none;
}

.tab-list.current, .tab-list:hover{
	border-bottom-color: #2871B4;
	border-bottom-width: 5px;
	background: #EFF9FF;
}

.tab-inner{
	border: 0;
}

.works__inner{
	width: 100%;
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
}

.works__inner a{
	display: block;
}

.works__inner a:hover{
	opacity: .5;
}

.works__detail{
	margin-bottom: 55px;
	width: 32.727%;
	max-width: 355px;
	margin-right: 0.9%;
	min-width: 285px;
}

.works__detail:nth-of-type(3n){
	margin-right: 0;
}

.works__thumb{
	display: block;
	margin-bottom: 5px;
	width: 100%;
	height: auto;
	object-fit: cover;
	border: 1px solid #c3c3c3;
}

.works__info{
	display: flex;
	justify-content: space-between;
	margin-bottom: 25px;
}

.works__info .text + .text{
	margin: 0;
}

.works__info .square-button{
	padding: 0 1.725em;
	min-width: 212px;
}

.pagination{
	position: relative;
	width: 100%;
}

.page__next{
	position: absolute;
	right: 0;
}

.nav-links {
	display: flex;
	justify-content: space-between;
}

@media screen and (max-width: 930px){
	.works__detail .text{
		font-size: 12px;
	}

	.works__info .square-button{
		min-width: 200px;
		padding: 0 1.25em;
	}
}

@media screen and (max-width: 870px){
	.works__detail{
		width: 33.16%;
		margin-right: .25%;
	}

	.works__info .square-button{
		padding: 0;
		min-width: 180px;
	}
}

@media screen and (max-width: 805px){

	.works__inner{
		justify-content: space-between;
	}
	.works__detail{
		width: 50%;
	}
}

/*===================================================================

	002. responsive

===================================================================*/

@media screen and (max-width: 768px){
	/*=================================================

		001. works

	=================================================*/

	.works{
		margin-top: 40px;
	}


	.tab-menu{
		border: none;
		justify-content: flex-start;
		margin-bottom: 80px;
		overflow-x: scroll;
		overflow-scrolling: touch;
	}

	.tab-menu .works__tab{
		width: 100%;
		justify-content: flex-start;
		flex-wrap: nowrap;
	}

	.tab-list {
		width: 16.715%;
		min-width: 130px;
		height: 100%;
		display: flex;
		align-items: center;
		border: 1px solid #707070;
		font-size: 14px;
		font-weight: bold;
		position: relative;
	}

	.tab-list:not(:last-of-type){
		border-right: none;
	}

	.tab-inner{
		border: 0;
	}

	.works__inner{
		width: 100%;
		display: flex;
		justify-content: space-between;
		flex-wrap: wrap;
	}

	.works__detail{
		margin-bottom: 55px;
		width: 100%;
		max-width: initial;
		min-width: initial;
	}

	.works__thumb{
		display: block;
		margin-bottom: 5px;
		width: 100%;
	}

	.works__info{
		display: flex;
		justify-content: space-between;
		margin-bottom: 25px;
	}

	.works__info .text + .text{
		margin: 0;
	}

	.works__info .square-button{
		padding: 0 1.725em;
	}

	.pagination{
		position: relative;
		width: 100%;
	}

	.page__next{
		position: absolute;
		right: 0;
	}
}
