/* =========================================================
   Liquid Glass Design — iOS 26 Inspired
   ========================================================= */

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

:root {
  --glass-bg: rgba(255, 255, 255, 0.08);
  --glass-bg-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.22);
  --glass-border-strong: rgba(255, 255, 255, 0.35);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.18),
                  0 1px 0 rgba(255, 255, 255, 0.4) inset,
                  0 -1px 0 rgba(255, 255, 255, 0.08) inset;
  --glass-blur: 24px;
  --text-primary: rgba(255, 255, 255, 0.96);
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.54);
  --accent-1: #ff6ec7;
  --accent-2: #7b9bff;
  --accent-3: #6effe1;
}

html, body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display",
               "Helvetica Neue", "Hiragino Sans", "ヒラギノ角ゴ ProN W3",
               "Yu Gothic", sans-serif;
  color: var(--text-primary);
  background: transparent;
  overflow-x: hidden;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

html {
  /* 画像が読み込めない最終フォールバック */
  background:
    radial-gradient(circle at 30% 40%, #d4a5b9 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, #8a7ca8 0%, transparent 55%),
    linear-gradient(135deg, #2a1a2e 0%, #4a2c4e 100%);
  background-attachment: fixed;
}

/* ===== 背景画像 ===== */
.background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  /* 画像読み込み前の美しいグラデーション */
  background:
    radial-gradient(circle at 30% 40%, #d4a5b9 0%, transparent 55%),
    radial-gradient(circle at 70% 60%, #8a7ca8 0%, transparent 55%),
    linear-gradient(135deg, #2a1a2e 0%, #4a2c4e 100%);
}

.background img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: saturate(1.08) contrast(1.02);
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: transform;
}

.background img.loaded {
  opacity: 1;
}

.background-overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 110, 199, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(123, 155, 255, 0.16), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(110, 255, 225, 0.12), transparent 60%),
    linear-gradient(180deg, rgba(10, 6, 18, 0.15) 0%, rgba(10, 6, 18, 0.55) 100%);
}

/* 雨レイヤー(背景画像の上 + コンテンツの下) */
#rain-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s ease;
}
#rain-canvas.active {
  opacity: 1;
}

/* 背景レイヤーより前面にコンテンツを配置 */
.hero,
.features,
.player-section,
.contact,
.glass-footer {
  position: relative;
  z-index: 3;
}

/* =========================================================
   GLASS CARD ベース — リキッドグラスの中核
   ========================================================= */

.glass-card {
  position: relative;
  /* 背景は LiquidGlass JS によって rgba(255,255,255,0.04) に上書きされる */
  background: rgba(255, 255, 255, 0.04);
  /* JS が backdrop-filter に SVG 屈折フィルターを設定するため初期値は最小限 */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s ease;

  /* マウス追従用 CSS 変数 */
  --lg-mx: 50%;
  --lg-my: 0%;
  --lg-mouse-opacity: 0;
}

/* 上端の微細な鏡面ハイライト + マウス追従ハイライト */
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    /* マウス位置の光 */
    radial-gradient(
      circle at var(--lg-mx) var(--lg-my),
      rgba(255, 255, 255, calc(0.22 * var(--lg-mouse-opacity))) 0%,
      rgba(255, 255, 255, 0) 40%
    ),
    /* 上端の控えめなシーン */
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.10) 0%,
      rgba(255, 255, 255, 0.02) 35%,
      transparent 70%
    );
  transition: background 0.2s ease;
  z-index: 1;
}

/* 縁の光のリング(屈折で歪んだ縁を引き締める) */
.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.08) 70%,
    rgba(255, 255, 255, 0.4) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
                linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

.glass-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.28),
              0 1px 0 rgba(255, 255, 255, 0.5) inset,
              0 -1px 0 rgba(255, 255, 255, 0.1) inset;
}

/* =========================================================
   ナビゲーション
   ========================================================= */

.glass-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 10px 14px 10px 24px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
              0 1px 0 rgba(255, 255, 255, 0.35) inset;
  z-index: 100;
  max-width: calc(100% - 32px);
}

