@charset "utf-8";
/* CSS Document */

#maintenance, #warranties {
	padding-right: 70px;
	padding-left: 70px;
}
.main-lead {
	background-image: url(../images/lead_back.png);
	height: 234px;
	width: 683px;
	margin: 30px auto 40px;
	text-align: center;
	padding: 15px 50px;
	-webkit-box-sizing: border-box;
	        box-sizing: border-box;
}

#maintenance .main-lead h2 {
	color: black;
	padding: 10px;
	font-weight: 700;
    font-size: 14px;
}

#maintenance .main-lead h2:after {
	content: "";
	display: block;
    border-bottom: solid 1px black;
    width: 50%;
	margin: 15px auto 15px;
}

h2,
h3,
h4 {
	font-weight: 700;
}

.small h2 {
	margin: 60px 0 35px;
	text-align: center;
	font-size: 24px;
	font-family: "小塚明朝 Pro";
	font-weight: 100;
}

.wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    margin: auto;
    width: 90%;
}

.text {
    background: rgba(255,255,255,0.8);
    border: 1px solid #b4b4b4;
    padding: 15px 15px 25px;
    width: 44%;
    position: relative;
    z-index: 5;
	margin-left: 25px;
}

.image {
    width: 44%;
    position: relative;
    top: 15px;
    left: -25px;
    z-index: 2;
}

.image img {
	width: 100%;
	height: auto;
}

.small-1 .wrap {
	-webkit-box-pack: justify;
	    -ms-flex-pack: justify;
	        justify-content: space-between;
    width: 100%;
}

.small-1 .wrap .text {
	margin-left: 0;
}

.small h3 {
	margin: 50px 0 20px;
}

h4 {
	margin: 15px 0 15px;
	line-height: 120%;
}

.long .longtext, .long .image {
    width: 49%;
}

.long .image {
    top: 0;
    left: 0;
}

.long .image img {
	width: 90%;
    margin: auto;
    display: block;
}

.small-2 .wrap {
	width: 100%;
	margin-bottom: 50px;
	-webkit-box-align: end;
	    -ms-flex-align: end;
	        align-items: flex-end;
}

.small-2 .wrap-2 .image {
	-webkit-box-ordinal-group: 0;
	    -ms-flex-order: -1;
	        order: -1;
    left: 25px;
    width: 50%;
}

.small-2 .wrap-2 .text {
    width: 50%;
    margin-left: 0;
    margin-right: 25px;
}

#warranties .wrap {
	-ms-flex-wrap: wrap;
	    flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: flex-end;
	background-image: url(../images/warranties/image04.png), url(../images/warranties/image05.png);
	background-position: top right, bottom left;
	background-repeat: no-repeat;
	margin-bottom: 120px;
	
}

#warranties .box {
	width: 45%;
}

#warranties .box:nth-child(even) {
    top: 60px;
    position: relative;
}

#warranties .box .text {
/*    background: rgba(255,255,255,0.8);
    border: 1px solid #b4b4b4;
    padding: 15px 15px 25px;*/
    margin-left: 0;
    width: 100%;
}

#warranties .box h2 {
	font-family: "小塚ゴシック Pr6N";
	font-size: 60px;
	text-shadow: 5px 2px 0px #cecece;
	font-weight: 300;
	position: relative;
    left: 200px;
    top: 30px;
	width: 80px;
	color: black;
    display: inline-block;
    z-index: 10;
}
	

#warranties .box a {
	color: rgba(247,147,30,1);
}

@media (max-width:840px){
	#maintenance, #warranties {
		padding: 0;
	}
	
	.wrap {
		width: 100%;
	}
	
	.small-1 {
		padding: 0 10px;
	}
	
	#warranties .wrap {
		width: 90%;
	}
}
@media (max-width:700px){
	.wrap {
		-webkit-box-orient: vertical;
		-webkit-box-direction: normal;
		    -ms-flex-direction: column;
		        flex-direction: column;
	}
	
	.main-lead {
		background-image: none;
		width: 100%;
		padding: 15px 5% 0;
		margin-bottom: 0;
		height: auto;
	}
	
	.text,
	.small-2 .wrap-2 .text {
		width: 90%;
    	margin: auto;
	}
	
	.image,
	.small-2 .wrap-2 .image {
		top: 50px;
		left: 0;
		margin: auto;
		-webkit-box-ordinal-group: 0;
		    -ms-flex-order: -1;
		        order: -1;
		width: 90%;
	}
	
	.small-1 .wrap .text {
		margin: 0 auto 10px;
		width: 100%;
	    -webkit-box-sizing: border-box;
	            box-sizing: border-box;
	}
	
	.long .longtext, .long .image {
		width: 100%;
		margin-bottom: 10px;
	}
	
	.long .image {
		/*order: 0;*/
		width: 80%;
	}
	
	.small-2 .wrap {
		margin-bottom: 30px;
    	margin-top: -50px;
	}
	
	.small-2 .wrap-2 .image {
		top: 150px;
		margin-top: -90px;
	}
	
	#warranties .box {
		width: 90%;
		margin: auto;
		position: relative;
    	bottom: -30px;
	}
	
	#warranties .box .text {
		-webkit-box-sizing: border-box;
		        box-sizing: border-box;
	}
	
	#warranties .box:nth-child(even) {
		top: auto;
	}
	
	#warranties .wrap {
		background-position: top center, bottom center;
    	background-size: auto 49%;
	}
}

@media (max-width:540px){
	
	.small-2 .wrap-2 .text {
		margin-top: calc(130px - 15vw);
	}
}