/* =============================================
   電DE電 - Main Stylesheet
   ============================================= */

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

:root {
  --bg: #fff5e1;
  --bg-alt: #fde8c8;
  --bg-card: #ffffff;
  --accent: #e63116;
  --accent-dim: rgba(230, 49, 22, 0.1);
  --accent-glow: 0 0 24px rgba(230, 49, 22, 0.35);
  --text: #000000;
  --text-muted: #555555;
  --border: rgba(0, 0, 0, 0.1);
  --nav-h: 64px;
  --radius: 12px;
  --font-body: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  overflow-x: hidden;
}

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

a:hover { opacity: 0.75; }

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

/* --- Typography --- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }

.section-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 5vw, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}

.section-title span {
  color: inherit;
}

/* --- Layout --- */
.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

section:nth-child(even) {
  background: var(--bg-alt);
}

/* =============================================
   Navigation
   ============================================= */
#nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  padding: 0 24px;
  transition: background 0.4s, backdrop-filter 0.4s, border-bottom 0.4s;
}

#nav.scrolled {
  background: rgba(255, 245, 225, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* FV上では白、スクロール後はブランドカラー */
.nav-logo {
  display: flex;
  align-items: center;
  line-height: 1;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.footer-logo-img {
  height: 64px;
  width: auto;
  display: block;
}

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

.nav-links a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}

#nav.scrolled .nav-links a { color: var(--text-muted); }

.nav-links a:hover { color: var(--accent); opacity: 1; }

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 6px;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.05em;
  transition: box-shadow 0.2s !important;
  opacity: 1 !important;
}

.nav-cta:hover {
  box-shadow: var(--accent-glow);
  opacity: 1 !important;
}

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

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s, background 0.4s;
}

#nav.scrolled .nav-burger span { background: var(--text); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(255, 245, 225, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}

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

.nav-mobile a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.nav-mobile a:last-child { border-bottom: none; }

/* =============================================
   First View
   ============================================= */
#fv {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 0;
}

/* Photo slideshow */
.fv-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.fv-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease-in-out;
}

.fv-slide.active { opacity: 1; }

/* Dark overlay */
.fv-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.45) 0%,
    rgba(0, 0, 0, 0.38) 50%,
    rgba(0, 0, 0, 0.65) 100%
  );
  z-index: 1;
}

/* FV content */
.fv-content {
  position: relative;
  z-index: 2;
  padding: 0 24px;
  max-width: 880px;
}

.fv-tagline-wrap {
  /* 最長フレーズが2行になった場合でも収まる高さ（3.6rem × 1.3 × 2 ≈ 9.4rem）*/
  height: 12rem;
  position: relative;
  margin-bottom: 32px;
}

.fv-tagline {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  font-size: clamp(1.8rem, 4.5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: #fff;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  white-space: normal;
}

.fv-tagline.active { opacity: 1; }

@media (max-width: 600px) {
  .fv-tagline { font-size: clamp(1.5rem, 6.5vw, 2.2rem); }
  .fv-tagline-wrap { height: 8rem; }
}

.fv-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  margin-bottom: 48px;
}

.fv-cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 8px;
  transition: box-shadow 0.25s, transform 0.2s;
}

.btn-primary:hover {
  box-shadow: var(--accent-glow);
  transform: translateY(-2px);
  opacity: 1;
  color: #fff;
}

.btn-outline {
  display: inline-block;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  padding: 14px 28px;
  border-radius: 8px;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--accent-glow);
  transform: translateY(-2px);
  opacity: 1;
}

/* Scroll indicator */
.fv-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
}

.fv-scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollLine 1.8s ease-in-out infinite;
}

@keyframes scrollLine {
  0%, 100% { opacity: 0; transform: scaleY(0); transform-origin: top; }
  50% { opacity: 1; transform: scaleY(1); transform-origin: top; }
}

/* =============================================
   About Section
   ============================================= */
#about {
  background: var(--bg);
}

