.c-hero {
  position: relative;
}

.c-hero--home {
  z-index: 99;
  height: var(--hero-height);

  @media (width < 768px) {
    height: var(--hero-height-home-sp);
  }
}

.c-hero__inner {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 3;
}

.c-hero__sns {
  position: absolute;
  width: 100%;
  height: auto;
  top: 0;
  right: 0;
  z-index: 3;

  @media (width < 992px) {
    display: none;
  }
}

.c-hero__sns .c-hero__sns-inner {
  position: relative;
}

.c-hero__sns .c-hero__sns-list {
  display: flex;
  justify-content: center;

  @media (width >= 992px) {
    position: absolute;
    right: 0;
    top: 1.5rem;
  }
}

.c-hero__text {
  width: 100%;
  position: absolute;
  display: flex;

  @media (width >= 768px) {
    bottom: var(--space-md);
    justify-content: space-between;
    align-items: flex-end;
  }

  @media (width >= 992px) {
    bottom: var(--space-xl);
  }

  @media (width < 768px) {
    flex-direction: column;
    height: 100%;
  }
}

.c-hero__heading {
  @media (width >= 768px) {
    width: calc(380 / 1110 * 100%);
  }

  @media (width < 768px) {
    width: 100%;
    height: 100%;
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    margin-bottom: .4rem;
  }
}

.c-hero__lead {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-compact);
  color: var(--color-text-inverse);

  @media (width >= 768px) {
    font-size: var(--font-size-fluid-20-1400);
  }

  @media (width < 768px) {
    font-size: var(--font-size-fluid-26-750);
  }
}

/* Extra specificity so the logo width beats .u-img, which loads later as a utility. */
.c-hero__heading .c-hero__logo {
  @media (width >= 768px) {
    margin-top: var(--space-2xs);
  }

  @media (width < 768px) {
    margin-top: .8rem;
    width: calc(180 / 345 * 100%);
  }
}

.c-hero__meta {
  display: flex;
  font-weight: var(--font-weight-bold);
  color: var(--color-text-inverse);
  justify-content: space-between;
  align-items: baseline;

  @media (width >= 768px) {
    margin-top: var(--space-2xs);
    line-height: var(--line-height-tight);
  }

  @media (width < 768px) {
    margin-top: 2px;
  }
}

.c-hero__meta .c-hero__name {
  @media (width >= 768px) {
    font-size: var(--font-size-2xs);
  }

  @media (width >= 992px) {
    font-size: var(--font-size-fluid-20-1400);
  }

  @media (width < 768px) {
    font-size: var(--font-size-fluid-26-750);
  }
}

.c-hero__meta .c-hero__kana {
  @media (width >= 768px) {
    font-size: var(--font-size-3xs);
  }

  @media (width >= 992px) {
    font-size: 1.14286vw;
  }

  @media (width < 768px) {
    font-size: 2.93333vw;
  }
}

.c-hero__video-button {
  font-weight: var(--font-weight-bold);
  color: var(--color-text-inverse);
  position: relative;

  @media (width >= 768px) {
    font-size: var(--font-size-2xs);
    line-height: var(--line-height-tight);
  }

  @media (width >= 992px) {
    font-size: var(--font-size-fluid-15-1400);
  }

  @media (width < 768px) {
    font-size: var(--font-size-fluid-26-750);
    align-self: flex-end;
    order: 1;
    margin-top: var(--space-2xs);
  }
}

.c-hero__video {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
}

.c-hero__poster-img,
.c-hero__video .c-hero__video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-hero__video--dim::after {
  position: absolute;
  inset: 0;
  content: "";
  background-color: var(--color-overlay-light);
}

.c-hero--page {
  height: var(--hero-height);
}

.c-hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-hero__video-media {
  display: block;
  width: 100%;
  object-fit: cover;
}
