/* ===================================
   じゅんの OFFICIAL SITE
   Black × Blue × Gold theme
   =================================== */

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* CSS Variables */
:root {
  --bg:        #080808;
  --bg-alt:    #0c1018;
  --surface:   #111111;
  --surface2:  #181818;
  --border:    #1e1e1e;
  --border-hi: #1d4ed8;
  --blue:      #2563eb;
  --blue-light:#60a5fa;
  --blue-dim:  #1e3a6e;
  --gold:      #c9a55a;
  --gold-dim:  #6b4e1a;
  --text:      #f0f0f0;
  --text-muted:#999999;
  --text-dim:  #555555;
}

/* ===== PAGE LOAD ===== */
@keyframes pageFadeIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageFadeIn 0.5s ease both; }

/* ===== HERO KEYFRAMES ===== */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroTitleWipe {
  from { clip-path: inset(0 100% 0 0); opacity: 0; }
  to   { clip-path: inset(0 0%   0 0); opacity: 1; }
}
@keyframes heroImgIn {
  from { opacity: 0; transform: scale(1.08); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes orbDrift1 {
  0%,100% { transform: translate(0,0)    scale(1);    }
  33%      { transform: translate(60px,40px) scale(1.1); }
  66%      { transform: translate(-20px,80px) scale(0.92); }
}
@keyframes orbDrift2 {
  0%,100% { transform: translate(0,0)      scale(1);    }
  50%      { transform: translate(-50px,-50px) scale(1.15); }
}
@keyframes orbDrift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(30px,-40px) scale(1.08); }
  70%     { transform: translate(-20px,20px) scale(0.95); }
}
@keyframes borderFlow {
  0%   { background-position: 0 100%; }
  100% { background-position: 0 -100%; }
}
@keyframes scanLine {
  0%   { top: -2px; opacity: 0; }
  4%   { opacity: 1; }
  96%  { opacity: 0.6; }
  100% { top: 100%;  opacity: 0; }
}
@keyframes photoGlow {
  0%,100% { opacity: 0.25; }
  50%     { opacity: 0.55; }
}
@keyframes shimmerPass {
  0%   { left: -100%; }
  100% { left: 200%; }
}

/* Base */
body {
  font-family: 'Noto Sans JP', sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.75;
}

/* ===== HEADER ===== */
#header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 200;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.4s, border-color 0.4s;
}
#header.scrolled {
  box-shadow: 0 2px 32px rgba(0,0,0,0.6);
  border-bottom-color: rgba(37,99,235,0.18);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}
.logo:hover { opacity: 0.72; }
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  object-fit: contain;
}

#nav ul { display: flex; gap: 36px; }
#nav a {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 3px;
  transition: color 0.22s;
}
#nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  transition: width 0.32s cubic-bezier(0.16,1,0.3,1);
}
#nav a:hover { color: var(--text); }
#nav a:hover::after,
#nav a.active::after { width: 100%; }
#nav a.active { color: var(--text); }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  height: 100svh;
  min-height: 600px;
  display: grid;
  grid-template-columns: 44% 56%;
  overflow: hidden;
}

.hero-text {
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 56px 80px 60px;
  position: relative;
  overflow: hidden;
}
/* animated right border */
.hero-text::after {
  content: '';
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom,
    transparent 0%,
    var(--blue) 25%,
    var(--blue-light) 50%,
    var(--gold) 75%,
    transparent 100%);
  background-size: 100% 300%;
  background-position: 0 100%;
  animation: borderFlow 5s linear infinite;
}
/* decorative watermark text */
.hero-text::before {
  content: 'JUNNO';
  position: absolute;
  bottom: 40px;
  right: -12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 110px;
  font-weight: 300;
  color: rgba(255,255,255,0.018);
  letter-spacing: 0.18em;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  line-height: 1;
  white-space: nowrap;
}

