:root {
  color-scheme: light;
  --link: #0000ee;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: #000;
  background-color: #00004f;
  background-image:
    radial-gradient(#fff 1px, transparent 1px),
    radial-gradient(#ff0 1px, transparent 1px);
  background-position: 0 0, 11px 13px;
  background-size: 29px 29px, 37px 37px;
  font-family: "MS PGothic", "Osaka", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  cursor: crosshair;
}

a {
  color: var(--link);
  text-decoration: underline;
}

a:visited {
  color: #800080;
}

a:hover {
  color: #f00;
  background: #ff0;
}

a:focus-visible {
  outline: 4px dotted #f0f;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  padding: 0.45rem 0.65rem;
  background: #fff;
  transform: translateY(-120%);
}

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

.welcome-marquee,
.bottom-marquee {
  display: block;
  width: 100%;
  padding: 4px 0;
  color: #ff0;
  background: #f00;
  border-top: 4px ridge #fff;
  border-bottom: 4px ridge #fff;
  font-family: "Times New Roman", serif;
  font-size: 20px;
  font-weight: bold;
}

.site-window {
  width: 760px;
  max-width: calc(100vw - 18px);
  margin: 8px auto 24px;
  padding: 8px;
  background: #fff;
  border: 8px ridge #c0c0c0;
  box-shadow: 12px 12px 0 #000;
}

.site-header {
  padding: 8px;
  text-align: center;
  background: linear-gradient(90deg, #ffff80 0 20%, #80ffff 20% 40%, #ff80ff 40% 60%, #80ff80 60% 80%, #ff8080 80%);
  border: 5px outset #c0c0c0;
}

.tiny-logo {
  margin: 0;
  color: #000080;
  font-family: "Times New Roman", serif;
  font-weight: bold;
  letter-spacing: 2px;
}

.site-header h1 {
  margin: 6px 0 0;
  color: #f00;
  font-family: "Times New Roman", "MS Mincho", serif;
  font-size: clamp(30px, 7vw, 52px);
  line-height: 1.1;
  text-shadow: 3px 3px 0 #ff0, -2px -2px 0 #00f;
  transform: skew(-4deg);
}

.subtitle {
  margin: 4px 0 10px;
  color: #008000;
  font-family: "Comic Sans MS", cursive;
  font-size: 21px;
  font-weight: bold;
}

.counter-box {
  width: 360px;
  max-width: 100%;
  margin: 6px auto;
  padding: 5px;
  background: #fff;
  border: 3px dashed #f0f;
}

.counter-box p {
  margin: 2px 0;
}

.counter {
  display: flex;
  justify-content: center;
  gap: 2px;
}

.counter span {
  min-width: 26px;
  padding: 0 3px;
  color: #0f0;
  background: #000;
  border: 2px inset #aaa;
  font: bold 28px/1.1 "Courier New", monospace;
}

.kiriban {
  color: #f00;
  font-size: 13px;
  font-weight: bold;
}

.updated {
  margin: 8px 0 2px;
  color: #000080;
  font-weight: bold;
}

.new-badge {
  display: inline-block;
  padding: 0 4px;
  color: #fff;
  background: #f00;
  border: 2px outset #ff8080;
  font: bold 12px/1.2 Arial, sans-serif;
  transform: rotate(-3deg);
}

.construction {
  display: inline-block;
  margin: 4px 0;
  padding: 2px 8px;
  color: #000;
  background: repeating-linear-gradient(135deg, #ff0 0 10px, #000 10px 20px);
  border: 3px outset #ccc;
  font-weight: bold;
  text-shadow: 1px 1px #fff, -1px -1px #fff;
}

.button-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 8px 0;
  padding: 6px;
  background: #c0c0c0;
  border: 4px ridge #808080;
}

.button-nav a {
  min-width: 104px;
  padding: 5px 8px;
  color: #000;
  background: #ddd;
  border: 4px outset #eee;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
}

.button-nav a:nth-child(2n) {
  color: #fff;
  background: #000080;
}

.button-nav a:nth-child(3n) {
  color: #ff0;
  background: #800080;
}

.button-nav a:active {
  border-style: inset;
}

.rainbow-rule {
  height: 10px;
  margin: 8px 0;
  background: linear-gradient(90deg, red, #ff0, #0f0, #0ff, #00f, #f0f, red);
  border: 2px inset #aaa;
}

.top-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  align-items: stretch;
}

.profile-box,
.news-box,
.content-box,
.about-box,
.webmaster-box {
  border: 4px ridge #808080;
}

.profile-box,
.news-box {
  padding: 6px;
}

.profile-box {
  background: #d8ffff;
  text-align: center;
}

.profile-box h2,
.news-box h2,
.content-box h2,
.about-box h2 {
  margin: 0 0 8px;
  padding: 4px;
  font-size: 18px;
  text-align: center;
}

.profile-box h2 {
  color: #fff;
  background: #008080;
}

.profile-box img {
  display: block;
  width: 180px;
  max-width: 90%;
  height: auto;
  margin: 4px auto;
  border: 8px ridge #f0f;
  image-rendering: pixelated;
  filter: contrast(1.15) saturate(1.25);
}

.profile-name {
  margin: 4px 0;
  color: #f00;
  font-size: 21px;
  font-weight: bold;
}

.profile-table {
  width: 94%;
  margin: 5px auto;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.profile-table th,
.profile-table td {
  padding: 2px 5px;
  border: 1px solid #008080;
}

.profile-table th {
  color: #fff;
  background: #008080;
}

.news-box {
  background: #ffff80;
}

.news-box h2 {
  color: #ff0;
  background: #f00;
  border: 3px double #fff;
}

.news-box p {
  margin: 6px 0;
}

.hot {
  color: #f0f;
  font-size: 20px;
  font-weight: bold;
  text-align: center;
}

.small-note {
  font-size: 12px;
}

hr {
  height: 6px;
  border: 0;
  background: repeating-linear-gradient(90deg, #00f 0 8px, #f00 8px 16px, #ff0 16px 24px);
}

.about-box,
.content-box,
.webmaster-box {
  margin-top: 10px;
  padding: 8px;
}

.about-box {
  background: #ffe8ff;
  border-color: #f0f;
}

.about-box h2 {
  color: #ff0;
  background: #800080;
}

.center {
  text-align: center;
}

.live-box {
  background: #ffffcc;
  border-color: #f00;
}

.live-box h2 {
  color: #fff;
  background: #f00;
  border: 4px double #ff0;
}

.live-info {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 10px;
  align-items: start;
}

.event-flyer {
  margin: 0;
  padding: 6px;
  background: #000080;
  border: 6px ridge #ff0;
  text-align: center;
}

.event-flyer img {
  display: block;
  width: 100%;
  height: auto;
  border: 3px inset #fff;
  image-rendering: pixelated;
}

.event-flyer figcaption {
  margin-top: 4px;
  color: #ff0;
  font-size: 12px;
  font-weight: bold;
}

.live-details {
  min-width: 0;
}

.event-title {
  margin: 0 0 8px;
  padding: 4px;
  color: #0000a0;
  background: #fff;
  border: 3px dotted #f00;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  text-decoration: underline;
}

.event-title span {
  color: #800080;
  font-size: 16px;
}

.event-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.event-table th,
.event-table td {
  padding: 5px 7px;
  border: 2px solid #000080;
  text-align: left;
  vertical-align: top;
}

.event-table th {
  width: 34%;
  color: #ff0;
  background: #000080;
  font-family: "Courier New", monospace;
}

.event-table small {
  font-size: 13px;
}

.lineup {
  margin-top: 7px;
  padding: 4px 8px;
  background: #fff;
  border: 2px dashed #800080;
}

.lineup p {
  margin: 5px 0;
}

.reserve {
  padding: 6px;
  background: #0ff;
  border: 3px dashed #00f;
  font-weight: bold;
  text-align: center;
}

.music-box {
  background: #ccffcc;
  border-color: #080;
}

.music-box h2 {
  color: #ff0;
  background: #008000;
}

.link-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.link-buttons a {
  padding: 5px 9px;
  color: #fff;
  background: #00c;
  border: 4px outset #80a0ff;
  font-weight: bold;
}

.links-box {
  background: #ffd8d8;
  border-color: #f0f;
}

.links-box h2 {
  color: #00f;
  background: #ff80ff;
  border: 3px dotted #00f;
}

.links-box li {
  margin: 6px 0;
}

.webmaster-box {
  color: #fff;
  background: #000;
  border-color: #0f0;
  text-align: center;
}

.webmaster-box a {
  color: #0ff;
}

.no-mail {
  color: #ff0;
  font-size: 13px;
}

.bottom-marquee {
  margin-top: 10px;
  color: #fff;
  background: #00f;
  border-color: #ff0;
}

footer {
  padding: 8px 4px 0;
  text-align: center;
}

.browser-note {
  color: #666;
  font-size: 12px;
}

.copyright {
  color: #008000;
  font: 12px/1.5 "Times New Roman", serif;
}

.blink {
  animation: blink 0.75s steps(1, end) infinite;
}

@keyframes blink {
  50% { visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  .blink {
    animation: none;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  .site-window {
    max-width: calc(100vw - 8px);
    margin-top: 4px;
    border-width: 5px;
    box-shadow: 5px 5px 0 #000;
  }

  .top-table {
    grid-template-columns: 1fr;
  }

  .live-info {
    grid-template-columns: 1fr;
  }

  .event-flyer {
    width: min(240px, 90%);
    margin: 0 auto;
  }

  .button-nav a {
    min-width: 44%;
  }

  .welcome-marquee,
  .bottom-marquee {
    font-size: 16px;
  }
}