.nav-logo {
  font-weight: 700;
  font-size: 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.logo-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  box-shadow: 0 0 12px rgba(255, 110, 199, 0.6);
}
.logo-accent {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 4px;
}
.nav-menu a {
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
}
.nav-menu a:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}
.nav-menu a.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.14);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
}

/* =========================================================
   ボタン
   ========================================================= */

.glass-button,
.glass-button-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
              0 1px 0 rgba(255, 255, 255, 0.4) inset;
  overflow: hidden;
}

.glass-button-pill {
  border-radius: 999px;
  padding: 10px 20px;
}

.glass-button:hover,
.glass-button-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22),
              0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.glass-button:active,
.glass-button-pill:active {
  transform: translateY(0) scale(0.98);
}

.glass-button.primary {
  background: linear-gradient(135deg,
              rgba(255, 110, 199, 0.45),
              rgba(123, 155, 255, 0.45));
  border-color: rgba(255, 255, 255, 0.4);
}

.glass-button.primary:hover {
  background: linear-gradient(135deg,
              rgba(255, 110, 199, 0.6),
              rgba(123, 155, 255, 0.6));
}

/* =========================================================
   ヒーローセクション
   ========================================================= */

.hero {
  min-height: 100vh;
  padding: 120px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-card {
  max-width: 720px;
  width: 100%;
  padding: 56px 48px;
  text-align: center;
  border-radius: 36px;
}
.hero-card::before { border-radius: 36px 36px 0 0; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}
.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 8px var(--accent-3);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 20px;
}