/* orb background */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.14) 0%, transparent 70%);
  top: -220px; left: -180px;
  animation: orbDrift1 14s ease-in-out infinite;
}
.hero-bg::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,165,90,0.07) 0%, transparent 70%);
  bottom: -80px; right: 5%;
  animation: orbDrift2 18s ease-in-out infinite;
}
/* third orb via sibling element */
.hero-bg-orb3 {
  position: absolute;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.08) 0%, transparent 70%);
  bottom: 30%; left: 20%;
  animation: orbDrift3 22s ease-in-out infinite;
  pointer-events: none;
}

/* all children above bg */
.hero-label, .hero-title, .hero-en, .hero-sns, .hero-scroll {
  position: relative;
  z-index: 1;
}

.hero-label {
  font-size: 9.5px;
  letter-spacing: 0.42em;
  color: var(--text-muted);
  font-weight: 400;
  margin-bottom: 22px;
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.15s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(52px, 7.5vw, 92px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 6px;
  animation: heroTitleWipe 1.1s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.3s;
}

/* thin rule between title and EN */
.hero-title-rule {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--blue), transparent);
  margin-bottom: 12px;
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.48s;
}

.hero-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(15px, 2vw, 23px);
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
  letter-spacing: 0.52em;
  margin-bottom: 46px;
  animation: heroFadeUp 0.8s ease both;
  animation-delay: 0.55s;
}

.hero-sns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.75s;
}
.hero-sns-link {
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 6px 16px;
  transition: all 0.26s;
  position: relative;
  overflow: hidden;
}
.hero-sns-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue), var(--blue-dim));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s cubic-bezier(0.16,1,0.3,1);
  z-index: -1;
}
.hero-sns-link:hover { color: #fff; border-color: var(--blue); }
.hero-sns-link:hover::before { transform: scaleX(1); }

.hero-scroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-top: auto;
  animation: heroFadeUp 0.7s ease both;
  animation-delay: 0.95s;
}
.hero-scroll-text {
  font-size: 9px;
  letter-spacing: 0.35em;
  color: var(--text-dim);
}
.hero-scroll-line {
  display: block;
  width: 1px;
  height: 44px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  49%  { transform: scaleY(1); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero-photo {
  overflow: hidden;
  position: relative;
}
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dim) 0%, transparent 60%);
  z-index: 1;
  animation: photoGlow 6s ease-in-out infinite;
}
.hero-photo::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(96,165,250,0.8) 40%,
    rgba(255,255,255,0.5) 50%,
    rgba(96,165,250,0.8) 60%,
    transparent 100%);
  z-index: 2;
  pointer-events: none;
  animation: scanLine 6s cubic-bezier(0.4,0,0.6,1) infinite;
  animation-delay: 2s;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(0.88) contrast(1.06);
  animation: heroImgIn 1.4s cubic-bezier(0.16,1,0.3,1) both;
  animation-delay: 0.05s;
}

/* ===== COMMON SECTION ===== */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
}

.section-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--blue-light);
  margin-bottom: 52px;
  display: flex;
  align-items: center;
  gap: 14px;
}
/* ordinal number added via JS data-num */
.section-title[data-num]::before {
  content: attr(data-num);
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
  opacity: 0.65;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}
.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border), transparent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 1.1s cubic-bezier(0.16,1,0.3,1);
}
.section-title.line-visible::after { transform: scaleX(1); }

/* ===== FADE-IN ===== */
.animate {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.animate.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== NEWS ===== */
.news-list { max-width: 820px; }

.news-item {
  display: grid;
  grid-template-columns: 108px 76px 1fr;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  cursor: default;
  transition: background 0.18s, padding 0.18s;
  position: relative;
}
.news-item:first-child { border-top: 1px solid var(--border); }
.news-item::before {
  content: '';
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--gold), var(--blue));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
}
.news-item::after {
  content: '→';
  position: absolute;
  right: 0;
  font-size: 11px;
  color: var(--blue-light);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s, transform 0.22s;
}
.news-item:hover::before { transform: scaleY(1); }
.news-item:hover::after  { opacity: 1; transform: translateX(0); }
.news-item:hover { background: rgba(255,255,255,0.02); padding-left: 14px; }

