.gallery .gallery_wrap {
  margin-top: 55px;
}

.gallery .gallery_list {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 15px 5.5% 0;
}

.gallery .gallery_list .gallery_item {
  width: 48.5%;
  cursor: pointer;
}

.gallery .gallery_list .thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.gallery .gallery_list .thumb::before {
  content: "";
  display: block;
  background: #48aaff;
  opacity: 0;
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  -webkit-transition: opacity 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  -o-transition: opacity 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  transition: opacity 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.gallery .gallery_list .thumb div {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 10;
  top: 0;
  left: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  -webkit-transition: all 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  -o-transition: all 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
  transition: all 0.4s cubic-bezier(0.39, 0.575, 0.565, 1);
}

.gallery .gallery_list .gallery_item:hover .thumb::before {
  opacity: 0.3;
}

.gallery .gallery_list .gallery_item:hover .thumb div {
  -webkit-transform: scale(1.04);
  -moz-transform: scale(1.04);
  -ms-transform: scale(1.04);
  -o-transform: scale(1.04);
  transform: scale(1.04);
}

.gallery .gallery_list .gallery_item:hover .cap {
  color: #48aaff;
}

@media only screen and (max-width: 750px) {
  .gallery .gallery_list .gallery_item:nth-of-type(even) {
    margin-left: 3%;
  }
  .gallery .gallery_list .gallery_item:nth-of-type(n+3) {
    margin-top: 3vw;
  }
}

@media only screen and (min-width: 751px) {
  .gallery .gallery_list {
    margin: 0;
  }
  .gallery .gallery_list .gallery_item {
    width: 32.666%;
  }
  .gallery .gallery_list .gallery_item:not(:nth-of-type(3n+1)) {
    margin-left: 1%;
  }
  .gallery .gallery_list .gallery_item:nth-of-type(n+4) {
    margin-top: 1%;
  }
  .gallery .gallery_list .gallery_item .cap {
    font-size: 15px;
    padding-top: 12px;
  }
}

#modal_youtube .wrap {
  background: url(../img/common/bg02_sp.jpg) center no-repeat;
  -webkit-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

@media only screen and (min-width: 751px) {
  #modal_youtube .wrap {
    background: url(../img/common/bg02_pc.jpg) center no-repeat;
    -webkit-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }
}

/**************************************/
#modal_image .wrap {
  background: url(../img/common/bg05_sp.jpg) center no-repeat;
  -webkit-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

@media only screen and (min-width: 751px) {
  #modal_image .wrap {
    background: url(../img/common/bg05_pc.jpg) center no-repeat;
    -webkit-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }
}
