@charset "utf-8";

/* CSS Document */
.videoBlock {
  display: flex;
  flex-wrap: wrap;
}

.video {
  box-sizing: border-box;
  position: relative;
}

.videoThumbnail {
  position: relative;
  box-sizing: border-box;
  overflow: hidden;
  background-color: #1f1f1f;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.videoThumbnail img {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: auto;
}

.videoThumbnail:after {
  background-color: #ffffff;
  background-size: contain;
  content: "▶";
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0 auto;
  transform: translate(0, -50%);
  color: #676767;
  text-align: center;
  opacity: 0.9;
  font-family: sans-serif;
}

.videoName {
  color: #ffffff;
  width: auto;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  margin: 0 auto;
  background: #c08e30;
  padding: 0 0.7em;
  line-height: 2.1;
  text-decoration: none;
}

.videoMode {
  align-items: center;
  display: none;
  flex-wrap: wrap;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.videoMode.fadeInM {
  display: flex;
  transition: all .5s linear;
}

.videoLayer {
  background-color: rgba(0, 0, 0, 0.9);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#innerVideo {
  margin: auto;
  padding: 6.25px;
  position: relative;
  z-index: 1;
}

#innerVideo video {
  height: auto;
}

#videoClose {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 0 0.75em;
  cursor: pointer;
  color: #1c1c1c;
  font-weight: 600;
  line-height: 2.75;
  z-index: 2;
}

.videoLink {
  position: absolute;
  top: 75%;
  transform: translateY(-50%);
  background: #c08e30;
  padding: 0 0.7em;
  cursor: pointer;
  color: #ffffff;
  font-weight: 600;
  z-index: 2;
  text-decoration: none;
  line-height: 2.75;
}

.pagenation {
  background: #c5ae8b;
    background-size: contain;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pagenation button {
  display: inline-block;
  transition: all .15s ease;
  background-color: #ffffff;
  border: 1px solid #ffffff;
  color: #2c2c2c;
  text-decoration: none;
  box-sizing: border-box;
  vertical-align: middle;
  cursor: pointer;
  font-family: inherit;
  width: auto;
  height: auto;
}

.pagenation button.active,
.pagenation button:hover {
  background-color: #c08e30;
  color: #ffffff;
}

.pagenation button.active {
  pointer-events: none;
  cursor: auto;
}

.pagenation span {
  display: inline-block;
  color: #ffffff;
}

/* =========================================================
 PC用
========================================================= */
@media screen and (min-width: 769px) {
  .videoBlock {
    width: 980px;
    margin: 0 auto;
  }

  .video {
    width: calc((100% - 28px) / 5);
    margin-right: 7px;
    margin-bottom: 7px;
    padding-bottom: 20px;
  }

  .video:nth-of-type(5n) {
    margin-right: 0;
  }

  .videoThumbnail {
    border-radius: 15px;
    height: 270px;
  }

  .videoThumbnail:after {
    width: 40px;
    height: 40px;
    font-size: 24px;
    line-height: 40px;
  }

  .videoName {
    font-size: 14px;
    border-radius: 5px;
  }

  .videoName:hover {
    text-decoration: underline;
  }

  #innerVideo video {
    max-width: 1030px;
    max-height: 95vh;
    background-color: #c5ae8b;
  }

  #videoClose {
    right: 20px;
    font-size: 16px;
    border-radius: 5px;
  }

  .videoLink {
    right: 20px;
    border-radius: 5px;
    font-size: 16px;
  }

  #videoClose:hover,
  .videoLink:hover {
    text-decoration: underline;
  }

  .pagenation {
    height: 50px;
    line-height: 48px;
    margin-top: 30px;
  }

  .pagenation button {
    border-radius: 5px;
    padding: 0 10px;
    font-size: 14px;
    margin: 0 2px;
    line-height: 31px;
  }

  .pagenation span {
    font-size: 14px;
    margin: 0 2px;
  }
}

/* =========================================================
 スマホ用
========================================================= */
@media screen and (max-width: 768px) {
  .videoBlock {
    margin: 0 auto;
  }

  .video {
    width: 49%;
    margin-right: 2%;
    margin-bottom: 2%;
    padding-bottom: 5%;
  }

  .video:nth-of-type(even) {
    margin-right: 0;
  }

  .videoBlock.main .video:last-of-type {
    display: none;
  }

  .videoThumbnail {
    width: 100%;
    aspect-ratio: 5 / 7;
    border-radius: 1.2vw;
  }

  .videoThumbnail:after {
    width: 12vw;
    height: 12vw;
    font-size: 7vw;
    line-height: 13vw;
  }

  .videoName {
    font-size: 2.8vw;
    border-radius: 0.8vw;
  }

  #innerVideo {
    padding: 1%;
  }

  #innerVideo video {
    width: 100%;
    max-height: 80vh;
  }

  #videoClose {
    right: 1%;
    font-size: 4.2vw;
    border-radius: 0.8vw;
  }

  .videoLink {
    right: 1%;
    font-size: 4.2vw;
    border-radius: 0.8vw;
  }

  .pagenation {
    padding: 1.75% 0;
    margin: 4% 0 0;
  }

  .pagenation form {
    margin: 0 0.8%;
  }

  .pagenation button {
    font-size: 3.2vw;
    border-radius: 0.8vw;
    padding: 0.13em 0.45em 0.07em;
  }

  .pagenation span {
    font-size: 3vw;
  }
}