/* navメニューの色をデフォルトの色に変更（JSで赤色に変更する） */
a[aria-current="page"] {
  color: rgb(193 193 193 / var(--tw-text-opacity, 1));
}

#video-loader svg {
  color: #c1c1c1;
}

#header-inner {
  background: transparent;
}

.first-view-logo {
  color: #ffffff;
}

/* galleryのデザイン */
.gallery-card {
  cursor: pointer;
  position: relative;
  width: 50%;
  overflow: hidden;
}

.block-image {
  width: 100%;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.block-image.open {
  opacity: 1;
  transform: translateY(0);
}

.gallery-card:hover img {
  transition: transform 0.3s ease;
  transform: scale(1.1);
}

.gallery-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.gallery-card:hover img {
  transform: scale(1.1);
}

.gallery-card .overlay {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  position: absolute;
  top: 0;
}

.gallery-card .overlay:hover {
  opacity: 1;
}

.overlay-text {
  text-align: left;
  margin-left: 1rem;
  margin-right: 1rem;
}

.overlay-text .client-name {
  font-size: 8px;
  letter-spacing: -0.05em;
  margin-bottom: 0.2rem;
}

.overlay-text .product-title {
  font-size: clamp(12px, 8.667px + 0.833vw, 14px);
  font-weight: bold;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.overlay-text .work-title {
  font-size: clamp(10px, 6.667px + 0.833vw, 12px);
  letter-spacing: -0.025em;
}

@media screen and (min-width: 640px) {
  .gallery-card {
    width: calc(100% / 3);
  }

  .overlay-text .client-name {
    font-size: 9px;
  }

  .overlay-text .product-title {
    font-size: clamp(12px, 8.658px + 0.522vw, 14px);
  }

  .overlay-text .work-title {
    font-size: clamp(10px, 6.658px + 0.522vw, 12px);
  }
}

@media screen and (min-width: 1024px) {
  .gallery-card {
    width: 25%;
  }

  .overlay-text .client-name {
    font-size: 10px;
  }

  .overlay-text .product-title {
    font-size: clamp(14px, 11.714px + 0.223vw, 16px);
  }

  .overlay-text .work-title {
    font-size: clamp(12px, 9.714px + 0.223vw, 14px);
  }
}

/* モーダル */
.modal-wrapper {
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: 0.3s ease;
  z-index: 900;
}

.modal-wrapper.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  opacity: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  transform: scale(0.95);
  width: 100%;
  height: 100%;
  background: rgb(28, 28, 28);
  padding: 4rem 2rem;
  overflow-y: auto;
  transition: opacity 0.3s ease, scale 0.3s ease;
  pointer-events: none;
}

.modal.open {
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

.modal-close {
  position: fixed;
  color: white;
  font-size: 30px;
  line-height: 30px;
  cursor: pointer;
  font-weight: 100;
  z-index: 20;
}

@media screen and (min-width: 640px) {
  .modal {
    width: 80%;
    height: 90%;
    padding: 4rem 6rem;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
  }

  .modal.open {
    transform: translate(-50%, -50%) scale(1);
  }
}

@media screen and (min-width: 1024px) {
  .modal {
    width: 70%;
    max-width: 1000px;
  }
}

/* Chrome, Edge, Safari */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #000;
}

::-webkit-scrollbar-thumb {
  background-color: #333;
  border-radius: 6px;
  border: 2px solid #000;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #333 #000;
}
