/* ファーストビューの3つのバッジ。画像と文章を重ねずに配置する。 */
.hero .hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: center;
  column-gap: clamp(24px, 3vw, 48px);
  padding-top: 38px;
  padding-bottom: 56px;
}
.hero__copy { min-width: 0; }
.hero__benefits { min-width: 0; align-self: end; padding-bottom: 12px; }
.hero__benefits picture, .hero__benefits img { display: block; width: 100%; }
.hero__benefits img { height: auto; filter: drop-shadow(0 5px 12px rgba(0, 0, 0, .16)); }
@media (min-width: 901px) {
  .hero .hero__title { font-size: clamp(3rem, 4.6vw, 4rem); }
}
@media (max-width: 1000px) {
  .hero { height: auto; min-height: 0; }
  .hero .hero__content { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 40px; padding-bottom: 60px; }
  .hero__benefits { width: min(100%, 480px); padding: 0; }
}
@media (max-width: 700px) {
  .hero .hero__content { gap: 22px; padding-top: 130px; padding-bottom: 52px; }
  .hero__benefits { width: 86%; max-width: 360px; justify-self: center; }
  .hero .hero__title { margin: 12px 0 16px; }
  .hero .hero__lead { font-size: 14px; line-height: 1.9; }
  .hero .hero__title em { font-size: clamp(28px, 7.6vw, 38px); line-height: 1.35; }
  .hero .hero__title small { font-size: 13px; line-height: 1.8; }
  .hero .hero__dots { bottom: 18px; }
}

/* HOMEリンクで戻った場合も固定ヘッダーの下から表示する。 */
.home-page #home { scroll-margin-top: 120px; }
@media (max-width: 700px) { .home-page #home { scroll-margin-top: 80px; } }

@media (max-width: 900px) {
  .home-page #home:target .hero__content { padding-top: 114px; }
}

/* PCはバッジだけを少し下へ。スマホの横並びは維持する。 */
@media (min-width: 1001px) {
  .hero__benefits { transform: translateY(36px); }
}
@media (max-width: 700px) {
  .home-page #home:target .hero__content { padding-top: 130px; }
}

/* 初回だけ、バッジの輪郭の中に柔らかな光を通す。 */
.hero__benefits picture { position: relative; isolation: isolate; }
.hero__benefits picture::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(110deg, transparent 40%, rgba(255, 246, 203, .15) 46%, rgba(255, 255, 245, .7) 50%, rgba(255, 246, 203, .15) 54%, transparent 60%);
  background-size: 260% 100%;
  background-position: 160% 0;
  -webkit-mask: url("../images/hero/grow-benefits-1200.webp") center / 100% 100% no-repeat;
  mask: url("../images/hero/grow-benefits-1200.webp") center / 100% 100% no-repeat;
}
.hero__benefits.is-shimmering picture::after {
  animation: grow-benefit-shimmer 1.35s ease-in-out 1 both;
}
@keyframes grow-benefit-shimmer {
  0% { background-position: 160% 0; opacity: 0; }
  12% { opacity: .65; }
  82% { opacity: .65; }
  100% { background-position: -60% 0; opacity: 0; }
}
@media (max-width: 700px) {
  .hero__benefits picture::after {
    -webkit-mask-image: url("../images/hero/grow-benefits-600.webp");
    mask-image: url("../images/hero/grow-benefits-600.webp");
  }
  .hero__benefits.is-shimmering picture::after { animation-name: grow-benefit-shimmer-mobile; }
  @keyframes grow-benefit-shimmer-mobile {
    0% { background-position: 160% 0; opacity: 0; }
    12%, 82% { opacity: .35; }
    100% { background-position: -60% 0; opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero__benefits.is-shimmering picture::after { animation: none; opacity: 0; }
}
