/* =========================================================
   Roberto Music Collective — 2026 site
   モダン・ダーク・鮮烈テーマ
   ========================================================= */

:root {
  --bg:        #0a0a10;
  --bg-2:      #10101a;
  --surface:   #16161f;
  --surface-2: #1d1d29;
  --line:      rgba(255,255,255,.09);
  --text:      #f4f4f8;
  --muted:     #9a9ab2;
  --faint:     #6a6a82;

  --pink:   #ff2d9b;
  --violet: #7b5cff;
  --cyan:   #22d3ee;

  --brand-grad: linear-gradient(115deg, #ff2d9b 0%, #7b5cff 48%, #22d3ee 100%);

  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1080px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP",
          "Yu Gothic", "YuGothic", Meiryo, system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  letter-spacing: .01em;
  overflow-x: hidden;
  min-height: 100vh;
  /* 背景のほのかな発光 */
  background-image:
    radial-gradient(60% 60% at 15% -5%, rgba(123,92,255,.18), transparent 60%),
    radial-gradient(50% 50% at 100% 0%, rgba(255,45,155,.14), transparent 60%),
    radial-gradient(60% 60% at 50% 120%, rgba(34,211,238,.10), transparent 60%);
  background-attachment: fixed;
}

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

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ---------- ヘッダー / ナビ ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(10,10,16,.68);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.brand {
  display: flex; align-items: center; gap: 11px;
  font-weight: 800; letter-spacing: .02em; font-size: 16px;
}
.brand img { height: 30px; width: auto; }
.brand .brand-mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--brand-grad);
  display: grid; place-items: center;
  font-weight: 900; color: #fff; font-size: 13px;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px; border-radius: 999px;
  color: var(--muted); font-size: 14px; font-weight: 600;
  transition: color .2s var(--ease), background .2s var(--ease);
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,.10); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer;
  width: 42px; height: 42px; border-radius: 11px; color: var(--text);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; border-radius: 2px;
  background: currentColor; margin: 0 auto; transition: .25s var(--ease);
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after  { transform: translateY(4px); }

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(12,12,20,.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    padding: 10px 16px 18px;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: .22s var(--ease);
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 14px; font-size: 15px; }
}

/* ---------- 汎用セクション ---------- */
main { display: block; }
.section { padding: 64px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 30px; flex-wrap: wrap;
}
.section-title {
  font-size: clamp(22px, 4vw, 30px); font-weight: 800; letter-spacing: .01em;
}
.section-title .sub { color: var(--faint); font-weight: 700; font-size: .6em; margin-left: 10px; letter-spacing: .18em; }
.section-link { color: var(--muted); font-size: 13px; font-weight: 600; }
.section-link:hover { color: var(--cyan); }

.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- ヒーロー ---------- */
.hero { position: relative; padding: clamp(70px, 12vw, 130px) 0 60px; overflow: hidden; }
.hero-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 22px; }
.hero-logo { width: min(240px, 62vw); filter: drop-shadow(0 12px 40px rgba(123,92,255,.35)); }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .16em;
  color: var(--muted); border: 1px solid var(--line);
  padding: 7px 15px; border-radius: 999px; background: rgba(255,255,255,.03);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.hero h1 {
  font-size: clamp(30px, 7vw, 60px); font-weight: 900; line-height: 1.14; letter-spacing: .01em;
}
.hero p.lead { color: var(--muted); font-size: clamp(15px, 2.4vw, 18px); max-width: 40ch; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; padding: 13px 24px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text);
  transition: transform .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 10px 30px rgba(255,45,155,.28); }
.btn-ghost:hover { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); }

/* ---------- 楽曲グリッド ---------- */
.music-grid {
  display: grid; gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}
.music-card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.music-card:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); background: var(--surface-2); }
.jacket-wrap { position: relative; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 1/1; background: #000; }
.jacket-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.music-card:hover .jacket-wrap img { transform: scale(1.05); }
.jacket-wrap::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.5), transparent 45%);
  opacity: 0; transition: opacity .25s var(--ease);
}
.music-card:hover .jacket-wrap::after { opacity: 1; }
.play-badge {
  position: absolute; right: 10px; bottom: 10px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand-grad); display: grid; place-items: center;
  transform: translateY(8px) scale(.9); opacity: 0;
  transition: .25s var(--ease); box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.music-card:hover .play-badge { transform: none; opacity: 1; }
.play-badge svg { width: 18px; height: 18px; fill: #fff; margin-left: 2px; }
.card-meta { display: flex; flex-direction: column; gap: 3px; padding: 0 4px 6px; }
.card-rmc { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--faint); }
.card-title { font-size: 15px; font-weight: 700; line-height: 1.35; }
.card-status {
  align-self: flex-start; margin-top: 2px;
  font-size: 10px; font-weight: 700; letter-spacing: .08em;
  padding: 3px 8px; border-radius: 999px;
}
.status-live { color: #6ff2c0; background: rgba(34,211,140,.12); }
.status-soon { color: var(--cyan); background: rgba(34,211,238,.12); }

/* ---------- ニュース / 最新 ---------- */
.news-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.news-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 16px 4px; border-bottom: 1px solid var(--line);
  transition: background .2s var(--ease);
}
.news-row:hover { background: rgba(255,255,255,.03); }
.news-date { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; min-width: 92px; }
.news-tag {
  font-size: 10px; font-weight: 800; letter-spacing: .1em; padding: 3px 9px; border-radius: 999px;
  background: var(--brand-grad); color: #fff;
}
.news-text { font-size: 14.5px; color: var(--text); flex: 1; }

