/* 画像タップ拡大（ライトボックス）のスタイル。fix-common.css から分離した共通ファイル（2026-11-17）。
   サイト本体は asset/css/import.css から、/floor_information/ のように別作りのページは <link> で直接読み込む。 */
/* ── 画像タップ拡大（ライトボックス） ───────────────────────────
   対象画像に class="zoomable" を付けるだけで有効になる。 */
.zoomable{ cursor: zoom-in; }
@media (min-width: 1001px){ .zoomable.zoom-sp{ cursor: auto; } } /* zoom-sp は、スマホ専用（PCでは拡大しない） */

.imgzoom{
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(0,0,0,.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.imgzoom[hidden]{ display: none; }
.imgzoom__stage{
  width: 100%;
  height: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  /* 2本指のピンチ操作をブラウザに任せる。cmn.js のピンチ禁止処理はこの中では効かないようにしてある */
  touch-action: pinch-zoom;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imgzoom__stage img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  transform-origin: center center;
  transition: transform .2s ease;
  cursor: zoom-in;
}
.imgzoom__stage img.is-scaled{
  max-width: none;
  max-height: none;
  cursor: grab;
}
.imgzoom__close{
  position: absolute;
  top: 10px;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #333;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}
.imgzoom__hint{
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  text-align: center;
  color: #fff;
  /* 白い背景の図のときも読めるように、暗い帯を敷く */
  background: rgba(0,0,0,.7);
  font-size: 14px;
  pointer-events: none;
}

/* ── スマホ：自由に縮尺を変えられる拡大表示（2026-11-17） ──────────────
   .imgzoom--free のとき（幅1000px以下で開いたとき）だけ有効。
   ピンチ（2本指）で拡大・縮小、1本指で移動。ボタン（－／全体／＋）でも操作できる。 */
.imgzoom__ctrl{ display: none; }
.imgzoom--free,
.imgzoom--free .imgzoom__stage{
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}
.imgzoom--free .imgzoom__stage img{
  max-width: none;
  max-height: none;
  flex: none;
  transition: none;
  transform-origin: center center;
  cursor: default;
  -webkit-user-drag: none;
  user-select: none;
  -webkit-user-select: none;
}
.imgzoom--free .imgzoom__ctrl{
  display: flex;
  position: absolute;
  right: 10px;
  bottom: 44px;
  gap: 8px;
  z-index: 2;
}
.imgzoom__btn{
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 22px;
  background: rgba(255,255,255,.92);
  color: #333;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.imgzoom__btn--fit{ font-size: 14px; }
