/* 共通ライトボックス（画像・PDF代替画像を画面内モーダルで表示） */
.hi-lb{position:fixed;inset:0;z-index:100000;background:rgba(20,20,20,.72);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);display:flex;align-items:center;justify-content:center;
  padding:0;opacity:0;visibility:hidden;transition:opacity .2s;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;}
.hi-lb.is-open{opacity:1;visibility:visible;}
.hi-lb__stage{position:absolute;inset:0;overflow:auto;-webkit-overflow-scrolling:touch;display:flex;align-items:center;justify-content:center;padding:56px 12px 64px;box-sizing:border-box;}
.hi-lb__stage::-webkit-scrollbar{display:none;}
.hi-lb__imgwrap{position:relative;flex:0 0 auto;max-width:100%;max-height:100%;display:flex;align-items:center;justify-content:center;margin:auto;}
.hi-lb__img{display:block;max-width:100%;max-height:calc(100vh - 120px);max-height:calc(100dvh - 120px);width:auto;height:auto;
  border-radius:6px;box-shadow:0 10px 40px rgba(0,0,0,.6);pointer-events:none;-webkit-user-drag:none;user-select:none;-webkit-touch-callout:none;
  transition:opacity .15s;background:#fff;}
.hi-lb__shield{position:absolute;inset:0;cursor:zoom-in;}
.hi-lb.is-zoomed .hi-lb__stage{align-items:flex-start;justify-content:flex-start;}
.hi-lb.is-zoomed .hi-lb__imgwrap{max-width:none;max-height:none;}
.hi-lb.is-zoomed .hi-lb__img{max-width:none;max-height:none;width:auto;}
.hi-lb.is-zoomed .hi-lb__shield{cursor:zoom-out;}
.hi-lb__btn{position:absolute;z-index:2;width:44px;height:44px;border:0;border-radius:50%;background:rgba(0,0,0,.6);color:#fff;border:1px solid rgba(255,255,255,.35);box-sizing:border-box;
  font-size:22px;line-height:44px;text-align:center;cursor:pointer;padding:0;-webkit-tap-highlight-color:transparent;transition:background .15s;}
.hi-lb__btn:hover{background:rgba(192,57,43,.9);}
.hi-lb__btn:focus-visible{outline:2px solid #fff;outline-offset:2px;}
.hi-lb__close{top:10px;right:10px;font-size:26px;}
.hi-lb__prev,.hi-lb__next{top:50%;transform:translateY(-50%);}
.hi-lb__prev{left:8px;}
.hi-lb__next{right:8px;}
.hi-lb__zoom{top:10px;right:62px;font-size:18px;}
.hi-lb__bar{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:10px 60px;color:#eee;font-size:13px;line-height:1.5;text-align:center;
  background:linear-gradient(transparent,rgba(0,0,0,.7));pointer-events:none;
  font-family:"M PLUS 1","Hiragino Kaku Gothic ProN",sans-serif;}
.hi-lb__count{display:inline-block;margin-left:10px;color:#bbb;}
.hi-lb__hint{display:block;font-size:11px;color:#aaa;}
.hi-lb[data-count="1"] .hi-lb__prev,.hi-lb[data-count="1"] .hi-lb__next,.hi-lb[data-count="1"] .hi-lb__count{display:none;}
body.hi-lb-lock{overflow:hidden;}
@media(max-width:480px){
  .hi-lb__stage{padding:56px 4px 64px;}
  .hi-lb__img{max-height:calc(100vh - 110px);max-height:calc(100dvh - 110px);}
  .hi-lb__prev{left:2px;}.hi-lb__next{right:2px;}
  .hi-lb__bar{padding:10px 50px;}
}
