/* ==========================================================================
   ポータブル電源＆ソーラーパネルナビ - 楽天ブランドカラー & モバイル最適化 CSS Rules
   ========================================================================== */

:root {
  /* 楽天公式ブランドカラー Rules */
  --rakuten-crimson: #bf0000;
  --rakuten-red: #e60021;
  --rakuten-pink: #ec3d77;
  --rakuten-pink-hover: #d82b64;
  --rakuten-gradient: linear-gradient(135deg, #e60021 0%, #bf0000 100%);
  --rakuten-pink-gradient: linear-gradient(135deg, #ec3d77 0%, #e2285a 100%);
  --rakuten-light-bg: #fff5f6;
  
  /* ページ全体のテーマカラー (明るい楽天ショッピングスタイル) */
  --bg-main: #f6f7f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-sub: #ffffff;
  
  /* タイポグラフィ・テキストカラー */
  --text-main: #1f2937;
  --text-sub: #4b5563;
  --text-muted: #9ca3af;
  --text-accent: #bf0000;
  
  /* 枠線・ボーダー */
  --border-color: #e5e7eb;
  --border-color-hover: #fdba74;
  
  /* パーツ用アクセント */
  --badge-bg: linear-gradient(135deg, #bf0000 0%, #e60021 100%);
  --star-color: #f59e0b;
  
  /* シャドウ効果 */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 25px rgba(230, 0, 33, 0.12);
  
  /* 角丸ルール */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset & Typography */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', 'Noto Sans JP', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Top Banner Header */
.top-announcement-banner {
  background: linear-gradient(90deg, #ec3d77 0%, #e2285a 100%);
  color: #ffffff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Hero Section */
.hero-section {
  padding: 2.25rem 1rem 1.75rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: var(--rakuten-light-bg);
  border: 1px solid rgba(230, 0, 33, 0.2);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--rakuten-crimson);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 0.85rem;
  color: #111827;
}

.hero-title span {
  color: var(--rakuten-crimson);
}

@media (min-width: 768px) {
  .hero-section {
    padding: 3rem 1.5rem 2rem;
  }
  .hero-title {
    font-size: 3rem;
  }
}

.hero-description {
  font-size: 0.92rem;
  color: var(--text-sub);
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.65;
}

/* Main Container */
.main-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

@media (min-width: 768px) {
  .main-container {
    padding: 0 1.5rem 5rem;
  }
}

/* 1. Buying Guide Section */
.buying-guide-section {
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .buying-guide-section {
    margin-top: 2rem;
    margin-bottom: 3rem;
    padding: 2.5rem 2rem;
  }
}

.section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.section-tag {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rakuten-crimson);
  letter-spacing: 0.1em;
  margin-bottom: 0.3rem;
}

.guide-title {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .guide-title {
    font-size: 1.65rem;
  }
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .guide-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.guide-card {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  padding: 1.35rem 1.15rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.guide-card:hover {
  border-color: rgba(230, 0, 33, 0.3);
  background: var(--rakuten-light-bg);
  transform: translateY(-2px);
}

.guide-card-icon {
  font-size: 2rem;
  margin-bottom: 0.65rem;
}

.guide-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  color: var(--rakuten-crimson);
}

.guide-card-text {
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Steps Box */
.steps-container {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
  background: #ffffff;
  padding: 1.25rem 1rem;
  border-radius: var(--radius-md);
  border: 2px dashed rgba(230, 0, 33, 0.2);
}

@media (min-width: 768px) {
  .steps-container {
    grid-template-columns: repeat(3, 1fr);
    padding: 1.5rem;
  }
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.step-num {
  width: 30px;
  height: 30px;
  background: var(--rakuten-gradient);
  color: #fff;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
}

.step-title {
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.15rem;
}

/* 2. Q&A Section */
.qa-section {
  margin-bottom: 2.5rem;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.25rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .qa-section {
    margin-bottom: 3.5rem;
    padding: 2.5rem 2rem;
  }
}

.qa-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

.qa-item {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.15rem 1rem;
  transition: var(--transition);
}

@media (min-width: 768px) {
  .qa-item {
    padding: 1.5rem;
  }
}

.qa-item:hover {
  border-color: rgba(230, 0, 33, 0.3);
}

.qa-question {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.65rem;
}

.q-badge {
  background: var(--rakuten-crimson);
  color: #ffffff;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.qa-answer {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-sub);
  line-height: 1.6;
}

.a-badge {
  background: var(--rakuten-pink);
  color: #ffffff;
  font-weight: 900;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  flex-shrink: 0;
}

/* 3. Products Section Title */
.products-section-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.products-section-title {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--text-main);
}

@media (min-width: 768px) {
  .products-section-title {
    font-size: 1.85rem;
  }
}

/* Filter Bar (Category Tabs Only) */
.filter-bar {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
  .filter-bar {
    padding: 1.25rem 1.5rem;
    margin-bottom: 2.5rem;
  }
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.category-tabs::-webkit-scrollbar {
  display: none;
}

.tab-btn {
  padding: 0.55rem 1.1rem;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-sub);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  min-height: 38px;
  display: inline-flex;
  align-items: center;
}

.tab-btn:hover {
  background: var(--rakuten-light-bg);
  color: var(--rakuten-crimson);
  border-color: rgba(230, 0, 33, 0.3);
}

.tab-btn.active {
  background: var(--rakuten-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 3px 10px rgba(191, 0, 0, 0.25);
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
  }
}

/* Product Card */
.product-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(230, 0, 33, 0.4);
  box-shadow: var(--shadow-hover);
}

/* Badge */
.card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 10;
  padding: 0.25rem 0.75rem;
  background: var(--rakuten-pink-gradient);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: var(--radius-full);
  box-shadow: 0 2px 6px rgba(236, 61, 119, 0.3);
}

/* Image Container */
.card-img-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  border-bottom: 1px solid #f1f5f9;
}

.card-img-wrapper a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  text-decoration: none !important;
}

.card-img-wrapper img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  transition: transform 0.3s ease;
}

.product-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* Card Content */
.card-content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

@media (min-width: 768px) {
  .card-content {
    padding: 1.5rem;
  }
}

.card-category {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--rakuten-crimson);
  margin-bottom: 0.4rem;
}

