@charset "utf-8";

#seat_search {}

section.seat_search {
  margin: 0px auto 0px;
  width: 100%;
}

section.seat_search h2.title01 {
  margin: 0 0 0px 0;
}

.seat_search_sub {
  margin: 50px auto 60px;
  text-align: center;
  width: 100%;
  margin: 0px auto 0px;
}

.seat_search_area {
  width: 100%;
  max-width: 1020px;
  margin: auto;
  background: #ddd;
  padding: 20px 20px 10px;
}

.seat_search_input {
  display: flex;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
}

.seat_detail_area {
  width: 100%;
  max-width: 1020px;
  margin: auto;
  background: #f2f2f2;
  position: relative;
  /* カメラアイコンを絶対配置するための基準 */
  aspect-ratio: 1 / 1;
}

.seat_detail_area img {
  display: block;
}

/* レスポンシブ対応 */
@media screen and (max-width: 749px) {

  .seat_search_area,
  .seat_detail_area {
    margin: 0px auto;
  }
}

.form-group {
  text-align: left;
  display: flex;
  align-items: center;
}

.form-group:nth-of-type(1) {
  /* margin-right: 30px; */
  /* padding-right: 30px; */
  /* border-right: solid 1px #aaa; */
  display: flex;
  align-items: center;
}

.form-group label {
  display: inline-block;
  margin-right: 10px;
  font-weight: bold;
  width: 36%;
}

.form-group select {
  margin: 0;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  border: solid 1px #aaa;
  height: 36px;
  border-radius: 4px;
}

.form-group select option {
  color: #000;
}

.form-group select:invalid {
  color: #757575;
  /* width: 60%; */
}

.form-group input {
  margin: 0;
  padding: 4px;
  font-size: 16px;
  line-height: 1;
  border: solid 1px #aaa;
  height: 36px;
  border-radius: 4px;
}

.form-group span {
  vertical-align: bottom;
  font-weight: bold;
}

.seat_search_area button {
  margin: 30px 0 0 0;
  padding: 4px;
  background: #00a050;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  width: 30%;
  border: solid 1px #008040;
  cursor: pointer;
  border-radius: 4px;
}

#result {
  /* display: none */
  color: red;
  font-size: 14px;
  height: 22px;
  font-weight: bold;
  margin-top: 10px;
}

/* ▼▼▼ ここからカメラ位置指定 (画像に合わせて更新) ▼▼▼ */
/* すべてのカメラアイコン共通のスタイル */
.photo_area {
  position: absolute;
  z-index: 10;
  /* アイコンのサイズを微調整 (必要に応じて変更してください) */
  width: 24px;
  height: 24px;
  /* top/left の基準点をアイコンの中央にする (推奨) */
  transform: translate(-50%, -50%);
}

.photo_area img {
  max-width: 24px;
}

/* ホバースタイル */
.photo_area a {
  transition: 0.2s;
  display: block;
}

.photo_area a:hover {
  opacity: 0.7;
}

/* --- E (East / バックスタンド・緑) --- */
#e_cam_01 {
  top: 19%;
  right: 16%;
}

#e_cam_02 {
  top: 25%;
  right: 22%;
}

#e_cam_03 {
  top: 26%;
  right: 10%;
}

#e_cam_04 {
  top: 29%;
  right: 16%;
}

#e_cam_05 {
  top: 41%;
  right: 16%;
}

#e_cam_06 {
  top: 41%;
  right: 5%;
}

#e_cam_07 {
  top: 43%;
  right: 22%;
}

#e_cam_08 {
  top: 52%;
  right: 16%;
}

#e_cam_09 {
  top: 58%;
  right: 22%;
}

#e_cam_10 {
  top: 58%;
  right: 11%;
}

#e_cam_11 {
  top: 64%;
  right: 16%;
}

/* --- N (North / 北スタンド・黄) --- */
#n_cam_01 {
  top: 12%;
  left: 41%;
}

#n_cam_02 {
  top: 12%;
  left: 61%;
}

/* --- S (South / 南スタンド・赤) --- */
#s_cam_01 {
  top: 66%;
  left: 45%;
}

#s_cam_02 {
  top: 66%;
  left: 57%;
}

/* --- W (West / メインスタンド・紫) --- */
#w_cam_01 {
  top: 16%;
  left: 25.5%;
}

#w_cam_02 {
  top: 20.5%;
  left: 30.5%;
}

