@charset "utf-8";

/* ==========================================================================
   動画アーカイブページ専用スタイルシート
   みずち OFFICIAL WEBSITE - VIDEOS & GUIDE ARCHIVE STYLE
   デザインルール：PROFILEページ＆NEWSページ完全準拠
   ========================================================================== */

:root {
  --color-primary: #1ca0ce;
  --color-primary-hover: #158db6;
  --color-primary-light: #eef8fc;
  --color-primary-glow: rgba(28, 160, 206, 0.22);

  --color-yt-red: #ff0000;
  --color-yt-red-hover: #cc0000;
  --color-yt-light: #fff0f0;

  --color-base: #ffffff;
  --color-bg-sub: #f6f8fb;
  --color-bg-card: #ffffff;

  --color-text-main: #222222;
  --color-text-sub: #555555;
  --color-text-muted: #888888;

  --color-border: #e2e8f0;
  --color-border-subtle: #edf2f7;

  --radius-sm: 6px;
  --radius-btn: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 12px 28px rgba(28, 160, 206, 0.2);

  --font-base: "Noto Sans JP", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-heading: "Montserrat", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans JP", sans-serif;
}

/* ─────────────────────────────────────────────────────────────
   ナビゲーション（VIDEOS現在地表示）
   ───────────────────────────────────────────────────────────── */
.nav.pc a.nav-active {
  color: var(--color-primary) !important;
  font-weight: bold;
}

/* ─────────────────────────────────────────────────────────────
   全体ラッパー＆レイアウト
   ───────────────────────────────────────────────────────────── */
.videos-page-wrapper {
  min-height: 80vh;
  padding: 140px 0 100px;
  box-sizing: border-box;
  background: #ffffff;
}

.videos-container {
  width: 92%;
  max-width: 1600px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ─────────────────────────────────────────────────────────────
   セクションヘッダー（PROFILE/NEWSページ完全準拠）
   ───────────────────────────────────────────────────────────── */
.section-head,
.videos-section-head {
  text-align: center;
  margin-bottom: 40px;
}

/* 英語大見出し（ABOUT, PERSONAL, VIDEOS & ARCHIVE など） */
.section-tag,
h2.section-tag,
.videos-tag {
  display: block;
  font-size: 2.8rem;
  color: #065fd4;
  text-align: center;
  letter-spacing: .05em;
  font-family: Montserrat, Noto Sans JP, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0 20px;
  margin: 0px auto;
  background: none;
  border: none;
  border-radius: 0;
  line-height: 1.2;
}

/* 英語タイトルの下の洗練された日本語タイトル（400〜500・0.15em・#333） */
.section-title,
h3.section-title,
.videos-title {
  font-family: "Noto Sans JP", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 1.65rem;
  font-weight: 500;
  color: #333333;
  letter-spacing: 0.15em;
  text-indent: 0.15em;
  margin: 14px auto 8px;
  padding: 0;
  line-height: 1.5;
}

/* 見出し下の説明文 */
.section-desc,
.videos-desc {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  margin: 0 auto;
  line-height: 1.75;
  letter-spacing: 0.05em;
  max-width: 640px;
}

/* ─────────────────────────────────────────────────────────────
   カテゴリフィルター（タブ）
   ───────────────────────────────────────────────────────────── */
.videos-filter-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 72px;
  flex-wrap: wrap;
}

.video-filter-btn {
  padding: 10px 22px;
  border-radius: 9999px;
  border: 1.5px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-sub);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.video-filter-btn i {
  font-size: 0.95rem;
}

.video-filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.video-filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.video-filter-btn.active i {
  color: #ffffff !important;
}

/* フィルターボタン＆汎用カテゴリアイコンカラー */
.icon-new,
#sec-new .video-category-title i {
  color: #ef4444;
}

.icon-start,
#sec-start .video-category-title i {
  color: #10b981;
}

.icon-pickup,
#sec-pickup .video-category-title i {
  color: #065fd4;
}

.icon-guide {
  color: #8b5cf6;
}

.icon-youtube {
  color: #ff0000;
}

/* ─────────────────────────────────────────────────────────────
   各カテゴリブロック
   ───────────────────────────────────────────────────────────── */
.video-category-block {
  margin-bottom: 128px;
  scroll-margin-top: 110px;
  transition: opacity 0.3s ease;
}

.video-category-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 2px solid #edf2f7;
  padding-bottom: 20px;
  margin-bottom: 76px;
  flex-wrap: wrap;
  gap: 16px;
}

.video-cat-title-group {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}

.video-category-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #065fd4;
  letter-spacing: .05em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-category-title i {
  color: var(--color-primary);
  font-size: 1.3rem;
}

.video-category-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  margin: 0;
}

