/* ============================================================
   COUNTRY Guild Homepage — style.css
   Color Palette:
     Primary Blue  : #345DB0
     Pink Accent   : #E391B1
     Soft Rose     : #E8D7DD
     White         : #FFFFFF
   ============================================================ */

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

:root {
  --blue:      #345DB0;
  --blue-dark: #1e3a72;
  --blue-mid:  #2a4d96;
  --pink:      #E391B1;
  --rose:      #E8D7DD;
  --white:     #FFFFFF;
  --text-dark: #1a1a2e;
  --text-mid:  #2d3561;
  --text-soft: #5a6490;

  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body:    'Noto Serif JP', serif;
  --font-jp:      'Shippori Mincho', serif;

  --shadow-blue: 0 0 30px rgba(52, 93, 176, 0.4);
  --shadow-pink: 0 0 20px rgba(227, 145, 177, 0.35);
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

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

/* ── Hero Canvas (full-page background) ───────────────────── */
#hero-canvas {
  display: none; /* handled by section bg */
}

/* ── Navigation ───────────────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}
#navbar.scrolled {
  background: rgba(45, 15, 35, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(227, 145, 177, 0.3);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(227, 145, 177, 0.7);
  flex-shrink: 0;
}
.logo-crest {
  color: var(--pink);
  font-size: 0.75rem;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}
.nav-links a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  letter-spacing: 0.08em;
  padding: 0.3rem 0;
  position: relative;
  transition: color var(--transition);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--pink);
  transition: width var(--transition);
}
.nav-links a:hover { color: var(--pink); }
.nav-links a:hover::after { width: 100%; }

.nav-toggle {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  background: rgba(20, 30, 70, 0.98);
  padding: 1rem 2rem 1.5rem;
}
.nav-mobile.open { display: block; }
.nav-mobile ul { list-style: none; }
.nav-mobile ul li { border-bottom: 1px solid rgba(255,255,255,0.08); }
.nav-mobile ul li a {
  display: block;
  padding: 0.85rem 0;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}
.nav-mobile ul li a:hover { color: var(--pink); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border-radius: 2px;
  padding: 0.8rem 2rem;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: linear-gradient(135deg, #d4619a 0%, var(--pink) 60%, #e8a0c0 100%);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(227, 145, 177, 0.55);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #e070aa 0%, #eca0c5 100%);
  box-shadow: 0 6px 30px rgba(227, 145, 177, 0.75);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.45);
}
.btn-secondary:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: rgba(227, 145, 177, 0.1);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--pink);
  border: 1px solid var(--pink);
}
.btn-ghost:hover {
  background: var(--pink);
  color: var(--white);
}
.btn-large {
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
}

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    160deg,
    #1a0820 0%,
    #2a1040 20%,
    #1e1650 50%,
    #2d0d38 75%,
    #140820 100%
  );
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 55% at 75% 35%, rgba(227, 145, 177, 0.2) 0%, transparent 65%),
    radial-gradient(ellipse 45% 55% at 20% 65%, rgba(52, 93, 176, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 35% 40% at 50% 80%, rgba(227, 145, 177, 0.1) 0%, transparent 55%);
  pointer-events: none;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  color: var(--pink);
  border: 1px solid rgba(227, 145, 177, 0.35);
  padding: 0.4rem 1.4rem;
  margin-bottom: 2rem;
  background: rgba(227, 145, 177, 0.06);
  animation: fadeSlideDown 0.8s ease both;
}

.hero-since {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.4);
  margin-top: -0.8rem;
  margin-bottom: 1.2rem;
  animation: fadeIn 1s ease 0.35s both;
}

.hero-title {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  animation: fadeSlideUp 1s ease 0.2s both;
}
.title-line {
  display: block;
  font-size: clamp(1rem, 3vw, 1.5rem);
  letter-spacing: 0.6em;
  color: rgba(255,255,255,0.45);
  font-weight: 400;
  margin-bottom: 0.4rem;
}
.title-main {
  display: block;
  font-size: clamp(3rem, 8.5vw, 6.5rem);
  letter-spacing: 0.12em;
  text-shadow:
    0 0 40px rgba(227, 145, 177, 0.7),
    0 0 80px rgba(227, 145, 177, 0.35),
    0 0 120px rgba(52, 93, 176, 0.25);
  background: linear-gradient(180deg, #ffffff 0%, #f5c8dd 50%, #e391b1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 1.5rem;
  animation: fadeIn 1s ease 0.5s both;
}
.divider-line {
  display: block;
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227, 145, 177, 0.6), transparent);
}
.divider-icon {
  color: var(--pink);
  font-size: 1.1rem;
  filter: drop-shadow(0 0 8px rgba(227, 145, 177, 0.7));
}

.hero-subtitle {
  font-family: var(--font-jp);
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  line-height: 2.2;
  margin-bottom: 2.5rem;
  animation: fadeIn 1s ease 0.6s both;
  font-weight: 400;
  position: relative;
  display: inline-block;
  padding: 0.4rem 0;
  color: rgba(255,255,255,0.92);
  text-shadow:
    0 0 18px rgba(227,145,177,0.55),
    0 0 40px rgba(227,145,177,0.2);
}

.hero-subtitle .channel-line {
  display: block;
  font-size: 0.78em;
  letter-spacing: 0.18em;
  color: rgba(227,145,177,0.75);
  margin-bottom: 0.4em;
  font-family: var(--font-heading);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeSlideUp 1s ease 0.8s both;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  animation: fadeIn 1.5s ease 1.5s both;
}
.scroll-arrow {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* ── Container ────────────────────────────────────────────── */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 2rem;
  position: relative;
  z-index: 2;
}

