/*========= youtube CSS ===============*/

/*header設定*/
#youtube_header {
  width: 100%;
  height: 100vh;
  max-width: 77vw;
  max-height: 46vw;
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  margin-bottom: 50px;
}

/* YouTubeエリア */
#youtube-area {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* YouTube動画 */
#youtube-area video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 77vw;
  height: 100%;
  object-fit: cover;
  border: none;
}

#youtube-area #youtube {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 85vw;
  height: 100%;
  object-fit: cover;
  border: none;
}




/* ローディングアイコン */
#loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  z-index: 10;
  color: #fff;

}

/* ローディング非表示 */
#loading.disappear {
  display: none;
}


/* キャッチコピー */
#catchphrase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: bold;
  z-index: 10;
  opacity: 0;
  visibility: hidden;
  transition: opacity 2s ease-in-out, visibility 0s linear 2s;
}

#catchphrase p {
  color: #fff;
  font-family: "Zen Old Mincho", serif;
  font-weight: 500;
  font-size: 50px;
  width: 100vw;
  max-width: 1500px;
  text-shadow: 5px 2px 5px rgba(0, 0, 0, 0.3);
}

/* ローディング後に表示 */
#catchphrase.display-catch {
  opacity: 1;
  visibility: visible;
  transition: opacity 2s ease-in-out, transform 2s ease-in-out;
}

/* 表示されるアニメーション */
#youtube-area.appear {
  animation-name: PageAnimeAppear;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
}

/* アニメーション設定 */
@keyframes PageAnimeAppear {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* YouTubeマスク */
#youtube-mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: rgba(0, 0, 0, 0.01);
}


@media (max-width: 1620px) {
  #youtube_header {
    max-height: 40vw;
    max-width: 100%;
    margin-bottom: 30px;
  }

  #youtube-area video,
  #youtube-area #youtube {
    width: 100vw;
  }

  #youtube-area #youtube {
    height: 58vw;
  }
}


@media (max-width: 800px) {
  #youtube_header {
    max-height: 280px;
    margin-bottom: 10px;
  }

  #youtube-area video,
  #youtube-area #youtube {
    width: 110vw;
  }

  #youtube-area #youtube {
    height: 70vw;
  }

}

@media (max-width: 460px) {

  #youtube-area video,
  #youtube-area #youtube {
    width: 130vw;
  }


}