/* -----------------------------------------------------------------------
   トップページ メインビジュアル
   SP: 1:1 画像 + 腰下グラデーション + テキスト重ね
   PC: 背景オーバーレイ + テキスト左寄せ（初期位置）
----------------------------------------------------------------------- */

/* --- SP（ベース）: 1:1 画像 + グラデーション + テキスト重ね --- */
#hero-mv {
  display: block;
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid #e2e8f0;
  background-color: #ffffff;
  padding-top: 100vw;
  padding-bottom: 1.5rem;
}

#hero-mv .hero-mv__visual {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  aspect-ratio: 1 / 1;
  z-index: 0;
  margin: 0;
  padding: 0;
  background-color: #eef4fa;
  background-image: url('/assets/images/care-nextphase_mv_sp.jpg');
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 18%;
  pointer-events: none;
}

/* 中心より下（腰〜足）から白グラデーション */
#hero-mv .hero-mv__visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 36%,
    rgba(255, 255, 255, 0.35) 48%,
    rgba(255, 255, 255, 0.78) 62%,
    rgba(255, 255, 255, 0.96) 76%,
    #ffffff 88%
  );
  pointer-events: none;
}

#hero-mv .hero-mv__content {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  width: 100%;
  max-width: 80rem;
  margin-top: -56vw;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

#hero-mv .hero-mv__inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#hero-mv .hero-mv__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  align-self: center;
  margin: 0;
  padding: 0.375rem 0.875rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #0a3f7a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 92, 171, 0.2);
  border-radius: 9999px;
  box-shadow: 0 1px 2px rgba(10, 63, 122, 0.06);
}

#hero-mv .hero-mv__badge-dot {
  flex-shrink: 0;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: #10b981;
  animation: hero-mv-pulse 1.5s ease-in-out infinite;
}

@keyframes hero-mv-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

#hero-mv .hero-mv__title {
  margin: 0;
  font-size: clamp(1.625rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #0a3f7a;
}

#hero-mv .hero-mv__title-accent {
  position: relative;
  color: #005cab;
}

#hero-mv .hero-mv__title-accent::after {
  content: '';
  position: absolute;
  bottom: 0.15em;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 0.35em;
  background: rgba(16, 185, 129, 0.35);
}

#hero-mv .hero-mv__lead {
  margin: 0;
  font-size: clamp(0.875rem, 2.5vw, 1.125rem);
  font-weight: 500;
  line-height: 1.75;
  color: #2d3748;
}

#hero-mv .hero-mv__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-top: 0.25rem;
}

#hero-mv .hero-mv__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

#hero-mv .hero-mv__btn:hover {
  transform: translateY(-2px);
}

#hero-mv .hero-mv__btn--primary {
  color: #ffffff;
  background-color: #005cab;
  box-shadow: 0 10px 15px -3px rgba(0, 92, 171, 0.2);
}

#hero-mv .hero-mv__btn--primary:hover {
  background-color: #0a3f7a;
  color: #ffffff;
}

#hero-mv .hero-mv__btn--secondary {
  color: #334155;
  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #cbd5e1;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

#hero-mv .hero-mv__btn--secondary:hover {
  background-color: #ffffff;
  color: #334155;
}

#hero-mv .hero-mv__btn-icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

#hero-mv .hero-mv__btn-icon--muted {
  color: #94a3b8;
}

#hero-mv .hero-mv__tags {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(226, 232, 240, 0.65);
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.6;
  color: #718096;
}

#hero-mv .hero-mv__tags-label {
  display: inline-block;
  margin-right: 0.25rem;
  padding: 0.125rem 0.5rem;
  color: #005cab;
  background: #eef4fa;
  border-radius: 0.25rem;
}

#hero-mv .hero-mv__tags a {
  color: inherit;
  text-decoration: none;
}

#hero-mv .hero-mv__tags a:hover {
  color: #005cab;
}

/* タブレット: ボタン横並び（SPレイアウト維持） */
@media (min-width: 640px) and (max-width: 1023px) {
  #hero-mv .hero-mv__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* --- PC: 背景オーバーレイ + テキスト左寄せ（初期位置） --- */
@media (min-width: 1024px) {
  #hero-mv {
    display: block;
    height: clamp(22.5rem, 42.4vw, 32.5rem);
    min-height: 22.5rem;
    padding-top: 0;
    padding-bottom: 0;
    background-color: transparent;
  }

  #hero-mv .hero-mv__visual {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    width: auto;
    aspect-ratio: auto;
    background-image: url('/assets/images/care-nextphase_mv_pc.jpg');
    background-position: left center;
  }

  #hero-mv .hero-mv__visual::after {
    content: none;
  }

  #hero-mv .hero-mv__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    height: 100%;
    min-height: inherit;
    margin-top: 0;
    padding: 3rem 1rem;
  }

  #hero-mv .hero-mv__inner {
    max-width: 46rem;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
    align-self: flex-start;
  }

  #hero-mv .hero-mv__badge {
    align-self: flex-start;
  }

  #hero-mv .hero-mv__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  #hero-mv .hero-mv__tags {
    font-size: 0.75rem;
  }
}
