.dress-contents {
  position: relative;
  z-index: 10;
  font-family: 'Noto Serif Japanese', serif;
  background-color: #fff;
  width: 100%;
  overflow: visible;
}

.dress-line {
  width: 100%;
  height: 20px;
  background: url(../images/icon/bg_line.png) 50% 0 no-repeat;
}

.dress-footer {
  position: relative;
  z-index: 10;
  bottom: 0;
}

.new-gallery {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 10vh 20px;
  margin: 0 auto 5vh auto;
}

.gallery-title-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  margin: 2vh auto 5vh auto;

}

.bg01 {
  width: 100%;
  height: 20px;
  background: url(../images/icon/bg_line_title01.png) 50% 0 no-repeat;
}


.bg02 {
  width: 100%;
  height: 20px;
  background: url(../images/icon/bg_line_title02.png) 50% 0 no-repeat;
}

.bg03 {
  width: 100%;
  height: 20px;
  background: url(../images/icon/bg_line_title03.png) 50% 0 no-repeat;
}

.bg04 {
  width: 100%;
  height: 20px;
  background: url(../images/icon/bg_line_title04.png) 50% 0 no-repeat;
}



.gallery-container {
  width: 1200px;
  max-width: 100%;
  box-sizing: border-box;
}

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  width: 100%;
  align-items: start;
}

.thumbnail-grid a {
  display: block;
}

.thumbnail-grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.3s, opacity 0.3s;
  border-radius: 4px;
}

.thumbnail-grid img:hover {
  border-color: #9acccd;
  opacity: 0.85;
}




@media (max-width: 1200px) {
  .thumbnail-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 1000px) {
  .new-gallery {
    padding: 8vh 16px;
  }

  .gallery-container {
    width: 100%;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 800px) {
  .new-gallery {
    padding: 6vh 12px;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
}

@media (max-width: 600px) {
  .new-gallery {
    padding: 5vh 10px;
  }

  .gallery-title-container {
    margin: 1vh auto 3vh auto;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }
}

@media (max-width: 400px) {
  .new-gallery {
    padding: 4vh 8px;
  }

  .gallery-title-container .eng {
    text-align: center;
    width: 100%;
  }

  .thumbnail-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}