/* ---------- 楽曲詳細ページ ---------- */
.song { padding: 44px 0 40px; }
.song-top { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: start; }
.song-jacket {
  border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: #000;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.5);
}
.song-jacket img { width: 100%; height: 100%; object-fit: cover; }
.song-info { padding-top: 4px; }
.song-rmc { font-size: 12px; font-weight: 700; letter-spacing: .2em; color: var(--faint); }
.song-title { font-size: clamp(28px, 5vw, 44px); font-weight: 900; line-height: 1.18; margin: 8px 0 6px; }
.song-artist { color: var(--muted); font-size: 15px; margin-bottom: 22px; }

.stream-label { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--faint); margin-bottom: 12px; }
.stream-links { display: flex; flex-wrap: wrap; gap: 10px; }
.stream-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.stream-btn:hover { transform: translateY(-2px); background: var(--surface-2); border-color: rgba(255,255,255,.22); }
.stream-btn .ic { width: 9px; height: 9px; border-radius: 50%; }
.stream-btn.apple .ic  { background: #fa2d48; box-shadow: 0 0 8px #fa2d48; }
.stream-btn.spotify .ic{ background: #1db954; box-shadow: 0 0 8px #1db954; }
.stream-btn.ytm .ic    { background: #ff5a5f; box-shadow: 0 0 8px #ff5a5f; }
.stream-btn.yt         { background: rgba(255,0,51,.14); border-color: rgba(255,0,51,.35); }
.stream-btn.yt .ic     { background: #ff0033; box-shadow: 0 0 8px #ff0033; }

.soon-note {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px; border-radius: var(--radius-sm);
  background: rgba(34,211,238,.07); border: 1px solid rgba(34,211,238,.22);
  color: var(--cyan); font-weight: 700; font-size: 14px;
}
.soon-sub { color: var(--muted); font-size: 13px; margin-top: 10px; }

/* ---------- 歌詞 ---------- */
.lyrics { margin-top: 40px; border-top: 1px solid var(--line); padding-top: 26px; }
.lyrics-toggle {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer;
  font-weight: 700; font-size: 15px; color: var(--text);
  background: none; border: 0; padding: 0;
}
.lyrics-toggle .chev { transition: transform .25s var(--ease); color: var(--pink); }
.lyrics-toggle[aria-expanded="true"] .chev { transform: rotate(90deg); }
.lyrics-body {
  font-family: var(--font); white-space: pre-wrap; word-break: break-word;
  color: #d7d7e6; font-size: 15px; line-height: 2; margin-top: 18px;
  padding: 22px 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); overflow-x: auto;
}
.lyrics-body::first-line { color: var(--muted); }

.back-link { display: inline-block; margin-top: 34px; color: var(--muted); font-size: 14px; font-weight: 600; }
.back-link:hover { color: var(--cyan); }

@media (max-width: 760px) {
  .song-top { grid-template-columns: 1fr; gap: 24px; }
  .song-jacket { max-width: 340px; margin: 0 auto; }
  .song-info { text-align: center; }
  .stream-links, .stream-label { justify-content: center; text-align: center; }
  .stream-links { justify-content: center; }
}

/* ---------- テキストページ (about / link / fanclub) ---------- */
.page-hero { padding: 60px 0 8px; text-align: center; }
.page-hero h1 { font-size: clamp(30px, 6vw, 52px); font-weight: 900; }
.page-hero p { color: var(--muted); margin-top: 10px; }

.prose { max-width: 680px; margin: 0 auto; }
.prose p { margin: 0 0 20px; color: #d3d3e2; font-size: 16px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 40px 0 14px; }
.prose .big { font-size: clamp(20px, 3.6vw, 28px); font-weight: 800; color: var(--text); line-height: 1.6; }

.link-list { max-width: 620px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.link-group-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; color: var(--faint); margin: 26px 0 4px; }
.link-card {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 17px 20px; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--line);
  font-weight: 700; font-size: 15px;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.link-card:hover { transform: translateY(-2px); background: var(--surface-2); border-color: rgba(255,255,255,.22); }
.link-card .sub { color: var(--muted); font-weight: 500; font-size: 13px; }
.link-card .arrow { color: var(--faint); transition: transform .18s var(--ease), color .18s; }
.link-card:hover .arrow { color: var(--cyan); transform: translateX(3px); }

/* fanclub / 準備中 */
.stage {
  max-width: 560px; margin: 20px auto 0; text-align: center;
  padding: 48px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.stage .emoji { font-size: 42px; }
.stage h2 { font-size: 24px; font-weight: 800; margin: 16px 0 10px; }
.stage p { color: var(--muted); }
.progress { height: 8px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; margin: 26px auto 8px; max-width: 320px; }
.progress > span { display: block; height: 100%; width: 17%; background: var(--brand-grad); border-radius: 999px; }
.progress-label { font-size: 12px; color: var(--faint); }

/* ---------- フッター ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 54px; margin-top: 40px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.footer-brand .brand-mark { width: 26px; height: 26px; border-radius: 8px; background: var(--brand-grad); display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 14px; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--faint); font-size: 12.5px; width: 100%; }

/* ---------- 出現アニメ ---------- */
/* JS有効時のみ隠す（JS無効なら最初から見える） */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
