/* ============================================================
   kiji_list（動画一覧ページ）スタイル
   ============================================================ */

.vl-page {
  background: linear-gradient(180deg, #EBF4FF 0%, var(--bg) 200px);
  min-height: 100vh;
  padding-bottom: 80px;
}

.vl-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 32px 24px 0;
}

/* ===== パンくず ===== */
.vl-bread {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-3);
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.vl-bread a {
  color: var(--text-3);
  text-decoration: none;
}
.vl-bread a:hover { color: var(--sky); }
.vl-bread__sep { font-size: 10px; }

/* ===== ページタイトル ===== */
.vl-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}
.vl-hero__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.vl-hero__text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.vl-hero__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.vl-hero__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.65;
  margin: 0;
}

/* ===== 件数表示 ===== */
.vl-count {
  font-size: 13px;
  color: var(--text-3);
  margin-bottom: 20px;
}

/* ===== 空メッセージ ===== */
.vl-empty {
  text-align: center;
  color: var(--text-3);
  padding: 60px 0;
  font-size: 15px;
}

/* ============================================================
   親カテゴリ：子カテゴリ横長カード縦積み
   ============================================================ */
.vl-cat-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vl-cat-row {
  display: flex;
  align-items: center;
  gap: 24px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 28px;
  box-shadow: var(--sh-sm);
  transition: box-shadow .2s, border-color .2s;
}
.vl-cat-row:hover {
  box-shadow: var(--sh-hover);
  border-color: var(--sky-mid);
}

.vl-cat-row__thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sky-lt);
  display: flex;
  align-items: center;
  justify-content: center;
}
.vl-cat-row__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vl-cat-row__placeholder {
  font-size: 32px;
  line-height: 1;
}

.vl-cat-row__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.vl-cat-row__name {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.vl-cat-row__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}
.vl-cat-row__btn {
  align-self: flex-start;
  margin-top: 4px;
  padding: 8px 20px;
  background: var(--sky);
  color: #fff;
  border-radius: var(--r-sm);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
  white-space: nowrap;
}
.vl-cat-row__btn:hover { opacity: .85; }

/* ============================================================
   子カテゴリ：動画グリッド
   ============================================================ */
.vl-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.vl-video-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vl-video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: var(--sky-mid);
}

/* サムネイル */
.vl-video-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #1a1a2e;
  overflow: hidden;
  flex-shrink: 0;
}
.vl-video-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.vl-video-card:hover .vl-video-card__thumb img {
  transform: scale(1.05);
}
.vl-video-card__no-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
}

/* 再生ボタン */
.vl-video-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  background: rgba(255, 255, 255, .88);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--sky);
  pointer-events: none;
  transition: background .2s, transform .2s;
  padding-left: 3px;
}
.vl-video-card:hover .vl-video-card__play {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.12);
}

/* カード本文 */
.vl-video-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.vl-video-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vl-video-card__inst {
  font-size: 12px;
  color: var(--text-3);
  margin-top: auto;
  padding-top: 4px;
}

/* ============================================================
   講師一覧（instructor list）：写真＋よみがな＋講師名カード
   ============================================================ */
.il-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.il-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--sh-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.il-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-hover);
  border-color: var(--sky-mid);
}
.il-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--sky-lt);
  overflow: hidden;
  flex-shrink: 0;
}
.il-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .3s;
}
.il-card:hover .il-card__photo img { transform: scale(1.05); }
.il-card__noimg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--sky);
}
.il-card__body {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.il-card__yomi {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: .04em;
}
.il-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.45;
}
.il-card__field {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  line-height: 1.45;
  margin-top: 2px;
}

/* ============================================================
   ページャー
   ============================================================ */
.vl-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: 8px 0 48px;
  flex-wrap: wrap;
}
.vl-pager__num,
.vl-pager__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 4px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background .15s, border-color .15s, color .15s;
}
.vl-pager__num:hover,
.vl-pager__nav:hover {
  background: var(--sky-lt);
  border-color: var(--sky);
  color: var(--sky);
}
.vl-pager__num.is-active {
  background: var(--sky);
  border-color: var(--sky);
  color: #fff;
  pointer-events: none;
}
.vl-pager__nav {
  font-size: 20px;
  color: var(--text-3);
}

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 960px) {
  .vl-video-grid { grid-template-columns: repeat(2, 1fr); }
  .il-grid       { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .vl-inner       { padding: 20px 16px 0; }
  .vl-hero__title { font-size: 18px; }
  .vl-cat-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
  }
  .vl-cat-row__btn { white-space: normal; }
  .vl-video-grid  { grid-template-columns: 1fr; gap: 16px; }
  .vl-video-card__body { padding: 12px 14px 16px; }
  .il-grid        { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}