/* ============================================================
   video-ai-page.css  —  live-page.css の差分のみ
   ============================================================ */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   1. HERO — フィルターバー + 動画 + グリッド
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sl-vai-hero-dashboard {
  max-width: 1120px;
  margin: 0 auto;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(0,0,0,0.1);
  border-bottom: none;
  overflow: hidden;
  background: #fff;
  display: flex;
  flex-direction: column;
}

/* Filter bar row */
.sl-vai-hero-filterbar {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sl-vai-hero-filterbar img {
  width: 100%;
  height: auto;
  display: block;
}

/* Body: large portrait video left + thumbnail grid right */
.sl-vai-hero-body {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: 480px;
}

.sl-vai-hero-video-panel {
  width: 30%;
  flex-shrink: 0;
  border-right: 1px solid rgba(0,0,0,0.08);
  overflow: hidden;
  position: relative;
}
.sl-vai-hero-video-panel video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* AI caption overlay (bottom-left of video) */
.sl-vai-hero-caption {
  position: absolute;
  bottom: 16px;
  left: 12px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.55;
  padding: 10px 13px;
  border-radius: 10px;
  backdrop-filter: blur(6px);
  max-width: calc(100% - 24px);
}
.sl-vai-caption-star {
  background: linear-gradient(135deg, #f9a8d4, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 3px;
}

.sl-vai-hero-grid {
  flex: 1;
  overflow: hidden;
  position: relative;
}
.sl-vai-hero-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  display: block;
}

/* Search box overlay (floating in grid area) */
.sl-vai-hero-search {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 72%;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 14px;
  padding: 14px 16px 10px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14);
}
.sl-vai-hero-search p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #222;
  line-height: 1.4;
  font-family: var(--pg-font);
}
.sl-vai-hero-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sl-vai-search-add {
  font-size: 20px;
  line-height: 1;
  color: rgba(0,0,0,0.35);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-family: var(--pg-font);
}
.sl-vai-search-submit {
  width: 30px;
  height: 30px;
  background: #111;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ヒーロー直下のbenefitsボーダーを非表示 */
.sl-lv-hero + .sl-lv-benefits {
  border-top: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. BENEFITS — アイコン横並び・等幅
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
/* minmax(0,1fr) で min-content 下限を排除し、全列を厳密に等幅に */
.sl-lv-benefits-inner {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
/* 全列を同じpadding（左右対称）に統一 */
.sl-lv-benefits-inner .sl-lv-benefit-col {
  padding: 0 24px;
}
.sl-lv-benefits-inner .sl-lv-benefit-col:first-child { padding-left: 24px; }
.sl-lv-benefits-inner .sl-lv-benefit-col:last-child  { padding-right: 24px; border-right: none; }


/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   2. FEATURE CLIP CARDS（sl-lv-feat-card ベース）
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sl-sf-feat-two-col {
  max-width: var(--pg-max-w);
  margin: 0 auto 20px;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
/* Card background overrides */
.sl-vai-card--lavender  { background: #DFD5FC !important; }
.sl-vai-card--purple    { background: #8130FF !important; }
.sl-vai-card--indigo    { background: #6734FC !important; }
.sl-vai-card--nearblack { background: #141414 !important; }
.sl-vai-card--gray      { background: #E0E0E0 !important; }
.sl-vai-card--offwhite  { background: #F3F3F3 !important; }
.sl-vai-card--lilac     { background: #CAB5FE !important; }
.sl-vai-card--silver    { background: #DEDEDE !important; }

/* Text colors on purple card */
.sl-vai-card--purple .sl-lv-feat-title { color: #fff; }
.sl-vai-card--purple .sl-lv-feat-desc  { color: rgba(255,255,255,0.8); }

/* Video: full card width (override 36px card padding) */
.sl-lv-feat-card-img.sl-vai-card-video {
  align-items: stretch;
  min-height: 280px;
  margin-left: -36px;
  margin-right: -36px;
  width: calc(100% + 72px);
}
.sl-lv-feat-card-img.sl-vai-card-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. FEATURE TAB SECTIONS
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sl-vai-feat-sec {
  max-width: var(--pg-max-w);
  margin: 0 auto 20px;
  padding: 0 32px;
}

.sl-vai-feat-head {
  margin: 120px 0 56px;
}

.sl-vai-feat-tabs {
  display: flex;
  border-radius: var(--pg-radius);
  overflow: hidden;
  background: #111;
  min-height: 460px;
}

/* ── Tab list (left column) ── */
.sl-vai-tab-list {
  flex: 0 0 320px;
  display: flex;
  flex-direction: column;
  padding: 8px 0;
  border-right: 1px solid rgba(255,255,255,0.07);
  overflow-y: auto;
}

.sl-vai-tab-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 20px 24px;
  cursor: pointer;
  border: none;
  background: none;
  text-align: left;
  font-family: var(--pg-font);
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  position: relative;
}
.sl-vai-tab-item:hover {
  background: rgba(255,255,255,0.04);
}
.sl-vai-tab-item.active {
  border-left-color: var(--pg-red);
  background: rgba(255,255,255,0.06);
}

.sl-vai-tab-num {
  font-size: 11px;
  font-weight: 700;
  color: var(--pg-red);
  letter-spacing: 0.06em;
}

.sl-vai-tab-title {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255,255,255,0.6);
  line-height: 1.45;
}
.sl-vai-tab-item.active .sl-vai-tab-title {
  color: #fff;
}

.sl-vai-tab-desc {
  font-size: 12px;
  line-height: 1.65;
  color: rgba(255,255,255,0.45);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease, opacity 0.25s;
  opacity: 0;
}
.sl-vai-tab-item.active .sl-vai-tab-desc {
  max-height: 80px;
  opacity: 1;
}

/* Progress bar */
.sl-vai-tab-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}
.sl-vai-tab-bar-fill {
  height: 100%;
  background: var(--pg-red);
  width: 0%;
}

/* ── Video panel (right column) ── */
.sl-vai-tab-video {
  flex: 1;
  position: relative;
  overflow: hidden;
  background: #000;
}

.sl-vai-tab-video video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}
.sl-vai-tab-video video.active {
  display: block;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   3. CTA — ボタン2つ
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
.sl-vai-cta-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.sl-btn-outline-dark {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
  cursor: pointer;
}
.sl-btn-outline-dark:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
}

/* モバイル専用改行 */
.sl-br-sp { display: none; }

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   RESPONSIVE
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */
@media (max-width: 768px) {

  .sl-br-sp { display: inline; }

  /* ── Hero text ── */
  .sl-lv-hero .sl-lv-hero-h1 {
    font-size: clamp(28px, 6.5vw, 42px);
  }
  .sl-lv-hero .sl-lv-hero-desc { font-size: 14px; }
  .sl-lv-hero .sl-lv-hero-desc br { display: none; }

  /* ── Hero dashboard: hide filterbar only, keep video + grid ── */
  .sl-vai-hero-dashboard { margin: 0 20px; border-radius: 12px; }
  .sl-vai-hero-filterbar { display: none; }
  .sl-vai-hero-body { height: 320px; }
  .sl-vai-hero-video-panel { width: 42%; }
  .sl-vai-hero-caption { display: none; }
  .sl-vai-hero-search { width: 80%; font-size: 11px; padding: 10px 12px 8px; bottom: 14px; }
  .sl-vai-hero-search p { font-size: 11px; margin-bottom: 7px; }

  /* ── Benefits: restore 2-col grid (override 4-col desktop rule) ── */
  .sl-lv-benefits-inner {
    grid-template-columns: 1fr 1fr;
  }
  .sl-lv-benefits-inner .sl-lv-benefit-col { padding: 28px 20px; border-right: none; border-bottom: 1px solid var(--pg-border); }
  .sl-lv-benefits-inner .sl-lv-benefit-col:nth-child(odd) { border-right: 1px solid var(--pg-border); }
  .sl-lv-benefits-inner .sl-lv-benefit-col:last-child { border-bottom: none; border-right: none; }
  .sl-lv-benefits-inner .sl-lv-benefit-col:nth-child(3) { border-bottom: none; }

  /* ── Feature section heading ── */
  .sl-vai-feat-sec { padding: 0; }
  .sl-vai-feat-head {
    margin: 64px 0 40px;
    padding: 0 20px;
  }

  /* ── 2-col card grids → 1 column ── */
  .sl-sf-feat-two-col {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  /* ── Video cards: reduce min-height ── */
  .sl-lv-feat-card-img.sl-vai-card-video {
    min-height: 220px;
    margin-left: -28px;
    margin-right: -28px;
    width: calc(100% + 56px);
  }
}

@media (max-width: 480px) {

  /* ── Hero text: smaller phones ── */
  .sl-lv-hero .sl-lv-hero-h1 {
    font-size: clamp(22px, 7.5vw, 32px);
  }

  /* ── Benefits: 1 column ── */
  .sl-lv-benefits-inner {
    grid-template-columns: 1fr;
  }
  .sl-lv-benefits-inner .sl-lv-benefit-col { padding: 24px 20px; border-right: none; }
  .sl-lv-benefits-inner .sl-lv-benefit-col:nth-child(odd) { border-right: none; }
}
