/*
|---------------------------------------------------------------
| qinc2026-miga-hero.css - ミギカタアガリ ヒーローセクション
|---------------------------------------------------------------
*/

/* ==========================================================================
   Section: Miga Hero
   ========================================================================== */
.miga-hero {
  position: relative;
  margin: 0 30px;
  overflow: hidden;
  border-radius: 20px;
  background-color: #020441;
}

/* Background (flat image: gradient + illustration combined)
   ========================================================================== */
.miga-hero__bg-img {
  display: block;
  width: 100%;
  height: auto;
  animation: miga-hero-fade-in 0.8s ease-out forwards;
}

@keyframes miga-hero-fade-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Content (Text overlay)
   ========================================================================== */
.miga-hero__content {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: fit-content;
  /* 136px @1920 → 30px @768 */
  margin-left: clamp(30px, calc(-40.67px + 9.2vw), 136px);
}

/* En Group: Label + Subtitle wrapper (width = subtitle width) */
.miga-hero__en-group {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content;
}

.miga-hero__label {
  display: block;
  /* 12px @1920 → 8px @768 */
  padding: clamp(8px, calc(5.33px + 0.35vw), 12px);
  border: 1px solid var(--color-gold, #c5a059);
  font-family: var(--font-family-en, "Montserrat", sans-serif);
  /* 20px @1920 → 14px @768 */
  font-size: clamp(14px, calc(10px + 0.52vw), 20px);
  font-weight: 500;
  color: var(--color-gold, #c5a059);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  width: 100%;
  text-align: center;
  line-height: 1;
  box-sizing: border-box;
}

.miga-hero__subtitle {
  margin: 16px 0 0;
  font-family: var(--font-family-en, "Montserrat", sans-serif);
  /* 35px @1920 → 18px @768 */
  font-size: clamp(18px, calc(6.67px + 1.48vw), 35px);
  font-weight: 700;
  color: #fff;
  letter-spacing: 3.5px;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
}

/* Title */
.miga-hero__title {
  margin: 8px 0 0;
  /* 91px @1920 → 46px @768 */
  font-size: clamp(46px, calc(16px + 3.91vw), 91px);
  font-weight: 800;
  color: #fff;
  letter-spacing: 1.2px;
  line-height: 1.2;
  font-feature-settings: "palt" 1;
  white-space: nowrap;
}

.miga-hero__title sup {
  vertical-align: top;
}

/* Lead */
.miga-hero__lead {
  margin: 16px 0 0;
  /* 28px @1920 → 16px @768 */
  font-size: clamp(16px, calc(8px + 1.04vw), 28px);
  font-weight: 500;
  color: #fff;
  line-height: 1.68;
  letter-spacing: 1.4px;
  font-feature-settings: "palt" 1;
}

.miga-hero__lead strong {
  color: var(--color-gold, #c5a059);
  font-weight: 800;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .miga-hero {
    display: flex;
    flex-direction: column-reverse;
    margin: 0 15px;
    border-radius: 12px;
    background-color: #020441;
  }

  .miga-hero__bg-img {
    width: 100%;
    height: auto;
  }

  .miga-hero__content {
    position: static;
    margin: 0 auto;
    width: auto;
    max-width: 100%;
    padding: 40px 24px;
    white-space: normal;
    align-items: center;
    text-align: center;
  }

  .miga-hero__subtitle {
    letter-spacing: 2px;
    white-space: normal;
  }
}
