@charset "UTF-8";

.p-footer__bg-text {
  margin-top: 48px;
  overflow-x: hidden;
}
@media screen and (min-width:768px) {
  .p-footer__bg-text {
    margin-top: 12px;
  }
}
.p-footer__bg-text .bg-text__wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 48px;
  width: 100%;
}
.p-footer__bg-text .bg-text {
  font-family: "Libertinus Serif", serif;
  font-size: clamp(60px, 11.3469985359vw, 155px);
  line-height: 1.1419354839;
  opacity: 0.05;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  max-height: 100%;
  -o-object-fit: contain;
     object-fit: contain;
  -webkit-animation: infinity-scroll-left 50s infinite linear 0.5s both;
          animation: infinity-scroll-left 50s infinite linear 0.5s both;
}
@keyframes infinity-scroll-left {
  from {
    -webkit-transform: translateX(0%);
            transform: translateX(0%);
  }
  to {
    -webkit-transform: translateX(-100%);
            transform: translateX(-100%);
  }
}

.p-footer__top {
  margin-top: clamp(-118px, -9.8333333333vw, -80px);
  padding-inline: clamp(20px, 3.90625vw, 30px);
  padding-bottom: 28px;
  color: #ffffff;
  background: #282828;
  max-width: min(820px, 100% - 40px);
  margin-inline: auto;
    position: relative;
  z-index: 2;
}
@media screen and (min-width:768px) {
  .p-footer__top {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    gap: clamp(40px, 3.7335285505vw, 51px);
  }
}

.p-footer__top-icon {
  padding-block: 20px;
  padding-inline: 40px 60px;
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  position: relative;
}
.p-footer__top-icon img {
  width: 58px;
  height: 46px;
  -o-object-fit: cover;
     object-fit: cover;
}
@media screen and (min-width:768px) {
  .p-footer__top-icon {
    padding-block: 112px 85px;
    padding-inline: 41px;
  }
}
.p-footer__top-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f4f4f4;
  opacity: 0.05;
  pointer-events: none;
}

.p-footer__top-content {
  padding-top: clamp(32px, 4.98046875vw, 51px);
  width: 100%;
}

.p-footer__title-en {
  font-family: "Libertinus Serif", serif;
  font-size: clamp(14px, 1.953125vw, 15px);
  line-height: 1.1333333333;
  font-weight: 700;
}

.p-footer__title-ja {
  margin-top: 12px;
  font-size: clamp(16px, 2.34375vw, 18px);
  line-height: 1.4444444444;
  font-weight: 500;
}

.p-footer__btn {
  margin-top: 41px;
  padding-block: 18px;
  color: #ffffff;
  background: #E64849;
  border: 1px solid #E64849;
  width: 100%;
  max-width: 436px;
  margin-inline: auto;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.p-footer__btn .text {
  width: -webkit-fit-content;
  width: -moz-fit-content;
  width: fit-content;
  margin-inline: auto;
  padding-right: 23px;
  position: relative;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
.p-footer__btn .text::after {
  content: "";
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  right: 0;
  width: 8px;
  height: 5px;
  background: url(../images/icon-arrow-right.svg) no-repeat center center/contain;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}
@media (any-hover: hover) {
  .p-footer__btn:hover {
    color: #E64849;
    background: #ffffff;
    opacity: 1;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
  }
  .p-footer__btn:hover .text::after {
    background: url(../images/icon-arrow-right-red.svg) no-repeat center center/contain;
  }
}
.p-footer__top-desc {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.4166666667;
  text-align: center;
}

.p-footer__bottom {
  margin-top: clamp(-152px, -11.1273792094vw, -140px);
  padding-top: clamp(192px, 19.9853587116vw, 273px);
  color: #ffffff;
  background: url(../images/filter-bg.png) no-repeat top center/cover;
  position: relative;
}
.p-footer__bottom::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url(../images/footer-filter.png) no-repeat top center/cover;
  z-index: 1;
  pointer-events: none;
}

.p-footer__menu-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  max-width: 852px;
  margin-inline: auto;
  gap: 25px;
}

.p-footer__menu-left {
  width: 100%;
}
@media screen and (min-width:768px) {
  .p-footer__menu-left {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    -webkit-box-flex: 0.4;
        -ms-flex: 0.4;
            flex: 0.4;
  }
}

.p-footer__menu-link {
  padding-bottom: 10px;
  font-size: clamp(13px, 1.1666666667vw, 14px);
  line-height: 1.4285714286;
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  width: 100%;
  height: -webkit-fit-content;
  height: -moz-fit-content;
  height: fit-content;
  max-width: 150px;
}

.service__wrap {
  margin-top: 30px;
}
@media screen and (min-width:768px) {
  .service__wrap {
    margin-top: 0;
  }
}

.service__wrap .p-footer__menu-link.c-link {
  margin-top: 10px;
  padding-bottom: 0;
  font-size: clamp(12px, 1.0833333333vw, 13px);
  line-height: 1.4615384615;
  font-weight: 500;
  opacity: 0.6;
  border-bottom: none;
}
.service__wrap .p-footer__menu-link.c-link:first-of-type {
  margin-top: 20px;
}


.p-footer__menu-right {
  width: 100%;
}
@media screen and (min-width:768px) {
  .p-footer__menu-right {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto); /* 追加：縦に最大2行までとする */
    grid-auto-flow: column;
    -webkit-column-gap: 25px;
       -moz-column-gap: 25px;
            column-gap: 25px;
    -webkit-box-flex: 0.6;
        -ms-flex: 0.6;
            flex: 0.6;
  }
  .p-footer__menu-right:nth-of-type(2n) .p-footer__menu-link {
    margin-top: 0;
  }
}

.p-footer__menu-right .p-footer__menu-link {
  margin-top: 30px;
}
.p-footer__menu-right .p-footer__menu-link:first-of-type {
  margin-top: 0;
}

.p-footer__info {
  margin-top: clamp(80px, 12.109375vw, 124px);
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.p-footer__info-wrap {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  gap: 40px;
}

@media screen and (min-width:768px) {
  .p-footer__info-texts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: end;
        -ms-flex-align: end;
            align-items: end;
    gap: 30px;
  }
}

.p-footer__logo {
  width: 112px;
  height: 58px;
}

.p-footer__info-text {
  padding-bottom: 10px;
  font-size: 13px;
  line-height: 1.4615384615;
  font-weight: 500;
}
.p-footer__info-text:first-of-type {
  margin-top: 24px;
}
@media screen and (min-width:768px) {
  .p-footer__info-text:first-of-type {
    margin-top: 0;
    margin-left: 17px;
  }
}

.p-footer__insta-icon {
  margin-bottom: 10px;
  width: 32px;
  height: 32px;
}

.p-copyright-wrap {
  padding-left: 20px;
  padding-top: 50px;
  padding-bottom: clamp(80px, 12.5vw, 150px);
}
@media screen and (min-width:768px) {
  .p-copyright-wrap {
    padding-left: clamp(40px, 7.3206442167vw, 100px);
  }
}
@media screen and (min-width:1367px) {
  .p-copyright-wrap {
    padding-left: calc((100vw - 1166px) / 2);
  }
}

.p-copyright-text {
  font-size: 12px;
  line-height: 1.4166666667;
  font-weight: 500;
}