@charset "UTF-8";

:root {
  --schedule-orange: #ff5a00;
  --schedule-ink: #3f3f3f;
  --schedule-gray: #d8d8d8;
  --schedule-gray-dark: #8d8d8d;
  --schedule-paper: #f1f1f1;
  --schedule-white: #fff;
  --schedule-blue: #91ddff;
  --schedule-blue-dark: #178bd2;
  --schedule-yellow: #ffd400;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--schedule-ink);
  font-family: "DotGothic16", "Yu Gothic", monospace;
  background:
    radial-gradient(circle, rgba(255, 90, 0, .3) 0 2px, transparent 3px) 0 0 / 24px 24px,
    var(--schedule-paper);
}

a {
  color: #0055cc;
}

a:visited {
  color: #7040a0;
}

a:hover,
a:focus-visible {
  color: var(--schedule-orange);
  background: #fff2e9;
}

.schedule-page {
  width: min(760px, calc(100% - 20px));
  margin: 28px auto 64px;
}

.schedule-window {
  background: rgba(255, 255, 255, .97);
  border: 3px solid var(--schedule-ink);
  box-shadow: 7px 7px 0 rgba(255, 90, 0, .28);
}

.schedule-window__bar {
  min-height: 34px;
  padding: 5px 8px 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--schedule-white);
  background: var(--schedule-orange);
  border-bottom: 3px solid var(--schedule-ink);
  font-family: monospace;
  font-size: 12px;
  letter-spacing: .08em;
}

.schedule-window__controls {
  letter-spacing: .3em;
}

.schedule-window__body {
  padding: 24px 16px 20px;
  text-align: center;
}

.schedule-kicker {
  margin: 0 0 7px;
  color: var(--schedule-orange);
  font-family: monospace;
  font-size: 11px;
  letter-spacing: .16em;
}

.schedule-window h1 {
  margin: 0;
  font-size: clamp(34px, 12vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .08em;
}

.schedule-lead {
  margin: 13px 0 0;
  color: #666;
  font-family: "Yu Gothic", sans-serif;
  font-size: 13px;
  line-height: 1.8;
}

.schedule-notice {
  margin: 20px 0;
  padding: 10px 12px;
  color: var(--schedule-ink);
  background: var(--schedule-white);
  border: 2px dashed var(--schedule-gray-dark);
  font-family: "Yu Gothic", sans-serif;
  font-size: 12px;
  line-height: 1.75;
}

.schedule-notice strong {
  margin-right: 5px;
  padding: 1px 5px;
  color: var(--schedule-white);
  background: var(--schedule-orange);
  font-family: monospace;
  font-weight: 400;
}

.month-index {
  margin: 0 0 28px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  background: var(--schedule-gray);
  border: 2px solid var(--schedule-ink);
  box-shadow: 4px 4px 0 rgba(63, 63, 63, .2);
}

.month-index a {
  min-height: 34px;
  display: grid;
  place-items: center;
  color: var(--schedule-ink);
  background: var(--schedule-white);
  border: 1px solid var(--schedule-gray-dark);
  font-family: "DotGothic16", monospace;
  font-size: 12px;
  text-decoration: none;
}

.month-index a:hover,
.month-index a:focus-visible {
  color: var(--schedule-white);
  background: var(--schedule-orange);
}

.term-heading {
  margin: 32px 0 12px;
  padding: 6px 10px;
  color: var(--schedule-white);
  background: var(--schedule-ink);
  border-left: 12px solid var(--schedule-orange);
  font-family: monospace;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
}

.month-card {
  scroll-margin-top: 12px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  background: rgba(255, 255, 255, .97);
  border: 2px solid var(--schedule-ink);
  box-shadow: 5px 5px 0 var(--schedule-gray);
}

.month-card + .month-card {
  margin-top: 14px;
}

.month-card__label {
  padding: 13px 6px 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--schedule-ink);
  background: #c8c8c8;
  border-right: 2px solid var(--schedule-ink);
  text-align: center;
}

.month-card__number {
  font-family: "DotGothic16", monospace;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.month-card__en {
  margin-top: 5px;
  font-family: "DotGothic16", monospace;
  font-size: 10px;
  letter-spacing: .15em;
}

.month-card__body {
  min-width: 0;
  padding: 13px 14px 14px;
}

.month-card h2 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  border-bottom: 1px dotted #888;
  font-size: 18px;
  font-weight: 400;
}

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

