:root {
  --site-max: 1180px;
  --site-border: #e5e7eb;
  --site-muted: #6b7280;
  --site-surface: #f8fafc;
  --site-accent: #9f4f71;
  --site-accent-soft: #f8eef3;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: #222; background: #fff; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; line-height: 1.7; }
a { color: inherit; text-underline-offset: .2em; }
img { display: block; max-width: 100%; height: auto; }
.site-shell { width: min(calc(100% - 32px), var(--site-max)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 9999; background: #fff; padding: 8px 12px; }
.site-header { position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--site-border); background: rgba(255,255,255,.96); backdrop-filter: blur(8px); }
.site-header__inner { min-height: 76px; display: flex; gap: 24px; align-items: center; justify-content: space-between; }
.site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1.25; flex: 0 0 auto; }
.site-brand__logo { width: 64px; height: 64px; object-fit: contain; flex: 0 0 64px; }
.site-brand__text { display: grid; }
.site-brand__org { font-size: .72rem; color: var(--site-muted); }
.site-brand__name { font-weight: 800; letter-spacing: .02em; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 18px; padding: 0; margin: 0; list-style: none; font-size: .9rem; }
.site-nav a { text-decoration: none; }
.hero { padding: clamp(64px, 9vw, 120px) 0; background: linear-gradient(135deg, var(--site-accent-soft), var(--site-surface)); }
.hero h1 { max-width: 920px; margin: .25em 0; font-size: clamp(2rem, 5vw, 4rem); line-height: 1.22; }
.hero p:last-child { max-width: 720px; font-size: 1.05rem; }
.hero__eyebrow, .entry-kicker { color: var(--site-muted); font-weight: 700; letter-spacing: .04em; }

/* Top-page hero: the selected five-facility collage is the visual identity. */
.home-hero {
  width: 100%;
  overflow: hidden;
  background: #f7fbff;
}
.home-hero img {
  display: block;
  width: 100%;
  height: auto;
}
.home-intro {
  padding-block: clamp(28px, 4vw, 48px);
}
.home-intro p {
  max-width: 860px;
  margin: 0 auto;
  font-size: clamp(1rem, 1.4vw, 1.08rem);
  line-height: 1.9;
}
@media (max-width: 760px) {
  .home-hero {
    background: #fff;
  }
  .home-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .home-intro {
    padding-block: 28px 36px;
  }
}
/* Top-page foundation introduction movie. */
.home-movie {
  padding-top: clamp(20px, 3vw, 36px);
}
.home-movie__lead {
  max-width: 760px;
  margin: -10px 0 24px;
  color: #4b5563;
}
.home-movie__frame {
  width: min(100%, 960px);
  margin-inline: auto;
  overflow: hidden;
  border-radius: 18px;
  background: #000;
  box-shadow: 0 12px 36px rgba(17, 24, 39, .12);
  aspect-ratio: 16 / 9;
}
.home-movie__frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 760px) {
  .home-movie__lead {
    margin-top: -6px;
    margin-bottom: 18px;
  }
  .home-movie__frame {
    border-radius: 12px;
  }
}

