@charset "utf-8";

.footer {
  border-radius: 10px 10px 0 0;
  background: #3c3635;
  padding-block: 80px 17px;
}

@media screen and (min-width: 768px) {
  .footer {
    padding-block: 128px 17px;
  }
}

.cta {
  padding-bottom: 50px;
}

.cta__inner {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 29px;
}

@media screen and (min-width: 1000px) {
  .cta__inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: stretch;
  }

  .cta__inner.l-inner {
    padding-inline: 54px;
    max-width: calc(1258px + 54px * 2);
  }
}

.cta__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(10px, 2.2vw, 30px);
  padding: 20px 20px 60px;
  border-radius: 10px;
  background: var(--color-white);
}

@media screen and (min-width: 500px) {
  .cta__box {
    padding: 30px clamp(50px, 6.52vw, 89px) 30px 30px;
    flex-direction: row;
    justify-content: flex-start;
  }
}

.cta__image {
  aspect-ratio: 148/100;
  width: 100%;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
}

@media screen and (min-width: 500px) {
  .cta__image {
    aspect-ratio: 148/148;
  }
}

@media screen and (min-width: 768px) {
  .cta__image {
    max-width: 148px;
  }
}

.cta__image img {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.cta__bottom {
  position: relative;
  width: 100%;
}

@media screen and (min-width: 1300px) {
  .cta__bottom {
    flex: 1;
  }
}

.cta__bottom::after {
  position: absolute;
  content: "";
  transition: all 0.3s ease;
  aspect-ratio: 30/30;
  width: 30px;
  height: auto;
  bottom: -40px;
  right: 0;
  background: url(../images/arrow-icon.svg) no-repeat center center / contain;
}

.cta__box:hover .cta__bottom::after {
  right: -5px;
}

@media screen and (min-width: 500px) {
  .cta__bottom::after {
    top: 50%;
    right: -35px;
    bottom: auto;
    transform: translateY(-50%);
  }

  .cta__box:hover .cta__bottom::after {
    right: -40px;
  }
}

@media screen and (min-width: 1000px) {
  .cta__bottom::after {
    right: -60px;
  }

  .cta__box:hover .cta__bottom::after {
    right: -65px;
  }
}

.cta__title {
  font-size: clamp(20px, 2.05vw, 28px);
  font-weight: 600;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: calc(40 / 28);
}

.cta__text {
  margin-top: 14px;
  font-size: clamp(11px, 0.96vw, 13px);
  font-weight: 500;
  line-height: calc(30 / 13);
}

.footer__container {
  padding-block: 76px 118px;
  position: relative;
}

/* 上のボーダー */
.footer__container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--color-white);
}

/* 下のボーダー */
.footer__container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20px;
  right: 20px;
  height: 1px;
  background: var(--color-white);
}

.footer__inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-content: space-between;
  padding-inline: 20px;
  margin-inline: auto;
  color: var(--color-white);
  gap: 60px;
}

@media screen and (min-width: 768px) {
  .footer__inner {
    padding-inline: 54px;
  }

  .footer__container::before,
  .footer__container::after {
    left: 54px;
    right: 54px;
  }
}

@media screen and (min-width: 1000px) {
  .footer__inner {
    gap: 20px;
    grid-template-columns: 340px auto;
  }
}

.footer__head{
  margin-left: 2%;
}

.footer__logo {
  height: 47px;
  padding: 0px 14px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #b22517;
  border-radius: 10px;
}

@media screen and (min-width: 1000px) {
  .footer__logo {
    height: 65px;
  }
}

.footer__logo-ja {
  font-size: clamp(16px, 1.91vw, 26px);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: calc(35.2 / 26);
}

.footer__logo-en {
  font-size: clamp(7px, 0.74vw, 10px);
  font-weight: 600;
  letter-spacing: calc(50 / 1000 * 1em);
  line-height: calc(15.2 / 10);
  color: var(--color-white);
}

.footer__head-address {
  margin-top: 15px;
  font-size: clamp(12px, 1.03vw, 14px);
  font-weight: 500;
  letter-spacing: calc(80 / 1000 * 1em);
  line-height: calc(20 / 14);
}

.footer__image {
  display: block;
  margin-top: 25px;
  aspect-ratio: 40/40;
  width: 40px;
  height: auto;
  overflow: hidden;
  border-radius: 50%;
}

.footer__image img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.footer__nav {
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px clamp(20px, 6.81vw, 93px);
}

@media screen and (min-width: 768px) {
  .footer__nav {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (min-width: 1000px) {
  .footer__nav {
    margin-top: 41px;
  }
}

.footer__nav-link p {
  font-size: clamp(12px, 1.03vw, 14px);
  font-weight: 500;
  letter-spacing: calc(80 / 1000 * 1em);
  display: flex;
  align-items: center;
  gap: 11px;
  white-space: nowrap;
}

.footer__nav-link p::before {
  content: "";
  aspect-ratio: 5/5;
  width: 5px;
  height: auto;
  border-radius: 50%;
  background: var(--color-white);
}

.copyright {
  padding-top: 15px;
  text-align: center;
  padding-inline: 20px;
  margin-inline: auto;
}

@media screen and (min-width: 768px) {
  .copyright {
    padding-inline: 40px;
  }
}

.copyright__text {
  color: var(--color-white);
  font-size: clamp(10px, 0.88vw, 12px);
  font-weight: 500;
  letter-spacing: calc(80 / 1000 * 1em);
  line-height: calc(17 / 12);
}
