html {
  scroll-padding-top: 200px;
}

.site-main {
  padding-top: 90px;
}

@media (max-width: 767px) {
  .site-main {
    padding-top: 17vw;
    margin-bottom: 25vw;
  }
}

.page-title {
  background-image: url(../images/location/location-bg.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 500px;
}

.page-title .container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  height: 100%;
  padding-bottom: 28px;
}

.page-title-text {
  color: #fff;
}

.page-title-text span:first-of-type {
  font-size: 55px;
  line-height: 1;
  font-weight: 300;
  font-family: "Jost", sans-serif;
}

.page-title-text span:last-of-type {
  font-size: 16px;
  line-height: 1;
  font-weight: 500;
}

@media (max-width: 767px) {
  .page-title {
    background-image: url(../images/location/location-bg-sp.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 53.3vw;
  }

  .page-title .container {
    padding-bottom: 3vw;
  }

  .page-title-text span:first-of-type {
    font-size: 8.1vw;
    line-height: 1.2;
  }

  .page-title-text span:last-of-type {
    font-size: 4vw;
  }
}

/* 地図 */

.location-map {
  width: 846px;
  position: relative;
  margin: 100px auto 60px;
}

.location-map-svg:nth-child(1) {
  width: 811px;
  position: absolute;
  bottom: 88px;
  right: 0;
  z-index: 1;
  pointer-events: none;
}

.location-map-svg:nth-child(3) {
  width: 800px;
  margin-right: auto;
}

@media (max-width: 1024px) {
  .location-map {
    width: 82.6vw;
  }

  .location-map-svg:nth-child(1) {
    width: 79.2vw;
    bottom: 8.5vw;
  }

  .location-map-svg:nth-child(3) {
    width: 78.1vw;
  }
}

@media (max-width: 767px) {
  .location-map {
    margin: 8vw auto 0vw;
  }
  .location-map-svg:nth-child(2) {
    width: 100%;
    bottom: 4.4vw;
    position: absolute;
  }

  .location-map-svg:nth-child(3) {
    width: 78.1vw;
  }
}

/* リンクリスト */
.location-map-list-wrapper {
  width: 67%;
  margin: 0 auto;
  gap: 15px;
  display: flex;
  flex-direction: column;
}

.location-map-list {
  display: flex;
  justify-content: flex-start;
}

.location-map-list a {
  display: block;
  width: fit-content;
  font-size: 17px;
  line-height: 1.75;
  color: #005094;
  font-weight: 700;
}

.location-map-list a:not(:first-of-type) {
  margin-left: 50px;
  position: relative;
}

.location-map-list a:not(:first-of-type):before {
  content: "／";
  display: block;
  position: absolute;
  left: -30px;
  top: 0;
  bottom: 0;
  color: #005094;
  font-size: 16px;
  line-height: 1.75;
  font-weight: 300;
}

@media (max-width: 1024px) {
  .location-map-list-wrapper {
    width: fit-content;
    gap: 15px;
  }

  .location-map-list a {
    display: block;
    width: fit-content;
    font-size: 17px;
    line-height: 1.75;
    color: #005094;
    font-weight: 700;
  }

  .location-map-list a:not(:first-of-type) {
    margin-left: 50px;
    position: relative;
  }

  .location-map-list a:not(:first-of-type):before {
    content: "／";
    display: block;
    position: absolute;
    left: -30px;
    top: 0;
    bottom: 0;
    color: #005094;
    font-size: 16px;
    line-height: 1.75;
    font-weight: 300;
  }
}

@media (max-width: 767px) {
  .location-map-list-wrapper {
    display: none;
  }
}

/* 地図アイテム */
.location-map-item-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 75px;
  border-top: 1px solid #c3c3c3;
  margin-bottom: 200px;
}

.location-map-item {
  display: flex;
  align-items: flex-start;
  padding: 65px 0;
  border-bottom: 1px solid #c3c3c3;
}

.location-map-item.w-100 {
  width: 100%;
}

.location-map-item.w-50 {
  width: 47.5%;
}

.location-map-item iframe {
  width: 300px;
  height: 250px;
}

.location-map-item-title {
  font-size: 20px;
  line-height: 1;
  color: #005094;
  font-weight: 700;
  margin-bottom: 25px;
}

.location-map-item-title:nth-of-type(3) {
  margin-top: 50px;
}

.location-map-item-address {
  font-size: 16px;
  line-height: 1.7;
  font-weight: 500;
}

/* Google Maps */
.map-container {
  position: relative;
  width: 300px;
  height: 250px;
  background: #f0f2f5;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 20px;
}

.map-skeleton {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #f0f2f5 25%, #e4e6eb 50%, #f0f2f5 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.map-skeleton.loaded {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.map-iframe.loaded {
  opacity: 1;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

@media (max-width: 1024px) and (min-width: 768px) {
  .location-map-item iframe {
    width: 100% !important;
    aspect-ratio: 300 / 250;
    height: auto !important;
  }

  .map-container {
    width: 40% !important;
    aspect-ratio: 300 / 250;
    height: auto !important;
    margin-left: 6%;
  }

  .location-map-item.w-50 {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .location-map-item-wrapper {
    margin-top: 8vw;
    margin-bottom: 25vw;
  }
  .location-map-item {
    flex-direction: column;
    padding: 8vw 0;
  }
  .location-map-item iframe {
    width: 100%;
    aspect-ratio: 620 / 300;
    height: auto;
  }

  .map-container {
    width: 100%;
    aspect-ratio: 620 / 300;
    height: auto;
    margin-bottom: 4vw;
  }

  .location-map-item.w-50 {
    width: 100%;
  }
  .location-map-item-title {
    font-size: 4.4vw;
    margin-bottom: 2.5vw;
  }
  
  .location-map-item-title:nth-of-type(3) {
    margin-top: 3.5vw;
  }
  
  .location-map-item-address {
    font-size: 3.3vw;
        letter-spacing: 0.04em;
        font-weight: 700;
  }
}
