.video-archive {
  padding-top: 120px;
  padding-bottom: 80px;
}

.video-archive__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.video-archive__title {
  text-align: center;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: 0.2em;
  margin-bottom: 2rem;
}

.video-archive__nav {
  display: flex;
  gap: 2rem;
  justify-content: flex-start;
  border-bottom: 1px solid #e0e0e0;
  padding-bottom: 1rem;
  margin-bottom: 2.5rem;
}

.video-nav-item {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 13px;
  color: #888;
  cursor: pointer;
  padding: 0 0 0.5em;
  margin-right: 2rem;
}

.video-nav-item.active {
  color: #111;
  font-weight: 500;
  border-bottom: 2px solid #111;
}

.video-nav-item:not(.active):hover {
  color: #111;
  transform: scale(1.15);
  transition: transform 0.2s ease;
}

/* グリッド: 3列 */
.video-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  align-items: start;
}

.video-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* モックアップ共通 */
.video-card__mockup {
  position: relative;
  width: 100%;
}

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

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

/* 横長(PC): top=5.5% left=4.2% width=91.6% height=65.2% */
.video-card__screen--landscape {
  top: 5.5%;
  left: 4.2%;
  width: 91.6%;
  height: 65.2%;
}

/* 縦長(SP): top=3.1% left=6.1% width=84% height=92.2% */
.video-card__screen--portrait {
  top: 3.1%;
  left: 6.1%;
  width: 84%;
  height: 92.2%;
}

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

/* 縦長カードはグリッドの幅を抑える */
.video-card--portrait .video-card__mockup {
  width: 55%;
  margin: 0 auto;
}

.video-card__info {
  padding: 10px 4px 0;
  text-align: center;
}

.video-card__name {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  line-height: 1.5em !important;
}

.video-card__cat {
  font-size: 11px;
  color: #999;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  line-height: 1.5em !important;
}

.video-hamburger {
  display: none;
}

/* タブレット */
@media (max-width: 1023px) {
  .video-archive__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ */
@media (max-width: 767px) {
  .video-archive {
    padding-top: 80px;
  }
  .video-archive__inner {
    padding: 0 20px;
  }
  .video-archive__grid {
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
  }
  .video-archive__nav {
    position: relative;
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
  }
  .video-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #111;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    position: relative;
    flex-shrink: 0;
  }
  .video-hamburger__bar {
    display: block;
    width: 18px;
    height: 1.5px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
  }
  .video-hamburger.open .video-hamburger__bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
  }
  .video-hamburger.open .video-hamburger__bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
  }
  .video-hamburger.open .video-hamburger__bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
  }
  .video-nav__items {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 54px;
    left: 0;
    background: #fff;
    border: 0.5px solid #e0e0e0;
    border-radius: 4px;
    padding: 8px 0;
    z-index: 100;
    min-width: 160px;
    max-height: 60vh;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .video-nav__items.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }
  .video-nav-item {
    border-bottom: none;
    padding: 10px 20px;
    text-align: left;
    font-size: 14px;
  }
  .video-nav-item.active,
  .video-nav-item:hover {
    border-bottom: none;
    background: #f5f5f5;
  }
}
