.ct-box {
  margin-bottom: 2.5rem;
}
.doc-btn{
    border: none;
  border-radius: 6px;
  padding: 12px 24px;
  background-color: #222;
  color: #efefef;
  display: inline-block;
  outline: 0;
  cursor: pointer;
  font-weight: 500;

text-decoration: none;
}
.tour-modal .modal__contents{
width: 80% ;
}

.modal[data-modal="modal-shain-1-room-a"] .modal__contents,
.modal[data-modal="modal-shain-2-room-a"] .modal__contents,
.modal[data-modal="modal-shain-3-room-a"] .modal__contents{
    background-color: #485469;
  color: #fff;
}



.youtube {
width: 100%;
margin: 0 auto;
aspect-ratio: 16 / 9;
}
.youtube iframe {
width: 100%;
height: 100%;
}

.videoWrap {
              padding-top: 56.25%;
              width: 100%;
              position: relative;
          }

.videoWrap video {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
  object-fit: cover;
}

/* モーダル内でのvideo表示制御 */
.modal video {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

/* モバイル対応のvideo制御 */
@media (max-width: 768px) {
  .modal video {
      width: 100%;
      height: auto;
      max-height: 60vh;
  }
}

/* 全画面表示を防ぐ強力な制御 */
.modal video::-webkit-media-controls-fullscreen-button {
  display: none !important;
}

.modal video::-webkit-media-controls-play-button {
  display: block !important;
}

.modal video::-webkit-media-controls-pause-button {
  display: block !important;
}

/* iOS Safariでの全画面表示防止 */
.modal video {
  -webkit-presentation-mode: inline !important;
  presentation-mode: inline !important;
}

.tour-modal-controls{
  position: fixed;
  bottom: 10px;
  right: 10px;
  z-index: 1000;
  padding: 10px 10px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
min-width: 220px;
}

/* 音声制御アイコンのスタイル */
.modal-audio-control {
  /* position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 10; */
}

.audio-control-btn {
  background: rgba(0, 0, 0, 0.7);
  border: 2px solid #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #fff;
}

.audio-control-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

.audio-control-btn:active {
  transform: scale(0.95);
}

.audio-control-btn.audio-active {
  background: rgba(0, 152, 216, 0.9);
  border-color: #0098d8;
  box-shadow: 0 0 10px rgba(0, 152, 216, 0.5);
}

.audio-icon {
  width: 24px;
  height: 24px;
}

/* 再生制御ボタンのスタイル */
.modal-play-control {
  /* position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10; */
}

.play-control-btn {
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border: none;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

.play-control-btn:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: translateY(-2px);
}

.play-control-btn:active {
  transform: translateY(0);
}

.play-icon {
  width: 24px;
  height: 24px;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .modal-audio-control {
      /* bottom: 15px;
      left: 15px; */
  }
  
  .audio-control-btn {
      width: 40px;
      height: 40px;
  }
  
  .audio-icon {
      width: 20px;
      height: 20px;
  }
  
  .modal-play-control {
      /* bottom: 15px; */
  }
  
  .play-control-btn {
      width: 40px;
      height: 40px;
  }
  
  .play-icon {
      width: 20px;
      height: 20px;
  }

}
@media (max-width: 600px) {
  .tour-modal-controls{
    padding: 5px 14px;
    bottom: 5px;
    right: 50%;
  transform: translate(50%, 0);
  }
}

/* Tour Modal Content Types */
.tour-modal--youtube .modal-content,
.tour-modal--video .modal-content {
aspect-ratio: 16/9;
width: 100%;
max-width: 1200px;
margin: 0 auto;
}

.tour-modal--slider {
display: flex;
align-items: center;
justify-content: center;
}

.tour-modal--slider .modal-content {
height: 90vh;
max-height: 800px;
width: auto;
display: flex;
align-items: center;
justify-content: center;
}

.tour-modal--slider .slide {
height: 100%;
width: 100%;
display: none;
align-items: center;
justify-content: center;
}

.tour-modal--slider .slide.active {
display: flex;
}

.tour-modal--slider .slide img {
max-height: 100%;
max-width: 100%;
width: auto;
height: auto;
object-fit: contain;
}


/* Tour Modal Image Slider Styles */

.tour-modal--slider .modal__contents {
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
position: relative;
width: 80%;
}

.tour-modal--slider .modal__contents-inner {
height: 100%;
max-height: 800px;
width: 90vw;
max-width: 1200px;
position: relative;
display: flex;
align-items: center;
justify-content: center;
flex-grow: 1;
}

.tour-modal--slider .pop-img-slider {
width: 100%;
min-height: 50%;
position: relative;
max-width: 100%;
flex-grow: 1;
}

.tour-modal--slider .slider-container {
width: 100%;
height: 100%;
position: relative;
gap: 0;
  padding: 10px;
}

.tour-modal--slider .slider {
width: 100%;
height: calc(100%); /* navigationの高さ分を引く */
position: relative;
}

.tour-modal--slider .slide {
width: 100%;
height: 100%;
display: none;
align-items: center;
justify-content: center;
position: absolute;
top: 0;
left: 0;
}

.tour-modal--slider .slide.active {
display: flex;
}

.tour-modal--slider .slide img {
max-width: 100%;
max-height: 100%;
width: auto;
height: auto;
object-fit: contain;
}

/* ナビゲーション部分のスタイル */
.tour-modal--slider .navigation {
position: absolute;
bottom: 0;
left: 0;
width: 100%;
height: 60px;
display: flex;
align-items: center;
justify-content: center;
}

.tour-modal--slider .indicators {
display: flex;
gap: 10px;
justify-content: center;
}

.tour-modal--slider .indicator {
width: 10px;
height: 10px;
border-radius: 50%;
background-color: rgba(255, 255, 255, 0.5);
cursor: pointer;
}

.tour-modal--slider .indicator.active {
background-color: #fff;
}

/* スキップボタンとクローズボタンの位置調整 */

.tour-modal--slider .modal-panel__icon-close {
position: absolute;
z-index: 10;
}

.tour-modal--slider .modal-panel__icon-close {
top: 20px;
right: 20px;
}


@media screen and (max-width: 850px) {
.tour-modal--slider .modal__contents{
  width: 90%;
}
.tour-modal .modal__contents{
  width: 90% ;
}
}


@media screen and (max-width: 500px) {
.tour-modal .modal__contents{
  min-height: 224px;
}

}