:root {
  --bg: #fafaf7;
  --fg: #1a1a1a;
  --fg-muted: #6b6b6b;
  --fg-faint: #b0b0b0;
  --line: #e5e3dc;
  --accent: #1a1a1a;
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.8;
  font-weight: 400;
  -webkit-touch-callout: none;
  font-feature-settings: "palt";
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: auto;
}

audio {
  width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* ============ Venue page ============ */

.venue {
  max-width: 720px;
  margin: 0 auto;
  padding: 80px 24px 120px;
}

.logo {
  display: block;
  width: clamp(180px, 50vw, 260px);
  height: auto;
  margin: 0 auto 20px;
}

.logo--404 {
  width: clamp(160px, 45vw, 220px);
  margin-bottom: 24px;
}

.venue__tour {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.32em;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 40px;
}

.venue__title {
  font-family: var(--serif);
  font-size: clamp(32px, 7vw, 44px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
  margin-bottom: 32px;
}

.venue__date {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--fg-muted);
  padding-bottom: 4px;
}

.venue__date::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--venue-color, var(--accent));
}

.venue__unpublished {
  margin-top: 96px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
  color: var(--fg-muted);
  font-size: 14px;
  letter-spacing: 0.12em;
}

/* ============ Section common ============ */

.section {
  margin-top: 96px;
}

.section__heading {
  font-family: var(--serif);
  font-size: clamp(22px, 5vw, 28px);
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
  line-height: 1.4;
}

.section__heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 48px;
  height: 2px;
  background: var(--venue-color, var(--accent));
}

/* ============ Memory ============ */

.memory__paragraph {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 2.1;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
  color: var(--fg);
}

.memory__figure {
  margin: 48px -24px;
}

.memory__figure img {
  width: 100%;
  height: auto;
}

@media (min-width: 720px) {
  .memory__figure {
    margin: 56px 0;
  }
}

/* ============ Setlist ============ */

.setlist {
  list-style: none;
  counter-reset: setlist;
}

.setlist__item {
  counter-increment: setlist;
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.setlist__item:last-child {
  border-bottom: none;
}

.setlist__num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--fg-faint);
  letter-spacing: 0.06em;
  min-width: 36px;
  font-feature-settings: "tnum";
}

.setlist__num::before {
  content: "M" counter(setlist) ".";
}

.setlist__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.setlist__title {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.setlist__note {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
}

.setlist__links {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.setlist__item--mc {
  counter-increment: none;
  justify-content: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.setlist__mc-label {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.32em;
  color: var(--fg-faint);
  text-transform: uppercase;
}

.setlist__mc-label::before { content: "— "; }
.setlist__mc-label::after  { content: " —"; }

.setlist__link {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg-muted);
  transition: border-color 0.2s, color 0.2s;
}

.setlist__link:hover {
  border-color: var(--fg);
  color: var(--fg);
}

/* ============ Audio ============ */

.audio-track {
  margin-bottom: 32px;
}

.audio-track__label {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 10px;
}

.audio-track audio {
  border-radius: 4px;
}

/* ============ Gallery ============ */

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.gallery__item {
  margin: 0 -24px;
}

.gallery__item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

@media (min-width: 720px) {
  .gallery__item {
    margin: 0;
  }
}

/* ============ 404 ============ */

.notfound {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
}

.notfound__code {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--fg-faint);
  margin-bottom: 24px;
}

.notfound__title {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}

.notfound__message {
  font-size: 13px;
  line-height: 1.9;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
  max-width: 320px;
}

/* ============ Fade in ============ */

.fade-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
