@charset "UTF-8";
/*
 * rk-product-card plugin — 楽天商品カード スタイル
 * 子テーマ style.css から移植（描画一致保証のため無改変）
 */

/* =============================================
   楽天商品カード (.rk-card) ― 楽天本家風デザイン
   ============================================= */

.rk-card {
  display: flex;
  gap: 12px;
  border: 1px solid #e5e5e5;
  border-radius: 4px;
  padding: 12px;
  margin: 20px 0;
  background: #fff;
  align-items: flex-start;
  font-family: "Hiragino Sans", "ヒラギノ角ゴ ProN", Meiryo, sans-serif;
}

.rk-card__img-link {
  flex-shrink: 0;
}

.rk-card__img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  display: block;
}

.rk-card__body {
  flex: 1;
  min-width: 0;
}

.rk-card__title {
  font-size: 0.9rem;
  font-weight: normal;
  margin: 0 0 6px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rk-card__title a {
  color: #333;
  text-decoration: none;
}

.rk-card__title a:hover {
  text-decoration: underline;
}

.rk-card__price-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  flex-wrap: wrap;
}

.rk-card__price {
  font-size: 1.25rem;
  color: #c00;
  font-weight: bold;
  line-height: 1;
}

.rk-card__price-note {
  font-size: 0.8rem;
  color: #c00;
}

.rk-card__badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: bold;
  padding: 2px 5px;
  border-radius: 2px;
  line-height: 1.4;
}

.rk-card__badge--shipping {
  background: #c00;
  color: #fff;
}

.rk-card__badge--coupon {
  background: #fff6d6;
  color: #7a5c00;
  border: 1px solid #e8c84a;
}

.rk-card__points {
  font-size: 0.8rem;
  color: #9b4d00;
  margin: 0 0 4px;
}

.rk-card__rating {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 4px;
  font-size: 0.82rem;
}

.rk-card__stars {
  position: relative;
  display: inline-block;
  letter-spacing: -1px;
  line-height: 1;
}

.rk-card__stars-base {
  color: #ddd;
}

.rk-card__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f5a300;
}

.rk-card__rating-score {
  color: #f5a300;
  font-weight: bold;
}

.rk-card__rating-count {
  color: #888;
}

.rk-card__shop {
  font-size: 0.78rem;
  color: #555;
  margin: 0 0 6px;
}

.rk-card__comment {
  font-size: 0.82rem;
  color: #666;
  margin: 0 0 8px;
  line-height: 1.5;
}

.rk-card__btn {
  display: inline-block;
  background: #fff;
  color: #c00 !important;
  font-size: 0.8rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 2px;
  border: 1px solid #c00;
  text-decoration: none !important;
  transition: background .15s, color .15s;
}

.rk-card__btn:hover {
  background: #c00;
  color: #fff !important;
}

/* =============================================
   style="image" — 画像のみ
   ============================================= */

