/* Formosa lower page: Facility & Access. Shared header/footer styles are loaded separately. */
.fm-access-page {
  --xp-blue: #0868f5;
  --xp-cyan: #08b9b0;
  --xp-green: #08b65a;
  --xp-lime: #9fd500;
  --xp-ink: #050a18;
  --xp-text: #172033;
  --xp-muted: #64748b;
  --xp-line: #dce7f2;
  --xp-soft: #f4f9ff;
  width: min(100%, 1717px);
  color: var(--xp-text);
  background: #fff;
  font-family: var(--fm-font);
  overflow: clip;
}

.fm-access-page *,
.fm-access-page *::before,
.fm-access-page *::after {
  box-sizing: border-box;
}

.fm-access-page :where(h1, h2, h3, p, figure, ol, ul, dl, dd) {
  margin: 0;
}

.fm-access-page :where(ol, ul) {
  padding: 0;
  list-style: none;
}

.fm-access-page img {
  display: block;
  max-width: 100%;
}

.fm-access-page :where(a, button):focus-visible {
  outline: 3px solid #ffcc33;
  outline-offset: 4px;
}

.xp-shell {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 160px), 1280px);
  margin-inline: auto;
}

.xp-section {
  position: relative;
  padding-block: 88px;
  overflow: clip;
  background: #fff;
}

.xp-eyebrow {
  color: var(--xp-blue);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .16em;
}

.xp-heading h2 {
  margin-top: 12px;
  color: var(--xp-ink);
  font-size: clamp(34px, 3.1vw, 50px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: .02em;
}

.xp-heading--center {
  text-align: center;
}

.xp-breadcrumb {
  width: min(calc(100% - 160px), 1280px);
  margin: 22px auto 0;
  color: #526177;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
}

.xp-breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xp-breadcrumb__separator {
  color: #b3bfce;
}

.xp-breadcrumb a:hover,
.xp-breadcrumb a:focus-visible {
  color: var(--xp-blue);
}

.xp-hero {
  position: relative;
  min-height: 560px;
  padding: 46px 0 202px;
  overflow: clip;
  background: #fff;
}

.xp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}

.xp-hero__copy {
  position: relative;
  z-index: 3;
  min-width: 0;
  padding-left: 8px;
}

.xp-hero h1 {
  margin-top: 22px;
  color: var(--xp-ink);
  font-size: clamp(42px, 4.1vw, 62px);
  font-weight: 950;
  line-height: 1.28;
  letter-spacing: .025em;
  white-space: nowrap;
}

.xp-hero__lead {
  margin-top: 28px !important;
  color: #37465d;
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 700;
  line-height: 2;
}

.xp-hero__visual {
  position: relative;
  z-index: 2;
  height: 420px;
  min-width: 0;
  overflow: hidden;
  border-radius: 190px 22px 22px 190px;
  box-shadow: 0 24px 64px rgba(25, 84, 132, .17);
}

.xp-hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.xp-hero__wave {
  position: absolute;
  right: -6%;
  bottom: 0;
  z-index: 1;
  width: 112%;
  max-width: none !important;
  height: 340px;
  object-fit: fill;
  opacity: .92;
  pointer-events: none;
}

.xp-location {
  padding-top: 92px;
}

.xp-location__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: stretch;
  gap: 42px;
  margin-top: 38px;
}

.xp-map {
  display: flex;
  min-width: 0;
  min-height: 530px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--xp-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(41, 86, 122, .11);
}

.xp-map iframe {
  display: block;
  width: 100%;
  min-height: 470px;
  flex: 1 1 auto;
  border: 0;
}

.xp-map__link {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: #fff;
  background: var(--xp-blue);
  font-size: 14px;
  font-weight: 850;
  letter-spacing: .02em;
  text-decoration: none;
}

.xp-map__link:hover {
  background: #0055cf;
}

.xp-details {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--xp-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(41, 86, 122, .11);
}

.xp-details > div {
  display: grid;
  grid-template-columns: minmax(132px, .78fr) minmax(0, 1.22fr);
  align-items: center;
  min-height: 82px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--xp-line);
}

.xp-details > div:last-child {
  border-bottom: 0;
}