.news-date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  font-weight: 300;
}
.news-cat {
  display: inline-block;
  font-size: 8.5px;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(96,165,250,0.08));
  border: 1px solid rgba(37,99,235,0.35);
  padding: 3px 10px;
  color: var(--blue-light);
  text-align: center;
  white-space: nowrap;
}
.news-text { font-size: 13.5px; color: var(--text); }

/* ===== CARDS ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
  cursor: pointer;
}
.card:hover {
  border-color: rgba(37,99,235,0.5);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.08), 0 8px 32px rgba(37,99,235,0.18);
  transform: translateY(-4px);
}

.card-thumb {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  position: relative;
  overflow: hidden;
}
.card-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dim) 0%, transparent 100%);
  opacity: 0.3;
}
.card-thumb-label {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
}

.card-body { padding: 18px 20px 22px; }
.card-cat {
  font-size: 9px;
  letter-spacing: 0.2em;
  color: var(--blue-light);
  margin-bottom: 6px;
}
.card-title { font-size: 14.5px; font-weight: 500; margin-bottom: 5px; color: var(--text); }
.card-desc { font-size: 12px; color: var(--text-muted); }

/* ===== DISCOGRAPHY ===== */
.disc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 28px;
  margin-bottom: 56px;
}
.disc-item { cursor: pointer; transition: transform 0.32s cubic-bezier(0.16,1,0.3,1); }
.disc-item:hover { transform: translateY(-10px); }
.disc-item:hover .disc-jacket {
  border-color: rgba(37,99,235,0.45);
  box-shadow: 0 0 0 1px rgba(37,99,235,0.12), 0 16px 48px rgba(37,99,235,0.28);
}

.disc-jacket {
  aspect-ratio: 1;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
/* shimmer on hover */
.disc-jacket::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transform: translateX(-200%);
  transition: none;
  pointer-events: none;
  z-index: 3;
}
/* shimmer: non-video items only */
.disc-item:hover .disc-jacket:not([data-hasvideo])::after {
  animation: shimmerPass 0.7s ease forwards;
}
/* video play overlay */
.disc-jacket[data-hasvideo]::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: rgba(255,255,255,0.9);
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: opacity 0.22s;
  z-index: 4;
  width: auto;
  transform: none;
  animation: none;
}
.disc-item:hover .disc-jacket[data-hasvideo]::after { opacity: 1; }

.disc-jacket-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.disc-jacket::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-dim), transparent 60%);
  opacity: 0.45;
  z-index: 2;
  transition: opacity 0.3s;
}
.disc-item:hover .disc-jacket::before { opacity: 0.25; }

.disc-jacket-year {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  position: relative;
  z-index: 1;
}
.disc-year  { font-size: 10.5px; color: var(--text-dim); letter-spacing: 0.12em; margin-bottom: 5px; }
.disc-title { font-size: 13.5px; font-weight: 500; margin-bottom: 3px; color: var(--text); line-height: 1.4; }
.disc-type  { font-size: 10.5px; color: var(--text-muted); letter-spacing: 0.08em; }

.streaming-block {
  border-top: 1px solid var(--border);
  padding-top: 52px;
  text-align: center;
}
.streaming-label {
  font-size: 9.5px;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.streaming-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.streaming-btn {
  font-size: 11.5px;
  letter-spacing: 0.1em;
  border: 1px solid var(--border-hi);
  padding: 10px 28px;
  color: var(--blue-light);
  transition: all 0.24s;
  position: relative;
  overflow: hidden;
}
.streaming-btn::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
  transition: left 0.48s ease;
}
.streaming-btn:hover::before { left: 160%; }
.streaming-btn:hover {
  background: linear-gradient(135deg, var(--blue), #1a4ec7);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 4px 20px rgba(37,99,235,0.3);
}

/* ===== WORKS ===== */
.works-list {
  max-width: 800px;
  display: grid;
  gap: 12px;
}
.work-item {
  border: 1px solid var(--border);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  transition: border-color 0.26s, transform 0.32s cubic-bezier(0.16,1,0.3,1), box-shadow 0.26s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.work-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(37,99,235,0.04), transparent);
  opacity: 0;
  transition: opacity 0.26s;
}
.work-item:hover::before { opacity: 1; }
.work-item:hover {
  border-color: rgba(37,99,235,0.45);
  transform: translateX(8px);
  box-shadow: -4px 0 24px rgba(37,99,235,0.12);
}

