.costume-gallery {
  padding: 2rem;
}
.page-title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 1rem;
}
.tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
  list-style: none;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  background: #a48ed2;
}
@media (max-width: 768px) {
  .tab-nav {
    position: static;
  }
}
.tab-nav li {
  cursor: pointer;
  padding: 0.5rem 1rem;
  background: #333;
  color: white;
  border-radius: 5px;
}
.tab-nav li.active {
  background: crimson;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.costume-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}
.costume-card {
  background: #fff0f0;
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.gallery {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-start;
}
.main-image-wrapper {
  width: 100%;
}
.gallery img.main-img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
  margin-bottom: 0.5rem;
}
.thumbs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.gallery img.thumb-img {
  width: 60px;
  height: auto;
  border-radius: 5px;
  opacity: 0.85;
  cursor: pointer;
}
@media (max-width: 600px) {
  .costume-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.main-image-wrapper { position: relative; }
.zoom-btn {
  position: absolute; right: .5rem; bottom: .5rem;
  padding: .5rem .8rem; font-size: .95rem; border-radius: 9999px;
  background: rgba(0,0,0,.6); color: #fff; border: 0;
  backdrop-filter: blur(2px);
}
@media (hover:hover) {
  .zoom-btn:hover { background: rgba(0,0,0,.75); }
}
/* GLightbox クローズボタンの見え方を強制補正 */
.glightbox-clean .gclose {
  display: block !important;
  position: fixed !important;
  right: 12px; top: 12px;
  width: 44px; height: 44px; line-height: 44px;
  font-size: 22px;
  background: rgba(0,0,0,.45);
  color: #fff !important;
  z-index: 999999 !important;
  border-radius: 9999px;
}
/* タブの表示制御（保険） */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* GLightboxのクローズボタンがテーマCSSで隠れないように（強制表示） */
.glightbox-clean .gclose {
  display: block !important;
  position: fixed !important;
  right: 12px; top: 12px;
  width: 44px; height: 44px; line-height: 44px;
  font-size: 22px;
  color: #fff !important;
  background: rgba(0,0,0,.45);
  border-radius: 9999px;
  z-index: 2147483647 !important; /* どの要素よりも上 */
}