.footer {
  background-color: #f9f9fa;
  border-radius: 24px 24px 0 0;
  position: relative;
}
.footer__inner {
  margin-inline: auto;
  max-width: 1366px;
  padding: 56px 20px 32px;
  position: relative;
}

.footer-contact {
  border-bottom: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-bottom: 48px;
}
.footer-contact__head {
  max-width: 524px;
}
.footer-contact__en {
  color: #868ba4;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.25rem, 1.6823915237rem + 2.4217961655vw, 3.75rem);
  font-weight: 700;
  line-height: calc(50 / 60);
  white-space: nowrap;
}
.footer-contact__ja {
  color: #303131;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: calc(20 / 16);
  margin-top: 15px;
}
.footer-contact__text {
  color: #303131;
  font-size: 14px;
  font-weight: 700;
  line-height: calc(32 / 14);
  margin-top: 20px;
  text-align: justify;
}
.footer-contact__cards {
  align-items: center;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  width: 100%;
}

.footer-card {
  --more-w: 55px;
  --more-h: 49px;
  background: #ffffff;
  border: 1px solid #bdbdbd;
  border-radius: 20px;
  color: #333333;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  justify-content: center;
  max-width: 504px;
  min-height: 130px;
  overflow: hidden;
  padding: 25px 72px 25px 39px;
  position: relative;
  transition: border-color 0.4s ease;
  width: 100%;
}
.footer-card::before {
  background: #868ba4;
  border-radius: 20px 0 20px 0;
  bottom: 0;
  content: "";
  height: var(--more-h);
  pointer-events: none;
  position: absolute;
  right: 0;
  transition: width 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), height 0.45s cubic-bezier(0.25, 0.8, 0.25, 1), border-radius 0.4s ease;
  width: var(--more-w);
  z-index: 0;
}
.footer-card:hover {
  border-color: #868ba4;
  color: #ffffff;
  opacity: 1;
}
.footer-card:hover::before {
  border-radius: 20px;
  height: 100%;
  width: 100%;
}
.footer-card:hover .footer-card__title,
.footer-card:hover .footer-card__desc {
  color: #ffffff;
}
.footer-card:hover .footer-card__more img {
  transform: translateX(4px);
}
.footer-card__top {
  align-items: center;
  display: flex;
  gap: 17px;
  position: relative;
  z-index: 1;
}
.footer-card__icon {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
}
.footer-card__icon img {
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  width: 100%;
}
.footer-card__icon--flow {
  height: 44px;
  width: 35px;
}
.footer-card__icon--inquiry {
  height: 44px;
  width: 32px;
}
.footer-card__title {
  color: #333333;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 20px;
  transition: color 0.35s ease;
}
.footer-card__desc {
  color: #303131;
  font-size: 13px;
  font-weight: 700;
  line-height: 20px;
  margin-top: 16px;
  position: relative;
  transition: color 0.35s ease;
  z-index: 1;
}
.footer-card__more {
  align-items: center;
  border-radius: 20px 0 20px 0;
  bottom: 0;
  display: flex;
  height: var(--more-h);
  justify-content: center;
  position: absolute;
  right: 0;
  width: var(--more-w);
  z-index: 1;
}
.footer-card__more img {
  height: 16px;
  -o-object-fit: contain;
     object-fit: contain;
  transition: transform 0.3s ease;
  width: 15px;
}

.footer-sitemap {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding-bottom: 40px;
  padding-top: 48px;
}

.footer-brand__link {
  align-items: flex-start;
  color: #333333;
  display: flex;
  gap: 18px;
}
.footer-brand__link:hover {
  color: #333333;
  opacity: 0.85;
}
.footer-brand__logo {
  flex-shrink: 0;
  height: 52px;
  width: 52px;
}
.footer-brand__logo img {
  height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  width: 100%;
}
.footer-brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: calc(20 / 20);
  padding-top: 17px;
}
.footer-brand__address {
  color: #333333;
  font-size: 14px;
  font-weight: 400;
  line-height: 19.5px;
  margin-top: 24px;
}

.footer-nav {
  display: grid;
  gap: 28px;
  gap: 30px 40px;
  grid-template-columns: auto 1fr;
  width: 100%;
}
.footer-nav__item {
  color: #333333;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: normal;
}
.footer-nav__group {
  display: flex;
  flex-direction: column;
  gap: 31px;
  grid-row: 2;
}
.footer-nav__sub {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 0;
  padding: 0;
}
.footer-nav__sub-item {
  align-items: center;
  color: #2c2c2c;
  display: flex;
  font-size: 12px;
  font-weight: 600;
  gap: 5px;
  letter-spacing: 0.03em;
  line-height: 10px;
}
.footer-nav__sub-item::before {
  background: url(../images/icon-triangle.svg) no-repeat center/contain;
  content: "";
  flex-shrink: 0;
  height: 4px;
  transform: rotate(90deg);
  width: 6px;
}
.footer-nav__links {
  display: flex;
  flex-direction: column;
  gap: 30px;
  grid-row: span 2;
}

.footer-copy {
  border-top: 1px solid #e0e0e0;
  padding-top: 19px;
  text-align: center;
}
.footer-copy p {
  color: #505050;
  font-size: 11px;
  font-weight: 400;
  line-height: 21px;
}

.footer-pagetop {
  display: block;
  height: 72px;
  margin-bottom: 24px;
  margin-left: auto;
  position: relative;
  width: 72px;
}

@media (min-width: 768px) {
  .footer-contact__text {
    margin-top: 45px;
    text-align: left;
  }
  .footer-contact__cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-nav {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    flex-direction: row;
    flex-shrink: 0;
    gap: 60px;
    justify-content: flex-end;
  }
}

@media (min-width: 1024px) {
  .footer {
    border-radius: 40px 40px 0 0;
  }
  .footer__inner {
    padding: 110px 40px 40px;
  }
  .footer-contact {
    align-items: flex-start;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 110px;
  }
  .footer-contact__cards {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    gap: 10px;
    width: 504px;
  }
  .footer-card__title {
    font-size: 25px;
  }
  .footer-card__desc {
    font-size: 14px;
  }
  .footer-sitemap {
    align-items: flex-start;
    flex-direction: row;
    gap: 40px;
    justify-content: space-between;
    padding-bottom: 212px;
    padding-top: 120px;
  }
  .footer-nav {
    gap: 0;
    padding-top: 22px;
    width: 437px;
  }
  .footer-nav__item--home {
    flex-shrink: 0;
  }
  .footer-nav__group {
    flex-shrink: 0;
    margin-left: 70px;
  }
  .footer-nav__links {
    gap: 52px;
    margin-left: auto;
  }
  .footer-pagetop {
    height: 102px;
    margin-right: 21px;
    width: 102px;
  }
}

@media (min-width: 1366px) {
  .footer__inner {
    padding: 110px 98px 20px 118px;
  }
}