@charset "utf-8";

/* ==========================================
*
*  YouTube 埋め込み
*
========================================== */
.topYoutubeWrap {
  position: relative;
  padding-top: calc( 100% * 9 / 16 );
  margin: 0 0 20px;
}

.topYoutubeWrap>img,
.topYoutubeWrap>iframe {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

@media screen and (min-width: 900px){
  /* ===== pc ===== */
  .topYoutubeWrap {
    position: fixed;
    bottom: 45px;
    left: 270px;
    z-index: 10;
    width:  300px;
    height: calc( 300px * 9 / 16 );
    margin: 0;
    padding: 0;
    cursor: pointer;
    background: linear-gradient(to bottom, #5fb2e3 0%, #093a95 100%);
    box-shadow: 0 0 15px #fff;
  }

  .topYoutubeWrap::after {
    content: "▶";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    color: #fff;
    z-index: 20;
    font-size: 40px;
    line-height: 1;
  }

  .topYoutubeWrap>img,
  .topYoutubeWrap>iframe {
    pointer-events: none;
    opacity: .2;
  }
}

@media screen and (min-width: 900px) and (max-height: 610px){
  /* ===== pc (高さが低い場合) ===== */
  .topYoutubeWrap {
    position: absolute;
  }
}

/* ==========================================
*
*  magnefic popup
*
========================================== */

/* overlay at start */
.mfp-fade.mfp-bg {
  background: linear-gradient(to bottom, #5fb2e3 0%, #093a95 100%);
  opacity: 0;
  transition: 1s;
}

/* overlay animate in */
.mfp-fade.mfp-bg.mfp-ready {
  opacity: .8;
}

/* overlay animate out */
.mfp-fade.mfp-bg.mfp-removing {
  opacity: 0;
}

/* content at start */
.mfp-fade.mfp-wrap .mfp-content {
  opacity: 0;
  transition: 1s;
}

/* content animate it */
.mfp-fade.mfp-wrap.mfp-ready .mfp-content {
  opacity: 1;
}

/* content animate out */
.mfp-fade.mfp-wrap.mfp-removing .mfp-content {
  opacity: 0;
}

img.mfp-img {
  max-height: none !important;
}

.mfp-iframe-scaler iframe {
  box-shadow: none !important;
}