/* ── Section Shared ───────────────────────────────────────── */
section { position: relative; padding: 7rem 0; }

.section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4.5rem;
}
.section-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.4em;
  color: var(--pink);
  margin-bottom: 0.8rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--text-dark);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 1.2rem auto;
}
.section-divider span {
  display: block;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink));
}
.section-divider span:last-child {
  background: linear-gradient(90deg, var(--pink), transparent);
}
.diamond { color: var(--pink); font-size: 0.6rem; }
.section-desc {
  font-family: var(--font-jp);
  font-size: 0.95rem;
  color: var(--text-soft);
  margin-top: 0.8rem;
}

/* ── ABOUT ────────────────────────────────────────────────── */
.about-bg {
  background: linear-gradient(180deg, #fce8f2 0%, #fdf0f6 50%, var(--white) 100%);
}

/* Inverted section title for dark sections */
#activities .section-title,
#join .section-title {
  color: var(--white);
}
#activities .section-label,
#join .section-label { color: var(--pink); }
#activities .section-desc,
#join .section-desc { color: rgba(255,255,255,0.65); }
#activities .section-divider span,
#join .section-divider span { background: linear-gradient(90deg, transparent, var(--pink)); }
#activities .section-divider span:last-child,
#join .section-divider span:last-child { background: linear-gradient(90deg, var(--pink), transparent); }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
}
.about-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
#crest-canvas {
  border-radius: 50%;
  border: 2px solid rgba(227, 145, 177, 0.35);
  box-shadow:
    0 0 40px rgba(227, 145, 177, 0.25),
    0 0 80px rgba(52, 93, 176, 0.1);
}
.about-visual-glow {
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227, 145, 177, 0.12), transparent 70%);
  pointer-events: none;
  animation: glowPulse 3s ease-in-out infinite;
}

.about-lead {
  font-family: var(--font-jp);
  font-size: 1.15rem;
  font-weight: 600;
  color: #c0437a;
  margin-bottom: 1.2rem;
  line-height: 1.7;
}
.about-text p {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 1rem;
  line-height: 1.85;
}
.about-stats {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(227, 145, 177, 0.25);
}
.stat-item {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
  flex-direction: row;
  flex-wrap: wrap;
}
.stat-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--pink);
  line-height: 1;
}
.stat-unit {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--pink);
}
.stat-label {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-left: 0.3rem;
  align-self: flex-end;
}
.stat-divider {
  color: rgba(227, 145, 177, 0.3);
  font-size: 1.5rem;
}

/* ── ACTIVITIES ───────────────────────────────────────────── */
.activities-bg {
  background: linear-gradient(160deg, #1a0828 0%, #2a1040 35%, #1e1550 65%, #150825 100%);
}

.activities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

/* Row 2: 青戦(1/4) + 対人練習会(3/4) side by side */
.activities-grid .activity-card--wide {
  grid-column: 1 / 2;
  width: auto;
  margin: 0;
}
.activities-grid .activity-card:nth-child(5) {
  grid-column: 2 / 4;
  margin: 0;
}

/* simpler: use subgrid-like centering */
.activities-grid {
  grid-template-rows: auto auto;
}

.activity-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(227, 145, 177, 0.12);
  border-radius: 12px;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  opacity: 0;
  transform: translateY(24px);
}
.activity-card.visible {
  animation: cardReveal 0.6s ease forwards;
}
.activity-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(227, 145, 177, 0.3), 0 0 0 1px rgba(227, 145, 177, 0.35);
  border-color: rgba(227, 145, 177, 0.45);
}

