/* ==========================================================
   商品ページ：ファーストビュー（PC）
========================================================== */

.content-area.product-page {
  padding: 0 20px;
}

/* ===============================
   PC：商品ファーストビュー
================================ */
.product-page .product .product-hero {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 36px;
  align-items: flex-start;
  margin-bottom: 30px;
}

/* 商品画像 */
.product-hero-left img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 6px;
  background: #f5f5f5;
}

/* 右側情報 */
.product-hero-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* 商品タイトル */
.product-title {
  font-size: 18px !important;
  line-height: 1.4;
  font-weight: 700;
  margin: 0 0 8px;
}

/* メタ情報 */
.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 11px;
  color: #555;
  font-weight: 500;
}

.product-meta-badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: #f2f3f5;
  font-size: 11px;
}

/* 価格 */
.product-price .price {
  margin: 0;
}

.product-price .price strong {
  font-size: 24px;
  color: #be0000;
}

/* CTA */
.product_link a {
  width: 100%;
  display: block;
  margin-top: 20px;
}

/* ==========================================================
   レビュー
========================================================== */
.product-review-mini {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  margin-top: 6px;
}

.review-label {
  font-size: 11px;
  color: #4e4e4e;
}

.star-wrap {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
}

.star { font-size: 14px; }
.star.full { color: #f5b301; }
.star.empty { color: #cfcfcf; }

.star.half {
  background: linear-gradient(90deg, #f5b301 50%, #cfcfcf 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rating {
  font-weight: 800;
  color: #111827;
}

.reviews {
  font-size: 11px;
  color: #6b7280;
}

/* ==========================================================
   参考購入情報セクション（楽天）
========================================================== */
.product-compare {
    padding: 20px 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.product-compare h2 {
    font-size: 16px !important;
    font-weight: 600;
    margin-bottom: 14px;
    padding-left: 12px;
    border-left: 4px solid #0C1D3C;
    border-bottom: 0;
    padding-bottom: 0;
}

/* 比較カード */
.compare-box {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  align-items: center;
}

.compare-left img {
  width: 72px;
  margin: 0 auto;
}

/* 商品名 */
.shop-item-title {
    font-size: 12px;
    line-height: 1.7;
    color: #374151;
    margin: 6px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 400;
}

/* 価格＆CTA */
.compare-right {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-compare .shop-name {
    font-size: 10px;
    font-weight: 500;
    margin: 0;
    background: #dbdee3;
    max-width: 80px;
    text-align: center;
    border-radius: 4px;
    padding: 2px;
}

.compare-right .price {
    margin: 5px 0;
}

.compare-right .price strong {
    font-size: 18px;
    color: #0c1d37;
}

.compare-right a.rank-btn {
  align-self: flex-start;
}

.product-compare a {
padding: 8px 40px;
    font-size: 11px;
    position: relative;
}

.product-compare a::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 14px;
  width: 6px;
  height: 6px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
  transition: right .5s cubic-bezier(0.22,1,0.36,1),
              transform .5s cubic-bezier(0.22,1,0.36,1);
  opacity: .9;
}


.product-compare a:hover::after {
  right: 10px;
}

/* ==========================================================
   MOBILE（768px以下）
========================================================== */
@media (max-width: 768px) {

  html, body { overflow-x: hidden; }

    
  .single-furusato_item .content-area.product-page {
    padding: 0;
  }
  
  .single-ec_item .content-area.product-page {
    padding: 0;
  }

  /* ファーストビュー */
.product-page .product .product-hero {
    display: block;
    margin-bottom: 20px;
  }

  .product-page .product .product-hero-left {
    width: 100vw;
    margin: 0 calc(50% - 50vw) 20px;
  }

  .product-hero-left img {
    border-radius: 0;
    box-shadow: 0 2px 6px rgba(12, 29, 60, 0.1);
  }

 .product-page .product .product-hero-right {
    padding: 0 10px;
  }


.compare-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .06);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 6px;
    align-items: center;
}

  /* 参考購入情報 */
  .product-compare {
    padding: 20px 10px;
    border-radius: 0;
  }

.compare-left img {
    width: 60px;
    margin: 0 auto;
    padding: 10px;
}

  .compare-left {
    margin-bottom: 0px;
  }
}
