:root {
  --old-bg: #050505;
  --old-panel: #101010;
  --old-line: #777;
  --old-text: #fff;
  --old-muted: #d3d3d3;
  --old-blue: cornflowerblue;
  --old-orange: orange;
  --old-yellow: yellow;
  --old-red: #ff3d3d;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--old-text);
  background: var(--old-bg) url("../images/bg.gif") repeat;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: bold;
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.old-wrap {
  width: min(780px, 100%);
  margin: 0 auto;
  background: #000;
  border-inline: 1px solid var(--old-line);
}

.old-header img,
.old-hero img {
  display: block;
  width: 100%;
}

.old-hero img {
  border-bottom: 1px solid var(--old-line);
}

.old-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-block: 1px solid var(--old-line);
  text-align: center;
  font-size: 14px;
}

.old-nav a {
  padding: 8px 4px;
  border-right: 1px solid #333;
}

.old-nav a:last-child { border-right: 0; }
.old-nav a:hover,
.old-nav a.active { background: #242424; color: var(--old-orange); }

.old-section {
  padding: 28px clamp(16px, 4vw, 36px);
  border-bottom: 1px solid var(--old-line);
  text-align: center;
}

.old-section.left { text-align: left; }

.old-schedule-page {
  background: #000;
}

.old-schedule-photo-frame {
  width: 100%;
  max-width: 1000px;
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  padding: clamp(12px, 2.4vw, 22px);
  border: 1px solid var(--old-line);
  background:
    linear-gradient(90deg, rgba(0,0,0,.46), rgba(0,0,0,.30)),
    url("../images/backgroud.jpeg") center / contain no-repeat,
    #050505;
}

.old-schedule-photo-frame .old-event-list {
  height: 100%;
  max-height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(0,0,0,.42);
}

.old-kicker {
  margin: 0 0 12px;
  color: var(--old-orange);
  font-size: 20px;
  font-weight: bold;
}

.old-message {
  color: var(--old-yellow);
  font-size: 18px;
  font-weight: bold;
  line-height: 1.65;
}

.old-info-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .85fr);
  gap: 40px;
  align-items: start;
  margin: 28px auto 0;
}

.old-update {
  min-height: 220px;
  border: 1px solid var(--old-line);
  text-align: left;
}

.old-update h2,
.old-table-title {
  margin: 0;
  padding: 5px 6px;
  border-bottom: 1px solid var(--old-line);
  font-size: 18px;
  font-weight: bold;
}

.old-update p {
  margin: 0;
  padding: 12px 6px;
  color: var(--old-orange);
  font-size: 18px;
  line-height: 1.85;
}

.old-banners {
  display: grid;
  gap: 28px;
  width: 100%;
  margin: 0;
}

.old-banner {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 10px 12px;
  color: #fff;
  text-align: center;
  line-height: 1.32;
  font-weight: bold;
  font-size: 16px;
}

