.home-location {
  background-color: var(--color-primary-1);
  position: relative;
}

.home-location-container {
  padding: 60px 40px;
  margin: 0 auto;
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px 24px;
  align-items: end;
}
.home-location-container > a {
  color: white;
}

.home-location-title > h2 {
  color: white;
  margin-bottom: 24px;
}
.home-location-title > h3 {
  color: white;
}

.home-location-swiper {
  grid-column: span 2;
}

.home-location-card > .img {
  aspect-ratio: 3/2;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 24px;
}
.home-location-card > .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}
.home-location-card > h4 {
  color: white;
  text-align: center;
  transition: color 0.3s;
}
.home-location-card:hover > .img > img {
  transform: scale(1.1);
}

.home-location-swiper-prev,
.home-location-swiper-next {
  position: absolute;
  z-index: 1;
  bottom: 194px;
  cursor: pointer;
}
.home-location-swiper-prev path,
.home-location-swiper-next path {
  transition: fill-opacity 0.3s;
}
.home-location-swiper-prev:hover > svg > path:nth-child(1),
.home-location-swiper-next:hover > svg > path:nth-child(1) {
  fill-opacity: 1;
}
.home-location-swiper-prev:hover > svg > path:nth-child(2),
.home-location-swiper-next:hover > svg > path:nth-child(2) {
  stroke: var(--color-primary-1);
}

.home-location-swiper-prev {
  left: 0;
}

.home-location-swiper-next {
  right: 0;
}

@media screen and (max-width: 1279px) {
  .home-location-swiper-prev,
  .home-location-swiper-next {
    bottom: calc((100vw - 120px) / 4 / 3 * 2 / 2 - 20px + 114px);
  }
}
@media screen and (max-width: 1023px) {
  .home-location-swiper-prev,
  .home-location-swiper-next {
    bottom: calc((100vw - 96px) / 3 / 3 * 2 / 2 - 20px + 114px);
  }
}
@media screen and (max-width: 767px) {
  .home-location-swiper-prev,
  .home-location-swiper-next {
    bottom: calc((100vw - 72px) / 2 / 3 * 2 / 2 - 20px + 97px);
  }
  .home-location-card > .img {
    margin-bottom: 16px;
  }
}
@media screen and (max-width: 575px) {
  .home-location-container {
    grid-template-columns: 100%;
    gap: 40px;
  }
  .home-location-container > a {
    order: 1;
    margin: 0 auto;
  }
  .home-location-title > h2, .home-location-title > h3 {
    text-align: center;
  }
  .home-location-swiper {
    grid-column: auto;
    max-width: 240px;
    margin: 0 auto;
  }
  .home-location-swiper-prev,
  .home-location-swiper-next {
    bottom: 237px;
  }
}