/* =========================================================
   アクセス (slug: access)  デザインカンプ 560:6234 (5_access)
   top.css / pages.css の後に読み込む（:root 変数・共通パーツ前提）。
   高さ/padding に cqw は使わない（max-width コンテナ + px/rem）。
   ========================================================= */

/* ---------- ヒーロー（写真背景 + コーラルグラデ + パンくず + Access） カンプ 560:6350 ---------- */
.acc-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  height: 657px; /* カンプ 560:6350 実寸 */
  isolation: isolate;
}
.acc-hero__bg { position: absolute; inset: 0; z-index: -2; }
.acc-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; display: block; }
.acc-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* 下の壁面の汚れを抑えるため、コーラル帯を少し上から濃くかける。 */
  background: linear-gradient(to bottom, rgba(252,146,145,0) 14%, rgba(252,146,145,.64) 32%, rgba(252,146,145,.9) 54%, rgba(255,154,153,.92) 100%);
}
.acc-hero__inner {
  width: 100%;
  height: 100%;
  /* タイトルはビューポート左端基準（左下） */
  padding: 0 44px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 92px;
}
.acc-hero__crumb {
  margin: 0 0 14px;
  font-family: var(--ff-jp, inherit);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 2px;
}
.acc-hero__en {
  margin: 0;
  font-family: var(--ff-josefin);
  font-weight: 400;
  font-size: 50px;
  line-height: 1;
  letter-spacing: 1.5px;
}
@media (max-width: 820px) {
  .acc-hero { height: 380px; }
  .acc-hero__en { font-size: 38px; }
}

/* SPレビュー反映: 初期表示は写真全面 + 左下パンくず/ページ名。 */
@media (max-width: 820px) {
  .acc-hero {
    height: calc(100vh - 60px) !important;
    height: calc(100svh - 60px) !important;
  }

  .acc-hero::before {
    background: linear-gradient(to bottom, rgba(252,146,145,0) 22%, rgba(252,146,145,.62) 42%, rgba(252,146,145,.9) 66%, rgba(255,154,153,.92) 100%) !important;
  }

  .acc-hero__inner {
    padding: 0 24px 58px !important;
    justify-content: flex-end !important;
  }
}

