.hero {
  height: 266px;
}

@media (max-width: 1024px) {
  .hero {
    height: 366px;
  }
}

.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 1450px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.7;
  text-shadow: 1px 2px 0 #e60012;
}

.toc {
  width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
  margin-top: 106px;
  padding: var(--panel-padding-y) var(--panel-padding-x);
}

.toc-links {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.toc-name {
  font-size: 16px;
}

.content-section {
  width: min(var(--content-width), calc(100% - 2 * var(--gutter)));
  margin: 40px auto 0;
  padding-top: 88px;
}

.content-section .section-panel {
  container: panel / inline-size;
  width: 100%;
  margin-top: 0;
}

.section-ring.red {
  top: 0;
  right: -64px;
}

.section-ring.orange {
  top: 0;
  left: -64px;
}

.section-ring.blue {
  top: 0;
  right: -64px;
  width: 240px;
  height: 240px;
}

.section-ring.green {
  top: 0;
  right: auto;
  left: -64px;
  width: 240px;
  height: 240px;
}

.office-row {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 48px;
}

.office-info {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.office-name {
  margin: 0;
  color: #ff0000;
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.office-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.office-detail p {
  margin: 0;
  color: #4a4f57;
  font-size: 16px;
  line-height: 1.5;
}

.office-note {
  font-size: 12px !important;
}

.office-photo {
  flex: 1 1 400px;
  min-width: 0;
  height: 434px;
  margin: 0;
  overflow: hidden;
}

.office-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@container panel (max-width: 767px) {
  .office-row {
    flex-direction: column;
  }

  .office-photo {
    width: 100%;
    height: 300px;
    order: 1;
  }

  .office-info {
    order: 2;
  }
}

.office-map {
  margin: 24px 0 0;
  height: 434px;
  overflow: hidden;
}

.office-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.office-map-link {
  display: inline-block;
  margin-top: 8px;
  color: #4a4f57;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.access-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.access-card {
  display: flex;
  gap: 24px;
  padding: 24px 32px;
  background: var(--bg);
}

.access-card-photo {
  flex: 0 0 246px;
  width: 246px;
  aspect-ratio: 246 / 271;
  margin: 0;
  overflow: hidden;
  order: 1;
}

.access-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.access-card-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  order: 2;
}

.access-card-name {
  margin: 0;
  color: #4a4f57;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.access-card-detail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access-card-detail p {
  margin: 0;
  color: #4a4f57;
  font-size: 14px;
  line-height: 1.5;
}

.access-card-map {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 99px;
  background: #000;
  color: #fff;
  font-size: 14px;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-box {
  margin-top: 117px;
}

/* パネルが狭いときは写真を上に積む。2列のままだと1列あたり約300pxで収まるので、
   1列に落とすのはさらに狭い幅から（SPリキッド時に写真だけ巨大化しないように） */
@container panel (max-width: 767px) {
  .access-card {
    flex-direction: column;
  }

  .access-card-photo {
    width: 100%;
  }
}

@container panel (max-width: 599px) {
  .access-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  margin-top: 80px;
}

@media (max-width: 767px) {
  /* このページのPC用 .hero { height } を打ち消し、共通CSSのSP（内容なりの高さ）に戻す */
  .hero {
    height: auto;
  }

  .hero-lead {
    max-width: none;
  }

  /* PC用の margin-top を打ち消し、共通のヒーローとの間隔（40px）に揃える */
  .toc {
    width: 100%;
    height: auto;
    margin-top: 40px;
    padding: 40px 20px;
  }

  .toc-title {
    width: 100%;
    overflow: visible;
    flex-wrap: nowrap;
  }

  .toc-title-en {
    /* flex: 1 1 0;
    width: auto; */
    min-width: 0;
    font-size: 48px;
  }

  .toc-title .label-ja {
    flex: 0 0 auto;
  }

  .toc-links {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .content-section {
    width: 100%;
    margin-top: 32px;
    padding-top: 96px;
  }

  .content-section .section-panel {
    padding: 32px 20px 40px;
  }

  .panel-heading {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    gap: 12px;
  }

  .panel-heading-ja {
    grid-area: auto;
  }

  .panel-heading-en {
    grid-area: auto;
    padding-top: 2px;
  }

  .panel-heading-line {
    grid-column: auto;
    grid-row: auto;
  }

  .section-ring,
  .section-ring.red,
  .section-ring.orange,
  .section-ring.green {
    width: 184px;
    height: 184px;
  }

  .section-ring.red {
    right: -64px;
  }

  .section-ring.orange,
  .section-ring.green {
    left: -64px;
  }

  .section-ring.blue {
    top: 0;
    right: -64px;
    width: 184px;
    height: 184px;
  }

  .section-ring.blue .section-ring-image {
    width: 184px;
    height: 184px;
  }

  .office-row {
    margin-top: 16px;
    gap: 24px;
  }

  .office-photo {
    order: 1;
  }

  .office-info {
    order: 2;
  }

  .office-name {
    font-size: 32px;
  }

  .office-map {
    height: 434px;
    margin: 0;
  }

  .access-grid {
    margin-top: 16px;
    gap: 16px;
  }

  .site-footer {
    margin-top: 40px;
  }

  .footer-nav a:nth-child(3n + 1) {
    padding-left: 16px;
  }

  .footer-box {
    margin-top: 61px;
  }
}
