/* #region MARK:media */

.profile__image,
.company-info__photo,
.company-card__thumb {
  height: auto;
  aspect-ratio: 16 / 9;
}

.company-card__thumb--hasuike-kogyo:before,
.company-card__thumb--nishinihon-framing:before {
  background-position: 0% 50%;
}

/* #endregion */

/* #region MARK:hero */

.hero {
  align-items: center;
}

.hero__inner,
.hero__actions {
  width: 100%;
  align-items: center;
  justify-content: center;
}

.hero__catch {
  align-items: center;
}

.hero__inner,
.hero__catch,
.hero__catch-line-1,
.hero__catch-line-2 {
  z-index: auto;
}

.hero__catch-line-1::after,
.hero__catch-line-2::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d3557;
  opacity: 0.5;
  filter: blur(0.12em);
  mix-blend-mode: multiply;
  transform: translate(0.02em, 0.05em);
  pointer-events: none;
}

.hero__catch-line-1 {
  width: 100%;
  max-width: 100%;
  font-size: clamp(13px, 1.9vw, 26px);
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-align: center;
  justify-content: center;
}

.hero__catch-line-2 {
  font-size: clamp(22px, 5vw, 68px);
  letter-spacing: 0.12em;
  text-indent: 0.12em;
  text-align: center;
  justify-content: center;
}

@media screen and (max-width: 540px) {
  .hero {
    padding-inline: 5vw;
  }

  .hero__catch-line-1,
  .hero__catch-line-2 {
    white-space: nowrap;
  }

  .hero__catch-line-1 {
    font-size: 3.2vw;
  }

  .hero__catch-line-2 {
    font-size: 6vw;
  }
}

.hero__button {
  min-height: 56px;
  padding: 0 36px;
  border-radius: 999px;
}

@media screen and (max-width: 540px) {
  .hero__button {
    min-height: 52px;
    padding: 0 32px;
  }
}

/* #endregion */

/* #region MARK:typography */

.profile__description {
  line-height: 2;
}

.company-info__label,
.company-info__value,
.company-info__value--block {
  font-size: 16px;
}

.company-info__row .company-info__label,
.company-info__row .company-info__value,
.company-info__row .company-info__value--block {
  justify-content: flex-start;
  text-align: left;
}

@media screen and (max-width: 840px) {
  .profile__lead {
    font-size: 22px;
  }

  .profile__description {
    font-size: 16px;
  }
}

@media screen and (max-width: 540px) {
  .profile__lead {
    font-size: 24px;
  }
}

/* #endregion */

/* #region MARK:back-to-list */

.back-to-list {
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  width: 100%;
  padding: 64px 20px;
  background: #fff;
}

.back-to-list__link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 40px;
  border: 1px solid #004ea3;
  border-radius: 40px;
  background: #fff;
  color: #004ea3;
  font-family: var(--font-lato), sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.back-to-list__link::before {
  content: "";
  width: 8px;
  height: 8px;
  border-bottom: 2px solid currentColor;
  border-left: 2px solid currentColor;
  transform: rotate(45deg);
}

.back-to-list__link:hover,
.back-to-list__link:focus-visible {
  background: #004ea3;
  color: #fff;
}

/* #endregion */

/* #region MARK:content-width */

@media screen and (min-width: 1681px) {
  .companies {
    padding-inline: calc((100% - 1600px) / 2);
  }
}

@media screen and (min-width: 1761px) {
  .profile,
  .company-info {
    padding-inline: calc((100% - 1600px) / 2);
  }
}

/* #endregion */
