@charset "UTF-8";

body {
      /* 日本語 → M PLUS Rounded 1c、英語 → Baloo 2 */
      font-family: "M PLUS Rounded 1c", "Baloo 2", sans-serif;
    background: #242424;
    color: #2b2b2b;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* 見出しなど英語テキストは明示的に Baloo 2 */
h1, h2, button, .price {
  font-family: "Baloo 2", sans-serif;
}

h1 {
    text-align: center;
    color: #fff;
    padding: 10px 0;
font-size: 2.5em;
letter-spacing: 5px;
text-shadow: 0 0 8px #ff77c0, 0 0 15px #ff1493;
}

.buttons {
  text-align: center;
  margin: 30px 0 20px;
  margin-bottom: 20px;
}

/* ボタン全体にフォント適用を強制 */
.buttons button {
  font-family: "Baloo 2", "M PLUS Rounded 1c", sans-serif !important;
  font-weight: 900;
  text-align: center;
  letter-spacing: 1px;
  background: #ff77c0;
  border: none;
  padding: 10px 20px;
  margin: 7px;
  border-radius: 30px;
  cursor: pointer;
  color: #333;
  transition: 0.3s;
}

button {
  background: #ff9fd0;
  color: #000;
  margin: 0 5px;
  cursor: pointer;
  border: none;
  border-radius: 40px;
  padding: 8px 16px;
  font-weight: 200;
  position: relative;
  text-shadow: 0 0 8px #ff77c0;
  box-shadow: 0 0 10px hsl(299, 100%, 81%);
}

button:hover {
  color: #fff;
  background: #ff5faa;
  text-shadow: 0 0 8px #ff77c0, 0 0 15px #ff1493;
  box-shadow: 0 0 8px #ff77c0, 0 0 20px #ff1493;
}

button.active {
background: #fff;
color: #ff1493;
box-shadow: 0 0 10px #ffb8e0;
}

/* 商品リストエリア */
#product-container {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
padding: 25px;
}

/* 商品カード */
.card {
    position: relative; /* ← バッジの位置指定に必要 */
    width: 230px;
    background: #fae0f1;
    border-radius: 20px;
    text-align: center;
    padding: 18px;
    box-shadow: 4px 4px 0 #5a5a5ac9;
    transition: all 0.25s ease-in-out;
}

.card h2 {
  /* ここ↓でフォント変わったよ！！！ */
  font-family: "M PLUS Rounded 1c", "Baloo 2", sans-serif;
  font-size: 1.1em;
  margin: 8px 0 3px; /* ← 上下の余白を少し詰める */
  line-height: 1.2; /* ← 行間を少し狭く */
  color: #000;
  font-weight: 600;
  text-shadow: 0 1px 1px #ffc0e0;
  position: relative;
}

/* NEW!バッジ */
.new {
  position: absolute;
  top: -20px;
  right: 5px;
  background: #ff1493;
  color: #fff;
  font-size: 0.8em;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 0 10px #ff8fd0;
  text-shadow: 0 0 4px #ff5bb5;
  font-family: "Baloo 2", "M PLUS Rounded 1c", sans-serif;
}

/* 商品画像 */
.card img {
max-width: 100%;
height: 150px;
object-fit: contain;
border-radius: 10px;
background: #fff0f8;
padding: 5px;
}

/* 商品名 */
.card h2 {
font-size: 1.1em;
  margin: 8px 0 3px; /* ← 上下の余白を少し詰める */
  line-height: 1.2; /* ← 行間を少し狭く */
color: #000;
font-weight: 600;
text-shadow: 0 1px 1px #ffc0e0;
  position: relative;
  z-index: 1;
}

/* 価格 */
.price {
  margin: 10px 0; /* ← 上下の隙間をほぼなくす */
  line-height: 1.2;
  font-weight: bold;
  color: #ff1493;
  font-size: 1.1em;
}

/* 在庫テキスト */
.stock {
  font-size: 0.85em;
  color: #666;
  margin-top:2px; /* ← 上の余白を最小限に */
  line-height: 1.1;
}

.stock::before {
content: "❤︎ ";
color: #ff77c0;
}

/* フッター */
footer {
text-align: center;
padding: 15px 0;
background: #000;
color: #ffb6c1;
font-size: 0.9em;
border-top: 1px solid #ff77c0;
letter-spacing: 1px;
}
