@charset "UTF-8";
/* CSS Document */
/*----------------------------------------
変数
----------------------------------------*/
main.gallery {
  background-color: var(--colorMain);
}

/*----------------------------------------
サイト共通 スタイルシート
----------------------------------------*/
@media screen and (max-width: 899px) {
  #gallery {
    padding-bottom: 64px;
  }
}
@media screen and (min-width: 900px) {
  #gallery {
    padding-bottom: 80px;
  }
}
#gallery .grid .grid-item {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
@media screen and (max-width: 899px) {
  #gallery .grid .grid-item {
    width: 50%;
  }
}
@media screen and (min-width: 900px) {
  #gallery .grid .grid-item {
    width: 33.3333333333%;
  }
}
#gallery .grid .grid-item a {
  width: 100%;
  height: 100%;
}
@media screen and (max-width: 899px) {
  #gallery .grid .grid-item a {
    padding: 0 5px 10px;
  }
}
@media screen and (min-width: 900px) {
  #gallery .grid .grid-item a {
    padding: 0 10px 20px;
  }
}
#gallery .grid .grid-item a img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: 0.3s ease-in-out;
  transition: 0.3s ease-in-out;
}
#gallery .grid .grid-item a span {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#gallery .grid .grid-item.frameS {
  aspect-ratio: 526/350;
}
#gallery .grid .grid-item.frameM {
  aspect-ratio: 526/562;
}
#gallery .grid .grid-item.frameL {
  aspect-ratio: 526/880;
}

/* スクロール時、各要素のフェードイン
---------------------------------------------- */
.fade {
  visibility: hidden;
  -webkit-transition: visibility 0.5s, -webkit-transform 1.2s ease;
  transition: visibility 0.5s, -webkit-transform 1.2s ease;
  transition: visibility 0.5s, transform 1.2s ease;
  transition: visibility 0.5s, transform 1.2s ease, -webkit-transform 1.2s ease;
}
@media screen and (max-width: 899px) {
  .fade {
    -webkit-transform: translateY(40px);
            transform: translateY(40px);
  }
}
@media screen and (min-width: 900px) {
  .fade {
    -webkit-transform: translateY(80px);
            transform: translateY(80px);
  }
}
.fade.fadeIn {
  visibility: visible;
  -webkit-transform: translateY(0px);
          transform: translateY(0px);
}/*# sourceMappingURL=gallery.css.map */