.event-list li {
  position: relative;
  padding: 5px 0 5px 14px;
  font-family: "Yu Gothic", sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.event-list li::before {
  content: "■";
  position: absolute;
  top: 7px;
  left: 0;
  color: var(--schedule-orange);
  font-size: 8px;
}

.event-list time {
  margin-right: 7px;
  color: #777;
  font-family: monospace;
  font-size: 11px;
}

/* ========================================
   THE ENDLESS AUGUST
   装飾を抑えた、横線と文字だけの訂正表示
========================================= */

.month-index a,
.month-card__number,
.month-card__en,
.month-card h2 {
  position: relative;
}

/* 上部の月別インデックス */
.month-index a:not([href="#month-08"]) {
  color: rgba(63, 63, 63, .48);
}

.month-index a:not([href="#month-08"])::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(50% - 13px);
  width: 26px;
  height: 2px;
  background: var(--schedule-orange);
  transform: translateY(-50%);
  pointer-events: none;
}

.month-index a:not([href="#month-08"])::after {
  content: "08";
  position: absolute;
  top: 50%;
  left: calc(50% + 15px);
  color: var(--schedule-orange);
  background: none;
  font-family: "DotGothic16", monospace;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

/* 各月カード左側の数字と英字 */
.month-card:not(#month-08) .month-card__number {
  color: rgba(63, 63, 63, .48);
}

.month-card:not(#month-08) .month-card__number::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 2px;
  background: var(--schedule-orange);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.month-card:not(#month-08) .month-card__number::after {
  content: "08";
  position: absolute;
  top: 50%;
  left: calc(100% + 7px);
  color: var(--schedule-orange);
  background: none;
  font-family: "DotGothic16", monospace;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transform: translateY(-50%);
  pointer-events: none;
}

.month-card:not(#month-08) .month-card__en {
  color: rgba(63, 63, 63, .52);
}

.month-card:not(#month-08) .month-card__en::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--schedule-orange);
  transform: translateY(-50%);
  pointer-events: none;
}

.month-card:not(#month-08) .month-card__en::after {
  content: "AUG";
  display: inline-block;
  margin-left: 7px;
  color: var(--schedule-orange);
  background: none;
  font-family: "DotGothic16", monospace;
  font-weight: 400;
  text-shadow: none;
}

/* カード本文の「4月」など */
.month-card:not(#month-08) h2 {
  color: rgba(63, 63, 63, .54);
}

.month-card:not(#month-08) h2::before {
  content: "";
  position: absolute;
  top: .65em;
  left: 0;
  width: 44px;
  height: 2px;
  background: var(--schedule-orange);
  pointer-events: none;
}

.month-card:not(#month-08) h2::after {
  content: "8月";
  display: inline-block;
  margin-left: 12px;
  padding: 0;
  color: var(--schedule-orange);
  background: none;
  font-family: "DotGothic16", monospace;
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
  transform: none;
  box-shadow: none;
}

@media (max-width: 600px) {

  .schedule-page {
    margin-top: 20px;
  }

  .month-index {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 380px) {
  .schedule-window__body {
    padding-inline: 12px;
  }

  .month-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .month-card__number {
    font-size: 29px;
  }

  .month-card__body {
    padding-inline: 11px;
  }

  .event-list li {
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 全月カードの取り消し線を短めに */
.month-card:not(#month-08) .month-card__number::before {
  width: 26px;
}

.month-card:not(#month-08) .month-card__en::before {
  width: 14px;
}

.month-card:not(#month-08) h2::before {
  width: 28px;
}

@media (max-width: 600px) {
  .month-card:not(#month-08) .month-card__number::after {
    left: calc(100%);
    font-size: 16px;
  }
}

/* 本編の舞台：8月だけ強調 */
#month-08 {
  position: relative;
  margin-top: 16px;
  border-color: #ff5a00;
  box-shadow: 5px 5px 0 #ffc8aa;
}

#month-08 .month-card__label {
  background: #ff5a00;
  color: #fff;
  border-right-color: #ff5a00;
}

#month-08 .month-card__body {
  background: #fff8f3;
}

#month-08 .month-card__body h2 {
  color: #ff5a00;
}

#month-08::after {
  content: "NOW";
  position: absolute;
  top: -14px;
  right: 8px;
  padding: 2px 7px;
  background: #ff5a00;
  color: #fff;
  font-family: "DotGothic16", monospace;
  font-size: 12px;
  line-height: 1.4;
}
