@charset "utf-8";

/* .works-container p {
  width: 360px;
} */

.works-mgb {
  margin-bottom: 50px;
}
.works-container {
  margin-bottom: 200px;
  /* display: grid;
  grid-template: repeat(3, 500px) / repeat(3, 430px); */
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}
.works-item {
  width: calc((100% - 30px) / 2);
  max-width: 700px;
}

/* ホバー時に拡大 */
.works-img {
  display: block;
  overflow: hidden;
  height: 100%;
  max-height: 300px;
}

.works-img__zoom {
  transition: transform 0.6s ease;
}

.works-img:hover .works-img__zoom {
  transform: scale(1.1);
}

.works-img img {
  /* width: 360px; */
  width: 100%;
  height: auto;
  display: block;
}

/* モーダル中身 */
.remodal {
  text-align: left;
  padding: 45px 35px;
  max-height: 90vh;
  overflow: hidden; /* モーダルごとのスクロールを止める */
}
.remodal__wrap {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-direction: row-reverse;
  height: 100%;
  max-height: 78vh;
  overflow-y: auto;
  padding: 0 20px;
}
.remodal__text {
  width: 43%;
}
.works__body {
  width: fit-content;
  padding: 10px;
  margin-bottom: 10px;
  background-color: #ccc;
  border: 1px solid #000;
}
.works__body.mgb--none {
  margin-bottom: 0;
}
.works__body p {
  font-size: 16px;
}
.works__detail:not(:last-child) {
  margin-bottom: 20px;
}
.works__list {
  padding-top: 30px;
}
.works__list dt,
.works__list dd {
  font-size: 16px;
}
.works__list dt {
  font-weight: bold;
  padding-bottom: 3px;
  margin-bottom: 4px;
  border-bottom: 1px solid #ccc;
}
.remodal__img {
  width: 57%;
  max-height: 78vh;
  overflow-y: auto;
  border: 1px solid #ccc;
}
.remodal__img img {
  width: 100%;
  height: auto;
  display: block;
}
.remodal__img img:not(:last-child) {
  margin-bottom: 20px;
}

.remodal__btn {
  width: 100%;
  max-width: 250px;
  padding-top: 50px;
  margin: 0 auto;
}
.remodal__btn a {
  color: #fff;
  font-size: 16px;
  text-align: center;
  display: block;
  width: 100%;
  padding: 10px;
  border-radius: 50px;
  background-color: #ccc;
  border: 1px solid #ccc;
  transition: background-color 0.3s;
}
.remodal__btn a:hover {
  color: #ccc;
  background-color: #fff;
}

.remodal-close {
  color: #000;
  position: absolute;
  top: 7px;
  left: auto;
  right: 7px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
}

/* デフォルトの✕を消す（remodal.css側の指定を打ち消す） */
.remodal-close::before {
  content: none;
}

/* 自作の細いバツ */
.remodal-close::before,
.remodal-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 28px;
  height: 1px; /* ここが線の太さ。細くしたいなら1px */
  background-color: #333;
}

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

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

@media only screen and (min-width: 641px) {
  .remodal {
    max-width: 1280px;
  }
}

@media screen and (max-width: 1024px) {
  .remodal {
    padding: 35px 10px;
  }
  .remodal__wrap {
    display: block;
  }
  .remodal__img {
    width: 100%;
    height: 520px;
    max-height: 100%;
    margin-bottom: 50px;
  }
  .remodal__text {
    width: 100%;
  }
  .remodal__btn {
    max-width: 220px;
    padding-top: 40px;
  }
  .remodal__btn a {
    font-size: 14px;
    padding: 7px 10px;
  }

  .works__body {
    padding: 4px 10px;
  }
  .works__body p,
  .works__list dt,
  .works__list dd {
    font-size: 14px;
  }
}
