@charset "utf-8";

.work-container {
  width: 100%;
  padding: 50px 0px 80px;
}

.page-title {
  font-size: 40px;
  color: #9B89E3;
  text-align: center;
  letter-spacing: 4px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  position: relative;
}

.page-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: #9b89e3;
  border-radius: 2px;
}

.page-subtitle {
  text-align: center;
  color: #696969;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 40px;
}

.work-grid {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  padding: 10px 40px 30px;
  justify-content: center;
}

.work-card {
  flex-shrink: 0;
  width: 280px;
  background-color: #f8f6fc;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgb(155,137,227,0.15);
  transition: transform 0.3s;
}

.work-card:hover {
  transform: translateY(-5px);
}

.work-thumb {
  width: 100%;
  height: 280px;
  background-color: #e6e0f8;
}

.work-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  mix-blend-mode: multiply;
}

.work-body {
  padding: 20px;
}

.work-category {
  display: inline-block;
  background-color: #9B89E3;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 10px;
}

.work-title {
  font-size: 17px;
  color: #333333;
  letter-spacing: 1px;
  margin-bottom: 10px;
  line-height: 24px;
}

.work-desc {
  font-size: 13px;
  color: #5a5466;
  letter-spacing: 0.5px;
  line-height: 24px;
  text-align: justify;
}

.link-button-area {
  text-align: center;
  margin-top: 40px;
}

.link-button {
  background-color: #9B7FB6;
  display: inline-block;
  min-width: 180px;
  line-height: 48px;
  border-radius: 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: bold;
  color: #ffffff;
}

.link-button:hover {
  background-color: #A997C6;
}

@media (max-width: 768px) {
  .work-container {
    padding-top: 40px;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 60px;
  }

  .work-grid {
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding-top: 10px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    overflow-x: visible;
  }

  .work-card {
    width: 100%;
    max-width: 360px;
  }

  .work-thumb {
    width: 100%;
    height: auto;
    aspect-ratio: auto;
  }

  .work-thumb img {
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
  }
}