/* ============================================================
   ファーストビュー（.sd-fv）
   画像は同テーマ内の assets-lpb/img/ を相対パスで参照する。
   このファイルからの相対なので、ドメインやディレクトリが変わっても
   そのまま動く（移設時に書き換える必要がない）。
   ============================================================ */
.sd-fv {
  --sd-blue: #076fb8;
  --sd-blue-dark: #04518d;
  --sd-orange: #ff8a1f;
  --sd-orange-light: #ffd29b;
  --sd-navy: #102f4a;
  --sd-bg-image: url("../../assets-lpb/img/fv-room-bg.png");
  --sd-truck-image: url("../../assets-lpb/img/fv-pack.png");
  --sd-staff-image: url("../../assets-lpb/img/hero-mascot.png");

  position: relative;
  width: 100%;
  height: clamp(540px, 49.88vw, 760px);
  overflow: hidden;
  isolation: isolate;
  color: var(--sd-navy);
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

.sd-fv *,
.sd-fv *::before,
.sd-fv *::after {
  box-sizing: border-box;
}

.sd-fv::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%) 0 0 / 58px 58px,
    linear-gradient(315deg, rgba(255, 255, 255, 0.06) 25%, transparent 25%) 0 0 / 58px 58px;
}

.sd-fv__bg-image {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: var(--sd-bg-image);
  background-position: center;
  background-size: cover;
}

.sd-fv__truck-image,
.sd-fv__staff-image {
  position: absolute;
  pointer-events: none;
}

.sd-fv__panel {
  position: absolute;
  left: 50%;
  top: 6.4%;
  z-index: 3;
  width: clamp(600px, 47.4vw, 760px);
  min-width: 0;
  padding: clamp(26px, 2.8vw, 42px) clamp(28px, 3.1vw, 48px) clamp(31px, 3.6vw, 52px);
  transform: translateX(-50%);
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border: 8px solid rgba(255, 255, 255, 0.78);
  clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  box-shadow: 0 18px 40px rgba(16, 47, 74, 0.15);
}

