/* ════════════════════════════════
   PB: Cinema Slider
   明るい背景バージョン（アルバムをめくる感覚）
   ════════════════════════════════ */

.pb-cinema-slider {
  position: relative;
  background: var(--pb-section-bg, #F5F0E8);
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left:  calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 64px 0 48px;
}

/* ── 見出し ── */
.pcs-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 2;
}
.pcs-label {
  font-family: var(--pb-font-sans, sans-serif);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--pb-text-sub, #7A6550);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.pcs-heading {
  font-family: var(--pb-font-serif, serif);
  font-size: clamp(20px, 3.5vw, 34px);
  font-weight: 400;
  color: var(--pb-text, #332518);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

/* ── スライダーエリア ── */
.pcs-wrap {
  position: relative;
  height: 340px;
  overflow: hidden;
  cursor: pointer;
}
@media (max-width: 600px) {
  .pcs-wrap { height: 260px; }
}

/* 左右フェード（背景色と連動） */
.pcs-wrap::before,
.pcs-wrap::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: clamp(60px, 12vw, 160px);
  z-index: 5;
  pointer-events: none;
}
.pcs-wrap::before {
  left: 0;
  background: linear-gradient(to right, var(--pb-section-bg, #F5F0E8) 0%, transparent 100%);
}
.pcs-wrap::after {
  right: 0;
  background: linear-gradient(to left, var(--pb-section-bg, #F5F0E8) 0%, transparent 100%);
}

/* ── トラック ── */
.pcs-track {
  display: flex;
  align-items: center;
  gap: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  will-change: transform;
}

/* ── カード ── */
.pcs-card {
  flex-shrink: 0;
  cursor: pointer;
  filter: brightness(0.92) saturate(0.88);
  transition: filter 0.5s ease, transform 0.4s cubic-bezier(0.23,1,0.32,1);
}
.pcs-card:hover {
  filter: brightness(1) saturate(1.05);
  transform: rotate(0deg) translateY(-6px) scale(1.03) !important;
  z-index: 2;
}

.pcs-card-inner {
  background: var(--pb-warm-white, #FFFEFB);
  padding: 8px 8px 32px 8px;
  box-shadow:
    0 4px 16px rgba(60,30,10,0.10),
    0 1px 4px rgba(60,30,10,0.07);
  pointer-events: none;
}

.pcs-card img {
  display: block;
  object-fit: cover;
  pointer-events: none;
}

/* ── 一時停止表示 ── */
.pcs-pause {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(60,30,10,0.06);
  border: 1px solid rgba(60,30,10,0.15);
  padding: 7px 18px;
  font-family: var(--pb-font-sans, sans-serif);
  font-size: 9px;
  letter-spacing: 0.32em;
  color: var(--pb-text-sub, #7A6550);
  text-transform: uppercase;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 6;
}
.pcs-pause.is-visible { opacity: 1; }

/* ── ヒント ── */
.pcs-hint {
  text-align: center;
  font-family: var(--pb-font-sans, sans-serif);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--pb-taupe, #C9B99A);
  text-transform: uppercase;
  margin-top: 24px;
  pointer-events: none;
}

/* ── フォーカスオーバーレイ ── */
.pcs-focus {
  position: fixed;
  inset: 0;
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.pcs-focus.is-open {
  opacity: 1;
  pointer-events: auto;
}

.pcs-focus-bg {
  position: absolute;
  inset: 0;
  background: rgba(60, 35, 15, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.pcs-focus-card {
  position: relative;
  z-index: 1;
  transform: scale(0.88);
  transition: transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.pcs-focus.is-open .pcs-focus-card {
  transform: scale(1);
}

.pcs-focus-frame {
  background: var(--pb-warm-white, #FFFEFB);
  padding: 12px 12px 48px 12px;
  box-shadow: 0 24px 64px rgba(60,30,10,0.22);
}

.pcs-focus-img {
  display: block;
  max-width: min(88vw, 580px);
  max-height: 72vh;
  width: auto;
  height: auto;
  object-fit: contain;
}

.pcs-focus-close {
  position: absolute;
  top: -14px; right: -14px;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--pb-warm-white, #FFFEFB);
  border: none;
  cursor: pointer;
  color: var(--pb-text, #332518);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(60,30,10,0.15);
  transition: transform 0.2s;
}
.pcs-focus-close:hover { transform: scale(1.1) rotate(90deg); }

/* ── エディター ── */
.pb-cinema-editor-wrap {
  border: 1px dashed #c4b8a8;
  border-radius: 4px;
  padding: 20px;
  background: #faf7f2;
  color: #332518;
}
.pb-cinema-editor-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.pb-cinema-editor-count {
  margin-left: auto;
  background: var(--pb-accent, #C07A52);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
}
.pb-cinema-editor-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.pb-cinema-editor-thumb {
  position: relative;
  width: 72px; height: 72px;
}
.pb-cinema-editor-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.pb-cinema-editor-remove {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--pb-accent, #C07A52);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
