@charset "UTF-8";
.page-title {
  background: url("../img/backimg/gallery.jpg") center center/cover no-repeat;
}

/*------------------------------------------------------------------------------*/
/* ↓ ギャラリー
/*------------------------------------------------------------------------------*/
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  /* スマホ：2列 */
  gap: clamp(8px, 1.5vw, 12px);
  padding: 50px 10px 20px;
  /* サムネの見た目（任意） */
}
.gallery a {
  display: block;
  aspect-ratio: 4/3;
  /* 画像比率を揃える */
  overflow: hidden;
  border-radius: 10px;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.gallery a:hover img {
  transform: scale(1.03);
}

.splide__slide {
  position: relative;
}

.gallery-name {
  color: #FFFFFF;
  background-color: rgba(0, 0, 0, 0.5019607843);
  transition: transform 0.3s ease, opacity 0.3s ease;
  position: absolute;
  bottom: 0;
  right: 0;
  width: 200px;
  border-radius: 10px 0 10px 0;
  padding: 5px;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
}
.gallery-name span {
  font-size: 1.5em;
}

.lg-sub-html {
  font-family: "Shippori Mincho", serif;
}

@media screen and (max-width: 1024px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
  .gallery-name {
    font-size: 1.7vw;
    width: 75%;
  }
}
@media screen and (max-width: 768px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-name {
    font-size: 2.3vw;
    width: 80%;
  }
}
@media screen and (max-width: 480px) {
  .gallery-name {
    font-size: 2.5vw;
    width: 75%;
    padding: 1vw;
  }
}
/*------------------------------------------------------------------------------*/
/* ↑ ギャラリー
/*------------------------------------------------------------------------------*/