.rk-card--image {
  display: inline-block;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.rk-card--image .rk-card__img {
  width: auto;
  height: auto;
  max-width: 100%;
}

/* =============================================
   style="button" — ボタンのみ
   ============================================= */

.rk-card--button {
  display: inline-block;
  border: none;
  padding: 0;
  margin: 8px 0;
  background: transparent;
}

/* =============================================
   style="text" — テキストリンクのみ
   ============================================= */

.rk-card--text {
  display: inline;
  border: none;
  padding: 0;
  margin: 0;
  background: transparent;
}

.rk-card--text a {
  color: #c00;
  text-decoration: underline;
}

.rk-card--text a:hover {
  text-decoration: none;
}

/* =============================================
   style="mini" — コンパクト横一列
   ============================================= */

.rk-card--mini {
  gap: 8px;
  padding: 8px;
  margin: 8px 0;
  align-items: center;
}

.rk-card--mini .rk-card__img {
  width: 48px;
  height: 48px;
}

.rk-card--mini .rk-card__title {
  font-size: 0.82rem;
  margin: 0 0 2px;
  -webkit-line-clamp: 1;
  line-clamp: 1;
}

.rk-card--mini .rk-card__price {
  font-size: 0.9rem;
}

/* =============================================
   style="detail" — リッチカード（画像左+概要右 → specs → comment → btn）
   ============================================= */

.rk-card--detail {
  display: block;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

/* 上段: 画像 + 概要の横並び */
.rk-card--detail .rk-card__detail-top {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.rk-card--detail .rk-card__img-link {
  flex-shrink: 0;
}

.rk-card--detail .rk-card__img {
  width: 240px;
  height: 240px;
  object-fit: contain;
  background: #fafafa;
  border-radius: 4px;
}

.rk-card--detail .rk-card__detail-summary {
  flex: 1;
  min-width: 0;
}

.rk-card--detail .rk-card__title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-size: 1rem;
  font-weight: bold;
  margin: 0 0 8px;
  line-height: 1.4;
}

.rk-card--detail .rk-card__price-row {
  margin: 0 0 4px;
}

.rk-card--detail .rk-card__price {
  font-size: 1.5rem;
}

.rk-card--detail .rk-card__points {
  font-size: 0.85rem;
  margin: 0 0 4px;
}

.rk-card--detail .rk-card__rating {
  margin: 0 0 6px;
  font-size: 0.82rem;
}

.rk-card--detail .rk-card__shop {
  color: #555;
  font-size: 0.78rem;
  margin: 4px 0 0;
}

/* おすすめポイント見出し */
.rk-card__features-wrap {
  margin-top: 8px;
}

.rk-card__features-heading {
  font-size: 0.88rem;
  font-weight: bold;
  color: #222;
  margin: 0 0 4px;
}

/* features は共通。detail でも同じスタイル */
.rk-card__features {
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.rk-card__features li {
  padding: 1px 0 1px 20px;
  position: relative;
  color: #333;
  line-height: 1.3;
}

.rk-card__features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2e8b57;
  font-weight: bold;
}

/* スペック表（ウラオモテshowcase風: カラム型カード、PC 4列 / SP 2列） */
.rk-card__specs {
  width: 100% !important;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: min(0.9em, 15px);
  border-color: transparent;
}

.rk-card__specs tbody {
  display: flex;
  flex-wrap: wrap;
  border-radius: 2px;
  border: 1px solid #e0e0e0;
}

.rk-card__specs tr {
  display: flex;
  flex-direction: column;
  flex: 1 25%;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.rk-card__specs th,
.rk-card__specs td {
  border: none;
  font-size: 1em;
}

.rk-card__specs th {
  font-weight: normal;
  white-space: nowrap;
  padding: 3px 5px;
  font-size: 0.9em;
  color: #555;
  background: #f7f7f7;
  width: auto;
}

.rk-card__specs td {
  background: #fff;
  color: #222;
  padding: 5px;
  height: 100%;
  white-space: normal;
}

.rk-card__specs-in {
  display: flex;
  height: 100%;
  justify-content: center;
  align-items: center;
}


/* コメント（説明文） */
.rk-card--detail .rk-card__comment {
  font-size: 0.9rem;
  line-height: 1.7;
  color: #333;
  margin: 14px 0;
}

/* ボタン群 */
.rk-card__btn-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.rk-card--detail .rk-card__btn-group > .rk-card__btn {
  text-align: center;
  padding: 12px 24px;
  font-size: 0.95rem;
  border-radius: 4px;
  min-width: 200px;
}

/* 第2ボタンがある時は並列で均等幅に */
.rk-card--detail .rk-card__btn-group:has(.rk-card__btn--secondary) > .rk-card__btn {
  flex: 1;
  min-width: 160px;
}

/* 第1ボタン(楽天) をより目立たせる */
.rk-card--detail .rk-card__btn-group > .rk-card__btn:not(.rk-card__btn--secondary) {
  background: #c00;
  color: #fff !important;
}

.rk-card--detail .rk-card__btn-group > .rk-card__btn:not(.rk-card__btn--secondary):hover {
  background: #a00;
}

/* 第2ボタン(Amazon) */
.rk-card__btn--secondary {
  background: #ff9900;
  color: #fff !important;
  border-color: #ff9900;
}

.rk-card__btn--secondary:hover {
  background: #e68a00;
  color: #fff !important;
  border-color: #e68a00;
}

/* =============================================
   スマホ対応
   ============================================= */

@media (max-width: 480px) {
  .rk-card {
    flex-direction: column;
    align-items: center;
  }
  .rk-card__body {
    width: 100%;
  }
  .rk-card__img {
    width: 160px;
    height: 160px;
  }

  /* mini: 横一列を維持 */
  .rk-card--mini {
    flex-direction: row;
    align-items: center;
  }
  .rk-card--mini .rk-card__img {
    width: 40px;
    height: 40px;
  }

  /* image: 画像サイズ自動 */
  .rk-card--image {
    align-items: flex-start;
  }
  .rk-card--image .rk-card__img {
    width: auto;
    height: auto;
    max-width: 100%;
  }

  /* detail: 画像+概要を縦並びに */
  .rk-card--detail {
    padding: 14px;
  }
  .rk-card--detail .rk-card__detail-top {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .rk-card--detail .rk-card__img {
    width: 100%;
    max-width: 240px;
    height: auto;
  }
  .rk-card--detail .rk-card__detail-summary {
    width: 100%;
  }
  /* specs: SP時は2列 + 枠線なし */
  .rk-card__specs tbody {
    border: none;
  }
  .rk-card__specs tr {
    flex: 1 50%;
    border: none;
  }
  .rk-card--detail .rk-card__btn-group > .rk-card__btn {
    min-width: unset;
    width: 100%;
  }
}
