:root {
  --h-access: 1387.5px;
  --access-x: 180px;
  --access-top: 100px;
}

.access {
  height: var(--h-access);
  background: var(--c-bg);
  overflow: hidden;
}

.access .section-title {
  letter-spacing: 3.6px;
}

.access__intro,
.access__map-block,
.instagram-strip {
  position: absolute;
  left: 0;
  width: 1439px;
}

.access__intro {
  top: 0;
  height: 704.5px;
  z-index: 1;
}

.access__copy {
  position: absolute;
  top: var(--access-top);
  left: var(--access-x);
  width: 524.5px;
}

.access__view {
  margin-top: 20px;
}

.access__routes {
  display: flex;
  flex-direction: column;
  gap: 40px;
  width: 330px;
  margin-top: 70px;
  margin-left: 50px;
}

.access__routes h3 {
  color: #000;
  font-family: var(--font-sans);
  font-size: var(--fs-21);
  font-weight: 400;
  line-height: 30.5px;
  letter-spacing: 0;
}

.access__routes p {
  margin-top: 20px;
  color: #000;
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  font-weight: 400;
  line-height: 25.6px;
  letter-spacing: 0.8px;
}

.access__photo {
  position: absolute;
  object-fit: cover;
  background: var(--c-bg-alt);
}

.access__photo--intro {
  top: 150px;
  left: 794.5px;
  width: 404.5px;
  height: 404.5px;
}

.access__map-block {
  top: 483.8px;
  height: 648.5px;
  z-index: 2;
}

.access__map-side {
  position: absolute;
  top: 50px;
  left: 719.5px;
  width: 339.5px;
  height: 548.5px;
  overflow: hidden;
}

.access__map-side .section-title,
.access__map-side .access__view {
  display: none;
}

.access__photo--map {
  top: 0;
  left: 0;
  width: 339.5px;
  height: 548.5px;
}

.access__map {
  position: absolute;
  top: 50px;
  left: 0;
  width: 719.5px;
  height: 548.5px;
  max-width: none;
  object-fit: cover;
}

.instagram-strip {
  top: 704.5px;
  height: 683px;
  z-index: 3;
  background: #fff;
}

.instagram-strip__link {
  display: block;
  height: 100%;
}

.instagram-strip__link > p {
  width: 1079px;
  margin-top: 100px;
  margin-left: 180px;
  color: #000;
  font-family: var(--font-serif);
  font-size: var(--fs-16);
  font-weight: 500;
  line-height: 23.2px;
  letter-spacing: 0;
  text-align: center;
}

.instagram-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 160px);
  gap: 30px;
  width: 540px;
  margin-top: 30px;
  margin-left: 449.5px;
}

.instagram-strip__grid img {
  width: 160px;
  height: 200px;
  max-width: none;
  object-fit: cover;
  background: var(--c-bg-alt);
}

/* ===== Tablet 561–1024（Figma 1:578 Frame103 / 1:588 Frame96 / 1:602 Frame97 実測）
       構成: ACCESS 帯（左端寄せ・#CF6919）→ 地図ブロック → アクセス概要 → (Instagram帯なし) ===== */
@media (max-width: 1024px) {
  :root {
    --h-access: auto;
  }

  .access {
    display: flex;
    flex-direction: column;
    height: auto;
    padding-bottom: 0;
  }

  /* Frame 103: 白帯 h462.5、巨大見出しは左端フラッシュ */
  .access__band {
    display: flex;
    order: 1;
    align-items: center;
    height: 462.5px;
  }

  .access__band p {
    margin-left: 1px;
    color: var(--c-accent-deep);
    font-family: var(--font-serif);
    font-size: var(--fs-36);
    font-weight: 500;
    line-height: 52.2px;
    letter-spacing: 3.6px;
  }

  /* Frame 96: VIEW ALL(左端) + 地図 + 右端の写真帯 + 黒ACCESS */
  .access__intro,
  .access__map-block {
    position: relative;
    top: auto;
    left: auto;
    width: auto;
  }

  .access__map-block {
    order: 2;
    height: 1961px;
  }

  .access__map-side {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
  }

  .access__map-side .section-title {
    display: block;
    position: absolute;
    top: 1449px;
    left: 22.5%;               /* 180/800 */
    margin-left: 0;
    color: #000;
  }

  .access__map-side .access__view {
    display: inline-flex;
    position: absolute;
    top: 0;
    left: 0;
    margin: 0;
  }

  .access__photo--map {
    top: 0;
    left: 85.625%;             /* 685/800（右端に縦長の見切れ写真） */
    width: 831px;
    height: 554px;
    max-width: none;
  }

  .access__map {
    top: 67px;
    left: 6.25%;               /* 50/800 */
    width: 77.125%;            /* 617/800 */
    height: 872px;
  }

  /* Frame 97: アクセス概要（右半分のカラム） */
  .access__intro {
    order: 3;
    height: 303.5px;
  }

  .access__copy {
    position: static;
    width: auto;
  }

  .access__intro .access__view {
    position: absolute;
    top: 50px;
    left: 50%;
    margin: 0;
  }

  .access__intro .section-title {
    position: absolute;
    top: 87px;
    left: 50%;
  }

  .access__info {
    display: block;
    position: absolute;
    top: 148px;
    right: 0;
    text-align: right;
  }

  .access__info p {
    font-family: var(--font-sans);
    font-size: var(--fs-16);
    font-weight: 400;
    line-height: 23.2px;
  }

  .access__info-title {
    color: #000;
    letter-spacing: 0.8px;
  }

  .access__info-name {
    color: #828282;
    letter-spacing: 0;
  }

  .access__routes {
    display: block;
    position: absolute;
    top: 193.5px;
    left: 50%;
    width: 330px;
    margin: 0;
  }

  /* Figma tablet/mobile に存在する行だけ残す（車で見出し + 電車の1行） */
  .access__routes section:first-child p,
  .access__routes section:last-child h3 {
    display: none;
  }

  .access__routes h3 {
    font-size: var(--fs-20);
    line-height: 29px;
  }

  .access__routes p {
    margin-top: 5px;
  }

  .access__photo--intro,
  .instagram-strip {
    display: none;
  }
}

/* ===== Mobile ≤560（Figma 1:815 / 1:825 / 1:839。ACCESS見出しは帯とintroの2箇所に畳み、
       map側の黒ACCESSと見切れ写真は mobile では出さない） ===== */
@media (max-width: 560px) {
  .access__map-block {
    height: auto;
    padding-bottom: 100px;
  }

  .access__map-side .section-title {
    display: none;
  }

  .access__map {
    position: static;
    width: 87.2%;              /* 327/375 相当 */
    height: 462px;
    margin: 67px auto 0;
  }

  /* tablet の固定 width:330px は 375 幅では右端がはみ出す（右側テキストが画面外に切れる）。
     left:50% はそのまま、右端を section 余白まで流動化して折り返させる。 */
  .access__routes {
    width: auto;
    right: var(--sp-section-x-mobile);
  }
}
