/* ============================================
   Gallery Page
   ============================================ */

/* Page Hero note */
.page-hero-note {
  margin-top: 16px;
  font-size: 13px;
  color: #888;
  letter-spacing: 0.02em;
}

/* ============================================
   Filter
   ============================================ */
.gallery-filter-section {
  padding: 40px 0 24px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  position: sticky;
  top: 64px;
  z-index: 50;
}
.gallery-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 18px;
  gap: 16px;
}
.gallery-filter-label {
  font-family: 'Archivo', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #888;
  text-transform: uppercase;
}
.gallery-count {
  font-family: 'Archivo', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: #666;
}

.gallery-filter-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.gallery-filter-btn {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 10px 20px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  background: #fff;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.gallery-filter-btn:hover {
  border-color: #0a0a0a;
  background: #f5f5f5;
}
.gallery-filter-btn.active {
  background: #0a0a0a;
  color: #fff;
  border-color: #0a0a0a;
}

/* ============================================
   Gallery Grid
   ============================================ */
.gallery-section {
  padding: 64px 0 96px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.gallery-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

/* フィルタリング時のフェード */
.gallery-card.is-hidden {
  display: none;
}

/* Image placeholder */
.gallery-card-img {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #f5f5f5 0%, #ebebeb 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.gallery-card-no {
  font-family: 'Archivo', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #aaa;
  text-transform: uppercase;
}

/* Card body */
.gallery-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.gallery-card-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.gallery-tag {
  font-family: 'Archivo', sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  background: #0a0a0a;
  color: #fff;
}
.gallery-tag.tag-sla { background: #2a2a2a; }
.gallery-tag.tag-fdm { background: #444; }
.gallery-tag.tag-pa12 { background: #1a4a3a; }
.gallery-tag.tag-cnc { background: #4a2a1a; }

.gallery-tag-industry {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #666;
  padding: 4px 0;
}

.gallery-card-title {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  margin-bottom: 8px;
  color: #0a0a0a;
}
.gallery-card-desc {
  font-size: 13px;
  line-height: 1.85;
  color: #555;
  margin-bottom: 18px;
}

/* Spec list */
.gallery-card-spec {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 14px 0 6px;
  margin: 0 0 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-card-spec > div {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  font-size: 12.5px;
  line-height: 1.6;
}
.gallery-card-spec dt {
  font-family: 'Archivo', sans-serif;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: #888;
  text-transform: uppercase;
  padding-top: 1px;
}
.gallery-card-spec dd {
  margin: 0;
  color: #333;
  font-weight: 500;
}

/* Price block */
.gallery-card-price {
  margin-top: auto;
  border-top: 1px dashed rgba(0, 0, 0, 0.18);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gallery-card-price .price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
}
.gallery-card-price .price-label {
  color: #666;
  font-weight: 500;
}
.gallery-card-price .price-val {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  color: #333;
  letter-spacing: -0.01em;
}
.gallery-card-price .price-row.total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}
.gallery-card-price .price-row.total .price-label {
  font-weight: 700;
  color: #0a0a0a;
  font-size: 13px;
}
.gallery-card-price .price-row.total .price-val {
  font-size: 22px;
  font-weight: 800;
  color: #0a0a0a;
  letter-spacing: -0.02em;
}
.gallery-card-price .price-row.total .price-val small {
  font-size: 10px;
  font-weight: 500;
  color: #888;
  margin-left: 4px;
  letter-spacing: 0;
}

/* Empty state */
.gallery-empty {
  text-align: center;
  padding: 80px 24px;
  color: #888;
  font-size: 14px;
  letter-spacing: 0.02em;
}

/* Disclaimer */
.gallery-disclaimer {
  margin-top: 48px;
  padding: 20px 24px;
  background: #fafafa;
  border-left: 3px solid #0a0a0a;
  font-size: 12.5px;
  line-height: 1.95;
  color: #555;
}
.gallery-disclaimer strong {
  color: #0a0a0a;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .gallery-filter-section {
    padding: 28px 0 20px;
    position: static;
  }
  .gallery-filter-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 14px;
  }
  .gallery-filter-list {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    margin: 0 -20px;
    padding-left: 20px;
    padding-right: 20px;
  }
  .gallery-filter-btn {
    font-size: 12px;
    padding: 8px 14px;
  }

  .gallery-section {
    padding: 40px 0 64px;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .gallery-card-body {
    padding: 20px;
  }
  .gallery-card-title {
    font-size: 17px;
  }
  .gallery-card-spec > div {
    grid-template-columns: 70px 1fr;
    gap: 10px;
  }
  .gallery-card-price .price-row.total .price-val {
    font-size: 19px;
  }
}

@media (max-width: 480px) {
  .gallery-card-img {
    aspect-ratio: 16 / 10;
  }
}
