/* ==============================
  FV
============================== */
.mainVisual {
  position: relative;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  height: calc(100vh - 110px);
  overflow: hidden;
	background: #f0efea;
}


.mainVisual video {
  position: absolute;
  width: auto;
  height: auto;
  top: 50%;
  left: 50%;
  min-height: 100%;
  min-width: 100%;
  -ms-transform: translateX(-50%) translateY(-50%);
  -webkit-transform: translateX(-50%) translateY(-50%);
  transform: translateX(-50%) translateY(-50%);
}
@supports ((-o-object-fit: cover) or (object-fit: cover)) {
  .mainVisual video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
    height: 100%;
    width: 100%;

  }
}
#maxhub .mainVisual .scroll {
  position: absolute;
  bottom: 0;
  left: 7%;
  width: 9px;
  height: 120px;
}
#maxhub .mainVisual .scroll::after {
  content: "";
  /*描画位置*/
  position: absolute;
  top: auto;
  bottom: 0;
  left: 3.9px;
  /*線の形状*/
  width: 1px;
  height: 75px;
  background: #fff;
  /*線の動き1.4秒かけて動く。永遠にループ*/
  animation: pathmove 3s ease-in-out infinite;
  opacity: 0;
}
@keyframes pathmove {
  0% {
    height: 0;
    top: 35px;
    opacity: 0;
  }
  30% {
    height: 75px;
    opacity: 1;
  }
  100% {
    height: 0;
    top: 120px;
    opacity: 0;
  }
}
.mainVisual_inner {
  position: relative;
  width: 100%;
  text-align: center;
  color: #fff;
  z-index: 10;
}
.mainVisual_inner h1 {
  width: 35%;
  margin: 0 auto 60px;
}
.mainVisual_inner h1 img {
  width: 100%;
}
.mainVisual_inner h2 {
  margin: 0 0 40px;
  font-size: 40px;
  font-size: 4rem;
  font-weight: normal;
  border-bottom: 2px solid #1ac0aa;
  display: inline-block;
}
.mainVisual_inner #btn-movie a {
  position: relative;
  display: inline-block;
  background-color: rgba(0, 0, 0, 0);
  width: 180px;
  padding: 10px 0;
  border: 1px solid #fff;
  border-radius: 5px;
  font-size: 16px;
  color: #fff;
  overflow: hidden;
  transition: ease 0.2s;
  z-index: 1;
}
.mainVisual_inner #btn-movie a:hover {
  text-decoration: none;
  border: 1px solid #129f8c;
}
.mainVisual_inner #btn-movie span {
  position: relative;
  z-index: 3; /*z-indexの数値をあげて文字を背景よりも手前に表示*/
  color: #fff;
  display: flex;
  justify-content: center;
}
.mainVisual_inner #btn-movie a:hover span {
  color: #fff;
}
.mainVisual_inner #btn-movie a:hover {
  color: #fff;
}
.mainVisual_inner #btn-movie a::before {
  content: "";
  /*絶対配置で位置を指定*/
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  /*色や形状*/
  background: #1ac0aa; /*背景色*/
  width: 100%;
  height: 100%;
  /*アニメーション*/
  transition: transform 0.6s cubic-bezier(0.8, 0, 0.2, 1) 0s;
  transform: scale(0, 1);
  transform-origin: right top;
}
.mainVisual_inner #btn-movie a:hover::before {
  transform-origin: left top;
  transform: scale(1, 1);
}
#btn-movie img {
  margin-left: 15px;
}
@media screen and (max-width: 1024px) {
  #maxhub {
    padding-top: 55px;
  }
  .mainVisual {
    height: 51vw;
  }
  .mainVisual .video-box {
    height: 100%;
    padding-top: unset;
  }
  #maxhub .mainVisual .scroll, #maxhub-inquiry {
    display: none !important;
    opacity: 0 !important;
  }
}
@media screen and (max-width: 700px) {
  #maxhub {
    padding-top: 50px;
  }
  .mainVisual {
    height: 100vw;
  }
  .mainVisual .video-box {
    height: 100vw;
  }
  .mainVisual_inner h1 {
    width: 61vw;
    margin: 0 auto;
  }
  .mainVisual_inner h2 {
    margin: 24px 0 45px;
    font-size: 2rem;
    line-height: 2.7rem;
  }
  .mainVisual_inner #btn-movie a {
    width: 61vw;
    padding: 10px 0;
    border-radius: 24px;
    font-size: 1.5rem;
    margin-top: 50px;
  }
}
/* ==============================
  FV 動画POPUP
============================== */
.mfp-container {
  right: 0;
  width: 90vw;
  max-width: 1080px;
  margin: 0 auto;
}
.mfp-wrap.mfp-ready .mfp-container .mfp-content {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
  -webkit-transition-delay: 0.2s, 0.2s;
  -o-transition-delay: 0.2s, 0.2s;
  transition-delay: 0.2s, 0.2s;
  position: relative;
  width: 100%;
  /* padding-top: 56.25%; */
}
.mfp-video .mfp-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.mfp-content {
  animation: open 1s;
}
@keyframes open {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
