/* ========================================
   works-detail.css - Work Detail Page Styles
   ======================================== */

.detail-page {
  padding-top: var(--header-height);
}

.detail-content {
  padding-top: var(--section-gap);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  padding-bottom: var(--section-gap);
}

/* --- Intro: Breadcrumb + Title Section --- */
.detail__intro {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.detail__breadcrumb {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 50px;
}

.detail__breadcrumb a {
  color: var(--color-text);
  transition: opacity 0.3s;
}

.detail__breadcrumb a:hover {
  opacity: 0.7;
}

/* --- Header Info (Title + Client) --- */
.detail__header {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail__title {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 50px;
}

.detail__client {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 30px;
}

/* --- Media (Vimeo / Video) --- */
.detail__media {
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
}

.detail__media-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.detail__media-item img,
.detail__media-item iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: none;
}

.detail__media-item video {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  display: block;
  border: none;
  outline: none;
}

/* --- 04_picture 2列グリッド --- */
.detail__picture-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: var(--section-gap);
  column-gap: 30px;
}

.detail__picture-item {
  aspect-ratio: 16 / 9;
  background-color: #F0F0F0;
  overflow: hidden;
}

.detail__picture-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Info: Description + Credits --- */
.detail__description {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 25px;
}

/* --- Credits --- */
.detail__info {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.detail__credits {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 25px;
  color: var(--color-subtle);
}

.detail__credits p {
  margin-bottom: 0;
}

/* --- Other Works --- */
.detail__other-works {
  margin-top: 40px;
}

.detail__other-heading {
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 50px;
  margin-bottom: 60px;
}

.detail__other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.detail__other-item {
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.detail__other-item:hover {
  opacity: 1;
}

.detail__other-item:hover .detail__other-category {
  background: var(--gradient-works);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-move 2s linear infinite;
  border-color: transparent;
  border-image: linear-gradient(to right, #FF9191, #FFC691, #FF9191) 1;
}

.detail__other-item:hover .detail__other-title,
.detail__other-item:hover .detail__other-client {
  background: var(--gradient-works);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-move 2s linear infinite;
}

.detail__other-thumbnail {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #F0F0F0;
  overflow: hidden;
}

.detail__other-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail__other-hover-video {
  position: absolute;
  inset: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s;
}

.detail__other-item:hover .detail__other-hover-video {
  opacity: 1;
}

.detail__other-info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail__other-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.detail__other-category {
  display: inline-block;
  font-family: var(--font-secondary);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 16px;
  color: var(--color-muted);
  border: 1px solid var(--color-muted);
  padding: 4px 15px 5px;
  border-radius: 0;
}

.detail__other-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 30px;
}

.detail__other-client {
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  line-height: 25px;
}

/* ========================================
   Responsive - Mobile (730px)
   ======================================== */
@media (max-width: 730px) {
  .detail__intro {
    gap: 20px;
  }

  .detail__breadcrumb {
    font-size: 20px;
    line-height: 36px;
  }

  .detail__title {
    font-size: 20px;
    line-height: 36px;
  }

  .detail__client {
    font-size: 12px;
    line-height: 22px;
  }

  .detail__description {
    font-size: 12px;
    line-height: 22px;
  }

  .detail__picture-grid {
    row-gap: 40px;
    column-gap: 10px;
  }

  .detail__credits {
    font-size: 12px;
    line-height: 22px;
  }

  .detail__info {
    gap: 40px;
  }

  .detail__media {
    gap: 40px;
  }

  .detail__other-works {
    margin-top: 20px;
  }

  .detail__other-heading {
    font-size: 20px;
    line-height: 36px;
    margin-bottom: 30px;
  }

  .detail__other-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 10px;
  }

  .detail__other-item {
    gap: 10px;
  }

  .detail__other-category {
    font-size: 10px;
    padding: 3px 10px 2px;
  }

  .detail__other-title {
    font-size: 14px;
    line-height: 25px;
  }

  .detail__other-client {
    font-size: 12px;
    line-height: 22px;
  }
}
