/* ==========================================================================
   ハリコズエノの『幸町で会いましょう』 Modern Retro Noise CSS
   ========================================================================== */

:root {
  /* Color Tokens derived from 8AA1EC4E-FE9D-4ABC-9503-E9E6DFABD341.jpg */
  --bg-dark: #0f141d;
  --bg-card: #18202d;
  --paper-ivory: #f4efe6;
  --paper-cream: #e9e2d3;
  --retro-mustard: #d9a036;
  --retro-terracotta: #c85a32;
  --retro-olive: #4a6b53;
  --retro-navy: #1b3b54;
  --text-main: #f4efe6;
  --text-muted: #a0aab8;
  --text-dark: #121820;
  --accent-pink: #ff3b68;
  --accent-cyan: #00e5ff;
  
  --font-main: 'Zen Kaku Gothic New', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Outfit', 'Zen Kaku Gothic New', sans-serif;
  --font-mono: 'Courier Prime', monospace;

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --border-radius-sm: 4px;
  --border-radius-md: 10px;
  --border-radius-lg: 16px;
}

/* Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

a {
  color: var(--retro-mustard);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--paper-ivory);
}

button, input, select, textarea {
  font-family: inherit;
}

/* CRT Scanline Overlay */
.crt-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 9999;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.25) 50%
  ), linear-gradient(
    90deg,
    rgba(255, 0, 0, 0.03),
    rgba(0, 255, 0, 0.01),
    rgba(0, 0, 255, 0.03)
  );
  background-size: 100% 3px, 6px 100%;
  opacity: 0.8;
  transition: opacity var(--transition-normal);
}

.crt-overlay.disabled {
  opacity: 0;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 20, 29, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(244, 239, 230, 0.1);
  padding: 0.8rem 1.5rem;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--retro-mustard);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.logo-main {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--paper-ivory);
  letter-spacing: 0.05em;
}

.site-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.site-nav a {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  opacity: 0.85;
  transition: opacity var(--transition-fast), color var(--transition-fast);
}

.site-nav a:hover {
  opacity: 1;
  color: var(--retro-mustard);
}

.nav-btn {
  background: var(--retro-terracotta);
  color: var(--paper-ivory);
  border: none;
  padding: 0.4rem 1rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.nav-btn:hover {
  background: #d8653c;
}

.control-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--paper-ivory);
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #444;
}

.status-indicator.on {
  background-color: #00ff66;
  box-shadow: 0 0 6px #00ff66;
}

/* Layout Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
  text-align: center;
}

.section-sub {
  font-family: var(--font-mono);
  color: var(--retro-terracotta);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  font-weight: 700;
}

.section-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--paper-ivory);
  margin-top: 0.3rem;
}

.section-desc {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 650px;
  margin: 0.5rem auto 0;
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 7rem 1.5rem 4rem;
  background: radial-gradient(circle at 50% 30%, rgba(217, 160, 54, 0.15), transparent 70%),
              radial-gradient(circle at 80% 80%, rgba(200, 90, 50, 0.12), transparent 50%),
              var(--bg-dark);
}

.hero-content {
  max-width: 900px;
  text-align: center;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  background: var(--retro-navy);
  color: var(--retro-mustard);
  border: 1px solid var(--retro-mustard);
  padding: 0.4rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius-sm);
}

.hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.hero-title .artist-name {
  font-size: 1.8rem;
  color: var(--retro-mustard);
  font-weight: 700;
  letter-spacing: 0.1em;
}

.hero-title .event-title {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.15;
  color: var(--paper-ivory);
  text-shadow: 3px 3px 0px var(--retro-terracotta), -2px -2px 0px var(--retro-navy);
}

.hero-meta-box {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  background: rgba(24, 32, 45, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 239, 230, 0.15);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  margin-bottom: 2.5rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--retro-terracotta);
  letter-spacing: 0.15em;
}

.meta-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper-ivory);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  border: none;
}

.cta-button.primary {
  background: var(--retro-terracotta);
  color: var(--paper-ivory);
  box-shadow: 0 4px 15px rgba(200, 90, 50, 0.4);
}

.cta-button.primary:hover {
  background: #d96339;
}

.cta-button.secondary {
  background: rgba(244, 239, 230, 0.1);
  color: var(--paper-ivory);
  border: 1px solid rgba(244, 239, 230, 0.3);
}

.cta-button.secondary:hover {
  background: rgba(244, 239, 230, 0.2);
}

.full-width {
  width: 100%;
}

/* Pattern Banner Section */
.pattern-banner-section {
  width: 100%;
  overflow: hidden;
  background: var(--paper-cream);
  border-top: 4px solid var(--retro-mustard);
  border-bottom: 4px solid var(--retro-terracotta);
}