.video-category-count {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 4px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(28, 160, 206, 0.2);
}

/* ─────────────────────────────────────────────────────────────
   動画カードグリッド
   ───────────────────────────────────────────────────────────── */
.videos-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 450px));
  justify-content: center;
  gap: 40px;
}

.videos-grid-3col .modern-video-card {
  max-width: 450px;
  width: 100%;
}

.videos-grid-4col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  row-gap: 80px;
  column-gap: 50px;
}

/* ─────────────────────────────────────────────────────────────
   モダン動画カード
   ───────────────────────────────────────────────────────────── */
.modern-video-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text-main);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  height: 100%;
  box-sizing: border-box;
}

.modern-video-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-primary);
  box-shadow: var(--shadow-hover);
  color: var(--color-text-main);
}

/* サムネイル画像エリア */
.modern-video-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.modern-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modern-video-card:hover .modern-video-thumb {
  transform: scale(1.06);
}

/* 再生アイコンオーバーレイ */
.modern-video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.modern-video-play-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 0, 0, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modern-video-card:hover .modern-video-play-overlay {
  opacity: 1;
  background: rgba(15, 23, 42, 0.45);
}

.modern-video-card:hover .modern-video-play-icon {
  transform: scale(1);
}

/* カテゴリバッジ */
.modern-video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  color: #ffffff;
  backdrop-filter: blur(4px);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.badge-new {
  background: rgba(239, 68, 68, 0.92);
}

.badge-start {
  background: rgba(16, 185, 129, 0.92);
}

.badge-pickup {
  background: rgba(28, 160, 206, 0.92);
}

.badge-guide {
  background: rgba(139, 92, 246, 0.92);
}

/* カード情報エリア */
.modern-video-info {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.modern-video-title {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-text-main);
  line-height: 1.5;
  margin: 0 0 10px 0;
  text-align: left;
  word-break: break-word;
  transition: color 0.2s ease;
}

.modern-video-card:hover .modern-video-title {
  color: var(--color-primary);
}

.modern-video-desc {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0 0 16px 0;
  text-align: left;
  flex: 1;
}

/* カードフッター */
.modern-video-footer {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
}

.modern-video-footer .fa-youtube {
  color: #ff0000;
}

.modern-video-footer .fa-cogs {
  color: #8b5cf6;
}

.modern-video-footer-link {
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.modern-video-card:hover .modern-video-footer-link i {
  transform: translateX(3px);
}

.modern-video-footer-link i {
  transition: transform 0.2s ease;
}

/* ─────────────────────────────────────────────────────────────
   下部ナビゲーション＆チャンネルCTA
   ───────────────────────────────────────────────────────────── */
.videos-bottom-cta {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  color: #ffffff;
  margin-top: 136px;
  margin-bottom: 50px;
  box-shadow: var(--shadow-md);
}

.videos-bottom-cta h3 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 10px 0;
}

.videos-bottom-cta p {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin: 0 0 24px 0;
}

.videos-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-yt-subscribe {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ff0000;
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 9999px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(255, 0, 0, 0.35);
  transition: all 0.2s ease;
}

.btn-yt-subscribe:hover {
  background: #cc0000;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 0, 0, 0.5);
}

