/* access/index.html — アクセスページ（2026-10-31 Figma「天理 倉の耕流祭 2026 - アクセス」node 2:31 準拠）
   Figma の文字スタイル: Zen Kaku Gothic New Medium
     H1 20/28 ls2 / H2 16/32 ls0.8 / Body Regular 14/30.8 ls0.7 / Compact 14/24 ls0.7 / Small 12/20 ls0.5
   色: ink #333、オレンジ #EE761F（ルート表・アイコンの塗り）、時刻表の濃い列 #CD661B（ともに Figma の SVG 塗り）
   Figma はデスクトップ 1440 のみ。スマホ・タブレットは同じ文字・色のまま幅だけ詰める。 */

.access-page {
  --ap-ink: #333333;
  --ap-orange: #EE761F;
  --ap-orange-deep: #CD661B;
  --ap-font: 'Zen Kaku Gothic New', 'Noto Sans JP', sans-serif;

  padding-top: var(--h-header);
  padding-bottom: 189px;
  color: var(--ap-ink);
  font-family: var(--ap-font);
  font-weight: 500;
}

.access-page a {
  color: inherit;
}

/* --- マップ（Figma 2:33: 1296×600、左右 72px） --- */

.access-page__map {
  width: calc(100% - 144px);
  height: 600px;
  margin: 0 auto;
}

.access-page__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- セクション共通（1008 幅、本文列 600 幅） --- */

.access-page__section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 80px;
  width: min(100%, 1008px);
  margin: 0 auto;
  padding-top: 80px;
}

.access-page__section--info {
  padding-top: 144px;
}

.access-page__section--wide {
  padding-top: 130px;
}

.access-page__h1 {
  width: 100%;
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 28px;
  letter-spacing: 2px;
  text-align: center;
}

.access-page__h1--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding-block: 6px;
}

.access-page__h1--icon img {
  width: 40px;
  height: 40px;
  margin-block: -6px;
}

.access-page__h2 {
  width: 100%;
  margin: 0;
  padding-left: 10px;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.8px;
}

.access-text {
  margin: 0;
  font-size: 14px;
  line-height: 30.8px;
  letter-spacing: 0.7px;
}

.access-text a,
.access-maplink {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* --- 総合案内所（Figma 2:37） --- */

.access-venues {
  display: flex;
  justify-content: center;
  gap: 72px;
}

.access-venue {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.access-venue__icon {
  flex: none;
  width: 32px;
  height: 32px;
}

.access-venue__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.access-venue__name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 32px;
  letter-spacing: 0.8px;
}

.access-venue__text {
  margin: 0;
  font-size: 14px;
  line-height: 24px;
  letter-spacing: 0.7px;
}

.access-maplink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  line-height: 20px;
  letter-spacing: 0.5px;
}

.access-maplink::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background: url("../../img/svg/access/icon-map-pin.svg") center / 14px 14px no-repeat;
}

/* --- 車・電車のルート表（Figma 14:131 / 14:53: 600 幅、行 26px・行間 26px） --- */

.access-routes {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) 92px;
  grid-auto-rows: 26px;
  row-gap: 26px;
  width: 456px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.1em;
}

.access-route {
  display: contents;
}

.access-route__from,
.access-route__to {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.92px solid var(--ap-orange);
  white-space: nowrap;
}

.access-route__from {
  grid-column: 1;
}

.access-route__to {
  grid-column: 3;
  background: var(--ap-orange);
  color: #fff;
}

.access-route__to[data-span="2"] {
  grid-row: span 2;
}

.access-route__via {
  grid-column: 2;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  white-space: nowrap;
}

/* 左右の引き出し線（Figma: 各 46〜60px、#EE761F 0.92px） */
.access-route__via::before,
.access-route__via::after {
  content: "";
  flex: 1 1 0;
  min-width: 16px;
  border-top: 0.92px solid var(--ap-orange);
}

.access-route__via small {
  position: absolute;
  top: calc(100% + 1px);
  left: 0;
  right: 0;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-align: center;
}

/* --- 交通案内（Figma 9:114: H2 ブロック 600 幅、間隔 80px） --- */

.access-block {
  display: flex;
  flex-direction: column;
  gap: 30px;
  width: min(100%, 600px);
}

.access-block__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding-inline: 10px;
}

.access-block__content--bus,
.access-block__content--list {
  gap: 20px;
}

.access-block__content--bus {
  padding-inline: 0;
}

.access-block__content--bus > .access-text {
  padding-inline: 10px;
}

