:root {
  --heaven: #fbf6ff;
  --cloud: #efe7fb;
  --ink: #3d2b4f;
  --ink-soft: #746681;
  --kyururin: #e94f99;
  /* Accent aligned to the official site (#8d5cbc); a touch deeper so small
     link text still clears WCAG AA on light backgrounds. */
  --dream: #7d4fae;
  --lav: #ce9ef3;
  --lav-pale: #e7d2f7;
  --halo: #d5a91d;
  --line: #e6dbf1;
  --line-strong: #cdbce1;
  --card: #fff;
  --canvas: #f7f3fa;
  --success: #2f7d63;
  --warning: #a66112;
  --danger: #b83253;
  --shadow:
    0 1px 2px rgba(77, 48, 110, 0.05),
    0 18px 44px -28px rgba(77, 48, 110, 0.4);
  --shadow-soft:
    0 1px 2px rgba(77, 48, 110, 0.04),
    0 10px 28px -22px rgba(77, 48, 110, 0.42);
  --shadow-hover:
    0 2px 6px rgba(77, 48, 110, 0.06),
    0 26px 56px -30px rgba(77, 48, 110, 0.46);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 30px;
  --maxw: 1180px;
  /* Latin display face — mirrors the official site's Cherry Bomb One nav labels. */
  --font-display: "Cherry Bomb One", "Fredoka", "Zen Maru Gothic", sans-serif;
  --one-man: #b64186;
  --tour: #6e54c9;
  --live: #d94d75;
  --festival: #b96b13;
  --release: #317c82;
  --benefit: #bd4a9c;
  --birthday: #c56a33;
  --personal: #c56a33;
  --stream: #4e70b8;
  --deadline: #8a6517;
  --other: #746681;
  color-scheme: light;
  font-family: "Zen Kaku Gothic New", "Yu Gothic", sans-serif;
  font-synthesis: none;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 0;
  overflow-x: clip;
  scroll-behavior: smooth;
  background: var(--canvas);
  color: var(--ink);
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.7;
  overflow-x: clip;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--dream) 60%, white);
  outline-offset: 3px;
}

button {
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Interaction polish — Apple-like depth & motion.
   Brand colors are untouched; every transition below is neutralized by the
   prefers-reduced-motion block at the end of this file.
--------------------------------------------------------------------------- */
.global-nav a,
.next-event-arrow,
.view-tabs button,
.filter-toggle,
.filter-toggle span,
.active-filter-chip,
.active-filter-clear,
.month-controls button,
.calendar-day-number,
.calendar-event,
.calendar-more,
.event-card,
.event-card-button,
.event-official-link,
.day-agenda-item,
.update-item,
.participation-buttons button,
.source-links a,
.secondary-button,
.text-button,
.dialog-close,
.filter-grid input,
.filter-grid select,
.memo-label textarea,
.badge {
  transition:
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease-soft),
    background-color 160ms var(--ease-soft),
    border-color 160ms var(--ease-soft),
    color 160ms var(--ease-soft);
}

/* Clickable cards gain a soft, consistent lift */
.event-card:hover,
.update-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Tactile press feedback */
.next-event-button:active,
.day-agenda-item:active,
.view-tabs button:active,
.filter-toggle:active,
.month-controls button:active,
.active-filter-chip:active,
.participation-buttons button:active,
.source-links a:active,
.secondary-button:active,
.dialog-close:active,
.calendar-day-number:active,
.calendar-event:active {
  transform: scale(0.96);
}

.event-card:active,
.update-item:active {
  transform: translateY(0) scale(0.99);
  box-shadow: var(--shadow-soft);
}

/* The NEXT card's arrow drifts on hover */
.next-event-button:hover .next-event-arrow {
  transform: translateX(4px);
}

/* Fill in the few controls that lacked a hover response */
.dialog-close:hover {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--ink);
  background: var(--heaven);
}

.text-button:hover {
  color: var(--ink);
}