.work-jacket {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 3px;
}
.work-jacket img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.work-jacket-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--border);
}

.work-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 110px;
}
.work-client { font-size: 18px; font-weight: 700; color: var(--text); }
.work-type-badge {
  font-size: 9px;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, var(--blue), #1a4ec7);
  color: #fff;
  padding: 3px 12px;
}
.work-body { flex: 1; }
.work-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; color: var(--text); }
.work-role  { font-size: 12px; color: var(--text-muted); letter-spacing: 0.04em; }

.works-note {
  max-width: 800px;
  font-size: 12px;
  color: var(--text-muted);
  padding-top: 22px;
  text-align: center;
}

/* ===== SCHEDULE ===== */
.schedule-empty {
  text-align: center;
  padding: 80px 0;
  border: 1px dashed rgba(30,30,30,0.8);
}
.schedule-empty p { font-size: 14px; color: var(--text-muted); }
.schedule-note { font-size: 12px; color: var(--text-dim); margin-top: 10px; }

/* ===== PROFILE ===== */
.profile-inner {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 72px;
  align-items: start;
}
.profile-photo-box {
  aspect-ratio: 3 / 4;
  background: var(--surface2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.profile-photo-box::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(8,8,8,0.4) 100%);
  pointer-events: none;
}
.profile-photo-placeholder {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.2em;
}
.profile-photo img,
.profile-photo-img { width: 100%; height: 100%; object-fit: cover; }

.profile-name {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
  color: var(--text);
}
.profile-name-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 300;
  font-style: italic;
  color: var(--text-dim);
}
.profile-name-real { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }

.profile-dl {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 10px 20px;
  font-size: 13.5px;
  margin-bottom: 28px;
}
.profile-dl dt { color: var(--text-muted); font-weight: 300; }
.profile-dl dd { color: var(--text); }

.profile-bio { font-size: 14px; line-height: 2.1; color: #bdbdbd; margin-bottom: 32px; }

.profile-sns { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-sns-btn {
  font-size: 11.5px;
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  padding: 8px 20px;
  color: var(--text-muted);
  transition: all 0.24s;
  position: relative;
  overflow: hidden;
}
.profile-sns-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.12), transparent);
  opacity: 0;
  transition: opacity 0.24s;
}
.profile-sns-btn:hover::before { opacity: 1; }
.profile-sns-btn:hover {
  border-color: rgba(37,99,235,0.45);
  color: var(--blue-light);
}

/* ===== FOOTER ===== */
#footer {
  background: #050505;
  border-top: 0 none;
  color: var(--text);
  padding: 60px 0 36px;
  text-align: center;
  position: relative;
}
#footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--border) 20%,
    rgba(37,99,235,0.4) 50%,
    var(--border) 80%,
    transparent 100%
  );
}
.footer-logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  display: inline-block;
  background: linear-gradient(135deg, var(--text) 30%, var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 24px;
}
.footer-nav a {
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  transition: color 0.22s;
}
.footer-nav a:hover { color: var(--blue-light); }

.footer-sns {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 36px;
}
.footer-sns a {
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.22s;
}
.footer-sns a:hover { color: var(--text-muted); }

.footer-copy { font-size: 10px; color: var(--text-dim); letter-spacing: 0.06em; }

/* ===== BACK TO TOP ===== */
#back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--border-hi);
  color: var(--blue-light);
  font-size: 18px;
  cursor: pointer;
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s, background 0.22s, transform 0.22s, border-color 0.22s;
}
#back-top.visible {
  opacity: 1;
  pointer-events: auto;
}
#back-top:hover {
  background: linear-gradient(135deg, var(--blue), #1a4ec7);
  border-color: var(--blue);
  color: #fff;
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}

