/* Once/channels/fhound/assets/style.css — モバイルファースト・凝りすぎない */
:root {
  --fg: #1a1a1a;
  --bg: #ffffff;
  --muted: #666;
  --border: #e0e0e0;
  --lang: #2563eb;
  --stock: #16a34a;
  --soldout: #9ca3af;
  --condition: #ea580c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

/* Header: ロゴ+検索+ウィッシュリスト導線のみ (Play-Asia メモ §7 踏襲判定通りシンプル構成) */
.site-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.logo { font-weight: 700; font-size: 1.2rem; }

.search-box { position: relative; flex: 1; min-width: 160px; }

.search-box input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.95rem;
}

#search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  max-height: 60vh;
  overflow-y: auto;
  z-index: 10;
}

.search-result {
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
}

.wishlist-link { white-space: nowrap; }

main { padding: 16px; max-width: 1100px; margin: 0 auto; }

.breadcrumb { font-size: 0.85rem; color: var(--muted); margin-bottom: 8px; }

/* カードグリッド */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: block;
}

.card img, .gallery img { width: 100%; height: auto; border-radius: 4px; }

.no-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.85rem;
  border-radius: 4px;
}

.card-title { font-weight: 600; margin-top: 6px; font-size: 0.95rem; }
.card-price { color: var(--fg); font-weight: 700; }

/* バッジ */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-right: 6px;
  margin-bottom: 4px;
}

.badge-lang { background: #dbeafe; color: var(--lang); }
.badge-stock { background: #dcfce7; color: var(--stock); }
.badge-soldout { background: #f3f4f6; color: var(--soldout); }
.badge-condition { background: #ffedd5; color: var(--condition); }

/* 商品ギャラリー・kind 価格ブロック */
.gallery { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.gallery img { max-width: 260px; }

.kind-block {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.price { font-size: 1.2rem; font-weight: 700; }

.wish {
  margin-left: auto;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
}

.wish.saved { background: #fef3c7; }

.cart-add {
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  cursor: pointer;
}

.cart-add.added { background: #dcfce7; color: var(--stock); }

.cart-link { white-space: nowrap; }

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.cart-kind { color: var(--muted); font-size: 0.85rem; }
.cart-price { font-weight: 700; }

#cart-summary { margin: 12px 0; font-size: 1.05rem; }
#cart-notice { color: var(--condition); margin-bottom: 8px; }

#cart-checkout {
  padding: 10px 18px;
  border: 0;
  border-radius: 6px;
  background: var(--stock);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#cart-checkout:disabled { background: var(--soldout); cursor: not-allowed; }

#ship-country {
  padding: 4px 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
}

/* specs テーブル */
table.specs { border-collapse: collapse; margin: 16px 0; }
table.specs th, table.specs td {
  border: 1px solid var(--border);
  padding: 6px 10px;
  text-align: left;
  font-size: 0.9rem;
}
table.specs th { background: #fafafa; width: 120px; }

.platform-nav { display: flex; flex-direction: column; gap: 6px; }
.platform-nav a { padding: 6px 0; }

.wishlist-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}

.site-footer {
  padding: 16px;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  main { padding: 24px 16px; }
}
