@charset "utf-8";

/* 施工事例 */

.categorybox {
	width: 750px;
	margin: 25px auto 30px;
}
.categorybox ul {
	display:block;
}
.categorybox ul li {
	width: 230px;
	margin-right: 30px;
	margin-bottom: 10px;
	float: left;
	list-style: none;
}
.categorybox ul li:nth-child(3n) {
	margin-right: 0;
}
.categorybox ul li a,
.rstcatebox {
	display: block;
	text-align: center;
	color: #fff;
	font-weight: bold;
	font-size: 12px;
	padding: 5px 0px 3px;
	text-decoration: none;
	border-radius: 5px;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
}
.rstcatebox { width: 230px; }

.rstpost {
	width: 950px;
	margin: 0px auto 40px;
}
.rstpost h3 {
	padding: 20px;
	background-color: #e5e5e5;
	border-left: 5px solid #0370CD;
}
.rstpost h3 p:first-child {
	margin-top:0;
}

.photobox {
	width: 362px;
	/*height: 300px;*/
	float: left;
}
.photobox .photoborder {
	border: 1px solid #ddd;
}
.photobox .mainphoto {
	border: 1px solid #ddd;
	margin-bottom: 7px;
}
.photobox .subphotobox {
	margin-bottom: 7px;
}
.photobox .subphotobox .subphoto {
	border: 1px solid #ddd;
	width: 176px;
}
.photobox .mainphoto img,
.photobox .subphotobox .subphoto img {
	width: 100%;
}

.textbox {
	width: 463px;
	float: right;
	border: 1px solid #ccc;
	padding: 18px;
}

/* 20230312 korenaga */
.rstpost .cate2box {
	width:35%;
}
.rstpost .cate2box a {
	display:block;
}
.rstpost .cate2box h4 {
	padding:10px;
	border-bottom:3px solid #ccc;
	margin-bottom:10px;
	display:flex;
	align-items:center;
	box-sizing:border-box;
}
.rstpost .cate2box p {
	text-align:center;
}
.rstpost .cate2box p img {
	max-width:100%;
}
.rstpost .postsblock {
	display:flex;
	justify-content:space-evenly;
}
.postsbtn {
	display:block;
	width:350px;
	padding:20px 10px;
	text-align:center;
	background-color:#246397;
	color:#fff;
	margin:50px auto;
	text-decoration:none;
	font-weight:bold;
}

@media screen and (max-width:820px){
	.categorybox {
		width:100%;
	}
	.categorybox ul {
		display:flex;
		flex-wrap:wrap;
	}
	.categorybox ul li {
		width:50%;
		margin:0;
		padding:5px 10px;
		box-sizing:border-box;
		float:none;
	}

	.rstpost {
		width:100%;
	}
	.rstpost .fLeft,
	.rstpost .fRight {
		float:none;
	}
	.rstpost h3 {
		position:relative;
	}
	.rstpost h3 p:first-child {
		margin-top:10px;
	}
	.rstpost .rstcatebox {
		position:absolute;
		top:5px;
		left:5px;
	}
	.rstpost .box900 {
		width:100% !important;
	}
	.rstpost .box900 .photobox {
		display:flex;
		flex-wrap:wrap;
		float:none;
		margin:0 auto;
	}
	.rstpost .box900 .photobox .subphotobox {
		width: 50%;
		display: flex;
		flex-wrap: wrap;
	}
	.rstpost .box900 .photobox .subphotobox .subphoto {
		width:50%;
		box-sizing:border-box;
	}

	.rstpost .textbox {
		float:none;
		width:95%;
		box-sizing:border-box;
		margin:auto;
	}

	.rstpost .cate2box {
		width:42%;
	}
	
}
