@charset "utf-8";

.filter__btn,
.gallery__contents {
  filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 0.4));
}


.filter__btn--area {
  display: flex;
  justify-content: space-between;
  margin-top: 100px;
}

.filter__btn {
  width: 30%;
  white-space: nowrap;
  font-size: clamp(0.875rem, 0.655rem + 0.94vw, 1.5rem);
  font-weight: 900;
  line-height: 1;
  padding: 2%;
  text-align: center;
  border-radius: 50px;
  transition: 0.3s;
}

.filter__btn:hover {
  scale: 1.1
} 
.btn__all {
  background-color: var(--primary--blue);
}
.btn__original {
  background-color: var(--primary--pink);
}
.btn__fanArt {
  background-color: var(--primary--violet);
}

@media screen and (min-width: 769px) {
  .filter__btn--area {
    justify-content: flex-start;
    gap: 0 4.1%;
  }

  .filter__btn {
    width: 20%;
  }

}

.gallery__contents--area {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 30px;
}

.gallery__contents--group {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  align-items: stretch;
}

.gallery__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
}

.gallery__contents {
  position: relative;
  flex: 0 0 calc(33.333% - 20px); /* gap の幅に応じて - を調整 */
}

.mask {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  background-color: rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
  pointer-events: none;
}

.gallery__img img {
  display: block;
  width: 100%;
  height: 100%;
  border: 1px solid var(--primary--wihteborder);
  border-radius: 10px;
  box-shadow: 2px 2px 6px 0 rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.6s ease;
  transform-origin: center center;
}

.gallery__img img:hover {
  transform: scale(1.1);
}

.gallery__img--title {
  display: flex;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  justify-content: center;
  align-items: center;
  font-size: clamp(0.625rem, 0.405rem + 0.94vw, 1.25rem);
  line-height: 1;
  text-align: center;
}

.gallery__contents:hover .mask,
.gallery__contents .wide:hover .mask {
  opacity: 1;
}

.wide {
  height: 100%;
  flex-grow: 1;
  width: calc((100% - 60px) / 3);
}

@media screen and (min-width: 769px) {
  .gallery__contents--area {
  display: flex;
  flex-direction: column;
  gap: 60px 0;
  margin-top: 60px;
  }

  .gallery__contents--group {
  gap: 60px;
  }

  .gallery__contents {
  position: relative;
  flex: 0 0 calc(33.333% - 41px); /* gap の幅に応じて - を調整 */
  }

  .gallery__img img {
    border: 2px solid var(--primary--wihteborder);
  }

  .wide {
  height: 100%;
  flex-grow: 1;
  width: calc((100% - 60px) / 3);
}
}

.gallery__contents.hidden {
  display: none;
}


