.tg-line-consult {
  position: relative;
  padding: clamp(16px, 2.4vw, 32px) 20px;
  scroll-margin-top: 90px;
}

/* The homepage movie has a decorative layer extending past the hero. */
.mv + .tg-line-consult {
  z-index: 31;
}

.tg-line-consult__width {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  container-type: inline-size;
}

.tg-line-consult__card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(12px, 1.482cqw, 16px);
  box-sizing: border-box;
  min-height: clamp(265px, 33.334cqw, 360px);
  padding: 24px 2.2222% 24px 5.9259%;
  background: #faf8f3;
  color: #1f2d3c;
  font-family: "ZenKakuGothicNew", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  text-align: left;
  letter-spacing: 0;
}

.tg-line-consult__art,
.tg-line-consult__art img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.tg-line-consult__art img {
  object-fit: cover;
}

.tg-line-consult__copy {
  position: relative;
  display: grid;
  gap: clamp(8px, 1.112cqw, 12px);
  max-width: 100%;
}

.tg-line-consult__brand,
.tg-line-consult__title,
.tg-line-consult__description {
  margin: 0;
  padding: 0;
  font-family: inherit;
  letter-spacing: 0;
}

.tg-line-consult__brand {
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.tg-line-consult__brand::after {
  content: "";
  display: block;
  width: 168px;
  height: 2px;
  margin-top: 4px;
  background: #ff6b00;
}

.tg-line-consult__title {
  color: #1f2d3c;
  font-size: clamp(30px, 4.075cqw, 44px);
  font-weight: 900;
  line-height: 1.182;
}

.tg-line-consult__description {
  color: #53606b;
  font-size: clamp(16px, 1.667cqw, 18px);
  font-weight: 400;
  line-height: 1.667;
}

.tg-line-consult__link {
  display: block;
  width: min(360px, 36cqw);
  max-width: 100%;
  text-decoration: none;
}

/* One native link makes both the button and its surrounding banner clickable. */
.tg-line-consult__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.tg-line-consult__button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: clamp(48px, 5.186cqw, 56px);
  padding: 4px 40px;
  background: #00843d;
  border-radius: 8px;
  color: #fff;
  font-size: clamp(18px, 2.038cqw, 22px);
  font-weight: 700;
  line-height: 1.455;
  text-align: center;
}

.tg-line-consult__arrow {
  position: absolute;
  top: 50%;
  right: 22.5px;
  transform: translateY(-50%);
}

.tg-line-consult__link:focus-visible .tg-line-consult__button {
  outline: 3px solid #1f2d3c;
  outline-offset: 3px;
}

@media (hover: hover) {
  .tg-line-consult__link:hover .tg-line-consult__button {
    background: #006d32;
  }
}

@media (max-width: 767px) {
  .tg-line-consult {
    padding: 16px 0;
  }

  .tg-line-consult__width {
    max-width: 460px;
  }

  .tg-line-consult__card {
    justify-content: space-between;
    min-height: max(430px, 125.1282cqw);
    padding: 12px 6.1538% 16px;
  }

  .tg-line-consult__copy {
    gap: 8px;
  }

  .tg-line-consult__brand::after {
    width: 144px;
  }

  .tg-line-consult__title {
    font-size: clamp(26px, 8.206cqw, 32px);
    line-height: 1.125;
  }

  .tg-line-consult__description {
    font-size: 15px;
    line-height: 26px;
  }

  .tg-line-consult__link {
    width: 100%;
  }

  .tg-line-consult__button {
    min-height: 52px;
    font-size: clamp(19px, 5.642cqw, 22px);
  }
}
