body.sub_gallery {
  background: url(../images/bg_bottom.jpg) repeat center/contain;
}

/* =======================================================
* sub_main
* ======================================================= */
#sub_main {
  background: url(../images/bg-top.jpg) no-repeat center bottom/cover;
}

.sub_img {
  background: url(../images/bg-gallery.jpg) no-repeat center/cover;
}


/* =======================================================
* gallery
* ======================================================= */
/* ボタン */
#gallery .sort-btn {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  max-width: 800px;
  margin: 0 auto 20px;
}

#gallery .sort-btn li {
  text-align: center;
  line-height: 1.2;
  background: var(--color-greige);
  color: var(--color-white);
  border-radius: 5px;
  cursor: pointer;
  padding: 7px 0;
  font-size: 1.4rem;
  letter-spacing: .15em;
}

#gallery .sort-btn li.is-active {
  background: var(--color-dark);
}

.gallery__list {
  margin-top: 30px;
  display: grid;
  grid-gap: 0px 45px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  grid-auto-rows: 50px;
}

.gallery__list .item {
  appearance: none;
}

.entry-list__item.is-hide {
  display: none;
}

.gallery__list .item img {
  box-shadow: 1px 1px 10px rgba(0, 0, 0, 0.3);
}

.item.size3 {
  grid-row-end: span 3;
}

.item.size4 {
  grid-row-end: span 4;
}

.item.size5 {
  grid-row-end: span 5;
}

.item.size6 {
  grid-row-end: span 6;
}

.item.size7 {
  grid-row-end: span 7;
}

.item.size8 {
  grid-row-end: span 8;
}

@media screen and (max-width:768px) {
  #gallery .sort-btn {
    gap: 5px;
    grid-template-columns: 1fr 1fr 1fr;
  }

  #gallery .sort-btn li {
    font-size: 1.3rem;
  }

  .gallery__list {
    grid-gap: 0px 15px;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    grid-auto-rows: 45px;
  }

  .item.size4 {
    grid-row-end: span 3;
  }

  .item.size7 {
    grid-row-end: span 6;
  }

  .item.size8 {
    grid-row-end: span 6;
  }
}