/*
  良品楽市バンビ (vanbe) - 楽天市場トップページ用スタイルシート
  スマートフォン・PC 両用レスポンシブ対応
*/

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;500;700&family=Outfit:wght@400;600;800&display=swap');

:root {
  --primary: #2A5C43; /* 自然で健康的なフォレストグリーン */
  --primary-light: #EFF6F0;
  --primary-dark: #1E4330;
  --accent: #D4AF37; /* 賑わいと信頼感のゴールド */
  --accent-hover: #C59F2E;
  --accent-light: #FAF6E8;
  --dark: #2A332E; /* 濃い緑を含んだチャコール */
  --light: #F7FAF8;
  --white: #ffffff;
  --gray: #8E9C95;
  --gray-light: #EBEFEF;
  --danger: #D9534F;
  
  --font-base: 'Noto Sans JP', sans-serif;
  --font-en: 'Outfit', sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 24px rgba(42, 92, 67, 0.06);
  --shadow-lg: 0 16px 36px rgba(42, 92, 67, 0.12);
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* リセットスタイル */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background-color: var(--light);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  font-family: inherit;
  cursor: pointer;
}

/* ユーティリティ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.text-center { text-align: center; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background-color: var(--accent);
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--gray);
  margin-bottom: 48px;
}

/* ヘッダー広告・お知らせバー */
.promo-bar {
  background-color: var(--primary);
  color: var(--white);
  text-align: center;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}

/* メインヘッダー */
.main-header {
  background-color: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo a {
  display: flex;
  flex-direction: column;
}

.logo-main {
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--gray);
  margin-top: -4px;
}

.nav-menu {
  display: flex;
  gap: 32px;
}

.nav-link {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.95rem;
  padding: 8px 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.nav-link:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.header-btn {
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
}

.header-btn.cart {
  background-color: var(--primary-light);
  color: var(--primary);
}

.header-btn.cart:hover {
  background-color: var(--primary);
  color: var(--white);
}

/* スマホ用メニューボタン */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  width: 30px;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background-color: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ヒーローセクション */
.hero {
  padding: 60px 0;
  background: linear-gradient(135deg, #EFF6F0 0%, #FAF6E8 100%);
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  max-width: 600px;
}

.hero-tag {
  display: inline-block;
  background-color: var(--white);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 6px 16px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary-dark);
  margin-bottom: 20px;
}

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

.hero-desc {
  font-size: 1.1rem;
  color: var(--dark);
  margin-bottom: 36px;
  opacity: 0.9;
}

.hero-cta {
  display: flex;
  gap: 16px;
}

.btn {
  display: inline-block;
  padding: 16px 36px;
  border-radius: var(--radius-md);
  font-weight: 700;
  text-align: center;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--white);
}

.btn-accent:hover {
  background-color: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero-image {
  position: relative;
}

.hero-image-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
  transform: rotate(2deg);
  transition: var(--transition);
}

.hero-image-wrapper:hover {
  transform: rotate(0deg) scale(1.02);
}

/* クイックカテゴリナビ */
.categories {
  padding: 80px 0;
  background-color: var(--white);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.category-card {
  background-color: var(--light);
  border-radius: var(--radius-md);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-light);
}

.category-card:hover {
  background-color: var(--white);
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.category-icon {
  width: 80px;
  height: 80px;
  background-color: var(--primary-light);
  color: var(--primary);
  border-radius: 50%;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background-color: var(--primary);
  color: var(--white);
  transform: scale(1.1);
}

.category-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.category-count {
  font-size: 0.85rem;
  color: var(--gray);
}

/* 看板商品 ネルネル比較セクション */
.special-section {
  padding: 80px 0;
  background-color: var(--light);
}

.comparison-wrapper {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 48px;
  box-shadow: var(--shadow-md);
  margin-top: 40px;
}

.comparison-header {
  margin-bottom: 40px;
}

.comparison-tag {
  background-color: var(--danger);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 12px;
  display: inline-block;
}

.comparison-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.comparison-desc {
  color: var(--gray);
}

.comparison-table-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  min-width: 700px;
}

