@charset "UTF-8";

.access-page {
  background: #f1f1f1;
}
.access-page .site-header__nav > a[href$="access/"] {
  background: #f0f0ed;
  pointer-events: none;
}
.access-page main {
  overflow: hidden;
}
.access-container,
.location-container,
.location-point__inner,
.area-guide__inner {
  width: min(1400px, calc(100% - 100px));
  margin-inline: auto;
}

.access-mv {
  width: 100%;
  overflow: hidden;
  background: #ddd;
}
.access-mv picture {
  display: block;
  width: 100%;
}
.access-mv img {
  display: block;
  width: 100%;
  height: auto;
}

.access-overview {
  padding: clamp(86px, 6.25vw, 120px) 0 clamp(100px, 7.813vw, 150px);
  background: #fff;
}
.access-heading h1,
.location-intro h2 {
  font-family: var(--latin);
  font-size: clamp(34px, 2.5vw, 48px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.15;
}
.access-heading p {
  margin-top: 18px;
  font-size: clamp(16px, 1.563vw, 30px);
  letter-spacing: 0.08em;
  line-height: 1.7;
}
.access-route {
  width: min(1120px, 88%);
  margin: clamp(70px, 5.208vw, 100px) auto clamp(62px, 4.688vw, 90px);
}
.access-route img {
  display: block;
  width: 100%;
  height: auto;
}
.access-time-groups {
  display: grid;
  gap: clamp(50px, 3.646vw, 70px);
}
.access-time-group h2 {
  padding-bottom: 9px;
  border-bottom: 1px solid #bbb;
  font-size: clamp(13px, 0.938vw, 18px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.4;
}
.access-time-group h2 strong {
  margin: 0 3px;
  font-family: var(--latin);
  font-size: clamp(20px, 1.875vw, 36px);
  font-weight: 400;
}
.access-time-group h2 .name {
  font-size: clamp(18px, 1.563vw, 30px);
}
.access-time-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 25px;
  column-gap: 50px;
}
.access-time {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}
.access-time h3,
.access-time > p {
  display: inline-flex;
  align-items: baseline;
  font-weight: 400;
  line-height: 1.2;
}
.access-time h3 {
  font-size: clamp(15px, 1.094vw, 21px);
  letter-spacing: 0.08em;
}
.access-time h3 span {
  font-size: clamp(20px, 1.563vw, 30px);
}
.access-time > p {
  white-space: nowrap;
}
.access-time > p small {
  margin-right: 8px;
  font-size: clamp(14px, 1.094vw, 21px);
}
.access-time > p strong {
  font-family: var(--latin);
  font-size: clamp(31px, 2.5vw, 48px);
  font-weight: 400;
  line-height: 0.9;
}
.access-time > p span {
  margin-left: 3px;
  font-size: clamp(14px, 1.094vw, 21px);
}
.access-time > p small.alternate {
  margin: 0 0 0 3px;
  font-size: clamp(10px, 0.729vw, 14px);
}
.access-time > small {
  grid-column: 1 / -1;
  border-top: 1px solid #bbb;
  margin-top: 12px;
  display: block;
  clear: both;
  padding-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  line-height: 1.6;
}
.station-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #111;
}
.station-card {
  position: relative;
  min-width: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.station-card::after {
  position: absolute;
  inset: 45% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.58));
}
.station-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}
.station-card:hover img {
  transform: scale(1.035);
}
.station-card figcaption {
  position: absolute;
  z-index: 1;
  right: 18px;
  bottom: 0px;
  display: flex;
  align-items: baseline;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.42);
}
.station-card figcaption span {
  margin-right: 12px;
  font-size: clamp(18px, 1.875vw, 36px);
  letter-spacing: 0.1em;
}
.station-card figcaption strong {
  font-family: var(--latin);
  font-size: clamp(50px, 5.208vw, 100px);
  font-weight: 400;
  line-height: 0.8;
}
.station-card figcaption small {
  margin-left: 5px;
  font-family: var(--latin);
  font-size: clamp(12px, 1.25vw, 24px);
  letter-spacing: 0.06em;
}