/* ===== GAME FLOAT BUTTON ===== */
#game-float-btn {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 56px;
  height: 56px;
  background: radial-gradient(circle at 35% 35%, #1e3a8a, #0f172a);
  border: 1.5px solid rgba(96,165,250,0.45);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,99,235,0.32), inset 0 1px 0 rgba(255,255,255,0.08);
  animation: gameBtnFloat 3s ease-in-out infinite;
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
#game-float-btn svg { width: 52px; height: 52px; }
#game-float-btn:hover {
  transform: scale(1.12) translateY(-2px);
  box-shadow: 0 6px 28px rgba(37,99,235,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  border-color: rgba(96,165,250,0.85);
  animation: none;
}
@keyframes gameBtnFloat {
  0%,100% { transform: translateY(0);    box-shadow: 0 4px 20px rgba(37,99,235,0.32); }
  50%      { transform: translateY(-5px); box-shadow: 0 8px 28px rgba(37,99,235,0.48); }
}
.btn-sparkle {
  animation: sparkleAnim 2s ease-in-out infinite;
  transform-origin: center;
}
@keyframes sparkleAnim {
  0%,100% { opacity: 0.3; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.1); }
}

/* ===== MULTI-PAGE ===== */
.page-first { padding-top: 132px; }

.section-more { margin-top: 44px; text-align: right; }
.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--blue-light);
  border-bottom: 1px solid var(--blue-dim);
  padding-bottom: 2px;
  transition: all 0.22s;
}
.btn-more::after { content: '→'; }
.btn-more:hover { color: #fff; border-color: var(--blue); gap: 14px; }

/* ===== MOVIE ===== */
.movie-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.movie-grid:has(.movie-item:only-child) {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.movie-item { display: flex; flex-direction: column; gap: 12px; }
.movie-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.movie-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}
.movie-title {
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.movie-yt {
  text-decoration: none;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.movie-thumb--generic { background: #111; }
.movie-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  background: #000;
  aspect-ratio: 16 / 9;
}
.movie-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.movie-yt:hover .movie-thumb img {
  transform: scale(1.04);
  opacity: 0.72;
}
.movie-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(255,255,255,0.12);
  border: 2px solid rgba(255,255,255,0.65);
  border-radius: 50%;
  backdrop-filter: blur(4px);
  transition: background 0.3s, transform 0.3s, border-color 0.3s;
  pointer-events: none;
}
.movie-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
}
.movie-yt:hover .movie-play {
  background: rgba(255,255,255,0.24);
  border-color: rgba(255,255,255,0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

/* ===== FILTER / SEARCH / PAGINATION ===== */
.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.filter-search {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  max-width: 420px;
  outline: none;
  transition: border-color 0.22s, box-shadow 0.22s;
}
.filter-search:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.08);
}
.filter-search::placeholder { color: var(--text-dim); }

.filter-years {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-year-btn {
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 5px 16px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.filter-year-btn:hover { border-color: var(--blue-dim); color: var(--text); }
.filter-year-btn.active {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(37,99,235,0.1);
}

.filter-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.filter-cat-btn {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  padding: 4px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}
.filter-cat-btn:hover { border-color: var(--blue-dim); color: var(--text); }
.filter-cat-btn.active {
  border-color: var(--blue-light);
  color: var(--blue-light);
  background: rgba(96,165,250,0.08);
}

.filter-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.pager-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
}
.pager-btn:hover:not([disabled]) { border-color: var(--blue); color: var(--text); }
.pager-btn.active {
  border-color: var(--blue);
  color: var(--blue-light);
  background: rgba(37,99,235,0.12);
}
.pager-btn[disabled] { opacity: 0.28; cursor: default; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.82);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: var(--surface);
  border: 1px solid rgba(37,99,235,0.25);
  border-radius: 4px;
  max-width: 820px;
  width: 100%;
  max-height: 82vh;
  overflow-y: auto;
  padding: 44px 48px 48px;
  position: relative;
  transform: translateY(20px) scale(0.99);
  transition: transform 0.28s cubic-bezier(0.16,1,0.3,1);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(37,99,235,0.08);
}
.modal-overlay.open .modal-box {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px; right: 22px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 4px;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--text); }

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-date {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.modal-cat {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, rgba(37,99,235,0.18), rgba(96,165,250,0.08));
  border: 1px solid rgba(37,99,235,0.35);
  padding: 3px 10px;
  color: var(--blue-light);
}