.section-block { padding-block: clamp(44px, 6vw, 84px); }
.section-heading { margin-bottom: 28px; }
.section-heading h2 { margin: .15em 0 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.card { overflow: hidden; border: 1px solid var(--site-border); border-radius: 16px; background: #fff; }
.card h2, .card h3 { margin-top: 0; }
.facility-card__image { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--site-surface); }
.facility-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.facility-card__image:hover img { transform: scale(1.025); }
.facility-card__body { padding: 18px 20px 22px; }
.facility-card__body h3 { margin-bottom: 12px; }
.facility-card__body p { margin: .4em 0; color: #4b5563; font-size: .92rem; }
.admission-band { background: var(--site-surface); }
.link-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.link-card { display: grid; gap: 8px; padding: 22px; border: 1px solid var(--site-border); border-radius: 14px; background: #fff; text-decoration: none; }
.link-card span { font-weight: 700; }
.link-card strong { color: var(--site-accent); font-size: .9rem; }
.content-page { max-width: 900px; }
.entry-header { margin-bottom: 32px; }
.entry-header h1 { margin-top: .2em; font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.25; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-hero { margin: 0 0 32px; overflow: hidden; border-radius: 18px; background: var(--site-surface); }
.entry-hero img { width: 100%; max-height: 620px; object-fit: cover; }
.facility-facts { display: grid; gap: 0; margin: 32px 0; border-top: 1px solid var(--site-border); }
.facility-facts > div { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--site-border); }
.facility-facts dt { font-weight: 700; }
.facility-facts dd { margin: 0; line-height: 1.8; }
.admission-facts dd { white-space: normal; }
.site-footer { margin-top: 64px; padding: 40px 0; border-top: 1px solid var(--site-border); background: var(--site-surface); }
.site-footer ul { display: flex; flex-wrap: wrap; gap: 16px; padding: 0; list-style: none; }
@media (max-width: 900px) {
  .site-header { position: static; }
  .site-header__inner { align-items: flex-start; flex-direction: column; padding-block: 16px; }
  .site-nav ul { gap: 10px 14px; }
}
@media (max-width: 760px) {
  .facility-facts > div { grid-template-columns: 1fr; gap: 4px; }
  .hero { padding-block: 56px; }
}

.entry-content table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.entry-content th, .entry-content td { padding: 12px 14px; border: 1px solid var(--site-border); vertical-align: top; text-align: left; }
.entry-content th { background: var(--site-surface); font-weight: 700; }
.table-scroll { overflow-x: auto; margin: 24px 0; }
.table-scroll table { min-width: 820px; }
.document-list { display: grid; gap: 10px; padding-left: 1.2em; }
.button-link { display: inline-block; padding: 11px 18px; border-radius: 999px; background: var(--site-accent); color: #fff; text-decoration: none; font-weight: 700; }
.entry-content dl { display: grid; gap: 12px; }
.entry-content dt { font-weight: 700; }
.entry-content dd { margin: 0; }


/* Annual events table: keep the month column compact and distribute facility columns evenly. */
.page-slug-events .content-page {
  max-width: var(--site-max);
}
.page-slug-events .entry-content .table-scroll table {
  width: 100%;
  min-width: 900px;
  table-layout: fixed;
}
.page-slug-events .entry-content table th:first-child,
.page-slug-events .entry-content table td:first-child {
  width: 64px;
  min-width: 64px;
  white-space: nowrap;
  text-align: center;
}
.page-slug-events .entry-content table th:not(:first-child),
.page-slug-events .entry-content table td:not(:first-child) {
  width: auto;
}


/* Mobile affordance for important horizontally scrollable tables. */
.table-scroll-hint {
  display: none;
  margin: 10px 0 8px;
  color: var(--site-muted);
  font-size: .86rem;
  font-weight: 700;
}
.table-scroll-hint span {
  display: inline-block;
  margin-right: .35em;
  color: var(--site-accent);
  font-size: 1.05em;
}
.page-slug-events .table-scroll,
.page-slug-daily-program .table-scroll {
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
@media (max-width: 760px) {
  .site-brand { gap: 10px; }
  .site-brand__logo { width: 56px; height: 56px; flex-basis: 56px; }
  .site-brand__name { font-size: .98rem; }
  .table-scroll-hint { display: block; }
  .page-slug-events .table-scroll,
  .page-slug-daily-program .table-scroll {
    border-right: 2px solid var(--site-accent-soft);
  }
}

/* v0.4.8: smartphone-first navigation and layout refinements. */
.site-nav-toggle {
  display: none;
  appearance: none;
  border: 0;
  background: transparent;
  color: #222;
  font: inherit;
}
.site-nav-toggle__icon {
  display: grid;
  gap: 4px;
  width: 24px;
}
.site-nav-toggle__icon span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .2s ease, opacity .2s ease;
}
.site-nav-toggle__label {
  font-size: .72rem;
  font-weight: 700;
  line-height: 1;
}

@media (max-width: 900px) {
  body.nav-open { overflow: hidden; }

  .site-shell {
    width: min(calc(100% - 28px), var(--site-max));
  }
  .site-header {
    position: sticky;
    top: 0;
  }
  .site-header__inner {
    position: relative;
    min-height: 66px;
    padding-block: 8px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .site-brand {
    min-width: 0;
    flex: 1 1 auto;
  }
  .site-brand__logo {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
  }
  .site-brand__org {
    font-size: .64rem;
  }
  .site-brand__name {
    font-size: .92rem;
    white-space: nowrap;
  }
  .site-nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
    min-width: 48px;
    min-height: 48px;
    padding: 5px 4px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
  }
  .site-nav-toggle[aria-expanded="true"] .site-nav-toggle__icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .site-nav-toggle[aria-expanded="true"] .site-nav-toggle__icon span:nth-child(2) {
    opacity: 0;
  }
  .site-nav-toggle[aria-expanded="true"] .site-nav-toggle__icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .js .site-nav {
    position: absolute;
    top: 100%;
    left: -14px;
    right: -14px;
    display: none;
    max-height: calc(100dvh - 66px);
    overflow-y: auto;
    padding: 8px 14px 18px;
    border-top: 1px solid var(--site-border);
    border-bottom: 1px solid var(--site-border);
    background: rgba(255,255,255,.99);
    box-shadow: 0 14px 30px rgba(17,24,39,.10);
  }
  .js .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    display: grid;
    gap: 0;
    font-size: .96rem;
  }
  .site-nav li {
    border-bottom: 1px solid #eef0f3;
  }
  .site-nav li:last-child {
    border-bottom: 0;
  }
  .site-nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 10px 4px;
    font-weight: 650;
  }

  .home-hero img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .section-block {
    padding-block: 40px;
  }
  .section-heading {
    margin-bottom: 20px;
  }
  .section-heading h2 {
    font-size: clamp(1.55rem, 7vw, 2rem);
    line-height: 1.35;
  }
  .entry-header {
    margin-bottom: 24px;
  }
  .entry-header h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .entry-hero {
    margin-bottom: 24px;
    border-radius: 14px;
  }
  .entry-hero img {
    max-height: none;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }
  .home-intro p,
  .entry-content,
  .facility-facts dd {
    font-size: 1rem;
    line-height: 1.85;
  }
  .card-grid,
  .link-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .link-card {
    padding: 18px;
  }
  .facility-card__body {
    padding: 16px 18px 20px;
  }
  .button-link {
    width: 100%;
    text-align: center;
  }
  .home-movie__frame {
    width: 100%;
  }
  .site-footer {
    margin-top: 44px;
    padding-block: 32px;
  }
  .site-footer ul {
    display: grid;
    gap: 0;
  }
  .site-footer li + li {
    border-top: 1px solid var(--site-border);
  }
  .site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .entry-content a,
  .facility-facts a,
  .document-list a {
    overflow-wrap: anywhere;
  }
  .table-scroll {
    margin-inline: -14px;
    padding-inline: 14px;
    scroll-padding-inline: 14px;
  }
  .page-slug-events .table-scroll,
  .page-slug-daily-program .table-scroll {
    position: relative;
    border-right: 0;
    background:
      linear-gradient(to right, #fff 0, rgba(255,255,255,0) 20px) left center / 24px 100% no-repeat,
      linear-gradient(to left, rgba(159,79,113,.10), rgba(159,79,113,0)) right center / 28px 100% no-repeat;
  }
}

@media (max-width: 480px) {
  .site-shell {
    width: min(calc(100% - 24px), var(--site-max));
  }
  .site-brand {
    gap: 8px;
  }
  .site-brand__logo {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }
  .site-brand__name {
    font-size: .88rem;
  }
  .home-intro {
    padding-block: 24px 30px;
  }
  .home-intro p {
    font-size: .96rem;
  }
  .section-block {
    padding-block: 34px;
  }
  .facility-facts {
    margin-block: 24px;
  }
  .facility-facts > div {
    padding: 14px 0;
  }
  .entry-content th,
  .entry-content td {
    padding: 10px 11px;
  }
  .table-scroll-hint {
    font-size: .82rem;
  }
}
