/* === ベース / 全体 === */
html {
  line-height: 1.2em; /* was inline */
}
body {
  text-align: center; /* keep existing centered layout */
}

/* === 画像の余白 === */
.top-img { margin-top: 1.5em; } /* was inline */

/* === 既存のスタイル（ユーザー提供）をベースに調整） === */
body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #f4f4f9;
  color: #333;
  margin: 0;
  padding: 1em;
}

h2 {
  text-align: center;
  font-size: 2.5em;
  font-weight: 700;
  margin: 1.5em 0;
  color: #2c3e50;
}

/* === 商品リスト（グリッド） === */
.image-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2em;
  max-width: 1200px;
  margin: 0 auto;
}

/* === 商品カード === */
.item {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.item:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* === 商品画像 === */
.item img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* === 商品情報 === */
.info {
  padding: 1.2em;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  flex-grow: 1;
}

/* 商品名 */
.name {
  font-size: 1.1em;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

/* === ボタン === */
.buttons {
  display: flex;
  justify-content: center;
  gap: 0.8em;
  flex-wrap: wrap;
  margin-top: auto; /* stick buttons to bottom */
}

.btn {
  display: inline-block;
  padding: 0.6em 1.2em;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:focus { outline: none; }

/* primary: 詳細を見る */
.btn-primary {
  background: linear-gradient(45deg, #0078ff, #0056b3);
  color: #fff;
  font-weight: 800;
  text-transform: uppercase;
  border: 2px solid #004a9f;
}
.btn-primary:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(33, 147, 176, 0.35);
}

/* outline: Yagoo!店はこちら */
.btn-outline {
  background: #fff;
  color: #d32f2f;
  border-color: #d32f2f;
  font-weight: 700;
}
.btn-outline:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 15px rgba(211, 47, 47, 0.25);
  background: rgba(211,47,47,0.08);
  color: #b71c1c;
  border-color: #b71c1c;
}

/* 小さめ画面での余白微調整 */
@media (max-width: 400px) {
  .btn { width: 100%; text-align: center; }
}