.c_footer_service {
  background-color: #f5f4f3;
  padding: 9rem 0;
  position: relative;
}

@media screen and (max-width: 767px) {
  .c_footer_service {
    padding: 4rem 0;
  }
}

.c_footer_service::before,
.c_footer_service::after {
  content: "";
  width: 35%;
  max-width: 50rem;
  height: 30.5rem;
  position: absolute;
  top: 0;
}

@media screen and (max-width: 767px) {
  .c_footer_service::before,
  .c_footer_service::after {
    display: none;
  }
}

.c_footer_service::before {
  background: url(../img/service_ashirai_left.png) no-repeat;
  background-size: contain;
  left: 0;
}

.c_footer_service::after {
  background: url(../img/service_ashirai_right.png) no-repeat;
  background-size: contain;
  right: 0;
}

.c_footer_service__head {
  width: 32rem;
  margin: 0 auto;
}

@media screen and (max-width: 767px) {
  .c_footer_service__head {
    width: 25rem;
  }
}

.c_footer_service__content {
  margin-top: 16rem;
}

@media screen and (max-width: 767px) {
  .c_footer_service__content {
    margin-top: 4rem;
  }
}

.c_footer_service__title {
  margin-bottom: 3.5rem;
}

/* service list */
.c_footer_service__list {
  display: grid;
  align-items: center;
  grid-template-columns: repeat(3, 1fr);
  gap: 4.3rem 5rem;
}

@media screen and (max-width: 767px) {
  .c_footer_service__list {
    grid-template-columns: repeat(1, 1fr);
  }
}

.c_footer_service__list_item {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: 0.2s;
}

.c_footer_service__list_item:hover {
  cursor: pointer;
  opacity: 0.8;
}

.c_footer_service__list_item:nth-of-type(2) {
  margin-bottom: 2rem;
}

.c_footer_service__list_item:nth-of-type(5) {
  margin-bottom: 4.3rem;
}

.c_footer_service__list_item:nth-of-type(2),
.c_footer_service__list_item:nth-of-type(5) {
  flex-direction: column-reverse;
}

@media screen and (max-width: 767px) {
  .c_footer_service__list_item:nth-of-type(2),
  .c_footer_service__list_item:nth-of-type(5) {
    flex-direction: column;
    margin-bottom: 0;
  }
}

.c_footer_service__list_text {
  width: 100%;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 2.6rem;
  border-top: solid 1px #d6d6d6;
  text-align: center;
  padding-top: 1.5rem;
  margin-top: 2rem;
}

.c_footer_service__list_item:nth-of-type(2) .c_footer_service__list_text,
.c_footer_service__list_item:nth-of-type(5) .c_footer_service__list_text {
  border-top: none;
  border-bottom: solid 1px #d6d6d6;
  padding-top: 0;
  margin-top: 0;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

@media screen and (max-width: 767px) {
  .c_footer_service__list_item:nth-of-type(2) .c_footer_service__list_text,
  .c_footer_service__list_item:nth-of-type(5) .c_footer_service__list_text {
    border-bottom: none;
    border-top: solid 1px #d6d6d6;
    padding-bottom: 0;
    margin-bottom: 0;
    padding-top: 1.5rem;
    margin-top: 2rem;
  }
}

.c_footer_service__list_text_label {
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  display: block;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* モーダル本体 */
.modal__wrapper {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 30;
  width: 100%;
  height: 100%;
}

.modal__layer {
  height: 100%;
  background: rgba(50, 50, 50, 0.85);
  cursor: pointer;
}

.modal__container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(calc(100% - 40px), 1000px);
  height: calc(100% - 20rem);
  padding: 9rem 7rem;
  background: #fff;
  overflow-x: hidden;
  overflow-y: scroll;
}

@media screen and (max-width: 767px) {
  .modal__container {
    height: calc(100% - 20rem);
    padding: 4rem 2rem;
  }
}

.modal__inner {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 767px) {
  .modal__inner {
    align-items: flex-start;
  }
}

/* モーダルを閉じるボタン */
.modal__close {
  position: absolute;
  top: -6rem;
  right: -4rem;
  width: 4rem;
  height: 4rem;
  background: #fff;
  border: solid 1px #000;
  border-radius: 3rem;
  cursor: pointer;
  transition: 0.2s;
}

@media screen and (max-width: 767px) {
  .modal__close {
    top: -5%;
    right: -1.5rem;
    width: 2rem;
    height: 2rem;
  }
}

.modal__close:hover {
  opacity: 0.6;
}

.modal__close:before,
.modal__close:after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 1px;
  background: #000;
  content: "";
}

