/* アイテム一覧ページ専用スタイル */

.item-list {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
}

.item-list .card {
  flex: 0 0 auto;
  width: 160px;
  scroll-snap-align: start;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  text-align: center;
  padding: 0.5rem;
  transition: transform 0.2s;
}

.item-list .card:hover {
  transform: scale(1.03);
}

.item-list .card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.item-list .card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #333;
}

#itemTitle {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #d63384;
}
/* items.css または components.css */

#itemList {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.card {
  width: 200px;
  background: white;
  text-align: center;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.card a {
  display: block;
  padding: 8px;
  color: #d63384;
  text-decoration: none;
  font-weight: 500;
}

.card a:hover {
  text-decoration: underline;
}