@charset "UTF-8";

/* ページ全体のリセットと可愛い背景（強化版） */
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  /* 背景をパステルのグラデ＋ふんわりドットで可愛く */
  background-color: #fff7fb;
  background-image:
    radial-gradient(circle at 8% 12%, rgba(255,214,230,0.12) 0 6%, transparent 8%),
    radial-gradient(circle at 88% 82%, rgba(167,214,255,0.10) 0 7%, transparent 9%),
    radial-gradient(circle at 50% 30%, rgba(199,249,230,0.06) 0 8%, transparent 12%),
    linear-gradient(180deg, rgba(255,246,250,1) 0%, rgba(248,250,255,1) 100%),
    repeating-radial-gradient(circle at 10% 90%, rgba(255,235,245,0.03) 0 4px, transparent 6px);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: 60px;
  position: relative;
  overflow-x: hidden;
}

/* ふんわり動くパステルの blobs（装飾） */
body::before,
body::after {
  content: "";
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(38px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: screen;
}

body::before {
  left: -8%;
  top: -6%;
  background: radial-gradient(circle at 30% 30%, rgba(255,214,230,0.9), rgba(255,214,230,0.25) 40%, transparent 60%);
  animation: floatSlowA 14s ease-in-out infinite;
}

body::after {
  right: -6%;
  bottom: -8%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle at 70% 70%, rgba(167,214,255,0.9), rgba(167,214,255,0.2) 40%, transparent 65%);
  animation: floatSlowB 18s ease-in-out infinite;
}

@keyframes floatSlowA {
  0% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(12px) translateX(10px) scale(1.03); }
  100% { transform: translateY(0) translateX(0) scale(1); }
}
@keyframes floatSlowB {
  0% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-16px) translateX(-8px) scale(1.02); }
  100% { transform: translateY(0) translateX(0) scale(1); }
}

/* 他の要素が前面に来るように調整 */
header, .buttons, #product-container, footer {
  position: relative;
  z-index: 1;
}

/* ヘッダー：端から端まで、既存の色味は維持して余白を作る */
h1 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 28px 0;    /* 下に隙間を追加 */
  padding: 18px 24px;
  font-size: 2rem;
  color: #ffffff;
  background: linear-gradient(135deg, #ffd6e7 0%, #a7d6ff 50%, #c7f9e6 100%);
  border-radius: 0;
  box-shadow: 0 8px 20px rgba(167,214,255,0.28), 0 2px 6px rgba(0,0,0,0.06);
  position: relative;
  border-top: 2px solid rgba(255,255,255,0.6);
  border-bottom: 2px solid rgba(255,255,255,0.6);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-align: center;
}

/* ハート装飾（左・右） */
h1::before,
h1::after {
  content: "♡";
  position: absolute;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.95);
  top: 12px;
}
h1::before { left: 12px; transform: rotate(-20deg); }
h1::after  { right: 12px; transform: rotate(20deg); }

h1 .sub {
  display: block;
  font-size: 0.7rem;
  margin-top: 6px;
  color: rgba(255,255,255,0.95);
}

/* ボタン群の余白とレイアウト */
.buttons {
  text-align: center;
  margin: 8px auto 28px auto;
  max-width: 1100px;
  padding: 0 12px;
}

/* 可愛いボタン（既存の雰囲気を維持して微調整） */
button {
  appearance: none;
  -webkit-appearance: none;
  padding: 10px 18px;
  margin: 6px;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff6fb 0%, #ffd6e7 45%, #a7d6ff 100%);
  color: #3b2b4b;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(167,214,255,0.22), inset 0 -2px 6px rgba(255,255,255,0.6);
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
}

/* ハート疑似要素 */
button::before {
  content: "♡";
  margin-right: 8px;
  color: #ff6b9a;
  font-size: 0.95rem;
  line-height: 1;
}

/* ボタンのインタラクション */
button:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(167,214,255,0.26), inset 0 -2px 6px rgba(255,255,255,0.7);
  filter: saturate(1.06);
}
button:active {
  transform: translateY(-1px);
  box-shadow: 0 6px 12px rgba(167,214,255,0.18), inset 0 2px 6px rgba(0,0,0,0.03);
}
button:focus {
  outline: 3px solid rgba(167,214,255,0.35);
  outline-offset: 4px;
}

/* 商品エリアの中央寄せと余白 */
#product-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 12px;
}

/* カードデザインを可愛く強化 */
.card {
  width: 220px;
  background: linear-gradient(180deg, #ffffff 0%, #fffefc 100%);
  border-radius: 14px;
  text-align: center;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(167,214,255,0.12);
  border: 1px solid rgba(255,255,255,0.6);
  transform-origin: center;
  transition: transform 220ms ease, box-shadow 220ms ease;
  position: relative;
  overflow: visible;
}

/* カードホバー時の浮遊感 */
.card:hover {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 22px 40px rgba(167,214,255,0.18);
}

/* 画像を丸みあるフレームに */
.card img {
  max-width: 100%;
  height: 150px;
  object-fit: contain;
  background: rgba(255,255,255,0.7);
  border-radius: 10px;
  padding: 8px;
  box-shadow: inset 0 -6px 12px rgba(255,255,255,0.6);
}

/* 商品名 */
.card h2 {
  font-size: 1.15em;
  margin: 10px 0 6px 0;
  color: #3b2b4b;
}

/* 価格と在庫ラベルを可愛く */
.price {
  display: inline-block;
  font-weight: 800;
  color: #e91e63;
  background: rgba(255, 235, 241, 0.7);
  padding: 6px 10px;
  border-radius: 999px;
  box-shadow: 0 6px 12px rgba(233,30,99,0.06);
  margin-bottom: 8px;
}

/* 在庫ラベル */
.stock {
  display: inline-block;
  font-size: 0.85rem;
  margin-left: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(167,214,255,0.14);
  color: #2b557a;
  font-weight: 700;
}

/* 小さなデコ：カード右上にハート */
.card::after {
  content: "♡";
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 0.95rem;
  color: rgba(255,107,154,0.9);
  transform: rotate(-15deg);
  opacity: 0.95;
}

.round-wrap {
  width: 200px;
  height: 200px;
  margin: auto;
}

.rotate {
  width: 100%;
  height: 100%;
  animation: rotate-anime 30s linear infinite;
}

@keyframes rotate-anime {
    0%  {transform: rotate(0);}
  100%  {transform: rotate(-360deg);}
}

.round {
  width: 100%;
  height: 100%;
  border-radius: 30% 70% 60% 40% / 30% 40% 60% 70%;
  animation: round_anime 5s linear infinite;
  background: linear-gradient(135deg, #fff6fb 0%, #ffd6e7 45%, #a7d6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.18);
}

@keyframes round_anime {
    0% { border-radius: 30% 70% 60% 40% / 30% 40% 60% 70%;}
   25% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;}
   50% { border-radius: 70% 30% 30% 70% / 50% 70% 30% 50%;}
   75% { border-radius: 50% 50% 50% 50% / 50% 50% 50% 50%;}
  100% { border-radius: 30% 70% 60% 40% / 30% 40% 60% 70%;}
}

/* レスポンシブ微調整 */
@media (max-width: 640px) {
  .card { width: 46%; }
  h1 { font-size: 1.6rem; padding: 14px 12px; }
  button { padding: 8px 12px; font-size: 0.9rem; }
}

footer {
  text-align: center;
  margin-top: 36px;
  color: #7b6b7b;
  opacity: 0.9;
}