/* ========================================
   NPF2026 Theme - Main Stylesheet
   ======================================== */

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

:root {
  --accent: #ff00c3;
  --accent-dark: #cc009c;
  --accent-light: #ff33cf;
  --text: #313131;
  --text-light: #666;
  --bg: #ffffff;
  --bg-light: #f8f8f8;
  --bg-dark: #1a1a1a;
  --border: #e0e0e0;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --container: 1100px;
  --header-height: 64px;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  padding-top: var(--header-height);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  height: var(--header-height);
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.site-logo {
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--text);
  letter-spacing: 0.02em;
}
.site-logo:hover { color: var(--accent); }

.nav-list {
  list-style: none;
  display: flex;
  gap: 4px;
}

.nav-list a {
  display: block;
  padding: 8px 12px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s;
}
.nav-list a:hover,
.nav-list a.active {
  color: var(--accent);
  background: rgba(255,0,195,0.06);
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
  position: absolute;
  left: 4px;
}
.hamburger { top: 15px; }
.hamburger::before { content: ''; top: -7px; }
.hamburger::after { content: ''; top: 7px; }

.menu-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.menu-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,0,195,0.15) 0%, transparent 60%),
              radial-gradient(circle at 70% 50%, rgba(255,0,195,0.1) 0%, transparent 60%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 40px 20px;
}

.hero-title {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fff 0%, var(--accent-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(1rem, 3vw, 1.3rem);
  opacity: 0.9;
  margin-bottom: 24px;
  font-weight: 300;
}

.hero-date {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.hero-venue {
  font-size: 1rem;
  opacity: 0.85;
}

/* --- Sections --- */
.section {
  padding: 80px 0;
}
.section:nth-child(even) {
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 48px;
  position: relative;
  padding-bottom: 16px;
}
.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* Info Grid */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.info-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.info-icon {
  font-size: 2rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.info-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-light);
}

.info-card p {
  font-size: 1.1rem;
  font-weight: 600;
}

/* Swiper Carousel */
.section-carousel { padding: 60px 0; }
.hero-swiper {
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-swiper img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.swiper-button-next, .swiper-button-prev { color: var(--accent) !important; }
.swiper-pagination-bullet-active { background: var(--accent) !important; }

/* --- FAQ --- */
.section-faq { background: var(--bg-light); }

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  gap: 12px;
}

.faq-question i {
  transition: transform 0.3s;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item.open .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-answer p {
  padding: 0 20px 16px;
  color: var(--text-light);
  line-height: 1.8;
}

/* --- Page Single / List --- */
.page-single, .page-list {
  padding: 60px 0 80px;
}

.page-header {
  margin-bottom: 40px;
}

.page-title {
  font-size: 2rem;
  font-weight: 800;
  padding-bottom: 16px;
  border-bottom: 3px solid var(--accent);
}

.page-content {
  line-height: 2;
}
.page-content h2 {
  font-size: 1.4rem;
  margin: 40px 0 16px;
  padding-left: 12px;
  border-left: 4px solid var(--accent);
}
.page-content h3 {
  font-size: 1.2rem;
  margin: 32px 0 12px;
}
.page-content p { margin-bottom: 16px; }
.page-content ul, .page-content ol { margin: 0 0 16px 24px; }
.page-content img {
  border-radius: var(--radius);
  margin: 16px 0;
}

/* --- Gallery --- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s;
}
.gallery-item img:hover { transform: scale(1.02); }

.gallery-videos { margin-top: 32px; }
.video-item { margin-bottom: 40px; }
.video-item h3 {
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.video-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: var(--radius);
}
.video-credit {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--text-light);
}

/* --- Schedule / Timetable --- */
.timetable {
  max-width: 800px;
  margin: 32px auto 0;
}

.timetable-item {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.timetable-time {
  flex-shrink: 0;
  width: 80px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
}

.timetable-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.timetable-desc {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* --- Guest --- */
.guest-list {
  display: grid;
  gap: 40px;
  margin-top: 32px;
}

.guest-card {
  display: flex;
  gap: 24px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.guest-image {
  flex-shrink: 0;
  width: 180px;
}
.guest-image img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.guest-name {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.guest-role {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
}

.guest-bio {
  color: var(--text-light);
  line-height: 1.8;
}

/* --- Sponsors --- */
.sponsor-tier {
  margin-bottom: 48px;
}

.tier-title {
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 24px;
  color: var(--text);
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  justify-items: center;
}

.sponsor-card, .sponsor-logo-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  border-radius: var(--radius);
  transition: transform 0.2s, box-shadow 0.2s;
}
.sponsor-card:hover, .sponsor-logo-link:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.sponsor-card img, .sponsor-logo-link img {
  max-height: 60px;
  width: auto;
}

.sponsor-name {
  font-size: 0.85rem;
  color: var(--text-light);
  text-align: center;
}

.section-sponsors-home .sponsors-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

/* --- Contact --- */
.contact-form-embed { margin-top: 32px; }
.contact-form-embed iframe { border-radius: var(--radius); }

.contact-info {
  text-align: center;
  margin-top: 32px;
}
.contact-email a {
  font-size: 1.2rem;
  font-weight: 600;
}

/* --- Lightbox --- */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.lightbox-overlay.active {
  opacity: 1;
  visibility: visible;
}
.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
}

/* --- Footer --- */
.site-footer {
  background: var(--bg-dark);
  color: #aaa;
  padding: 32px 0;
  text-align: center;
}

.footer-copy {
  font-size: 0.85rem;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  :root { --header-height: 56px; }

  .menu-toggle { display: block; }

  .site-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .site-nav.open { max-height: 100vh; }

  .nav-list {
    flex-direction: column;
    padding: 8px 16px 16px;
  }
  .nav-list a { padding: 12px 16px; }

  .hero { min-height: 60vh; }
  .hero-title { font-size: 2.5rem; }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.4rem; margin-bottom: 32px; }

  .guest-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .guest-image { width: 140px; }

  .timetable-item { gap: 16px; }
  .timetable-time { width: 64px; font-size: 1rem; }

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