/* =============================================================================
   Top Access（アクセスセクション）
   Figma: node-id=11:8107
   ============================================================================= */

/* セクションコンテナ */
.top-access {
  position: relative;
  width: 100%;
  height: 700px;
  overflow: hidden;
  container-type: inline-size;

  &::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.00) 0%, #FFF 50%);
    height: 100px;
  }
}

/* =============================================================================
   背景（写真＋青オーバーレイ）
   ============================================================================= */

.top-access__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.top-access__bg-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-access__bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 95, 161, 0.25);
}

/* =============================================================================
   コンテンツ（テキスト＋マップ横並び）
   Figma: left=145px, top=80px, gap=374px → justify-content: space-between で再現
   ============================================================================= */

.top-access__content {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1630px;
  margin: 0 auto;
  padding: var(--margin-80) var(--margin-40) 0;
}

/* =============================================================================
   テキストボックス（白背景）
   Figma: w=640px, bg=white, p=40px, gap=24px
   ============================================================================= */

.top-access__text {
  background-color: var(--color-white);
  padding: var(--margin-40);
  width: 640px;
  max-width: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: var(--margin-24);
  overflow: hidden;
}

/* heading-2 のカラーをオーバーライド（primary + mincho スタイル） */
.top-access__heading {
  color: var(--color-primary);
  text-align: left;
}

/* paragraph のデフォルトスタイルをそのまま使用（color-black） */
.top-access__paragraph {
  color: var(--color-black);
}

/* =============================================================================
   路線マップ
   Figma PC: w=617px, h=424px（透過PNG）
   ============================================================================= */

.top-access__map {
  position: relative;
  width: 617px;
  flex-shrink: 0;
}

.top-access__map-image {
  display: block;
  width: 100%;
  height: auto;
}

/* =============================================================================
   レスポンシブ（SP）
   SP: 縦積み（マップ上→テキスト下）、height: auto
   ============================================================================= */

@container (max-width: 1340px) {
  .top-access {
    height: auto;
    min-height: 800px;
  }

  .top-access__content {
    flex-direction: column-reverse;
    align-items: center;
    gap: var(--margin-40);
    padding: var(--margin-24) var(--margin-16) 140px;
  }

  .top-access__text {
    max-width: 90%;
    align-items: center;
  }

  .top-access__map {
    max-width: 100%;
  }
}
