/* ===== ビフォー・アフタースライダー ===== */
.slider_wrap {
  position: relative;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 4px;
  background: #222;
  user-select: none;
  touch-action: none;
}
.slider_wrap img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}
#img-before {
  clip-path: inset(0 50% 0 0);
}
.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, 0.85);
  transform: translateX(-50%);
  pointer-events: none;
}
.handle {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%);
  cursor: ew-resize;
  transition: transform 0.15s, box-shadow 0.15s;
}
.handle:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%) scale(1.1);
}
.handle.grabbing {
  transform: translate(-50%, -50%) scale(1.08);
  cursor: grabbing;
}
.handle svg {
  width: 22px;
  height: 22px;
  pointer-events: none;
}
.slider_label {
  position: absolute;
  top: 16px;
  padding: 4px 12px;
  border-radius: 2px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  pointer-events: none;
  backdrop-filter: blur(4px);
}
.slider_label-before { left: 16px; }
.slider_label-after { right: 16px; }

/* ===== サムネイル：3枚を横幅いっぱいに表示 ===== */
.thumbs {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
}
.thumb {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #333;
  opacity: 0.6;
  cursor: pointer;
  transition: border-color 0.2s, opacity 0.2s;
}
.thumb:hover { opacity: 0.85; }
.thumb.active { border-color: #fff; opacity: 1; }
.thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== コントロール ===== */
.controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
}
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.3);
  color: #1a4a7a;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
  backdrop-filter: blur(6px);
}
.btn:hover { background: rgba(255,255,255,0.55); border-color: rgba(255,255,255,0.9); }
.btn svg { width: 18px; height: 18px; }
#btn-play {
  width: 48px; height: 48px;
  border-color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.35);
}
#btn-play svg { width: 20px; height: 20px; }
.slide-count {
  font-size: 12px;
  color: #1a4a7a;
  font-weight: 600;
  letter-spacing: 0.1em;
  margin-left: auto;
  text-shadow: 0 1px 3px rgba(255,255,255,0.5);
}
