/* =============================================
   TVer リンク集ページ 専用CSS
   ※ すべてのクラスに .tver-page__ プレフィックスを付与し
     既存サイトのスタイルとの衝突を防止しています。
   ※ html { font-size: 62.5% } が既存CSSで設定済みのため
     このファイルでは px 単位を基本とします。
   ============================================= */

/* ---- リセット（コンテンツ領域のみ） ---- */
.tver-page,
.tver-page *,
.tver-page *::before,
.tver-page *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ---- 全体背景 ---- */
.tver-page {
  background-color: #f0f2f5;
  color: #333333;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 60vh;
}

/* ---- ページヘッダー（ロゴ＋タイトル） ---- */
.tver-page__header {
  background-color: #ffffff;
  padding: 40px 20px 32px;
  text-align: center;
  border-bottom: 3px solid #54C3F1;
}

.tver-page__header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.tver-page__logo {
  width: 160px;
  height: auto;
}

.tver-page__title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #2a2a2a;
}

/* ---- コンテンツエリア ---- */
.tver-page__content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 30px 20px 60px;
}

/* ---- セクション ---- */
.tver-page__section {
  margin-bottom: 50px;
}

.tver-page__section:last-child {
  margin-bottom: 0;
}

.tver-page__section-title {
  font-size: 20px;
  font-weight: 700;
  color: #2a2a2a;
  margin-bottom: 20px;
  padding-left: 14px;
  border-left: 4px solid #54C3F1;
}

/* ---- カードグリッド ---- */
.tver-page__grid {
  display: grid;
  gap: 24px;
}

/* レギュラー: PC 2列 */
.tver-page__grid--regular {
  grid-template-columns: repeat(2, 1fr);
}

/* イレギュラー: PC 2列（将来3〜4列にも対応可能） */
.tver-page__grid--irregular {
  grid-template-columns: repeat(2, 1fr);
}

/* ---- カード共通 ---- */
.tver-page__card {
  display: block;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333333;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tver-page__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(84, 195, 241, 0.22);
}

/* ---- サムネイル ---- */
.tver-page__card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background-color: #e0e4e8;
}

.tver-page__card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.tver-page__card:hover .tver-page__card-img {
  transform: scale(1.04);
}

/* ---- カード本文 ---- */
.tver-page__card-body {
  padding: 16px 18px 18px;
}

.tver-page__card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
  color: #1a1a1a;
}

.tver-page__card-schedule,
.tver-page__card-period {
  font-size: 13px;
  color: #666666;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

/* ---- バッジ（共通） ---- */
.tver-page__card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* レギュラー番組: 放送バッジ（TVer水色） */
.tver-page__card-badge {
  background-color: #54C3F1;
  color: #ffffff;
}

/* イレギュラー番組: 地上波放送バッジ（やや濃い青） */
.tver-page__card-badge--air {
  background-color: #3a8dd1;
  color: #ffffff;
}

/* イレギュラー番組: 配信期間バッジ（落ち着いたコーラル） */
.tver-page__card-badge--period {
  background-color: #e06070;
  color: #ffffff;
}

/* ---- レギュラーカード固有 ---- */
.tver-page__card--regular .tver-page__card-body {
  padding: 18px 20px 20px;
}

.tver-page__card--regular .tver-page__card-title {
  font-size: 19px;
}

/* ---- イレギュラーカード固有 ---- */
.tver-page__card--irregular .tver-page__card-title {
  font-size: 15px;
}

/* ---- カードラッパー（ボタン統合用） ---- */
.tver-page__card-wrapper {
  display: flex;
  flex-direction: column;
}

.tver-page__card-wrapper .tver-page__card {
  flex: 1;
}

/* ---- アクションボタンエリア ---- */
.tver-page__card-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ---- リンクボタン共通 ---- */
.tver-page__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.03em;
  transition: opacity 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  line-height: 1;
}

.tver-page__btn:hover {
  opacity: 0.88;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ボタン内SVGアイコン */
.tver-page__btn-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* YouTube再生リストボタン */
.tver-page__btn--youtube {
  background-color: #FF3B30;
  color: #ffffff;
}

/* 番組HPボタン */
.tver-page__btn--hp {
  background-color: #3a8dd1;
  color: #ffffff;
}

/* ==================================
   レスポンシブ: スマホ（767px以下）
   ================================== */
@media only screen and (max-width: 767px) {

  .tver-page__header {
    padding: 28px 16px 22px;
  }

  .tver-page__logo {
    width: 120px;
  }

  .tver-page__title {
    font-size: 18px;
  }

  .tver-page__content {
    padding: 20px 14px 40px;
  }

  .tver-page__section-title {
    font-size: 17px;
    margin-bottom: 16px;
  }

  /* スマホ: レギュラーは1列 */
  .tver-page__grid--regular {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  /* スマホ: イレギュラーは2列のまま（小さめカードで差別化） */
  .tver-page__grid--irregular {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .tver-page__card--regular .tver-page__card-title {
    font-size: 17px;
  }

  .tver-page__card--irregular .tver-page__card-body {
    padding: 10px 12px 14px;
  }

  .tver-page__card--irregular .tver-page__card-title {
    font-size: 13px;
  }

  .tver-page__card--irregular .tver-page__card-schedule,
  .tver-page__card--irregular .tver-page__card-period {
    font-size: 11px;
    flex-wrap: wrap;
    gap: 4px;
  }

  .tver-page__card--irregular .tver-page__card-badge {
    font-size: 10px;
    padding: 1px 6px;
  }

  /* スマホ: ボタンエリア */
  .tver-page__card-actions {
    gap: 6px;
    margin-top: 8px;
  }

  .tver-page__btn {
    font-size: 12px;
    padding: 9px 8px;
    gap: 4px;
  }

  .tver-page__btn-icon {
    width: 14px;
    height: 14px;
  }
}

/* ==================================
   レスポンシブ: 小さめスマホ（480px以下）
   ================================== */
@media only screen and (max-width: 480px) {

  /* 極小画面ではイレギュラーも1列に */
  .tver-page__grid--irregular {
    grid-template-columns: 1fr;
  }
}
