/* ============================================================
   Coedo Music Labo — Shop CSS
   Dark Gold Premium Design
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+JP:wght@300;400;500;700;900&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Colors */
  --bg-primary:    #FAF6EC;      /* 温かみのあるアイボリー（メイン背景） */
  --bg-secondary:  #FAF7F2;      /* カードの中の淡い背景 */
  --bg-card:       #FFFFFF;      /* クリーンな白（コンテンツカード背景） */
  --bg-card-hover: #F6F1E5;      /* カードホバー時のトーン */
  --gold-primary:  #3F9AB4;      /* ティールブルー（ジャケットの絵の青緑） */
  --gold-light:    #4FADC5;      /* サブの明るいシアンブルー */
  --gold-dark:     #244F5E;      /* 濃いネイビーティール */
  --accent-blue:   #3F9AB4;
  --accent-purple: #4FADC5;
  --text-primary:  #1E3F4C;      /* 深みのある暗いティールブルー（見出し・本文） */
  --text-secondary:#507887;      /* 中間色（サブテキスト・解説文など） */
  --text-muted:    #87A2AD;      /* 薄めのカラー */
  --border-color:  #E6DFD3;      /* ジャケットに合う優しいベージュ境界線 */
  --border-glow:   rgba(63, 154, 180, 0.4);
  --error-color:   #ff6b6b;
  --success-color: #4caf88;

  /* Typography */
  --font-sans:     'Outfit', 'Noto Sans JP', sans-serif;

  /* Spacing */
  --section-gap:   80px;
  --card-radius:   24px;
  --btn-radius:    50px;

  /* Transitions */
  --transition:    0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  /* Animated gradient & grid background */
  background-image:
    linear-gradient(rgba(63, 154, 180, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63, 154, 180, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

a { color: var(--gold-primary); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--gold-dark); border-radius: 3px; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(250, 246, 236, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-primary);
  letter-spacing: 0.05em;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--gold-primary), var(--accent-blue));
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nav-tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 400;
  display: none;
}

@media (min-width: 600px) { .nav-tagline { display: block; } }

/* ── Hero Section ─────────────────────────────────────────── */
.hero {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 30%, rgba(212, 175, 55, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeInDown 0.6s ease;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--gold-primary);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-title {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title-main {
  display: block;
  background: linear-gradient(135deg, #fff 0%, var(--gold-light) 50%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-title-sub {
  display: block;
  font-size: 0.45em;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 8px;
  -webkit-text-fill-color: var(--text-secondary);
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.7s ease 0.2s both;
}

/* ── Album Card ───────────────────────────────────────────── */
.album-section {
  padding: 0 0 var(--section-gap);
}

.album-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 40px;
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.8s ease 0.3s both;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .album-card {
    grid-template-columns: 340px 1fr;
    align-items: start;
  }
}

.album-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-primary), transparent);
}

.album-cover-wrap {
  position: relative;
}

.album-cover {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(212, 175, 55, 0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.album-cover:hover {
  transform: scale(1.02) rotate(0.5deg);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 60px rgba(212, 175, 55, 0.25);
}

.limited-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: linear-gradient(135deg, #c0392b, #e74c3c);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 50px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.5);
}

.album-info {}

.album-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.album-name {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 8px;
}

.album-subtitle {
  color: var(--text-secondary);
  margin-bottom: 24px;
  font-size: 0.95rem;
}

.album-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.meta-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.meta-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.price-section {
  margin-bottom: 28px;
  padding: 20px;
  background: rgba(212, 175, 55, 0.07);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 12px;
}

.price-main {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 4px;
}

.price-shipping {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.quantity-section {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.qty-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.qty-btn {
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: var(--gold-primary);
  font-size: 1.2rem;
  cursor: pointer;
  transition: background var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.qty-btn:hover { background: rgba(212, 175, 55, 0.12); }
.qty-btn:disabled { opacity: 0.3; cursor: not-allowed; }

.qty-display {
  width: 48px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  border: none;
  background: none;
  outline: none;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold-primary), var(--gold-light));
  background-size: 200% auto;
  color: #1a1000;
  font-size: 1rem;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: var(--btn-radius);
  border: none;
  cursor: pointer;
  transition: all 0.4s ease;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.45);
}

.btn-primary:active { transform: translateY(0); }

.btn-primary svg { width: 18px; height: 18px; }

/* ── Track List Section ───────────────────────────────────── */
.tracks-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-color);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gold-primary);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
}

.tracks-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 640px) {
  .tracks-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .tracks-grid { grid-template-columns: repeat(2, 1fr); }
}

.track-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 16px;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
  cursor: default;
}

.track-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.track-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: rgba(212, 175, 55, 0.1);
}

.track-body {
  flex: 1;
  min-width: 0;
}

.track-num-artist {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.track-num {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.1em;
}

.track-artist {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gold-light);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-title {
  font-size: 0.8rem;
  color: var(--text-primary);
  margin-bottom: 4px;
  font-weight: 600;
}

.track-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.track-x-link {
  font-size: 0.7rem;
  color: var(--text-muted);
  transition: color var(--transition);
  display: inline-block;
  margin-top: 6px;
}

.track-x-link:hover { color: var(--accent-blue); }

/* ── About Section ────────────────────────────────────────── */
.about-section {
  padding: var(--section-gap) 0;
  border-top: 1px solid var(--border-color);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--card-radius);
  padding: 28px 24px;
  backdrop-filter: blur(10px);
  transition: all var(--transition);
}

.about-card:hover {
  border-color: var(--gold-primary);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(30, 63, 76, 0.08);
}

.about-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
  filter: drop-shadow(0 4px 8px rgba(63, 154, 180, 0.15));
}

.about-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-dark);  /* Dark navy teal for contrast */
  margin-bottom: 8px;
}

.about-text {
  font-size: 0.88rem;
  color: var(--text-primary); /* Use primary dark text for better readability */
  line-height: 1.7;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
}

.footer-logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold-primary);
  margin-bottom: 8px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
}

/* ── Event Info Banner ────────────────────────────────────── */
.event-banner {
  background: rgba(63, 154, 180, 0.06);
  border: 1px solid rgba(63, 154, 180, 0.2);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.event-banner-icon { font-size: 1.6rem; }

.event-banner-text { flex: 1; min-width: 0; }

.event-banner-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--gold-dark);
  margin-bottom: 4px;
}

.event-banner-desc {
  font-size: 0.82rem;
  color: var(--text-primary);
}

/* ── Stock Counter ────────────────────────────────────────── */
.stock-bar-wrap {
  margin-bottom: 20px;
}

.stock-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.stock-bar {
  height: 4px;
  background: rgba(30, 63, 76, 0.08);
  border-radius: 2px;
  overflow: hidden;
}

.stock-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), var(--gold-primary));
  border-radius: 2px;
  transition: width 1s ease;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
  .album-card { padding: 24px; }
  .btn-primary { max-width: 100%; }
}

/* ── Background Effects ──────────────────────────────────── */
.bg-jacket {
  position: fixed;
  inset: 0;
  background-image: url('/album_cover.png');
  background-position: center 25%;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.12;
  filter: saturate(0.85) blur(2px);
  z-index: -2;
  pointer-events: none;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: -1;
  animation: floatGlow 15s ease-in-out infinite alternate;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(63, 154, 180, 0.06) 0%, transparent 70%);
  top: -200px; left: -200px;
  animation-delay: 0s;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(228, 220, 205, 0.4) 0%, transparent 70%);
  bottom: -150px; right: -100px;
  animation-delay: -4s;
}

@keyframes floatGlow {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.1); }
}