.about-philosophy {
  max-width: 720px;
  margin: 0 auto 64px;
  padding: 40px 40px;
  border-left: 3px solid var(--accent);
  background: var(--bg-card);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.about-philosophy p + p { margin-top: 1.25em; }

.about-philosophy strong {
  color: var(--text);
  font-size: 1.05rem;
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 56px;
}

.concept-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.concept-card:hover {
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.concept-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.concept-card h3 {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.about-body {
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.about-body p + p { margin-top: 1.25em; }

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.about-images img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
  filter: brightness(0.85);
  transition: filter 0.3s;
}

.about-images img:hover { filter: brightness(1); }

/* =============================================
   Plus Section
   ============================================= */
#plus {
  background: var(--bg-alt);
}

.plus-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.plus-position {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.plus-concept {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 32px;
  border: 1px solid var(--border);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.plus-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
  max-width: 720px;
}

.plus-body p + p { margin-top: 1.25em; }

.plus-highlight {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

/* =============================================
   Members Section
   ============================================= */
#members {
  background: var(--bg);
}

.member-group {
  margin-bottom: 56px;
}

.member-group:last-child { margin-bottom: 0; }

.group-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.group-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 14px;
  background: var(--accent);
  border-radius: 2px;
}

.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.member-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.member-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(230, 49, 22, 0.12);
  opacity: 1;
}

.member-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 2px solid var(--border);
  transition: border-color 0.3s;
}

.member-card:hover .member-avatar { border-color: var(--accent); }

.member-avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 2rem;
  border: 2px solid var(--border);
}

.member-name {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text);
}

.member-role {
  font-size: 0.72rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.member-handle {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-family: 'SF Mono', 'Fira Mono', monospace;
}

.member-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 100px;
  transition: color 0.2s, border-color 0.2s;
}

.member-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  opacity: 1;
}

.member-link svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* =============================================
   Calendar Section
   ============================================= */
#calendar {
  background: var(--bg-alt);
}

.calendar-wrap {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.calendar-placeholder {
  padding: 64px 32px;
  text-align: center;
  color: var(--text-muted);
}

.calendar-placeholder p {
  font-size: 0.9rem;
  line-height: 1.8;
}

.calendar-iframe-container {
  position: relative;
  width: 100%;
}

.calendar-iframe-container iframe {
  width: 100%;
  border: none;
  display: block;
}

/* =============================================
   Past Events Section
   ============================================= */
#past-events {
  background: var(--bg);
}

.past-events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.past-event-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.25s, box-shadow 0.3s;
}

.past-event-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(230, 49, 22, 0.12);
  opacity: 1;
}

.past-event-vol {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}

.past-event-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}

.past-event-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.past-event-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.03em;
}

@media (max-width: 640px) {
  .past-events-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* =============================================
   Contact Section
   ============================================= */
#contact {
  background: var(--bg);
  text-align: center;
}

.contact-body {
  max-width: 560px;
  margin: 0 auto 40px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.9;
}

.contact-types {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 40px;
}

.contact-type {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.btn-primary-large {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
  padding: 18px 40px;
  border-radius: 10px;
  transition: box-shadow 0.25s, transform 0.2s;
}

.btn-primary-large:hover {
  box-shadow: var(--accent-glow);
  transform: translateY(-2px);
  opacity: 1;
  color: #fff;
}

/* =============================================
   Footer
   ============================================= */
footer {
  background: #2a1a0a;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
  padding: 56px 0 32px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.footer-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.footer-brand {
  flex: 1;
  min-width: 220px;
}

.footer-logo {
  font-size: 1.4rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  color: #f0e8d8;
}

.footer-desc {
  font-size: 0.8rem;
  color: #a89880;
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  color: #a89880;
  transition: border-color 0.2s, color 0.2s;
}

.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  opacity: 1;
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: #a89880;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: #f0e8d8;
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.75rem;
  color: #6e5a48;
}

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

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

.fade-in-delay-1 { transition-delay: 0.1s; }
.fade-in-delay-2 { transition-delay: 0.2s; }
.fade-in-delay-3 { transition-delay: 0.3s; }

/* =============================================
   Utility
   ============================================= */
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-48 { margin-top: 48px; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 768px) {
  section { padding: 72px 0; }

  .nav-links { display: none; }
  .nav-burger { display: flex; }

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

  .about-images { grid-template-columns: 1fr; }
  .about-images img { height: 220px; }

  .about-philosophy { padding: 28px 20px; }

  .members-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
  }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }

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

@media (max-width: 480px) {
  .members-grid {
    grid-template-columns: 1fr 1fr;
  }

  .fv-cta-group { flex-direction: column; align-items: center; }

  .contact-types {
    grid-template-columns: 1fr 1fr;
  }
}
