@charset "utf-8";
/* ------------------------------
 メインイメージ
------------------------------ */
@media print, screen and (min-width: 768px) {
	.contentsHome{
		min-width: 1240px;
		margin: -90px auto 0;
	}
}
.mainimg {
  background: #dcfaf3;
  padding-top: 130px;
  height: 736px;
  position: relative;
  
}
.mainimg .btn {
  position: absolute;
  bottom: 130px;
  left: 0;
  right: 0;
  margin: auto;
  z-index: 3;
}
.loop_wrap {
  display: flex;
  width: 3215px;
  height: 597px;
  overflow: hidden;
  position: absolute;
  bottom: 0;
}
.loop_wrap img {
  width: auto;
  height: 100%;
}
@keyframes loop {
  0% {
    transform: translateX(100%);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes loop2 {
  0% {
    transform: translateX(0);
  }
  to {
    transform: translateX(-200%);
  }
}
.loop_wrap img:first-child {
  animation: loop 100s -50s linear infinite;
}

.loop_wrap img:last-child {
  animation: loop2 100s linear infinite;
}
@media print, screen and (min-width: 768px) {
	.mainimg .btn a:hover{
		background: #50c1a7;
		opacity: 1;
	}
}
@media print, screen and (max-width: 767px) {
	.contentsHome {
		margin-top: -60px;
	}
	.contentsHome .inBlock {
		width: 90%;
		margin-left: 5%;
		margin-right: 5%;
	}
	.mainimg {
	  padding-top: 100px;
	  height: 450px;
	}  
	.mainimg h1 img{
	  width: 200px;
	}
	.btn {
		width: 280px;
	}
	.loop_wrap {
	  width: 1885px;
	  height: 350px;
	}
	.mainimg .btn {
	  bottom: 40px;
	}
}
/* ------------------------------
コンテンツ
------------------------------ */
.sub-block{
  position: relative;
}
.txt-block{
  width: 512px;
  height: 268px;
  padding-top: 30px;
  background: #fff;
  text-align: right;
  position: absolute;
  right: 0;
  top: 85px;
}
.txt-left .txt-block{
  left: 0;
  text-align: left
}
.txt-block h2{
  font-size: 3.6rem;
  font-weight: bold;
  line-height: 1.5;
}
.txt-block .btn{
  position: absolute;
  right: 0;
  bottom: -45px;
}
.txt-left .txt-block .btn{
  left: 0;
}
h3{
  font-weight: bold;
  line-height: 1.2;
  font-size: 5.6rem;
}
@media print, screen and (min-width: 768px) {
	.txt-block .btn a{
		min-width: 300px;
	}
}
@media print, screen and (max-width: 767px) {
	.txt-block{
	  width: 100%;
	  height: auto;
	  padding-top: 30px;
	  background: #fff;
	  text-align: center !important;
	  position: static;
	}
	.txt-block h2{
	  font-size: 2.4rem;
	}
	.txt-block .btn{
	  position: static;
	  margin: 0 auto;
	  margin-top: 20px;
	}
	h3{
	  font-weight: bold;
	  line-height: 1.2;
	  font-size: 4.5rem;
	}
}
/* ------------------------------
 MESSAGE
------------------------------ */
.message-box ul{
	display: flex;
	flex-flow: row wrap;
}
.message-box ul li {
	width: calc(100% / 2);
}
.message-box ul li {
	position: relative;
}
.message-box ul li img{
	width: 100%;
}
.message-box ul li .btn{
	width: 350px;
	height: 88px;
	position: absolute;
	font-weight: bold;
	left: 0;
	right: 0;
	margin: auto;
	bottom: -44px;
	z-index: 10;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	font-size: 1.8rem;
	background: #05a681;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	z-index: 2;
	overflow: hidden;
	padding: 0 20px;
	-webkit-transition: 0.3s ease-in-out;
	-moz-transition: 0.3s ease-in-out;
	-o-transition: 0.3s ease-in-out;
	transition: 0.3s ease-in-out;
}
@media print, screen and (min-width: 768px) {
	.message-box ul li:hover .btn{
		background: #50c1a7;
	}
}
@media print, screen and (max-width: 767px) {
	.message-box ul li {
		width: 100%;
	}
	.message-box ul li:first-child {
		margin-bottom: 70px;
	}
	.message-box ul li .btn{
		width: 280px;
		font-size: 1.6rem;
		padding: 10px;
		max-width: 100%;
		height: 60px;
		bottom: -30px;
	}
}

/* ------------------------------
バナー
------------------------------ */
.foot-banner{
	height: 250px;
    display: flex !important;
	justify-content: center;
	align-items: center;
	margin-top: 44px;
}
.foot-banner img{
    border: solid 1px #dbdbdb;
}
@media print, screen and (max-width: 767px) {
	.foot-banner{
		height: auto;
		padding: 30px 5% 50px;
	}
	.foot-banner .w350:first-child{
		margin-bottom:20px;
	}
}
