/* CSS変数の定義 */
:root {
  --primary-color: #2d5dd7;
  --secondary-color: #1e3a8a;
  --accent-color: #06b6d4;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --text-color: #1f2937;
  --text-light: #6b7280;
  --border-color: #e5e7eb;
}

/* タブ機能のベーススタイル */
.family-categories {
  margin: 60px 0;
}

.category-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  border-bottom: 2px solid #f1f3f4;
}

.tab-btn {
  background: none;
  border: none;
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #666;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.3s ease;
  position: relative;
}

.tab-btn:hover {
  color: var(--primary-color);
  background-color: #f8f9fa;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background-color: #fff;
}

.tab-content {
  display: none;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s ease;
  padding: 40px 0;
}

.tab-content.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.tab-content h3 {
  font-size: 2.2rem;
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
}

.tab-content > p {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 高齢者カード - 改善版 */
.elderly-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f1f3f4;
  position: relative;
}

.elderly-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.elderly-card:nth-child(1) .elderly-header {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.elderly-card:nth-child(2) .elderly-header {
  background: linear-gradient(135deg, #e67e22, #f39c12);
}

.elderly-card:nth-child(3) .elderly-header {
  background: linear-gradient(135deg, #8e44ad, #9b59b6);
}

.elderly-header {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.elderly-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.elderly-header i {
  font-size: 2.2rem;
  opacity: 0.9;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.elderly-header h5 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.elderly-content {
  padding: 30px;
}

.elderly-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.elderly-content li {
  margin-bottom: 15px;
  padding: 12px 0 12px 35px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
}

.elderly-content li:hover {
  background-color: #f8f9fa;
  border-radius: 8px;
  border-bottom: 1px solid transparent;
}

.elderly-content li:last-child {
  border-bottom: none;
}

.elderly-content li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 12px;
  color: #27ae60;
  font-weight: 900;
  font-size: 1.2rem;
  width: 24px;
  height: 24px;
  background: #e8f5e8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.elderly-content strong {
  color: #2c3e50;
  font-weight: 600;
}

/* ペットカード - 改善版 */
.pet-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f1f3f4;
  position: relative;
}

.pet-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.pet-card:nth-child(1) .pet-header {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.pet-card:nth-child(2) .pet-header {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.pet-card:nth-child(3) .pet-header {
  background: linear-gradient(135deg, #1abc9c, #16a085);
}

.pet-header {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: white;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.pet-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.pet-header i {
  font-size: 2.2rem;
  opacity: 0.9;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.pet-header h5 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pet-content {
  padding: 30px;
}

.pet-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.pet-content li {
  margin-bottom: 15px;
  padding: 12px 0 12px 35px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
}

.pet-content li:hover {
  background-color: #f8f9fa;
  border-radius: 8px;
  border-bottom: 1px solid transparent;
}

.pet-content li:last-child {
  border-bottom: none;
}

.pet-content li::before {
  content: '🐾';
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 18px;
  width: 24px;
  height: 24px;
  background: #fff3e0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.pet-content strong {
  color: #2c3e50;
  font-weight: 600;
}

/* 商品推薦セクションの改善 */
.product-recommendations {
  background: #f8f9fa;
  padding: 20px;
  border-radius: 15px;
  margin: 20px 0;
  border-left: 4px solid #3498db;
}

.product-recommendations h6 {
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.product-recommendations h6::before {
  content: '🛒';
  font-size: 1.2rem;
}

.mini-product {
  display: flex;
  align-items: center;
  gap: 15px;
  background: white;
  padding: 15px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.mini-product:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.mini-product-img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #e9ecef;
}

.mini-product-info h5 {
  margin: 0 0 8px 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #2c3e50;
}

.mini-btn {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.mini-btn:hover {
  background: linear-gradient(135deg, #2980b9, #21618c);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

/* ヒントボックスの改善 */
.tip-box {
  background: linear-gradient(135deg, #e8f5e8, #d5f4e6);
  border: 1px solid #27ae60;
  border-radius: 15px;
  padding: 20px;
  margin-top: 20px;
  position: relative;
}

.tip-box::before {
  content: '';
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  background: linear-gradient(135deg, #27ae60, #2ecc71);
  border-radius: 15px;
  z-index: -1;
  opacity: 0.1;
}

.tip-box h6 {
  color: #27ae60;
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.tip-box p {
  margin: 0;
  color: #2c3e50;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 専門家アドバイスセクション */
.expert-advice {
  background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
  padding: 80px 0;
  margin: 80px 0;
}

.expert-content {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 50px;
  align-items: center;
}

.expert-profile {
  text-align: center;
}

.expert-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.expert-info h3 {
  margin: 0 0 5px 0;
  font-size: 1.4rem;
  color: var(--text-color);
}

.expert-info p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.expert-quote {
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border-left: 5px solid var(--primary-color);
  position: relative;
}

.expert-quote::before {
  content: '"';
  position: absolute;
  top: 10px;
  left: 20px;
  font-size: 4rem;
  color: var(--primary-color);
  opacity: 0.3;
  line-height: 1;
}

.expert-quote p {
  margin: 0;
  line-height: 1.8;
  font-size: 1.05rem;
  color: var(--text-color);
  padding-left: 30px;
}

/* CTAセクション */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 80px 0;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.cta-buttons .btn {
  padding: 15px 30px;
  font-size: 1.1rem;
  font-weight: 600;
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
}

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

@media (max-width: 768px) {
  .expert-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .expert-image {
    width: 100px;
    height: 100px;
  }

  .expert-quote {
    padding: 30px 20px;
  }

  .expert-quote p {
    padding-left: 20px;
  }

  .cta-content h2 {
    font-size: 2rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: 300px;
  }

  .elderly-header,
  .pet-header,
  .age-header {
    padding: 20px 25px;
  }

  .elderly-header h5,
  .pet-header h5,
  .age-header h5 {
    font-size: 1.3rem;
  }

  .elderly-content,
  .pet-content,
  .age-content {
    padding: 25px 20px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .family-preparation-section {
    padding: 30px 20px;
  }
  
  .age-specific-section h4 {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .expert-advice {
    padding: 60px 20px;
  }

  .expert-quote {
    padding: 25px 15px;
  }

  .expert-quote::before {
    font-size: 3rem;
    left: 15px;
  }

  .cta-section {
    padding: 60px 20px;
  }

  .cta-content h2 {
    font-size: 1.8rem;
  }

  .cta-content p {
    font-size: 1rem;
  }
  
  .elderly-header,
  .pet-header,
  .age-header {
    padding: 20px !important;
  }

  .elderly-header h5,
  .pet-header h5,
  .age-header h5 {
    font-size: 1.3rem !important;
  }

  .elderly-content,
  .pet-content,
  .age-content {
    padding: 25px 20px !important;
  }
  
  .product-grid {
    grid-template-columns: 1fr !important;
    gap: 15px !important;
  }
  
  .product-card {
    margin: 0 10px;
  }
  
  .family-preparation-section {
    padding: 25px 15px;
    margin: 40px 10px;
  }
  
  .check-item {
    padding: 15px;
  }
  
  .age-content li {
    padding: 10px 0 10px 30px;
  }
  
  .age-specific-section h4 {
    font-size: 1.4rem;
  }
  
  .age-header i {
    font-size: 1.8rem;
    padding: 8px;
  }
}

/* 年齢別カード（子育て世帯）- 改善版 */
.age-card {
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid #f1f3f4;
  position: relative;
}

.age-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.age-card:nth-child(1) .age-header {
  background: linear-gradient(135deg, #ff6b9d, #e91e63);
}

.age-card:nth-child(2) .age-header {
  background: linear-gradient(135deg, #4fc3f7, #03a9f4);
}

.age-card:nth-child(3) .age-header {
  background: linear-gradient(135deg, #66bb6a, #4caf50);
}

.age-header {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  padding: 25px 30px;
  display: flex;
  align-items: center;
  gap: 15px;
  position: relative;
}

.age-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
}

.age-header i {
  font-size: 2.2rem;
  opacity: 0.9;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
}

.age-header h5 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.age-content {
  padding: 30px;
}

.age-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.age-content li {
  margin-bottom: 15px;
  padding: 12px 0 12px 35px;
  position: relative;
  line-height: 1.6;
  border-bottom: 1px solid #f8f9fa;
  transition: background-color 0.2s ease;
}

.age-content li:hover {
  background-color: #f8f9fa;
  border-radius: 8px;
  border-bottom: 1px solid transparent;
}

.age-content li:last-child {
  border-bottom: none;
}

.age-content li::before {
  content: '👶';
  position: absolute;
  left: 0;
  top: 12px;
  font-size: 18px;
  width: 24px;
  height: 24px;
  background: #fff8e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

/* 幼児期のアイコンを変更 */
.age-card:nth-child(2) .age-content li::before {
  content: '🧒';
}

/* 学童期のアイコンを変更 */
.age-card:nth-child(3) .age-content li::before {
  content: '👦';
  background: #e8f5e8;
}

.age-content strong {
  color: #2c3e50;
  font-weight: 600;
}

/* 年齢別セクション全体のスタイル */
.age-specific-section {
  margin: 40px 0;
}

.age-specific-section h4 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 30px;
  position: relative;
}

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

/* 家族準備セクション */
.family-preparation-section {
  margin: 60px 0;
  padding: 40px;
  background: #f8f9fa;
  border-radius: 20px;
  border-left: 5px solid var(--primary-color);
}

.family-preparation-section h4 {
  font-size: 1.6rem;
  color: var(--secondary-color);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.family-preparation-section h4::before {
  content: '📋';
  font-size: 1.8rem;
}

/* チェックリストのスタイル */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.check-item {
  background: white;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.check-item:hover {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.check-item label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 600;
  color: var(--text-color);
  cursor: pointer;
  margin-bottom: 10px;
}

.check-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--primary-color);
  cursor: pointer;
  margin-top: 2px;
}

.check-detail {
  margin-left: 32px;
}

.check-detail p {
  margin: 0;
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
}

/* 商品推薦大セクション */
.product-recommendations-large {
  margin: 60px 0;
}

.product-recommendations-large h4 {
  font-size: 1.8rem;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 40px;
  position: relative;
}

.product-recommendations-large h4::before {
  content: '🛍️';
  font-size: 2rem;
  margin-right: 10px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

.product-card {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  border: 1px solid #f1f3f4;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.product-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.rating {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 255, 255, 0.95);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #ff9800;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-info {
  padding: 25px;
}

.product-info h4 {
  font-size: 1.2rem;
  color: var(--text-color);
  margin-bottom: 10px;
  line-height: 1.3;
}

.product-info p {
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.product-features span {
  background: #e3f2fd;
  color: #1976d2;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.product-features i {
  font-size: 0.7rem;
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #e91e63;
}

.btn.primary-btn {
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn.primary-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(45, 93, 215, 0.3);
} 