.location-intro {
  padding: clamp(90px, 6.25vw, 120px) 0 clamp(100px, 7.292vw, 140px);
  background: #f2f2f2;
}
.location-intro h3 {
  margin-top: 25px;
  font-size: clamp(19px, 1.563vw, 30px);
  font-weight: 400;
  letter-spacing: 0.08em;
}
.location-intro p {
  margin-top: 34px;
  font-size: clamp(12px, 0.833vw, 16px);
  letter-spacing: 0.04em;
  line-height: 2.15;
}
.location-visual {
  aspect-ratio: 1920 / 690;
  overflow: hidden;
}
.location-visual picture {
  display: block;
  width: 100%;
  height: 100%;
}
.location-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.location-point {
  padding: clamp(105px, 7.292vw, 140px) 0 clamp(110px, 8.333vw, 160px);
  background: #f2f2f2;
}
.location-point__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.0625fr) minmax(420px, 1fr);
  align-items: center;
  gap: clamp(65px, 4.167vw, 80px);
}
.point-heading {
  display: grid;
  grid-template-columns: 196px 1fr;
  align-items: start;
}
.point-heading > span {
  position: relative;
  display: block;
  padding-top: 9px;
  font-family: var(--latin);
  font-size: 2.4rem;
  letter-spacing: 0.08em;
}
.point-heading > span::after {
  position: absolute;
  top: 41px;
  left: 68px;
  width: 120px;
  height: 2px;
  background: #888;
  content: "";
  transform: rotate(-45deg);
  transform-origin: center;
}
.point-heading h2 {
  font-size: clamp(19px, 1.458vw, 28px);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1.55;
}
.location-point__copy > p {
  margin-top: 28px;
  font-size: clamp(11px, 0.729vw, 14px);
  letter-spacing: 0.04em;
  line-height: 2.15;
}
.location-point__image {
  aspect-ratio: 650 / 430;
  overflow: hidden;
}
.location-point__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.area-guide {
  padding: 0 0 clamp(130px, 10.417vw, 200px);
  background: #f2f2f2;
}
.area-map {
  overflow: hidden;
  background: #fff;
}
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 40px;
}
.facility-card,
.bunkyo-banner {
  min-width: 0;
  min-height: 340px;
  border: 1px solid #cfcfcf;
  background: #fff;
}
.facility-card {
  padding: 24px 28px 20px;
}
.facility-card--wide {
  grid-column: span 2;
}
.facility-card--wide ul {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  column-gap: 60px;
}
.facility-card h2 {
  padding-bottom: 16px;
  font-size: clamp(16px, 1.042vw, 20px);
  font-weight: 400;
  letter-spacing: 0.18em;
  line-height: 1.5;
  text-align: center;
}
.facility-card ul {
  padding: 0;
  margin: 0;
  list-style: none;
}
.facility-card li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 45px;
  padding: 9px 0 3px;
  border-bottom: 1px solid #ddd;
  font-size: clamp(10px, 0.677vw, 13px);
  letter-spacing: 0.02em;
  line-height: 1.45;
  font-weight: 500;
}
.facility-card li > span::before {
  content: "・";
}
.facility-card li small {
  font-size: clamp(8px, 0.573vw, 11px);
  white-space: nowrap;
}
.bunkyo-banner {
  position: relative;
  overflow: hidden;
}
.bunkyo-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .access-container,
  .location-container,
  .location-point__inner,
  .area-guide__inner {
    width: min(880px, calc(100% - 64px));
  }
  .access-time {
    padding-inline: 18px;
  }
  .access-time h3 {
    display: block;
  }
  .access-time > p {
    float: none;
    margin-top: 10px;
  }
  .location-point__inner {
    grid-template-columns: 1fr 0.9fr;
    gap: 55px;
  }
  .point-heading {
    grid-template-columns: 100px 1fr;
  }
  .point-heading > span {
    padding-top: 7px;
    font-size: 1.4rem;
  }
  .point-heading > span::after {
    top: 36px;
    left: 39px;
    width: 62px;
  }
  .facility-grid {
    gap: 18px;
  }
  .facility-card {
    padding-inline: 18px;
  }
  .facility-card li {
    display: block;
    padding: 10px 0;
  }
  .facility-card li small {
    display: block;
    margin-top: 4px;
  }
}

