@charset "utf-8";

section#photo{
	width:min(95%,1100px)!important;
	display: flex;
	align-items: center;
	gap:20px;
}

#photo_image{
	width:min(100%,450px);
}

#photo_image img{
	width:100%;
	height: auto;
	border-radius: 10px;
}

#photo_image_text{
	flex:1;
	font-weight: 600;
}

/*--------------------

	レスポンシブ

--------------------*/

@media screen and (min-width: 0) and (max-width: 980px){
	section#photo{
		flex-direction: column;
	}
}


/*--------------------


	レスポンシブ


--------------------*/

#before_after{
	display: flex;
	flex-wrap: wrap;
	gap:30px 20px;
}

#before_after .item{
	width: calc(50% - 10px);
	padding:10px 5px 20px 5px;
	border:1px solid #593F3F;
	border-radius: 5px;
}

#before_after .item_wide{
	width:100%;
	padding:10px 5px 20px 5px;
	border:1px solid #593F3F;
}

#before_after h3{
	width:100%;
	background-color:#408CC4;
	line-height: 1;
	padding:8px 15px;
	color:#fff;
	font-weight: 600;
	font-size:1.5rem;
	text-align: center;
	border-radius: 5px;
	letter-spacing: 0.3em;
}

#before_after .before,
#before_after .after{
	position: relative;
}
#before_after .photo{
	width:100%;
	display: flex;
	align-items: center;
	justify-content: center;
	padding:15px 10px 0 10px;
	gap:10px;
}

#before_after .arrow{
	width:40px;
	aspect-ratio:1 / 2;
	background-color: #916666;
	clip-path: polygon(0 0, 0% 100%, 100% 50%);
}

#before_after .item_title{
	width:50%;
	line-height: 1;
	padding:5px 20px 5px 10px;
	position: absolute;
	left:0;
	bottom:5px;
	color:#fff;
	font-weight: 600;
	clip-path: polygon(100% 0, calc(100% - 5px) 50%, 100% 100%, 0 100%, 0 0);
	clip-path: polygon(0 0, calc(100% - 30px) 0, 100% 100%, 0% 100%);
}

#before_after .before .item_title{
	background-color:rgba(64,140,196,0.8);
}


#before_after .after .item_title{
	background-color:rgba(237,93,116,0.8);
	font-size: 1.2rem;
}

#before_after .item_wide .after .item_title{
	width:180px;
}

#before_after .photo img{
	width:100%;
	height: auto;
	vertical-align: middle;
	border-radius: 10px;
}

#before_after .before{
	width:230px;
}

#before_after .after{
	flex:1;
}



/*--------------------

	レスポンシブ

--------------------*/

@media screen and (min-width: 0) and (max-width: 980px){
	#before_after{
		flex-direction: column;
	}
	
	#before_after .item{
		width:100%;
	}
	
	#before_after .before{
		width:230px;
	}

	#before_after .item_wide .after img{
		width: auto;
	}
	
	#before_after .item_wide .photo{
		flex-direction: column;
	}
	
	#before_after .item_wide .after{
		flex:none;
		width:min(100%,700px);
	}
	
	#before_after .item_wide .after img{
		width:100%;
		height: auto;
	}
	
	#before_after .item_wide .arrow{
		width:auto;
		height:40px;
	aspect-ratio:2 / 1;
		clip-path: polygon(0 0, 50% 100%, 100% 0);
	}
}

@media screen and (min-width: 429px) and (max-width: 980px){
		#before_after .item .after{
	max-width: 250px;
}
}

@media screen and (min-width: 0) and (max-width: 430px){
	#before_after .photo{
		flex-direction: column;
		padding:15px 5px 0 5px;
	}
	
	#before_after .arrow{
		width:auto;
		height:40px;
	aspect-ratio:2 / 1;
		clip-path: polygon(0 0, 50% 100%, 100% 0);
	}
	
	before_after .item .after{
		flex:none;
		width:100%!important;
		max-width: 100%!important;
	}
}