/*
Theme Name: TV PriceWatch (Beauty Base)
Theme URI: https://beauty.pricewatch.jp
Description: Beauty PriceWatchテーマのデザイン/挙動を完全踏襲し、TV向けにprice-monitor-post本文から価格・前回価格・楽天リンクを抽出してOFF表示/CTAを追加。
Version: 1.0.6
Author: PriceWatch
*/

/* ========================================
   リセット & ベース
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

a {
  color: #0066cc;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #0052a3;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
  background: linear-gradient(135deg, #1d4ed8 0%, #ea580c 100%);
  color: white;
  padding: 1.5rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.site-description {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-top: 0.3rem;
}

/* ========================================
   カテゴリフィルター
======================================== */
.category-filter {
  background: white;
  padding: 1.5rem 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  margin-bottom: 2rem;
}

.filter-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.category-btn {
  padding: 0.7rem 1.5rem;
  border: 2px solid #1d4ed8;
  background: white;
  color: #1d4ed8;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
  background: #1d4ed8;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3);
}

/* ========================================
   商品グリッド
======================================== */
.product-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

/* ========================================
   商品カード
======================================== */
.product-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: all 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: #f8f8f8;
}

.product-info {
  padding: 1.5rem;
}

.product-category {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #f0f0f0;
  color: #666;
  border-radius: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}

.product-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   価格表示
======================================== */
.price-section {
  margin: 1rem 0;
}

.current-price {
  font-size: 2rem;
  font-weight: 700;
  color: #2563eb;
  margin-bottom: 0.5rem;
}

.price-comparison {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.previous-price {
  font-size: 1rem;
  color: #999;
  text-decoration: line-through;
}

.price-drop {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  background: #27ae60;
  color: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.price-drop-arrow {
  font-size: 1.2rem;
  margin-right: 0.3rem;
}

/* ========================================
   楽天ボタン
======================================== */
.rakuten-button {
  display: block;
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #0052a3 0%, #0066cc 100%);
  color: white;
  text-align: center;
  font-weight: 600;
  border-radius: 8px;
  margin-top: 1rem;
  transition: all 0.3s;
}

.rakuten-button:hover {
  background: linear-gradient(135deg, #004a96 0%, #003a78 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 102, 204, 0.30);
  color: white;
}

/* ========================================
   シングル投稿ページ
======================================== */
.single-product {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 20px;
}

.single-product-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.single-product-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin: 0 auto 2rem;
  display: block;
}

.single-product-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #333;
  line-height: 1.4;
}

.product-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.meta-item {
  display: flex;
  flex-direction: column;
}

.meta-label {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.3rem;
}

.meta-value {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}

/* ========================================
   フッター
======================================== */
.site-footer {
  background: #2c3e50;
  color: white;
  padding: 2rem 0;
  text-align: center;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================
   レスポンシブ
======================================== */
@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .header-content {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .filter-container {
    gap: 0.7rem;
  }
  
  .category-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .current-price {
    font-size: 1.6rem;
  }
  
  .single-product-content {
    padding: 1.5rem;
  }
}

/* ========================================
   アニメーション
======================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeInUp 0.5s ease-out;
}

/* ========================================
   ページネーション
======================================== */
.pagination,
.page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 2rem 0;
  padding: 0;
  flex-wrap: wrap;
}

.pagination li,
.page-numbers li {
  display: inline-block;
  margin: 0;
}

.pagination a,
.pagination span,
.page-numbers a,
.page-numbers span {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  background: white;
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

.pagination a:hover,
.page-numbers a:hover {
  background: #1d4ed8;
  color: white;
}

.pagination .current,
.page-numbers .current {
  background: #1d4ed8;
  color: white;
  border-color: #1d4ed8;
}

.pagination-wrapper {
  text-align: center;
}

/* ========================================
   ユーティリティ
======================================== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }


/* --- TV追加（Beautyベースの見た目に合わせる） --- */
.price-current{ font-size:24px; font-weight:800; color:#2563eb; margin-top:6px; }
.price-prev{ font-size:13px; color:#666; text-decoration: line-through; margin-top:4px; }
.off-badge{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border-radius:999px;
  background:#e0ecff; color:#1e3a8a; font-weight:800; font-size:12px;
}
.off-badge .arrow{
  display:inline-flex; width:18px; height:18px; align-items:center; justify-content:center;
  border-radius:6px; background:#bfdbfe;
}
.cta-button{
  display:block;
  margin-top:12px;
  padding:12px 14px;
  text-align:center;
  border-radius:10px;
  background:#1d4ed8;
  color:#fff !important;
  font-weight:900;
}
.cta-button:hover{opacity:.92}


/* --- Blue Theme Accent --- */
.header-gradient{
  background: linear-gradient(90deg, #1e3a8a, #2563eb);
}
