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

:root {
  --color-primary: #29B5E8;
  --color-primary-dark: #1a8ab8;
  --color-primary-light: #56c8f0;
  --color-bg-dark: #0a1628;
  --color-bg-section: #0f1f38;
  --color-bg-card: #162a4a;
  --color-text: #e8edf5;
  --color-text-muted: #9babc0;
  --color-accent: #4fd1c5;
  --color-white: #ffffff;
  --font-ja: 'Noto Sans JP', sans-serif;
  --font-en: 'Inter', sans-serif;
  --max-width: 1100px;
  --nav-height: 64px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-ja);
  background: var(--color-bg-dark);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--color-primary-light);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--color-white);
}

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

/* ===== Container ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(41, 181, 232, 0.1);
  transition: background 0.3s;
}

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

.nav-logo {
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.nav-logo:hover {
  color: var(--color-primary);
}

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

.nav-links a {
  font-family: var(--font-en);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--color-white);
}

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

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(41, 181, 232, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 80%, rgba(79, 209, 197, 0.1) 0%, transparent 50%),
    var(--color-bg-dark);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 0 24px;
}

.hero-title {
  font-family: var(--font-en);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-white);
  margin-bottom: 24px;
}

.hero-title-sub {
  display: block;
  font-size: 0.4em;
  font-weight: 500;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 40px;
  line-height: 1.9;
}

.hero-cta {
  display: inline-block;
  padding: 14px 36px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ===== Section ===== */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--color-bg-section);
}

.section-title {
  font-family: var(--font-en);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}

/* ===== About ===== */
.about-content {
  margin-top: 48px;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.9;
}

.about-text p {
  margin-bottom: 20px;
  color: var(--color-text-muted);
}

.about-points {
  list-style: none;
  margin-top: 24px;
}

.about-points li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--color-text);
}

.about-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* ===== Events ===== */
.event-upcoming {
  background: var(--color-bg-card);
  border: 1px solid rgba(41, 181, 232, 0.2);
  border-radius: 16px;
  padding: 48px;
  margin-bottom: 64px;
  position: relative;
  overflow: hidden;
}

.event-upcoming::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.event-badge {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(41, 181, 232, 0.15);
  color: var(--color-primary);
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  margin-bottom: 16px;
}

.event-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 12px;
}

.event-date {
  color: var(--color-primary-light);
  font-weight: 500;
  margin-bottom: 4px;
}

.event-venue {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.event-description {
  color: var(--color-text-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}

.event-program h4 {
  font-size: 1rem;
  color: var(--color-white);
  margin-bottom: 16px;
  font-weight: 600;
}

.program-tbd {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
}

.program-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.program-item {
  display: flex;
  gap: 16px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  border-left: 3px solid var(--color-primary);
}

.program-time {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--color-primary-light);
  white-space: nowrap;
  min-width: 100px;
  font-weight: 500;
}

.program-detail {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.program-name {
  font-size: 0.9rem;
  color: var(--color-text);
  font-weight: 500;
}

.program-speaker {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.event-link {
  display: inline-block;
  padding: 12px 28px;
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 8px;
  transition: background 0.2s, transform 0.2s;
}

.event-link:hover {
  background: var(--color-primary-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* Event History */
.event-history-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 24px;
}

.event-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.event-card {
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 28px;
  transition: transform 0.2s, border-color 0.2s;
}

.event-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 181, 232, 0.3);
}

.event-card-badge {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(79, 209, 197, 0.15);
  color: var(--color-accent);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 12px;
  margin-bottom: 8px;
}

.event-card-date {
  font-family: var(--font-en);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.event-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 12px;
  line-height: 1.5;
}

.event-card-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.event-card-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}

.event-card-link:hover {
  color: var(--color-white);
}

/* ===== Members ===== */
.members-carousel {
  overflow: hidden;
  width: 100%;
  padding: 40px 0;
}

.members-track {
  display: flex;
  gap: 24px;
  animation: carousel-scroll 30s linear infinite;
  width: max-content;
}

.members-track:hover {
  animation-play-state: paused;
}

@keyframes carousel-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.member-card {
  text-align: center;
  padding: 32px 20px;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
  min-width: 200px;
  flex-shrink: 0;
}

.member-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 181, 232, 0.3);
}

.member-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-family: var(--font-en);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--color-white);
}

.member-avatar-img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
}

.member-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 4px;
}

.member-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ===== Links ===== */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.link-card {
  display: block;
  padding: 32px;
  background: var(--color-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: transform 0.2s, border-color 0.2s;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(41, 181, 232, 0.3);
}

.link-card-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.link-card-title {
  font-family: var(--font-en);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 8px;
}

.link-card-text {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-en);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

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

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(10, 22, 40, 0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .hero-title {
    font-size: clamp(2rem, 10vw, 3.5rem);
  }

  .hero-description br {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .event-upcoming {
    padding: 28px 20px;
  }

  .program-item {
    flex-direction: column;
    gap: 4px;
  }

  .program-time {
    min-width: auto;
  }

  .event-history-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
