@charset "UTF-8";
/* 画像の拡大表示（js/lightbox.js と対で使う汎用部品） */
.lb {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 56px;
  background: rgba(0, 0, 0, .82);
}
.lb[hidden] { display: none; }
html.lb-open { overflow: hidden; }

.lb__figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
}
.lb__img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  object-fit: contain;
  border-radius: 4px;
  background: #fff;
}
.lb__caption {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
  margin-top: 10px;
  color: #fff;
  font-size: 14px;
}
.lb__count { flex-shrink: 0; opacity: .7; }

.lb__nav,
.lb__close {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
}
.lb__nav:hover,
.lb__close:hover { background: rgba(255, 255, 255, .3); }
.lb__nav:focus-visible,
.lb__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lb__nav[hidden] { display: none; }
.lb__nav--prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lb__nav--next { right: 8px; top: 50%; transform: translateY(-50%); }
.lb__close { top: 8px; right: 8px; font-size: 26px; }

@media (max-width: 600px) {
  .lb { padding: 56px 8px 72px; }
  .lb__nav { top: auto; bottom: 12px; transform: none; }
  .lb__nav--prev { left: calc(50% - 56px); }
  .lb__nav--next { right: calc(50% - 56px); }
}
