/* TubeAffi 商品カード v2 — テーマ非依存・モバイルファースト
   シグネチャ: カード上端の3モールカラーエッジ（アンバー→クリムゾン→レッド） */

.taffi-card {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 24px;
  margin: 2em 0;
  background: #ffffff;
  border: 1px solid #e9e4d8;
  border-radius: 14px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(30, 26, 20, 0.04), 0 14px 34px -18px rgba(30, 26, 20, 0.18);
  color: #1f2328;
  line-height: 1.5;
  overflow: hidden;
}
.taffi-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, #e08a00 0%, #e08a00 32%, #bf0000 36%, #bf0000 64%, #e8113c 68%, #e8113c 100%);
}

.taffi-card__media {
  flex: none;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf8f2;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(30, 26, 20, 0.05);
  overflow: hidden;
}
.taffi-card__media img.taffi-card__image {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0;
  box-shadow: none;
}

.taffi-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.taffi-card__title {
  margin: 2px 0 10px;
  font-weight: 700;
  font-size: 1.05em;
  line-height: 1.5;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.taffi-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 2px;
}
.taffi-card__price-label {
  font-size: 0.68em;
  font-weight: 700;
  color: #7b8178;
  border: 1px solid #d9d3c4;
  border-radius: 999px;
  padding: 2px 9px;
  letter-spacing: 0.08em;
}
.taffi-card__price {
  font-size: 1.45em;
  font-weight: 800;
  color: #c0392b;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.taffi-card__price-note {
  font-size: 0.7em;
  color: #b0aa9c;
}

.taffi-card__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  font-size: 0.84em;
  text-decoration: none !important;
  color: inherit;
  width: fit-content;
}
.taffi-card__rating:hover .taffi-card__rating-note { color: #857f70; text-decoration: underline; }
.taffi-stars {
  position: relative;
  display: inline-block;
  color: #ddd6c6;
  letter-spacing: 2px;
  line-height: 1;
}
.taffi-stars__fill {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #e8a33d;
}
.taffi-card__rating-avg {
  font-weight: 800;
  color: #a4761c;
}
.taffi-card__rating-note {
  color: #b0aa9c;
  font-size: 0.85em;
}

.taffi-card__buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 14px;
}
.taffi-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px 13px 12px;
  border-radius: 10px;
  color: #ffffff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.88em;
  letter-spacing: 0.02em;
  border: none;
  white-space: nowrap;
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.taffi-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0) 55%);
  pointer-events: none;
}
.taffi-btn::after {
  content: "›";
  position: absolute;
  right: 11px;
  top: 50%;
  transform: translateY(-54%);
  font-size: 1.1em;
  font-weight: 800;
  opacity: 0.85;
}
.taffi-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  color: #ffffff !important;
}
.taffi-btn:focus-visible {
  outline: 2px solid #1f2328;
  outline-offset: 2px;
}
.taffi-btn--amazon {
  background: #232f3e;
  box-shadow: 0 6px 14px -6px rgba(35, 47, 62, 0.55);
}
.taffi-btn--amazon::after { color: #ff9900; opacity: 1; }
.taffi-btn--rakuten {
  background: #b00000;
  box-shadow: 0 6px 14px -6px rgba(176, 0, 0, 0.5);
}
.taffi-btn--yahoo {
  background: #e8113c;
  box-shadow: 0 6px 14px -6px rgba(232, 17, 60, 0.5);
}
.taffi-btn--amazon:hover { box-shadow: 0 10px 20px -8px rgba(35, 47, 62, 0.65); }
.taffi-btn--rakuten:hover { box-shadow: 0 10px 20px -8px rgba(176, 0, 0, 0.6); }
.taffi-btn--yahoo:hover { box-shadow: 0 10px 20px -8px rgba(232, 17, 60, 0.6); }

.taffi-card__credit {
  margin-top: 12px;
  font-size: 0.64em;
  color: #beb8aa;
  letter-spacing: 0.03em;
  text-align: right;
}

@media (max-width: 560px) {
  .taffi-card {
    flex-direction: column;
    gap: 16px;
    padding: 18px 18px 16px;
  }
  .taffi-card__media {
    width: 100%;
    height: 190px;
  }
  .taffi-card__buttons { grid-template-columns: 1fr; }
  .taffi-card__credit { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .taffi-btn { transition: none; }
  .taffi-btn:hover { transform: none; }
}

/* 冒頭の統合表記（広告+AI）: 法令上冒頭必須のため位置は固定し、視覚的に控えめに */
p.taffi-notice {
  font-size: 0.72em;
  color: #a5a29b;
  text-align: right;
  margin: 0 0 12px;
  line-height: 1.4;
}
