.video-section {
  padding: 100px 5%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: rgba(244, 244, 254, 0.45);
}

.section-title {
  font-size: 4rem;
  margin-bottom: 3rem;
  text-align: center;
}
.section-text {
  font-size: 2rem;
  margin-bottom: 3rem;
  text-align: center;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 40px;
  width: 100%;
  max-width: 1400px;
}

.video-card {
  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: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.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 {
  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;
}

/* 閉じるボタンのスタイルを修正 */
.close-button {
  position: absolute;
  top: -40px;
  right: 0px;
  width: 30px;
  height: 30px;
  background-color: rgba(0, 0, 0, 0.5); /* 背景色を追加して視認性を向上 */
  border-radius: 50%; /* 丸いボタンにする */
  border: none;
  cursor: pointer;
  z-index: 100; /* z-indexを高くして最前面に表示 */
}

/* 閉じるボタンのX印をより見やすくする */
.close-button::before,
.close-button::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px; /* サイズを少し小さく */
  height: 2px;
  background-color: white;
}

/* ビデオコンテナの調整を修正 */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  margin-top: 0; /* -40pxから0に修正 */
}
.close-button::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.close-button::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.featured-section {
  padding: 100px 5%;
  /* 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-container {
  display: flex;
  flex-direction: column;
  max-width: 1400px;
  margin: 0 auto;
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
}

.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 {
  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 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;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }

  .featured-title {
    font-size: 1.4rem;
  }

  .featured-row {
    grid-template-columns: 1fr;
  }

  .sample-buttons {
    flex-direction: column;
    align-items: center;
  }
}

.featured-video {
  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);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.featured-video:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.45);
}

.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;
  }
}
