/* ======================================================== */
/* MAIN VISUAL */
.c-mainvisual {
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  height: 100vh;
  min-height: 950px;
  max-height: 1080px;
}
.c-mainvisual-slider{
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.c-mainvisual-slider img,
.c-mainvisual-slider video{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: center;
}
.c-mainvisual-slider::after {
  content: "";
  background-image: url('../images/top/mv-bg.png');
  background-size: cover;
  position: absolute;
  background-position: center;
  background-repeat: no-repeat;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
}
.c-mainvisual__slider {
  height: 100%;
}
.c-mainvisual__content{
  position: absolute;
  bottom: 99px;
  width: 100%;
  left: 0;
  z-index: 2;
  text-align: center;
}
.c-mainvisual__content h2{
  font-size: 90px;
  line-height: 1.3;
}
.c-mainvisual__content h3{
  margin-top: 18px;
}
.c-mainvisual__content h2 strong{
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #fff;
}
.c-mainvisual__content h3{
  font-size: 36px;
}
.c-mainvisual__content p{
  font-size: 18px;
}
.c-mainvisual__content .u-white{
  color: #fff !important;
}
.mainv__inner {
  width: 100%;
  height: 100%;
  margin: 0 auto;
  position: relative;
}

.mainv__imageBox {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  min-height: 500px;
  z-index: -1;
  @include media-query('s') {
    width: 200%;
  height: calc(100vh - 130px);
  left: -50%;
  }
}

.mainv__imageWrap {
  animation-name: Move;
  animation-duration: 1.8s;
  animation-delay: 0.3s;
  animation-fill-mode: both;
  animation-timing-function: ease-out;
  mask-image: url("../images/top/mark.png");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
  width: 100%;
  height: 100%;
  object-fit: cover;
  font-family: "object-fit: cover;";
}
.mainv__image{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
/** custom */

@media(max-width: 1024px){
  .c-mainvisual__content h2{
    font-size: 75px;
  }
  .c-mainvisual__content h3{
    font-size: 30px;
  }
}
@media(max-width: 767px){
  .c-mainvisual{
    min-height: auto;
    max-height: 700px;
  }
  .c-mainvisual__content h2{
    font-size: 35px;
  }
  .c-mainvisual__content h3{
    font-size: 16px;
    margin-top: 10px;
  }
  .c-mainvisual__content p{
    font-size: 11px;
  }
  .c-mainvisual__content{
    bottom: 120px;
  }
}

/* BLOCK 1 */
.block1::before{
  position: absolute;
  top: -340px;
  height: 903px;
  width: 100%;
  left: 0;
  background-image: url('../images/top/bg1.png');
  background-size: cover;
}
/*End Block1*/
/* BLOCK 2 */
.block2::before{
  position: absolute;
  top: -280px;
  height: 1348px;
  width: 100%;
  left: 0;
  background-image: url('../images/top/bg2.png');
  background-size: cover;
  z-index: -1;
}
/*End Block2*/


/**Facility*/
.l-facility{
  max-width: 1200px;
}
.p-facility{
  justify-content: center;
  flex-wrap: wrap;
  border-radius: 40px;
}
.p-facility__item::before{
  content: '';
  background-color: rgba(26,160,134,0.9);
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 1;
  transition: all ease 0.4s;
}
.p-facility__item{
  width: 50%;
  position: relative;
}
.p-facility__content{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 2;
  color: #fff;  
  text-align: center;
}
.p-facility__content span{
  border: 1px solid #fff;
  border-radius:100px;
  padding: 3px 27px 1px;
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  transition: all ease 0.4s;
}
.p-facility__item:nth-child(1),
.p-facility__item:nth-child(1)::before,
.p-facility__item:nth-child(1) img{
  border-top-left-radius: 40px;
}
.p-facility__item:nth-child(2),
.p-facility__item:nth-child(2)::before,
.p-facility__item:nth-child(2) img{
  border-top-right-radius: 40px;
}
.p-facility__item:nth-child(3),
.p-facility__item:nth-child(3)::before,
.p-facility__item:nth-child(3) img{
  border-bottom-left-radius: 40px;
}
.p-facility__item:nth-child(4),
.p-facility__item:nth-child(4)::before,
.p-facility__item:nth-child(4) img{
  border-bottom-right-radius: 40px;
}
.p-facility__item:hover{
  opacity: 1;
}
.p-facility__item:hover::before{background-color: rgba(17, 17, 17, 0.2);}
.p-facility__item:hover span{
  background-color: rgba(26,160,134,1);
  border-color: rgba(26,160,134,1);
}
.p-facility__item img{
  display: block;
}
@media(max-width: 768px){
  .p-facility__content span{
    font-size: 10px;
    padding: 3px 15px 1px;
    margin-top: 10px;
  }
  .p-facility__item:nth-child(1),
  .p-facility__item:nth-child(1)::before,
  .p-facility__item:nth-child(1) img{
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }
  .p-facility__item:nth-child(2),
  .p-facility__item:nth-child(2)::before,
  .p-facility__item:nth-child(2) img{
    border-top-right-radius: 0;
  }
  .p-facility__item:nth-child(3),
  .p-facility__item:nth-child(3)::before,
  .p-facility__item:nth-child(3) img{
    border-bottom-left-radius: 0;
  }
  .p-facility__item:nth-child(4),
  .p-facility__item:nth-child(4)::before,
  .p-facility__item:nth-child(4) img{
    border-bottom-right-radius: 10px;
    border-bottom-left-radius: 10px;
  }
  .p-facility__content{
    line-height: 1.4;
    width: 100%;
    padding: 0 10px;
  }
  .p-facility__item{
    width: 100%;
  }
}
/**End Facility*/
