@charset "utf-8";
/* お品書きページ：画像・PDFボタン・拡大表示 */

/* 画像（縦に並べる） */
.menu-image a.js-menu-zoom {
  display: block;
  margin-bottom: 6px;
  cursor: zoom-in;
  position: relative;
}
.menu-image a.js-menu-zoom::after {        /* 右下の虫めがね */
  content: "";
  position: absolute; right: 8px; bottom: 8px;
  width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0,0,0,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6'/%3E%3Cpath d='M20 20l-4.5-4.5M11 8v6M8 11h6'/%3E%3C/svg%3E") center / 20px no-repeat;
  pointer-events: none;
  transition: background-color .2s;
}
.menu-image a.js-menu-zoom:hover::after { background-color: rgba(0,0,0,.8); }

/* PDFボタン */
.menu-pdf { text-align: center; }
.menu-pdf .material-icons { vertical-align: middle; margin-right: 5px; }

/* ---------- 拡大表示 ---------- */
html.mz-lock, html.mz-lock body { overflow: hidden; }
.mz {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(12,10,8,.94);
  display: none;
  color: #fff;
}
.mz.is-open { display: block; }
.mz-scroller {
  position: absolute; inset: 0;
  overflow: auto;
  display: flex; align-items: center; justify-content: center;
  padding: 56px 12px 40px;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y pinch-zoom;
}
.mz-img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  width: auto; height: auto;
  object-fit: contain;
  cursor: zoom-in;
  background: #fff;
  box-shadow: 0 6px 30px rgba(0,0,0,.5);
  user-select: none; -webkit-user-select: none;
}
/* 原寸（拡大）表示 */
.mz.is-zoomed .mz-scroller { display: block; padding: 56px 0 0; }
.mz.is-zoomed .mz-img {
  max-width: none; max-height: none;
  cursor: zoom-out;
}

.mz-bar {
  position: absolute; top: 0; left: 0; right: 0; height: 52px;
  display: flex; align-items: center; gap: 4px; padding: 0 6px 0 16px;
  background: linear-gradient(rgba(0,0,0,.7), rgba(0,0,0,0));
  pointer-events: none;
}
.mz-cap { flex: 1; margin: 0; font-size: 14px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mz-btn, .mz-nav {
  pointer-events: auto;
  appearance: none; border: 0; cursor: pointer; color: #fff;
  background: rgba(255,255,255,.12);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .2s;
}
.mz-btn:hover, .mz-nav:hover { background: rgba(255,255,255,.28); }
.mz-nav { position: absolute; top: 50%; transform: translateY(-50%); }
.mz-prev { left: 10px; }
.mz-next { right: 10px; }
.mz-nav[hidden] { display: none; }
.mz-nav:disabled { opacity: .25; cursor: default; }
.mz.is-zoomed .mz-nav { display: none; }

.mz-hint {
  position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
  margin: 0; padding: 6px 14px; border-radius: 99px;
  background: rgba(0,0,0,.6); font-size: 12px; white-space: nowrap;
  pointer-events: none; transition: opacity .3s;
}
.mz.is-hinted .mz-hint, .mz.is-zoomed .mz-hint { opacity: 0; }

.mz-spinner {
  position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%;
  animation: mz-spin .8s linear infinite; display: none;
}
.mz-spinner.is-on { display: block; }
@keyframes mz-spin { to { transform: rotate(360deg); } }