.sd-fv__record {
  display: inline-flex;
  align-items: baseline;
  gap: 0.24em;
  margin: 0 0 2.4%;
  color: var(--sd-blue);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.sd-fv__record span {
  font-size: clamp(18px, 1.38vw, 27px);
  background: linear-gradient(transparent 58%, var(--sd-orange-light) 58%);
}

.sd-fv__record strong {
  font-size: clamp(42px, 3vw, 58px);
  background: linear-gradient(transparent 58%, var(--sd-orange-light) 58%);
}

.sd-fv__area {
  width: fit-content;
  min-width: 78%;
  margin: 0 auto 4%;
  padding: 2.5% 5.2%;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(90deg, var(--sd-blue-dark), var(--sd-blue));
  font-size: min(3.0vw, 26px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.sd-fv__title {
  margin: 0;
  padding: 0;
  color: var(--sd-blue);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  text-align: center;
}

.sd-fv__title span {
  display: block;
  white-space: nowrap;
}

.sd-fv__title span:first-child {
  font-size: clamp(58px, 4.7vw, 88px);
}

.sd-fv__title span:last-child {
  font-size: clamp(66px, 5.15vw, 96px);
}

.sd-fv__lead {
  display: inline-flex;
  align-items: baseline;
  gap: 0.12em;
  margin: 2.5% 0 2.8%;
  color: var(--sd-blue-dark);
  font-size: clamp(25px, 1.85vw, 36px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.sd-fv__lead span {
  color: var(--sd-orange);
  font-size: 1.95em;
}

.sd-fv__price {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 3.5%;
  white-space: nowrap;
}

.sd-fv__price-label {
  margin: 0 2.2% 0 0;
  color: #242424;
  font-size: clamp(18px, 1.35vw, 26px);
  font-weight: 900;
  line-height: 1.14;
  text-align: right;
}

.sd-fv__price-main {
  display: flex;
  align-items: baseline;
  margin: 0;
  color: var(--sd-blue);
  font-weight: 900;
  line-height: 0.9;
}

.sd-fv__price-main span {
  align-self: center;
  margin-right: 0.25em;
  color: #252525;
  font-size: clamp(12px, 0.85vw, 16px);
}

.sd-fv__price-main strong {
  color: var(--sd-orange);
  font-size: clamp(66px, 5vw, 94px);
}

.sd-fv__price-main em {
  color: #252525;
  font-size: clamp(24px, 1.9vw, 36px);
  font-style: normal;
}

.sd-fv__points {
  display: flex;
  justify-content: center;
  gap: 2%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sd-fv__points li {
  min-width: 29%;
  padding: 1.7% 2.2%;
  border: 3px solid var(--sd-blue);
  border-radius: 999px;
  background: var(--sd-blue);
  color: #ffffff;
  font-size: clamp(14px, 1vw, 19px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  list-style: none;
}

.sd-fv__points li::before,
.sd-fv__points li::marker {
  content: none;
}

.sd-fv__truck-image {
  right: 3.2%;
  bottom: 13.2%;
  z-index: 4;
  width: min(25vw, 390px);
  aspect-ratio: 1.65;
  background-image: var(--sd-truck-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

.sd-fv__staff-image {
  left: 4.2%;
  bottom: 14.5%;
  z-index: 4;
  width: min(18vw, 280px);
  aspect-ratio: 1;
  background-image: var(--sd-staff-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
}

@media (min-width: 768px) and (max-width: 1180px) {
  .sd-fv { height: clamp(500px, 58vw, 620px); }
  .sd-fv__panel { top: 7%; width: min(70vw, 640px); padding: 28px 34px 34px; }
  .sd-fv__truck-image { right: 2.5%; bottom: 4.8%; width: 22%; }
  .sd-fv__staff-image { left: 2.5%; bottom: 4.8%; width: 16%; }
}

@media (max-width: 767px) {
  .sd-fv { height: auto; aspect-ratio: 650 / 700; min-height: 0; }

  .sd-fv__panel {
    top: 6.8%;
    width: 86%;
    min-width: 0;
    padding: 5.8% 5.2% 5.4%;
    border-width: 5px;
    border-radius: 0;
    clip-path: polygon(7% 0, 100% 0, 93% 100%, 0 100%);
  }

  .sd-fv__record { margin-bottom: 3.2%; }
  .sd-fv__record span { font-size: min(3.5vw, 23px); }
  .sd-fv__record strong { font-size: min(7.4vw, 48px); }

  .sd-fv__area {
    min-width: 0;
    width: 94%;
    margin-bottom: 5.2%;
    padding: 3.4% 3%;
  }

  .sd-fv__title span:first-child { font-size: min(9.1vw, 59px); }
  .sd-fv__title span:last-child { font-size: min(9.2vw, 66px); }

  .sd-fv__lead { margin: 3.2% 0 3.7%; font-size: min(4.2vw, 31px); }

  .sd-fv__price-label { margin-right: 1.8%; font-size: min(3.35vw, 22px); }
  .sd-fv__price-main span { font-size: min(2.25vw, 15px); }
  .sd-fv__price-main strong { font-size: min(8.8vw, 70px); }
  .sd-fv__price-main em { font-size: min(4.15vw, 27px); }

  .sd-fv__points { gap: 1.6%; }
  .sd-fv__points li { min-width: 31%; padding: 2% 1.4%; border-width: 2px; font-size: min(2.8vw, 18px); }

  .sd-fv__truck-image { right: -3.8%; top: 40.5%; bottom: auto; width: 31%; }
  .sd-fv__staff-image { left: -3.2%; top: 40.2%; bottom: auto; width: 23%; }
}

@media (min-width: 1600px) {
  .sd-fv__truck-image { right: max(10%, calc((80vw - 1200px) / 2 + 120px)); }
  .sd-fv__staff-image { left: max(10%, calc((80vw - 1200px) / 2 + 120px)); }
}