.activity-canvas-wrap {
  width: 100%;
  height: 170px;
  overflow: hidden;
  position: relative;
}
.activity-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.activity-card-body {
  padding: 1.4rem 1.5rem 1.6rem;
}
.activity-icon {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
}
.activity-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.05em;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.activity-card p {
  font-family: var(--font-jp);
  font-size: 0.83rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.8;
  margin-bottom: 0.9rem;
}
.activity-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--pink);
  border: 1px solid rgba(227, 145, 177, 0.3);
  padding: 0.2rem 0.7rem;
  background: rgba(227, 145, 177, 0.06);
}

/* last-row centering trick */
.activities-grid {
  position: relative;
}

/* ── FEATURES ─────────────────────────────────────────────── */
.features-bg {
  background: linear-gradient(180deg, #fce0ee 0%, #f8ebf3 40%, #fdf4f8 70%, var(--white) 100%);
}
#features .section-title { color: #8a2050; }

.features-list {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  max-width: 860px;
  margin: 0 auto;
}
.feature-item {
  display: grid;
  grid-template-columns: 70px 120px 1fr;
  gap: 2.5rem;
  align-items: center;
  padding: 2rem 2.5rem;
  background: rgba(255,255,255,0.85);
  border: 1px solid rgba(227, 145, 177, 0.2);
  border-left: 4px solid var(--pink);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(227, 145, 177, 0.1);
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.feature-item.revealed {
  opacity: 1;
  transform: translateX(0);
}
.feature-item:hover {
  box-shadow: 0 8px 30px rgba(227, 145, 177, 0.22);
  border-left-color: #c0437a;
}

.feature-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: rgba(227, 145, 177, 0.35);
  line-height: 1;
  font-weight: 900;
}
.feature-canvas { border-radius: 50%; }

.feature-content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  color: #9a2a5a;
  margin-bottom: 0.6rem;
  letter-spacing: 0.04em;
}
.feature-content p {
  font-family: var(--font-jp);
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.85;
}

/* ── JOIN ─────────────────────────────────────────────────── */
.join-bg {
  background: linear-gradient(160deg, #1a0828 0%, #2d1045 40%, #1e1550 70%, #130820 100%);
}
#join-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.45;
}

.join-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.join-req-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--pink);
  letter-spacing: 0.12em;
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(227, 145, 177, 0.25);
}

.req-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.req-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  font-family: var(--font-jp);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.78);
  line-height: 1.6;
}
.req-icon {
  color: var(--pink);
  font-size: 0.65rem;
  margin-top: 0.4rem;
  flex-shrink: 0;
}

.join-note {
  margin-top: 1.8rem;
  padding: 0.8rem 1.2rem;
  background: rgba(227, 145, 177, 0.1);
  border-left: 2px solid var(--pink);
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.join-note span { color: var(--pink); }

.cta-box {
  position: relative;
  background: rgba(227, 145, 177, 0.07);
  border: 1px solid rgba(227, 145, 177, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: -50px; left: 50%;
  transform: translateX(-50%);
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(227, 145, 177, 0.25), transparent 70%);
  pointer-events: none;
}
.cta-box h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--pink);
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.cta-box p {
  font-family: var(--font-jp);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  align-items: center;
}
.cta-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0;
  color: rgba(255,255,255,0.3);
  font-family: var(--font-jp);
  font-size: 0.8rem;
}
.cta-divider span {
  flex: 1;
  height: 1px;
  background: rgba(227, 145, 177, 0.15);
}
.cta-ingame {
  font-family: var(--font-jp);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
}
.cta-ingame strong {
  color: var(--pink);
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
}

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #120818;
  padding: 4rem 0 2.5rem;
  position: relative;
}
.footer-top-deco {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--pink), #c0437a, var(--pink), transparent);
  margin-bottom: 0;
  position: absolute;
  top: 0; left: 0; right: 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--white);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(227, 145, 177, 0.4);
  margin-bottom: 0.4rem;
}
.footer-logo span { color: var(--pink); }
.footer-tagline {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em;
}