.access-page { background: #fff; }
/* 本文(白)が下まで覆うので、共通の page-body 下余白(ピンク)は不要＝謎のピンク帯を消す */
.page-body { padding-bottom: 0; }

/* カンプ body は left:121px / width:1031px / section gap:160px。 */
.access-section { padding: 0; }
.access-wrap {
  width: min(1031px, calc(100% - 40px));
  max-width: 1031px;
  margin-left: auto;
  margin-right: auto;
  padding: 0;
  box-sizing: border-box;
}
.access-times { padding-top: 125px; padding-bottom: 160px; }
.access-map   { padding-top: 0; padding-bottom: 160px; }
.access-route { padding-top: 0; padding-bottom: 81px; }

/* ---------- セクション見出し（英ラベル + 和見出し） ---------- */
.access-heading { margin-bottom: 40px; }
.access-times .access-heading { margin-bottom: 64px; }
.access-map .access-heading { margin-left: 8px; margin-bottom: 38px; }
.access-eyebrow {
  margin: 0;
  font-family: var(--ff-josefin, 'Josefin Sans', sans-serif);
  font-weight: 700;
  color: #ff9a92;
  font-size: 14px;
  letter-spacing: 1.4px;
  line-height: 1.2;
}
.access-title {
  margin: 30px 0 0;
  font-weight: 700;
  color: #493215;
  font-size: 36px;
  letter-spacing: 3.6px;
  line-height: 1.7;
}

/* ---------- 診療時間表（共通 masuno_schedule_table を流用） ---------- */
.access-schedule { width: 843px; max-width: 100%; margin-left: 90px; }
.access-schedule .schedule-table {
  width: 100%;
  max-width: none; /* main.css の .schedule-table{max-width:295px} を打ち消す（本文埋め込み用） */
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 19px;
  line-height: 1.5;
  background: #fff;
}
.access-schedule .schedule-table th,
.access-schedule .schedule-table td {
  padding: 16px 4px;
  text-align: center;
  font-weight: 500;
  color: #493215;
  border: 0;
  white-space: nowrap;
}
.access-schedule .schedule-table th:first-child,
.access-schedule .schedule-table td:first-child { width: 24%; text-align: left; padding-left: 8px; }
.access-schedule .schedule-table thead th:nth-child(7) { color: #3c7eda; }
.access-schedule .schedule-table thead th:nth-child(8) { color: #e44a3f; }
.access-schedule .schedule-table tbody td:not(:first-child) { color: #e44a3f; font-weight: 700; font-size: 29px; line-height: 1; }
.access-schedule .schedule-table tbody td:first-child { font-size: 20px; line-height: 1.5; }
.access-schedule .sch-off {
  width: .82em;
  height: 1.18em;
  background: linear-gradient(to bottom right, transparent calc(50% - .8px), currentColor calc(50% - .8px), currentColor calc(50% + .8px), transparent calc(50% + .8px));
}
.access-schedule .schedule-table thead tr { border-bottom: 1.6px solid #e6ddd4; }
.access-schedule .schedule-table tbody tr:last-child { border-bottom: 1.6px solid #e6ddd4; }

/* ---------- 当院までの地図（Google Maps 埋め込み。カンプ 1031×398） ---------- */
.access-map__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1031 / 398;
  border-radius: 4px;
  overflow: hidden;
  background: #e7e2df;
}
.access-map__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- 牧落駅からのアクセス（手順カード 3列） ---------- */
/* カンプ: カード幅 320px / 3列 / 列間 32px / 本文テキスト幅 320px（カード全幅）。
   本文の折り返しをカンプと一致させるため、本文ボックス幅を 320px に揃える。 */
.access-route .access-wrap {
  width: min(1024px, calc(100% - 40px));
  max-width: 1024px;
}
.access-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 320px);
  justify-content: space-between;
  gap: 20px 32px;
}
.access-step {
  margin: 0;
  height: 459px;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
  box-shadow: none;
}
.access-step__media {
  position: relative;
  width: 100%;
  aspect-ratio: 320 / 234;
  overflow: hidden;
  background: #efe7e3;
}
.access-step__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.access-step__body {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  height: 225px;
  padding: 30px 0 0;
  text-align: left;
}
.access-step__num {
  margin: 0;
  font-family: var(--ff-josefin, 'Josefin Sans', sans-serif);
  font-weight: 700;
  font-size: 30px;
  letter-spacing: 3.6px;
  line-height: 1;
  color: #e44a3f;
  text-align: center;
  padding-top: 3px;
}
.access-step__text {
  margin: 0;
  color: #4f4538;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1.92px;
  line-height: 1.7;
  text-align: left;
}

/* ---------- レスポンシブ ---------- */
@media (max-width: 1180px) {
  .access-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px 24px;
  }
  .access-step {
    height: auto;
  }
  .access-step__body {
    height: auto;
    min-height: 225px;
    padding-left: 18px;
    padding-right: 18px;
  }
}

@media (max-width: 1023px) {
  /* デスクトップ固定 320px グリッドを流動列へ。本文ボックスは余白を戻して読みやすく。 */
  .access-route .access-wrap { width: calc(100% - 48px); max-width: 1031px; margin: 0 auto; }
  .access-steps { grid-template-columns: repeat(2, 1fr); justify-content: stretch; }
  .access-step__body { padding: 28px 24px 32px; }
}
@media (max-width: 820px) {
  .access-wrap { width: calc(100% - 40px); padding: 0; }
  .access-route .access-wrap { width: calc(100% - 40px); padding: 0; }
  .access-times { padding-top: 48px; padding-bottom: 52px; }
  .access-map   { padding-top: 0; padding-bottom: 64px; }
  .access-route { padding-top: 0; padding-bottom: 64px; }
  .access-heading { margin-bottom: 20px; }
  .access-title { font-size: 26px; letter-spacing: 2px; }
  .access-schedule {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
  }
  .access-schedule .schedule-table { font-size: 12px; }
  .access-schedule .schedule-table th,
  .access-schedule .schedule-table td { padding: 10px 2px; }
  .access-schedule .schedule-table th:first-child,
  .access-schedule .schedule-table td:first-child { padding-left: 4px; }
}
@media (max-width: 560px) {
  .access-schedule {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    overflow: visible;
  }
  .access-schedule .schedule-table {
    width: 100%;
    font-size: 10px;
    table-layout: fixed;
  }
  .access-schedule .schedule-table th,
  .access-schedule .schedule-table td {
    padding: 7px 0;
  }
  .access-schedule .schedule-table th:first-child,
  .access-schedule .schedule-table td:first-child {
    width: 27%;
    padding-left: 0;
  }
  .access-schedule .schedule-table tbody td:not(:first-child) {
    font-size: 20px;
  }
  .access-schedule .schedule-table tbody td:first-child {
    font-size: 13px;
  }
  .access-steps { grid-template-columns: 1fr; gap: 20px; }
  .access-step__body {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 18px;
    align-items: start;
    min-height: 0;
    padding: 24px 4px 30px;
    text-align: left;
  }
  .access-step__num {
    margin: 0;
    font-size: 30px;
    line-height: 1;
    letter-spacing: 3.6px;
    text-align: center;
    padding-top: 2px;
  }
  .access-step__text {
    margin: 0;
    font-size: 15px;
    line-height: 1.85;
    letter-spacing: 1px;
  }
}
