@charset "utf-8";

.gallery-top {
  position: relative;
  width: 100%;
  background-size: 100% auto;
  background-position: top center;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
}

.webp .gallery-top {
  background-image: url(../asset/img/gallery/gallery-top.webp);
}

.no-webp .gallery-top {
  background-image: url(../asset/img/gallery/gallery-top.jpg);
}

.gallery {
  width: 100%;
  margin: 0 auto;
  padding: 0 5% 6rem;
}

.gallery-text {
  width: 100%;
  padding: 4rem 0;
  color: #fff;
  text-align: center;
}

.gallery-text p {
  line-height: 2;
}

.gallery-name {
  padding: 0 0 .6em;
  font-size: 24px;
  font-family: "Shippori Mincho", serif;
  font-weight: 500;
}

.gallery-map {
  position: relative;
  width: 50%;
  margin: 0 auto 5rem;
}

.btn-pop {
  width: 3%;
  position: absolute;
}

.gallery-map p {
  position: absolute;
  width: 100%;
  bottom: 0;
  right: 0;
  color: #fff;
  font-size: 12px;
  text-align: right;
}

.btn-1 {
  top: 29%;
  right: 11.8%;
}

.btn-2 {
  top: 15.8%;
  right: 24%;
}

.btn-3 {
  top: 3%;
  right: 27.5%;
}

.btn-4 {
  bottom: 31%;
  right: 32.8%;
}

.btn-5 {
  top: 27.5%;
  left: 44%;
}

.btn-6 {
  top: 42.5%;
  left: 37%;
}

.btn-7 {
  top: 42%;
  left: 31%;
}

.btn-8 {
  bottom: 24%;
  left: 28.5%;
}

.btn-9 {
  bottom: 18%;
  left: 19%;
}

.btn-10 {
  bottom: 7%;
  left: 12%;
}

.btn-pop img {
  transition: transform 0.3s ease;
}

.btn-pop img:hover {
  transform: scale(1.2);
}

.gallery-image {
  column-count: 4;
  column-gap: 0;
}

.gallery-image img {
  width: 100%;
  height: auto;
  break-inside: avoid;
}

@media screen and (min-width: 1px) and (max-width: 743px) {
  .gallery-top {
    height: 100dvh;
    background-size: 100% auto;
    background-position: center;
    background-repeat: no-repeat;
  }
  
  .webp .gallery-top {
    background-image: url(../asset/img/gallery/gallery-top-sp.webp);
  }
  
  .no-webp .gallery-top {
    background-image: url(../asset/img/gallery/gallery-top-ps.jpg);
  }

  .gallery-map {
    width: 100%;
    margin: 2rem auto;
  }

  .gallery-map p {
    font-size: 2.4vw;
  }

  .gallery-image {
    column-count: 2;
  }

  .btn-pop {
    width: 4.5%;
  }
  
  .btn-1 {
    top: 29%;
    right: 11.8%;
  }
  
  .btn-2 {
    top: 15%;
    right: 24%;
  }
  
  .btn-3 {
    top: 2%;
    right: 27.5%;
  }
  
  .btn-4 {
    bottom: 31%;
    right: 31.5%;
  }
  
  .btn-5 {
    top: 26%;
    left: 44%;
  }
  
  .btn-6 {
    top: 42.5%;
    left: 37%;
  }
  
  .btn-7 {
    top: 42%;
    left: 31%;
  }
  
  .btn-8 {
    bottom: 24%;
    left: 28.5%;
  }
  
  .btn-9 {
    bottom: 18%;
    left: 19%;
  }
  
  .btn-10 {
    bottom: 6.5%;
    left: 12%;
  }
}

@media screen and (min-width: 744px) and (max-width: 1024px) and (orientation:portrait) {
  .gallery-top::before {
    content: "";
    display: block;
    padding-top: 43.8%;
  }

  .gallery-name {
    font-size: 24px;
  }
  
  .gallery-map {
    width: 100%;
    margin: 0 auto 3rem;
  }
  
  .btn-pop {
    width: 2.5%;
    position: absolute;
  }
  
  .gallery-image {
    column-count: 3;
  }
}

@media screen and (min-width: 1025px) {
  .gallery-top::before {
    content: "";
    display: block;
    padding-top: 43.8%;
  }

  .gallery-image {
    column-count: 4;
  }
}
