/* カードとバッジのz-indexを下げる（TOPボタンより下にする） */
body:has(.video-overlay) [class*="z-10"] {
  z-index: 2 !important;
}

/* ページ上部の余白を削除（このページ専用） */
/* .video-overlayクラスを持つ要素がある場合のみ適用 */
body:has(.video-overlay) article {
  margin-top: 0 !important;
}
body:has(.video-overlay) #single_header {
  margin-top: 0 !important;
}
body:has(.video-overlay) .prose {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
body:has(.video-overlay) main {
  margin-top: 0 !important;
  padding-top: 0 !important;
}
.video-overlay {
  margin-top: 0 !important;
}
/* タイトル部分を数ピクセル上げる */
body:has(.video-overlay) .video-overlay > div:first-child {
  margin-top: -8px !important;
}

.product-slider {
  scrollbar-width: none;
  -ms-overflow-style: none;
  overflow-y: hidden !important;
}
.product-slider::-webkit-scrollbar {
  display: none;
}
/* 背景動画 */
.background-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.6;
  filter: blur(12px);
  -webkit-filter: blur(12px);
}
.video-overlay {
  position: relative;
  z-index: 1;
}
.snap-center {
  -webkit-touch-callout: none;
  overflow: hidden;
  position: relative;
}
/* カード内のh4タグのマージンをリセット */
.product-card h4 {
  margin: 0 !important;
}
/* .proseのh3タグのmargin-topを無効化 */
.prose h3 {
  margin-top: 0 !important;
}
/* スライダーインジケーター */
.slider-indicators {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 5;
}
.slider-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.3);
}
.slider-indicator.active {
  background-color: rgba(255, 255, 255, 1);
}
/* モーダル内のナビゲーションボタン */
.modal-nav-button {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 3rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 60;
  border-radius: 8px;
}
.modal-nav-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}
.modal-nav-button.prev {
  left: 20px;
}
.modal-nav-button.next {
  right: 20px;
}
/* タブレットサイズ */
@media (max-width: 1024px) {
  .modal-nav-button.prev {
    left: 10px;
  }
  .modal-nav-button.next {
    right: 10px;
  }
}
/* スマホサイズ */
@media (max-width: 768px) {
  .modal-nav-button {
    padding: 0.5rem 0.5rem;
    font-size: 2rem;
  }
  .modal-nav-button.prev {
    left: 5px;
  }
  .modal-nav-button.next {
    right: 5px;
  }
  #imageModal {
    background-color: rgba(0, 0, 0, 0.75) !important;
  }
}
/* モーダル閉じるボタン */
.modal-close-button {
  position: fixed;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  color: black;
  border: none;
  font-size: 1.5rem;
  padding: 0.5rem 2rem;
  cursor: pointer;
  border-radius: 9999px;
  font-weight: bold;
  transition: background-color 0.3s ease;
  z-index: 70;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}
.modal-close-button:hover {
  background-color: rgba(255, 255, 255, 1);
}
/* スマホサイズ */
@media (max-width: 768px) {
  .modal-close-button {
    bottom: 20px;
    background-color: rgba(255, 255, 255, 0.95);
  }
}
/* モーダル内のインジケーター */
.modal-indicators {
  position: fixed;
  top: 65px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 60;
}
.modal-indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.8);
}
.modal-indicator.active {
  background-color: rgba(255, 255, 255, 1);
}
/* 集中線エフェクト */
.concentration-lines {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(200vw, 200vh);
  height: max(200vw, 200vh);
  /* background-imageはJavaScriptで動的に生成 */
  z-index: 1;
  opacity: 0.8;
  animation: rotate-lines 30s linear infinite;
}
@keyframes rotate-lines {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}
