@charset "utf-8";
/*==================================================
	【施工事例】ページ固有のスタイル
==================================================*/
#works .box_grid {
	display: grid;
	justify-content: space-between;
	grid-template-columns: repeat(2, 48%);
	gap:100px 0;
	padding-top: 50px;
}
#works .box_works {
	position: relative;
	width: 100%;
	background: var(--color-primary);
	border-radius: 20px;
	padding: 50px 0 20px;
}
#works .box_works h3 {
	width: 280px;
	position: absolute;
	top: -35px;
	left: 0;
	right: 0;
	color: var(--color-primary);
	border: 3px solid var(--color-primary);
	border-radius: 35px;
	background: #fff;
	font-size: 25px;
	text-align: center;
	padding: 11px;
	margin: auto;
}
#works .box_img {
	position: relative;
	width: 100%;
	display: flex;
}
#works .box_img::before {
	width: 0;
	height: 0;
	content: "";
	position: absolute;
	border: 19px solid transparent;
	border-left: 32px solid #fff;
	z-index: 1;
	top: 0;
	right: -21px;
	bottom: 0;
	left: 0;
	margin: auto;
}
#works .box_img div {
	position: relative;
	width: 50%;
}
#works .box_img div p {
	width: 150px;
	position: absolute;
	text-align: center;
	line-height: 50px;
	background: #333;
	color: #fff;
	font-weight: 500;
	font-size: 18px;
	border-bottom-right-radius: 20px;
}
#works .box_img div + div p {
	background: var(--color-secondary);
}
#works .box_img img {
	width: 100%;
	object-fit: cover;
}
#works .box_img img.before::before {
	content: "BEFORE";
	background: #333;
	color: #fff;
}
#works .box_works h4 {
	color: #fff;
	font-weight: normal;
	font-size: 20px;
	padding: 20px;
}
#works .box_works p.text {
	background: #fff;
	border-radius: 20px;
	padding: 20px;
	margin: 0 20px;
}
@media print, screen and (min-width: 769px){ /* PCのみ */
}
@media print, screen and (min-width: 641px){ /* PC・タブレット */
}
@media only screen and (max-width: 768px) and (min-width: 641px){ /* タブレットのみ */
}
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	#works .box_grid {
		gap:80px 0;
		padding-top: 35px;
	}
	#works .box_works {
		padding: 35px 0 10px;
	}
	#works .box_works h3 {
		width: 270px;
		top: -22px;
		font-size: 20px;
		padding: 5px;
	}
	#works .box_img::before {
		border: 10px solid transparent;
		border-left: 16px solid #fff;
		right: -15px;
	}
	#works .box_img div p {
		width: 80px;
		line-height: 30px;
		font-size: 15px;
	}
	#works .box_works h4 {
		font-size: 15px;
		padding: 10px 10px 15px;
	}
	#works .box_works p.text {
		border-radius: 15px;
		padding: 10px;
		margin: 0 10px;
	}
}
@media only screen and (max-width: 640px){ /* スマホ */
	#works .box_grid {
		display: block;
	}
	#works .box_works {
		margin-bottom: 50px;
	}
}