/* fu-recommend  clinic clean style */
:root {
  --primary: #4A90E2;
  --primary-dark: #2f6fb8;
  --accent: #52a878;
  --text: #2c3e50;
  --text-light: #6b7d8f;
  --bg: #fafcfe;
  --card: #ffffff;
  --border: #e6eef5;
  --rakuten: #bf0000;
  --amazon: #ff9900;
  --a8: #3a7bd5;
  --other: #6c757d;
  --shadow: 0 2px 8px rgba(74, 144, 226, 0.08);
  --shadow-hover: 0 4px 16px rgba(74, 144, 226, 0.16);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: "Hiragino Maru Gothic ProN", "ヒラギノ丸ゴ ProN W4",
    "Yu Gothic", "游ゴシック", "Hiragino Sans", sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
}

a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  background: linear-gradient(135deg, #ffffff 0%, #eaf4fb 100%);
  border-bottom: 1px solid var(--border);
  padding: 24px 16px 20px;
  text-align: center;
}
.site-header h1 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.04em;
  color: var(--primary-dark);
}
.site-header h1 a { color: inherit; text-decoration: none; }
.site-header .subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-light);
}

/* Container */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 24px 16px 80px;
}

/* Breadcrumb / back */
.back-link {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-light);
}
.back-link::before { content: "← "; }

/* Section title */
.section-title {
  font-size: 18px;
  margin: 0 0 16px;
  padding-left: 10px;
  border-left: 4px solid var(--primary);
}

/* Category grid (top page) */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.category-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px 12px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow);
  color: var(--text);
  display: block;
}
.category-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}
.category-card .emoji {
  font-size: 38px;
  display: block;
  margin-bottom: 6px;
}
.category-card .name {
  font-size: 14px;
  font-weight: 600;
}
.category-card .count {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 2px;
}

/* Product list */
.product-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 640px) {
  .product-card { flex-direction: row; align-items: flex-start; }
}
.product-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f0f4f8;
}
@media (min-width: 640px) {
  .product-img { width: 160px; height: 160px; flex-shrink: 0; }
}
.product-body { flex: 1; min-width: 0; }
.product-name {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}
.product-desc {
  font-size: 13px;
  color: var(--text-light);
  margin: 0 0 12px;
  line-height: 1.6;
}

/* Buy buttons */
.buy-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.buy-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s;
}
.buy-btn:hover { opacity: 0.85; text-decoration: none; }
.buy-btn.rakuten { background: var(--rakuten); }
.buy-btn.amazon  { background: var(--amazon); }
.buy-btn.a8      { background: var(--a8); }
.buy-btn.other   { background: var(--other); }

/* States */
.empty, .loading, .error {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-light);
  font-size: 14px;
}
.error { color: #c0392b; }

/* Footer */
.site-footer {
  text-align: center;
  font-size: 11px;
  color: var(--text-light);
  padding: 20px 16px 30px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
