@charset "utf-8";

.content {
  padding: 8rem 0 12rem;
}

.product_wrap {
  margin-bottom: 12rem;
}

.product_wrap:last-child {
  margin-bottom: 0;
}

.product_title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4rem;
  padding-bottom: 2.4rem;
  border-bottom: 2px solid var(--primary-color);
}

.product_title h2 {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.2;
}

.product_title a {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem 2.4rem;
  background: var(--primary-color);
  color: var(--white-color);
  font-size: 1.6rem;
  font-weight: 500;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
}

.product_title a:hover {
  background: var(--tertiary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 51, 67, 0.2);
}

.product_list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28rem, 1fr));
  gap: 3.2rem;
}

.product_item {
  display: flex;
  flex-direction: column;
  background: var(--white-color);
  border: 1px solid var(--line-color);
  border-radius: 1.6rem;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product_item:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: var(--primary-color);
}

.product_item_image {
  position: relative;
  width: 100%;
  padding-top: 75%;
  overflow: hidden;
  background: var(--background-color);
}

.product_item_image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product_item:hover .product_item_image img {
  transform: scale(1.05);
}

.product_item_info {
  padding: 2.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product_item_info h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--body-color);
  margin-bottom: 1.2rem;
  line-height: 1.4;
}

.product_item_info p {
  font-size: 1.7rem;
  color: var(--body-color);
  line-height: 1.8;
  margin-bottom: 2rem;
  flex: 1;
  letter-spacing: -0.02em;
  word-break: keep-all;
  opacity: 0.85;
}

.product_link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem 2.4rem;
  background: var(--background-color);
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
  border: 1px solid var(--line-color);
  margin-top: auto;
}

.product_link:hover {
  background: var(--primary-color);
  color: var(--white-color);
  border-color: var(--primary-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(42, 51, 67, 0.2);
}

@media (max-width: 768px) {
  .content {
    padding: 6rem 0 8rem;
  }

  .product_wrap {
    margin-bottom: 8rem;
  }

  .product_title {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 3.2rem;
    padding-bottom: 2rem;
  }

  .product_title h2 {
    font-size: 2.4rem;
  }

  .product_title a {
    width: 100%;
    justify-content: center;
    padding: 1.4rem 2.4rem;
    font-size: 1.5rem;
  }

  .product_list {
    grid-template-columns: repeat(auto-fill, minmax(calc(50% - 1.6rem), 1fr));
    gap: 2.4rem;
  }

  .product_item_info {
    padding: 2rem;
  }

  .product_item_info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
  }

  .product_item_info p {
    font-size: 1.6rem;
    line-height: 1.75;
    margin-bottom: 1.6rem;
  }

  .product_link {
    padding: 1.4rem 2rem;
    font-size: 1.4rem;
  }
}

@media (max-width: 480px) {
  .product_list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .product_title h2 {
    font-size: 2rem;
  }

  .product_item_info h3 {
    font-size: 1.7rem;
  }
}