.modal-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.modal-video { margin-bottom: 20px; }
.modal-video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  background: #000;
}
.modal-iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

.modal-spotify { margin-bottom: 20px; }
.modal-spotify-frame {
  width: 100%;
  height: 152px;
  border: none;
  border-radius: 12px;
  display: block;
}

.modal-img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 2px;
  margin-bottom: 20px;
  display: block;
}

.modal-body-content {
  font-size: 14px;
  line-height: 2.1;
  color: #c4c4c4;
}
.modal-body-content p { margin-bottom: 12px; }
.modal-body-content p:last-child { margin-bottom: 0; }

.modal-link {
  display: block;
  color: var(--blue-light);
  word-break: break-all;
  border-bottom: 1px solid var(--blue-dim);
  padding-bottom: 2px;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.modal-link:hover { color: #fff; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-inner { grid-template-columns: 220px 1fr; gap: 44px; }
}

@media (max-width: 768px) {
  .header-inner { padding: 0 20px; }

  #nav {
    display: none;
    position: absolute;
    top: 64px; left: 0;
    width: 100%;
    background: rgba(8,8,8,0.98);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
  }
  #nav.open { display: block; }
  #nav ul { flex-direction: column; align-items: center; gap: 20px; }
  .menu-toggle { display: flex; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto 56vw;
    height: auto;
    min-height: auto;
  }
  .hero-text { padding: 88px 24px 36px; border-right: none; border-bottom: 1px solid var(--border); }
  .hero-text::after { display: none; }
  .hero-text::before { font-size: 60px; bottom: 16px; }
  .hero-photo { min-height: 220px; }
  .hero-scroll { display: none; }

  .page-first { padding-top: 88px; }
  .section { padding: 56px 0; }
  .container { padding: 0 20px; }
  .section-title { font-size: 10.5px; margin-bottom: 30px; }

  .news-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    padding: 14px 0;
  }
  .news-item::after { display: none; }
  .news-text { flex: 1 1 100%; font-size: 13px; }

  .card-grid { grid-template-columns: 1fr; }
  .card-grid-2 { grid-template-columns: 1fr; }

  .disc-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }

  .work-item { gap: 12px; padding: 14px 16px; }
  .work-jacket { width: 52px; height: 52px; }
  .work-meta { min-width: 0; }
  .work-client { font-size: 15px; }

  .profile-inner { grid-template-columns: 1fr; gap: 28px; }
  .profile-photo-box { max-width: 200px; }

  .modal-box { padding: 28px 20px 24px; max-height: 92vh; }
  .modal-title { font-size: 16px; margin-bottom: 18px; padding-bottom: 16px; }

  .filter-cat-btn  { padding: 8px 14px; }
  .filter-year-btn { padding: 8px 16px; }
  .pager-btn { min-width: 40px; height: 42px; }

  .footer-nav { gap: 12px 20px; }
  .footer-sns { gap: 14px; margin-bottom: 24px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 16px; }
  .logo-img { height: 34px; }

  .hero { grid-template-rows: auto 62vw; }
  .hero-text { padding: 78px 18px 28px; }
  .hero-text::before { display: none; }
  .hero-label { margin-bottom: 14px; }
  .hero-en   { margin-bottom: 18px; }
  .hero-sns  { margin-bottom: 18px; gap: 6px; }
  .hero-sns-link { padding: 5px 12px; font-size: 9px; }

  .page-first { padding-top: 78px; }
  .section { padding: 40px 0; }
  .container { padding: 0 16px; }
  .section-title { margin-bottom: 24px; }

  .work-jacket { width: 44px; height: 44px; }
  .work-client { font-size: 14px; }
  .work-title  { font-size: 13px; }
  .work-role   { font-size: 11px; }

  .disc-grid  { gap: 12px; }
  .disc-title { font-size: 12px; }
  .disc-year  { font-size: 10px; }
  .disc-type  { font-size: 10px; }

  .card-body  { padding: 14px 16px 16px; }
  .card-title { font-size: 13.5px; }

  .modal-overlay { padding: 10px; }
  .modal-box { padding: 20px 14px 18px; border-radius: 6px; }
  .modal-title { font-size: 14px; }
  .modal-body-content { font-size: 13px; }

  .filter-search { max-width: 100%; }
  .streaming-links { flex-direction: column; align-items: center; }
  .pager-btn { min-width: 40px; height: 44px; font-size: 12px; }
  .movie-grid { grid-template-columns: 1fr; }

  #back-top       { bottom: 18px; right: 14px; width: 40px; height: 40px; font-size: 16px; }
  #game-float-btn { bottom: 18px; left: 14px; width: 50px; height: 50px; }
  #game-float-btn svg { width: 46px; height: 46px; }

  #footer { padding: 44px 0 24px; }
  .footer-nav { gap: 10px 16px; }
  .footer-logo { font-size: 18px; margin-bottom: 22px; }
}

