.transactions {
  padding: 40px 20px;
  background-color: #f8f8f8;
}

.transactions h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
  color: #000;
}
.transaction-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: #000; /* 明示的に黒に指定 */
}

.transaction-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.transaction-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  width: 300px;
  transition: transform 0.3s ease;
}

.transaction-card:hover {
  transform: translateY(-5px);
}

.image-wrapper {
  position: relative;
}

.image-wrapper img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.status {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 6px 12px;
  font-size: 0.85rem;
  border-radius: 4px;
  color: #fff;
  font-weight: bold;
}

.status.sold {
  background-color: rgba(217, 83, 79, 0.9); /* 赤系：成約済 */
}

.status.available {
  background-color: rgba(92, 184, 92, 0.9); /* 緑系：販売中 */
}

.transaction-info {
  padding: 15px;
}

.transaction-info h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.transaction-info p {
  font-size: 0.9rem;
  color: #555;
  margin: 4px 0;
}

@media screen and (max-width: 480px) {
  .transactions {
    padding: 20px 20px;
  }

  .transactions h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 30px;
  }
  .transaction-info h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .transaction-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
  }

  .transaction-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    width: 300px;
    transition: transform 0.3s ease;
  }

  .transaction-card:hover {
    transform: translateY(-5px);
  }

  .image-wrapper {
    position: relative;
  }

  .image-wrapper img {
    width: 100%;
    height: 150px;
    object-fit: cover;
  }

  .status {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 6px 10px;
    font-size: 10px;
    border-radius: 4px;
    color: #fff;
    font-weight: bold;
  }

  .status.sold {
    background-color: rgba(217, 83, 79, 0.9); /* 赤系：成約済 */
  }

  .status.available {
    background-color: rgba(92, 184, 92, 0.9); /* 緑系：販売中 */
  }

  .transaction-info {
    padding: 10px 15px;
    padding-top: 0;
  }

  .transaction-info h3 {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .transaction-info p {
    font-size: 12px;
    margin: 4px 0;
  }
}

@media screen and (min-width: 480px) and (max-width: 767px) {
}

@media screen and (min-width: 768px) and (max-width: 1024px) {
}

@media screen and (min-width: 1025px) and (max-width: 1280px) {
}