#w_cam_03 {
  top: 26.5%;
  left: 24%;
}

#w_cam_04 {
  top: 29%;
  left: 30.5%;
}

#w_cam_05 {
  top: 32%;
  left: 15.5%;
}

#w_cam_06 {
  top: 34.5%;
  left: 24%;
}

#w_cam_07 {
  top: 40.5%;
  left: 15.5%;
}

#w_cam_08 {
  top: 41%;
  left: 30%;
}

#w_cam_09 {
  top: 46%;
  left: 23%;
}

#w_cam_10 {
  top: 51%;
  left: 15.5%;
}

#w_cam_11 {
  top: 52%;
  left: 30.5%;
}

#w_cam_12 {
  top: 55%;
  left: 23%;
}

#w_cam_13 {
  top: 60%;
  left: 30.5%;
}

#w_cam_14 {
  top: 63%;
  left: 25%;
}

/* ▼▼▼ 追加 ▼▼▼ (初期マップが非表示の時、カメラも非表示にする) */
#seat-canvas.active~.photo_area {
  display: none;
}

/* ▲▲▲ ここまでカメラ位置指定 ▲▲▲ */
ul.size_menu {
  /* padding: 10px; */
  position: relative;
  /* bottom: 3%; */
  /* right: 3%; */
  display: flex;
  gap: 8px;
  z-index: 20;
  /* カメラアイコンより手前に */
  background: #f2f2f2;
  justify-content: center;
  /* width: 100%; */
  /* transform: translate(0px, -10px); */
  padding-top: 10px;
  padding-bottom: 10px;
}

ul.size_menu li {}

ul.size_menu li a {
  background: #00a050;
  padding: 8px;
  display: block;
  border-radius: 4px;
  transition: 0.2s;
}

ul.size_menu li a:hover {
  opacity: 0.7;
}

ul.size_menu li a img {
  height: 20px;
}

.cortion {
  position: absolute;
  bottom: -9%;
  right: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  /* カメラアイコンより手前に */
  margin-inline: auto;
  padding: 10px 10px 10px;
  /* background: #f2f2f2; */
}

.cortion img {
  width: 24px;
}

.cortion p {
  display: block;
  line-height: 1.3;
  font-weight: bold;
  margin-left: 0.5em;
  padding-top: 4px;
  font-size: 11px;
  font-feature-settings: "palt";
}

/* ポップアップ画像 (.photo_image) */
.photo_image {
  /* position: fixed;  */
  position: absolute;
  width: 90%;
  max-width: 900px;
  height: max-content;
  top: 50%;
  left: 50%;
  background: #fff;
  padding: 12px;
  filter: drop-shadow(0px 2px 10px rgba(0, 0, 0, .3));
  z-index: 100;
  transform: translate(-50%, -50%) scale(0.8);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, transform 0.3s ease-out, visibility 0s 0.3s;
}

.photo_image.on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition: opacity 0.3s ease-out, transform 0.3s ease-out;
}

.photo_image img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

/* 閉じるボタン */
.photo_image .close {
  background: #00a050;
  border: solid 2px #fff;
  width: 30px;
  height: 30px;
  position: absolute;
  top: 20px;
  right: 20px;
  cursor: pointer;
  z-index: 101;
}

.photo_image .close:hover {
  opacity: 0.7;
}

.photo_image .close span:nth-of-type(1) {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 3px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}

.photo_image .close span:nth-of-type(2) {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 60%;
  height: 3px;
  background: #fff;
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* オーバーレイ（背景の黒） */
.photo_overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-out, visibility 0s 0.3s;
}

.photo_overlay.on {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-out;
}

canvas {
  width: 100%;
  height: auto;
  display: none;
}

/* Canvas表示制御 */
#seat-canvas {
  width: 100%;
  height: auto;
  display: none;
  cursor: grab;
  background: #f5f5f5;
  image-rendering: auto;
  will-change: transform;
}

#seat-canvas.active {
  display: block;
}

#seat-canvas:active {
  cursor: grabbing;
}

/* 初期マップ */
#initial-map {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#initial-map.hidden {
  display: none;
}

/* マーカー表示用 */
.seat-marker {
  position: absolute;
  pointer-events: none;
  z-index: 100;
}

/* 追加のCSS設定 */
#initial-map.hidden {
  display: none;
}

#seat-canvas {
  width: 100%;
  /* height: auto; */
  display: none;
  height: 100%;
  object-fit: cover;
}

