/*
Theme Name: TV PriceWatch
Theme URI: https://tv.pricewatch.jp
Description: 美容家電専門の価格比較サイト専用テーマ
Version: 1.0
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, #1e40af 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 #1e40af;
  background: white;
  color: #1e40af;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.category-btn:hover,
.category-btn.active {
  background: #1e40af;
  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: #e74c3c;
  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, #bf0000 0%, #8b0000 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, #a00000 0%, #700000 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(191, 0, 0, 0.3);
  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 #1e40af;
  color: #1e40af;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
}

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

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

.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; }
