@charset "UTF-8";

#content_wrap{
    padding-top:90px;
}

#main{
    padding-top:40px;
}

.subcategory_nav {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.subcategory_nav li {
  margin-right: 20px;
  margin-bottom: 10px;
}

.subcategory_nav li a {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 1em;
  padding-left: 1em;
  height: 30px;
  font-size: 16px;
  color: #2E472C;
  border: solid 1px #2E472C;
}

.subcategory_nav li.current-cat a {
  pointer-events: none;
  color: #fff;
  background-color: #2E472C;
}

#works ul{
	display: flex;
	flex-wrap: wrap;
}

#works li{
	width: calc(99% / 3 - (40px * 2 / 3));
}

#works li:not(:nth-of-type(3n)){
	margin-right: 40px;
}

#works li:nth-of-type(n+4){
	margin-top: 80px;
}

#works li.new {
	position: relative;
}

#works li.new::before {
	content: "NEW";
	position: absolute;
	top: -10px;
	right: 0;
	margin-right: 0;
	padding-right: 0.5em;
	padding-left: 0.5em;
	color: #fff;
	font-size: 11px;
	line-height: 22px;
	background-color: #2e472c;
}

#works li a{
	display: block;
	transition: all .6s ease;
}

#works li a:hover{
	transition: all .6s ease;
	opacity: .7;

}

#works li .image{
	width: 100%;
	height: 300px;
}

#works li .image img{
	width: 100%;
	height: 100%;
	object-fit: contain;
	font-family: 'object-fit: contain;'
}


#works li .text .catch{
	font-size: 14px;
	letter-spacing: 0.1em;
	line-height: 1.7;
	color: #2E472C;
}

#works li .text .title{
	font-weight: 600;
	font-size: 19px;
	letter-spacing: 0.05em;
	line-height: 1.6;
}

#works li .text .category{
	font-size: 14px;
	letter-spacing: 0.1em;
	line-height: 1.5;
	color: #8a8a8a;
}


#works li .text .arrow{
	margin-top: 20px;
	text-align: right;
}

#works li .text .arrow span{
	position: relative;
	font-size: 14px;
	letter-spacing: 0.08em;
	padding-left:40px;
}

#works li .text .arrow span:before{
	content: "";
	position: absolute;
	top: 7px;
	left: 0;
	width: 27px;
	height: 6px;
	background-image: url("../../common/img/other/black-arrow.svg");
	background-repeat: no-repeat;
	background-size: contain;
}

#works li a:hover span:before{
	animation: link_hover .5s ease 0s  forwards;
}

@media screen and (min-width:768px){
	#works li .text .title{
		margin:10px 0 15px;
		padding: 0 0 15px 0;
		border-bottom: 1px solid #c7c7c7;
	}
}

@media screen and (max-width:767px){

	#works ul{
		flex-direction: column;
	}

	#works li{
		width: 100%;
	}

	#works li:not(:nth-of-type(3n)){
		margin-right: 0;
	}

	#works li:nth-of-type(n+2){
		margin-top: 0;
	}

	#works li a{
		padding-bottom: 40px;
		border-bottom:1px solid #D4D4D4;
	}

	#works li:nth-of-type(n+2) a{
		padding-top: 40px;

	}

	#works li a .image{
		width: 80%;
		margin:0 auto;
		margin-bottom: 20px;
		height: auto;
	}

	#works li .image img{
		height: auto;
	}

	#works li .text .catch{
		font-size: 13px;
	}

	#works li .text .title{
		margin: 15px 0;
		font-size: 18px;
	}




}







/*PAGINATION CSS*/
div.pagination{
	clear: both;
	text-align: center;
	margin: 50px 0 40px;
	padding-top: 50px;
}

div.pagination span,
div.pagination a{
	display: inline-block;
	margin-left: -1px;
	padding: 21px 23px;
	border: 1px solid #3B4043;
	font-size: 15px;
	background: #fff;
	text-decoration: none;
	color: #3B4043;
}


@media screen and (max-width:767px){
	div.pagination span,
	div.pagination a{
		padding: 15px 21px;
	}
}


div.pagination span,
div.pagination a{
	margin: 0 5px;
	-webkit-transition: background 0.4s;
	-o-transition: background 0.4s;
	transition: background 0.4s;
	box-sizing: border-box;
}

div.pagination a.prev,
div.pagination a.next{
	position: relative;
	display: inline-block;
	width: 59px;
	/*border: 1px solid #2E472C;*/
	border: 1px solid #3B4043;
	/* color: #e0e0e0; */
	box-sizing: border-box;
	background: #ffffff;
	color: #2E472C;
}

@media screen and (max-width:767px){
	div.pagination a.prev,
	div.pagination a.next{
		width: 49px;	
	}
}

div.pagination a.prev:after,
div.pagination a.next:after{
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	width: 7px;
	height: 7px;
	border-right: 2px solid #3B4043;
	border-bottom: 2px solid #3B4043;
}

div.pagination a.prev:hover:after, div.pagination a.next:hover:after{
	border-color: #fff;
}

div.pagination a.prev:after{
	left: 0;
	transform: rotate(135deg);
}
div.pagination a.next:after{
	right: 0;
	transform: rotate(-45deg);
}

div.pagination a.prev:hover,
div.pagination a.next:hover{
	background: #2E472C;
	color: #fff;
}

div.pagination a.next{
	margin-left: 7px;
}

div.pagination a.prev{
	margin-right: 7px;
}

@media screen and (min-width:768px){


	div.pagination a:hover{
		display: inline-block;
		color: #fff;
		background: #2E472C;
		border: 1px solid #2E472C;
		/* margin: 0 18px; */
	}

}

div.pagination span{
	display: inline-block;
	color: #fff;
	background: #2E472C;
	border: 1px solid #2E472C;
	/* margin: 0 18px; */
}




@media screen and (max-width:767px){

	div.pagination a.prev,
	div.pagination a.next{
		/* position: relative; */
		/* display: inline-block; */
		/* width: 66px; */
		/* border: 1px solid #e8e8e8; */
		/* color: #e0e0e0; */
		/* box-sizing: border-box; */
		/* background: #DDDDDD; */
		/* color: #fff; */
	}

	div.pagination a.prev{
		margin-right: 10px;
	}

	div.pagination a.next{
		margin-left: 10px;
	}

	div.pagination a.prev:after{
		left: 8px;
	}
	div.pagination a.next:after{
		right: 8px;
	}

	


	div.pagination{
		clear: both;
		text-align: center;
		margin: 0;
		padding-top: 20px;
		padding-bottom: 29px;
	}

	#news div.pagination{
		padding-top: 50px;
	}

	div.pagination span,
	div.pagination a{
		display: inline-block;
		/* margin-left: -1px; */
		/* padding: 13px; */
		/* border: 1px solid #aaa; */
		/* font-size: 0.875rem; */
		/* text-decoration: none; */
		/* color: #aaa; */
	}
}

@media screen and (max-width: 500px){
	div.pagination a.next{
		margin-top: 15px;
	}
}