/**
 * Component - Child hero
 * 下層ページヒーロー
 */

.c-childHero {
  min-height: 430px;
  padding-block: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background-image: url("../../../images/bg_child_hero.png");
  background-size: cover;
  background-position: center;

  @media screen and (max-width: 767px) {
    min-height: 332px;
    background-image: url("../../../images/bg_child_hero_sp.png");
  }

  .l-headingPrimary.--hasBorder {
    border-bottom: 1px solid;

    &::after {
      display: none;
    }
  }
}

.c-childHero__mainText {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  color: var(--color-text-light);
  margin-top: 1.5rem;

  @media screen and (max-width: 767px) {
    font-size: 0.875rem;
  }
}

.c-childHeroUpper {
  color: var(--color-text-light);
  display: grid;
  gap: 0.5rem;
  margin-bottom: 40px;
}
.c-childHeroHeading {
  color: var(--color-text-light);
  font-size: 48px;
  @media screen and (max-width: 767px) {
    font-size: 22px;
  }

  &.--hasSmallText {
    display: flex;
    flex-direction: column;
    gap: 8px;
    &::after {
      content: attr(data-text);
      font-size: 1rem;
    }
  }
}
.c-childHeroDescription {
  color: var(--color-text-light);
  font-weight: bold;
  line-height: 1.7;
  margin-top: 40px;
}

.c-childHeroCta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  margin-top: 40px;
}
.c-childHeroCtaButton {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: bold;
  letter-spacing: 0.02em;
  min-width: 280px;
  min-height: 48px;
  padding-inline: calc(16px + 24px + 4px);
  background-color: var(--color-bg-white);
  border: 1px solid;
  border-radius: 4px;
  position: relative;
  transition: background-color 0.2s ease, color 0.2s ease;

  @media (hover: hover) {
    &:hover {
      background-color: #1a1a1a;
      color: var(--color-text-light);

      &::after {
        background-image: url("../../../images/icon_arrow_right_white.svg");
      }

      &::before {
        filter: invert(1);
      }
    }
  }

  &::before {
    content: "";
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-position: center;
    position: absolute;
    top: 50%;
    left: 16px;
    translate: 0 -50%;
  }

  &::after {
    content: "";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    background-image: url("../../../images/icon_arrow_right_black.svg");
    background-size: contain;
    background-position: center;
    position: absolute;
    top: 50%;
    right: 16px;
    translate: 0 -50%;
  }

  &.--contact {
    border-color: rgb(0 0 0 / 60%);
    &::before {
      background-image: url("../../../images/icon_mail_black.svg");
    }
  }
  &.--download {
    border-color: #1a1a1a;
    &::before {
      background-image: url("../../../images/icon_docs_black.svg");
    }
  }
}
