@charset "UTF-8";

.title-wrap {
  background-image: url(../img/projects/main.jpg);
  background-position: center;
  background-size: cover;
}

/* projects */
.projects {
  width: 80%;
  margin: 80px auto 0 auto;
}
.projects-ul {
  width: 100%;
  border-top: 1px solid #e2e1dd;
  border-left: 1px solid #e2e1dd;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
.projects-ul li {
  border-right: 1px solid #e2e1dd;
  border-bottom: 1px solid #e2e1dd;
  padding: 30px;
  display: flex;
  justify-content: space-between;
}
.projects-thumb {
  width: 40%;
}
.projects-txt-wrap {
  width: 50%;
  display: flex;
  flex-direction: column;
}
.projects-title {
  font-size: clamp(20px, 1.4vw, 20px);
  font-weight: 500;
  line-height: 1.4;
}
.projects-category {
  font-size: clamp(13px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.4;
  color: #6f767d;
  padding: 10px 0 0 2px;
}
.projects-link {
  margin-top: auto;
  padding-top: 40px;
  margin-left: 0;
  display: block;
}
.btn {
  font-size: clamp(13px, 1.1vw, 15px);
}
.btn a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 0 5px 0;
  overflow: hidden;
  text-decoration: none;
}
.btn .btn-txt {
  font-weight: 500;
  display: inline-block;
  transition: transform 0.35s ease;
}
.btn .arrow-wrap {
  position: relative;
  width: 12px;
  height: 12px;
  display: inline-block;
  overflow: hidden;
  flex-shrink: 0;
}
.btn .arrow {
  width: 12px;
  position: absolute;
  top: 50%;
  left: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
  pointer-events: none;
}
.btn .arrow-out {
  opacity: 1;
  transform: translate(0, -50%);
}
.btn .arrow-in {
  opacity: 0;
  transform: translate(-14px, -50%);
}
.btn a:hover .arrow-out {
  opacity: 0;
  transform: translate(14px, -50%);
}
.btn a:hover .arrow-in {
  opacity: 1;
  transform: translate(0, -50%);
}
.btn-w a {
  color: #24292d;
  border-bottom: 1px solid #24292d;
}
.btn-w a:hover {
  color: #d2464b;
  border-bottom: 1px solid #d2464b;
}
.img-link {
  display: block;
  overflow: hidden;
}
.img-link img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.5s ease;
}
.img-link:hover img {
  transform: scale(1.05);
}

@media screen and (max-width: 1560px) {
  .projects-ul {
    border-top: 1px solid #e2e1dd;
    border-left: 1px solid #e2e1dd;
    grid-template-columns: repeat(1, 1fr);
  }
  .projects-ul li {
    border-right: 1px solid #e2e1dd;
    border-bottom: 1px solid #e2e1dd;
    padding: 30px;
  }
  .projects-title {
    font-size: clamp(20px, 1.9vw, 26px);
  }
  .projects-category {
    padding: 10px 0 0 1px;
  }
}

@media screen and (max-width: 1140px) {
  /* projects */
  .projects {
    width: 90%;
  }
}

@media screen and (max-width: 767px) {
  .projects {
    margin: 60px auto 0 auto;
  }
  .projects-ul {
    border-top: none;
    border-left: none;
    gap: 30px;
  }
  .projects-ul li {
    border-right: none;
    border-bottom: none;
    padding: 0;
    flex-direction: column-reverse;
  }
  .projects-thumb {
    width: 100%;
  }
  .projects-txt-wrap {
    width: 100%;
    display: block;
  }
  .projects-link {
    padding-top: 20px;
    text-align: right;
  }
  .projects-title {
    font-size: clamp(15px, 1.9vw, 26px);
    margin-top: 10px;
  }
  .projects-category {
    padding: 5px 0 0 0;
  }
}