.pattern-banner-wrapper {
  position: relative;
  max-width: 100%;
}

.pattern-img {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  filter: contrast(1.1) saturate(1.1);
}

.pattern-overlay-text {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 29, 0.45);
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  padding: 1rem;
}

.pattern-overlay-text span {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--paper-ivory);
  background: var(--retro-navy);
  padding: 0.3rem 0.9rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 3px 3px 0 var(--retro-mustard);
}

/* Concept Section */
.concept-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 2rem;
  align-items: center;
}

.concept-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 239, 230, 0.1);
  padding: 2.2rem;
  border-radius: var(--border-radius-lg);
}

.concept-card p {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--text-main);
}

.concept-card .lead-p {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--retro-mustard);
  line-height: 1.6;
}

.concept-card .highlight-p {
  background: rgba(200, 90, 50, 0.15);
  border-left: 4px solid var(--retro-terracotta);
  padding: 1rem;
  font-weight: 700;
  margin-bottom: 0;
}

.abstract-avatar-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.noise-canvas-container {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--retro-mustard);
  box-shadow: 0 0 20px rgba(217, 160, 54, 0.3);
  margin-bottom: 1rem;
  background: #000;
}

#noise-avatar-canvas {
  width: 100%;
  height: 100%;
}

.avatar-caption .tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--retro-olive);
  color: var(--paper-ivory);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
}

.avatar-caption p {
  margin-top: 0.5rem;
  font-weight: 700;
}

/* Sounder Section */
.sounder-section {
  background: radial-gradient(circle at 30% 50%, rgba(27, 59, 84, 0.5), transparent 70%), var(--bg-dark);
}

.sounder-dashboard {
  background: var(--bg-card);
  border: 1px solid rgba(244, 239, 230, 0.15);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
}

.sounder-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.sound-card {
  background: rgba(15, 20, 29, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.sound-card.active {
  border-color: var(--retro-mustard);
  box-shadow: 0 0 15px rgba(217, 160, 54, 0.25);
  background: rgba(217, 160, 54, 0.08);
}

.sound-icon {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
}

.sound-card h3 {
  font-size: 1.1rem;
  color: var(--paper-ivory);
  margin-bottom: 0.3rem;
}

.sound-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.5;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.sound-play-btn {
  width: 100%;
  padding: 0.6rem;
  background: var(--retro-navy);
  color: var(--paper-ivory);
  border: 1px solid var(--retro-mustard);
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  margin-bottom: 1rem;
  transition: all var(--transition-fast);
}

.sound-card.active .sound-play-btn {
  background: var(--retro-terracotta);
  border-color: var(--retro-terracotta);
}

.sound-vol {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.sound-vol input[type="range"] {
  flex: 1;
  accent-color: var(--retro-mustard);
}

.sounder-master {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 1rem;
}

.master-btn {
  background: rgba(255, 255, 255, 0.1);
  color: var(--paper-ivory);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.master-btn:hover {
  background: var(--retro-terracotta);
}

.master-status {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--retro-mustard);
}

/* Lineup Section */
.lineup-category {
  margin-bottom: 3rem;
}

.category-heading {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--retro-mustard);
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--retro-mustard);
}

.artist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  list-style: none;
}

.artist-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 239, 230, 0.1);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.artist-card.featured {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(27, 59, 84, 0.95), rgba(24, 32, 45, 0.98));
  border: 3px solid var(--retro-mustard);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 2rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 30px rgba(217, 160, 54, 0.2);
}

.artist-card.featured .artist-title {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  text-align: center;
}

.artist-card.featured .artist-desc {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.6;
}

.performance-title-tag {
  margin: 1.5rem 0 1rem;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--paper-ivory);
  letter-spacing: 0.12em;
  text-align: center;
  padding: 0.5rem 1.2rem;
  background: rgba(217, 160, 54, 0.08);
  border-top: 1px solid rgba(217, 160, 54, 0.25);
  border-bottom: 1px solid rgba(217, 160, 54, 0.25);
  display: inline-block;
}

.artist-img-wrapper {
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(244, 239, 230, 0.15);
  background: rgba(0, 0, 0, 0.3);
}

.featured-dual-images {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  width: fit-content;
  max-width: 100%;
  margin: 1.5rem auto 0;
}

.featured-dual-images .artist-img-wrapper {
  width: 260px;
  max-width: 100%;
  flex: none;
}

