/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   隠神村 — style.css
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

:root {
  --red:       #C0392B;
  --red-dark:  #8B1A14;
  --red-light: #E74C3C;
  --gold:      #C9A84C;
  --ink:       #1A1008;
  --charcoal:  #2B2218;
  --ash:       #4A3F35;
  --paper:     #F5F0E8;
  --cream:     #FBF8F2;
  --muted:     #8C7B6B;
  --border:    #D4C8B0;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--cream);
  color: var(--ink);
  overflow-x: hidden;
}

/* ─── NAVIGATION ─────────────────────────────────────────── */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,16,8,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 2px solid var(--red);
  display: flex; justify-content: center; align-items: center;
  gap: clamp(16px, 4vw, 48px);
  padding: 0 20px;
  height: 52px;
}
nav a {
  color: var(--paper);
  text-decoration: none;
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  letter-spacing: .12em;
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width .3s;
}
nav a:hover { color: var(--gold); }
nav a:hover::after { width: 100%; }

/* ─── HERO ───────────────────────────────────────────────── */
.hero {
  position: relative;
  height: min(60vh, 460px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('images/hero.png') center/cover no-repeat;
  filter: brightness(.55) saturate(.9);
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(10,6,2,.65) 100%);
}
.hero-text {
  position: relative; z-index: 1;
  text-align: center;
}
.hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(36px, 7vw, 62px);
  font-weight: 700;
  color: #fff;
  letter-spacing: .12em;
  line-height: 1.15;
}
.hero-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(12px, 1.8vw, 15px);
  color: rgba(255,255,255,.6);
  letter-spacing: .35em;
  margin-top: 12px;
  font-weight: 300;
}
/* ─── SECTION COMMON ─────────────────────────────────────── */
.section { padding: 60px 20px; max-width: 860px; margin: 0 auto; }

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  color: var(--red-dark);
  letter-spacing: .1em;
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 32px;
}
.section-title::after {
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, transparent 100%);
}

/* ─── SOCIAL ICONS ───────────────────────────────────────── */
.social-bar {
  display: flex; justify-content: center; gap: 40px;
  padding: 48px 20px 40px;
}
.social-link {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-decoration: none; color: var(--ash);
  font-size: 12px; letter-spacing: .08em;
  transition: transform .2s, color .2s;
}
.social-link:hover { transform: translateY(-4px); color: var(--red); }
.social-icon {
  width: 64px; height: 64px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
  transition: box-shadow .2s;
}
.social-icon.x-icon {
  background: #000;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
}
.social-icon.yt-icon {
  background: #FF0000;
  box-shadow: 0 4px 16px rgba(255,0,0,.3);
}
.social-link:hover .social-icon {
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
}

/* ─── NEWS ───────────────────────────────────────────────── */
.news-list { list-style: none; }
.news-list li {
  border-bottom: 1px solid var(--border);
}
.news-list li:first-child { border-top: 1px solid var(--border); }
.news-list a {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 8px;
  text-decoration: none; color: var(--ink);
  transition: background .15s, padding-left .15s;
}
.news-list a:hover {
  background: rgba(192,57,43,.05);
  padding-left: 16px;
}
.news-date {
  font-size: 12px; color: var(--muted);
  white-space: nowrap;
  min-width: 88px;
}
.news-tag {
  font-size: 11px; padding: 2px 8px;
  border: 1px solid var(--red);
  color: var(--red);
  border-radius: 2px;
  white-space: nowrap;
}
.news-title-text {
  font-size: 14px; flex: 1;
}
.news-arrow {
  color: var(--muted); font-size: 18px;
  margin-left: auto;
  transition: transform .2s;
}
.news-list a:hover .news-arrow { transform: translateX(4px); color: var(--red); }
.news-more {
  display: block; text-align: right;
  margin-top: 12px;
  font-size: 13px; color: var(--muted);
  text-decoration: none;
  letter-spacing: .05em;
  transition: color .2s;
}
.news-more:hover { color: var(--red); }

