@charset "UTF-8";
.wrapper--project .header__wrapper {
  padding-bottom: 230px;
}
.project__image {
  margin-bottom: 35px;
  overflow: hidden;
  position: relative;
}
.project__image:last-of-type {
  margin-bottom: 0px;
}
.project__image img{
  display: block;
  transition: transform 7s cubic-bezier(0,.6,.45,1),
  -webkit-transform 7s cubic-bezier(0,.6,.45,1);
}
@media (hover: hover) and (pointer: fine) {
  .project__image:hover img {
    transform: scale(1.15);
  }
}
.project__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0);
  transition: .3s;
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .project__image:hover::after {
    background-color: rgba(255, 255, 255, 0.5);
  }
}
.project__image .project__image-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #131313;
  width: 100%;
  text-align: center;
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}


@media (hover: hover) and (pointer: fine) {
  .project__image:hover .project__image-title {
    opacity: 1;
  }
}
@media screen and (max-width: 767px) {
  .wrapper--project .header__wrapper {
      padding-bottom: 90px;
    }
  .project__image {
    margin-bottom: 17px;
  }
}


/* モーダル用CSS */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal.active {
  display: flex;
}
.modal__content {
  position: relative;
  max-width: 80%;
  max-height: 80vh;
  background: transparent;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.modal__content::-webkit-scrollbar {
  display: none;
}
.modal__content img {
  max-width: 100%;
  height: auto;
  margin-bottom: 15px;
}
.modal__content img:nth-of-type(2) {
  margin-top: -15px;
}
.modal__close {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.modal__close::before,
.modal__close::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 1px;
  background-color: #000;
  transform-origin: center;
  transition: 0.3s;
}
.modal__close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.modal__close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.modal__overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.modal__project-title {
  font-size: 1.8rem;
  text-align: start;
}

@media screen and (max-width: 767px) {
  .modal__project-title {
    font-size: 1.6rem;
    text-align: start;
  }
  .modal__content {
    max-width: 100%;
  }
}