.gradient-text {
  background: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 50%, var(--accent-3) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 480px;
  margin: 0 auto 36px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact / Blog ボタンの幅を揃える */
.hero-actions .glass-button {
  min-width: 168px;
}

/* 浮遊パネル コンテナ — PC では透過(子要素は absolute で個別配置) */
.floating-panels {
  display: contents;
}

/* 浮遊パネル */
.floating-panel {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  font-size: 13px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transform-origin: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  transition:
    transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.3s ease,
    border-radius 0.4s ease;
}
.floating-panel::before { border-radius: inherit; }

/* 初期状態(ジェリー登場前) — 小さな歪んだ水滴 */
.floating-panel:not(.is-visible):not(.jelly-done) {
  opacity: 0;
  transform: translate3d(0, 90px, 0) scale(0.35);
  border-radius: 50%;
}

/* IntersectionObserver で .is-visible が付与されたらジェリー登場
   fill-mode: both で animation-delay 中も 0% の値を維持(ちらつき防止) */
.floating-panel.is-visible {
  animation:
    jellyShape 0.6s cubic-bezier(0.4, 0, 0.2, 1) both,
    jellyJiggle 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.floating-panels .floating-panel.is-visible:nth-child(2) {
  animation-delay: 0.2s, 0.2s;
}
.floating-panels .floating-panel.is-visible:nth-child(3) {
  animation-delay: 0.4s, 0.4s;
}

/* ジェリー完了後 — PC では浮遊アニメーションへ自然に引き継ぎ */
.floating-panel.jelly-done {
  animation: float 6s ease-in-out infinite;
}

/* ホバー時に少し浮き上がってクリック可能を明示 */
.floating-panel.jelly-done:hover {
  animation-play-state: paused;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3),
              0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.panel-icon {
  width: 36px; height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 110, 199, 0.4), rgba(123, 155, 255, 0.4));
  border-radius: 10px;
  font-size: 18px;
}
.panel-title { font-weight: 600; font-size: 13.5px; }
.panel-sub   { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

.panel-1 { top: 16%; left: 6%; animation-delay: 0s; }
.panel-2 { top: 24%; right: 8%; animation-delay: 1.5s; }
.panel-3 { bottom: 18%; left: 10%; animation-delay: 3s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

/* =========================================================
   フィーチャーセクション
   ========================================================= */

.features,
.player-section,
.contact {
  max-width: 1120px;
  margin: 0 auto;
  padding: 80px 24px;
}

.section-title {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 800;
  text-align: center;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 48px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  border-radius: 24px;
  /* 初期状態:小さな歪んだ水滴 */
  opacity: 0;
  transform: translate3d(0, 90px, 0) scale(0.35);
  border-radius: 50%;
  transform-origin: center;
  will-change: transform, opacity;
  backface-visibility: hidden;
  -webkit-font-smoothing: subpixel-antialiased;
}
.feature-card::before { border-radius: inherit; }

/* IntersectionObserver で .is-visible が付与されたらジェリー登場
   fill-mode: both で animation-delay 中も 0% の値を維持(ちらつき防止) */
.feature-card.is-visible {
  animation:
    jellyShape 0.6s cubic-bezier(0.4, 0, 0.2, 1) both,
    jellyJiggle 2.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}
.feature-card.is-visible:nth-child(2) {
  animation-delay: 0.20s, 0.20s;
}
.feature-card.is-visible:nth-child(3) {
  animation-delay: 0.40s, 0.40s;
}
.feature-card.is-visible:nth-child(4) {
  animation-delay: 0.60s, 0.60s;
}

/* ① 形状変化 — 円 → 角丸四角(短時間で完了して以降は形を固定) */
@keyframes jellyShape {
  0% {
    border-radius: 50%;
  }
  60% {
    border-radius: 32% 36% 28% 32% / 32% 30% 34% 30%;
  }
  100% {
    border-radius: 24px;
  }
}

/* ② ジェリーのプルプル運動 — transform のみで GPU 完全滑らか */
@keyframes jellyJiggle {
  /* 微小な歪んだ滴が下方に */
  0% {
    opacity: 0;
    transform: translate3d(0, 90px, 0) scale(0.35);
  }
  /* 急速に立ち上がりながら上方へ(縦に伸びて上昇) */
  18% {
    opacity: 1;
    transform: translate3d(0, 6px, 0) scale3d(0.94, 1.10, 1);
  }
  /* オーバーシュートして横に広がる(着地で潰れる) */
  32% {
    transform: translate3d(0, -3px, 0) scale3d(1.08, 0.92, 1);
  }
  /* 反発して縦に伸びる */
  46% {
    transform: translate3d(0, 1px, 0) scale3d(0.96, 1.04, 1);
  }
  /* 再び横に広がる(振幅が小さくなる) */
  60% {
    transform: translate3d(0, 0, 0) scale3d(1.03, 0.97, 1);
  }
  /* ほぼ収まる微震動 */
  74% {
    transform: translate3d(0, 0, 0) scale3d(0.985, 1.015, 1);
  }
  /* 残響 */
  87% {
    transform: translate3d(0, 0, 0) scale3d(1.007, 0.993, 1);
  }
  /* 完全静止 */
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale3d(1, 1, 1);
  }
}

/* アクセシビリティ:アニメーション低減環境では即時表示 */
@media (prefers-reduced-motion: reduce) {
  .feature-card {
    opacity: 1;
    transform: none;
    border-radius: 24px;
    filter: none;
  }
  .feature-card.is-visible { animation: none; }
}

.feature-icon-wrap {
  width: 56px; height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 110, 199, 0.35), rgba(123, 155, 255, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  margin-bottom: 20px;
  font-size: 26px;
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15),
              0 1px 0 rgba(255, 255, 255, 0.4) inset;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   プレイヤーカード
   ========================================================= */

.player-card {
  display: flex;
  gap: 28px;
  padding: 28px;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 28px;
}
.player-card::before { border-radius: 28px 28px 0 0; }

.player-art {
  width: 140px; height: 140px;
  flex-shrink: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2), var(--accent-3));
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(255, 110, 199, 0.3);
}
.art-inner {
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.4), transparent 60%),
              linear-gradient(135deg, rgba(255, 110, 199, 0.7), rgba(110, 255, 225, 0.5));
  animation: spin 12s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.player-info {
  flex: 1;
  min-width: 0;
}
.player-track {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.player-artist {
  color: var(--text-secondary);
  font-size: 13.5px;
  margin-top: 2px;
}

.player-progress { margin: 18px 0 14px; }

.progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: visible;
}
.progress-fill {
  height: 100%;
  width: 38%;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
  border-radius: 999px;
}
.progress-thumb {
  position: absolute;
  top: 50%;
  left: 38%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.progress-time {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.ctrl-btn {
  width: 42px; height: 42px;
  padding: 0;
  transition: transform 0.2s ease, background 0.2s ease;
}

/* 長押しスクラブ中の視覚フィードバック */
.ctrl-btn.scrubbing {
  background: linear-gradient(135deg,
              rgba(255, 110, 199, 0.35),
              rgba(123, 155, 255, 0.35));
  animation: scrubPulse 0.6s ease-in-out infinite;
}

@keyframes scrubPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}
.ctrl-play {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(255, 110, 199, 0.5), rgba(123, 155, 255, 0.5));
}