.videos-bottom-nav {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.btn-back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 9999px;
  border: 1.5px solid var(--color-border);
  background: #ffffff;
  color: var(--color-text-main);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.btn-back-home:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* ─────────────────────────────────────────────────────────────
   レスポンシブ対応
   ───────────────────────────────────────────────────────────── */
@media screen and (max-width: 1024px) {
  .videos-grid-3col {
    gap: 24px;
  }
}

@media screen and (max-width: 820px) {
  .videos-grid-3col {
    gap: 16px;
  }

  .videos-grid-3col .modern-video-info {
    padding: 12px 10px 14px;
  }

  .videos-grid-3col .modern-video-title {
    font-size: 0.84rem;
    line-height: 1.4;
  }

  .videos-grid-3col .modern-video-desc {
    font-size: 0.74rem;
    line-height: 1.45;
  }
}

@media screen and (max-width: 768px) {
  .videos-page-wrapper {
    padding: 100px 0 60px;
  }

  .videos-container {
    width: 92%;
  }

  .section-tag,
  h2.section-tag,
  .videos-tag {
    font-size: 2.4rem;
    line-height: 2.8rem;
    padding: 0 10px;
  }

  .section-title,
  h3.section-title,
  .videos-title {
    font-size: 1.35rem;
    margin: 10px auto 6px;
    padding: 0;
  }

  .section-desc,
  .videos-desc {
    font-size: 0.88rem;
  }

  .videos-filter-bar {
    gap: 8px;
    margin-bottom: 48px;
  }

  .video-filter-btn {
    padding: 8px 16px;
    font-size: 0.82rem;
  }

  .video-category-block {
    margin-bottom: 84px;
    scroll-margin-top: 100px;
  }

  .video-category-header {
    margin-bottom: 56px;
    padding-bottom: 16px;
  }

  .video-category-title {
    font-size: 1.3rem;
  }

  .videos-grid-4col {
    row-gap: 36px;
    column-gap: 24px;
  }

  .modern-video-info {
    padding: 14px 14px 16px;
  }

  .modern-video-title {
    font-size: 0.88rem;
  }

  .modern-video-desc {
    font-size: 0.78rem;
    margin-bottom: 10px;
  }

  .videos-bottom-cta {
    padding: 36px 20px;
    margin-top: 84px;
  }

  .videos-bottom-cta h3 {
    font-size: 1.3rem;
  }
}

@media screen and (max-width: 600px) {
  .videos-page-wrapper {
    padding: 90px 0 50px;
  }

  .video-category-block {
    margin-bottom: 64px;
  }

  .videos-filter-bar {
    margin-bottom: 36px;
  }

  .videos-grid-3col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .videos-grid-4col {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .videos-grid-3col .modern-video-card {
    max-width: 100%;
  }

  .videos-bottom-cta {
    margin-top: 64px;
  }
}

/* =============================================================
   Scroll Fade-in Animation (スクロール連動フェードイン・アップ)
   ============================================================= */

/* ベースクラス：初期状態 */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

/* 表示状態（JSで付与） */
.fade-in-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* 表示後のホバー挙動（カードが少し浮き上がり枠色変化） */
.modern-video-card.fade-in-up.is-visible:hover {
  transform: translateY(-6px);
}

/* 遅延ユーティリティクラス */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* 複数並んでいるカードのスタッガー効果（PC表示時） */
@media (min-width: 769px) {
  /* 3列グリッド */
  .videos-grid-3col .modern-video-card:nth-child(1) { transition-delay: 0.05s; }
  .videos-grid-3col .modern-video-card:nth-child(2) { transition-delay: 0.18s; }
  .videos-grid-3col .modern-video-card:nth-child(3) { transition-delay: 0.3s; }

  /* 4列グリッド */
  .videos-grid-4col .modern-video-card:nth-child(4n+1) { transition-delay: 0.05s; }
  .videos-grid-4col .modern-video-card:nth-child(4n+2) { transition-delay: 0.15s; }
  .videos-grid-4col .modern-video-card:nth-child(4n+3) { transition-delay: 0.25s; }
  .videos-grid-4col .modern-video-card:nth-child(4n) { transition-delay: 0.35s; }
}

/* モバイル表示時：自然なスクロール感に合わせた短い遅延 */
@media (max-width: 768px) {
  .videos-grid-3col .modern-video-card:nth-child(n),
  .videos-grid-4col .modern-video-card:nth-child(n) {
    transition-delay: 0.05s;
  }
}

/* =============================================================
   MORE CONTENTS ハブセクション（YouTube・クリップ集・NEWS誘導）
   ============================================================= */
.video-more-hub-section {
  margin-top: 100px;
  margin-bottom: 90px;
}

.video-more-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.more-hub-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #ffffff;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  text-decoration: none;
  color: var(--color-text-main);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  box-sizing: border-box;
}

.more-hub-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-primary);
  box-shadow: 0 12px 28px rgba(28, 160, 206, 0.18);
}

.more-hub-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.more-hub-card:hover .more-hub-icon-wrap {
  transform: scale(1.08);
}

.card-yt .more-hub-icon-wrap {
  background: #fee2e2;
  color: #ef4444;
}

.card-clips .more-hub-icon-wrap {
  background: #e0f2fe;
  color: #0284c7;
}

.card-news .more-hub-icon-wrap {
  background: #fef3c7;
  color: #d97706;
}

.more-hub-card .more-hub-content {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.more-hub-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 6px;
}

.badge-yt {
  background: #fee2e2;
  color: #dc2626;
}

.badge-clips {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-news {
  background: #fef3c7;
  color: #b45309;
}

.more-hub-card .more-hub-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0 0 6px 0;
  text-align: left;
  transition: color 0.2s ease;
}

.more-hub-card:hover .more-hub-title {
  color: var(--color-primary);
}

.more-hub-card .more-hub-desc {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
  text-align: left !important;
}

.more-hub-arrow {
  color: var(--color-border);
  font-size: 1.1rem;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.more-hub-card:hover .more-hub-arrow {
  transform: translateX(4px);
  color: var(--color-primary);
}

@media screen and (max-width: 960px) {
  .video-more-hub-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}