/* --- 循環バス時刻表（Figma 12:98: 600×562、塗り #EE761F、奇数便の列 #CD661B、罫線 白 0.57px） --- */

.access-timetable {
  width: 100%;
  padding: 25.9px 15.5px 15.5px;
  background: var(--ap-orange);
  color: #fff;
}

.access-timetable__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
}

.access-timetable__table + .access-timetable__table caption {
  border-top: 0;
}

.access-timetable__table caption {
  height: 32.2px;
  border: 0.57px solid #fff;
  border-bottom: 0;
  font-size: 16px;
  line-height: 32.2px;
  letter-spacing: 0.05em;
}

.access-timetable__table th,
.access-timetable__table td {
  height: 26.84px;
  padding: 0 4px;
  border: 0.57px solid #fff;
  font-weight: 500;
}

.access-timetable__table thead th {
  font-size: 12px;
  letter-spacing: 0.05em;
}

.access-timetable__table tbody th {
  width: 162.6px;
  padding-left: 11px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-align: left;
  white-space: nowrap;
}

.access-timetable__table thead td:first-child {
  width: 162.6px;
}

.access-timetable__table th small {
  margin-left: 2px;
  font-size: 7px;
}

.access-timetable__table--5 :is(thead th, tbody td):nth-child(even),
.access-timetable__table--4 :is(thead th, tbody td):nth-child(even) {
  background: var(--ap-orange-deep);
}

/* --- タクシー・宿泊のカード（Figma 2:65 / 2:91: 540 幅、250px × 2 列、gap 20 / 40） --- */

.access-cards {
  display: grid;
  grid-template-columns: repeat(2, 250px);
  gap: 20px 40px;
  width: 540px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.access-cards p {
  margin: 0;
  font-size: 14px;
  line-height: 30.8px;
  letter-spacing: 0.7px;
}

.access-block__content--list .access-cards {
  align-self: center;
}

.access-block__content--stay {
  gap: 50px;
  width: min(100%, 580px);
  padding-inline: 0;
}

/* --- 来場の注意（Figma 9:127: 580 幅） --- */

.access-notes {
  width: min(100%, 580px);
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 30.8px;
  letter-spacing: 0.7px;
}

.access-notes li::before {
  content: "●";
}

/* --- タブレット（〜1024px）: Figma の文字・色を保ち、左右余白をサイト共通の値に --- */

@media (max-width: 1024px) {
  .access-page {
    padding-bottom: 120px;
  }

  .access-page__map {
    width: calc(100% - var(--sp-section-x-tablet) * 2);
    height: 480px;
  }

  .access-page__section {
    padding-inline: var(--sp-section-x-tablet);
  }

  .access-page__section--info {
    padding-top: 100px;
  }
}

/* --- スマホ（〜560px） --- */

@media (max-width: 560px) {
  .access-page {
    padding-bottom: 100px;
  }

  .access-page__map {
    width: calc(100% - var(--sp-section-x-mobile) * 2);
    height: 360px;
  }

  .access-page__section {
    gap: 50px;
    padding-inline: var(--sp-section-x-mobile);
    padding-top: 70px;
  }

  .access-page__section--info,
  .access-page__section--wide {
    padding-top: 80px;
  }

  .access-venues {
    flex-direction: column;
    gap: 32px;
  }

  .access-routes {
    grid-template-columns: 76px minmax(0, 1fr) 70px;
    width: 100%;
    font-size: 12px;
    letter-spacing: 0.05em;
  }

  .access-route__via {
    gap: 6px;
  }

  .access-route__via::before,
  .access-route__via::after {
    min-width: 6px;
  }

  .access-route__via small {
    font-size: 10px;
  }

  .access-page__h2,
  .access-block__content {
    padding-inline: 0;
  }

  .access-block__content--bus > .access-text {
    padding-inline: 0;
  }

  .access-timetable {
    padding: 16px 8px 8px;
  }

  .access-timetable__table {
    font-size: 11px;
    letter-spacing: 0.02em;
  }

  .access-timetable__table tbody th,
  .access-timetable__table thead td:first-child {
    width: 34%;
  }

  .access-timetable__table tbody th {
    padding: 4px 4px 4px 6px;
    font-size: 10px;
    line-height: 1.3;
    white-space: normal;
  }

  .access-timetable__table th,
  .access-timetable__table td {
    padding-inline: 1px;
  }

  .access-timetable__table thead th {
    font-size: 10px;
  }

  .access-cards {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }
}