/* =========================================================
   コンタクト
   ========================================================= */

.contact-card {
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 56px 48px;
  text-align: center;
  border-radius: 32px;
}
.contact-card::before { border-radius: 32px 32px 0 0; }

/* SNS / Contact カード(横並び 4 列。狭い画面では自動的に折り返し) */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 36px;
}

@media (max-width: 900px) {
  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  text-align: left;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.contact-link-card::before { border-radius: 18px 18px 0 0; }

.contact-link-card:hover {
  transform: translateY(-3px);
}

/* SNS / Contact のブランドカラーを取り入れた美しいグラデーション
   !important で LiquidGlass の自動透明背景を上書き */
.contact-link-card[href*="instagram"] {
  background: linear-gradient(135deg,
    rgba(255, 175, 90, 0.45) 0%,
    rgba(232, 75, 130, 0.42) 45%,
    rgba(170, 60, 200, 0.40) 100%) !important;
  border-color: rgba(255, 200, 150, 0.45) !important;
}

.contact-link-card[href*="x.com"] {
  background: linear-gradient(135deg,
    rgba(120, 110, 220, 0.42) 0%,
    rgba(70, 60, 150, 0.42) 100%) !important;
  border-color: rgba(180, 170, 255, 0.45) !important;
}

.contact-link-card[href*="tiktok"] {
  background: linear-gradient(135deg,
    rgba(110, 230, 230, 0.42) 0%,
    rgba(40, 100, 130, 0.30) 50%,
    rgba(238, 60, 110, 0.42) 100%) !important;
  border-color: rgba(150, 240, 240, 0.45) !important;
}

.contact-link-card[href*="yukeblog"] {
  background: linear-gradient(135deg,
    rgba(110, 255, 225, 0.42) 0%,
    rgba(123, 155, 255, 0.42) 100%) !important;
  border-color: rgba(150, 250, 230, 0.45) !important;
}

.contact-link-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 13px;
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18),
              0 1px 0 rgba(255, 255, 255, 0.5) inset;
  z-index: 5;
  position: relative;
}

.contact-link-text {
  position: relative;
  z-index: 5;
  min-width: 0;
}

