@charset "utf-8";

#tube_back{
  position: relative;/*ローディング画像などを表示す際の基点とするため指定*/
/*  height: 100vh; */
  height: 45vw;
  text-align: center;
  color: #fff;
  background-image: url("/image/loading.gif") no-repeat;
  background-size: cover;
  margin-top: 85px;
}

/* Smart Phone View */
@media only screen and (max-width: 649px) {
  #tube_back{
    overflow: hidden;
    height: 56.25vw;
    margin-top: 65px;
  }
}


/* Loading 設定 */
#tube_loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
}

/*jQueryで付与されたdisappearクラスがついたらロゴエリアを非表示*/
#tube_loading.disappear{
   display: none;   
}


/* youtube 設定 */
#youtube-area{
  position: fixed;
  z-index: -10; /*最背面に設定*/
  top: 0;
  right:0;
  left:0;
  bottom:0;
  overflow: hidden;
  opacity: 0;
}
/* Smart Phone View */
@media only screen and (max-width: 649px) {
  #youtube-area{
    position: relative;
    overflow: hidden;
  }
}

/*jQueryで付与されたappearクラスがついたらYoutubeエリアをふわっと表示*/
#youtube-area.appear {
  animation-name:PageAnimeAppear;
  animation-duration:.5s;
  animation-fill-mode:forwards;
}

@keyframes PageAnimeAppear{
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#youtube {
  /*天地中央配置*/
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /*縦横幅指定*/
  width: 177.77777778vh; /* 16:9 の幅→16 ÷ 9＝ 177.77% */
  height: 56.25vw; /* 16:9の幅 → 9 ÷ 16 = 56.25% */
  min-height: 100%;
  min-width: 100%;
}
/* Smart Phone View */
@media only screen and (max-width: 649px) {
  #youtube{
    position: relative;
    width: 100vw;
    height: 56.25vw;
    top: 0;
    left: 0;
    transform: none;

  }
  iframe#youtube{
    width: 100vw;
    height: 56.25vw;
  }
}

/* youtube クリックしないようにマスク処理 */
#youtube-mask{
  position: absolute;
  top:0;
  width:100%;
  height: 100%;
}


