:root {
  /* intro + map の絶対配置スタック分だけを確保する高さ（Instagram帯は通常フローに戻したため含めない） */
  --h-access: 704.5px;
  --access-x: 180px;
  --access-top: 100px;
}

.access {
  /* intro/map の絶対配置分は padding-top で確保し、Instagram帯（通常フロー・height:auto）は
     実高さぶん自然に伸ばす。固定 height + overflow:hidden だと Elfsight の非同期読み込みで
     実高さが超過した際にフッターへ食い込む */
  padding-top: var(--h-access);
  background: var(--c-bg);
}

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

.access__intro,
.access__map-block {
  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 の「A」の真下から、本文（交通案内）の高さぶん伸びる引用（blockquote）風の縦ライン
   （007でVIEW ALL非表示になり本文が約37px上がったため座標を追従） */
.access__copy::before {
  content: "";
  position: absolute;
  top: 122px;
  left: 8px;
  width: 1px;
  height: 243px;
  background: var(--c-line);
}

/* 007: ACCESS欄の VIEW ALL は削除（/access/ が2025年内容のため）。
   responsive.css 側の tablet/mobile 用 display:flex 上書きより後勝ちさせるため !important */
.access__view,
.access__view--bottom {
  display: none !important;
}

.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;
  white-space: nowrap;
}

.access__map-block {
  top: 150px;
  left: 795px;
  width: 405px;
  height: 405px;
  z-index: 2;
}

.access__map-block picture {
  display: block;
  width: 405px;
  height: 405px;
}

.access__map {
  display: block;
  width: 405px;
  height: 405px;
  max-width: none;
  object-fit: contain;
}

.instagram-strip {
  position: static;
  width: 1439px;
  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__profile {
  color: inherit;
  text-decoration: none;
}

/* 本文カラム（margin-left:180px・width:1079px）と左右端を揃える */
.instagram-strip__embed {
  width: 1079px;
  margin: 30px auto 0;
}

.instagram-strip__embed [class^="elfsight-app-"] {
  width: 100%;
}

/* Elfsight は light DOM 描画なのでサイト側から Load More ボタンを非表示にできる */
.instagram-strip__embed .es-load-more-button {
  display: none !important;
}

/* ===== 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-top: 0;
    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 {
    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;
  }

  .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 {
    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);
  }
}
