@charset "utf-8";

/* f-contact */
.f-contact {
  position: relative;
  z-index: 1;
}
.f-contact::before {
  content: "";
  position: absolute;
  top: clamp(2.312rem, 2.062rem + 0.521vw, 2.688rem);
  bottom: 0;
  left: 50%;
  z-index: 0;
  width: 100%;
  background-image: url("https://heartfull-smile.jp/system_panel/uploads/images/footer-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
  transform: translateX(-50%);
  pointer-events: none;
}
.f-contact::after {
  content: "";
  position: absolute;
  top: calc(clamp(2.312rem, 2.062rem + 0.521vw, 2.688rem) + 25vw);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  background-color: #fae0c5;
  pointer-events: none;
}
.f-contact__inner {
  position: relative;
  z-index: 1;
  padding-right: clamp(2.500rem, -18.542rem + 43.837vw, 34.062rem);
  padding-bottom: clamp(4.062rem, 3.729rem + 0.694vw, 4.562rem);
  padding-left: clamp(2.500rem, -18.708rem + 44.184vw, 34.312rem);
}
.f-contact__icon {
  position: absolute;
  top: 0;
  right: clamp(0.625rem, -16.875rem + 36.458vw, 26.875rem);
  z-index: 0;
  width: clamp(14.250rem, 2.667rem + 24.132vw, 31.625rem);
  max-width: none;
  height: auto;
  pointer-events: none;
}
.f-contact__container {
  position: relative;
  z-index: 1;
  padding-top: clamp(9.000rem, 8.000rem + 2.083vw, 10.500rem);
}
.f-contact__text {
  margin-top: clamp(1.250rem, 1.562rem - 0.260vw, 1.438rem);
  font-size: clamp(0.875rem, 0.625rem + 0.521vw, 1.250rem);
  font-weight: 400;
  line-height: clamp(1.500rem, 1.250rem + 0.521vw, 1.875rem);
}
.f-contact__box {
  display: flex;
  gap: clamp(1.250rem, 0.042rem + 2.517vw, 3.062rem);
  margin-top: clamp(2.500rem, 2.333rem + 0.347vw, 2.750rem);
}
.f-contact__box > a {
  display: block;
  flex: 1;
  min-width: 0;
}
.f-contact__form,
.f-contact__phone {
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(3.938rem, 2.604rem + 2.778vw, 5.938rem);
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16);
}
.f-contact__form {
  gap: clamp(1.125rem, 0.375rem + 1.562vw, 2.250rem);
  background-color: #ff880a;
  transition: background-color 0.3s;
}
.f-contact-form__text {
  font-size: clamp(1.250rem, 1.000rem + 0.521vw, 1.625rem);
  font-weight: 500;
  line-height: 1;
  color: #000;
  white-space: nowrap;
  transition: color 0.3s;
}
.f-contact-form__icon {
  position: relative;
  flex-shrink: 0;
  width: clamp(1.812rem, 1.604rem + 0.434vw, 2.125rem);
  height: clamp(1.812rem, 1.604rem + 0.434vw, 2.125rem);
  background-color: #0f3666;
  border-radius: 50%;
  transition: background-color 0.3s;
}
.f-contact-form__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  width: clamp(0.438rem, 0.396rem + 0.087vw, 0.500rem);
  height: clamp(0.438rem, 0.396rem + 0.087vw, 0.500rem);
  border-top: 1.5px solid #fff;
  border-right: 1.5px solid #fff;
  transform: translate(-70%, -50%) rotate(45deg);
}
.f-contact__box > a:hover .f-contact__form {
  background-color: #0f3666;
}
.f-contact__box > a:hover .f-contact-form__text {
  color: #fff;
}
.f-contact__box > a:hover .f-contact-form__icon {
  background-color: #ff880a;
}
.f-contact__phone {
  gap: clamp(0.875rem, 0.625rem + 0.521vw, 1.250rem);
}
.f-contact-phone__icon {
  width: clamp(1.562rem, 1.229rem + 0.694vw, 2.062rem);
  height: clamp(1.562rem, 1.229rem + 0.694vw, 2.062rem);
  object-fit: contain;
}
.f-contact-phone__number {
  font-size: clamp(1.500rem, 0.958rem + 1.128vw, 2.312rem);
  font-weight: 500;
  line-height: 1;
  color: #0f3666;
  white-space: nowrap;
}