@media (max-width: 767px) {
  .access-container,
  .location-container,
  .location-point__inner,
  .area-guide__inner {
    width: calc(100% - 50px);
  }
  .access-overview {
    padding: 38px 0 72px;
  }
  .access-heading h1,
  .location-intro h2 {
    font-size: clamp(24px, 6.4vw, 28px);
  }
  .access-heading p {
    margin-top: 10px;
    font-size: clamp(12px, 3.733vw, 16px);
    line-height: 1.7;
  }
  .access-route {
    width: 100%;
    margin: 16px auto 14px;
  }
  .access-time-groups {
    gap: 43px;
  }
  .access-time-group h2 {
    padding-bottom: 7px;
    font-size: clamp(10px, 2.933vw, 13px);
  }
  .access-time-list {
    grid-template-columns: 1fr;
    margin-top: 6px;
  }
  .access-time {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    min-height: 62px;
    padding: 13px 20px 10px;
    border-right: 0;
    border-left: 0;
  }
  .access-time h3 {
    display: block;
    font-size: clamp(14px, 4.267vw, 18px);
  }
  .access-time > p {
    display: flex;
    margin: 0;
  }
  .access-time > p strong {
    font-size: clamp(30px, 9.6vw, 40px);
  }
  .access-time > small {
    grid-column: 1 / -1;
    padding-top: 4px;
    font-size: 11px;
  }
  .station-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .station-card {
    aspect-ratio: 4 / 3;
  }
  .station-card figcaption {
    right: 10px;
    bottom: 4px;
    max-width: calc(100% - 18px);
  }
  .station-card figcaption span {
    margin-right: 5px;
    font-size: 14px;
  }
  .station-card figcaption strong {
    font-size: 48px;
  }
  .station-card figcaption small {
    margin-left: 2px;
    font-size: 12px;
  }
  .location-intro {
    padding: 28px 0 24px;
  }
  .location-intro h3 {
    margin-top: 10px;
    font-size: clamp(16px, 4.533vw, 19px);
  }
  .location-intro p {
    margin-top: 14px;
    font-size: clamp(10px, 2.933vw, 12px);
    letter-spacing: 0.01em;
    line-height: 2;
  }
  .location-visual {
    aspect-ratio: auto;
  }
  .location-visual picture,
  .location-visual img {
    height: auto;
  }
  .location-visual img {
    object-fit: initial;
  }
  .location-point {
    padding: 30px 0 20px;
  }
  .location-point__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .point-heading {
    grid-template-columns: 74px 1fr;
  }
  .point-heading > span {
    padding-top: 5px;
    font-size: 1rem;
  }
  .point-heading > span::after {
    top: 27px;
    left: 27px;
    width: 44px;
  }
  .point-heading h2 {
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.7;
  }
  .location-point__copy > p {
    margin-top: 14px;
    font-size: clamp(10px, 2.933vw, 12px);
    line-height: 2;
  }
  .location-point__image {
    aspect-ratio: 710 / 405;
  }
  .area-guide {
    padding-bottom: 44px;
  }
  .area-guide__inner {
    width: calc(100% - 50px);
  }
  .area-map img {
    aspect-ratio: 1;
  }
  .facility-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-top: 34px;
  }
  .facility-card,
  .bunkyo-banner {
    min-height: 0;
  }
  .facility-card {
    padding: 20px 18px 28px;
  }
  .facility-card--wide {
    grid-column: auto;
  }
  .facility-card--wide ul {
    display: block;
  }
  .facility-card h2 {
    padding-bottom: 12px;
    font-size: 15px;
  }
  .facility-card li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 38px;
    padding: 7px 0 2px;
    font-size: 11px;
  }
  .facility-card li small {
    display: block;
    margin-top: 0;
    font-size: 10px;
  }
  .facility-card--wide li {
    min-height: 34px;
    padding: 6px 0 2px;
  }
  .bunkyo-banner {
    aspect-ratio: auto;
  }
  .bunkyo-banner img {
    height: auto;
    object-fit: initial;
  }
}

/* Yutenji property adaptation */

.access-time-list{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:32px;}
.location-intro h3{line-height:1.7;}
@media (max-width: 767px) {
  .access-time-list { grid-template-columns: 1fr; row-gap: 0; }
}

.meguro-ranking { min-height: 0; align-self: start; }
.meguro-ranking img { height: auto; }
