:root {
  color-scheme: light;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #283824;
  background: #fff;
  --panel: #fafff4;
  --tint: #edf6e5;
  --action: #426b34;
  --accent: #83aa62;
  --link: #345b28;
  --border: #cbdcbf;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
}

.site-header, .site-footer {
  background: var(--tint);
  border-color: var(--border);
  border-style: solid;
  border-width: 0;
}

.site-header { border-bottom-width: 1px; }

.site-header-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 24px;
  width: min(calc(100% - 24px), 960px);
  margin-inline: auto;
  padding-block: 12px;
}

.site-brand {
  font-size: 1.125rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.site-brand a { color: inherit; text-decoration: none; }

.site-header-inner > .site-menu { display: none; }
.mobile-menu-toggle, .mobile-menu-close button {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #404040;
  font: inherit;
  cursor: pointer;
}

.mobile-menu-toggle {
  display: grid;
  place-items: center;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  box-shadow: 0 -8px currentColor, 0 8px currentColor;
}

.mobile-menu {
  position: fixed;
  inset: 0 auto 0 0;
  width: 92%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--panel);
  color: #404040;
  overflow: auto;
  transform: translateX(-105%);
  transition: transform .7s ease-in-out, display .7s allow-discrete, overlay .7s allow-discrete;
}

.mobile-menu[open] {
  transform: translateX(0);
  box-shadow: 6px 0 25px #00000026;
}

.mobile-menu::backdrop {
  background: #00000073;
  opacity: 0;
  transition: opacity .7s ease-in-out, display .7s allow-discrete, overlay .7s allow-discrete;
}

.mobile-menu[open]::backdrop { opacity: 1; }

@starting-style {
  .mobile-menu[open] { transform: translateX(-105%); }
  .mobile-menu[open]::backdrop { opacity: 0; }
}

body:has(.mobile-menu[open]) { overflow: hidden; }

.mobile-menu-inner {
  min-height: 100%;
  padding: 5% 5% 24px;
}

.mobile-menu-close {
  position: sticky;
  top: 8px;
  display: flex;
  justify-content: flex-end;
  background: var(--panel);
  z-index: 1;
}

.mobile-menu-close button {
  color: #333;
  font-size: 28px;
  line-height: 1;
}

.mobile-menu ul {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.mobile-menu li {
  width: 95%;
  margin: 0 0 6px;
  border-bottom: 1px solid #d4d4d4;
}

.mobile-menu li a {
  position: relative;
  display: block;
  padding: 12px 45px 12px 10%;
  color: inherit;
  line-height: 1.5;
  text-decoration: none;
}

.mobile-menu li a::after {
  position: absolute;
  top: 50%;
  right: 25px;
  width: 6px;
  height: 6px;
  border-top: 1px solid #8a8a8a;
  border-right: 1px solid #8a8a8a;
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.mobile-menu a[aria-current="page"] { font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .mobile-menu, .mobile-menu::backdrop { transition: none; }
}
.site-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
}

.site-menu a {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
}

.site-menu a:hover { background: #d8e9cb; }
.site-menu a[aria-current="page"] { background: var(--action); color: #fff; }

.site-footer {
  margin-top: auto;
  padding: 12px;
  border-top-width: 1px;
  text-align: center;
}

@media (min-width: 600px) {
  .site-header-inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    width: min(calc(100% - 48px), 960px);
  }
  .mobile-menu-toggle { display: none; }
  .site-header-inner > .site-menu { display: flex; justify-self: end; }
}
a { color: var(--link); text-underline-offset: .2em; }
a:focus-visible { outline: 3px solid var(--link); outline-offset: 4px; }

main { color: #000; }
main a { color: inherit; }

.home {
  display: grid;
  place-items: center;
  flex: 1;
  padding: 36px 20px;
  background: #fff;
}

.home-links {
  display: grid;
  gap: 18px;
  width: min(100%, 320px);
}

.button {
  display: grid;
  place-items: center;
  min-height: 64px;
  padding: 12px;
  border-radius: 12px;
  background: var(--tint);
  border: 1px solid var(--accent);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.button:hover { background: #d8e9cb; }

.guide {
  line-height: 1.55;
  width: min(calc(100% - 24px), 768px);
  margin: 0 auto;
  padding: 24px 0 36px;
}

.page-header { text-align: center; }


h1, h2, h3 {
  margin: 0 0 16px;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

h1::after, h2::after, h3::after {
  display: block;
  width: 2.75rem;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.guide-section {
  margin: 28px 0;
  padding: 18px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}

p, ol { margin: 0; }
p + p { margin-top: 6px; }
ol { padding-inline-start: 1.65em; }
li + li { margin-top: 4px; }

table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: inherit;
}

th, td {
  padding: 8px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

th { background: var(--tint); }
tbody { background: #fff; }
.schedule th:first-child { width: clamp(6.25rem, 40%, 10rem); }
.solo th:first-child { width: clamp(6rem, 36%, 12rem); }

.notes { margin-top: 12px; }
.note { font-size: .875rem; }
.guide-section + .guide-section { margin-top: clamp(36px, 6vw, 52px); }
.stage-layout {
  display: block;
  margin: 16px 0 6px;
  border: 1px solid #8a8a8a;
  border-radius: 8px;
}

.stage-layout img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 7px;
}

.program-part + .program-part { margin-top: clamp(36px, 6vw, 48px); }
.duty + .duty { margin-top: 24px; }
.duty {
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
}
.assignees { font-weight: 700; }

@media (min-width: 600px) {
  .guide { width: min(calc(100% - 48px), 768px); padding-top: 36px; }
  .guide-section { padding: 24px; }
  th, td { padding: 10px 12px; }
}

.contents {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.guide .contents { margin-top: 24px; }
.contents h2 { margin-bottom: 12px; }
.contents-note { margin: 0 0 8px; font-size: .875rem; }

.contents ul {
  margin: 0;
  padding-inline-start: 1.35em;
}

.contents a { text-decoration: none; }

.contents li a {
  display: inline-block;
  padding-block: 5px;
  overflow-wrap: anywhere;
}

.guide h2[id], .guide h3[id] { scroll-margin-top: 16px; }

.venue-map {
  display: block;
  width: 100%;
  height: clamp(260px, 65vw, 420px);
  margin-top: 14px;
  border: 0;
}