@media (max-width: 768px) {
  .featured-dual-images {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }
  .featured-dual-images .artist-img-wrapper {
    width: 100%;
    max-width: 280px;
  }
}

.artist-thumb {
  width: 100%;
  height: auto;
  display: block;
  filter: contrast(1.05);
}

.artist-info {
  display: flex;
  flex-direction: column;
}

.artist-badge {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--retro-terracotta);
  color: var(--paper-ivory);
  padding: 0.25rem 0.6rem;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.artist-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--paper-ivory);
  margin-bottom: 0.4rem;
  white-space: nowrap;
  word-break: keep-all;
  overflow: hidden;
  text-overflow: ellipsis;
}

.artist-title .sub-artist {
  font-size: 1rem;
  font-weight: 700;
  color: var(--retro-mustard);
}

.artist-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Market Category */
.market-card {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--retro-olive);
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
}

.market-icon {
  font-size: 2.5rem;
}

.market-info h4 {
  font-size: 1.2rem;
  color: var(--paper-ivory);
}

/* Staff & Credits */
.staff-category {
  margin-top: 2.5rem;
}

.staff-grid {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  flex-wrap: wrap;
}

.staff-card {
  background: var(--bg-card);
  border: 1px solid rgba(244, 239, 230, 0.15);
  padding: 1rem 1.5rem;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 200px;
}

.staff-role {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--retro-mustard);
  background: rgba(217, 160, 54, 0.12);
  padding: 0.25rem 0.6rem;
  border-radius: var(--border-radius-sm);
  border: 1px solid rgba(217, 160, 54, 0.3);
  font-weight: 700;
}

.staff-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--paper-ivory);
}

/* Venue Section */
.venue-content-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2rem;
}

.venue-info-box {
  background: var(--bg-card);
  border: 1px solid rgba(244, 239, 230, 0.1);
  padding: 2rem;
  border-radius: var(--border-radius-lg);
}

.venue-info-box h3 {
  font-size: 1.4rem;
  color: var(--retro-mustard);
  margin-bottom: 1rem;
}

.venue-info-box p {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.venue-address {
  font-style: normal;
  background: rgba(15, 20, 29, 0.6);
  border-left: 3px solid var(--retro-mustard);
  padding: 1rem;
  margin-top: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
}

.venue-map-box {
  background: var(--retro-navy);
  border: 1px solid rgba(244, 239, 230, 0.2);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder {
  text-align: center;
}

.map-badge {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: var(--retro-mustard);
  color: var(--text-dark);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-weight: 700;
  display: inline-block;
  margin-bottom: 1rem;
}

.map-placeholder h4 {
  font-size: 1.3rem;
  color: var(--paper-ivory);
  margin-bottom: 1rem;
}

.map-details p {
  font-size: 0.95rem;
  color: var(--paper-cream);
  margin-bottom: 0.5rem;
}

.map-link {
  display: inline-block;
  margin-top: 1.2rem;
  background: var(--retro-terracotta);
  color: var(--paper-ivory);
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
}

/* Modal Dialog */
.ticket-modal {
  border: none;
  border-radius: var(--border-radius-lg);
  background: var(--bg-card);
  color: var(--text-main);
  padding: 0;
  max-width: 480px;
  width: 90%;
  margin: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(244, 239, 230, 0.2);
}

.ticket-modal::backdrop {
  background: rgba(15, 20, 29, 0.85);
  backdrop-filter: blur(8px);
}

.modal-content {
  padding: 2rem;
  position: relative;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
}

.modal-close-btn:hover {
  color: var(--paper-ivory);
}

.modal-title {
  font-size: 1.3rem;
  color: var(--retro-mustard);
  margin-bottom: 0.2rem;
}

.modal-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--paper-cream);
}

.form-group .req {
  color: var(--accent-pink);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.7rem;
  background: rgba(15, 20, 29, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--border-radius-sm);
  color: var(--paper-ivory);
  font-size: 0.95rem;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--retro-mustard);
  box-shadow: 0 0 8px rgba(217, 160, 54, 0.3);
}

/* Footer */
.site-footer {
  background: #090c12;
  padding: 3rem 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--retro-mustard);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0.4rem 0 1rem;
}

.footer-credit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(244, 239, 230, 0.4);
}

/* Glitch Animation Classes */
.glitch-text {
  position: relative;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .hero-title .event-title {
    font-size: 2.3rem;
  }
  .concept-grid,
  .venue-content-grid {
    grid-template-columns: 1fr;
  }
  .artist-card.featured {
    grid-column: span 1;
  }
  .site-nav {
    display: none; /* Simplification for mobile view */
  }
}
