/* ==========================================================================
   共通：フロアマップ（1F/2F/3F どの比率でもOK）
   ========================================================================== */
.floor-map {
  max-width: 800px;
  margin: 0 auto 0rem;
}

/* 画像の実寸比に高さを任せる（＝比率差を吸収） */
.floor-map__stage {
  position: relative;
  width: 100%;
  border: 1px solid #ccc;
  border-radius: 10px 0 10px 0;
  overflow: hidden;
  background: #f7f7f7;
}

/* 画像はトリミングせず100%幅・高さauto（各画像の縦横比そのまま） */
.floor-map__img {
  display: block;
  width: 100%;
  height: auto;
}

/* ホットスポット（%指定の座標はそのまま使える） */
.floor-map__hotspot {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border-radius: 50%;
  min-width: 28px;
  min-height: 28px;
  background: rgba(0, 0, 0, 0.15); /* モバイル基準の色味 */
  color: #fff;
  line-height: 1;
  backdrop-filter: blur(2px);
  transition: transform .15s ease, background .15s ease;
  z-index: 2;
}

/* PC（少し大きく・薄め） */
@media (min-width: 900px) {
  .floor-map__hotspot {
    min-width: 28px;
    min-height: 28px;
    background: rgba(0, 0, 0, 0.20);
    border: 1px solid rgba(255,255,255,0.15);
  }
  .floor-map__hotspot:hover,
  .floor-map__hotspot:focus-visible {
    transform: scale(1.1);
    background: rgba(0,0,0,0.28);
    outline: 2px solid #fff;
    outline-offset: 2px;
  }
}

/* ラベルは使わない（PC/スマホ共通で非表示） */
.floor-map__hotspot .label { display: none !important; }

/* 動きに弱い方配慮 */
@media (prefers-reduced-motion: reduce) {
  .floor-map__hotspot { transition: none; }
}

/* ==========================================================================
   ライトボックス（共通）
   ========================================================================== */
.lb.is-hidden { display: none; }
.lb {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55); /* 薄めの黒（0.45〜0.65） */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.lb__stage {
  position: relative;
  margin: 0;
  width: 100%;
  max-width: 800px;
  max-height: 86vh;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: .6rem;
  padding: 1.2rem;
  background: rgba(255,255,255,.04);
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.lb__img {
  display: block;
  max-width: 100%;
  max-height: 70vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
}
.lb__caption {
  color: #eee;
  font-size: .95rem;
  text-align: center;
  min-height: 1.2em;
}

/* 画像内コントロール */
.lb__nav, .lb__close {
  position: absolute;
  z-index: 2;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  width: 44px; height: 44px; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
  backdrop-filter: blur(2px);
}
.lb__prev { left: 8px;  top: 50%; transform: translateY(-50%); }
.lb__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb__close{ right: 8px; top: 8px; width: 42px; height: 42px; font-size: 26px; }

@media (max-width: 600px) {
  .lb__nav, .lb__close { width: 48px; height: 48px; font-size: 24px; }
}

/* （任意）テーブル内の参照リンクの見た目 */
.js-gallery-ref {
  text-decoration: none;
  color: var(--primary-color);
}
.js-gallery-ref:hover { opacity: .8; }

/* =========================================================
   FIX: PCホバー時に矢印/×がズレないようにロック
   （他の hover ルールを強制的に打ち消す）
   ========================================================= */
@media (hover: hover) {
  /* 矢印ボタンは常に中央Y位置をキープ */
  .lb__prev, .lb__next {
    transform: translateY(-50%) !important;
  }
  /* ホバー＆フォーカス時も同じ位置のまま（色だけ変える） */
  .lb__nav:hover,
  .lb__nav:focus-visible {
    background: rgba(0,0,0,.5) !important;
    transform: translateY(-50%) !important;  /* ← 位置固定 */
  }

  /* ×ボタンは元々translate不要。位置を固定して色だけ変更 */
  .lb__close:hover,
  .lb__close:focus-visible {
    background: rgba(0,0,0,.5) !important;
    transform: none !important;              /* ← 拡大や移動を無効化 */
  }
}

/* ta1-guide テーブルの th 内のテキストを改行しない */
/* 改行禁止＋はみ出しを省略記号にする（オプション） */
.ta1-guide th {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis; /* `...`が末尾に表示される */
}


/* 改行なし */
.ta1-guide th {
  white-space: nowrap;
}

/* セル幅を自動調整 */
.ta1-guide {
  table-layout: auto;
}
