@charset "UTF-8";

.content-wrapper {
	display: flex;
	flex-direction: column-reverse;
}

.works-list .sec-title-area {
	padding: 5% 1rem 0 1rem;
}

/* 同一カテゴリーの施工事例 */
.latest-works ul {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
.latest-works li {
	background-color: #fff;
	color: #595757;
	flex-basis: 31%;
	margin-bottom: 5%;
}
.latest-works li a {
	color: #595757;
}
.photo {
	line-height: 0;
	margin-bottom: .5rem;
	position: relative;
}
.label {
	background-color: #7698b4;
	color: #fff;
	font-family: Oswald, sans-serif;
	line-height: initial;
	padding: .25rem .5rem;
	position: absolute;
	top: 0;
	white-space: nowrap;
}
.category, .date {
	color: #595757;
	font-size: .875rem;
	margin-bottom: .25rem;
}
.name {
	font-weight: 400;
	margin-bottom: .25rem;
}
.completion-date:after {
	content: "完成";
}
.latest-works ul.tags {
	display: block;
}
.latest-works ul.tags li {
	color: #898787;
	display: inline-block;
	font-size: .75rem;
	margin-right: .75rem;
}
.latest-works ul.tags li:last-child {
	margin-right: 0;
}
.latest-works ul.tags li:before {
	content: "#";
}
/* 同一カテゴリーの施工事例ここまで */


/* SP:下側／PC:右側のナビゲーション */
.works-nav > div {
	margin-bottom: 3rem;
}
.works-nav h3 {
	border-bottom: 1px solid #000;
	font-weight: normal;
	margin-bottom: .75rem;
	padding-bottom: .5rem;
}
.works-category li a:before {
	content: ">";
	display: inline-block;
	padding: 0 .5rem 0 0;
}
.works-category li {
	margin-bottom: .5rem;
	/*padding-left: 1rem;*/
}
.works-category a {
	display: block;
}

.works-new li {
	margin-bottom: .75rem;
}
.works-new li:last-child {
	margin-bottom: 0;
}
.works-new li a {
	align-items: center;
	display: flex;
	justify-content: flex-start;
}
.works-new picture {
	flex-basis: 30%;
	margin-right: 1rem;
	max-height: 84px;
	max-width: 84px;
	overflow: hidden;
	text-align: center;
}
.works-new picture img, .works-new picture source {
	height: 84px;
	/*max-height: 84px;
	max-width: 84px;*/
	object-fit: cover;
	object-position: 50% 50%;
	width: 84px;
}
.works-new p {
	/*flex-basis: 67.5%;*/
	font-size: .875rem;
}

.works-tag li {
	display: inline-block;
}
.works-tag a {
	border: 1px solid #595757;
	border-radius: .5rem;
	color: #595757;
	display: inline-block;
	font-size: .8125rem;
	margin: 0 .15rem .5rem 0;
	padding: .25rem .5rem;
}
.works-tag a:before {
	content: "#";
}
/* SP:下側／PC:右側のナビゲーションここまで */


@media screen and (min-width: 480px) {
	/* 同一カテゴリーの施工事例 */
	.latest-works li a {
		display: flex;
		justify-content: space-between;
	}
	.latest-works li a .photo {
		display: flex;
		flex-basis: 32.5%;
	}
	.latest-works li a .outline {
		align-self: center;
		display: flex;
		flex-basis: 65%;
		flex-direction: column;
	}
	/* 同一カテゴリーの施工事例ここまで */
	
	/* SP:下側／PC:右側のナビゲーション */
	.works-new ul {
		display: flex;
		justify-content: space-between;
	}
	.works-new li {
		flex-basis: 32%;
	}
	.works-new li a {
		flex-direction: column;
	}
	.works-new picture {
		flex-basis: calc(84px + 1rem);/*100%;*/
		margin-bottom: .75rem;
		margin-right: 0;
		/*max-height: initial;*/
		max-width: initial;
		width: 100%;
	}
	.works-new picture img, .works-new picture source {
		max-width: initial;
	}
	.works-new p {
		flex-basis: calc(100% - (84px + 1rem));
	}
	/* SP:下側／PC:右側のナビゲーションここまで */
}

@media screen and (min-width: 980px) {
	.works-list .sec-title-area {
		padding: 5% 6% 0 6%;
	}
	
	.content-wrapper {
		align-items: flex-start;
		display: flex;
		/*flex-direction: row-reverse;*/
		flex-wrap: nowrap;
		justify-content: space-between;
	}
	.works-list .content-wrapper {
		flex-direction: row-reverse;
	}
	footer .content-wrapper {
		flex-direction: row;
	}
	.works-nav {
		flex-basis: 20%;
	}
	.latest-works {
		flex-basis: 74%;/*76.5%;*/
		flex-wrap: wrap;
	}
	.latest-works li {
		flex-basis: 48%;
		margin-bottom: 4%;
	}
	.works-new ul {
		display: block;
	}
	.works-new li a {
		flex-direction: row;
		justify-content: flex-start;
	}
	.works-new picture {
		flex-basis: calc(84px + 1rem);
		margin-bottom: 0;
		margin-right: 1rem;
		max-height: 84px;
		max-width: 84px;
	}
	
	/* 同一カテゴリーの施工事例 */
	.latest-works ul {
		flex-direction: row;
		flex-wrap: wrap;
	}
	.latest-works li {
		margin-bottom: 0;
	}
	.latest-works li a {
		display: block;
	}
}
@media screen and (min-width: 1440px) {
	.latest-works {
		flex-basis: 76.5%;
	}
	.latest-works ul {
		justify-content: flex-start;
	}
	.latest-works li {
		flex-basis: 31%;
		margin-bottom: 5%;
		margin-right: 3%;
	}
	.latest-works li:nth-child(3n) {
		margin-right: 0;
	}
}
