/* =====================================================
   common.css - BELLROD共通スタイル
===================================================== */

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

:root {
  --violet: #8B3FE8;
  --cyan:   #00E5FF;
  --bg:     #0d0d10;
  --grid-color: rgba(255,255,255,0.06);
  --grid-size: 60px;
}

html, body { width: 100%; overflow-x: hidden; }

body {
  font-family: 'Space Grotesk', 'Yu Gothic', sans-serif;
  background: var(--bg);
  color: #fff;
  position: relative;
}

/* ── CANVAS ── */
#bg-canvas {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}

/* ── GRID ── */
.grid-overlay {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: var(--grid-size) var(--grid-size);
}

/* ── DECO ── */
.deco-layer {
  position: fixed; inset: 0;
  z-index: 2; pointer-events: none; overflow: hidden;
}

.vert-label {
  position: absolute; writing-mode: vertical-rl;
  font-family: 'Space Mono', monospace;
  font-size: 9px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

/* ── HEADER ── */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: flex-end; align-items: center;
  padding: 24px 50px;
}

nav { display: flex; gap: 40px; align-items: center; }

nav a {
  font-family: 'Space Mono', monospace;
  font-size: 0.7rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.65); text-decoration: none;
  position: relative; transition: color 0.3s;
}

nav a::after {
  content: ''; position: absolute; bottom: -4px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.3s;
}