.contact-link-name {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.contact-link-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

@media (max-width: 520px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
}

.contact-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.contact-sub {
  color: var(--text-secondary);
  font-size: 14.5px;
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.glass-input {
  flex: 1;
  min-width: 200px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: all 0.3s ease;
}
.glass-input::placeholder { color: var(--text-muted); }
.glass-input:focus {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.contact-message {
  margin-top: 16px;
  min-height: 20px;
  font-size: 13.5px;
  color: var(--accent-3);
  font-weight: 600;
}

/* =========================================================
   フッター
   ========================================================= */

.glass-footer {
  text-align: center;
  padding: 40px 24px 60px;
  color: var(--text-muted);
  font-size: 13px;
}

/* =========================================================
   レスポンシブ
   ========================================================= */

@media (max-width: 768px) {
  .glass-nav { display: none; }                     /* 上部ナビをまるごと非表示 */

  /* パネルコンテナ:hero 最上部の横並びコンテナへ */
  .hero {
    flex-direction: column;
    padding-top: 48px;
    padding-bottom: 120px;                          /* 下部ナビ分のスペース */
  }
  .floating-panels {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 44px;       /* 上のカードとの間に余白 */
    margin-bottom: 8px;
    flex-wrap: nowrap;
  }
  .floating-panel {
    /* フローティングを解除、アイコンだけ表示 */
    position: static;
    padding: 10px;
    gap: 0;
    border-radius: 16px;
    aspect-ratio: 1 / 1;
    width: 56px;
    flex: 0 0 auto;
    justify-content: center;
  }
  .floating-panel::before { border-radius: inherit; }
  /* モバイルでは jelly-done でも浮遊しない */
  .floating-panel.jelly-done { animation: none; }
  .floating-panel .panel-text { display: none; }
  .floating-panel .panel-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    flex-shrink: 0;
  }
  .floating-panel .panel-icon svg {
    width: 20px;
    height: 20px;
  }

  .hero-card { padding: 40px 28px; }
  .glass-footer { padding-bottom: 100px; }
  .player-card { flex-direction: column; text-align: center; padding: 24px; }
  .player-art { width: 180px; height: 180px; }
}

/* =========================================================
   モバイル用フローティング下部ナビ
   ========================================================= */
.mobile-nav {
  display: none;                                    /* デスクトップでは非表示 */
}

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 8px;
    position: fixed;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(28px) saturate(180%);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25),
                0 1px 0 rgba(255, 255, 255, 0.35) inset;
    z-index: 100;
    max-width: calc(100% - 24px);
  }

  .mobile-nav .nav-menu {
    display: flex;
    list-style: none;
    gap: 2px;
    margin: 0;
    padding: 0;
  }

  .mobile-nav .nav-menu a {
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.3s ease;
  }
  .mobile-nav .nav-menu a:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
  }
  .mobile-nav .nav-menu a.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.3) inset;
  }

  .mobile-nav .nav-play {
    width: 36px;
    height: 36px;
    padding: 0;
    flex-shrink: 0;
  }
}

/* 小さい端末での余白調整 */
@media (max-width: 380px) {
  .mobile-nav {
    gap: 4px;
    padding: 6px 6px;
  }
  .mobile-nav .nav-menu a {
    padding: 7px 9px;
    font-size: 12px;
  }
}

/* スクロールバー */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.25); }

/* =========================================================
   リキッドグラス カスタムカーソル
   ========================================================= */

/* 背景上ではネイティブカーソルを隠す */
body { cursor: none; }

/* インタラクティブ要素ではネイティブカーソルを再表示 */
a, button, input, textarea, select,
.glass-button, .glass-button-pill,
.ctrl-btn, .nav-menu a,
[role="button"], [onclick] {
  cursor: pointer;
}
.glass-input { cursor: text; }
.progress-bar { cursor: pointer; }

/* タッチデバイスでは無効化 */
@media (hover: none) {
  body { cursor: auto; }
  #cursor-glass { display: none; }
}

#cursor-glass {
  position: fixed;
  top: 0; left: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.32),
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 -1px 0 rgba(255, 255, 255, 0.12) inset;
  opacity: 0;
  transition: opacity 0.25s ease,
              width 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}

#cursor-glass.visible { opacity: 1; }

/* インタラクティブ要素上ではフェードアウト */
#cursor-glass.hover-interactive {
  opacity: 0;
  width: 24px;
  height: 24px;
}

/* クリック中は少し縮む */
#cursor-glass.pressed {
  width: 44px;
  height: 44px;
}

/* カーソル内側の鏡面ハイライト */
#cursor-glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(circle at 30% 25%,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.12) 18%,
      transparent 45%),
    radial-gradient(circle at 70% 80%,
      rgba(255, 255, 255, 0.18) 0%,
      transparent 30%);
  z-index: 2;
}

/* 縁の光のリング */
#cursor-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.7) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.1) 60%,
    rgba(255, 255, 255, 0.5) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box,
                linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 3;
}
