/* ===== Display Toggle Overrides ===== */
html {
  scroll-behavior: smooth;
}
/* SP hero image — visible at ≤480px */
@media screen and (max-width: 480px) {
  .sd[data-s-9d0d1ba4-ad38-4b29-b555-c77690f93608] {
    display: flex !important;
  }
}

/* Tablet related info — visible at 481–768px */
@media screen and (max-width: 768px) {
  .sd[data-s-db639dc7-8af8-4bca-9217-b85d09a38440] {
    display: flex !important;
  }
}
@media screen and (max-width: 480px) {
  .sd[data-s-db639dc7-8af8-4bca-9217-b85d09a38440] {
    display: none !important;
  }
}

/* SP related info — visible at ≤480px */
@media screen and (max-width: 480px) {
  .sd[data-s-a38fd609-df07-47bd-b064-4bdcfc1f7ea0] {
    display: flex !important;
  }
}

/* PC: hide, mobile/tablet: show */
.sd[data-s-11fbf8de-f183-4c38-aeb6-b35192934cfd] {
  display: none !important;
}
@media screen and (max-width: 768px) {
  .sd[data-s-11fbf8de-f183-4c38-aeb6-b35192934cfd] {
    display: flex !important;
  }
}

/* ===== Map Clickable Areas ===== */

.access-map {
  position: relative;
  max-width: 100%;
}

.access-map__area {
  position: absolute;
  display: block;
  z-index: 1;
  cursor: pointer;
}
.access-map__area:hover {
  background-color: #5f5f5f22;
}

/* Debug: uncomment to visualise hit areas */
/* .access-map__area {
  background: rgba(255, 0, 0, 0.25);
} */

/* ===== SP Sidebar Navigation (BEM) ===== */

.access-sp-nav__region {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.access-sp-nav__region-name {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #000;
  line-height: 1.6;
}

.access-sp-nav__list-wrap {
  border-left: 1px solid #a0a0a0;
}

.access-sp-nav__list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

.access-sp-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 50%;
  padding: 12px 10px 12px 12px;
  background: #fff;
  border-top: 1px solid #a0a0a0;
  border-right: 1px solid #a0a0a0;
  border-bottom: 1px solid #a0a0a0;
  text-decoration: none;
  gap: 8px;
  box-sizing: border-box;
}

.access-sp-nav__link-text {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #000;
  letter-spacing: 0.04em;
  line-height: 1.8;
}

.access-sp-nav__link-arrow {
  width: 10px;
  height: auto;
  flex-shrink: 0;
}

/* ===== SP/Tablet Related Info (BEM) ===== */

.access-sp-related__title {
  margin: 0;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 28px;
  line-height: 1.5;
}

.access-sp-related__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 20px;
  width: 100%;
}

.access-sp-related__card {
  display: block;
  position: relative;
  width: calc(50% - 10px);
  text-decoration: none;
  overflow: hidden;
}

.access-sp-related__card-bg {
  width: 100%;
  height: auto;
  display: block;
}

.access-sp-related__card-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  background: #757879;
}

.access-sp-related__card-label {
  margin: 0;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.access-sp-related__card-arrow {
  width: 13px;
  height: auto;
  flex-shrink: 0;
}

@media screen and (max-width: 480px) {
  .access-sp-related__title {
    line-height: 1.4;
  }
  .access-sp-related__grid {
    flex-direction: column;
    gap: 30px;
  }
  .access-sp-related__card {
    width: 100%;
  }
  .access-sp-related__card-label {
    font-size: 14px;
  }
  .access-sp-related__card-arrow {
    width: 14px;
  }
  .access-sp-related__card-panel {
    gap: 16px;
  }
}

/* ===== Branch Detail Section (BEM) ===== */

/* Override d8b0f418 wrapper gap — original has inner wrapper 59ff6d49 with gap:60px */
.sd[data-s-d8b0f418-cd9d-4065-a89d-22995f862902] {
  gap: 100px;
}

/* Section wrapper (replaces 59ff6d49 → 42aa9e6c / 166ff5fd) */
.access-detail__section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  width: 1320px;
  max-width: 100%;
}

/* Branch list (replaces 23e3a172 / 5e2f2785 UL containers) */
.access-branch-list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

/* Region header (replaces 626aaa94) */
.access-region__header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 50px;
  width: 100%;
}

