:root {
  --ink: #171717;
  --muted: #666;
  --line: #e7e7e7;
  --background: #fff;
  --nav-height: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-underline-offset: 4px; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 7px 11px;
  background: #111;
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

[data-site-header] {
  position: sticky;
  z-index: 20;
  top: 0;
}

.site-header {
  position: relative;
  height: var(--nav-height);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
}

.nav-shell {
  display: flex;
  width: min(1100px, calc(100% - 64px));
  height: 100%;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  white-space: nowrap;
}

.site-menu-toggle { display: none; }

.site-nav > ul {
  display: flex;
  margin: 0;
  padding: 0;
  gap: 28px;
  list-style: none;
}

.site-nav > ul > li {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-activity-label { display: flex; align-items: center; gap: 2px; }

.activity-menu-toggle {
  padding: 3px 1px 3px 4px;
  border: 0;
  background: transparent;
  color: #555;
  cursor: pointer;
  font: inherit;
  line-height: 1;
}

.activity-year-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: -14px;
  display: block;
  min-width: 124px;
  margin: 0;
  padding: 7px 0;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .08);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

.activity-year-menu::before {
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 13px;
  content: "";
}

.activity-year-menu li { margin: 0; }
.activity-year-menu a { display: block; padding: 6px 14px; white-space: nowrap; }

.nav-activity-menu:hover .activity-year-menu,
.nav-activity-menu:focus-within .activity-year-menu,
.nav-activity-menu[data-open="true"] .activity-year-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-nav a { color: #333; font-size: 13px; text-decoration: none; }
.site-nav a:hover,
.site-nav a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.archive-list a:hover,
.archive-list a:focus-visible { color: #666; }

.home-carousel {
  position: relative;
  width: min(1280px, 100%);
  height: clamp(320px, 48vw, 560px);
  margin: 0 auto;
  overflow: hidden;
  background: #eee;
}

.carousel-button {
  position: absolute;
  top: 50%;
  display: grid;
  width: 44px;
  height: 54px;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  cursor: pointer;
  place-items: center;
  font: 300 38px/1 sans-serif;
  transform: translateY(-50%);
}

.carousel-button:hover,
.carousel-button:focus-visible { background: rgba(0, 0, 0, .68); }
.carousel-button-previous { left: 0; }
.carousel-button-next { right: 0; }

.carousel-counter {
  position: absolute;
  right: 16px;
  bottom: 12px;
  margin: 0;
  padding: 2px 8px;
  background: rgba(0, 0, 0, .48);
  color: #fff;
  font-size: 12px;
  line-height: 1.5;
}

.main-content {
  width: min(800px, calc(100% - 64px));
  min-height: 62vh;
  margin: 92px auto 0;
}

h1, h2, h3 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  font-weight: 600;
  line-height: 1.5;
}

h1 { margin: 0 0 42px; font-size: clamp(36px, 7vw, 50px); letter-spacing: .04em; }
h2 { margin: 52px 0 16px; font-size: 25px; }
h3 { margin: 30px 0 10px; font-size: 19px; }
p { margin: 0 0 1.25em; }

.bio-text { margin: 0 0 25px; font-size: 16px; line-height: 2; }
.intro #page-title { margin-bottom: 24px; }
.intro-summary { margin-bottom: 48px; }
.intro-heading { margin: 0 0 28px; font-size: 25px; }
.bio-text p { margin-bottom: 1.25em; }
.signature { color: #444; text-align: right; }

.top-links { display: grid; margin: 42px 0; border-top: 1px solid var(--line); }
.top-links a { padding: 12px 0; border-bottom: 1px solid var(--line); }

.home-section { margin: 0; padding: 0 0 52px; border-top: 1px solid var(--line); }
.home-section h2 { margin-top: 44px; }
.home-link-section { padding: 0; }
.home-page-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  gap: 28px;
  padding: 28px 0;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.home-page-card-image {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: #eee;
}
.home-page-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}
.home-page-card[href="/organization.html"] img { object-position: 68% center; }
.home-page-card h2 { margin: 0 0 10px; }
.home-page-card-action { text-decoration: underline; text-underline-offset: 4px; }
.home-page-card:hover .home-page-card-image img,
.home-page-card:focus-visible .home-page-card-image img { transform: scale(1.035); }
.home-page-card:hover .home-page-card-action,
.home-page-card:focus-visible .home-page-card-action { color: var(--muted); }
#contact { scroll-margin-top: calc(var(--nav-height) + 22px); }
.text-link { text-decoration: underline; }

.prose { max-width: 720px; }
.prose.activity-detail { max-width: none; }
.prose h1 { margin-bottom: 52px; }
.prose h2 { padding-top: 16px; border-top: 1px solid var(--line); }
.prose ul { padding-left: 1.45em; }
.prose li { margin-bottom: .8em; padding-left: .3em; }

.organization-page [id] { scroll-margin-top: calc(var(--nav-height) + 22px); }
.organization-roster,
.school-year-list { margin: 24px 0 38px; }
.organization-roster > div,
.school-year-list > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.organization-roster > div:last-child,
.school-year-list > div:last-child { border-bottom: 1px solid var(--line); }
.organization-roster dt,
.school-year-list dt { font-weight: 700; }
.organization-roster dd,
.school-year-list dd { margin: 0; }
.organization-page > section { margin-bottom: 58px; }
.organization-page > section > .note { color: var(--muted); font-size: 14px; }
.organization-page .award-section h4 {
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 2px solid #aaa;
  font-size: 17px;
}

.archive-list { border-top: 1px solid var(--line); }
.archive-list article { padding: 22px 0; border-bottom: 1px solid var(--line); }
.archive-list a { font-family: "Hiragino Mincho ProN", "Yu Mincho", serif; font-size: 20px; font-weight: 600; text-decoration: none; }

.activity-schools { padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.activity-tabs { display: flex; flex-wrap: wrap; gap: 0; margin: 42px 0 54px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.activity-tabs a { padding: 11px 20px 10px 0; color: var(--muted); }
.activity-tabs a[aria-current="page"] { color: var(--ink); font-weight: 700; }

.archive-source { margin-bottom: 58px; }
.archive-source h1 {
  margin: 52px 0 30px;
  padding-bottom: 12px;
  border-bottom: 2px solid #444;
  font-size: 30px;
}

.archive-source h2 {
  margin: 58px 0 22px;
  padding: 12px 16px 10px;
  border-bottom: 1px solid #aaa;
  border-left: 4px solid #444;
  background: #f7f7f5;
  font-size: 24px;
}

.archive-source h3 {
  margin: 38px 0 16px;
  padding: 0 2px 8px;
  border-bottom: 1px solid #ccc;
  font-size: 20px;
}

.archive-source h4 {
  margin: 28px 0 12px;
  padding-left: 12px;
  border-left: 2px solid #aaa;
  font-size: 17px;
}

.archive-source [id] { scroll-margin-top: calc(var(--nav-height) + 22px); }
.archive-source a { text-decoration: underline; }
.archive-source img { width: auto; max-width: 100%; max-height: 560px; height: auto; margin: 22px auto; object-fit: contain; }
.archive-source iframe { display: block; width: 100%; max-width: 100%; min-height: 360px; margin: 26px 0; border: 0; }
.archive-media { width: min(100%, 640px); margin: 26px auto; }
.archive-source .archive-media iframe { margin: 0; }
.award-box { margin: 22px 0 48px; padding: 4px 24px 20px; border: 1px solid var(--line); background: #fafafa; }
.award-section + .award-section { margin-top: 28px; padding-top: 8px; border-top: 1px solid var(--line); }
.award-section h5 { margin: 22px 0 10px; font-size: 16px; }
.award-section .note { color: var(--muted); font-size: 14px; }
.media-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; margin: 26px 0 46px; }
.media-card { min-width: 0; margin: 0; }
.archive-source .media-grid iframe { min-height: 0; margin: 0; aspect-ratio: 16 / 9; background: #f2f2f2; }
.media-card figcaption { margin-top: 10px; color: #444; font-size: 14px; line-height: 1.6; }
.archive-source table { display: block; width: 100%; margin: 22px 0 38px; border-collapse: collapse; overflow-x: auto; }
.archive-source th, .archive-source td { min-width: 120px; padding: 10px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.archive-source th { min-width: 92px; background: #fafafa; }
.archive-source table.t { margin: 16px 0 30px; font-size: 14px; line-height: 1.6; }
.archive-source table.t th,
.archive-source table.t td { min-width: 100px; padding: 7px 9px; }
.archive-source table.t th { min-width: 84px; }
.archive-source ol.indx { margin: 14px 0 38px; }
.archive-source .restricted-note { display: inline-block; padding: 2px 8px; border: 1px solid var(--line); color: var(--muted); font-size: 12px; }

.related-link-list { margin-bottom: 0; padding-left: 1.3em; }
.related-link-list li { margin-bottom: 6px; }
.contact-person { margin-top: 24px; font-weight: 600; }
.load-error { padding: 18px 20px; border: 1px solid var(--line); color: var(--muted); }

.site-footer { width: min(800px, calc(100% - 64px)); margin: 34px auto 0; padding: 28px 0 42px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; text-align: center; }
.site-footer p { margin: 0; }

@media (max-width: 800px) {
  :root { --nav-height: 68px; }
  .site-header { height: auto; }
  .nav-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: calc(100% - 36px);
    min-height: var(--nav-height);
    height: auto;
    padding: 0;
    gap: 0 16px;
  }
  .site-menu-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    align-content: center;
    justify-items: center;
    gap: 4px;
  }
  .site-menu-toggle > span {
    width: 22px;
    height: 2px;
    background: #333;
    transition: opacity .15s ease, transform .15s ease;
  }
  .site-header[data-menu-open="true"] .site-menu-toggle > span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header[data-menu-open="true"] .site-menu-toggle > span:nth-child(2) { opacity: 0; }
  .site-header[data-menu-open="true"] .site-menu-toggle > span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { display: none; grid-column: 1 / -1; width: 100%; padding-bottom: 12px; }
  .site-header[data-menu-open="true"] .site-nav { display: block; }
  .site-nav > ul { width: 100%; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
  .site-nav > ul > li { width: 100%; border-bottom: 1px solid var(--line); }
  .site-nav > ul > li > a { width: 100%; padding: 9px 0; }
  .site-nav a { font-size: 12px; }
  .nav-activity-menu { flex-direction: column; align-items: stretch; }
  .nav-activity-label { width: 100%; }
  .nav-activity-label > a { flex: 1; padding: 9px 0; }
  .activity-menu-toggle { padding: 9px 4px 9px 12px; }
  .activity-year-menu {
    position: static;
    display: none;
    width: 100%;
    min-width: 0;
    padding: 4px 0 8px 14px;
    border: 0;
    border-top: 1px solid var(--line);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
  .activity-year-menu::before { display: none; }
  .activity-year-menu a { padding: 6px 0; }
  .nav-activity-menu:hover .activity-year-menu,
  .nav-activity-menu:focus-within .activity-year-menu,
  .nav-activity-menu[data-open="true"] .activity-year-menu { display: block; }
}

@media (max-width: 680px) {
  .home-carousel { height: 54vw; min-height: 230px; }
  .carousel-button { width: 38px; height: 48px; font-size: 32px; }
  .main-content { width: calc(100% - 40px); margin-top: 60px; }
  h1 { margin-bottom: 34px; }
  .bio-text { font-size: 15px; }
  .home-page-card { grid-template-columns: 108px minmax(0, 1fr); gap: 18px; padding: 22px 0; }
  .home-page-card h2 { font-size: 21px; }
  .organization-roster > div,
  .school-year-list > div { grid-template-columns: 1fr; gap: 4px; padding: 15px 0; }
  .archive-source h2 { padding: 10px 12px 9px; font-size: 22px; }
  .archive-source h3 { font-size: 19px; }
  .archive-source iframe { min-height: 220px; }
  .award-box { padding: 2px 16px 14px; }
  .media-grid { grid-template-columns: 1fr; gap: 24px; }
  .site-footer { width: calc(100% - 40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .activity-year-menu { transition: none; }
  .site-menu-toggle > span { transition: none; }
  .home-page-card-image img { transition: none; }
}
