/*
Theme Name: Tokyo Pop Studio - Artist
Theme URI: https://tokyo-pop.studio
Description: TOKYO POP STUDIO アーティスト個別サイト用ベーステーマ（カラーカスタマイズ対応）
Author: Quad Competence LLC
Version: 1.0.0
License: All Rights Reserved
Text Domain: tps-artist
*/

/* ========================================
   CSS カスタムプロパティ（カスタマイザーから上書き）
   ======================================== */
:root {
  --bg:            #0d0a12;
  --bg-mid:        #150d1e;
  --fg:            #ffffff;
  --fg-muted:      rgba(255,255,255,0.65);
  --accent:        #c940a8;        /* カスタマイザーで上書き */
  --accent-light:  #e060c8;        /* カスタマイザーで上書き */
  --accent-glow:   rgba(201,64,168,0.2);
  --card-bg:       rgba(255,255,255,0.05);
  --card-border:   rgba(255,255,255,0.08);
  --radius:        14px;
}

/* ========================================
   リセット & ベース
   ======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 0% 0%, var(--accent-glow) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 100% 40%, rgba(255,255,255,0.03) 0%, transparent 50%);
  color: var(--fg);
  font-family: 'Noto Sans JP', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========================================
   ユーティリティ
   ======================================== */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.accent-text {
  background: linear-gradient(90deg, var(--accent-light), #fff 50%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tag {
  display: inline-block;
  font-size: 0.6rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--accent-light);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 20px;
}

/* ========================================
   ヘッダー
   ======================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: linear-gradient(to bottom, rgba(13,10,18,0.85) 0%, transparent 100%);
  transition: background 0.4s, padding 0.4s;
}

.site-header.scrolled {
  background: rgba(13,10,18,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* レーベルロゴ（左上） */
.label-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.label-logo:hover { opacity: 1; }
.label-logo img { height: 80px; width: auto; }
.label-logo-text {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}

/* ナビ */
.site-nav { display: flex; gap: 32px; list-style: none; }
.site-nav a {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  font-weight: 600;
  transition: color 0.2s;
}
.site-nav a:hover { color: var(--accent-light); }

/* ハンバーガー */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px; height: 36px;
  background: none; border: none;
  cursor: pointer; padding: 4px; z-index: 200;
}
.nav-toggle span {
  display: block; width: 100%; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルメニュー */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(13,10,18,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 150;
  padding: 100px 40px 48px;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a {
  display: block;
  font-size: 1.1rem; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent-light); }

/* ========================================
   Hero セクション
   ======================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  overflow: hidden;
  padding: 0 0 80px;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img, .hero-bg-video {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.hero-bg-image {
  position: relative;
  z-index: 1;
  transition: opacity 1s ease;
}
.hero-bg-video {
  position: absolute; inset: 0;
  z-index: 2;
  transition: opacity 1s ease;
}
.hero-bg-video--hidden { opacity: 0; }
.hero-bg-overlay { z-index: 3; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to right,  rgba(13,10,18,0.90) 0%, rgba(13,10,18,0.35) 55%, transparent 100%),
    linear-gradient(to top,    rgba(13,10,18,0.98) 0%, rgba(13,10,18,0.45) 35%, transparent 65%);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 0 24px;
  max-width: 640px;
  animation: fadeInUp 1s 0.3s ease both;
}

.hero-genre {
  font-size: 0.65rem;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
  display: block;
}

.hero-name {
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.hero-name-en {
  font-size: clamp(0.9rem, 2vw, 1.2rem);
  font-weight: 300;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 24px;
  display: block;
}

.hero-desc {
  font-size: 0.92rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.75);
  max-width: 440px;
  margin-bottom: 32px;
  letter-spacing: 0.04em;
}

/* Hero SNSボタン */
.hero-socials { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.hero-socials-row { justify-content: flex-start; }

/* ========================================
   セクション共通
   ======================================== */
.section-header { text-align: center; margin-bottom: 56px; }
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.section-lead { font-size: 0.88rem; color: var(--fg-muted); line-height: 1.8; }

/* ========================================
   New Release セクション（最大4曲・2列グリッド）
   ======================================== */
.new-release-section { padding: 100px 0 40px; }

.new-release-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 960px;
  margin: 0 auto;
}

.nr-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.nr-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--accent-glow);
}

.nr-card__cover {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(145deg, #2d1040, #1a0a1e);
}
.nr-card__cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.nr-card:hover .nr-card__cover img { transform: scale(1.05); }

.nr-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 100px;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.nr-card__badge--now  { background: rgba(40,180,120,0.85); }
.nr-card__badge--soon { background: rgba(201,64,168,0.85); }

.nr-card__body {
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nr-card__title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.nr-card__date {
  font-size: 0.78rem;
  color: var(--fg-muted);
  letter-spacing: 0.08em;
}

.nr-card__countdown {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--accent-light);
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}
.nr-card__countdown strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0;
}

