
/* -----------------------------------------------
galleryセクション
----------------------------------------------- */
.gallery_container {
  padding: calc(200/1280 * 100vw) calc(80/1280 * 100vw) calc(100/1280 * 100vw);
  background-color: #D7E1DE;
}

.gallery_container::before {
  position: absolute;
  content: '';
  background-image: url("../img/top/estate_bg.png");
  background-repeat: repeat;
  background-position: center center;
  opacity: 0.7;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
}

.gallery_wrap{
  display: flex;
  flex-wrap: wrap;
  width: 100%;
}

.gallery_wrap a:hover{
  opacity: 1;
}

.gallery_outline {
  padding: calc(80/1280 * 100vw) calc(33/1280 * 100vw);
  position: relative;
  transition: all .5s ease;
  border: 0.5px solid #0F364A;
  width: calc(100%/3 - 68/1280 * 100vw);
  overflow: hidden;
  z-index: 1;
}

.gallery_outline:nth-child(3n-2){
  border-left: none;
}
.gallery_outline:nth-child(3n){
  border-right: none;
}

.gallery_item{
  width: 100%;
  height: fit-content;
}

.gallery_outline:hover {
  background: rgba(15, 54, 74, 0.2);
}

.gallery_img {
  width: 100%;
  height: calc(300/1280 * 100vw);
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

.gallery_no {
  padding: 5px calc(15/1280 * 100vw);
  border: 1px solid #0F364A;
  border-radius: 100px;
  width: fit-content;
  background-color: white;
}

.arrow_img{
  width: calc(32/375 * 100vw);
  height: calc(6/375 * 100vw);
  position: relative;
  margin-right: calc(5/375 * 100vw);
}

.head{
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .gallery_container {
    padding: calc(200/1280 * 100vw) calc(40/375 * 100vw) calc(100/1280 * 100vw);
    padding-top: 22vw;
  }
  .gallery_outline {
    width: calc(100%/2 - 73/1280 * 100vw);
}
.gallery_container .gallery_no {
  padding: calc(4/375 * 100vw) calc(10/375 * 100vw);
}
.gallery_outline:nth-child(3n-2){
  border-left: 0.5px solid #0F364A;
}
.gallery_outline:nth-child(3n){
  border-right: 0.5px solid #0F364A;
}
.gallery_outline:nth-child(2n-1){
  border-left: none;
}
.gallery_outline:nth-child(2n){
  border-right: none;
}
.gallery_outline:nth-last-child(1){
  border-bottom: none;
}
.gallery_outline:nth-last-child(2){
  border-bottom: none;
}
.gallery_outline:nth-child(1){
  border-top: none;
}
.gallery_outline:nth-child(2){
  border-top: none;
}
.gallery_item h3{
  letter-spacing: 0.1em;
}
}