/* FV ver1.4: PC/SP comparisons. Keep existing form and other section CSS untouched. */
.hero .hero-headline-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.hero .sp-hero-headline { display: none; }

/* Badges are live text, not the former SVG image backgrounds. */
.hero .hero-badges li {
  background-image: none !important;
  font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
  text-align: center;
}
.hero .hero-badges .hero-badge-label,
.hero .hero-badges .hero-badge-value {
  display: block;
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
}
.hero .hero-badges .hero-badge-value small {
  font-size: .48em;
  font-weight: 700;
}

@media (max-width: 767px) {
  .site-header .brand strong,
  .site-header .brand span {
    line-height: 1.2;
  }
  .site-header .brand strong {
    color: #12345c;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .01em;
  }
  .site-header .brand span {
    margin: 0 0 4px;
    color: #39536e;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .01em;
  }
  .site-header .brand strong::after,
  .site-header .brand span::after { content: none; }

  .hero .hero-grid { padding-top: 24px; }
  .hero h1 { min-height: 0; }
  .hero h1::before,
  .hero h1::after,
  .hero .hero-lead::before { content: none; display: none; }
  .hero .sp-hero-headline {
    display: block;
    color: #fff;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-weight: 700;
    letter-spacing: .01em;
  }
  .hero .sp-hero-headline-intro,
  .hero .sp-hero-headline-main,
  .hero .sp-hero-headline-ending { display: block; }
  .hero .sp-hero-headline-intro {
    font-size: clamp(19px, 5.75vw, 24px);
    line-height: 1.45;
    white-space: nowrap;
  }
  .hero .sp-hero-headline-main {
    margin-top: 12px;
    font-size: clamp(39px, 11vw, 44px);
    line-height: 1.35;
    white-space: nowrap;
  }
  .hero .sp-hero-headline-ending {
    margin-top: 10px;
    font-size: clamp(44px, 12.4vw, 53px);
    line-height: 1.28;
    white-space: nowrap;
  }
  .hero .sp-hero-headline-ending span { color: #d9ab42; }
  .hero .hero-lead { margin-top: 42px; }

  .hero .hero-badges {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: calc(100% + 16px);
    gap: 6px;
  }
  .hero .hero-badges li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    min-width: 0;
    padding: 0;
    border-color: #fff;
    font-size: 0;
  }
  .hero .hero-badges .hero-badge-label {
    font-size: clamp(12px, 3.75vw, 16px);
    line-height: 1.25;
  }
  .hero .hero-badges .hero-badge-value {
    font-size: clamp(20px, 6.4vw, 26px);
    line-height: 1.25;
  }
  .hero .hero-badges li:nth-child(3) .hero-badge-value {
    font-size: clamp(19px, 6.1vw, 25px);
    letter-spacing: -.045em;
  }
}

@media (min-width: 768px) {
  .site-header .brand strong {
    color: #142f54;
    font-family: "Yu Mincho", "Hiragino Mincho ProN", serif;
    font-size: 29px;
    font-weight: 700;
    letter-spacing: .015em;
  }
  .site-header .brand strong::after { content: none; }
  .site-header .brand span {
    margin: 0;
    color: #53657a;
    font-size: 14px;
    font-weight: 400;
  }

  /* Removing the old brandline raises the heading while keeping the lead/CTA aligned. */
  .hero .hero-copy { padding-top: 82px; }
  .hero .hero-lead { margin-top: 63px; }
  .hero .pc-hero-headline-main { font-size: clamp(43px, 4.2vw, 70px); }

  .hero .hero-badges li {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background-image: none !important;
  }
  .hero .hero-badges .hero-badge-label {
    font-size: clamp(17px, 1.45vw, 23px);
    line-height: 1.25;
  }
  .hero .hero-badges .hero-badge-value {
    font-size: clamp(29px, 2.15vw, 35px);
    line-height: 1.2;
  }
  .hero .hero-badges li:nth-child(3) .hero-badge-value {
    font-size: clamp(27px, 2vw, 33px);
    letter-spacing: -.025em;
  }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .site-header .brand strong { font-size: clamp(18px, 2.4vw, 27px); }
  .site-header .brand span { font-size: clamp(10px, 1.2vw, 13px); }
  .hero .hero-copy { padding-top: 72px; }
  .hero .hero-lead { margin-top: 45px; }
  .hero .hero-badges .hero-badge-label { font-size: 14px; }
  .hero .hero-badges .hero-badge-value { font-size: 24px; }
  .hero .hero-badges li:nth-child(3) .hero-badge-value { font-size: 22px; }
}

/* PC FV ver1.4 visual fine-tuning against the supplied 1616px screenshot.
   Keep the badge position at 768-1199px unchanged. */
.pc-hero-lead-break { display: none; }

@media (min-width: 768px) {
  /* common.css has a 350px max-width that overrides the intended PC CTA size. */
  .hero .hero-primary-cta { max-width: none; }
}

@media (min-width: 1200px) {
  .hero .hero-copy { padding-top: 70px; }

  /* Increase the heading size without disrupting its three-line composition. */
  .hero .pc-hero-headline-intro {
    font-size: clamp(40px, 3.45vw, 58px);
    line-height: 1.58;
  }
  .hero .pc-hero-headline-main {
    font-size: clamp(46px, 4.5vw, 74px);
    line-height: 1.31;
  }
  .hero .pc-hero-headline-ending {
    font-size: clamp(51px, 5.15vw, 84px);
    line-height: 1.34;
  }

  /* The reference has one sentence per line, followed by the 540px CTA. */
  .hero .pc-hero-lead-break { display: initial; }
  .hero .hero-lead { margin-top: 38px; }
  .hero .hero-primary-cta { max-width: 540px; }

  /* Only wide PCs shift the existing badge grid slightly to the left. */
  .hero .hero-badges { left: 53.3%; }
}