.footer-links {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-links a {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  letter-spacing: 0.08em;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--pink); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 1.5rem;
  text-align: center;
}
.footer-bottom p {
  font-family: var(--font-jp);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.8;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.06); }
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(1); opacity: 0.35; }
  50%       { transform: scaleY(0.7); opacity: 0.6; }
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { order: -1; }

  .activities-grid {
    grid-template-columns: 1fr 1fr;
  }
  .activities-grid .activity-card--wide { grid-column: auto; }
  .activities-grid .activity-card:nth-child(5) { grid-column: auto; }

  .feature-item {
    grid-template-columns: 50px 1fr;
    grid-template-rows: auto auto;
  }
  .feature-visual { display: none; }

  .join-content { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 600px) {
  section { padding: 5rem 0; }
  .activities-grid { grid-template-columns: 1fr; }
  .about-stats { flex-wrap: wrap; gap: 1.2rem; }
  .stat-divider { display: none; }
  .hero-buttons { flex-direction: column; align-items: center; }

  .feature-item {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
  .feature-number { font-size: 1.4rem; }

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

/* ── Nav active state ─────────────────────────────────────── */
.nav-active {
  color: var(--pink) !important;
}
.nav-active::after {
  width: 100% !important;
}

/* ── Gallery Preview Section ──────────────────────────────── */
#gallery-preview { padding: 7rem 0; }
.gallery-preview-bg {
  background: linear-gradient(180deg, #fff 0%, #fce8f4 40%, #f5e0ef 100%);
}
.gp-title { color: #8a2050; }
.gp-desc  { color: var(--text-soft); }

.gp-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 1.2rem;
  margin-bottom: 2.5rem;
}
.gp-side {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.gp-item {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid rgba(227,145,177,0.15);
  transition: box-shadow 0.3s, transform 0.3s;
}
.gp-item:hover {
  box-shadow: 0 10px 32px rgba(227,145,177,0.25);
  transform: translateY(-3px);
}
.gp-canvas { width: 100%; display: block; height: 300px; object-fit: cover; }
.gp-large .gp-canvas { height: 100%; min-height: 300px; }
.gp-side .gp-canvas { height: 160px; }

.gp-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,5,30,0.75) 0%, transparent 55%);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.2rem;
  opacity: 0;
  transition: opacity 0.3s;
}
.gp-item:hover .gp-overlay { opacity: 1; }
.gp-tag {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  color: var(--white);
  letter-spacing: 0.08em;
  background: rgba(227,145,177,0.2);
  border: 1px solid rgba(227,145,177,0.3);
  padding: 0.25rem 0.7rem;
  border-radius: 6px;
}
.gp-more-btn {
  text-align: center;
  padding-top: 0.5rem;
}

/* ── Schedule Teaser Section ──────────────────────────────── */
#schedule-teaser { padding: 7rem 0; }
.schedule-teaser-bg {
  background: linear-gradient(160deg, #1a0828 0%, #2d1045 40%, #1e1550 70%, #150825 100%);
}
#schedule-teaser .section-title { color: var(--white); }
#schedule-teaser .section-label { color: var(--pink); }
#schedule-teaser .section-desc  { color: rgba(255,255,255,0.6); }
#schedule-teaser .section-divider span { background: linear-gradient(90deg, transparent, var(--pink)); }
#schedule-teaser .section-divider span:last-child { background: linear-gradient(90deg, var(--pink), transparent); }

.st-cards {
  display: flex;
  gap: 1.2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.st-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(227,145,177,0.18);
  border-radius: 16px;
  padding: 1.6rem 1.4rem;
  text-align: center;
  min-width: 140px;
  flex: 1;
  max-width: 200px;
  opacity: 0;
  transform: translateY(20px);
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s;
}
.st-card.revealed { opacity: 1; transform: translateY(0); }
.st-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(227,145,177,0.2);
  border-color: rgba(227,145,177,0.4);
}
/* 拠点戦 — green */
.st-card--green { border-color: rgba(90,138,74,0.35); }
.st-card--green .st-day { color: #7ec86a; }
.st-card--green:hover { box-shadow: 0 8px 28px rgba(90,138,74,0.25); border-color: rgba(90,138,74,0.6); }
/* 青戦 — blue */
.st-card--blue { border-color: rgba(52,93,176,0.35); }
.st-card--blue .st-day { color: #7aadee; }
.st-card--blue:hover { box-shadow: 0 8px 28px rgba(52,93,176,0.25); border-color: rgba(52,93,176,0.6); }
/* PTコンテンツ — pink */
.st-card--pink { border-color: rgba(227,145,177,0.35); }
.st-card--pink .st-day { color: var(--pink); }
.st-day {
  font-family: var(--font-heading);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: var(--pink);
  margin-bottom: 0.7rem;
}
.st-icon { font-size: 1.8rem; margin-bottom: 0.5rem; }
.st-name {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  color: var(--white);
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}
.st-time {
  font-family: var(--font-jp);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}
.st-more-btn {
  text-align: center;
}
.st-btn {
  color: var(--pink) !important;
  border-color: rgba(227,145,177,0.4) !important;
}
.st-btn:hover {
  background: rgba(227,145,177,0.1) !important;
}

/* ── Activity card wide variant (青戦) ──────────────────── */
.activity-card--wide {
  grid-column: auto;
  width: 25%;
  margin: 0 auto;
}
.activity-card--wide .activity-canvas-wrap {
  height: 140px;
}
.activity-card--wide .activity-canvas {
  width: 100%;
  height: 140px;
}
.activity-card--wide .activity-card-body {
  display: flex;
  flex-direction: column;
}

@media (max-width: 900px) {
  .activity-card--wide {
    width: 50%;
  }
}
@media (max-width: 600px) {
  .activity-card--wide {
    width: 100%;
  }
}
.gp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* gp-item に高さを明示して画像が正しく表示されるよう修正 */
.gp-large {
  height: 420px;
}
.gp-side .gp-item {
  height: 195px;
}

.gp-canvas.gp-fallback {
  width: 100%;
  height: 100%;
  display: none; /* shown only when img src is empty/broken */
}
/* When no real image: show fallback canvas */
.gp-item:not(:has(img[src]:not([src=""]))) .gp-canvas.gp-fallback,
.gp-item .gp-canvas.gp-fallback[style*="flex"] {
  display: block;
}

@media (max-width: 800px) {
  .gp-large { height: 260px; }
  .gp-side .gp-item { height: 160px; }
}

@media (max-width: 900px) {
  .activity-card--wide {
    grid-template-columns: 1fr;
  }
  .activity-card--wide .activity-canvas-wrap {
    height: 180px;
  }
}
@media (max-width: 800px) {
  .gp-grid { grid-template-columns: 1fr; }
  .gp-large .gp-canvas { height: 220px; }
  .st-card { min-width: 110px; }
}

/* ── Guild logo image ─────────────────────────────────────── */
.nav-logo-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px rgba(227,145,177,0.6));
  flex-shrink: 0;
}

.guild-logo-wrap {
  position: relative;
  width: 280px;
  height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
}
.guild-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 24px rgba(227,145,177,0.55))
    drop-shadow(0 0 60px rgba(227,145,177,0.25));
  animation: logoFloat 4s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0);    filter: drop-shadow(0 0 24px rgba(227,145,177,0.55)) drop-shadow(0 0 60px rgba(227,145,177,0.25)); }
  50%       { transform: translateY(-10px); filter: drop-shadow(0 0 36px rgba(227,145,177,0.75)) drop-shadow(0 0 80px rgba(227,145,177,0.35)); }
}

