/*
 * 動画で紹介した帽子｜横長商品リスト V2
 * ファイル名：video-hats-detail-v2.css
 *
 * 旧 video-product-list.css の影響を避けるため、
 * すべて新しいクラス名で構成しています。
 */

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

.video-hats-detail {
  --vhd-text: #222522;
  --vhd-muted: #6d6f6b;
  --vhd-line: #d8d5cd;
  --vhd-bg: #f5f2eb;
  --vhd-white: #ffffff;
  --vhd-gold: #8a6d3b;
  --vhd-dark: #222a27;

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

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

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

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

/* ==================================================
   動画タイトル
================================================== */

.video-hats-detail__header {
  position: relative;
  padding: 58px 0 52px;
  color: #ffffff;
  text-align: center;
  background: var(--vhd-dark);
}

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

.video-hats-detail__label {
  margin: 0 0 16px;
  color: #c7ad7b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.14em;
}

.video-hats-detail__title {
  max-width: 920px;
  margin: 0 auto 24px;
  color: #ffffff;
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(25px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.035em;
}

.video-hats-detail__movie-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 230px;
  min-height: 48px;
  padding: 10px 24px;
  border: 1px solid rgba(199, 173, 123, 0.72);
  color: #ffffff !important;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.video-hats-detail__movie-link::after {
  margin-left: 12px;
  content: "↗";
}

.video-hats-detail__movie-link:hover,
.video-hats-detail__movie-link:focus-visible {
  color: var(--vhd-dark) !important;
  background: #c7ad7b;
}

/* ==================================================
   商品一覧
================================================== */

.video-hats-detail__products {
  padding: 66px 0 88px;
  background: var(--vhd-bg);
}

.video-hats-detail__heading {
  margin: 0 auto 44px;
  text-align: center;
}

.video-hats-detail__heading h2 {
  margin: 0;
  color: var(--vhd-text);
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(25px, 3.5vw, 36px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.05em;
}

.video-hats-detail__heading h2::after {
  display: block;
  width: 42px;
  height: 1px;
  margin: 17px auto 0;
  content: "";
  background: var(--vhd-gold);
}

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

/*
 * articleやカード用の囲みを使わず、
 * product_infoが出力するsectionを直接並べます。
 */
.video-hats-detail__items {
  display: block;
}

/* ==================================================
   1商品1行
================================================== */

.video-hats-detail
.video-hats-detail__items
> section.video-product-row {
  display: grid !important;
  grid-template-columns: minmax(260px, 36%) minmax(0, 1fr) !important;
  gap: 52px !important;
  align-items: center !important;

  width: 100% !important;
  margin: 0 !important;
  padding: 42px 0 !important;

  border: 0 !important;
  border-bottom: 1px solid var(--vhd-line) !important;
  border-radius: 0 !important;

  background: transparent !important;
  box-shadow: none !important;
}

.video-hats-detail
.video-hats-detail__items
> section.video-product-row:first-child {
  border-top: 1px solid var(--vhd-line) !important;
}

.video-hats-detail
.video-hats-detail__items
> section.video-product-row::before,
.video-hats-detail
.video-hats-detail__items
> section.video-product-row::after {
  display: none !important;
  content: none !important;
}

/* ==================================================
   商品写真
================================================== */

.video-hats-detail .video-product-row__image {
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.video-hats-detail .video-product-row__image-link {
  display: flex !important;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: transparent !important;
  text-decoration: none;
}

.video-hats-detail .video-product-row__image img {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  object-fit: contain;
}

/* ==================================================
   商品情報
================================================== */

.video-hats-detail .video-product-row__body {
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.video-hats-detail .video-product-row__body > br {
  display: none !important;
}

.video-hats-detail .video-product-row__name {
  color: var(--vhd-text);
  text-decoration: none;
}

.video-hats-detail .video-product-row__name strong {
  display: block;
  margin: 0;
  color: var(--vhd-text);
  font-family:
    "Yu Mincho",
    "YuMincho",
    "Hiragino Mincho ProN",
    serif;
  font-size: clamp(21px, 2.4vw, 29px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.025em;
}

.video-hats-detail .video-product-row__price {
  display: block;
  margin: 17px 0 20px;
  color: var(--vhd-text);
  font-family:
    Georgia,
    "Times New Roman",
    "Yu Mincho",
    serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.video-hats-detail .video-product-row__description {
  display: -webkit-box;
  margin: 0 0 27px;
  overflow: hidden;
  color: var(--vhd-muted);
  font-size: 14px;
  line-height: 1.95;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}

/* ==================================================
   詳しくはこちら
================================================== */

.video-hats-detail .video-product-row__detail {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 290px);
  min-height: 50px;
  padding: 11px 19px;
  border: 1px solid var(--vhd-dark);
  color: #ffffff !important;
  background: var(--vhd-dark);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
}

.video-hats-detail .video-product-row__detail::after {
  content: "→";
}

.video-hats-detail .video-product-row__detail:hover,
.video-hats-detail .video-product-row__detail:focus-visible {
  color: var(--vhd-dark) !important;
  background: transparent;
}

/* 旧CSS・旧JavaScriptのボタンを消します */
.video-hats-detail .video-product-row__name::after,
.video-hats-detail .video-product-list__detail-link {
  display: none !important;
  content: none !important;
}

/* ==================================================
   その他の動画一覧
================================================== */

.video-hats-detail__more {
  margin-top: 58px;
  text-align: center;
}

.video-hats-detail__more a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 390px;
  min-height: 56px;
  padding: 13px 32px;
  border-bottom: 1px solid var(--vhd-gold);
  color: var(--vhd-text);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.video-hats-detail__more a::after {
  margin-left: 16px;
  content: "→";
}

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

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

  .video-hats-detail__header {
    padding: 44px 0 40px;
  }

  .video-hats-detail__title {
    font-size: 24px;
    line-height: 1.6;
  }

  .video-hats-detail__movie-link {
    width: 100%;
    max-width: 300px;
    min-width: 0;
  }

  .video-hats-detail__products {
    padding: 48px 0 62px;
  }

  .video-hats-detail
  .video-hats-detail__items
  > section.video-product-row {
    grid-template-columns: 1fr !important;
    gap: 23px !important;
    padding: 34px 0 !important;
  }

  .video-hats-detail .video-product-row__image-link {
    aspect-ratio: 1 / 1;
  }

  .video-hats-detail .video-product-row__name strong {
    font-size: 20px;
  }

  .video-hats-detail .video-product-row__detail {
    width: 100%;
  }

  .video-hats-detail__more {
    margin-top: 46px;
  }

  .video-hats-detail__more a {
    width: 100%;
    min-width: 0;
  }
}
