@charset "UTF-8";

.p-footer.top {
  background: transparent linear-gradient(307deg, #deebde 0%, #f7f1de 100%) 0% 0% no-repeat padding-box;
}


.p-footer__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: 500px;
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-footer__top {
    grid-template-columns: 1fr 1fr;
    max-width: 1000px;
    padding-inline: 20px;
    gap: 12px;
  }
}
@media screen and (min-width:1024px) {
  .p-footer__top {
    grid-template-columns: min(24.1581259151vw, 330px) min(33.6749633968vw, 460px) min(33.6749633968vw, 460px);
    gap: 10px;
    padding-inline: 52px 43px;
    max-width: 1366px;
    margin-inline: auto;
  }
}

.p-footer__top-img {
  max-width: clamp(220px, 42.96875vw, 330px);
  aspect-ratio: 330/320;
  border-radius: 20px;
  margin-inline: auto;
}
@media screen and (min-width:768px) {
  .p-footer__top-img {
    grid-column: 1/-1;
    margin-bottom: 20px;
  }
}
@media screen and (min-width:1024px) {
  .p-footer__top-img {
    margin: 0;
    grid-column: auto;
  }
}
.p-footer__top-img img {
  border-radius: 20px;
}
.p-footer__cta {
  max-width: 460px;
  padding-block: clamp(40px, 4.5387994143vw, 62px);
  padding-inline: 20px;
  border-radius: 20px;
  position: relative;
}
@media screen and (min-width:1024px) {
  .p-footer__cta {
    padding-inline: 40px;
  }
}
@media screen and (min-width:1200px) {
  .p-footer__cta {
    padding-inline: clamp(40px, 5.4904831625vw, 75px);
  }
}

.p-footer__cta-content {
  max-width: 309px;
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.p-footer__title-ja {
  color: #3D4448;
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.5;
  letter-spacing: 1.2px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}

.p-footer__title-en {
  margin-top: 4px;
  font-family: "Quicksand", serif;
  color: #4E7C49;
  font-size: 13px;
  line-height: 1.2307692308;
  letter-spacing: 0.65px;
  font-weight: 600;
  text-align: center;
}

.p-footer__text {
  margin-top: 18px;
  font-size: clamp(13px, 1.8229166667vw, 14px);
  line-height: 1.7857142857;
  letter-spacing: 0.84px;
  font-weight: 500;
}

.p-footer__cta-btn {
  margin-top: 21px;
  padding-block: 15px;
  padding-inline: 16px;
  font-size: 14px;
  line-height: 1.4285714286;
  letter-spacing: 0.7px;
  font-weight: 600;
  background: #ffffff;
  border-radius: 5px;
}
.p-footer__cta-btn .text {
  color: #4E7C49;
  padding-right: 54px;
  position: relative;
}
.p-footer__cta-btn .text::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 0;
  width: 34px;
  height: 33px;
  background: url(../images/icon-btn.svg) no-repeat center center/cover;
}
@media (any-hover: hover) {
  .p-footer__cta-btn:hover {
    opacity: 1;
    background: #4e7c49;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .p-footer__cta-btn:hover .text {
    color: #ffffff;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
}


.cta-mail {
  background: #ceddcd;
}
.cta-mail::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../images/contact-bg.png) no-repeat center center/cover;
  pointer-events: none;
}

.cta-maga {
  background: #f7f1de;
}
.cta-maga::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../images/contact-bg-maga.png) no-repeat center center/cover;
  pointer-events: none;
}

.cta-maga .p-footer__title-en {
  color: #7a7c49;
}
.cta-maga .p-footer__cta-btn .text {
  color: #7A7C49;
}
.cta-maga .p-footer__cta-btn .text::after {
  background: url(../images/icon-btn-mail.svg) no-repeat center center/cover;
}
@media (any-hover: hover) {
  .cta-maga .p-footer__cta-btn:hover {
    background: #7a7c49;
  }
  .cta-maga .p-footer__cta-btn:hover .text {
    color: #ffffff;
  }
}

.p-footer__bottom {
  margin-top: -120px;
  padding-top: 180px;
  padding-inline: 20px;
  color: #ffffff;
  background: #4e473d;
  border-radius: 40px 40px 0px 0px;
}
@media screen and (min-width:1024px) {
  .p-footer__bottom {
    padding-top: clamp(180px, 17.4963396779vw, 239px);
    margin-top: clamp(-160px, -11.7130307467vw, -100px);
    padding-left: clamp(40px, 4.6120058565vw, 63px);
    padding-right: clamp(40px, 3.953147877vw, 54px);
  }
}
@media screen and (min-width:1367px) {
  .p-footer__bottom {
    padding-left: calc(63px + (100vw - 1366px) / 2);
    padding-right: calc(54px + (100vw - 1366px) / 2);
  }
}

.p-footer__bottom-wrap {
  margin-bottom: clamp(80px, 15.2269399707vw, 208px);
}
@media screen and (min-width:768px) {
  .p-footer__bottom-wrap {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    gap: 40px;
  }
}


.p-footer__info {
  max-width: -webkit-fit-content;
  max-width: -moz-fit-content;
  max-width: fit-content;
}

.p-footer__logo {
  width: 137px;
  height: 82px;
}

.p-footer__info-texts {
  margin-top: 17px;
}

.p-footer__info-text {
  font-size: 13px;
  line-height: 1.4615384615;
  letter-spacing: 0.26px;
}
.p-footer__info-text + .p-footer__info-text {
  margin-top: 4px;
}

.p-footer__menu {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  gap: 36px 20px;
  max-width: 400px;
}
@media screen and (min-width:768px) {
  .p-footer__menu {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    max-width: 402px;
    margin-inline: 0;
  }
}

.p-footer__menu-link {
  font-size: clamp(13px, 1.3671875vw, 14px);
  line-height: 1.4285714286;
  letter-spacing: 0.7px;
  font-weight: 600;
}

.p-copyright-wrap {
  border-top: 1px solid #939393;
  padding-block: 24px 18px;
}

.p-copyright-text {
  color: #ffffff;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.24px;
  text-align: center;
}