@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap');

* {
  box-sizing: border-box;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'IBM Plex Mono', monospace;
  background: #ffffff;
  color: #000000;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.filter-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 16px 32px;
  background: #fff;
  z-index: 190;
  border-bottom: 1px solid #eee;
}

.filter-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.25);
  padding: 0;
  transition: color 0.3s ease;
}

.filter-btn.active {
  color: #000;
  font-weight: 600;
}

main {
  padding: 84px 32px 64px;
  position: relative;
  min-height: 100vh;
}

.release-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.4);
  max-width: 480px;
  text-align: center;
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  padding: 40px 32px 48px;
  width: 100%;
}

.footer-contact {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.55);
}

.footer-contact a {
  color: inherit;
  text-decoration: underline;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: 24px;
  row-gap: 64px;
  transition: opacity 0.4s ease;
  position: relative;
}

.product-grid.hidden-grid {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .product-grid { grid-template-columns: 1fr; }
}

.product-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  transition: transform 0.5s cubic-bezier(.16,1,.3,1), opacity 0.35s ease;
}

.product-card.is-disabled {
  cursor: default;
  opacity: 0.32;
  filter: grayscale(1);
  pointer-events: none;
}

.product-card.card-hidden {
  display: none;
}

.product-card .image-wrap {
  width: 100%;
  aspect-ratio: 1.6 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card .image-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.product-card .name {
  margin-top: 24px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-align: center;
}

.product-card.is-disabled .image-wrap img {
  opacity: 0.7;
  filter: grayscale(1) contrast(0.9);
}

.product-card.is-disabled .name {
  color: #777;
}

.detail-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.detail-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.detail-media {
  width: min(640px, 84vw);
  aspect-ratio: 1.6 / 1;
  position: relative;
  overflow: hidden;
  transform: scale(0.4);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(.16,1,.3,1), opacity 0.4s ease;
}

.detail-overlay.active .detail-media {
  transform: scale(1);
  opacity: 1;
}

.detail-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  transition: transform 0.22s ease, opacity 0.22s ease;
  will-change: transform, opacity;
}

.detail-name {
  margin-top: 32px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.25s, transform 0.4s ease 0.25s;
}

.detail-overlay.active .detail-name {
  opacity: 1;
  transform: translateY(0);
}

.detail-spec {
  margin-top: 12px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: #666;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease 0.32s, transform 0.4s ease 0.32s;
}

.detail-overlay.active .detail-spec {
  opacity: 1;
  transform: translateY(0);
}

.detail-close {
  margin-top: 28px;
  background: none;
  border: none;
  cursor: pointer;
  color: #000;
  font-size: 34px;
  line-height: 1;
  transform: rotate(45deg);
  opacity: 0;
  -webkit-appearance: none;
  appearance: none;
  transition: opacity 0.4s ease 0.38s;
}

.detail-overlay.active .detail-close {
  opacity: 1;
}

@media (max-width: 560px) {
  .detail-media {
    width: min(92vw, 640px);
  }

  .detail-close {
    font-size: 38px;
  }
}