.comparison-table th, .comparison-table td {
  padding: 20px 16px;
  border-bottom: 1px solid var(--gray-light);
}

.comparison-table th {
  background-color: var(--primary-light);
  color: var(--primary);
  font-weight: 700;
}

.comparison-table tr:hover {
  background-color: rgba(42, 92, 67, 0.02);
}

.comparison-table td.recommend {
  background-color: rgba(212, 175, 55, 0.05);
}

.comparison-table tr.highlight {
  border: 2px solid var(--accent);
  background-color: rgba(212, 175, 55, 0.03);
}

.price-main {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--danger);
}

.price-unit {
  font-size: 0.9rem;
  color: var(--gray);
}

.badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-mail {
  background-color: #E2F0D9;
  color: #385723;
}

.badge-express {
  background-color: #FCE4D6;
  color: #C65911;
}

.badge-rec {
  background-color: var(--accent);
  color: var(--white);
}

.table-btn {
  display: inline-block;
  padding: 8px 16px;
  background-color: var(--primary);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
}

.table-btn:hover {
  background-color: var(--primary-dark);
}

/* 売れ筋ランキング */
.ranking {
  padding: 80px 0;
  background-color: var(--white);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.product-card {
  background-color: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-light);
  overflow: hidden;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.rank-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--gray);
  color: var(--white);
  font-weight: 800;
  font-family: var(--font-en);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-size: 1.1rem;
}

.product-card:nth-child(1) .rank-badge { background-color: var(--accent); }
.product-card:nth-child(2) .rank-badge { background-color: #C0C0C0; }
.product-card:nth-child(3) .rank-badge { background-color: #CD7F32; }

.product-image {
  position: relative;
  background-color: var(--light);
  aspect-ratio: 1;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  height: 2.8em;
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 12px;
}

.product-rating span {
  color: var(--gray);
}

.product-bottom {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.product-price {
  font-family: var(--font-en);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--danger);
}

.product-shipping {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  background-color: var(--primary-light);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ショップの強み（レビューアピール） */
.strengths {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  position: relative;
}

.strengths-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
}

.rating-summary-card {
  background-color: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

.rating-number {
  font-family: var(--font-en);
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stars {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 16px;
}

.review-count {
  font-size: 1rem;
  opacity: 0.8;
}

.strengths-content h2 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.strength-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.strength-item {
  display: flex;
  gap: 16px;
}

.strength-num {
  font-family: var(--font-en);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.strength-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.strength-desc {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* お買い物ガイド / フッター */
.shopping-guide {
  padding: 80px 0 60px;
  background-color: var(--white);
  border-bottom: 1px solid var(--gray-light);
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.guide-card {
  text-align: center;
}

.guide-icon {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: 16px;
}

.guide-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.guide-desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.5;
}

/* フッター */
.footer {
  background-color: var(--dark);
  color: var(--white);
  padding: 60px 0 30px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-main {
  color: var(--white);
}

.footer-brand p {
  opacity: 0.6;
  margin-top: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
}

.footer-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 30px;
  height: 2px;
  background-color: var(--accent);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  opacity: 0.7;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gray);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {
  .hero-title { font-size: 2.4rem; }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  body { font-size: 15px; }
  .header-actions { display: none; }
  .nav-menu { display: none; } /* 本格的にはドロワーメニューが必要 */
  
  .menu-toggle { display: flex; }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }
  .hero-content { margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .hero-image-wrapper { transform: none; }
  .hero-image-wrapper:hover { transform: scale(1.01); }
  
  .comparison-wrapper { padding: 24px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .strengths-grid { grid-template-columns: 1fr; gap: 40px; }
  
  .guide-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.6rem; }
  .product-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}