.calendar-more:hover {
  background: var(--cloud);
  color: var(--ink);
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-160%);
}

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

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

.site-header {
  border-bottom: 1px solid rgb(230 219 241 / 82%);
  background: rgb(247 243 250 / 90%);
  backdrop-filter: blur(18px) saturate(130%);
}

.site-header-inner {
  display: flex;
  width: min(calc(100% - 48px), var(--maxw));
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  gap: 11px;
  align-items: center;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: inline-grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
}

.brand > span:last-child {
  display: grid;
  gap: 0;
}

.brand strong {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.93rem;
  line-height: 1.25;
}

.brand small {
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.17em;
  line-height: 1.2;
}

.global-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}

.global-nav a {
  min-height: 42px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.global-nav a:hover {
  background: var(--cloud);
  color: var(--ink);
}

.page-shell {
  width: min(calc(100% - 48px), var(--maxw));
  margin: 0 auto;
  padding: 30px 0 88px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(460px, 1.08fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
}

.hero-copy {
  padding: 0;
}

.eyebrow,
.section-kicker,
.card-label {
  margin: 0;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  line-height: 1.3;
}

.hero h1 {
  margin: 0;
  color: var(--ink);
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  letter-spacing: -0.01em;
  line-height: 1.25;
}

.hero-lead {
  max-width: 480px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.7;
}

.source-status {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  margin-top: 16px;
  padding: 8px 12px;
  border: 1px solid #d4e8df;
  border-radius: 999px;
  background: #f1faf6;
  color: #2f6f59;
  font-size: 0.75rem;
  font-weight: 700;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px rgb(47 125 99 / 12%);
}

.source-status.is-stale {
  border-color: #efdbbd;
  background: #fff9ed;
  color: var(--warning);
}

.source-status.is-stale .status-dot {
  background: var(--warning);
  box-shadow: 0 0 0 4px rgb(166 97 18 / 12%);
}

.next-event-card {
  min-width: 0;
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--card);
  box-shadow: var(--shadow);
}

.next-event-loading {
  height: 170px;
  margin-top: 16px;
  border-radius: var(--radius);
  background: var(--cloud);
}

.next-event-button {
  display: grid;
  width: 100%;
  grid-template-columns: 104px minmax(0, 1fr) 28px;
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--heaven);
  text-align: left;
  transition:
    border-color 160ms var(--ease-soft),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease-soft);
}

.next-event-button:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.next-date {
  display: grid;
  min-height: 116px;
  align-content: center;
  justify-items: center;
  border-right: 1px solid var(--line);
  font-family: "Fredoka", sans-serif;
  line-height: 1;
}

.next-date small {
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 600;
}

.next-date strong {
  margin: 8px 0 7px;
  font-size: 3.1rem;
  letter-spacing: -0.06em;
}

.next-event-body {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.next-event-badges,
.event-card-badges,
.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.next-event-title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(1.06rem, 2vw, 1.3rem);
  line-height: 1.55;
}

.next-event-meta {
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 500;
}

.next-ticket,
.ticket-state {
  width: fit-content;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.ticket-on_sale,
.ticket-free {
  color: var(--success);
}

.ticket-upcoming {
  color: var(--warning);
}

.ticket-sold_out,
.ticket-closed {
  color: var(--danger);
}

.next-event-arrow {
  color: var(--dream);
  font-size: 1.25rem;
}

.next-event-empty {
  margin: 24px 0 0;
  color: var(--ink-soft);
}

.control-bar {
  position: sticky;
  z-index: 20;
  top: 12px;
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 9px;
  border: 1px solid rgb(230 219 241 / 86%);
  border-radius: 999px;
  background: rgb(255 255 255 / 90%);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px) saturate(135%);
}

.view-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 4px;
}

.view-tabs button,
.filter-toggle {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 700;
}

.view-tabs button {
  padding: 8px 18px;
  white-space: nowrap;
}

.view-tabs button[aria-selected="true"] {
  background: var(--ink);
  color: #fff;
}

