@charset "utf-8";

.footer {
  margin-top: -40px;
  padding: 95px 0 20px;
  border-radius: 40px 40px 0 0;
  position: relative;
}

.bg-text__wrap {
  display: flex;
  gap: 50px;
  width: 100%;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 310px;
  pointer-events: none;
}
@media screen and (min-width: 768px) {
 .bg-text__wrap {
    top: 185px;
  }
}
.bg-text {
  flex-shrink: 0;
  aspect-ratio: 2931 / 162;
  width: 2000px;
  height: 100%;
  animation: infinity-scroll-left 50s infinite linear 0.5s both;
}
@media screen and (min-width: 768px) {
.bg-text {
      width: 2931px;
  }
}

@keyframes infinity-scroll-left {
  from {
    transform: translateX(0%);
  }
  to {
    transform: translateX(-100%);
  }
}

.footer__top {
  display: flex;
  align-items: start;
  gap: 40px;
  flex-direction: column;
}
@media screen and (min-width: 768px) {
  .footer__top {
    flex-direction: row;
  }
}
@media screen and (min-width: 800px) {
  .footer__top {
    gap: 56px;
  }
}

.footer__contact:hover {
  opacity: 0.8;
}

.footer__bottom {
  margin-top: 101px;
  display: flex;
  gap: 80px;
  flex-direction: column-reverse;
  margin-inline: auto;
}
@media screen and (min-width: 768px) {
  .footer__bottom {
    margin-top: 201px;
    flex-direction: row;
    align-items: start;
    gap: 42px;
    justify-content: space-between;

  }
}

.footer__logo {
  width: 134px;
  height: auto;
}
.footer__logo:hover {
  opacity: 0.8;
}

.footer__bottom-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 50px;
  max-width: 263px;
  white-space: nowrap;
  align-items: start;
}

@media screen and (min-width: 768px) {
  .footer__bottom-links {
    margin-right: 210px;
  }
}
@media screen and (min-width: 900px) {
  .footer__bottom-links {
    gap: 30px 123px;
    
  }
}

.c12386 {
  display: none;
}
@media screen and (min-width: 768px) {
  .c12386 {
  display: block;
}
}

.footer__bottom-link {
  font-family: "Kosugi", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
}
.footer__bottom-link p {
  width: fit-content;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer__bottom-link p::before {
  content: "";
  background-color: #FFFFFF;
  width: 6px;
  height: 9px;
  clip-path: polygon(0 0, 0% 100%, 100% 50%);
}
.footer__bottom-link:hover {
  opacity: 0.8;
}

.footer__btn-wrap {
  width: fit-content;
  margin: 20px 0 0;
  position: relative;
  z-index: 10;
}
@media screen and (min-width: 768px) {
  .footer__btn-wrap {
    margin: 20px 0 0 auto;
  }
}
@media screen and (min-width: 768px) {
  .footer__btn-wrap {
    margin: -37px 0 0 auto;
  }
}

.footer__btn {
  padding: 12px 16px;
  border-radius: 5px;
  border: 1px solid #FFFFFF;
  width: 252px;
  height: auto;
  display: flex;
  justify-content: end;
  align-items: center;
  gap: 50px;
}
.footer__btn::after {
  content: "";
  background: url('../images/icon-arrow.svg') center / contain no-repeat;
  width: 24px;
  height: 24px;
}
.footer__btn p{
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  font-family: "Kosugi", sans-serif;
}
.footer__btn:hover {
  background: #3E614E;
}


.footer__copyright {
  font-size: 14px;
  line-height: calc(17 / 14);
  letter-spacing: 0;
  color: #FFFFFF;
  text-align: center;
  padding-top: 16px;
  border-top:1px solid ;
  margin: 137px 0 0;
}
@media screen and (min-width: 1300px) {
  .footer__copyright {
    margin: 225px 0 0;
  }
}