/* 責務: SixTONES 系ページで再利用する shared plain CSS 正本を置く。
 * 責務: build-pages と Next の両方が読み、page shell の共通文法を揃える。
 * 責務: 各 page 固有 CSS を組み合わせる前段の共通文法だけを置く。 */
:root {
  color-scheme: light;
  --bg: var(--ap-color-bg, #f8fafc);
  --panel: var(--ap-color-surface, #ffffff);
  --text: var(--ap-color-text, #111827);
  --muted: var(--ap-color-muted, #4b5563);
  --accent: var(--ap-color-link, #1d4ed8);
  --border: var(--ap-color-border, #d1d5db);
  --warn-bg: #fff8e8;
  --warn-border: #d8a53a;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--bg);
  color: var(--text);
}
h1,
h2,
h3 {
  margin-top: 0;
}
p,
li {
  line-height: 1.7;
}
a {
  color: var(--accent);
}
.notice {
  border-left: 4px solid var(--warn-border);
  background: var(--warn-bg);
  padding: 12px;
}
.sixtones-page-title {
  color: var(--text);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.45rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: 0;
}
.muted {
  color: var(--muted);
}
.error {
  color: #b74b00;
  font-weight: 700;
}
.hidden {
  display: none;
}
.status-line {
  margin: 8px 0 0;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--ap-color-surface);
  color: var(--accent);
  text-decoration: none;
  transition:
    border-color var(--ap-motion-duration-quick) var(--ap-motion-ease-standard),
    background-color var(--ap-motion-duration-quick) var(--ap-motion-ease-standard),
    color var(--ap-motion-duration-quick) var(--ap-motion-ease-standard),
    box-shadow var(--ap-motion-duration-quick) var(--ap-motion-ease-standard),
    transform var(--ap-motion-duration-quick) var(--ap-motion-ease-standard);
}
.cta-primary {
  background: var(--accent);
  color: #ffffff;
}
@media (hover: hover) and (pointer: fine) {
  .cta:hover {
    border-color: #b8c2cf;
    background: var(--ap-color-surface-muted);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
  }
  .cta-primary:hover {
    border-color: #0f6b64;
    background: #0f7b72;
  }
}
.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  .cta:hover {
    transform: none;
  }
}
.empty-note,
.error-note {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--ap-color-surface-muted);
}
.error-note {
  border-color: #edc274;
  background: #fffaf0;
}


/* 責務: `/sixtones/schedule/` の shared plain CSS 正本を置く。
 * 責務: build-pages と Next の両方が同じ schedule style を読む。
 * 責務: 月間カレンダーの見た目をまとめる。 */
:root {
  color-scheme: light;
  --month-bg: var(--ap-color-bg, #f8fafc);
  --month-surface: var(--ap-color-surface, #ffffff);
  --month-text: var(--ap-color-text, #111827);
  --month-muted: var(--ap-color-muted, #4b5563);
  --month-border: var(--ap-color-border, #d1d5db);
  --month-link: var(--ap-color-link, #1d4ed8);
  --month-accent: var(--ap-color-accent, #0f766e);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background: var(--month-bg);
  color: var(--month-text);
}
h1 {
  margin-top: 0;
  margin-bottom: 0;
}
.month-page-stack {
  display: grid;
  gap: var(--ap-space-block);
}
.month-intro {
  display: grid;
  gap: 12px;
}
.month-intro p {
  margin: 0;
}
.month-note {
  margin: 0;
}
.month-status-row {
  display: grid;
  gap: 6px;
}
.month-status-row p {
  margin: 0;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}
.cta-row a {
  white-space: nowrap;
}
.month-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
}
.month-nav-current {
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}
.month-nav-link-prev {
  justify-self: start;
}
.month-nav-link-next {
  justify-self: end;
}
.month-nav a {
  white-space: nowrap;
}
.month-filter-panel {
  display: grid;
  gap: 8px;
}
.month-filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.month-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid var(--ap-color-border);
  border-radius: 999px;
  padding: 6px 12px;
  background: var(--ap-color-surface-muted);
  color: var(--month-text);
  font-size: var(--ap-font-size-helper-compact);
  font-weight: var(--ap-font-weight-medium);
  line-height: var(--ap-line-height-helper);
  cursor: pointer;
  transition:
    border-color var(--ap-motion-duration-quick) var(--ap-motion-ease-standard),
    background-color var(--ap-motion-duration-quick)
      var(--ap-motion-ease-standard),
    color var(--ap-motion-duration-quick) var(--ap-motion-ease-standard),
    box-shadow var(--ap-motion-duration-quick) var(--ap-motion-ease-standard),
    transform var(--ap-motion-duration-quick) var(--ap-motion-ease-standard);
}
.month-filter-chip:hover {
  border-color: #bcc6d2;
  background: var(--ap-color-surface);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.06);
  transform: translateY(-1px);
}
.month-filter-chip:focus-visible {
  outline: 2px solid var(--ap-color-link);
  outline-offset: 2px;
}
.month-filter-chip--active {
  border-color: #bcd0f6;
  background: #eef4ff;
  color: #1f4d93;
}
.month-filter-chip-label {
  white-space: nowrap;
}
.month-filter-hint {
  margin: 0;
  color: var(--month-muted);
  font-size: 0.75rem;
  line-height: 1.45;
}
.month-calendar-shell {
  display: grid;
  gap: 10px;
}
.month-desktop-calendar {
  display: grid;
  gap: 10px;
}
.month-mobile-list {
  display: none;
}
.month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.month-weekday {
  border: 1px solid var(--ap-color-divider);
  border-radius: 8px;
  background: var(--ap-color-surface-muted);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--month-muted);
  padding: 6px 4px;
}
.month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.month-cell {
  border: 1px solid var(--ap-color-divider);
  border-radius: 10px;
  padding: 8px;
  min-height: 164px;
  background: var(--month-surface);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.month-cell-outside {
  background: #f6f8fc;
}
.month-cell-outside .day-number,
.month-cell-outside .event-meta {
  color: #6b7280;
}
.month-cell-today {
  border-color: #93c5fd;
  background: #f8fbff;
}
.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.day-number {
  display: inline-block;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.45;
}
.day-today {
  border: 1px solid var(--ap-color-link);
  border-radius: 999px;
  padding: 0.08rem 0.46rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--ap-color-link);
  background: var(--ap-color-surface);
}
.event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}
.event-item {
  border: 1px solid var(--ap-color-divider);
  border-radius: 8px;
  padding: 8px;
  background: var(--ap-color-surface-muted);
  display: grid;
  gap: 4px;
  min-width: 0;
}
.event-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.34rem;
  min-width: 0;
}
.event-time {
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--month-text);
  white-space: nowrap;
}
.event-kind-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 1.4rem;
  height: 1.4rem;
  padding: 0;
  line-height: 1;
  background: var(--ap-color-surface-muted);
  border: 1px solid var(--ap-color-border);
  color: var(--ap-color-text);
}
.event-kind-icon {
  display: inline-flex;
  width: 0.98rem;
  height: 0.98rem;
  stroke: currentColor;
  stroke-width: 1.92;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--ap-color-text);
  flex-shrink: 0;
  transform: translateY(0.5px);
}
.event-kind-icon[data-lucide="tv"],
.event-kind-icon[data-lucide="boom-box"],
.event-kind-icon[data-lucide="book-open"] {
  stroke-width: 2;
}
.event-card-meta-line {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--month-muted);
  letter-spacing: var(--ap-letter-spacing-meta);
}
.event-card-performers {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--month-muted);
}
.event-title {
  color: var(--month-text);
  font-weight: 700;
  font-size: 0.79rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.event-title-link {
  color: var(--month-link);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.event-title-link:hover {
  text-decoration-thickness: 2px;
}
.status-line {
  margin: 0;
}
.warning {
  border-left: 3px solid #d97706;
  background: #fff7ed;
  padding: 10px 12px;
}
.error {
  border-left: 3px solid #b91c1c;
  background: #fef2f2;
  padding: 10px 12px;
}
.event-meta {
  margin: 0;
  color: var(--month-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.performer-highlight {
  font-weight: 700;
}
.month-empty {
  margin: 0;
}
.month-footer-links {
  display: grid;
  gap: 8px;
}
.month-footer-links p {
  margin: 0;
}
.month-footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}
.month-cell-outside .event-item {
  background: #f3f4f6;
}
.month-mobile-list {
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 12px;
}
.month-mobile-day {
  display: grid;
  gap: 8px;
  border: 1px solid var(--month-border);
  border-radius: 10px;
  padding: 10px;
  background: var(--month-surface);
}
.month-mobile-day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.month-mobile-day-heading {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
}
@media (max-width: 1100px) {
  .month-cell {
    min-height: 154px;
    padding: 7px;
  }
  .event-item {
    padding: 5px;
  }
}
@media (max-width: 900px) {
  .month-weekday {
    font-size: 0.72rem;
    padding: 5px 3px;
  }
  .day-number {
    font-size: 0.78rem;
  }
  .month-cell {
    min-height: 136px;
    gap: 6px;
  }
  .event-list {
    gap: 5px;
  }
  .event-title {
    font-size: 0.74rem;
    line-height: 1.4;
  }
  .event-time {
    font-size: 0.68rem;
  }
}
@media (max-width: 640px) {
  .month-page-stack {
    gap: 20px;
  }
  .month-desktop-calendar {
    display: none;
  }
  .month-mobile-list {
    display: grid;
  }
  .month-nav {
    grid-template-columns: auto 1fr auto;
  }
  .month-filter-controls {
    gap: 6px;
  }
  .month-filter-chip {
    min-height: 34px;
    padding: 6px 10px;
  }
  .cta-row a {
    white-space: normal;
  }
  .month-footer-links-row {
    gap: 6px 12px;
  }
}