/* ─── OVERVIEW PILLS ─────────────────────────────────────── */
.pills {
  display: flex; flex-wrap: wrap; gap: 20px;
  justify-content: center;
  margin-bottom: 0;
}
.pill {
  background: #fff;
  border: 2px solid var(--red);
  border-radius: 50%;
  width: 150px; height: 150px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 14px; line-height: 1.6;
  color: var(--ink);
  padding: 16px;
  box-shadow: 0 4px 16px rgba(192,57,43,.1);
  transition: transform .2s, box-shadow .2s;
}
.pill:hover {
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 10px 28px rgba(192,57,43,.2);
}
.pill strong { color: var(--red-dark); font-size: 15px; }

/* ─── SLIDESHOW ──────────────────────────────────────────── */
.slideshow {
  position: relative;
  aspect-ratio: 16/9;
  max-height: 480px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--charcoal);
  cursor: pointer;
}
.slideshow-track {
  display: flex;
  height: 100%;
  transition: transform .6s cubic-bezier(.4,0,.2,1);
}
.slideshow-slide {
  flex-shrink: 0;
  width: 100%;
  height: 100%;
  position: relative;
}
.slideshow-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow-slide::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,16,8,.55) 0%, transparent 45%);
  pointer-events: none;
}
/* prev / next buttons */
.slideshow-btn {
  position: absolute; top: 50%; z-index: 10;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(26,16,8,.55);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  font-size: 20px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
}
.slideshow-btn:hover {
  background: var(--red-dark);
  transform: translateY(-50%) scale(1.08);
}
.slideshow-btn.prev { left: 14px; }
.slideshow-btn.next { right: 14px; }
/* dots */
.slideshow-dots {
  position: absolute; bottom: 14px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 8px;
  z-index: 10;
}
.slideshow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  border: none; cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}
.slideshow-dot.active {
  background: var(--gold);
  transform: scale(1.3);
}
/* caption */
.slideshow-caption {
  position: absolute; bottom: 36px; left: 20px; right: 20px;
  z-index: 10;
  font-family: 'Noto Serif JP', serif;
  font-size: 13px;
  color: rgba(255,255,255,.75);
  letter-spacing: .06em;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
  text-align: center;
  pointer-events: none;
}
/* counter */
.slideshow-counter {
  position: absolute; top: 14px; right: 16px;
  z-index: 10;
  font-size: 11px;
  color: rgba(255,255,255,.55);
  letter-spacing: .08em;
  pointer-events: none;
}
/* thumbnail strip */
.slideshow-thumbs {
  display: flex; gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.slideshow-thumb {
  flex-shrink: 0;
  width: 80px; height: 52px;
  border-radius: 3px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color .2s, opacity .2s;
  opacity: .55;
}
.slideshow-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.slideshow-thumb.active {
  border-color: var(--gold);
  opacity: 1;
}

/* ─── MEMBER GRID ────────────────────────────────────────── */
.role-section { margin-bottom: 48px; }
.role-label {
  text-align: center;
  font-family: 'Noto Serif JP', serif;
  font-size: 18px; font-weight: 700;
  color: var(--red-dark);
  letter-spacing: .15em;
  margin-bottom: 20px;
}
.member-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.member-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 20px;
  transition: box-shadow .2s, transform .2s;
}
.member-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.member-header {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.member-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
  background: var(--border);
}
.member-name {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px; font-weight: 700;
}
.member-role-tag {
  font-size: 11px; color: var(--muted);
  margin-top: 2px;
}
.member-desc {
  font-size: 12px; line-height: 1.8;
  color: var(--ash);
  margin-bottom: 12px;
}
.member-links {
  display: flex; gap: 8px;
}
.member-link {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 12px;
  text-decoration: none;
  color: var(--ash);
  transition: background .15s, border-color .15s, color .15s;
}
.member-link:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.member-link.yt:hover { background: #FF0000; border-color: #FF0000; color: #fff; }

/* ─── LIGHTBOX ───────────────────────────────────────────── */
.lightbox {
  display: none;
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.88);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 85vh;
  border-radius: 4px;
  box-shadow: 0 0 60px rgba(0,0,0,.6);
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 36px; color: #fff; cursor: pointer;
  line-height: 1;
  background: none; border: none;
}

/* ─── FOOTER ─────────────────────────────────────────────── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,.4);
  text-align: center;
  padding: 24px 20px;
  font-size: 12px;
  letter-spacing: .1em;
  border-top: 3px solid var(--red-dark);
}

/* ─── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 600px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .member-grid { grid-template-columns: 1fr; }
  nav { gap: 12px; font-size: 11px; }
}
