.videos-pharagraph {
  font-size: 1.5rem;
  margin-bottom: 60px;
}

.videos-content-wrapper {
  width: 100%;
  margin-bottom: 60px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.video-item {
  cursor: pointer;
  text-align: center;
}

.video-thumbnail {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  background-color: #f0f0f0;
  margin-bottom: 20px;
}

.video-item: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: #ff0000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.play-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 20px solid white;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}

.video-item:hover .play-button {
  background-color: darkred;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-title {
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.5;
  color: #006494;
  text-align: left;
}

/* モーダル */
.video-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  overflow: auto;
}

.video-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  position: relative;
  width: 90%;
  padding: 10px;
  max-width: 900px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  z-index: 10001;
  background-color: #038bbb;
  border: 2px solid #038bbb;
  font-size: 25px;
  color: #fff;
  cursor: pointer;
  width: 45px;
  height: 45px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: #fff;
  color: #333;
}

.modal-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.modal-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.youtube-label {
  margin: 0;
  font-size: 0.9rem;
  color: #ccc;
  text-decoration: underline;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .videos-pharagraph {
    font-size: 1.4rem;
  }

  .videos-content-wrapper {
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    margin-bottom: 30px;
  }

  .videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .modal-content {
    width: 95%;
    max-width: 100%;
    padding: 10px;
  }

  .modal-close {
    top: -20px;
    right: -10px;
  }
}
