.mv-section {
  margin-bottom: 80px;
}

.mv-content-box {
  background-color: rgba(0, 0, 0, 0.5);
  padding: 30px;
  margin-bottom: 40px;
  border-radius: 5px;
}

.mv-content-text {
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: center;
}

.mv-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.mv-item {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.mv-item:hover {
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.mv-video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9のアスペクト用 */
  overflow: hidden;
}

.mv-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  transition: transform 0.3s ease;
}

.mv-item:hover .mv-video-wrapper iframe {
  transform: scale(1.05);
}

.mv-tag-link:empty {
  display: none;
}

.mv-info {
  padding: 15px;
}

.mv-title {
  font-size: 1.1rem;
  margin: 0 0 10px 0;
  font-weight: 500;
  color: #fff;
}

.mv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mv-tag-link {
  display: inline-block;
  padding: 3px 8px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 15px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
}

.mv-tag-link:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tag-filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
  gap: 15px;
}

.tag-filter-title {
  font-size: 1rem;
  font-weight: 500;
}

.tag-filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-btn {
  display: inline-block;
  padding: 6px 15px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 33px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.tag-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tag-btn.active {
  background-color: rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  font-weight: 500 !important;
}

@media screen and (max-width: 991px) {
  .mv-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

@media screen and (max-width: 768px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .tag-filter-container {
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .tag-filter-buttons {
    margin-top: 10px;
    justify-content: center;
  }

  .mv-content-box {
    padding: 20px;
  }
}

@media screen and (max-width: 479px) {
  .mv-grid {
    grid-template-columns: 1fr;
  }

  .mv-content-box {
    padding: 15px;
  }

  .tag-btn {
    padding: 5px 10px;
    font-size: 0.8rem;
  }

  .mv-title {
    font-size: 1rem;
  }
}