.card-title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.4;
  margin-bottom: 0.65rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.card-rating {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  margin-bottom: 0.75rem;
}

.stars {
  color: var(--star-color);
  letter-spacing: 1px;
}

.rating-num {
  font-weight: 800;
  color: var(--text-main);
}

.review-count {
  color: var(--text-muted);
  font-size: 0.78rem;
}

.card-description {
  font-size: 0.82rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pros & Cons Section in Card */
.pros-cons-box {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-bottom: 1.15rem;
}

.pros-list, .cons-list {
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  font-size: 0.76rem;
  line-height: 1.45;
}

.pros-list {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.cons-list {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.pros-title {
  font-weight: 800;
  color: #15803d;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.cons-title {
  font-weight: 800;
  color: #be123c;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pros-list ul, .cons-list ul {
  list-style: none;
  padding-left: 0;
}

.pros-list li, .cons-list li {
  margin-bottom: 0.15rem;
}

.features-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.feature-tag {
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  background: var(--rakuten-light-bg);
  border-radius: 4px;
  color: var(--rakuten-crimson);
  font-weight: 600;
  border: 1px solid rgba(230, 0, 33, 0.15);
}

/* Card Actions */
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
}

.btn-rakuten {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  background: var(--rakuten-pink-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 14px rgba(236, 61, 119, 0.35);
  text-align: center;
  border: none;
  cursor: pointer;
}

.btn-rakuten:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(236, 61, 119, 0.5);
  background: linear-gradient(135deg, #f04e84 0%, #d82b64 100%);
}

/* No Results Message */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1.5rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.no-results-icon {
  font-size: 2.5rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

/* Footer */
.site-footer {
  background: #ffffff;
  border-top: 2px solid var(--rakuten-crimson);
  padding: 2.5rem 1.25rem 2rem;
  margin-top: 3.5rem;
  text-align: center;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-text {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--rakuten-crimson);
  margin-bottom: 0.85rem;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-sub);
  max-width: 800px;
  margin: 0 auto 1.25rem;
  line-height: 1.5;
}

.copyright {
  font-size: 0.78rem;
  color: var(--text-muted);
}
