/* service css */
.title_box {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
}
.contents {
  width: 100%;
  padding: 5% 8%;
}
.modal_list,
.img_list {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 5%;
}
.modal_item {
  position: relative;
  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;
  height: 2px;
  background-color: #084194;
  animation: slideBorder 300ms forwards;
}
.image_container {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.modal_item:hover .image {
  animation: zoomItem 300ms forwards;
  opacity: 0.6;
}
.image_container .image_bg {
  background-color: #000;
}
.modal_item:hover .image_container::before {
  content: "";
  display: block;
  position: absolute;
  top: 9.5vw;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: url("../../../images/hover_icon.png") no-repeat;
  background-size: 100%;
  z-index: 1;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  z-index: 1;
  background: rgba(255, 255, 255, 0.6);
}
.modal-content {
  height: 90%;
  width: 90%;
  position: absolute;
  left: 45%;
  top: 50%;
  transform: translate(-50%, -50%);
  margin: 0 auto;
  overflow: scroll;
}
.modal-content {
  position: relative;
}
.modal-content button {
  position: fixed;
  right: 0;
  border: none;
  background: none;
	outline: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: 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_item:hover .image {
    animation: none;
    opacity: 1;
  }
  .modal_item:hover .image_container::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;
  }
  .modal-content button {
    right: 0;
  }
}

@keyframes slideBorder {
  0% {
    width: 0;
  }

  100% {
    width: 100%;
  }
}

@keyframes zoomItem {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.1);
  }
}