.filter-toggle {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 8px 14px 8px 18px;
}

.filter-toggle:hover,
.filter-toggle[aria-expanded="true"] {
  background: var(--cloud);
  color: var(--ink);
}

.filter-toggle span {
  display: inline-grid;
  min-width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: var(--cloud);
  color: var(--ink-soft);
  font-family: "Fredoka", sans-serif;
  font-size: 0.72rem;
}

.filter-toggle.has-active-filters span {
  background: var(--dream);
  color: #fff;
}

.filters-panel {
  margin-top: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.active-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgb(255 255 255 / 74%);
}

.active-filters[hidden] {
  display: none;
}

.active-filters-label {
  flex: 0 0 auto;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.active-filter-list {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  gap: 7px;
}

.active-filter-chip {
  display: inline-flex;
  min-height: 44px;
  gap: 8px;
  align-items: center;
  padding: 7px 10px 7px 12px;
  border: 1px solid rgb(127 91 151 / 26%);
  border-radius: 999px;
  background: var(--cloud);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
}

.active-filter-chip:hover {
  border-color: var(--line-strong);
  background: var(--heaven);
}

.active-filter-chip span:last-child {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1;
}

.active-filter-clear {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--dream);
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.active-filter-clear:hover {
  background: var(--cloud);
}

.filter-header,
.view-heading,
.calendar-heading {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  justify-content: space-between;
}

.filter-header h2,
.view-heading h2,
.day-agenda h3,
.detail-section h3 {
  margin: 4px 0 0;
  font-family: "Zen Maru Gothic", sans-serif;
  line-height: 1.4;
}

.filter-header h2,
.view-heading h2 {
  font-size: clamp(1.35rem, 2.3vw, 1.75rem);
}

.text-button {
  padding: 7px 0;
  border: 0;
  background: transparent;
  color: var(--dream);
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(145px, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.filter-grid label {
  display: grid;
  gap: 7px;
}

.filter-grid label > span,
.memo-label > span {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.filter-grid input,
.filter-grid select,
.memo-label textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--heaven);
  color: var(--ink);
  font-size: 0.84rem;
}

.filter-grid input:hover,
.filter-grid select:hover,
.memo-label textarea:hover {
  border-color: var(--line-strong);
}

.notice {
  display: grid;
  gap: 4px;
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid #efc7d1;
  border-radius: var(--radius-sm);
  background: #fff4f6;
  color: var(--danger);
}

.notice span {
  font-size: 0.82rem;
}

.content-view {
  margin-top: 34px;
}

.result-summary {
  margin: 0;
  color: var(--ink-soft);
  font-family: "Fredoka", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
}

.month-controls {
  display: flex;
  gap: 5px;
  align-items: center;
}

.month-controls button {
  min-width: 42px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.month-controls button:hover {
  border-color: var(--line-strong);
  color: var(--ink);
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.calendar-grid {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.calendar-weekday {
  padding: 11px 4px;
  border-bottom: 1px solid var(--line);
  background: var(--heaven);
  color: var(--ink-soft);
  font-size: 0.7rem;
  font-weight: 700;
  text-align: center;
}

.calendar-weekday:first-child {
  color: #bb5068;
}

.calendar-weekday:nth-child(7) {
  color: #5573ad;
}

.calendar-day {
  position: relative;
  min-width: 0;
  min-height: 116px;
  padding: 7px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--card);
}

.calendar-day:nth-child(7n) {
  border-right: 0;
}

.calendar-day:nth-last-child(-n + 7) {
  border-bottom: 0;
}

.calendar-day.is-outside {
  background: #fbf9fc;
}

.calendar-day.is-selected {
  background: #f5eefc;
  box-shadow: inset 0 0 0 2px var(--dream);
}

.calendar-day-number {
  display: inline-grid;
  width: 29px;
  height: 29px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-family: "Fredoka", sans-serif;
  font-size: 0.76rem;
  font-weight: 600;
}

.calendar-day.is-outside .calendar-day-number {
  color: #b7aebf;
}

.calendar-day-number:hover {
  background: var(--cloud);
}

.calendar-events {
  display: grid;
  gap: 4px;
  margin-top: 4px;
}

.calendar-mobile-markers {
  display: none;
}

.calendar-event {
  display: flex;
  min-width: 0;
  gap: 5px;
  align-items: center;
  padding: 4px 5px;
  border: 0;
  border-radius: 7px;
  background: color-mix(in srgb, var(--category-color, var(--other)) 9%, white);
  color: color-mix(in srgb, var(--category-color, var(--other)) 82%, var(--ink));
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.calendar-event:hover {
  background: color-mix(in srgb, var(--category-color, var(--other)) 16%, white);
}

.calendar-event-icon {
  flex: 0 0 auto;
  font-size: 0.72rem;
  line-height: 1;
}

.calendar-event-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-more {
  width: fit-content;
  padding: 2px 5px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 0.64rem;
  font-weight: 700;
}

.day-agenda {
  position: sticky;
  top: 84px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.day-agenda h3 {
  font-size: 1.08rem;
}

#day-agenda-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.day-agenda-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--category-color, var(--other));
  border-radius: var(--radius-sm);
  background: var(--heaven);
  text-align: left;
}

.day-agenda-item:hover {
  border-color: var(--line-strong);
  border-left-color: var(--category-color, var(--other));
}

.day-agenda-item small {
  color: var(--category-color, var(--ink-soft));
  font-size: 0.64rem;
  font-weight: 700;
}

.day-agenda-item strong {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 0.86rem;
  line-height: 1.5;
}

.day-agenda-item span,
.day-agenda-empty {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.event-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.event-month-heading {
  margin: 22px 0 2px;
  color: var(--ink-soft);
  font-family: "Fredoka", "Zen Kaku Gothic New", sans-serif;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.event-month-heading:first-child {
  margin-top: 0;
}

.event-card {
  --category-color: var(--other);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.event-card-button {
  display: grid;
  width: 100%;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 24px;
  align-items: stretch;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.event-card-button:hover {
  background: var(--heaven);
}

.event-official-link {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: flex-end;
  padding: 9px 20px;
  border-top: 1px solid var(--line);
  background: rgb(250 247 253 / 72%);
  color: var(--dream);
  font-size: 0.76rem;
  font-weight: 700;
  text-decoration: none;
}

.event-official-link:hover {
  background: var(--cloud);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.event-date-block {
  display: grid;
  min-height: 138px;
  align-content: center;
  justify-items: center;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--category-color) 7%, white);
  font-family: "Fredoka", sans-serif;
  line-height: 1;
}

.event-date-block small {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 600;
}

.event-date-block strong {
  margin: 7px 0;
  color: var(--category-color);
  font-size: 2.35rem;
  letter-spacing: -0.05em;
}

.event-card-body {
  display: grid;
  min-width: 0;
  gap: 7px;
  align-content: center;
  padding: 20px 24px 20px 0;
}

.event-card-title {
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1rem;
  line-height: 1.55;
}

.event-card-meta {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 500;
}

.badge {
  display: inline-flex;
  min-height: 22px;
  gap: 4px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--badge-color, var(--other)) 10%, white);
  color: color-mix(in srgb, var(--badge-color, var(--other)) 78%, var(--ink));
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.3;
}

.badge-one_man { --badge-color: var(--one-man); }
.badge-tour { --badge-color: var(--tour); }
.badge-live { --badge-color: var(--live); }
.badge-festival { --badge-color: var(--festival); }
.badge-release { --badge-color: var(--release); }
.badge-benefit { --badge-color: var(--benefit); }
.badge-birthday { --badge-color: var(--birthday); }
.badge-personal { --badge-color: var(--personal); }
.badge-stream { --badge-color: var(--stream); }
.badge-deadline { --badge-color: var(--deadline); }
.badge-other { --badge-color: var(--other); }
.badge-today { --badge-color: var(--kyururin); }
.badge-verified { --badge-color: var(--success); }
.badge-alert { --badge-color: var(--danger); }
.badge-muted { --badge-color: var(--ink-soft); }
.badge-icon {
  font-size: 0.74rem;
  line-height: 1;
}

.category-one_man { --category-color: var(--one-man); }
.category-tour { --category-color: var(--tour); }
.category-live { --category-color: var(--live); }
.category-festival { --category-color: var(--festival); }
.category-release { --category-color: var(--release); }
.category-benefit { --category-color: var(--benefit); }
.category-birthday { --category-color: var(--birthday); }
.category-personal { --category-color: var(--personal); }
.category-stream { --category-color: var(--stream); }
.category-deadline { --category-color: var(--deadline); }
.category-other { --category-color: var(--other); }

.updates-list {
  display: grid;
  gap: 30px;
  margin-top: 20px;
}

.update-group {
  display: grid;
  gap: 10px;
}

.update-group h3 {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: 1rem;
}

.update-group h3 span {
  color: var(--ink-soft);
  font-family: "Fredoka", sans-serif;
  font-size: 0.7rem;
}

.update-group-list {
  display: grid;
  gap: 10px;
}

.update-item {
  display: grid;
  width: 100%;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--card);
  box-shadow: var(--shadow-soft);
  text-align: left;
}

.update-item:hover {
  border-color: var(--line-strong);
  background: var(--heaven);
}

.update-marker {
  display: inline-grid;
  min-height: 27px;
  place-items: center;
  border-radius: 999px;
  background: var(--cloud);
  color: var(--dream);
  font-family: "Fredoka", sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
}

.update-new .update-marker {
  background: #ffe5f1;
  color: #b93b7a;
}

.update-item > span:last-child {
  display: grid;
  gap: 4px;
}

.update-item time,
.update-item small {
  color: var(--ink-soft);
  font-size: 0.7rem;
}

.update-item strong {
  font-size: 0.86rem;
}

.updates-empty,
.empty-state {
  padding: 48px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink-soft);
  text-align: center;
}

.updates-empty strong,
.empty-state h2 {
  color: var(--ink);
  font-family: "Zen Maru Gothic", sans-serif;
}

.updates-empty p,
.empty-state p {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.empty-state {
  margin-top: 28px;
}

.empty-state > span {
  color: var(--dream);
  font-size: 1.5rem;
}

.empty-state h2 {
  margin: 10px 0 0;
  font-size: 1.2rem;
}

.secondary-button {
  min-height: 44px;
  margin-top: 18px;
  padding: 9px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.site-footer {
  display: flex;
  width: min(calc(100% - 48px), var(--maxw));
  gap: 30px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 auto;
  padding: 34px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.74rem;
}

.site-footer p {
  max-width: 680px;
  margin: 0;
}

.site-footer p + p {
  margin-top: 5px;
}

.site-footer strong {
  color: var(--ink);
  font-family: "Zen Maru Gothic", sans-serif;
}

.site-footer a {
  flex: 0 0 auto;
  color: var(--dream);
  font-weight: 700;
  text-decoration: none;
}

.event-dialog {
  width: min(620px, 100%);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.event-dialog::backdrop {
  background: rgb(43 30 56 / 48%);
  backdrop-filter: blur(5px);
}

.dialog-shell {
  position: relative;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 54px clamp(24px, 5vw, 52px) 56px;
  background: var(--canvas);
  box-shadow: -24px 0 70px -46px rgba(34, 20, 50, 0.7);
}

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 18px;
  right: 18px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgb(255 255 255 / 92%);
  color: var(--ink-soft);
  font-size: 1.3rem;
  line-height: 1;
}

.detail-header {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.detail-date {
  margin: 22px 0 7px;
  color: var(--ink-soft);
  font-family: "Fredoka", "Zen Kaku Gothic New", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.detail-header h2 {
  margin: 0;
  font-family: "Zen Maru Gothic", sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  letter-spacing: -0.03em;
  line-height: 1.5;
  text-wrap: balance;
}

.detail-lead {
  margin: 13px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 500;
}

.detail-section {
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-soft);
}

.detail-section h3 {
  margin: 0 0 18px;
  font-size: 1rem;
}

.detail-section > p {
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.9;
}

.detail-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
}

.detail-facts > div {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.detail-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.detail-facts dt {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
}

.detail-facts dd {
  margin: 3px 0 0;
  font-size: 0.86rem;
  font-weight: 700;
}

.detail-note {
  margin-top: 16px !important;
  padding: 12px 14px;
  border-left: 3px solid var(--warning);
  border-radius: 0 10px 10px 0;
  background: #fff9ed;
  color: #76501b !important;
  font-size: 0.76rem !important;
}

.session-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.session-list li {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  padding: 10px 0 10px 18px;
  border-left: 2px solid var(--line);
}

.session-list li::before {
  position: absolute;
  top: 17px;
  left: -5px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--card);
  border-radius: 50%;
  background: var(--dream);
  content: "";
}

.session-list time {
  font-family: "Fredoka", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
}

.session-list span {
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.detail-update-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.detail-update-list li {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  font-size: 0.76rem;
}

.detail-update-list time {
  color: var(--ink-soft);
}

.personal-section {
  background: #fcf9ff;
}

.personal-heading {
  display: flex;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
}

.personal-heading h3 {
  margin-bottom: 0;
}

.personal-heading small {
  color: var(--ink-soft);
  font-size: 0.66rem;
}

.participation-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 18px;
}

.participation-buttons button {
  min-height: 42px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.participation-buttons button[aria-pressed="true"] {
  border-color: var(--dream);
  background: #eeeaff;
  color: #5447aa;
}

.personal-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.personal-checks label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.76rem;
  font-weight: 700;
}

.personal-checks input {
  width: 17px;
  height: 17px;
  accent-color: var(--dream);
}

.memo-label {
  display: grid;
  gap: 7px;
  margin-top: 18px;
}

.memo-label textarea {
  min-height: 92px;
  resize: vertical;
  line-height: 1.6;
}

.source-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.source-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.source-links .primary-link {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.source-links a:hover {
  border-color: var(--line-strong);
}

.verified-note {
  margin-top: 16px !important;
  color: var(--ink-soft) !important;
  font-size: 0.7rem !important;
  text-align: center;
}

.verified-note-secondary {
  margin-top: 2px !important;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 3vw, 1.95rem);
  }

  .filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calendar-layout {
    grid-template-columns: 1fr;
  }

  .day-agenda {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header-inner,
  .page-shell,
  .site-footer {
    width: min(calc(100% - 32px), var(--maxw));
  }

  .site-header-inner {
    min-height: 66px;
  }

  .global-nav a {
    min-height: 38px;
    padding: 7px 10px;
    font-size: 0.72rem;
  }

  .global-nav a:last-child {
    display: none;
  }

  .page-shell {
    padding-top: 20px;
    padding-bottom: 70px;
  }

  .hero {
    gap: 18px;
  }

  .hero h1 {
    margin-top: 0;
    font-size: clamp(1.5rem, 5.5vw, 1.8rem);
  }

  .hero-lead {
    font-size: 0.92rem;
  }

  .source-status {
    max-width: 100%;
    font-size: 0.68rem;
  }

  .next-event-card {
    padding: 18px;
    border-radius: var(--radius);
  }

  .next-event-button {
    grid-template-columns: 74px minmax(0, 1fr) 18px;
    gap: 14px;
    padding: 16px 12px;
  }

  .next-date {
    min-height: 108px;
  }

  .next-date strong {
    font-size: 2.45rem;
  }

  .next-event-title {
    font-size: 0.95rem;
  }

  .next-event-meta {
    font-size: 0.73rem;
  }

  .next-event-arrow {
    font-size: 1rem;
  }

  .control-bar {
    top: auto;
    bottom: calc(10px + env(safe-area-inset-bottom));
    margin-top: 34px;
    gap: 8px;
    padding: 7px;
    border-radius: 18px;
  }

  .view-tabs {
    min-width: 0;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .view-tabs button {
    min-height: 44px;
    padding: 7px 4px;
    font-size: 0.75rem;
  }

  .filter-toggle {
    min-height: 44px;
    padding: 6px 7px 6px 10px;
    font-size: 0;
  }

  .filter-toggle::before {
    font-size: 0.72rem;
    content: "条件";
  }

  .filter-toggle span {
    min-width: 23px;
    height: 23px;
  }

  .filters-panel {
    padding: 22px 18px;
  }

  .active-filters {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    padding: 10px 12px;
  }

  .active-filters-label {
    padding: 0;
  }

  .active-filter-list {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .active-filter-clear {
    grid-column: 2;
    grid-row: 1;
  }

  .filter-header {
    align-items: flex-start;
  }

  .filter-header h2 {
    font-size: 1.15rem;
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 13px 10px;
  }

  .filter-grid label:first-child {
    grid-column: 1 / -1;
  }

  .filter-grid input,
  .filter-grid select {
    font-size: 0.78rem;
  }

  .content-view {
    margin-top: 28px;
  }

  .calendar-heading {
    align-items: center;
  }

  .month-controls button {
    min-width: 44px;
    min-height: 44px;
    padding: 5px 9px;
  }

  .calendar-grid {
    width: calc(100% + 32px);
    margin-left: -16px;
    border-radius: 0;
  }

  .calendar-weekday {
    padding: 8px 2px;
    font-size: 0.64rem;
  }

  .calendar-day {
    min-height: 72px;
    padding: 2px;
  }

  .calendar-day-number {
    width: 44px;
    height: 44px;
    font-size: 0.7rem;
  }

  .calendar-events {
    display: none;
  }

  .calendar-event {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    padding: 0;
    border-radius: 50%;
    background: var(--category-color, var(--other));
  }

  .calendar-event-icon,
  .calendar-event-title {
    display: none;
  }

  .calendar-mobile-markers {
    display: flex;
    min-height: 17px;
    max-width: 100%;
    gap: 1px;
    align-items: center;
    justify-content: center;
    margin-top: -2px;
    font-size: 0.66rem;
    line-height: 1;
    white-space: nowrap;
  }

  .calendar-mobile-markers small {
    color: var(--ink-soft);
    font-size: 0.5rem;
    font-weight: 700;
  }

  .calendar-more {
    padding: 0;
    font-size: 0.55rem;
    line-height: 1;
  }

  .day-agenda {
    padding: 18px;
  }

  .event-card-button {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 15px;
  }

  .event-date-block {
    min-height: 132px;
  }

  .event-date-block strong {
    font-size: 1.9rem;
  }

  .event-card-body {
    padding: 17px 14px 17px 0;
  }

  .event-card-title {
    font-size: 0.9rem;
  }

  .event-card-meta {
    font-size: 0.72rem;
  }

  .site-footer {
    display: grid;
    gap: 18px;
  }

  .event-dialog {
    width: 100%;
    height: min(92dvh, 920px);
    margin: auto 0 0;
  }

  .dialog-shell {
    padding: 52px 16px calc(32px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
  }

  .detail-header,
  .detail-section {
    padding: 21px 18px;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-facts > div:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .source-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .filter-grid label:first-child {
    grid-column: auto;
  }

  .next-event-button {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .next-event-arrow {
    display: none;
  }

  .event-card-button {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 12px;
  }
}

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

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

@media (prefers-reduced-transparency: reduce) {
  .site-header,
  .control-bar {
    background: var(--card);
    backdrop-filter: none;
  }
}

@media (prefers-contrast: more) {
  :root {
    --ink-soft: #564663;
    --line: #927da7;
    --line-strong: #5f4d71;
  }

  .event-card,
  .calendar-grid,
  .next-event-card,
  .detail-section,
  .detail-header {
    box-shadow: none;
  }
}
