/* Hawkins ブーツ LP — PC(768px~) / SP(~767px) */
:root {
  --black: #000;
  --gray-bg: #f7f7f7;
  /* design_1029 準拠 */
  --font-gothic: "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "游ゴシック Medium", YuGothic, YuGothicM, メイリオ, Meiryo, sans-serif; /* ECサイトのデフォルトと同じ */
  --font-en: "Inter", "Hiragino Kaku Gothic ProN", "Hiragino Kaku Gothic Pro", "游ゴシック Medium", YuGothic, メイリオ, Meiryo, sans-serif;
}

/* リセットは .lp 内だけに適用（:where で詳細度0にして、各クラスの指定を邪魔しない） */
:where(.lp), :where(.lp) *, :where(.lp) *::before, :where(.lp) *::after { box-sizing: border-box; }
:where(.lp) {
  background: #fff;
  color: var(--black);
  font-family: var(--font-gothic);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
:where(.lp) img, :where(.lp) picture, :where(.lp) video { display: block; max-width: 100%; }
:where(.lp) ul { margin: 0; padding: 0; list-style: none; }
:where(.lp) p, :where(.lp) h1, :where(.lp) h2 { margin: 0; }
:where(.lp) a { color: inherit; text-decoration: none; }
:where(.lp) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:where(.lp) :focus-visible { outline: 2px solid #1a73e8; outline-offset: 2px; }

/* サイト側の a:link / a:visited / a:hover の色・下線に負けないよう、リンクの色を明示 */
.lp a, .lp a:link, .lp a:visited, .lp a:hover, .lp a:active, .lp a:focus { color: inherit; text-decoration: none; }
.lp .nav__btn, .lp .nav__btn:link, .lp .nav__btn:visited, .lp .nav__btn:hover, .lp .nav__btn:active, .lp .nav__btn:focus { color: #000; text-decoration: none; }
.lp .product__btn, .lp .product__btn:link, .lp .product__btn:visited, .lp .product__btn:hover, .lp .product__btn:active, .lp .product__btn:focus,
.lp .banner__btn, .lp a:hover .banner__btn, .lp a:visited .banner__btn { color: #fff; text-decoration: none; }

/* サイト側のリセット(span等の font-size:12px)に負けないよう、span は親のサイズを継承 */
.lp .carousel__no span, .lp .pc-only, .lp .sp-only { font-size: inherit; }

.sp-only { display: none; }

.lp { max-width: 960px; margin: 0 auto; overflow: hidden; }

/* ---------- Hero ---------- */
.hero__media { position: relative; aspect-ratio: 960 / 537; background: #222; }
.hero__video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.hero__video--sp { display: none; }
.hero__play {
  position: absolute; z-index: 1; top: 50%; left: 50%; width: 69px; height: 69px;
  transform: translate(-50%, -50%);
  transition: opacity .2s;
}
.hero__play:hover { opacity: .8; }
.hero__play[hidden] { display: none; }

/* ---------- Nav ---------- */
.nav { margin-top: 40px; }
.nav__list {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 20px;
  width: min(880px, 100%); margin: 0 auto;
}
.nav__list li { width: 280px; }
.nav__list li:nth-child(n+4) { width: 290px; } /* PC: 2段目（4・5番）は10px広く */
.nav__btn {
  position: relative; display: flex; align-items: center; gap: 15px;
  height: 66px; padding: 0 44px 0 10px; background: #efefef;
  font: 700 16px/24px var(--font-gothic); color: #000; white-space: nowrap;
  transition: opacity .2s;
}
.nav__thumb { flex: none; width: 46px; height: auto; }
.nav__btn .nav__no { flex: none; font-size: inherit; }
.nav__btn .nav__txt { display: block; font-size: inherit; margin-left: -5px; }
.nav__btn::after {
  content: ""; position: absolute; top: calc(50% - 6.6px); right: 26.4px;
  width: 8px; height: 13.25px; background: url(../images/nav-chevron.svg) no-repeat center / contain;
  transform: rotate(90deg);
}
.nav__btn:hover { opacity: .7; }

/* ---------- Lead ---------- */
.lead {
  margin-top: 40px; padding: 0 20px;
  font-size: 18px; font-weight: 400; line-height: 36px; text-align: center;
}

/* ---------- BOOTS (coordinate) ---------- */
.main { margin-top: 40px; }
.boots { scroll-margin-top: 91px; } /* 固定ヘッダー61px＋タイトル上の余白30px（PC） */
/* 見出しは DIN をアウトライン化した SVG 画像（design_1102） */
.boots__title { margin: 30px 0 0 4px; line-height: 0; }
.boots__title img { display: block; height: 36px; width: auto; }
.boots--simple .boots__title { margin-left: 0; }
.boots--coord {
  width: min(840px, 100%); margin: 0 auto 80px; padding: 0 15px;
}
.boots--coord .boots__body {
  display: grid; grid-template-columns: minmax(0, 404fr) minmax(0, 391fr);
  column-gap: 15px; align-items: start;
  margin-top: 25px;
}
.boots__main { grid-column: 1; grid-row: 1; }
.boots__main img { width: 100%; height: auto; aspect-ratio: 1; }
.carousel { display: contents; }
.carousel__info {
  grid-column: 1; grid-row: 2;
  width: min(300px, 100%); margin: 60px 0 0 auto;
}
.carousel__name { line-height: 1.8; }
.carousel__no { margin: 0 0 6px 3px; line-height: 0; }
.carousel__no img { display: block; height: 19px; width: auto; }
.carousel__name { font: 700 30px/1.8 var(--font-gothic); letter-spacing: .05em; }
.carousel__text { margin-top: 20px; font-size: 16px; font-weight: 400; line-height: 32px; }
.carousel__stage { grid-column: 2; grid-row: 1 / span 2; margin-top: 127px; }
.carousel__viewport { position: relative; aspect-ratio: 391 / 596; background: #eee; overflow: hidden; touch-action: pan-y; }
.carousel__slides { position: relative; width: 100%; height: 100%; }
.carousel__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s; }
.carousel__slide.is-active { opacity: 1; visibility: visible; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__btn {
  position: absolute; z-index: 1; top: calc(50% - 15.5px); width: 31px; height: 31px;
  -webkit-appearance: none; appearance: none;
  background: url(../images/arrow-next.svg) no-repeat center / contain;
  transition: opacity .2s;
}
.carousel__btn:hover { opacity: .75; }
/* Safariで位置がズレるため transform は使わない（左矢印は反転済みSVGを使用） */
.carousel__btn--next { right: 10px; }
.carousel__btn--prev { left: 10px; background-image: url(../images/arrow-prev.svg); }
.carousel__dots { display: flex; justify-content: center; gap: 8px; padding: 5px 0; margin-top: 20px; height: 18px; }
.carousel__dot { width: 8px; height: 8px; border-radius: 4px; background: var(--black); opacity: .2; }
.carousel__dot.is-active { opacity: 1; }

/* ---------- Products ---------- */
.products { margin: 0 auto; }
.boots--coord .products { margin-top: 60px; }
/* BOOTS.1: 2列グリッド（3点） */
.products--grid { display: grid; grid-template-columns: repeat(2, 287.5px); gap: 50px 70px; justify-content: center; width: 645px; max-width: 100%; }
/* BOOTS.2: 横並び中央（2点） */
.products--row { display: flex; justify-content: center; gap: 70px; }
/* BOOTS.3-5: 縦並び（2点） */
.products--col { display: flex; flex-direction: column; gap: 40px; width: 339.5px; margin: 0; }
.product { display: flex; align-items: center; gap: 20px; }
.product__thumb { flex: none; width: 125px; height: 125px; }
.product__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product__info { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; white-space: nowrap; }
.product__name { font: 400 16px/26px var(--font-en); }
.product__btn {
  display: block; width: 121px; height: 40px; border-radius: 2px;
  background: var(--black); color: #fff;
  font: 700 16px/40px var(--font-en); text-align: center;
  transition: opacity .2s;
}
.product__btn:hover { opacity: .7; }

/* ---------- Gray area (BOOTS.3-5) ---------- */
/* 斜め背景は商品リストの96px下から始まる（design_1019: 商品下端 y2588 → 斜め上端 y2684） */
#boots2 { margin-bottom: 0; position: relative; z-index: 1; } /* 斜め背景より前面に（商品・ボタンが隠れないように） */
.gray { margin-top: 96px; }
.gray__diagonal { display: block; width: 100%; height: auto; pointer-events: none; }
.gray__diagonal--sp { display: none; }
.gray__body {
  display: flex; flex-direction: column; gap: 65px;
  padding: 0 48px 150px; background: var(--gray-bg);
}
.boots--simple .boots__body { display: flex; gap: 40px; margin-top: 30px; align-items: center; }
.boots--simple .boots__main { flex: 0 1 404px; min-width: 0; }
.boots--simple .products { flex: none; }

/* ---------- Banner ---------- */
.banner { display: flex; justify-content: center; gap: 40px; padding: 40px 20px; }
.banner__panel { position: relative; flex: none; width: 375px; height: 210px; overflow: hidden; }
.banner__panel--brand { background: var(--black); }
.banner__panel--photo { width: 374px; }
.banner__logo { position: absolute; top: 27px; left: 50%; transform: translateX(-50%); width: 185px; height: 98px; }
.banner__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__btn {
  position: absolute; top: 150px; left: 50%; transform: translateX(-50%);
  display: block; width: 160px; height: 40px; border-radius: 2px;
  background: var(--black); color: #fff !important;
  font: 700 16px/40px var(--font-en); text-align: center; white-space: nowrap;
  transition: opacity .2s;
}
.banner__btn--outline { width: 188px; border: 1px solid #b5b5b5; line-height: 38px; }
.banner__panel:hover .banner__btn { opacity: .75; }

/* PC: 冒頭文〜BOOTS.1、BOOTS.1〜BOOTS.2 の余白を2倍に */
@media (min-width: 768px) {
  .main { margin-top: 110px; }
  #boots1.boots--coord { margin-bottom: 190px; }
}

/* ======================= SP (~767px) ======================= */
@media (max-width: 767px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }

  .lp { max-width: 480px; }

  .hero__media { aspect-ratio: 375 / 675; background: #000; }
  .hero__video { object-fit: contain; } /* 横動画が来ても切れないように */
  .hero__video--pc, .hero__play { display: none; }
  .hero__video--sp { display: block; }

  .nav__list { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: center; gap: 12px; width: 100%; padding: 0 10px; }
  .nav__list li, .nav__list li:nth-child(n+4) { width: 95%; }
  .nav__btn { gap: 8px; height: 50px; padding: 0 36px 0 9px; font-size: 14px; line-height: 20px; white-space: normal; }
  .nav__thumb { width: 36px; }
  .nav__btn .nav__no { min-width: 13px; }
  .nav__btn .nav__txt { margin-left: 0; }
  .nav__btn::after { top: calc(50% - 2.5px); right: 21.5px; width: 5px; height: 9px; background-image: url(../images/sp-nav-chevron.svg); }

  .lead { margin-top: 40px; font-size: 16px; line-height: 32px; }

  .main { margin-top: 40px; }
  .boots { scroll-margin-top: 81px; } /* アンカー移動時、ヘッダー61px＋タイトル上の余白20px */
  .boots__title { margin: 20px 0 0; }
  .boots--simple .boots__title { margin-top: 0; }
  .boots__title img { height: 28px; }
  .boots--coord { width: 100%; margin-bottom: 100px; padding: 0 20px; }
  .boots--coord .boots__body { display: flex; flex-direction: column; gap: 56px; margin-top: 20px; }
  .boots__main { width: 100%; }

  /* COORDINATE名は画像の上、本文は画像の下 */
  .carousel { display: flex; flex-direction: column; }
  .carousel__info { display: contents; }
  .carousel__no { order: 1; margin: 0 0 0 3px; }
  .carousel__no img { height: 17px; }
  .carousel__name { order: 2; margin-bottom: 10px; }
  .carousel__stage { order: 3; margin-top: 0; }
  .carousel__text { order: 4; margin-top: 20px; }
  .carousel__viewport { aspect-ratio: 335 / 523; }
  .carousel__btn { top: calc(50% - 14px); width: 27.5px; height: 28px; background-image: url(../images/sp-arrow-next.svg); }
  .carousel__btn--next { right: 3px; }
  .carousel__btn--prev { left: 3px; background-image: url(../images/sp-arrow-prev.svg); }

  /* SP: 124px幅の2列（B1は3点で2段、他は1段） */
  .products, .products--grid, .products--row, .products--col {
    display: grid; grid-template-columns: repeat(2, 124px); justify-content: space-between;
    gap: 40px 0; width: min(318px, 100%); margin: 0 auto;
  }
  .boots--coord .products { margin-top: 40px; }
  .product { flex-direction: column; align-items: flex-start; gap: 10px; }
  .product__thumb { width: 124px; height: 124px; }
  .product__info { gap: 10px; }
  .product__name { font-size: 14px; line-height: 21px; }

  .gray { margin-top: 0; }
  #boots2 { margin-bottom: 0; }
  .gray__diagonal--pc { display: none; }
  .gray__diagonal--sp { display: block; }
  .gray__body { gap: 100px; padding: 20px 20px 100px; }
  .boots--simple .boots__body { flex-direction: column; gap: 30px; margin-top: 20px; align-items: stretch; }
  .boots--simple .boots__main { flex: none; }

  .banner { flex-direction: column; align-items: center; gap: 20px; padding: 100px 20px; }
  .banner__panel, .banner__panel--photo { width: 100%; max-width: 335px; height: auto; aspect-ratio: 335 / 188; }
  .banner__logo { top: 12.8%; width: 49.3%; height: auto; }
  .banner__btn { top: 71.3%; height: 36px; font-size: 16px; line-height: 36px; width: 49.5%; }
  .banner__btn--outline { width: 56%; line-height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .carousel__slide { transition: none; }
}