.old-banner.blue { background: blue; }
.old-banner.yellow { background: yellow; color: #000; }
.old-banner.red { background: red; color: #000; }

.old-links-box {
  border: 1px solid var(--old-line);
  background: var(--old-panel);
  padding: 18px;
  text-align: center;
}

.old-links-list {
  display: grid;
  gap: 10px;
  margin: 14px auto 0;
  padding: 0;
  list-style: none;
  max-width: 560px;
}

.old-links-list a {
  color: var(--old-orange);
  text-decoration: underline;
}

a.banner {
  color: #fff;
  vertical-align: middle;
}

a.banner:hover {
  color: var(--old-orange);
}

.old-section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.old-section-title-row .old-kicker {
  margin-bottom: 0;
}

.old-front-panel {
  width: calc(100% + (clamp(16px, 4vw, 36px) * 2));
  margin: 24px calc(clamp(16px, 4vw, 36px) * -1) 0;
  padding: clamp(16px, 3vw, 28px);
  border-block: 1px solid var(--old-line);
  border-inline: 0;
  background:
    linear-gradient(rgba(0,0,0,.44), rgba(0,0,0,.44)),
    url("../images/backgroud.jpeg") center / contain no-repeat,
    #000;
}

.old-today-block {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  text-align: left;
}

.monthly-link {
  display: inline-block;
  margin-top: 10px;
  color: var(--old-orange);
  text-decoration: underline;
  font-size: 14px;
  font-weight: bold;
}

.old-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  text-align: left;
}

.old-card {
  border: 1px solid var(--old-line);
  background: var(--old-panel);
  padding: 16px;
}

.old-card h2,
.old-card h3 {
  margin: 0 0 10px;
  color: var(--old-blue);
  font-size: 18px;
}

.old-card p,
.old-card ul { margin: 0; }
.old-card ul { padding-left: 1.2em; }

.old-schedule {
  width: 100%;
  border-collapse: collapse;
  color: var(--old-muted);
  text-align: center;
}

.old-schedule th,
.old-schedule td {
  border-bottom: 1px solid var(--old-line);
  padding: 9px 8px;
  overflow-wrap: anywhere;
  vertical-align: top;
}

.old-schedule th {
  color: #fff;
  font-weight: normal;
}

.old-schedule .sat { background: #001637; }
.old-schedule .sun { background: #3f0000; color: var(--old-red); }
.old-schedule .fri { background: #032400; }
.old-schedule .old-day { width: 112px; }
.old-schedule .old-weekday { width: 48px; }
.old-schedule .old-title-cell,
.old-schedule .old-note-cell {
  text-align: left;
  color: #fff;
}

.old-schedule .old-note-cell {
  white-space: pre-line;
}

.old-schedule tr.regular .old-title-cell,
.old-schedule tr.closed .old-title-cell {
  color: var(--old-muted);
}

.old-today-event {
  border: 1px solid var(--old-line);
  background: var(--old-panel);
  padding: 16px;
}

.old-today-event .today-title,
.old-today-event .today-meta {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.45;
  white-space: pre-line;
}

.old-today-event .today-title {
  margin-bottom: 10px;
  white-space: normal;
}

.month-controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 10px;
}

.month-controls button {
  color: #fff;
  background: #111;
  border: 1px solid var(--old-line);
  padding: 7px 14px;
  cursor: pointer;
}

.month-controls button.active {
  color: #000;
  background: var(--old-yellow);
}

.month-label {
  margin: 0 0 12px;
  color: var(--old-orange);
  font-size: 18px;
  font-weight: bold;
}

.old-event-list,
.event-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.event-card {
  display: grid;
  grid-template-columns: 104px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--old-line);
  background: rgba(16,16,16,.88);
}

.event-card.today-card {
  border-color: var(--old-orange);
  box-shadow: 0 0 0 1px rgba(255,168,64,.28);
  scroll-margin-top: 96px;
}

.event-date {
  padding-right: 12px;
  border-right: 1px solid var(--old-line);
  text-align: center;
}

.event-month,
.event-meta {
  color: var(--old-orange);
  font-size: 13px;
}

.event-day {
  display: block;
  color: #fff;
  font-size: 32px;
  font-weight: bold;
  line-height: 1.1;
}

.event-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.event-detail {
  margin: 0;
  color: var(--old-muted);
  white-space: pre-line;
}

.event-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.event-images img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid var(--old-line);
}

.event-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.event-link {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--old-line);
  color: var(--old-orange);
  background: rgba(0,0,0,.48);
  font-size: 13px;
  font-weight: bold;
}

.event-link:hover {
  color: #000;
  background: var(--old-orange);
  text-decoration: none;
}

.schedule-message {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--old-line);
  color: var(--old-orange);
  background: rgba(16,16,16,.88);
}

.old-menu {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
}

.old-menu td {
  padding: 7px 0;
  border-bottom: 1px solid #333;
}

.old-menu td:last-child { text-align: right; }

.old-content-table {
  width: 100%;
  border-collapse: collapse;
}

.system-content-table {
  background:
    linear-gradient(rgba(0,0,0,.30), rgba(0,0,0,.30)),
    url("../images/backgroud.jpeg") center / contain no-repeat,
    #000;
}

.system-content-table .td-03 {
  background: rgba(0,0,0,.34);
}

.messsage {
  width: min(680px, 100%);
  margin: 0 auto;
  text-align: center;
  font-weight: bold;
  line-height: 1.55;
}

.messsage font[color="cornflowerblue"],
.td-03 font[color="cornflowerblue"],
.td-03 font[color="orange"],
.td-03 font[size="4"],
.td-03 font[size="5"] {
  font-weight: bold;
}

.td-03 font[size="5"] {
  font-size: 24px;
}

.td-03 font[size="4"] {
  font-size: 18px;
}

