/* long_term_food_storage.php 専用CSS */

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

/* 基本レイアウト */
.long-term-food-storage-page {
  min-height: 100vh;
  background: #ffffff;
}

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

/* 概要セクション */
.long-term-overview {
  padding: 80px 0;
  background: #ffffff;
}

.long-term-overview h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 700;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

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

.overview-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.overview-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.overview-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.overview-card h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 600;
}

.overview-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.overview-card li {
  margin-bottom: 12px;
  padding-left: 25px;
  position: relative;
  color: var(--text-light);
  line-height: 1.6;
}

.overview-card li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

/* ケーススタディセクション */
.case-study {
  padding: 80px 0;
  background: var(--bg-light);
}

.case-content {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 50px;
  align-items: center;
}

.case-text h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 700;
}

.case-year {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-color);
  margin-bottom: 20px;
}

.case-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  line-height: 1.7;
  margin-bottom: 30px;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.stat-item {
  text-align: center;
  padding: 20px;
  background: #ffffff;
  border-radius: 15px;
  border-left: 4px solid var(--primary-color);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.stat-number {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

.case-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* 商品推薦セクション */
.product-recommendations {
  padding: 80px 0;
  background: #ffffff;
}

.product-recommendations h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 700;
}

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

.product-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

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

.product-card.featured {
  border-top: 4px solid var(--warning-color);
  position: relative;
}

.product-card.featured::before {
  content: 'おすすめ';
  position: absolute;
  top: 15px;
  right: 15px;
  background: var(--warning-color);
  color: white;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  z-index: 2;
}

.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;
  left: 15px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 2;
}

.rating i {
  color: #fbbf24;
  margin-right: 3px;
}

.product-info {
  padding: 25px;
}

.product-info h4 {
  font-size: 1.3rem;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 600;
  line-height: 1.4;
}

.product-info p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

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

.product-features span {
  background: var(--bg-light);
  padding: 6px 12px;
  border-radius: 15px;
  font-size: 0.8rem;
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.product-features i {
  color: var(--success-color);
  margin-right: 5px;
}

.price-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 備蓄レベルセクション */
.food-levels {
  padding: 80px 0;
  background: var(--bg-light);
}

.food-levels h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--text-color);
  font-weight: 700;
}

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

.level-card {
  background: #ffffff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

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

.basic-level .level-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
}

.comfort-level .level-header {
  background: linear-gradient(135deg, var(--success-color), #059669);
}

.independence-level .level-header {
  background: linear-gradient(135deg, var(--warning-color), #d97706);
}

.level-header {
  padding: 30px;
  color: white;
  text-align: center;
}

.level-header h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: white;
  font-weight: 600;
}

.level-period {
  font-size: 1rem;
  opacity: 0.9;
  font-weight: 500;
}

.level-content {
  padding: 30px;
}

.level-content p {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 25px;
}

.level-features {
  list-style: none;
  padding: 0;
  margin-bottom: 25px;
}

.level-features li {
  padding: 10px 0;
  color: var(--text-light);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
}

.level-features li:last-child {
  border-bottom: none;
}

.level-features li::before {
  content: '✓';
  color: var(--success-color);
  font-weight: 600;
  margin-right: 12px;
  font-size: 1.1rem;
}

.level-capacity {
  background: var(--bg-light);
  padding: 20px;
  border-radius: 15px;
  text-align: center;
  color: var(--primary-color);
  font-weight: 600;
}

/* カテゴリータブセクション */
.food-categories {
  padding: 80px 0;
  background: #ffffff;
}

.food-categories h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-color);
  font-weight: 700;
}

.tab-navigation {
  display: flex;
  justify-content: center;
  margin-bottom: 50px;
  flex-wrap: wrap;
  gap: 10px;
}

.tab-btn {
  background: #ffffff;
  border: 2px solid var(--border-color);
  color: var(--text-light);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 0.95rem;
}

.tab-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: var(--text-color);
  font-weight: 600;
}

.tab-content > p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.7;
}

/* 計算機セクション */
.nutrition-calculator {
  padding: 80px 0;
  background: var(--bg-light);
}

.nutrition-calculator h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 40px;
  color: var(--text-color);
  font-weight: 700;
}

.calculator-card {
  background: #ffffff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  max-width: 800px;
  margin: 0 auto;
  display: none;
  transition: all 0.3s ease;
}

.calculator-card.active {
  display: block;
}

#calculator-wrapper {
  min-height: 500px;
}

.calculator-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--text-color);
}

.input-group input,
.input-group select {
  padding: 12px 15px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.input-group input:focus,
.input-group select:focus {
  outline: none;
  border-color: var(--primary-color);
}

.calculator-results {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 15px;
  margin-top: 20px;
}

.calculator-results h3 {
  margin-bottom: 20px;
  color: var(--text-color);
  font-size: 1.5rem;
  text-align: center;
}

.result-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-color);
}

.result-item:last-child {
  border-bottom: none;
}

.result-label {
  color: var(--text-light);
  font-weight: 500;
}

.result-value {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
}

/* 専門家アドバイスセクション */
.expert-advice {
  padding: 80px 0;
  background: #f8f9fa;
}

.expert-advice h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 60px;
  color: var(--text-color);
  font-weight: 700;
}

.expert-content {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}

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

.expert-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--accent-color);
  margin-bottom: 20px;
}

.expert-info h3 {
  font-size: 1.3rem;
  margin-bottom: 5px;
  color: var(--text-color);
  font-weight: 600;
}

.expert-info p {
  font-size: 0.9rem;
  color: #666;
  margin: 0;
}

.expert-quote {
  background: white;
  padding: 30px;
  border-radius: 15px;
  border-left: 4px solid var(--accent-color);
}

.expert-quote p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin: 0;
  font-style: italic;
}

/* 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;
  font-weight: 700;
}

.cta-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.primary-btn {
  background: #ffffff;
  color: var(--primary-color);
  border: 2px solid #ffffff;
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  transform: translateY(-2px);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }

  .long-term-overview,
  .case-study,
  .product-recommendations,
  .food-levels,
  .food-categories,
  .nutrition-calculator,
  .expert-advice,
  .cta-section {
    padding: 60px 0;
  }

  .long-term-overview h2,
  .case-study h2,
  .product-recommendations h2,
  .food-levels h2,
  .food-categories h2,
  .nutrition-calculator h2,
  .expert-advice h2,
  .cta-content h2 {
    font-size: 2rem;
  }

  .overview-grid,
  .levels-grid,
  .product-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .case-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

  .expert-content {
    grid-template-columns: 1fr;
    gap: 30px;
    text-align: center;
  }

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

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

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

  .tab-navigation {
    flex-direction: column;
    align-items: center;
  }

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

  .calculator-card {
    padding: 30px 25px;
  }

  .calculator-inputs {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 480px) {
  .overview-card,
  .level-card,
  .product-card {
    margin: 0 10px;
  }

  .level-content,
  .product-info {
    padding: 20px;
  }

  .calculator-card {
    margin: 0 10px;
  }

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

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

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

  .cta-content p {
    font-size: 1rem;
  }
}
