﻿/* ============================================================
   product-box.css — 汎用アフィリエイト商品ボックス
   使用ショートコード: {{< product >}}
   ============================================================ */

.product-box {
  display: flex;
  gap: 16px;
  padding: 16px;
  margin: 24px 0;
  border: 1px solid #333;
  border-radius: 12px;
  background: #111;
  color: #fff;
}

.product-image { flex: 0 0 140px; }
.product-image img { width: 140px; height: auto; border-radius: 8px; display: block; }
.product-content { flex: 1; }
.product-title { font-size: 1.05rem; font-weight: bold; margin: 0 0 8px; }
.product-description { font-size: 0.9rem; line-height: 1.7; color: #ddd; margin: 0 0 12px; }

.product-links { display: flex; flex-wrap: wrap; gap: 8px; }

.product-link {
  display: inline-block;
  padding: 9px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: bold;
  background: #333;
  color: #fff;
  transition: opacity 0.15s;
}
.product-link:hover { opacity: 0.85; }

.product-link-amazon      { background: #ff9900; color: #111; }
.product-link-rakuten     { background: #bf0000; }
.product-link-yahoo       { background: #6001d2; }
.product-link-dlsite      { background: #005bbb; }
.product-link-dmm,
.product-link-fanza       { background: #e60033; }
.product-link-duga        { background: #cc0033; }
.product-link-dti         { background: #0055aa; }
.product-link-adama       { background: #e8004d; }
.product-link-a8          { background: #e67e00; }
.product-link-moshimo     { background: #00897b; }
.product-link-valuecommerce { background: #1565c0; }
.product-link-afb         { background: #558b2f; }
.product-link-booth       { background: #e4006b; }
.product-link-note        { background: #41c9b4; color: #111; }
.product-link-youtube     { background: #ff0000; }
.product-link-spotify     { background: #1db954; color: #111; }
.product-link-applemusic  { background: #fc3c44; }
.product-link-official    { background: #2e7d32; }

.product-error { border-color: #e60033; color: #ffb3b3; background: #1a0005; }
.aff-error { color: #e60033; font-size: 0.85rem; }
.aff-text-link { font-weight: bold; text-decoration: underline; }

@media (max-width: 640px) {
  .product-box { flex-direction: column; }
  .product-image { flex: none; }
  .product-image img { width: 100%; max-width: 220px; }
  .product-link { width: 100%; text-align: center; }
}