/*
 * 動画で紹介した帽子｜動画一覧ページ
 * ファイル名：video-hats-index.css
 *
 * 対象ページ：
 * /blog/video-hats/
 *
 * デザイン方針：
 * ・動画サムネイルを主役にする
 * ・時谷堂百貨らしいチャコール、生成り、落ち着いた金色
 * ・PCは2列、スマートフォンは1列
 * ・動画が増えたら同じカードを追加するだけ
 */

/* ==================================================
   基本設定
================================================== */

.video-hats-index {
  --vhi-text: #222522;
  --vhi-muted: #6b6e69;
  --vhi-dark: #222a27;
  --vhi-gold: #98794a;
  --vhi-gold-light: #c8ad7b;
  --vhi-line: #d9d5cc;
  --vhi-paper: #ffffff;
  --vhi-warm: #f4f1ea;

  width: 100%;
  overflow: hidden;
  color: var(--vhi-text);
  background: var(--vhi-paper);
  font-family:
    "Yu Gothic",
    "YuGothic",
    "Hiragino Kaku Gothic ProN",
    "Hiragino Sans",
    sans-serif;
  font-size: 16px;
  line-height: 1.8;
}

.video-hats-index *,
.video-hats-index *::before,
.video-hats-index *::after {
  box-sizing: border-box;
}

.video-hats-index img {
  display: block;
  max-width: 100%;
  height: auto;
}

.video-hats-index a {
  color: inherit;
}

.video-hats-index__inner {
  width: min(1160px, calc(100% - 56px));
  margin: 0 auto;
}

/* ==================================================
   ファーストビュー
================================================== */

.video-hats-index__hero {
  position: relative;
  padding: 84px 0 78px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(200, 173, 123, 0.14),
      transparent 34%
    ),
    var(--vhi-dark);
}

.video-hats-index__hero::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 140px;
  height: 3px;
  content: "";
  background: var(--vhi-gold);
  transform: translateX(-50%);
}

.video-hats-index__eyebrow {
  margin: 0 0 16px;
  color: var(--vhi-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.22em;
}

.video-hats-index__hero h1 {
  margin: 0 0 22px;
  color: #ffffff;
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0.07em;
}

.video-hats-index__lead {
  max-width: 720px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.74);
  font-size: 16px;
  line-height: 2;
}

/* ==================================================
   動画一覧
================================================== */

.video-hats-index__archive {
  padding: 76px 0 96px;
  background: var(--vhi-warm);
}

.video-hats-index__heading {
  margin-bottom: 42px;
  text-align: center;
}

.video-hats-index__heading h2 {
  margin: 0;
  color: var(--vhi-text);
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.video-hats-index__heading h2::after {
  display: block;
  width: 44px;
  height: 1px;
  margin: 18px auto 0;
  content: "";
  background: var(--vhi-gold);
}

.video-hats-index__heading p {
  margin: 15px 0 0;
  color: var(--vhi-muted);
  font-size: 13px;
}

/* PCは2列、追加時も自動整列 */
.video-hats-index__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px;
}

/* ==================================================
   動画カード
================================================== */

.video-hats-index__card {
  min-width: 0;
  border: 1px solid rgba(34, 37, 34, 0.12);
  background: var(--vhi-paper);
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.video-hats-index__card:hover {
  border-color: rgba(152, 121, 74, 0.48);
  box-shadow: 0 20px 54px rgba(34, 37, 34, 0.11);
  transform: translateY(-5px);
}

.video-hats-index__card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
}

/* サムネイル */
.video-hats-index__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dad8d1;
}

.video-hats-index__thumb::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      180deg,
      transparent 56%,
      rgba(19, 24, 22, 0.44) 100%
    );
  pointer-events: none;
}

.video-hats-index__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.video-hats-index__card:hover .video-hats-index__thumb img {
  transform: scale(1.035);
}

.video-hats-index__item-count {
  position: absolute;
  right: 16px;
  bottom: 14px;
  z-index: 1;
  margin: 0;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(34, 42, 39, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.1em;
}

/* カード本文 */
.video-hats-index__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 28px 30px 30px;
}

.video-hats-index__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  color: var(--vhi-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.video-hats-index__meta::after {
  width: 34px;
  height: 1px;
  content: "";
  background: var(--vhi-gold);
}

.video-hats-index__card h3 {
  margin: 0 0 24px;
  color: var(--vhi-text);
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(19px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: 0.025em;
}

.video-hats-index__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--vhi-line);
  color: var(--vhi-dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.video-hats-index__cta::after {
  content: "→";
  color: var(--vhi-gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  transition: transform 0.22s ease;
}

.video-hats-index__card:hover .video-hats-index__cta::after {
  transform: translateX(5px);
}

/* ==================================================
   補足
================================================== */

.video-hats-index__note {
  max-width: 760px;
  margin: 58px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--vhi-line);
  color: var(--vhi-muted);
  font-size: 13px;
  line-height: 1.9;
  text-align: center;
}

/* ==================================================
   スマートフォン
================================================== */

@media screen and (max-width: 720px) {
  .video-hats-index__inner {
    width: min(100% - 28px, 1160px);
  }

  .video-hats-index__hero {
    padding: 60px 0 54px;
  }

  .video-hats-index__hero h1 {
    font-size: 32px;
  }

  .video-hats-index__lead {
    font-size: 14px;
    line-height: 1.9;
  }

  .video-hats-index__archive {
    padding: 52px 0 66px;
  }

  .video-hats-index__heading {
    margin-bottom: 30px;
  }

  .video-hats-index__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .video-hats-index__body {
    padding: 23px 22px 25px;
  }

  .video-hats-index__card h3 {
    margin-bottom: 20px;
    font-size: 19px;
  }

  .video-hats-index__note {
    margin-top: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-hats-index__card,
  .video-hats-index__thumb img,
  .video-hats-index__cta::after {
    transition: none;
  }
}
