.main.contact-thanks {
  position: relative;
  min-height: 100vh;
  background-color: var(--color-bg);
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.contact-thanks__background-layer {
  background: url(../images/pc/bg/bg5.webp);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  bottom: 0;
  background-size: cover;
  background-position: top;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: var(--z-background);
}

.contact-thanks__content {
  position: relative;
  text-align: center;
  padding-top: 13rem;
  padding-bottom: 21.1rem;
  z-index: var(--z-content-base);
}
.br-sp{
  display: none;
}

.contact-thanks__title{
  color: var(--color-dark);
  text-align: center;
  font-family: var(--font-main);
  font-size: 4rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 3rem;
}

.contact-thanks__text{
  color: var(--color-dark);
  text-align: center;
  font-family: var(--font-strong);
  font-size: 1.4rem;
  font-style: normal;
  font-weight: 400;
  line-height: 1.71;
  margin-bottom: 5.6rem;
}
/* ===================================
    contact-thanks__link アニメーション
=================================== */
.contact-thanks__link {
  position: relative;
  padding-bottom: 0.3rem;
  overflow: hidden;
  text-decoration: none !important;
  max-width: 20rem;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 0 1rem;
  align-items: center;
  margin: 0 auto;
}

.contact-thanks__link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.contact-thanks__link:hover span {
  animation: slideOutInDiagonalReversed 1.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.contact-thanks__link-icon {
  max-width: 1rem;
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  padding: 0.4rem 0;
}

.contact-thanks__link::after {
  content: '';
  display: block;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(to left, #002246 18.27%, #477C98 32.69%, #EEE9E5 100%);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  opacity: 1;
}

.contact-thanks__link:hover::after {
  animation: underlineGrowBack 2.5s cubic-bezier(.16, 1, .3, 1) forwards;
}

@keyframes slideOutInDiagonalReversed {
  0% {
    transform: translate(0, 0);
    opacity: 1;
  }
  40% {
    transform: translate(-0.8rem, -0.8rem);
    opacity: 0.3;
  }
  48% {
    transform: translate(-1rem, -1rem);
    opacity: 0;
  }
  52% {
    transform: translate(1rem, 1rem);
    opacity: 0;
  }
  60% {
    transform: translate(0.8rem, 0.8rem);
    opacity: 0.3;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

@keyframes underlineGrowBack {
  0% {
    background-size: 0% 1px;
  }
  50% {
    background-size: 100% 1px;
  }
  100% {
    background-size: 100% 1px;
  }
}

/* Mobile */
@media screen and (max-width: 750px) {
  .br-sp{
    display: block;
  }
  .contact-thanks__background-layer {
    background: url(../images/sp/bg/bg5.webp);
    background-size: cover;
    background-position: top;
    background-repeat: no-repeat;
  }
  .contact-thanks__content{
    padding-top: 13.5rem;
    padding-bottom: 23.4rem;
  }
  .contact-thanks__title{
    font-size: 3.2rem;
    line-height: 1.12;
    margin-bottom: 4rem;
  }

  .contact-thanks__link{
    display: none;
  }
}