.nr-card__streams {
  margin-top: auto;
  padding-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

/* 最新曲ショートムービー（9:16 縦型・グリッド下） */
.new-release-short {
  max-width: 360px;
  margin: 48px auto 0;
}
.new-release-short__frame {
  aspect-ratio: 9 / 16;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px var(--accent-glow);
  background: #000;
}
.new-release-short__frame iframe {
  width: 100%; height: 100%;
  border: 0;
  display: block;
}

@media (max-width: 720px) {
  .new-release-grid {
    grid-template-columns: 1fr;
    max-width: 460px;
  }
  .nr-card__streams { grid-template-columns: repeat(2, 1fr); }
}

/* ========================================
   Discography セクション
   ======================================== */
.discography-section { padding: 120px 0; }

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

.spotify-embed {
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.spotify-embed:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--accent-glow);
}
.spotify-embed iframe { display: block; border-radius: var(--radius); }

/* 公式バッジ／アイコン共通レイアウト */
.stream-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.stream-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  line-height: 1;
  transition: transform 0.25s ease, filter 0.25s ease;
}
.stream-link:hover { transform: translateY(-2px); filter: brightness(1.12); }
.stream-link picture,
.stream-link img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}
.stream-link--icon-only,
.stream-link--icon-only img {
  width: 40px;
  height: 40px;
}
.stream-link--icon-only img { object-fit: contain; }
.stream-link--label img { height: 40px; width: auto; }

/* 枠付きバッジ（New Release / Discography / フッター） */
.streaming-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.nr-card__streams .stream-link,
.streaming-links .stream-link,
.social-links .stream-link {
  width: 100%;
  height: auto;
  min-height: 62px;
  padding: 10px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  box-sizing: border-box;
}
.nr-card__streams .stream-link picture,
.streaming-links .stream-link picture,
.social-links .stream-link picture {
  display: block;
  width: 100%;
  height: 40px;
}
.nr-card__streams .stream-link img,
.streaming-links .stream-link img,
.social-links .stream-link img {
  display: block;
  width: 100%;
  height: 40px;
  object-fit: contain;
}
.social-links .stream-link {
  width: auto;
  min-width: 140px;
}
.social-links .stream-link--icon-only {
  width: 60px;
  min-width: 60px;
}
.social-links .stream-link--icon-only img {
  width: 100%;
  height: 40px;
  object-fit: contain;
}
.social-links .stream-link--label img {
  width: auto;
  max-width: 100%;
}

@media (max-width: 640px) {
  .stream-link,
  .stream-link picture,
  .stream-link img {
    width: 40px;
    height: 40px;
  }
  .stream-link img { object-fit: contain; }
  .stream-link--label { width: auto; }
  .stream-link--label img { width: auto; }

  /* 独立ボタン列はモバイルでフレーム解除（カード内ストリームは枠を維持） */
  .streaming-links,
  .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }
  .social-links { justify-content: center; }
  .streaming-links .stream-link,
  .social-links .stream-link,
  .social-links .stream-link--icon-only {
    width: 40px;
    height: 40px;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }
  .social-links .stream-link--label {
    width: auto;
  }
}

/* ========================================
   YouTube セクション
   ======================================== */
.youtube-section { padding: 0 0 120px; }

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

.youtube-embed {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.youtube-embed:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--accent-glow);
}
.youtube-embed iframe { display: block; width: 100%; aspect-ratio: 16/9; border: none; }

/* ========================================
   Biography セクション
   ======================================== */
.biography-section {
  padding: 120px 0;
  position: relative;
}
.biography-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.3;
}

.bio-inner {
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  gap: 80px;
  align-items: start;
}

.bio-label { position: sticky; top: 120px; }
.bio-label .section-title { text-align: left; }

.bio-artist-logo {
  margin-top: 28px;
  max-width: 200px;
}
.bio-artist-logo img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.bio-text p {
  font-size: 1rem;
  line-height: 2.0;
  color: rgba(255,255,255,0.72);
  margin-bottom: 1.5em;
  letter-spacing: 0.04em;
}

/* ========================================
   SNS フッター上
   ======================================== */
.social-section { padding: 0 0 80px; }

/* ========================================
   フッター
   ======================================== */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.footer-links a {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.08em;
  transition: color 0.2s;
}

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

.site-footer p { font-size: 0.7rem; color: rgba(255,255,255,0.28); letter-spacing: 0.12em; }

/* ========================================
   トップへ戻るボタン
   ======================================== */
.back-to-top {
  display: flex;
  position: fixed; bottom: 24px; right: 24px;
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(13,10,18,0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--accent);
  color: var(--accent-light);
  cursor: pointer; align-items: center; justify-content: center;
  transition: opacity 0.3s ease, transform 0.3s ease; z-index: 90;
  opacity: 0; transform: translateY(10px);
  pointer-events: none;
}
.back-to-top.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.back-to-top:hover { background: var(--accent-glow); }

/* ========================================
   アニメーション
   ======================================== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: 0.1s; }
.reveal--d2 { transition-delay: 0.2s; }
.reveal--d3 { transition-delay: 0.3s; }

/* ========================================
   WordPress 管理バー
   ======================================== */
.admin-bar .site-header { top: 32px; }

/* ========================================
   レスポンシブ
   ======================================== */
@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: block; }
  .bio-inner { grid-template-columns: 1fr; gap: 40px; }
  .bio-label { position: static; }
  .bio-label .section-title { text-align: center; }
}

@media (max-width: 640px) {
  .hero { align-items: flex-end; padding: 0 0 60px; }
  .hero-name { letter-spacing: -0.02em; }
  .hero-socials { align-items: flex-start; }
  .spotify-grid { grid-template-columns: 1fr; }
  .youtube-grid { grid-template-columns: 1fr; }
}
