:root {
  color-scheme: light;
  --link: #003bad;
  --pink: #f2299b;
  --green: #00a80e;
  --blue: #2370c8;
  --orange: #e58b00;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  color: #222;
  background: #efefef;
  font-family: "Osaka-Mono", Osaka, "MS Gothic", "Hiragino Kaku Gothic ProN", monospace;
  font-size: 16px;
  line-height: 1.75;
}

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

a:visited {
  color: #653195;
}

a:focus-visible {
  outline: 3px solid #ff7800;
  outline-offset: 3px;
}

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

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

.mobile-home {
  position: relative;
  width: min(100%, 240px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0.6rem 0.45rem 1.5rem;
  background: #fff;
  box-shadow: 0 0 0 1px #aaa, inset 0 0 32px rgb(0 0 0 / 8%);
  filter: contrast(1.035) saturate(0.93);
  -webkit-font-smoothing: none;
  text-rendering: optimizeSpeed;
  text-align: center;
}

.mobile-home::after {
  position: absolute;
  z-index: 20;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    repeating-linear-gradient(to bottom, rgb(0 0 0 / 2.5%) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(to right, rgb(255 0 90 / 2%) 0 1px, rgb(0 145 255 / 1%) 1px 2px, transparent 2px 4px);
  mix-blend-mode: multiply;
}

.modern-link {
  margin: 0 0 0.65rem;
  text-align: left;
  font-size: 0.9rem;
}

.zigzag {
  height: 31px;
  margin-inline: -0.1rem;
  background:
    linear-gradient(135deg, transparent 11px, #fff 11px, #fff 15px, transparent 15px) 0 14px / 30px 18px repeat-x,
    linear-gradient(45deg, var(--pink) 11px, transparent 11px) 0 0 / 30px 18px repeat-x,
    linear-gradient(135deg, var(--pink) 11px, transparent 11px) 15px 0 / 30px 18px repeat-x,
    var(--pink);
}

.free-home {
  margin: 1rem 0 1.6rem;
  text-align: right;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 0.85rem;
}

.site-header__small {
  margin: 0;
  color: #ad006d;
  font-weight: 700;
}

.site-header h1 {
  margin: 0.6rem 0;
  font-family: "Arial Black", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.12em;
  text-shadow: 1px 1px 0 #fff, 2px 2px 0 #aaa;
}

.site-header h1 span:nth-child(1) { color: #f00084; }
.site-header h1 span:nth-child(2) { color: #ff8500; }
.site-header h1 span:nth-child(3) { color: #d4c500; }
.site-header h1 span:nth-child(4) { color: #00a83b; }
.site-header h1 span:nth-child(5) { color: #1d77d5; }
.site-header h1 span:nth-child(6) { color: #ad39b6; }

.site-header h1 small {
  color: #333;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 1.15rem;
  letter-spacing: 0;
}

.site-header__message {
  margin: 1rem 0;
}

.artist-photo {
  display: block;
  width: 200px;
  height: 267px;
  margin: 1rem auto;
  border: 0;
  image-rendering: pixelated;
  object-fit: cover;
}

.mystery-gif {
  margin: 0.75rem auto 1rem;
}

.mystery-gif img {
  display: block;
  width: 144px;
  height: 144px;
  margin: 0 auto;
  image-rendering: pixelated;
}

.mystery-gif__static {
  display: none !important;
}

.counter p {
  margin: 0.1rem 0;
  font-size: 0.8rem;
}

.counter__digits {
  display: inline-flex;
  border: 2px inset #999;
  background: #000;
}

.counter__digits span {
  min-width: 1rem;
  padding: 0 0.12rem;
  border-right: 1px solid #555;
  color: #39ff14;
  font: 700 1rem/1.35 "Courier New", monospace;
}

.counter .counter__kiriban {
  margin-top: 0.4rem;
  color: #f00000;
  font-weight: 700;
  line-height: 1.25;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.update {
  margin: 0.75rem 0 1.6rem;
  color: #777;
  font-size: 0.75rem;
}

.keitai-menu {
  margin: 1.5rem 0 2rem;
}

.menu-title {
  margin: 0;
  color: #d71919;
}

.menu-numbers {
  margin: 0.2rem 0 0.8rem;
  font-size: 1.2rem;
}

.menu-numbers .n1 { color: #25b847; }
.menu-numbers .n2 { color: #d8249a; }
.menu-numbers .n3 { color: #1f9eb8; }
.menu-numbers .n4 { color: #be9210; }

.keitai-menu p {
  margin-top: 0.45rem;
  margin-bottom: 0.45rem;
}

.section-block {
  margin: 0 0 2.4rem;
  scroll-margin-top: 0.5rem;
}

.section-title {
  margin: 0 0 1rem;
  padding: 0.22rem 0.5rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
}

.section-title--green { background: var(--green); }
.section-title--pink { background: var(--pink); }
.section-title--blue { background: var(--blue); }
.section-title--orange { background: var(--orange); }

.new {
  margin: 0;
  color: #f00000;
  font-weight: 700;
}

.event-title {
  color: #9d0069;
  font-weight: 700;
}

.event-title small {
  color: #444;
  font-weight: 400;
}

.flyer {
  display: inline-block;
}

.flyer img {
  display: block;
  width: 200px;
  height: auto;
  image-rendering: pixelated;
  filter: contrast(1.12) saturate(0.78);
}

.small-link {
  margin: 0.2rem 0 1rem;
  font-size: 0.8rem;
}

.event-info {
  width: 100%;
  margin: 1rem auto;
  border-top: 1px solid #63a36b;
  text-align: left;
  font-size: 0.9rem;
}

.event-info div {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  border-bottom: 1px solid #63a36b;
}

.event-info dt,
.event-info dd {
  margin: 0;
  padding: 0.35rem 0.45rem;
}

.event-info dt {
  color: #00670b;
  font-weight: 700;
}

.important-link {
  margin: 1rem 0;
}

.important-link a {
  color: #d00000;
  font-weight: 700;
}

.music-note {
  color: #c50080;
  font-weight: 700;
}

hr {
  height: 1px;
  margin: 1.2rem 0;
  border: 0;
  background: #5b9e61;
}

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

.links-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.links-list li {
  margin: 0.55rem 0;
}

.construction {
  margin: 2rem 0;
  padding: 0.35rem;
  border-top: 2px dashed #e13a00;
  border-bottom: 2px dashed #e13a00;
  color: #d43300;
  font-size: 0.8rem;
}

footer {
  padding-top: 1.2rem;
  border-top: 1px solid #5b9e61;
}

.return-button {
  display: inline-block;
  padding: 0.45rem 0.6rem;
  border: 2px outset #ddd;
  background: #f3f3f3;
  font-weight: 700;
}

.footer-note {
  margin-top: 1.5rem;
  color: #777;
  font-size: 0.72rem;
}

@media (min-width: 520px) {
  .mobile-home {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #ccc;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mystery-gif__animated {
    display: none !important;
  }

  .mystery-gif__static {
    display: block !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
