@charset "utf-8";
/*==================================================
	【トップ】ページ固有のスタイル
==================================================*/
#top_ttl img {
	width: 100%;
}
/* 挨拶 */
#top_msg .txt_box,#top_business .txt_box {
	width: 650px;
	margin-top: 30px;
}
#top_msg .txt_box .btn_rit,#top_business .txt_box .btn_rit {
	margin-top: 50px;
}
#top_photo {
	margin-left: calc(((100vw - 100%) / 2) * -1);
	margin-right: calc(((100vw - 100%) / 2) * -1);
	display: flex;
	justify-content: space-between;
	column-gap: 20px;
	position: relative;
}
#top_photo::before {
	content: "SANBI CONSTRUCTION CO., LTD. SANBI CONSTRUCTION CO., LTD. SANBI CONSTRUCTION CO., LTD.";
	font-size : 92px;
	color : #F2F2FC;
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	white-space: nowrap;
	font-family: var(--font-racing);
	z-index: -1;
	font-weight: normal;
}
	@media only screen and (max-width: 1150px) {
		#top_photo {
			margin-left: -25px;
		}
	}
#top_photo img {
	height: 300px;
	width: 100%;
	object-fit: cover;
	border-radius: 5px;
}
#top_consultant::before {
	content: "";
	background: #f2f2fc;
	clip-path: polygon(0 0, 100% 30%, 100% 100%, 0 70%);
}
#top_consultant .box {
	background: url("../img/top/bg01.jpg") no-repeat center/cover;
	padding: 25px;
	border-radius: 5px;
}
#top_consultant .box .in {
	background: linear-gradient(180deg,rgba(0, 0, 198, 0) 0%, rgba(0, 0, 198, 0.6) 100%);
	padding: 50px;
	border-radius: 5px;
}
#top_consultant .box .in .txt {
	color: #fff;
	font-size: 115%;
}
#top_consultant .box .in .btn01 a {
	margin-top: 30px;
}
#top_contents::before {
	content: "";
	background: #f2f2fc;
	clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 80%);
	height: calc(100% - 150px);
	top: 100px;
}
#top_contents .w3_box .box {
	width: 32%;
}
#top_contents .w4_box .box {
	width: 23%;
}
#top_contents .w3_box .box:nth-of-type(2) {
	margin-top: 50px;
}
#top_contents .w3_box .box:nth-of-type(3) {
	margin-top: 100px;
}
#top_contents .content_box .box img {
	border-radius: 5px;
}
#top_contents .content_box .box a {
	position: relative;
}
#top_contents .content_box .box a:hover {
	opacity: 1;
}
#top_contents .content_box .box a::before {
	content: "";
	background: url("../img/arrow02.png") no-repeat center/100%;
	width: 42px;
	height: 42px;
	position: absolute;
	bottom: 10px;
	right: 10px;
}
#top_contents .content_box .box a:hover::before {
	background: url("../img/arrow02-on.png") no-repeat center/100%;
	z-index: 1;
}
#top_contents .content_box .box a:hover::after {
	content: "";
	background: linear-gradient(180deg,rgba(0, 0, 198, 0) 0%, rgba(0, 0, 198, 0.6) 100%);
	width: 100%;
	height: 80px;
	position: absolute;
	bottom: -2px;
	left: 0;
}
#top_contents .content_box .box .ttl {
	margin: 15px 0;
	font-size : 25px;
	color : #0000C6;
	text-align: center;
	font-weight: 600;
}
#top_contents .content_box .box .txt {
	line-height : 30px;
	text-align: center;
}
#top_contents .w4_box .box:nth-of-type(2) {
	margin-top: 30px;
}
#top_contents .w4_box .box:nth-of-type(3) {
	margin-top: 60px;
}
#top_contents .w4_box .box:nth-of-type(4) {
	margin-top: 90px;
}
#top_property h3.sub {
	margin-top: -30px;
	margin-bottom: 80px;
}
#top_property .grid_box {
	display: grid;
	justify-content: space-between;
	grid-template-columns: repeat(4, 23%);
	gap: 20px 0;
}
#top_property .box .img img {
	border-radius: 5px;
}
#top_property .box a {
	position: relative;
}
#top_property .box a:hover {
	opacity: 1;
}
#top_property .box a .img {
	display: block;
	width: 250px;
	height: 200px;
	overflow: hidden;
	position: relative;
}
#top_property .box a .img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
#top_property .box a .img .dummy  {
	width: 100%;
	height: 100%;
	background: #ADE2FE;
	display: flex;
	align-items: center;
	justify-content: center;
}
#top_property .box a .img .dummy img {
	width: 70%;
	height: auto;
}
#top_property .box a .img::before{
	content: "";
	background: url("../img/arrow02.png") no-repeat center/100%;
	width: 42px;
	height: 42px;
	position: absolute;
	bottom: 10px;
	right: 10px;
}
#top_property .box a:hover .img::before {
	background: url("../img/arrow02-on.png") no-repeat center/100%;
	z-index: 1;
}
#top_property .box a:hover .img::after {
	content: "";
	background: linear-gradient(180deg,rgba(0, 0, 198, 0) 0%, rgba(0, 0, 198, 0.6) 100%);
	width: 100%;
	height: 80px;
	position: absolute;
	bottom: -2px;
	left: 0;
}
#top_property .box a .ttl {
	font-size: 115%;
}
#top_property .box a .txt {
	font-size: 87.5%;
	line-height : 23px;
	color : #000030;
}
#top_info h3.sub {
	margin-top: -30px;
	margin-bottom: 80px;
}
#top_info .box {
	width: 700px;
}
#top_info .box dl {
	border-top: 1px solid #ccccd6;
	padding: 30px 0;
}
#top_info .box dl:last-of-type {
	border-bottom: 1px solid #ccccd6;
}
#top_info .box dt {
	font-size: 87.5%;
}
#top_info .box dd a {
	text-decoration: underline;
}
#top_info .img {
	width: 340px;
}
#top_info .img img {
	border-radius: 5px;
}
#map iframe {
	width: 100%;
	height: 350px;
	border: none;
	border-radius: 5px;
}
@media print, screen and (min-width: 769px){ /* PCのみ */
}
@media print, screen and (min-width: 641px){ /* PC・タブレット */
	/* お知らせ */
	#top_info dl {
		display: flex;
	}
	#top_info dt {
		width: 100px;
	}
	#top_info dd {
		width: calc(100% - 100px);
	}
}
@media only screen and (max-width: 768px) and (min-width: 641px){ /* タブレットのみ */
}
@media only screen and (max-width: 768px) {  /* タブレット以下 */
	.txt {
		font-size: 87.5%;
	}
	#top_msg .txt_box, #top_business .txt_box {
		width: 100%;
		margin-top: 0;
	}
	#top_photo {
		column-gap: 10px;
	}
	#top_photo::before {
		font-size: 50px;
		top: -10px;
	}
	#top_photo img {
		height: 150px;
	}
	#top_consultant .box {
		padding: 15px;
	}
	#top_consultant .box .in {
		padding: 20px;
	}
	#top_consultant .box .in .txt {
		font-size: 87.5%;
	}
	#top_contents .content_box .box a::before {
		width: 25px;
		height: 25px;
		bottom: 5px;
		right: 5px;
	}
	#top_contents .content_box .box .ttl {
		font-size: 115%;
		text-align: left;
	}
	#top_contents .content_box .box .txt {
		text-align: left;
		line-height: 1.8em;
	}
	#top_property .grid_box {
		grid-template-columns: repeat(2, 48%);
	}
	#top_property .box a .img {
		width: 100%;
		height: auto;
		aspect-ratio: 1.5 / 1;
	}
	#top_property .box a .img::before {
		width: 25px;
		height: 25px;
		bottom: 5px;
		right: 5px;
	}
	#top_info h3.sub {
		margin-bottom: 20px;
	}
	#top_info .box {
		width: 100%;
	}
	#top_info .box dl {
		padding: 15px 0;
	}
	#top_info .img {
		width: 60%;
		margin: 50px auto 0;
	}
}
@media only screen and (max-width: 640px){ /* スマホ */
	#top_msg .txt_box .btn_rit {
		display: block;
	}
	#top_msg .txt_box .btn_rit .btn01 a {
		margin-left: auto;
	}
	#top_photo::before {
		font-size: 30px;
		top: 5px;
	}
	#top_photo img {
		height: 80px;
	}
	#top_consultant::before {
		clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 80%);
	}
	#top_contents::before {
		clip-path: polygon(0 0, 100% 5%, 100% 100%, 0 95%);
	}
	#top_contents .w3_box .box {
		width: 100%;
	}
	#top_contents .w3_box .box:nth-of-type(3) {
		margin: 30px 0;
	}
	#top_contents .w3_box .box img {
		width: 100%;
		height: 200px;
		object-fit: cover;
	}
	#top_contents .w4_box .box {
		width: 48%;
	}
	#top_contents .w4_box .box:nth-of-type(3) {
		margin-top: 30px;
	}
	#top_contents .w4_box .box:nth-of-type(4) {
		margin-top: 60px;
	}
	#top_property h3.sub {
		margin-top: 0;
		margin-bottom: 30px;
	}
	#top_property .btn01 a {
		margin-left: auto;
	}
	#top_property .box a .ttl {
		font-size: 100%;
	}
	#top_info .btn01 a {
		margin-left: auto;
	}
	#top_info .img {
		width: 80%;
	}
	#map iframe {
		height: 150px;
	}
}