﻿html, body {
  margin: 0;
  height: 100%;
  background: #111;
  overflow: hidden;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

#viewer {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  position: relative;
  background: #111;

  /* ? ピンチ/ドラッグをPanzoomに渡す */
  touch-action: none;

  cursor: grab;
}
#viewer.dragging { cursor: grabbing; }

#zoom-image {
  display: block;
  width: 100%;
  height: auto;

  /* Panzoomでtransformするので制限を外す */
  max-width: none;

  user-select: none;
  -webkit-user-drag: none;

  /* ? ここを none にしない（Panzoomがイベントを拾う） */
  pointer-events: auto;
}

.controls{
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 9999;
  display: flex;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.controls button{
  width: 56px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  color: #111;
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.controls #reset{
  width: 86px;
  font-size: 13px;
  letter-spacing: .5px;
  font-weight: 800;
}
