/* ----------------------------------------- */
/*     PC用：ごく薄い横スクロールバー      */
/* ----------------------------------------- */

.panorama {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;

  /* PC用の細いスクロールバー */
  scrollbar-width: thin;         /* Firefox */
  scrollbar-color: rgba(255,255,255,.15) rgba(255,255,255,0); 
}

/* Chrome / Edge / Safari */
.panorama::-webkit-scrollbar {
  height: 6px;                   /* 超細い */
}

.panorama::-webkit-scrollbar-track {
  background: rgba(255,255,255,0);     /* 完全透明 */
}

.panorama::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.18);   /* うっすら白 */
  border-radius: 4px;
}

/* ホバーしたときだけ少し濃くする */
.panorama:hover::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,.35);
}

/* スマホはスクロールバー完全非表示 */
@media (max-width: 768px) {
  .panorama {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .panorama::-webkit-scrollbar {
    display: none;
  }
}
/* ========================= */
/*   画像下のガイドボタン    */
/* ========================= */

.pano-goto {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

/* ボタン本体 */
.pano-goto__btn {
  padding: 14px 32px;
  border-radius: 999px;

  background: linear-gradient(135deg,
    rgba(255,230,150,0.95),
    rgba(255,200,90,0.95)
  );
  color: #4a3500;
  font-weight: 700;
  font-size: 16px;

  border: 2px solid rgba(255,240,190,0.95);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.35),
    0 0 12px rgba(255,220,120,0.9);

  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s;
}

/* ============================== */
/*     最後まで行くまで無効状態    */
/* ============================== */

.pano-disabled {
  opacity: 0.45;
  pointer-events: none;    /* 押せない */
  filter: grayscale(40%);  /* 少し色を落とす */
}

.pano-goto__btn:not(.pano-disabled):hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.45),
    0 0 20px rgba(255,230,150,1);
}

@media (max-width: 768px) {
  .pano-goto__btn {
    font-size: 14px;
    padding: 10px 24px;
  }
}
/* ============================================= */
/*   スマホ横向き時：画像の高さを制限する対応   */
/* ============================================= */

@media screen and (max-width: 900px) and (orientation: landscape) {
  .panorama img {
    max-height: 80vh;       /* 高さの最大値を画面の8割に */
    height: auto;
    width: auto;
    object-fit: contain;
  }

  .panorama {
    height: auto;
    align-items: center;     /* 縦中央揃えで見やすく */
  }
}

/* 画像下のガイドボタン＋BGMボタン */
.pano-goto {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ストーリーボードボタンはそのまま（前に作ったやつを使用） */
.pano-goto__btn {
  padding: 14px 32px;
  border-radius: 999px;

  background: linear-gradient(135deg,
    rgba(255,230,150,0.95),
    rgba(255,200,90,0.95)
  );
  color: #4a3500;
  font-weight: 700;
  font-size: 16px;

  border: 2px solid rgba(255,240,190,0.95);
  box-shadow:
    0 6px 18px rgba(0,0,0,0.35),
    0 0 12px rgba(255,220,120,0.9);

  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s;
}

/* 最後まで行くまで無効 */
.pano-disabled {
  opacity: 0.45;
  pointer-events: none;
  filter: grayscale(40%);
}

.pano-goto__btn:not(.pano-disabled):hover {
  transform: translateY(-3px);
  box-shadow:
    0 10px 24px rgba(0,0,0,0.45),
    0 0 20px rgba(255,230,150,1);
}

/* BGMボタン */
.pano-bgm-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

/* ON状態を少し明るく */
.pano-bgm-btn.is-on {
  background: rgba(60,160,255,0.85);
  border-color: rgba(255,255,255,0.9);
}

.pano-bgm-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

@media (max-width: 768px) {
  .pano-goto__btn {
    font-size: 14px;
    padding: 10px 24px;
  }
  .pano-bgm-btn {
    font-size: 13px;
    padding: 8px 18px;
  }
}



