@charset "UTF-8";

.access-map{
  margin-top: 50px;
  padding: 80px 0;
}

.access-map__inner{
  max-width: 795px;
  width: 100%;
  margin: 0 auto;
  padding: 0 15px;
}

.access-map__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
}

.access-map__item {
  position: relative;
}
.access-map__img-wrap{
  position: relative;
  display: inline-block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 6;
  object-fit: cover;
}

.access-map__item:nth-child(odd) .access-map__img-wrap::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -100px;
  width: 150px;
  aspect-ratio: 84 / 35;
  background: url(../img/access/access-route-arrow.svg) no-repeat center/contain;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.access-map__item-triangle {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  border-left: 90px solid var(--themeColor);
  border-bottom: 74px solid transparent;
  z-index: 2;
}

.access-map__item-number {
  font-family: 'Lato', sans-serif;
  position: absolute;
  top: 10px;
  left: -80px;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
}

.access-map__item-text{
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

@media screen and (max-width: 768px) {
  .access-map__list {
    grid-template-columns: 1fr;
    gap: 70px;
  }
  
  /* まずPCの奇数矢印を消す */
  .access-map__item:nth-child(odd) .access-map__img-wrap::after {
    content: none;
  }
  /* スマホは「最後以外」に下矢印 */
  .access-map__item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -65px;
    width: 35px;
    height: 84px;
    background: url(../img/access/access-route-arrow.svg) no-repeat center/contain;
    transform: translateX(-50%) rotate(90deg); /* 横→下へ回転＆中央寄せ */
    top: auto;
    right: auto;
    pointer-events: none;
    z-index: 2;
  }
}