@media screen and (max-width: 767px) {
  .modal__close:before,
  .modal__close:after {
    width: 10px;
  }
}

.modal__close:before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.modal__close:after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* モーダル内のコンテンツ */
.modal__content_inner {
  display: flex;
  align-items: flex-start;
}

@media screen and (max-width: 767px) {
  .modal__content_inner {
    flex-direction: column;
    padding-bottom: 3rem;
  }
}

.modal__content_image {
  width: calc(50% - 11rem);
  height: 42rem;
  margin-right: 5rem;
}

@media screen and (max-width: 767px) {
  .modal__content_image {
    width: 100%;
    height: auto;
    max-height: 26.5rem;
  }
}

.modal__content_image img {
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 767px) {
  .modal__content_image img {
    height: auto;
  }
}

.modal__content_textarea {
  width: calc(50% + 11rem);
}

@media screen and (max-width: 767px) {
  .modal__content_textarea {
    width: 100%;
  }
}

.modal__title {
  font-size: 2.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  position: relative;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

@media screen and (max-width: 767px) {
  .modal__title {
    font-size: 2rem;
    margin-top: 2rem;
  }
}

.modal__title::after {
  content: "";
  width: 2.2rem;
  height: 1px;
  background-color: #172e3a;
  position: absolute;
  left: 0;
  bottom: 0;
}

.modal__title_label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #adadad;
}

.modal__text {
  font-size: 1.4rem;
  letter-spacing: 0.06em;
  line-height: 3rem;
}

.c_footer_links__inner {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin: 6rem 0;
}

@media screen and (max-width: 767px) {
  .c_footer_links__inner {
    flex-direction: column;
  }
}

.c_footer_links__item {
  width: 50%;
  position: relative;
}

@media screen and (max-width: 767px) {
  .c_footer_links__item {
    width: 100%;
  }
}

.c_footer_links__item:nth-of-type(2) {
  transform: translateY(3rem);
}

.c_footer_links__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 0;
  transform: scale(1.23);
}

.c_footer_links__item:nth-of-type(1)::before {
  background: url(../img/c_footer_links_company.jpg) no-repeat;
  background-size: cover;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10vw) 100%, 0% 100%);
}

.c_footer_links__item:nth-of-type(2)::before {
  background: url(../img/c_footer_links_contact.jpg) no-repeat;
  background-size: cover;
  clip-path: polygon(calc(0% + 10vw) 0, 100% 0, 100% 100%, 0% 100%);
}

@media screen and (max-width: 767px) {
  .c_footer_links__item:nth-of-type(1)::before,
  .c_footer_links__item:nth-of-type(2)::before {
    clip-path: unset;
  }
}

.c_footer_links__content_inner {
  padding: 11.2% 0;
  display: block;
}

@media screen and (max-width: 767px) {
  .c_footer_links__content_inner {
    padding: 8%;
  }
}

.c_footer_links__content {
  width: fit-content;
  display: flex;
  align-items: center;
  border-bottom: solid 1px #fff;
  padding-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.c_footer_links__content_company {
  padding-left: 4rem;
}

@media screen and (max-width: 767px) {
  .c_footer_links__content_company {
    padding-left: 0;
  }
}

.c_footer_links__content_contact {
  padding-right: 4rem;
  margin-left: auto;
}

@media screen and (max-width: 767px) {
  .c_footer_links__content_contact {
    padding-right: 0;
    margin-left: unset;
  }
}

.c_footer_links__content_title {
  color: #fff;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin-right: 3rem;
}

@media screen and (max-width: 767px) {
  .c_footer_links__content_title {
    font-size: 2rem;
  }
}

.c_footer_links__content_title_label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
}

@media screen and (max-width: 767px) {
  .c_footer_links__content_title_label {
    font-size: 1.2rem;
  }
}

.c_footer_links__content_arrow {
  width: 5rem;
}

@media screen and (max-width: 767px) {
  .c_footer_links__content_arrow {
    width: 3rem;
  }
}
