/* ===================================
   Beaカラ! Official Site - Main CSS
   =================================== */

@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Noto+Sans+JP:wght@400;700;900&family=Caveat:wght@400;700&display=swap');

/* === CSS Variables === */
:root {
  --red: #CC0000;
  --red-dark: #990000;
  --yellow: #FFD700;
  --yellow-dark: #e6c200;
  --black: #1a1a1a;
  --cream: #FFF8E7;
  --cream-dark: #f0e8d0;
  --white: #ffffff;
  --shadow: 0 4px 20px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--cream);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

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

/* === Typography === */
h1, h2, h3 {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--red);
  text-align: center;
  margin-bottom: 0.3em;
  position: relative;
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
}

.section-title::after {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(to right, var(--red), var(--yellow));
  border-radius: 2px;
  margin-top: 6px;
}

.section-subtitle {
  text-align: center;
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

/* === Navigation === */
.navbar {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--yellow);
  letter-spacing: 0.05em;
  text-shadow: 2px 2px 0 var(--red);
  transition: transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-logo:hover {
  transform: scale(1.05);
}

.nav-logo-img {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.3rem;
}

.nav-links a {
  display: block;
  padding: 0.5rem 0.8rem;
  color: var(--cream);
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 4px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: var(--red);
  color: var(--yellow);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--yellow);
  border-radius: 3px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* === Footer === */
footer {
  background: var(--black);
  color: var(--cream);
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 4rem;
}

footer .footer-logo {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--yellow);
  text-shadow: 2px 2px 0 var(--red);
  margin-bottom: 0.5rem;
}

footer .footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
  list-style: none;
}

footer .footer-links a {
  color: var(--cream-dark);
  font-size: 0.85rem;
  transition: color 0.2s;
}

footer .footer-links a:hover {
  color: var(--yellow);
}

.footer-sns {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
}

.footer-sns a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255,255,255,0.1);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  color: var(--cream);
  transition: background 0.2s;
}

.footer-sns a:hover {
  background: var(--red);
}

footer .copyright {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
}

/* === Decorative Elements === */
.record-decoration {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    #333 0%, #333 15%,
    #222 16%, #222 18%,
    #444 19%, #444 35%,
    #333 36%, #333 50%,
    #3a3a3a 51%, #3a3a3a 65%,
    #2a2a2a 66%, #2a2a2a 100%
  );
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  animation: spin 8s linear infinite;
  position: relative;
}

.record-decoration::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  background: var(--red);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
  text-align: center;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--red);
  color: var(--yellow);
  border: 3px solid var(--yellow);
}

.btn-primary:hover {
  background: var(--red-dark);
}

.btn-secondary {
  background: var(--yellow);
  color: var(--black);
  border: 3px solid var(--black);
}

.btn-secondary:hover {
  background: var(--yellow-dark);
}

.btn-outline {
  background: transparent;
  color: var(--red);
  border: 3px solid var(--red);
}

.btn-outline:hover {
  background: var(--red);
  color: var(--white);
}

/* === Cards === */
.card {
  background: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

/* === Event Card === */
.event-card {
  background: linear-gradient(135deg, var(--black) 0%, #2d0000 100%);
  color: var(--cream);
  border-radius: 16px;
  padding: 2rem;
  border: 3px solid var(--yellow);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  position: relative;
  overflow: hidden;
}

.event-card::before {
  content: '🎵';
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 8rem;
  opacity: 0.05;
}

.event-card .event-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  color: var(--yellow);
  background: var(--red);
  display: inline-block;
  padding: 0.2rem 0.8rem;
  border-radius: 4px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.1em;
}

.event-card .event-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  color: var(--yellow);
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
}

.event-info-list {
  list-style: none;
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.event-info-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.95rem;
}

.event-info-list .label {
  background: var(--red);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  min-width: 52px;
  text-align: center;
}

/* === Section Wrapper === */
.section {
  padding: 4rem 1.5rem;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

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

/* === Stripe divider === */
.stripe-divider {
  height: 8px;
  background: repeating-linear-gradient(
    -45deg,
    var(--red),
    var(--red) 10px,
    var(--yellow) 10px,
    var(--yellow) 20px
  );
}

/* === Toast / badge === */
.badge {
  display: inline-block;
  background: var(--red);
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

/* === Table === */
.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.styled-table th {
  background: var(--black);
  color: var(--yellow);
  padding: 0.8rem 1rem;
  text-align: left;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.styled-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--cream-dark);
}

.styled-table tr:hover td {
  background: #fff5d4;
}

.styled-table tr:nth-child(even) td {
  background: #fafafa;
}

.styled-table tr:nth-child(even):hover td {
  background: #fff5d4;
}

/* === Form === */
.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--cream-dark);
  border-radius: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  background: var(--white);
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--red);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.required {
  color: var(--red);
  margin-left: 4px;
}

/* === FAQ === */
.faq-item {
  border: 2px solid var(--cream-dark);
  border-radius: 10px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: var(--white);
  border: none;
  padding: 1rem 1.2rem;
  text-align: left;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-question:hover {
  background: #fff5d4;
}

.faq-question .faq-icon {
  font-size: 1.2rem;
  color: var(--red);
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-question.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background: var(--cream);
  font-size: 0.95rem;
  line-height: 1.8;
}

.faq-answer.open {
  max-height: 500px;
  padding: 1rem 1.2rem;
}

/* === Gallery === */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  position: relative;
  background: var(--black);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s, opacity 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.gallery-item .gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  font-size: 2rem;
}

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

/* === Lightbox === */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 60px rgba(0,0,0,0.8);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--red);
  color: var(--white);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: var(--red-dark);
}

.lightbox-caption {
  position: absolute;
  bottom: 1.5rem;
  color: var(--cream);
  font-size: 0.9rem;
  text-align: center;
  width: 100%;
  padding: 0 2rem;
}

/* === Placeholder images === */
.img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 2.5rem;
  color: rgba(255,255,255,0.3);
  background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.img-placeholder span {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Noto Sans JP', sans-serif;
}

/* === Scroll animations === */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* === Responsive === */
@media (max-width: 768px) {
  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: var(--black);
    flex-direction: column;
    padding: 1rem;
    gap: 0.2rem;
    display: none;
    border-top: 2px solid var(--red);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 1rem;
    font-size: 1rem;
  }

  .hamburger {
    display: flex;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
}

@media (max-width: 480px) {
  .section {
    padding: 3rem 1rem;
  }

  .event-card {
    padding: 1.5rem;
  }
}

/* === Utility === */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.gap-1 { gap: 1rem; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.justify-center { justify-content: center; }
.align-center { align-items: center; }
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}
