/* =============================================
   自作スライダー — WordPress用 (スコープ済み)
   配置先: wp-content/themes/bizboost-pro/assets/css/my-slider.css
   ============================================= */

:root {
  --bg-primary: #0a0a0b;
  --bg-secondary: #141416;
  --text-primary: #fafafa;
  --text-secondary: #71717a;
  --accent: #3b82f6;
  --accent-glow: rgba(59, 130, 246, 0.5);
}

/* ── ラッパー（bodyの代わり） ── */
.slider-section {
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── 背景（fixed → absolute でセクション内に収める） ── */
.slider-section .bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59,130,246,0.15), transparent),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(168,85,247,0.1), transparent),
    radial-gradient(ellipse 60% 40% at 20% 100%, rgba(34,197,94,0.08), transparent);
  pointer-events: none;
}

.slider-section .bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

/* ── レイアウト ── */
.slider-section .slider-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
  padding: 40px 20px;
}

.slider-section .slider-center {
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.slider-section header h2 {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.slider-section header p {
  font-size: 2.5rem;
  font-weight: 300;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── コントロール（左右） ── */
.slider-section .controls-left,
.slider-section .controls-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-shrink: 0;
}

/* ── シーン・カルーセル ── */
.slider-section .scene {
  width: 320px;
  height: 400px;
  perspective: 1200px;
  position: relative;
}

.slider-section .carousel {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-section .light-sphere {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,1) 0%, rgba(255,255,255,0.8) 10%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.9) 0%, rgba(200,220,255,0.6) 30%, rgba(150,180,255,0.3) 60%, transparent 80%);
  box-shadow:
    0 0 60px 30px rgba(255,255,255,0.8),
    0 0 120px 60px rgba(255,255,255,0.5),
    0 0 200px 100px rgba(200,220,255,0.3),
    0 0 300px 150px rgba(150,180,255,0.15);
  pointer-events: none;
  z-index: 0;
}

.slider-section .light-sphere::before {
  content: "";
  position: absolute;
  top: 15%; left: 20%;
  width: 40%; height: 30%;
  background: radial-gradient(ellipse, rgba(255,255,255,0.9) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(10px);
}

.slider-section .light-sphere::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, transparent 40%, rgba(255,255,255,0.1) 60%, transparent 70%);
}

/* ── カルーセルセル ── */
.slider-section .carousel__cell {
  position: absolute;
  width: 280px;
  height: 380px;
  left: 20px;
  top: 10px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 32px;
  backface-visibility: hidden;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow:
    0 0 80px 30px rgba(255,255,255,0.2),
    0 0 120px 60px rgba(255,255,255,0.1),
    inset 0 0 60px rgba(255,255,255,0.08);
  text-decoration: none;
}

.slider-section .carousel__cell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.8) 100%);
  z-index: 1;
}

.slider-section .carousel__cell::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
}

.slider-section .carousel__cell:hover {
  border-color: rgba(255,255,255,0.3);
  box-shadow:
    0 0 100px 40px rgba(255,255,255,0.25),
    0 0 150px 80px rgba(255,255,255,0.15),
    inset 0 0 80px rgba(255,255,255,0.12);
}

/* ── セル内の背景画像（CSS変数で動的に設定） ── */
.slider-section .cell__image {
  position: absolute;
  inset: 0;
  background-image: var(--cell-bg);
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-section .carousel__cell:hover .cell__image {
  transform: scale(1.1);
  opacity: 1;
}

/* ── セル内テキスト ── */
.slider-section .cell__content {
  position: relative;
  z-index: 2;
  text-align: center;
  transform: translateY(10px);
  opacity: 0.9;
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.slider-section .carousel__cell:hover .cell__content {
  transform: translateY(0);
  opacity: 1;
}

.slider-section .cell__number {
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.slider-section .cell__title {
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.slider-section .cell__subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.slider-section .cell__subtitle time {
  color: inherit;
}

/* ── インジケーター ── */
.slider-section .indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.slider-section .indicator__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  flex-shrink: 0;
}

.slider-section .indicator__dot:hover {
  background: rgba(255,255,255,0.4);
}

.slider-section .indicator__dot.active {
  background: var(--text-primary);
  height: 24px;
  border-radius: 4px;
}

/* ── ナビゲーションボタン ── */
.slider-section .nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.slider-section .nav-btn:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.2);
  transform: scale(1.05);
}

.slider-section .nav-btn:active {
  transform: scale(0.95);
}

.slider-section .nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

/* ── 自動再生ボタン ── */
.slider-section .play-btn {
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.03);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  flex-shrink: 0;
  white-space: nowrap;
}

.slider-section .play-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.2);
}

.slider-section .play-btn.playing {
  color: var(--accent);
  border-color: var(--accent-glow);
  box-shadow: 0 0 20px var(--accent-glow);
}

/* ── キーボードヒント ── */
.slider-section .hint {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.7rem;
  margin-top: 8px;
  pointer-events: none;
}

.slider-section .hint span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.slider-section .hint kbd {
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  font-family: inherit;
  font-size: 0.65rem;
}

/* ── 反射 ── */
.slider-section .reflection {
  position: absolute;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 100px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
  filter: blur(20px);
  pointer-events: none;
}

/* ── レスポンシブ（スマホでコントロールを下に移動） ── */
@media (max-width: 768px) {
  .slider-section .slider-inner {
    flex-direction: column;
  }

  .slider-section .controls-left,
  .slider-section .controls-right {
    flex-direction: row;
  }

  .slider-section .indicator {
    flex-direction: row;
  }

  .slider-section .indicator__dot.active {
    height: 8px;
    width: 24px;
  }

  .slider-section .hint {
    display: none;
  }
}