nav a:hover { color: #fff; }
nav a:hover::after { width: 100%; }
nav a.active { color: var(--cyan); }

/* ── HERO SITE LABEL ── */
.hero-site-label {
  position: absolute; top: 32px; left: 50px;
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; letter-spacing: 5px;
  color: rgba(139,63,232,0.7); text-transform: uppercase;
  line-height: 2.2; z-index: 10;
  text-align: left;
}

/* ── FOOTER ── */
footer {
  position: relative; z-index: 10;
  padding: 60px 8vw 40px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-logo img { height: 72px; filter: drop-shadow(0 0 20px rgba(139,63,232,0.5)); }

.footer-sns { display: flex; gap: 16px; align-items: center; }

.footer-sns a {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(139,63,232,0.3);
  color: rgba(255,255,255,0.45); text-decoration: none;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.footer-sns a:hover { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 12px rgba(0,229,255,0.25); }
.footer-sns svg { width: 16px; height: 16px; fill: currentColor; }

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

.footer-links a {
  font-family: 'Space Mono', monospace;
  font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.35); text-decoration: none; transition: color 0.3s;
}

.footer-links a:hover { color: var(--cyan); }

.copyright {
  text-align: center; margin-top: 40px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-family: 'Space Mono', monospace;
  font-size: 0.6rem; letter-spacing: 2px; color: rgba(255,255,255,0.2);
}

/* ── TALENT PAGE ── */
.hero-visual {
  position: relative; z-index: 10;
  display: flex; justify-content: center; align-items: flex-end;
  width: 100%; min-height: 100vh;
  padding-top: 80px; padding-bottom: 60px;
}

.chara-wrap { position: relative; display: inline-block; line-height: 0; z-index: 2; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes silhouette-rise {
  from { opacity: 0; transform: translateY(50px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cyber-flash {
  0%   { opacity: 0; filter: brightness(0); }
  15%  { opacity: 0; filter: brightness(0); }
  18%  { opacity: 1; filter: brightness(2) saturate(0); }
  21%  { opacity: 0; filter: brightness(0); }
  24%  { opacity: 1; filter: brightness(1.5) saturate(0); }
  27%  { opacity: 0.1; filter: brightness(0); }
  30%  { opacity: 1; filter: brightness(1.2) saturate(0.2); }
  33%  { opacity: 0.2; filter: brightness(0); }
  38%  { opacity: 1; filter: brightness(1.1) saturate(0.5); }
  55%  { opacity: 1; filter: brightness(1.05) saturate(0.8); }
  100% { opacity: 1; filter: brightness(1) saturate(1); }
}

.talent-silhouette { animation: silhouette-rise 0.8s ease-out forwards; }
.talent-chara      { animation: cyber-flash 0.8s ease-out forwards; }

@keyframes sparkle-blink {
  0%   { opacity: 0; transform: scale(0.3) rotate(0deg); }
  15%  { opacity: 1; transform: scale(1) rotate(20deg); }
  35%  { opacity: 0.8; transform: scale(0.85) rotate(10deg); }
  50%  { opacity: 0; transform: scale(0.2) rotate(-10deg); }
  100% { opacity: 0; transform: scale(0.2) rotate(0deg); }
}

.sparkle-star { position: absolute; z-index: 3; pointer-events: none; opacity: 0; animation: sparkle-blink 2.4s ease-in-out infinite; }
.sparkle-star svg { display: block; }

.sp1  { width:48px; top:12%; left:-10%; animation-delay:0.0s; animation-duration:2.6s; }
.sp2  { width:28px; top:25%; left:0%;   animation-delay:0.7s; animation-duration:3.1s; }
.sp3  { width:64px; top:40%; left:-14%; animation-delay:1.3s; animation-duration:2.2s; }
.sp4  { width:20px; top:55%; left:4%;   animation-delay:0.4s; animation-duration:3.5s; }
.sp5  { width:40px; top:68%; left:-8%;  animation-delay:1.8s; animation-duration:2.8s; }
.sp6  { width:18px; top:20%; left:12%;  animation-delay:2.2s; animation-duration:2.0s; }
.sp7  { width:32px; top:80%; left:-4%;  animation-delay:0.9s; animation-duration:3.3s; }
.sp8  { width:22px; top:47%; left:15%;  animation-delay:1.6s; animation-duration:2.5s; }
.sp9  { width:44px; top:10%; right:-8%;  animation-delay:0.3s; animation-duration:2.9s; }
.sp10 { width:24px; top:28%; right:2%;   animation-delay:1.1s; animation-duration:2.4s; }
.sp11 { width:58px; top:44%; right:-12%; animation-delay:0.6s; animation-duration:3.2s; }
.sp12 { width:16px; top:60%; right:6%;   animation-delay:2.0s; animation-duration:2.1s; }
.sp13 { width:36px; top:72%; right:-6%;  animation-delay:1.5s; animation-duration:2.7s; }
.sp14 { width:20px; top:18%; right:13%;  animation-delay:0.8s; animation-duration:3.4s; }
.sp15 { width:28px; top:85%; right:-2%;  animation-delay:2.4s; animation-duration:2.3s; }
.sp16 { width:50px; top:35%; right:-16%; animation-delay:1.2s; animation-duration:3.0s; }

.info-section { position: relative; z-index: 10; max-width: 900px; margin: 0 auto; padding: 80px 40px 140px; }

.fade-in-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.fade-in-scroll.visible { opacity: 1; transform: translateY(0); }

.talent-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.talent-name { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; letter-spacing: 3px; color: #fff; margin: 0; }

.sns-links { display: flex; gap: 10px; }
.sns-btn { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.25); color: #fff; text-decoration: none; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
.sns-btn:hover { background: rgba(139,63,232,0.35); border-color: var(--violet); box-shadow: 0 0 14px rgba(139,63,232,0.5); }
.sns-btn svg { width: 15px; height: 15px; fill: white; }

.separator { width: 100%; height: 1px; background: linear-gradient(90deg, rgba(139,63,232,0.6), rgba(0,229,255,0.4), transparent); margin-bottom: 30px; }

.bio { font-size: 0.95rem; line-height: 2.2; color: rgba(255,255,255,0.8); margin-bottom: 50px; }

.profile-panel { border: 1px solid rgba(139,63,232,0.3); overflow: hidden; background: rgba(139,63,232,0.03); }
.profile-panel-head { padding: 16px 32px; background: linear-gradient(90deg, rgba(139,63,232,0.2), rgba(0,229,255,0.1)); border-bottom: 1px solid rgba(139,63,232,0.2); }
.profile-panel-head h3 { margin: 0; font-family: 'Space Mono', monospace; font-size: 0.8rem; letter-spacing: 4px; color: #fff; font-weight: 700; text-transform: uppercase; }
.profile-row { display: flex; align-items: baseline; padding: 18px 32px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.profile-row:last-child { border-bottom: none; }
.profile-label { min-width: 120px; flex-shrink: 0; font-family: 'Space Mono', monospace; font-size: 0.75rem; letter-spacing: 2px; color: var(--cyan); font-weight: 600; text-transform: uppercase; }
.profile-value { color: rgba(255,255,255,0.9); font-size: 0.95rem; }

.back-btn-wrap { text-align: center; margin-top: 60px; }
.back-btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 40px; border: 1px solid rgba(139,63,232,0.4); background: rgba(139,63,232,0.08); color: #fff; text-decoration: none; font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: 4px; text-transform: uppercase; transition: background 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.3s; position: relative; overflow: hidden; }
.back-btn::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(0,229,255,0.1), transparent); transform: translateX(-100%); transition: transform 0.6s; }
.back-btn:hover { background: rgba(139,63,232,0.2); border-color: var(--cyan); box-shadow: 0 0 30px rgba(139,63,232,0.3); transform: translateY(-2px); }
.back-btn:hover::before { transform: translateX(100%); }
.back-btn svg { width: 18px; height: 18px; stroke: var(--cyan); fill: none; stroke-width: 2; }

/* ── HAMBURGER MENU ── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 40px; height: 40px;
  cursor: pointer;
  z-index: 200;
  background: none;
  border: none;
  padding: 0;
  position: relative;
}

.hamburger span {
  display: block;
  width: 24px; height: 1.5px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: transform 0.35s ease, opacity 0.35s ease, width 0.35s ease;
  transform-origin: center;
}

/* 開いているときは×ボタン */
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(13,13,16,0.55);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(139,63,232,0.15);
  z-index: 150;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.nav-overlay.open {
  opacity: 1;
}

.nav-overlay a {
  font-family: 'Space Mono', monospace;
  font-size: 1.4rem;
  letter-spacing: 6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.3s;
  position: relative;
}

.nav-overlay a::after {
  content: '';
  position: absolute;
  bottom: -6px; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  transition: width 0.3s;
}

.nav-overlay a:hover { color: #fff; }
.nav-overlay a:hover::after { width: 100%; }
.nav-overlay a.active { color: var(--cyan); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  nav { display: none; }
  .nav-overlay { display: flex; pointer-events: none; }
  .nav-overlay.open { pointer-events: auto; }
}


@media (max-width: 768px) {
  header { padding: 18px 24px; }
  nav { gap: 20px; }
  nav a { font-size: 0.6rem; letter-spacing: 2px; }
  .hero-site-label { left: 24px; font-size: 0.55rem; }
  .hero-visual { align-items: center; padding-top: 100px; padding-bottom: 40px; }
  .info-section { padding: 60px 24px 100px; }
  footer { padding: 40px 6vw 30px; }
  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
  }
  .footer-inner > div:first-child {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .footer-links { justify-content: center; }
}