/* ── ヒーロースクロールロック ──────────────────────────── */
body.hero-locked {
  overflow: hidden;
}

/* ── scroll-hint ボタン ── */
button.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: none;
  border: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 10;
  overflow: visible;
}
.scroll-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: #f9c8de;
  text-shadow: 0 0 10px rgba(227,145,177,0.9), 0 0 22px rgba(227,145,177,0.5);
}
.scroll-sakura {
  font-size: 1.4rem;
  animation: sakura-spin 6s linear infinite;
  display: block;
  line-height: 1;
}
@keyframes sakura-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.scroll-chevron-wrap {
  animation: chevron-bounce 1.6s ease-in-out infinite;
}
.scroll-chevron {
  display: block;
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid rgba(249,200,222,0.85);
  filter: drop-shadow(0 2px 4px rgba(227,145,177,0.7));
}
@keyframes chevron-bounce {
  0%, 100% { transform: translateY(0);   opacity: 0.7; }
  50%       { transform: translateY(6px); opacity: 1;   }
}
body.hero-locked button.hero-scroll-hint {
  animation: hint-bounce 1.8s ease-in-out infinite;
}
@keyframes hint-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ── スマホ横スクロール・はみ出し防止 ────────────────────── */
html {
  overflow-x: hidden;
}
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  * {
    max-width: 100%;
    box-sizing: border-box;
  }
  canvas {
    max-width: 100% !important;
  }
  .about-highlight {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1.2rem 1rem !important;
    overflow: hidden;
  }
  .about-highlight ul {
    align-items: flex-start !important;
    text-align: left;
  }
  .about-highlight li {
    white-space: normal !important;
    word-break: break-word;
    text-align: left;
  }
  /* ヒーローセクション */
  #hero-canvas {
    max-width: 100vw !important;
  }
  /* アクティビティカード */
  .activity-canvas {
    width: 100% !important;
    height: auto !important;
  }
  /* 冒険の記録 */
  .gp-grid {
    overflow: hidden;
  }
}
