@charset "utf-8";

/* ===== グリッドレイアウト ===== */
.look-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 24px;
  max-width: 1200px;
  margin: 0 auto;
}
.look-card {
  position: relative;
  cursor: pointer;
  text-align: center;
}
.look-image {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .08);
}
.look-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.look-card:hover img { transform: scale(1.05); }
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  opacity: 0;
  transition: .3s ease;
}
.overlay i { font-size: 22px; margin-bottom: 6px; }
.look-card:hover .overlay { opacity: 1; }
.look-title {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
}
/* ===== モーダル ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.8);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}
.modal.is-open { display: flex; }
.gallery {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 90vw;
  max-height: 90vh;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.gallery-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 4px 10px;
  background: rgba(255,255,255,0.7);
  color: #000;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}
.gallery-title { font-weight: 600; }
.gallery-close {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* ===== ステージ（大画像） ===== */
.gallery-stage {
  flex: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
.gallery-stage img {
  width: 800px;
  height: 800px;
  object-fit: contain;
  display: none;
  opacity: 0;
  transition: opacity .6s ease;
}
.gallery-stage img.active {
  display: block;
  opacity: 1;
}


/* ===== サムネイル ===== */
.gallery-thumbs {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  background: #fff;
  flex-wrap: wrap;
}
.gallery-thumbs img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  opacity: 0.7;
  transition: all .3s;
}
.gallery-thumbs img.active {
  border-color: #000;
  opacity: 1;
}

/* ===== ナビボタン ===== */
.nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,.3);
  transition: background .3s;
  z-index: 10;
    padding: 0;
}
.nav-btn:hover { background: rgba(0,0,0,0.8); }
.nav-prev { left: 15px; }
.nav-next { right: 15px; }

@media screen and (max-width: 768px) {
  .gallery-stage {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }
  .gallery-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

@media screen and (min-width: 1025px) {
  .look-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
