/* YouTube動画モーダルのスタイル */
.youtube-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: none;
}

.youtube-modal[aria-hidden="false"] {
  display: block;
}

.youtube-modal__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  cursor: pointer;
}

.youtube-modal__dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: transparent;
  border-radius: 8px;
  padding: 0;
  max-width: 95%;
  max-height: 95%;
  width: 1000px;
  box-shadow: none;
}

.youtube-modal__close {
  position: absolute;
  top: -20px;
  right: -20px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: white;
  z-index: 1;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.youtube-modal__close:hover {
  background: rgba(0, 0, 0, 0.9);
}

.youtube-modal__title {
  display: none;
}

.youtube-modal__video {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
}

.youtube-modal__video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  .youtube-modal__dialog {
    width: 95%;
    padding: 0;
  }
  
  .youtube-modal__close {
    top: -15px;
    right: -15px;
    width: 35px;
    height: 35px;
    font-size: 20px;
  }
}

/* YouTube動画セクションのスタイル */
.youtube-section {
  background: #F2FAFF;
  padding: 80px 0;
  margin: 0;
}

.youtube-section__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.youtube-section .h2 {
  color: #333;
}

.youtube-section__desc {
  font-size: 16px;
  margin-top: 20px;
  margin-bottom: 40px;
  color: #333;
}

.youtube-section__video {
  max-width: 800px;
  margin: 0 auto;
}

.youtube-video-wrapper {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: 12px;
  overflow: hidden;
}

.youtube-video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* スマートフォン対応 */
@media (max-width: 768px) {
  .youtube-section {
    padding: 60px 0;
  }
  
  .youtube-section__inner {
    padding: 0 15px;
  }
  
  .youtube-section__desc {
    font-size: 14px;
    margin-bottom: 30px;
  }
  
  .youtube-video-wrapper {
    border-radius: 8px;
  }
}