.access-region__title {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 36px;
  color: #000;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
}

.access-region__separator {
  background: #bebebe;
  height: 1px;
  width: 100%;
}

/* Branch item (replaces 9989de81 / 19c04191 LI) */
.access-branch {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 50px;
  width: 100%;
}

.access-branch__anchor {
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  scroll-margin-top: 120px;
}

/* Branch content row (replaces 545e8eaf / ab71b7bf) */
.access-branch__content {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 60px;
  max-width: 100%;
}

/* Info column (replaces 568ef0e9 / 5122e9e5) */
.access-branch__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 50%;
  min-width: 0;
}

.access-branch__name {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #000;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: left;
}

.access-branch__address {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #000;
  letter-spacing: 0.02em;
  line-height: 2;
  text-align: left;
  flex: 1;
}

/* Contact CTA (replaces bcf28a73) */
.access-branch__contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  border: 1px solid #a0a0a0;
  padding: 12px 28px 11px 28px;
  text-decoration: none;
  overflow: hidden;
  z-index: 2;
}

.access-branch__contact-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  z-index: 5;
  position: relative;
}

.access-branch__contact-text {
  margin: 0;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000;
  letter-spacing: 0.02em;
  line-height: 1.8;
  text-align: left;
  transition: color 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.access-branch__contact-arrow {
  width: 17px;
  height: auto;
  flex-shrink: 0;
}

.access-branch__contact-arrow--hover {
  display: none;
  position: absolute;
  right: 0;
}

.access-branch__contact-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 100%;
  background: #000;
  opacity: 0;
  z-index: 0;
  transition:
    width 480ms cubic-bezier(0.19, 1, 0.22, 1),
    opacity 480ms cubic-bezier(0.19, 1, 0.22, 1);
}

.access-branch__contact:hover .access-branch__contact-text {
  color: #fff;
}

.access-branch__contact:hover .access-branch__contact-arrow {
  display: none;
}

.access-branch__contact:hover .access-branch__contact-arrow--hover {
  display: block;
}

.access-branch__contact:hover .access-branch__contact-fill {
  width: 100%;
  opacity: 1;
}

/* Photo column (replaces a368453e / ecdb0f80) */
.access-branch__photo {
  display: flex;
  flex-direction: column;
  width: 50%;
  min-width: 0;
}

.access-branch__img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1272 / 800;
}

/* Divider (replaces e3ac7589 / d6b3246b) */
.access-branch__divider {
  background: #bebebe;
  height: 1px;
  width: 100%;
}

/* ===== Branch Detail Responsive ===== */

@media screen and (max-width: 1140px) {
  .access-branch__contact-inner {
    justify-content: space-between;
  }
}

@media screen and (max-width: 768px) {
  .access-region__title {
    font-size: 32px;
  }
  .access-branch__name {
    font-size: 24px;
    flex: 1;
  }
  .access-branch__address {
    line-height: 1.5;
  }
  .access-branch__content {
    gap: 30px;
    justify-content: center;
  }
  .access-branch__contact {
    padding: 12px 30px 11px 22px;
  }
}

@media screen and (max-width: 480px) {
  .sd[data-s-d8b0f418-cd9d-4065-a89d-22995f862902] {
    gap: 40px;
  }
  .access-detail__section {
    gap: 40px;
  }
  .access-branch-list {
    gap: 40px;
  }
  .access-branch {
    gap: 40px;
  }
  .access-region__header {
    gap: 24px;
  }
  .access-region__title {
    font-size: 30px;
  }
  .access-branch__name {
    font-size: 22px;
    width: 100%;
    line-height: 1.6;
    flex: none;
  }
  .access-branch__address {
    width: 100%;
    line-height: 1.8;
    flex: none;
  }
  .access-branch__content {
    flex-direction: column-reverse;
    gap: 24px;
  }
  .access-branch__info {
    width: 100%;
    gap: 12px;
  }
  .access-branch__photo {
    width: 100%;
  }
  .access-branch__anchor {
    scroll-margin-top: 80px;
  }
  .access-branch__contact {
    padding: 12px 24px 11px 20px;
    margin: 10px 0 0 0;
  }
  .access-branch__contact-inner {
    gap: 8px;
  }
  .access-branch__contact-text {
    font-size: 14px;
    line-height: 1.6;
  }
}
