.affiliate-card {
    width: 100%;
    border: 1px solid var(--border-color, #e5e7eb);
    border-radius: 16px;
    padding: 24px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    background-color: var(--bg-color, rgba(255, 255, 255, 0.8));
    font-family: var(--font-family, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif);
  }

  .card-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
  }

  .image-container {
    width: 112px;
    height: 112px;
    border-radius: 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: var(--image-bg, #f9fafb);
  }

  .product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--spinner-bg, #e5e7eb);
    border-top: 2px solid var(--accent-color, #3b82f6);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }

  .error-placeholder {
    color: var(--muted-color, #9ca3af);
    font-size: 12px;
    text-align: center;
  }

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

  .content-area {
    min-width: 0;
    flex: 1;
  }

  .product-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--title-color, #1d4ed8);
    line-height: 1.3;
    margin: 0 0 8px 0;
  }

  .product-note {
    font-size: 14px;
    color: var(--text-muted, #6b7280);
    margin: 0 0 16px 0;
  }

  .button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 16px;
  }

  .affiliate-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: opacity 0.3s ease;
    font-family: inherit;
  }

  .affiliate-button:hover {
    opacity: 0.9;
  }

  .amazon-button {
    background-color: var(--amazon-color, #232f3e);
    color: white;
  }

  .yahoo-button {
    background-color: var(--yahoo-color, #ff6600);
    color: white;
  }

  .rakuten-button {
    background-color: var(--rakuten-color, #bf0000);
    color: white;
  }

  .disclosure {
    font-size: 11px;
    color: var(--text-muted, #9ca3af);
    margin: 0;
    line-height: 1.4;
  }

  @media (max-width: 640px) {
    .affiliate-card {
      padding: 16px;
    }
    
    .product-title {
      font-size: 18px;
    }
    
    .image-container {
      width: 96px;
      height: 96px;
    }
  }

  /* ライトテーマ（デフォルト） - 明示的に設定 */
  :root:not(.dark) .affiliate-card {
    --bg-color: #ffffff;
    --border-color: #e5e7eb;
    --title-color: #1d4ed8;
    --text-muted: #6b7280;
    --image-bg: #f8f9fa;
    --spinner-bg: #e5e7eb;
    --accent-color: #3b82f6;
  }

  /* ダークテーマ */
  :root.dark .affiliate-card {
    --bg-color: #1a1a1a;
    --border-color: #374151;
    --title-color: #60a5fa;
    --text-muted: #9ca3af;
    --image-bg: #2d2d2d;
    --spinner-bg: #374151;
    --accent-color: #60a5fa;
  }
