body, html, main {
    /* important */
    height: 100%;
}
  

.pName {
	background: url(../img/main.jpg) center center;
}

.homeList { clear: both; overflow: hidden; margin-bottom: 4%;}
.homeList li {
	float: left;
	margin-right: 4%;
	width: 48%;
}

.homeList li.last { margin-right: 0;}

.homeList li a {
	border: 2px solid #2a9ed5;
  box-sizing: border-box;
  display: block;
  position: relative;
}
.homeList li a .linkimg{
  transition: 1.4s;
  width: 100%;
  display: block;
}
.homeList li a span {
	position: absolute;
  right: 10px;
  bottom: 5px;
  z-index: 1;
}
.homeList li a span img {
	width: auto;
}
.homeList li a .linkimg:hover{
		-webkit-transform: rotateY(360deg);
		-moz-transform: rotateY(360deg);
		-ms-transform: rotateY(360deg);
		-o-transform: rotateY(360deg);
		transform: rotateY(360deg);
}
.homeList li .service_title {
	margin: 0.5em 0 0.3em;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px dashed;
  font-weight: bold;
}

.herfLink li .service_title {
	margin: -0.3em 0 0.3em;
  font-size: 18px;
  font-weight: 500;
  border-bottom: 1px dashed;
  font-weight: bold;
}
.ph_text {
	margin: 0;
  font-size: 13px;
  text-align: left !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}



.herfLink li {
	position: relative;
    overflow: hidden;
    text-align: center;
	border: solid 1px #a7a7a7;
	border-radius: 5px;
    box-shadow: 0 12px 0 #e4e4e4;
	position: relative;
	float: left;
	height: 170px;
	width: 470px;
	margin-bottom: 30px;
	margin-right: 20px;
}

.herfLink li.even {
	margin-right: 0;
}



.herfLink li:after {
    position: absolute;
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -ms-background-size: cover;
    background-size: cover;
    -webkit-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -ms-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.herfLink li:hover:after {
    opacity: .8;
    -moz-transform: scale(1.2);
    -webkit-transform: scale(1.2);
    -ms-transform: scale(1.2);
    transform: scale(1.2);
}
.herfLink li span.phNum {
	color: #FFF;
	font-size: 1.8em;
	font-weight: bold;
	position: absolute;
	top: 42%;
	left: 0%;
	text-align: center;
	width: 100%;
    z-index: 1;
}

.herfLink li span.blank {
	position: absolute;
	right: 10px;
	bottom: 5px;
	z-index: 1;
}


.herfLink li.ph01:after { background: url(../img/ph_01.jpg) no-repeat center center;}
.herfLink li.ph02:after { background: url(../img/ph_02.jpg) no-repeat center center;}
.herfLink li.ph03:after { background: url(../img/ph_03.jpg) no-repeat center center;}
.herfLink li.ph04:after { background: url(../img/ph_04.jpg) no-repeat center center;}


#contents .herfLink li a {
	display: block;
	height: auto;
	width: 100%;
}

.pc {display: block;}
.sp{display: none;}

@charset "utf-8";
@media only screen and (max-width: 800px) {
/* CSS Document */

.pc {display: none;}
.sp{display: block;}
	
.homeList li {
	
	width: 100%;
	margin-bottom: 2%;
	margin-right: 0%;
}

.homeList li img {
	width:100%;
}
	
	.homeList li.even { margin-right: 0;}	
	.herfLink li { width: 100%; height: 120px;}	
	.herfLink li.ph01:after,.herfLink li.ph02:after,.herfLink li.ph03:after,.herfLink li.ph04:after {
		background-size:cover;
	}

	
}
