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



/*==============================
共通
==============================*/

#mainhead{
  position: relative;
  padding: 50px;
  padding-top: 0;
  height: 400px;
  width: calc(100% - 100px);
  margin: 0 auto;
  background-image: url(../img/headBack.jpg);
  background-size: cover;
  background-position: center;
}

#mainhead .mainTitle{
  text-align: center;
  display: block;
  height: 150px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  z-index: 1;
}

#mainhead .mainTitle h3,
#mainhead .mainTitle h2{
  color:#fff;
}

#mainhead .mainTitle h2{
  font-weight: 900;
}



.titleBox h2{
  color: #053785;
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 16px;
}

.titleBox h3{
  color: #333333;
  font-size: 16px;
  letter-spacing: 8px;
}

.btn{
  display: block;
  width: 180px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 5px 15px;
  color: #053785;
  border-bottom: 1px solid #053785;
  z-index: 1;
  font-size: 20px;
}

.btn::before{
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  content: '';
  background: #ebf1f6;
  transform-origin: right top;
  transform: scale(0, 1);
  transition: transform .3s;
}

.btn::after{
  content: ">";
  margin-left: 15px;
}

.btn:hover{
  opacity: 1;
}

.btn:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
}

.btn:hover::after{
  transform: translateX(5px);
}

@media screen and (max-width: 1000px) {
  #mainhead{
    width: calc(100% - 100px);
    margin: 50px auto 0;
  }  
}
@media screen and (max-width: 600px) {
  #mainhead{
    width: calc(100% - 40px);
    margin: 50px auto 0;
    height: 300px;
  }  
  
  #mainhead .mainTitle{
    height: 100px;
  }

  .titleBox h2{
    color: #053785;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 10px;
  }
}

/*==============================
メイン
==============================*/

#telcontactWrap{
  width: calc(100% - 100px);
  margin: 50px auto;
  background-color: #ebf1f6;
  padding: 0 50px 50px;
  text-align: center;
}

#telcontactWrap .titleBox{
  position: relative;
  top: -20px;
  text-align: center;
}

#telcontactWrap a{
  display: block;
  width: 100%;
  max-width: 400px;
  margin: 20px auto 20px;
  background-color: #fff;
  padding: 30px 20px;
  border: 2px solid #053785;
}

#telcontactWrap a h4{
  letter-spacing: 0;
  font-weight: 900;
  font-size: 36px;
}

#formWrap{
  width: calc(100% - 100px);
  margin: 50px auto;
  background-color: #ebf1f6;
  padding: 0 50px 50px;
  text-align: center;
}

#formWrap .titleBox{
  position: relative;
  top: -20px;
  text-align: center;
}

.contactTable{
  width: 100%;
  max-width: 800px;
  margin: 30px auto 0;
}

.contactTable tr{
  display: flex;
  flex-wrap: wrap;
}

.contactTable tr th,
.contactTable tr td{
  flex-basis: 100%;
  text-align: left;
}

.contactTable tr th{
  text-align: left;
}

.contactTable tr td{
  margin-bottom: 5px;
}

.contactTable tr td input,
.contactTable tr td textarea{
  width: 100%;
  padding: 5px;
}

input[type="submit"],
input[type="button"]{
  display: inline-block;
  margin: 20px 10px 0px;
  background-color: #fff;
  padding: 20px 30px;
  border: 2px solid #053785;
  cursor: pointer;
}

/*==============================
レスポンシブ
==============================*/

@media screen and (max-width: 1400px) {
	#serviceWrap{
		max-width: 1200px;
	}

	#serviceWrap img:first-of-type{
		width: 400px;
		top: -50px;
		right: -30px;
	}

	#serviceWrap img:last-of-type{
		width: 300px;
		bottom: -50px;
		right: 0;
	}
}

@media screen and (max-width: 1300px) {
}

@media screen and (max-width: 1200px) {
	#aboutWrap {
    padding: 0 50px 50px;
	}
	
	#serviceWrap{
		max-width: 1000px;
	}
}

@media screen and (max-width: 1000px) {
	
	#serviceWrap{
		max-width: 800px;
	}

	#serviceWrap img:first-of-type{
		width: 300px;
		top: auto;
		bottom: -50px;
		right: -15px;
	}

	#serviceWrap img:last-of-type{
		display: none;
	}
	
	#serviceWrap .btn{
		margin: 0;
	}
}

@media screen and (max-width: 800px) {
}

@media screen and (max-width: 600px){
	#mainSlide{
		padding: 20px;
    padding-top: 0;
	}
  #telcontactWrap,#formWrap{
    width: calc(100% - 40px);
    padding: 0 20px 30px;
  }
  .titleBox h3{
    letter-spacing: 2px;
  }
  #telcontactWrap a{
    width: 100%;
  }

  #telcontactWrap a h4{
    letter-spacing: 0;
    font-weight: 900;
    font-size: 28px;
  }
}

@media screen and (max-width: 414px){
}