/* タッチデバイス: hover 貼り付きを防ぐ */
@media (hover: none) {
  .news-item:hover { background: transparent; padding-left: 0; }
  .news-item:hover::before { transform: scaleY(0); }
  .card:hover { transform: none; border-color: var(--border); box-shadow: none; }
  .work-item:hover { transform: none; border-color: var(--border); box-shadow: none; }
  .work-item:hover::before { opacity: 0; }
  .disc-item:hover { transform: none; }
  .disc-item:hover .disc-jacket { border-color: var(--border); box-shadow: none; }
  .disc-jacket[data-hasvideo]::after { opacity: 0.55; }
}

/* ============================================================
   GIMMICKS
   ============================================================ */

/* ----- LOADER ----- */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
#loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-text {
  font-size: 9.5px;
  letter-spacing: 0.6em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.loader-count {
  font-family: 'Cormorant Garamond', serif;
  font-size: 84px;
  font-weight: 300;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.02em;
  min-width: 3ch;
  text-align: right;
}
.loader-bar-wrap {
  width: 160px;
  height: 1px;
  background: var(--border);
  overflow: hidden;
}
.loader-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--blue-light));
  background-size: 200% 100%;
  width: 0%;
  transition: width 0.08s linear;
  animation: loaderBarShift 2s linear infinite;
}
@keyframes loaderBarShift {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

/* ----- CUSTOM CURSOR ----- */
@media (pointer: fine) {
  body, a, button, label { cursor: none; }
}
.cursor-dot {
  position: fixed;
  width: 5px; height: 5px;
  background: var(--gold);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  mix-blend-mode: screen;
}
.cursor-ring {
  position: fixed;
  width: 30px; height: 30px;
  border: 1px solid rgba(96,165,250,0.45);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: width .24s ease, height .24s ease, border-color .24s ease, background .24s ease;
}
.cursor-ring.hover {
  width: 52px; height: 52px;
  border-color: var(--gold);
  background: rgba(201,165,90,0.06);
}

/* ----- GLITCH ----- */
@keyframes glitchA {
  0%,94%,100% { clip-path: inset(40% 0 55% 0); transform: translateX(0);    opacity: 0; }
  95%          { clip-path: inset(8%  0 85% 0); transform: translateX(-5px); opacity: 1; }
  97%          { clip-path: inset(70% 0 15% 0); transform: translateX(4px);  opacity: 1; }
}
@keyframes glitchB {
  0%,91%,100% { clip-path: inset(55% 0 35% 0); transform: translateX(0);   opacity: 0; }
  92%         { clip-path: inset(78% 0  8% 0); transform: translateX(4px); opacity: 1; }
  94%         { clip-path: inset(15% 0 72% 0); transform: translateX(-3px);opacity: 1; }
}
.glitch { position: relative; }
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  left: 0; top: 0;
  width: 100%;
  pointer-events: none;
}
.glitch::before { color: var(--gold);     animation: glitchA 7s infinite linear; }
.glitch::after  { color: var(--blue-light); animation: glitchB 7s 0.2s infinite linear; }

/* ----- PARTICLES ----- */
#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero, .section, main, footer { position: relative; z-index: 1; }
