/* 交通アクセス: additions to the shared service guide layout (services.css). */
.service-page--access .service-hero { grid-template-columns: minmax(0, 1fr); gap: 32px; }
.service-page--access .service-hero__copy { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 8px 40px; }
.service-page--access .service-kicker { flex-basis: 100%; }
.service-page--access .service-hero h1 { margin: 0; }
.access-address { font-style: normal; font-size: 16px; line-height: 1.9; }
.access-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* One line per way of getting there. Dotted is on foot, solid is by bus; longer legs are drawn longer. */
.access-stations { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 4fr); gap: 20px; min-width: 0; }
.access-station { min-width: 0; padding: 26px 24px 24px; border: 1px solid var(--service-line); border-radius: 6px; background: #fff; }
.access-station:last-child { border-top-right-radius: 40px; }
.access-station h2 { margin-bottom: 18px; color: var(--service-ink); font-size: 18px; line-height: 1.6; }
.access-station h2 small { display: block; color: #5b7074; font-size: 12px; font-weight: 500; }
.access-ways { display: grid; grid-template-columns: repeat(var(--ways), minmax(0, 1fr)); gap: 20px 14px; margin: 0; padding: 0; list-style: none; }
.access-way { min-width: 0; }
.access-way h3 { margin-bottom: 12px; padding: 5px 8px; border-radius: 4px; background: var(--service-tint); color: var(--service-ink); font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; }
.access-stops { position: relative; isolation: isolate; margin: 0; padding: 0; list-style: none; }
.access-stops li { position: relative; padding-left: 24px; }
.access-stop { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 6px; font-size: 13px; line-height: 24px; }
.access-stop small { color: #5b7074; font-size: 11px; white-space: nowrap; }
.is-hospital .access-stop, .is-station .access-stop { color: var(--service-ink); font-weight: 700; }
.access-leg { display: flex; align-items: center; gap: 5px; min-height: max(40px, calc(var(--minutes) * 9px)); font-size: 12px; white-space: nowrap; }
.access-leg b { color: var(--service-ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.access-stops li::before { content: ""; position: absolute; top: -12px; bottom: 12px; left: 6px; border-left: 2px dotted #7f9f95; }
.access-stops li:first-child::before { display: none; }
.access-stops li.is-bus::before { left: 5px; border-left: 4px solid var(--service-accent); }
.access-stops li::after { content: ""; position: absolute; bottom: 6px; left: 1px; width: 12px; height: 12px; box-sizing: border-box; border: 2px solid var(--service-accent); border-radius: 50%; background: #fff; z-index: 1; }
.access-stops li.is-hospital::after { border-color: var(--service-ink); background: var(--service-ink); }
.access-stops li.is-station::after { border-radius: 2px; background: var(--service-accent); }
.access-stations__note { font-size: 12px; line-height: 1.9; color: #5b7074; }

.access-map { margin-top: 24px; overflow: hidden; border-radius: 8px; background: var(--service-tint); }
.access-map iframe { display: block; width: 100%; height: 450px; border: 0; }
.access-map__link { margin: 14px 0 6px; text-align: right; font-size: 14px; }
.access-map__link a, .access-link { color: var(--service-ink); text-decoration: underline; text-underline-offset: 5px; }

.access-data > div { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); align-items: center; }
.access-data dd { word-break: keep-all; overflow-wrap: anywhere; }
.access-data dt { line-height: 1.8; }
.access-line { display: block; color: #5b7074; font-size: 13px; font-weight: 500; }
.access-route { display: block; font-size: 15px; font-weight: 500; }
.access-route b { font-weight: 700; }
.access-nowrap { white-space: nowrap; }
.access-data dd strong { padding: 0 .12em; color: var(--service-ink); font-size: 1.2em; font-variant-numeric: tabular-nums; }
.access-ride { display: block; margin-top: 6px; color: #5b7074; font-size: 13px; line-height: 1.8; }

.access-shops { margin-top: 80px; padding: 38px 42px; border-radius: 6px; background: var(--service-ink); color: #fff; }
.access-shops h2 { margin-bottom: 22px; font-size: 23px; line-height: 1.6; }
.access-shops ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 28px; margin: 0; padding: 0; list-style: none; }
.access-shops li { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 16px; border-top: 1px solid #ffffff59; }
.access-shop__kind { color: #c9dddd; font-size: 12px; }
.access-shops li a { color: #fff; font-size: 16px; font-weight: 700; line-height: 1.6; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #ffffff80; }
.access-shop__time { margin-top: auto; padding-top: 6px; font-size: 13px; }
.access-shop__time b { font-size: 17px; font-variant-numeric: tabular-nums; }
.access-shops > p { margin-top: 22px; color: #c9dddd; font-size: 12px; line-height: 1.9; }

@media (hover: hover) {
    .access-map__link a:hover, .access-link:hover { color: var(--service-accent); }
    .access-shops li a:hover { color: #fff; text-decoration-color: #fff; }
}
@media (max-width: 1180px) {
    .access-stations { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1000px) {
    .access-map iframe { height: 400px; }
    .access-shops ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
    .service-page--access .service-hero { gap: 24px; }
    .access-address { font-size: 15px; }
    .access-station { padding: 20px 16px 18px; }
    .access-station:last-child { border-top-right-radius: 28px; }
    .access-station h2 { font-size: 17px; }
    .access-ways { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
    .access-stops li { padding-left: 21px; }
    .service-page--access .service-nav { gap: 6px; }
    .service-page--access .service-nav a { gap: 8px; padding-inline: 10px; }
    .access-map iframe { height: 340px; }
    .access-map__link { text-align: left; }
    .access-data > div { grid-template-columns: 1fr; }
    .access-route + .access-route { margin-top: 4px; }
    .access-shops { padding: 28px 24px; margin-top: 56px; }
    .access-shops h2 { font-size: 21px; }
    .access-shops ul { grid-template-columns: 1fr; }
}