/* footer */
.footer {
  position: relative;
  z-index: 2;
  padding-top: clamp(2.500rem, 0.167rem + 4.861vw, 6.000rem);
  padding-bottom: clamp(1.562rem, 1.146rem + 0.868vw, 2.188rem);
  background-color: #F8F5F0;
}
.pageTop {
  position: absolute;
  top: 0;
  right: clamp(1.250rem, -1.458rem + 5.642vw, 5.312rem);
  z-index: 2;
  transform: translateY(-50%);
}
.pageTop img {
  width: clamp(3.125rem, 1.208rem + 3.99vw, 6rem);
  height: auto;
  aspect-ratio: 1/1;
}
.footer__inner {
  padding-right: clamp(1.875rem, -8.250rem + 21.094vw, 17.062rem);
  padding-left: clamp(1.875rem, -9.375rem + 23.438vw, 18.750rem);
}
.footer__container {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(2.500rem, -4.375rem + 14.323vw, 12.812rem);
}
.footer__left {
  flex-shrink: 0;
}
.footer__left > a {
  display: block;
  width: fit-content;
}
.footer__logo {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.footer-logo__img {
  width: clamp(5.500rem, -0.583rem + 12.674vw, 14.625rem);
  height: auto;
}
.footer-logo__text {
  font-size: clamp(1.688rem, 1.229rem + 0.955vw, 2.375rem);
  font-weight: 500;
  line-height: clamp(2.438rem, 1.771rem + 1.389vw, 3.438rem);
  letter-spacing: -0.06em;
  white-space: nowrap;
}
.footer__access {
  margin-top: clamp(0.625rem, -0.083rem + 1.476vw, 1.688rem);
  font-size: clamp(0.750rem, 0.583rem + 0.347vw, 1.000rem);
  font-weight: 500;
  line-height: clamp(1.312rem, 0.938rem + 0.781vw, 1.875rem);
}
.footer__right {
  display: flex;
  justify-content: space-between;
  flex: 1;
  max-width: 818px;
  gap: clamp(1.250rem, -0.417rem + 3.472vw, 5.562rem);
}
.footer__items {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer__items > a {
  display: block;
  width: fit-content;
}
.footer__item {
  font-size: clamp(0.750rem, 0.583rem + 0.347vw, 1.000rem);
  font-weight: 500;
  line-height: clamp(1.062rem, 0.521rem + 1.128vw, 1.875rem);
  white-space: nowrap;
  transition: color 0.3s;
}
.footer__items > a:hover .footer__item {
  color: #ff880a;
}
.footer__copyright {
  margin-top: clamp(3.312rem, 1.271rem + 4.253vw, 6.375rem);
  font-size: clamp(0.750rem, 0.583rem + 0.347vw, 1.000rem);
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 1023px) {
  .f-contact__container {
        max-width: 400px;
    margin-inline: auto;
  }
  .f-contact__box {
    flex-direction: column;
  }
  .f-contact__box > a {
    flex: none;
  }
  .footer__container {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
        max-width: 400px;
    margin-inline: auto;
  }
  .footer__logo {
    flex-direction: row;
    align-items: center;
  }
  .footer__access::before {
    content: "〒421-0115";
    display: block;
    margin-bottom: 6px;
  }
  .footer__right {
    display: flex;
    flex-direction: column;
    flex: none;
    max-width: none;
    width: 100%;
    margin-top: 45px;
    gap: 0;
    border-top: 0.5px solid #707070;
  }
  .footer__items {
    display: contents;
  }
  .footer__items > a {
    display: flex;
    align-items: center;
    width: 100%;
    height: 43px;
    padding-left: 10px;
    border-bottom: 0.5px solid #707070;
  }
  .footer__items:nth-child(1) > a:nth-child(1) {
    order: 1;
  }
  .footer__items:nth-child(2) > a:nth-child(1) {
    order: 2;
  }
  .footer__items:nth-child(2) > a:nth-child(2) {
    order: 3;
  }
  .footer__items:nth-child(2) > a:nth-child(3) {
    order: 4;
  }
  .footer__items:nth-child(2) > a:nth-child(4) {
    order: 5;
  }
  .footer__items:nth-child(1) > a:nth-child(2) {
    order: 6;
  }
  .footer__items:nth-child(1) > a:nth-child(3) {
    order: 7;
  }
  .footer__items:nth-child(1) > a:nth-child(4) {
    order: 8;
  }
  .footer__items:nth-child(3) > a:nth-child(1) {
    order: 9;
  }
  .footer__items:nth-child(3) > a:nth-child(2) {
    order: 10;
  }
  .footer__item {
    line-height: 1;
  }
}

@media (max-width: 389px) {
  .f-contact__inner {
    padding-right: 16px;
    padding-left: 16px;
  }
  .f-contact-form__text {
    font-size: 16px;
  }
  .f-contact-phone__number {
    font-size: 20px;
  }
  .footer__inner {
    padding-right: 16px;
    padding-left: 16px;
  }
  .footer-logo__text {
    font-size: 22px;
  }
  .footer__item {
    white-space: normal;
  }
}
