/* ストア画像ギャラリー(アプリ紹介ページ共通)。サムネイルは小さく並べ、クリックで拡大する */
.store-gallery { max-width: 560px; margin: 0 auto 32px; text-align: left; }
.store-gallery h2 { font-size: 1rem; text-align: center; border-bottom: none; }
.gallery-list {
  list-style: none; margin: 0; padding: 4px 2px 10px;
  display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
}
.gallery-list li { flex: 0 0 auto; scroll-snap-align: start; }
.gallery-thumb {
  display: block; padding: 0; margin: 0; border: 1px solid var(--border);
  border-radius: 10px; background: var(--card-bg); overflow: hidden;
  cursor: zoom-in; line-height: 0;
}
.gallery-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-thumb img { height: 140px; width: auto; display: block; }
.gallery-dialog {
  border: none; padding: 0; background: transparent; color: #fff;
  max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; overflow: hidden;
}
.gallery-dialog::backdrop { background: rgba(0, 0, 0, 0.88); }
.gallery-stage {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center; padding: 48px 56px;
}
.gallery-stage img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  object-fit: contain; border-radius: 6px; background: #000;
}
.gallery-btn {
  position: absolute; border: none; border-radius: 999px; cursor: pointer;
  width: 44px; height: 44px; font-size: 22px; line-height: 44px; text-align: center;
  background: rgba(255, 255, 255, 0.18); color: #fff;
}
.gallery-btn:hover { background: rgba(255, 255, 255, 0.3); }
.gallery-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.gallery-close { top: 8px; right: 8px; }
.gallery-prev { left: 6px; top: 50%; transform: translateY(-50%); }
.gallery-next { right: 6px; top: 50%; transform: translateY(-50%); }
.gallery-count { position: absolute; bottom: 12px; left: 0; right: 0; text-align: center; font-size: 0.85rem; opacity: 0.85; }
@media (max-width: 480px) {
  .gallery-stage { padding: 48px 8px; }
  .gallery-prev, .gallery-next { top: auto; bottom: 4px; transform: none; }
  .gallery-prev { left: 12px; } .gallery-next { right: 12px; }
}
