.video-detail-wrap {
  padding-top: 120px;
}

.video-detail {
  display: flex;
  height: calc(100vh - 120px);
}

.video-detail__left {
  width: 260px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
  height: 100%;
  border-right: 0.5px solid #e0e0e0;
  display: flex;
  flex-direction: column;
}

.video-detail__back {
  display: block;
  font-size: 18px;
  color: #888;
  text-decoration: none;
  padding: 1.5rem 2rem;
  border-bottom: 0.5px solid #e0e0e0;
  transition: color 0.2s;
  flex-shrink: 0;
}

.video-detail__back:hover {
  color: #111;
}

.video-detail__left-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.video-detail__title {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.video-detail__meta {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.video-detail__meta-item {
  font-size: 11px;
  color: #555;
  margin-bottom: 12px;
  line-height: 1.6;
  letter-spacing: 0.12em;
}

.video-detail__meta-label {
  font-size: 10px;
  color: #aaa;
  display: block;
  margin-bottom: 2px;
}

.video-detail__desc {
  font-size: 11px;
  color: #555;
  line-height: 2em;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 0.5px solid #e0e0e0;
  letter-spacing: 0.12em;
}

.video-detail__cat-badge {
  display: inline-block;
  font-size: 10px;
  color: #888;
  border: 0.5px solid #ccc;
  border-radius: 20px;
  padding: 3px 12px;
  margin-top: 16px;
  margin-right: 4px;
}

.video-detail__right {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 2.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.video-detail__right--single {
  overflow-y: hidden;
  justify-content: center;
}

/* 動画埋め込み */
.video-detail__embed-wrap {
  width: 100%;
  position: relative;
}

/* 横長(YouTube等) 16:9 */
.video-detail__embed-wrap--landscape {
  aspect-ratio: 16 / 9;
}

/* 縦長(Instagram Reels等) 9:16 */
.video-detail__embed-wrap--portrait {
  width: 45%;
  aspect-ratio: 9 / 16;
}

.video-detail__iframe {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 4px;
}

/* 追加画像 */
.video-detail__img {
  width: 100%;
  flex-shrink: 0;
}

.video-detail__img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* OTHER WORKS */
.video-detail__other {
  padding: 2rem 3rem;
  border-top: 0.5px solid #e0e0e0;
}

.video-detail__other-title {
  font-size: 11px;
  color: #aaa;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.video-detail__other-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: start;
}

.video-detail__other-card {
  text-decoration: none;
  color: inherit;
}

/* OTHER WORKSモックアップ */
.video-detail__other-mockup {
  position: relative;
  margin-bottom: 6px;
}

.video-detail__other-mockup--landscape {
  width: 100%;
}

.video-detail__other-mockup--portrait {
  width: 55%;
  margin-left: auto;
  margin-right: auto;
}

.video-detail__other-frame {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  z-index: 2;
}

.video-detail__other-screen {
  position: absolute;
  overflow: hidden;
  z-index: 1;
}

.video-detail__other-screen--landscape {
  top: 5.5%;
  left: 4.2%;
  width: 91.6%;
  height: 65.2%;
}

.video-detail__other-screen--portrait {
  top: 3.1%;
  left: 6.1%;
  width: 84%;
  height: 92.2%;
}

.video-detail__other-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.video-detail__other-name {
  font-size: 11px;
  color: #111;
  margin-top: 0 !important;
  text-align: center;
}

/* タブレット・スマホ */
@media (max-width: 1023px) {
  .video-detail {
    flex-direction: column;
    height: auto;
  }
  .video-detail__left {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 0.5px solid #e0e0e0;
  }
  .video-detail__back {
    padding: 1rem 2rem;
  }
  .video-detail__left-scroll {
    padding: 2rem;
  }
  .video-detail__right {
    height: auto;
    overflow-y: visible;
    padding: 2rem;
  }
  .video-detail__other {
    padding: 2rem;
  }
  .video-detail__embed-wrap--portrait {
    width: 60%;
  }
}

@media (max-width: 767px) {
  .video-detail__embed-wrap--portrait {
    width: 80%;
  }
  .video-detail__other-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .video-detail__other-card:nth-child(n+4) {
    display: none;
  }
}
