@charset "UTF-8";
/* ===================================================================
 YouTube 埋め込み（js/youtube.js と組で使う）

 表示時はサムネイル画像だけを読み込み、クリックされたら
 YouTube のプレーヤーに差し替える。動画を何本置いてもページが重くならない。

 <div class="box_yt">
 	<div class="yt_frame">
 		<a class="yt_facade" href="https://www.youtube.com/watch?v=動画ID" data-yt="動画ID" target="_blank" rel="noopener">
 			<img src="https://i.ytimg.com/vi/動画ID/maxresdefault.jpg" alt="動画のタイトル" loading="lazy">
 			<span class="yt_play"></span>
 		</a>
 	</div>
 </div>
=================================================================== */
.box_yt {
  max-width: 800px;
  margin: 40px auto 0;
}
@media only screen and (max-width: 1099px) {
  .box_yt {
    width: 91.66667%;
  }
}
@media only screen and (max-width: 767px) {
  .box_yt {
    margin-top: 6%;
  }
}

/* 16:9 の枠 */
.yt_frame {
  position: relative;
  height: 0;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}
.yt_frame > a,
.yt_frame > iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.yt_facade {
  display: block;
  cursor: pointer;
}
.yt_facade img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 再生ボタン（YouTube と同じ形） */
.yt_play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 68px;
  height: 48px;
  margin: -24px 0 0 -34px;
  border-radius: 14px;
  background: rgba(33, 33, 33, 0.8);
  transition: background-color .2s;
}
.yt_play:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  margin: -9px 0 0 -6px;
  border-style: solid;
  border-width: 9px 0 9px 16px;
  border-color: transparent transparent transparent #fff;
}
.yt_facade:hover .yt_play,
.yt_facade:focus .yt_play {
  background: #f00;
}
