/* =========================================================
   Design Tokens — Apple-inspired
   ========================================================= */
:root {
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-elevated: #fbfbfd;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --border: #d2d2d7;
  --border-soft: #e8e8ed;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.08);
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-mono: 'Fira Code', 'SF Mono', Menlo, monospace;
  --easing: cubic-bezier(0.42, 0, 0.58, 1);
  --easing-out: cubic-bezier(0.16, 1, 0.3, 1);
  --notice-h: 0px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* =========================================================
   Notice banner
   ========================================================= */
.notice-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1100;
  padding: 10px 22px;
  font-size: 13px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.notice-banner a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
body.has-notice { --notice-h: 40px; }

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: fixed;
  top: var(--notice-h);
  left: 0;
  right: 0;
  height: 48px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 1000;
  transition: background 0.3s var(--easing), top 0.3s var(--easing);
}
.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  z-index: 1002;
}
.nav-logo .dot { color: var(--text-tertiary); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 1003;
  position: relative;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-toggle.active span {
  background: var(--text);
}
.nav-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 12px;
  font-weight: 400;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    transform: translateY(-100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    overflow: hidden;
  }
  
  .nav-links.active {
    transform: translateY(0);
  }
  
  .nav-links li {
    width: 100%;
    text-align: center;
  }
  
  .nav-links a {
    display: block;
    padding: 0;
    font-size: clamp(20px, 6vw, 28px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: calc(100vh / 6);
  }
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  min-height: calc(100vh - var(--notice-h));
  padding-top: calc(120px + var(--notice-h));
  padding-bottom: 80px;
  padding-left: 22px;
  padding-right: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
}
.hero-content { max-width: 880px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s var(--easing-out) 0.1s forwards;
}
.hero h1 {
  font-size: clamp(48px, 9vw, 96px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 1s var(--easing-out) 0.3s forwards;
}
.hero h1 .gradient {
  background: linear-gradient(120deg, #1d1d1f 0%, #6e6e73 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: clamp(20px, 2.4vw, 28px);
  color: var(--text-secondary);
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 1s var(--easing-out) 0.5s forwards;
}
.hero-meta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: fadeUp 1s var(--easing-out) 0.7s forwards;
}
.hero-meta .chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 980px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  border: 1px solid var(--border-soft);
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   Sections
   ========================================================= */
section { padding: 120px 22px; }
.section-inner { max-width: 980px; margin: 0 auto; padding: 0 22px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--easing-out), transform 0.9s var(--easing-out);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* =========================================================
   About
   ========================================================= */
.about { background: var(--bg-soft); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}
.about-text h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.about-text p {
  font-size: 19px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}
.about-code {
  background: #1d1d1f;
  border-radius: 18px;
  padding: 28px;
  box-shadow: var(--shadow-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
  color: #f5f5f7;
  overflow-x: auto;
}
.about-code .c-key { color: #ff79c6; }
.about-code .c-str { color: #50fa7b; }
.about-code .c-com { color: #6e6e73; }
.about-code .c-num { color: #bd93f9; }

/* =========================================================
   Carousel (Favorites)
   ========================================================= */
.carousel-wrap {
  position: relative;
  margin: 0 -22px;
  padding: 20px 0 60px;
}
.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 20px max(22px, calc((100vw - 1200px) / 2 + 22px)) 40px;
  scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }

.card {
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: center;
  border-radius: 18px;
  padding: 20px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-soft);
  transition: transform 0.5s var(--easing-out), box-shadow 0.5s var(--easing-out);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  background: var(--bg-elevated);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.card-icon { display: none; }
.card-group {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.3;
}
.card-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
}
.card-cta {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  margin-top: 6px;
}
.card-cta::after {
  content: ' →';
  transition: transform 0.3s;
  display: inline-block;
}
.card:hover .card-cta::after { transform: translateX(3px); }

.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s, transform 0.2s;
}
.carousel-btn:hover { background: var(--border-soft); transform: scale(1.05); }
.carousel-btn:active { transform: scale(0.95); }

/* グループラベル（モーダル内） */
.member-group-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0 6px;
  border-top: 1px solid var(--border-soft);
  margin-top: 8px;
}
.member-group-label:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* =========================================================
   Modal (member list)
   ========================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--easing-out);
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.modal {
  background: var(--bg);
  border-radius: 22px;
  padding: 40px 32px;
  max-width: 480px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(20px);
  transition: transform 0.4s var(--easing-out);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--bg-soft);
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.modal-close:hover { background: var(--border-soft); }
.modal-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.modal-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
}
.member-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  list-style: none;
}
.member-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  transition: background 0.2s;
}
.member-item:hover { background: var(--bg-soft); }
.member-avatar {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
}
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-name {
  flex: 1;
  font-size: 15px;
  font-weight: 500;
}
.member-sns {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.member-sns a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s;
}
.member-sns a:hover { background: var(--text); color: var(--bg); transform: scale(1.05); }
.member-sns svg { width: 14px; height: 14px; }

/* =========================================================
   Lives
   ========================================================= */
.lives { background: var(--bg-soft); }
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
  align-items: center;
}
.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}
.filter-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-right: 4px;
}
.filter-btn {
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 980px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.25s var(--easing);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--text); }
.filter-btn.active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

.live-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
}
.live-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 24px 28px;
  background: var(--bg);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  transition: all 0.4s var(--easing-out);
  animation: liveFadeIn 0.5s var(--easing-out) backwards;
}
@keyframes liveFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.live-item:hover {
  border-color: var(--border);
  transform: translateX(4px);
}
.live-date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.5;
}
.live-date .session-tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  margin-left: 4px;
  font-family: var(--font-sans);
  font-weight: 500;
}
.live-main h3 {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}
.live-venue {
  font-size: 13px;
  color: var(--text-secondary);
}
.live-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: 200px;
}
.live-tag {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 980px;
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .live-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }
  .live-item:hover { transform: none; }
  .live-tags { justify-content: flex-start; max-width: none; }
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-tertiary);
  font-size: 15px;
}

.see-more {
  text-align: center;
  margin-top: 48px;
}
.see-more a {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 980px;
  background: var(--text);
  color: var(--bg);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.25s var(--easing);
}
.see-more a:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* =========================================================
   Hero Banner (Apple iPad-air style — optional, CMS controlled)
   ========================================================= */
/* Hero Banner（新クラス .hb は hero-banner.php 内にインラインで定義） */
.hb {
  margin-top: 0 !important;
}
/* 旧スタイル（使用しないが念のため残す） */
.hero-banner { display: none; }

.hero-banner-image {
  margin-top: 20px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.hero-banner-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* When banner is shown, the inline hero section after it should not occupy 100vh */
.hero-banner + .hero {
  min-height: auto;
  padding-top: 80px;
  padding-bottom: 80px;
}

/* =========================================================
   Footer
   ========================================================= */
footer {
  background: var(--bg);
  padding: 60px 22px 40px;
  border-top: 1px solid var(--border-soft);
}
.footer-inner {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.footer-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.footer-copy {
  font-size: 12px;
  color: var(--text-tertiary);
}
.footer-links {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-bottom: 24px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text); }