main .td-03 {
  font-weight: bold;
  line-height: 1.55;
}

main .td-03 br + br,
.messsage br + br {
  display: block;
  content: "";
  margin-top: .58em;
}

#table-menu {
  width: min(550px, 100%);
  margin: 0 auto;
  border-collapse: collapse;
  color: #fff;
  font-weight: bold;
  line-height: 1.45;
}

#table-menu td {
  padding: 1px 2px;
  vertical-align: top;
}

#table-menu small {
  font-weight: bold;
}

.hr-menu {
  max-width: 550px;
  border: 0;
  border-top: 1px solid #777;
}

.old-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 14px 0;
}

.old-photo-grid img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border: 1px solid var(--old-line);
}

.old-photo-grid .wide {
  grid-column: span 2;
}

.old-access {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  align-items: start;
  max-width: 620px;
  margin: 0 auto;
  padding: 20px;
  background: rgba(0,0,0,.68);
  color: #fff;
  text-align: left;
  border: 1px solid var(--old-line);
}

.old-access-page {
  background:
    linear-gradient(rgba(0,0,0,.38), rgba(0,0,0,.38)),
    url("../images/backgroud.jpeg") center / contain no-repeat,
    #000;
}

.old-access h2 {
  grid-column: 1 / -1;
  margin: 0;
  padding: 5px 8px;
  background: #000;
  color: #fff;
  font-size: 18px;
  font-weight: normal;
}

.old-access img {
  border: 1px solid #000;
}

.old-map-note {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  color: #cfe1ff;
}

.old-map {
  grid-column: 1 / -1;
  width: 100%;
  height: 320px;
  border: 1px solid #000;
}

.old-footer {
  padding: 0;
  color: #fff;
  text-align: center;
  font-size: 14px;
}

.old-footer-table {
  width: 100%;
  border-collapse: collapse;
}

.td-03 {
  padding: 0 12px 18px;
  color: #fff;
  text-align: center;
  background: #000;
  border-top: 1px solid var(--old-line);
}

.facebook-button {
  display: inline-block;
  margin-top: 4px;
  padding: 7px 16px;
  color: #fff;
  background: #1b4f9c;
  border: 1px solid #9bbcff;
  font-weight: bold;
}

.facebook-button:hover {
  background: #2b63b7;
}

@media (max-width: 680px) {
  .old-nav {
    grid-template-columns: repeat(3, 1fr);
  }

  .old-grid,
  .old-access,
  .old-photo-grid,
  .old-info-layout {
    grid-template-columns: 1fr;
  }

  .old-info-layout {
    gap: 18px;
  }

  .old-message {
    font-size: 16px;
  }

  .old-photo-grid .wide {
    grid-column: auto;
  }

  .old-photo-grid img {
    height: 220px;
  }

  .old-schedule-photo-frame {
    aspect-ratio: auto;
    min-height: 0;
    padding: 10px;
  }

  .old-schedule-photo-frame .old-event-list {
    height: auto;
    max-height: none;
    overflow: visible;
    padding: 10px;
  }

  .old-schedule-page .month-controls {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 8px 0;
    background: #000;
  }

  .old-schedule-page .month-controls button {
    min-height: 38px;
  }

  .old-schedule thead {
    display: none;
  }

  .old-schedule,
  .old-schedule tbody,
  .old-schedule tr,
  .old-schedule td {
    display: block;
    width: 100%;
  }

  .old-schedule tr {
    border-bottom: 1px solid var(--old-line);
    padding: 8px 0;
  }

  .old-schedule td {
    border-bottom: 0;
    padding: 4px 8px 4px 104px;
    position: relative;
    min-height: 28px;
    text-align: left;
  }

  .old-schedule td::before {
    content: attr(data-label);
    position: absolute;
    left: 8px;
    top: 4px;
    width: 88px;
    color: var(--old-orange);
    font-size: 12px;
    font-weight: bold;
  }

  .old-schedule .old-day,
  .old-schedule .old-weekday {
    width: 100%;
  }

  .event-card {
    grid-template-columns: 1fr;
  }

  .event-date {
    text-align: left;
    border-right: 0;
    border-bottom: 1px solid var(--old-line);
    padding: 0 0 8px;
  }

  .event-month,
  .event-day,
  .event-meta {
    display: inline-block;
    margin-right: 8px;
    vertical-align: baseline;
  }

  .event-day {
    font-size: 26px;
  }
}
