/* service css */
.title_box {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.contents {
  width: 100%;
  padding: 5% 8%;
  overflow: hidden;
}
.modal_list,
.img_list {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 5%;
  overflow: hidden;
}
.modal_item {
  width: 47%;
  cursor: pointer;
}
.img_item {
  width: 47%;
}
.modal_item:nth-of-type(n+3),
.img_item:nth-of-type(n+3) {
  margin-top: 5%;
}
.modal_item_text,
.img_item_text {
  margin-top: 3%;
}
.modal_item_text p,
.img_item_text p {
  font-size: 1.2rem;
}
.modal_item_text p.modal_item_title,
.img_item_text p.img_item_title {
  margin-bottom: 7px;
  font-size: 1.6rem;
  font-weight: bold;
}
.modal_item:hover .modal_item_text p.modal_item_title {
  position: relative;
  display: inline-block;
}
.modal_item:hover .modal_item_text p.modal_item_title::before {
  content: "";
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #084194;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: 1;
  background: #fff;
}
.modal-content {
  position: absolute;
  top: 0;
  left: 0;
  overflow: scroll;
  height: 100%;
  width: 100%;
  background: #fff;
}
.modal-content {
  position: relative;
}
.modal-content button {
  position: fixed;
  top: 0;
  right: 0;
  background-color: #fff;
  border: none;
}
.modal-close {
  position: relative;
}
.modal-close::before,
.modal-close::after {
  content: "";
  display: block;
  position: absolute;
  right: 30px;
  width: 30px;
  height: 30px;
}
.modal-close::before {
  top: 10px;
  border-right: 2px solid #000;
  transform: rotate(45deg);
}
.modal-close::after {
  top: 30px;
  border-right: 2px solid #000;
  transform: rotate(-45deg);
}
body.fixed {
  position: fixed;
  width: 100%;
  height: 100%;
  left: 0;
}

@media screen and (max-width: 768px) {
  .title_box {
    display: block;
  }
  .contents {
    margin: 0 auto;
  }
  .modal_list,
  .img_list {
    display: block;
    margin: 12% 0;
  }
  .modal_item,
  .img_item {
    width: 85%;
    margin: 5% auto 0;
  }
  .modal_item_text,
  .item_item_text {
    margin-top: 5%;
  }
  .modal_item_text p,
  .item_item_text p {
    font-size: 1.1rem;
  }
  .modal_item_text p.modal_item_title,
  .item_item_text p.item_item_title {
    margin-bottom: 5px;
  }
  .modal_item:hover .modal_item_text p.modal_item_title::before {
    content: none;
  }
  .modal-close::before,
  .modal-close::after {
    right: 20px;
    width: 20px;
    height: 20px;
  }
  .modal-close::before {
    top: 7px;
  }
  .modal-close::after {
    top: 20px;
  }
}

@keyframes sideSlider {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}