/* ─── 横スクロールセクション共通 ─── */
html {
  overflow-x: hidden;
}

.h-scroll-section {
  display: flex;
  flex-direction: column;
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-header {
  flex-shrink: 0;
  padding: 20px 5% 40px;
  text-align: center;
}

/* Swiper コンテナ */
.h-swiper {
  /* 横はクリップ（Swiper のスライド隠し）、縦はホバー浮き上がりを逃がす */
  overflow-x: clip !important;
  overflow-y: visible !important;
  padding-top: 12px;
  margin-top: -12px;
}

/* swiper-wrapper：Swiper デフォルトの stretch で高さを揃える */
.h-scroll-track {
  align-items: stretch !important;
}

/* スライド自体も stretch で高さを合わせる */
.h-swiper .swiper-slide {
  height: auto;
  display: flex;
}

/* ─── セクション ─── */
.video-section {
  background: rgba(244, 244, 254, 0.45);
}

.section-title {
  font-size: 4rem;
  margin-bottom: 0.4rem;
  text-align: center;
}
.section-text {
  font-size: 2rem;
  margin-bottom: 20px;
  text-align: center;
}

.video-grid {
  /* 後方互換用（横スクロール時は h-scroll-track に置き換え済み） */
  display: flex;
  flex-wrap: nowrap;
  gap: 28px;
}

.video-card {
  width: 300px;
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(30px);
  cursor: pointer;
}

.video-card.active {
  opacity: 1;
  transform: translateY(0);
}

.video-card:hover {
  transform: translateY(-10px);
  box-shadow: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.12));
}

.video-thumbnail {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  overflow: hidden;
  background-color: #000;
}

.video-thumbnail img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  z-index: 10;
}

.play-button:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.play-button::after {
  content: "";
  width: 0;
  height: 0;
  border-top: 12px solid transparent;
  border-left: 20px solid white;
  border-bottom: 12px solid transparent;
  margin-left: 5px;
}

.video-info {
  flex: 1;
  padding: 20px;
}

.video-title {
  font-size: 1.6rem;
  margin-bottom: 10px;
  font-weight: bold;
}

.video-description {
  font-size: 1.4rem;
  color: #aaa;
  line-height: 1.5;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  width: 90%;
  max-width: 1000px;
  position: relative;
  background-color: #1e1e1e;
  border-radius: 8px;
}

.modal-body {
  width: 100%;
}

.video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* モーダルナビゲーション矢印 */
.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1010;
  transition: background 0.3s ease;
  -webkit-user-select: none;
  user-select: none;
}

.modal-nav:hover {
  background: rgba(255, 255, 255, 0.35);
}

.modal-prev {
  left: 20px;
}

.modal-next {
  right: 20px;
}

.modal-nav[style*="display: none"] {
  display: none;
}

@media (max-width: 768px) {
  .modal-prev {
    left: 8px;
  }
  .modal-next {
    right: 8px;
  }
  .modal-nav {
    width: 38px;
    height: 38px;
    font-size: 1.6rem;
  }
}

/* 閉じるボタン：矢印と同デザイン */
.close-button {
  position: absolute;
  top: -62px;
  right: 0;
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 1010;
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  background: rgba(255, 255, 255, 0.35);
}

.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 2px;
  background-color: white;
}

.close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* ビデオコンテナ */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 0;
}

.featured-section {
  /* background: linear-gradient(135deg, rgba(2, 209, 233, 0.3) 0%, rgba(11, 165, 233, 0.5) 100%); */
  background: rgba(2, 209, 233, 0.5);
}

.featured-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.featured-video:hover .featured-thumbnail img {
  transform: scale(1.05);
}

.featured-info {
  flex: 1;
  padding: 20px;
}

.featured-title {
  font-size: 2rem;
  margin-bottom: 15px;
  font-weight: bold;
}

.featured-description {
  font-size: 1.6rem;
  line-height: 1.6;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.8);
}

.cta-button {
  display: inline-block;
  padding: 12px 30px;
  background-color: white;
  font-size: 1.4rem;
  font-weight: bold;
  border-radius: 30px;
  text-decoration: none;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* モーダル内コンテンツのスタイル */
.text-modal-content {
  padding: 30px;
  max-height: 80vh;
  overflow-y: auto;
}

.text-modal-content h2 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 1.8rem;
}

.text-modal-content p {
  margin-bottom: 15px;
  line-height: 1.6;
  color: #ccc;
}

.modal-footer {
  padding: 15px 30px;
  background-color: #2a2a2a;
  text-align: right;
}

.modal-button {
  padding: 8px 20px;
  background-color: #5643cc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background-color 0.3s;
}

.modal-button:hover {
  background-color: #4535a5;
}

/* モーダル表示用ボタン */
.sample-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
}

.sample-button {
  padding: 10px 20px;
  background-color: #5643cc;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.sample-button:hover {
  background-color: #4535a5;
}

/* モーダルテンプレート（非表示） */
.modal-template {
  display: none;
}

/* モーダルスライドアニメーション */
@keyframes slideOutLeft {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-50px); }
}

@keyframes slideOutRight {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(50px); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(50px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-50px); }
  to   { opacity: 1; transform: translateX(0); }
}

.modal-body.slide-out-left  { animation: slideOutLeft  0.22s ease forwards; }
.modal-body.slide-out-right { animation: slideOutRight 0.22s ease forwards; }
.modal-body.slide-in-right  { animation: slideInRight  0.22s ease forwards; }
.modal-body.slide-in-left   { animation: slideInLeft   0.22s ease forwards; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-20px);
  }
  60% {
    transform: translateY(-10px);
  }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2.5rem;
  }

  .header p {
    font-size: 1.2rem;
    padding: 0 20px;
  }

  .featured-title {
    font-size: 1.4rem;
  }

  .section-header {
    padding: 20px 5% 10px;
  }

  .section-title {
    font-size: 2.8rem;
    margin-bottom: 0.6rem;
  }

  .section-text {
    font-size: 1.4rem;
  }

  .sample-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.featured-video {
  width: 360px;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  background: rgba(30, 30, 40, 0.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-video:hover {
  transform: translateY(-10px);
  box-shadow: none;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.18)) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.15));
}

.featured-thumbnail {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
}

.video-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(2, 209, 233, 0.8);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: bold;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.video-badge.special {
  background: linear-gradient(135deg, #ff6b6b 0%, #ffa26b 100%);
}

.artist-info {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  gap: 6px;
}

.artist-icon {
  font-size: 1.4rem;
}

.artist-name {
  font-size: 1.4rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.featured-title {
  font-size: 1.8rem;
  margin-bottom: 8px;
  color: white;
  line-height: 1.3;
}

.featured-description {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.cta-button {
  background: linear-gradient(135deg, #02d1e9 0%, #0ba5e9 100%);
  border: none;
  border-radius: 24px;
  color: white;
  padding: 8px 20px;
  font-size: 1.6rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(2, 209, 233, 0.3);
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .featured-title {
    font-size: 1.6rem;
  }

  .featured-description {
    font-size: 1.4rem;
  }

  .featured-video {
    width: 290px;
  }

  .video-card {
    width: 240px;
  }
}