#seat-canvas.active {
  display: block;
}

#result.success {
  color: #00a050;
}

#result.error {
  color: #ff0000;
}

/* ミニマップ */
.minimap {
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 120px;
  height: auto;
  border: solid 3px #ccc;
  background: #fff;
  z-index: 50;
  display: none;
}

.minimap.active {
  display: block;
}

.minimap img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* ミニマップcanvas */
#minimap-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2;
  display: block;
}




/* スライダーボタン */
.photo_prev,
.photo_next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 40px;
  width: 50px;
  height: 80px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.photo_prev:hover,
.photo_next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.photo_prev:active,
.photo_next:active {
  background: rgba(0, 0, 0, 0.9);
}

.photo_prev {
  left: 0px;
  border-radius: 0 8px 8px 0;
}

.photo_next {
  right: 0px;
  border-radius: 8px 0 0 8px;
}

/* カウンター表示 */
.photo_counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  z-index: 1001;
  user-select: none;
}

/* 画像のトランジション効果 */
.photo_image img {
  transition: opacity 0.3s ease;
}

.photo_image.changing img {
  opacity: 0.7;
}

/* スマホ対応 */
@media screen and (max-width: 749px) {

  .photo_prev,
  .photo_next {
    width: 40px;
    height: 60px;
    font-size: 30px;
  }

  .photo_prev {
    left: 5px;
  }

  .photo_next {
    right: 5px;
  }

  .photo_counter {
    bottom: 15px;
    padding: 6px 15px;
    font-size: 12px;
  }
}



/* 既存のCSSに追加 */

/* 画像コンテナにアニメーション用のスタイル追加 */
.photo_image {
  overflow: hidden;
  /* はみ出した画像を隠す */
}

.photo_image img {
  transition: transform 0.4s ease-out, opacity 0.4s ease-out;
  transform: translateX(0);
}

/* スライドアニメーション */
.photo_image.slide-right img {
  animation: slideFromRight 0.4s ease-out;
}

.photo_image.slide-left img {
  animation: slideFromLeft 0.4s ease-out;
}

/* 右から左へスライド（次へ） */
@keyframes slideFromRight {
  0% {
    transform: translateX(100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* 左から右へスライド（前へ） */
@keyframes slideFromLeft {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }

  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

/* changingクラスは削除（不要になるため） */
/* .photo_image.changing img は削除してOK */

/* スライダーボタン */
.photo_prev,
.photo_next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  font-size: 40px;
  width: 50px;
  height: 80px;
  cursor: pointer;
  z-index: 1001;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}

.photo_prev:hover,
.photo_next:hover {
  background: rgba(0, 0, 0, 0.8);
}

.photo_prev:active,
.photo_next:active {
  background: rgba(0, 0, 0, 0.9);
}

.photo_prev {
  left: 10px;
  border-radius: 0 8px 8px 0;
}

.photo_next {
  right: 10px;
  border-radius: 8px 0 0 8px;
}

/* カウンター表示 */
.photo_counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  z-index: 1001;
  user-select: none;
}

/* スマホ対応 */
@media screen and (max-width: 749px) {

  .photo_prev,
  .photo_next {
    width: 40px;
    height: 60px;
    font-size: 30px;
  }

  .photo_prev {
    left: 5px;
  }

  .photo_next {
    right: 5px;
  }

  .photo_counter {
    bottom: 15px;
    padding: 6px 15px;
    font-size: 12px;
  }
}


/* ===== ポップアップ表示アニメーション（中央から表示）===== */
.photo_image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  z-index: 10000;
  max-width: max-content;
  max-height: 90vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-sizing: border-box;
}

.photo_image.on {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.photo_image.off {
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.8);
}

/* ===== スライドアニメーション（画像切り替え）===== */
.photo_image img {
  display: block;
  width: 100%;
  height: auto;
  transition: none;
  /* デフォルトはトランジションなし */
}

/* 次の画像へ（左にスライドアウト、右からスライドイン）*/
.photo_image.slide-out-left img {
  animation: slideOutLeft 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.photo_image.slide-in-right img {
  animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

/* 前の画像へ（右にスライドアウト、左からスライドイン）*/
.photo_image.slide-out-right img {
  animation: slideOutRight 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.photo_image.slide-in-left img {
  animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

@keyframes slideOutLeft {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }

  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* オーバーフロー対策 */
.photo_image {
  overflow: hidden;
}