.xp-details dt {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #344258;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .02em;
}

.xp-details dt img {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
}

.xp-details dd {
  min-width: 0;
  color: var(--xp-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

.xp-details a {
  color: var(--xp-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.xp-route {
  background: var(--xp-soft);
}

.xp-route__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  max-width: 980px;
  margin: 42px auto 0;
}

.xp-route-card {
  position: relative;
  display: grid;
  min-height: 226px;
  grid-template-columns: 74px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-items: center;
  column-gap: 24px;
  padding: 30px 34px;
  overflow: hidden;
  border: 1px solid #d7e7f6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(32, 80, 118, .09);
}

.xp-route-card__number {
  grid-column: 1 / -1;
  color: var(--xp-blue);
  font-size: 16px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: .12em;
}

.xp-route-card img {
  width: 66px;
  height: 76px;
  object-fit: contain;
}

.xp-route-card h3 {
  color: var(--xp-ink);
  font-size: clamp(19px, 1.6vw, 24px);
  font-weight: 900;
  line-height: 1.6;
  letter-spacing: .02em;
}

.xp-route__guidance {
  max-width: 780px;
  margin: 30px auto 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid #d7e7f6;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(32, 80, 118, .11);
}

.xp-route__guidance img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}

.xp-route__notice {
  max-width: 780px;
  margin: 28px auto 0 !important;
  padding: 18px 24px;
  color: #31465d;
  border: 1px solid #cddff2;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.xp-route__notice a {
  color: var(--xp-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xp-gallery {
  padding-block: 96px;
}

.xp-gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 42px;
}

.xp-gallery__grid li,
.xp-gallery__grid figure {
  min-width: 0;
}

.xp-gallery__grid figure {
  overflow: hidden;
  border: 1px solid var(--xp-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(38, 78, 111, .1);
}

.xp-gallery__grid img {
  width: 100%;
  height: 248px;
  object-fit: cover;
}

.xp-gallery__grid li:nth-child(2) img {
  object-position: 50% 48%;
}

.xp-gallery__grid figcaption {
  padding: 18px 20px 20px;
  color: var(--xp-ink);
  font-size: 15px;
  font-weight: 850;
  line-height: 1.5;
  text-align: center;
}

.xp-gallery__notice {
  max-width: 720px;
  margin: 30px auto 0 !important;
  color: #58677a;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.8;
  text-align: center;
}

.xp-contact {
  position: relative;
  padding-block: 84px;
  overflow: clip;
  color: #fff;
  background: var(--xp-blue);
}

.xp-contact__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(300px, .94fr);
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
}

.xp-contact__copy {
  min-width: 0;
}

.xp-contact__eyebrow {
  color: #bce8ff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .16em;
}

.xp-contact h2 {
  margin-top: 14px;
  color: #fff;
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 950;
  line-height: 1.35;
  letter-spacing: .04em;
}

.xp-contact__copy > p:not(.xp-contact__eyebrow, .xp-contact__phone, .xp-contact__mail) {
  max-width: 620px;
  margin-top: 22px;
  color: #e6f3ff;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.9;
}

.xp-contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.xp-contact__button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border: 2px solid #fff;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.xp-contact__button--primary {
  color: var(--xp-blue);
  background: #fff;
}

.xp-contact__button--secondary {
  color: #fff;
  background: transparent;
}

.xp-contact__button:hover {
  transform: translateY(-2px);
}

.xp-contact__phone {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 27px !important;
}

.xp-contact__phone a {
  color: #fff;
  font-size: clamp(26px, 2.7vw, 38px);
  font-weight: 950;
  line-height: 1.2;
  letter-spacing: .03em;
  text-decoration: none;
}

.xp-contact__phone span {
  color: #d9efff;
  font-size: 12px;
  font-weight: 800;
}

.xp-contact__mail {
  margin-top: 8px !important;
}

.xp-contact__mail a {
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.xp-contact__note {
  min-width: 0;
  transform: rotate(-1.5deg);
}

.xp-contact__note img {
  width: 100%;
  filter: drop-shadow(0 18px 24px rgba(0, 33, 92, .2));
}

.fm-access-page [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .65s ease, transform .65s ease;
}

.fm-access-page [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1199px) {
  .xp-shell,
  .xp-breadcrumb {
    width: min(calc(100% - 80px), 1120px);
  }

  .xp-hero__visual {
    height: 380px;
  }

  .xp-location__grid {
    gap: 28px;
  }

  .xp-details > div {
    grid-template-columns: 126px minmax(0, 1fr);
    padding-inline: 18px;
  }
}

@media (max-width: 959px) {
  .xp-hero {
    min-height: 0;
    padding-top: 36px;
  }

  .xp-hero__inner {
    grid-template-columns: 1fr;
  }

  .xp-hero__copy {
    max-width: 680px;
    padding-left: 0;
  }

  .xp-hero__visual {
    height: min(54vw, 470px);
    border-radius: 24px 180px 24px 24px;
  }

  .xp-location__grid,
  .xp-contact__inner {
    grid-template-columns: 1fr;
  }

  .xp-map {
    min-height: 450px;
  }

  .xp-map iframe {
    min-height: 390px;
  }

  .xp-contact__note {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

@media (max-width: 767px) {
  .xp-shell,
  .xp-breadcrumb {
    width: calc(100% - 32px);
  }

  .xp-breadcrumb {
    margin-top: 16px;
    font-size: 11px;
  }

  .xp-section {
    padding-block: 66px;
  }

  .xp-heading h2 {
    margin-top: 9px;
    font-size: clamp(30px, 9.2vw, 40px);
  }

  .xp-hero {
    padding: 32px 0 118px;
  }

  .xp-hero__inner {
    gap: 30px;
  }

  .xp-hero h1 {
    margin-top: 15px;
    font-size: clamp(38px, 11.5vw, 52px);
  }

  .xp-hero__lead {
    margin-top: 20px !important;
    font-size: 14px;
    line-height: 1.9;
  }

  .xp-hero__visual {
    height: min(64vw, 340px);
    min-height: 230px;
    border-radius: 18px 100px 18px 18px;
  }

  .xp-hero__wave {
    right: -18%;
    bottom: 0;
    width: 145%;
    height: 225px;
  }

  .xp-location {
    padding-top: 72px;
  }

  .xp-location__grid {
    gap: 22px;
    margin-top: 30px;
  }

  .xp-map {
    min-height: 382px;
    border-radius: 14px;
  }

  .xp-map iframe {
    min-height: 324px;
  }

  .xp-details {
    border-radius: 14px;
  }

  .xp-details > div {
    grid-template-columns: 1fr;
    gap: 10px;
    min-height: 0;
    padding: 17px 18px;
  }

  .xp-details dt img {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  .xp-route__list,
  .xp-gallery__grid {
    grid-template-columns: 1fr;
  }

  .xp-route__list {
    gap: 16px;
    margin-top: 32px;
  }

  .xp-route-card {
    min-height: 190px;
    grid-template-columns: 58px minmax(0, 1fr);
    column-gap: 18px;
    padding: 25px 24px;
  }

  .xp-route-card img {
    width: 52px;
    height: 62px;
  }

  .xp-route__notice {
    padding: 16px 18px;
    text-align: left;
  }

  .xp-route__guidance {
    margin-top: 24px;
    border-radius: 14px;
  }

  .xp-gallery__grid {
    gap: 18px;
    margin-top: 32px;
  }

  .xp-gallery__grid img {
    height: min(63vw, 300px);
    min-height: 220px;
  }

  .xp-contact {
    padding-block: 68px;
  }

  .xp-contact__inner {
    gap: 36px;
  }

  .xp-contact h2 {
    font-size: clamp(34px, 9.8vw, 42px);
  }

  .xp-contact__actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .xp-contact__button {
    width: 100%;
    padding-inline: 18px;
  }

  .xp-contact__note {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .xp-eyebrow {
    font-size: 12px;
  }

  .xp-hero__lead br {
    display: none;
  }

  .xp-route-card h3 {
    font-size: 18px;
  }

  .xp-contact__phone {
    align-items: flex-start;
    flex-direction: column;
  }

  .xp-contact__mail a {
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fm-access-page [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .xp-contact__button:hover {
    transform: none;
  }
}
