section#main {
  position: relative;
  padding: 0;
  height: 650px;
  margin-top: 110px;
}
.bg_img {
  background: url(../../img/webp/main_bg.webp);
  background-position: center;
  background-size: cover;
  height: 650px;
  position: absolute;
  top: 0;
  width: 100%;
}
.bg_img:nth-child(2) {
  background: url(../../img/webp/main_bg_after.webp);
  background-position: center;
  background-size: cover;
}
.bg_img:nth-child(3) {
  background: url(../../img/webp/main_bg_last.webp);
  background-position: center;
  background-size: cover;
}
.image {
	position: absolute;
	width: 100%;
	opacity: 0;
	animation  : bgAnime 15s infinite;   /* 3画像 × 各5s = 20s */
}
.image:nth-of-type(1) {
	animation-delay: 0s;
}
.image:nth-of-type(2) {
	animation-delay: 5s;;
}
.image:nth-of-type(3) {
  animation-delay: 10s;
}
@keyframes bgAnime {
	0% { opacity: 0; }
  5% { opacity: 1; }
  45% { opacity: 1; }
  50% { opacity: 0; }
  100% { opacity: 0; }
}

@media (max-width: 1099px) {
  section#main {
    margin-top: 80px;
  }
}
.mainContent {
  width: 50%;
  position: absolute;
  top: 135px;
  z-index: 1;
}
@media (max-width: 1099px) {
  .mainContent h1 img {
    width: 100%;
    height: auto;
  }
}

/*********************************/
/*        SP Responsive          */
/*********************************/
@media (max-width: 768px) {
  section#main {
    height: 480px;
    margin-top: 0;
  }
  .mainContent {
    width: 100%;
    top: 110px;
  }
  .mainContent h1 {
    padding: 0px 20px;
    width: 70%;
  }
  .mainContent h1 img {
    width: 62%;
    height: auto;
  }

  section#main a.btn_animation {
    width: 80%;
    margin-top: 30px;
    position: relative;
    transition: all 0.2s ease;
  }
  
  .bg_img {
    background: url(../../img/webp/main_bg_sp.webp);
    background-position: bottom;
    background-size: cover;
    height: 480px;
    position: absolute;
    top: 0;
    width: 100%;
  }
  .bg_img:nth-child(2) {
    background: url(../../img/webp/main_bg_sp_after.webp);
    background-position: bottom;
    background-size: cover;
  }
  .bg_img:nth-child(3) {
    background: url(../../img/webp/main_bg_sp_last.webp);
    background-position: bottom;
    background-size: cover;
  }
  .image {
    position: absolute;
    width: 100%;
    opacity: 0;
    animation  : bgAnime 15s infinite;   /* 3画像 × 各5s = 20s */
  }
  .image:nth-of-type(1) {
    animation-delay: 0s;
  }
  .image:nth-of-type(2) {
    animation-delay: 5s;;
  }
  .image:nth-of-type(3) {
    animation-delay: 10s;
  }
  @keyframes bgAnime {
    0% { opacity: 0; }
    5% { opacity: 1; }
    45% { opacity: 1; }
    50% { opacity: 0; }
   100% { opacity: 0; }
  }
}

@media (max-width: 450px) {
  .mainContent h1 img {
    width: 85%;
    height: auto;
  }
}