/* disaster_knowhow.css - 防災ノウハウページ専用スタイル */

/* ベースとなるページレイアウト */
.disaster-knowhow-page {
  font-family: 'Noto Sans JP', sans-serif;
  line-height: 1.6;
  color: #333;
}

/* イントロセクション */
.intro-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  margin-bottom: 40px;
}

.intro-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.intro-text h2 {
  font-size: 2.5rem;
  color: #d63384;
  margin-bottom: 20px;
  font-weight: 700;
}

.intro-text p {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 40px;
}

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

.stat-item {
  text-align: center;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(214, 51, 132, 0.1);
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: #d63384;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 500;
}

/* ノウハウカテゴリーセクション */
.knowhow-category {
  margin-bottom: 60px;
  padding: 40px 0;
}

.knowhow-category h2 {
  font-size: 2.2rem;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-left: 15px;
  border-left: 5px solid #d63384;
}

.knowhow-category h2 i {
  margin-right: 15px;
  color: #d63384;
}

.category-description {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 40px;
  text-align: center;
}

/* ノウハウグリッド */
.knowhow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* ノウハウカード */
.knowhow-card {
  background: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

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

.knowhow-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin: 20px auto 15px;
  background: linear-gradient(135deg, #d63384, #e83e8c) !important;
  box-shadow: 0 4px 15px rgba(214, 51, 132, 0.3);
  position: relative;
  z-index: 1;
}

.knowhow-icon i {
  font-size: 1.8rem !important;
  color: white !important;
  display: block !important;
  text-align: center;
  line-height: 1;
}

/* FontAwesome フォールバック */
.knowhow-icon i:before {
  font-family: "Font Awesome 6 Free", "Font Awesome 6 Pro", "FontAwesome" !important;
  font-weight: 900 !important;
  display: inline-block !important;
}

/* 追加の確実性のためのスタイル */
.fas {
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
}

.knowhow-content {
  padding: 0 25px 25px;
}

.knowhow-content h3 {
  font-size: 1.4rem;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
  font-weight: 600;
}

.knowhow-summary {
  margin-bottom: 20px;
}

.knowhow-summary p {
  color: #6c757d;
  font-size: 1rem;
  line-height: 1.6;
}

/* 詳細セクション（初期は非表示） */
.knowhow-details {
  height: 0;
  opacity: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.knowhow-card.expanded .knowhow-details {
  height: auto;
  opacity: 1;
  padding-top: 20px;
  border-top: 2px solid #f8f9fa;
}

.knowhow-details h4 {
  font-size: 1.1rem;
  color: #d63384;
  margin-bottom: 15px;
  font-weight: 600;
}

.knowhow-details ul {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
}

.knowhow-details li {
  margin-bottom: 10px;
  padding-left: 20px;
  position: relative;
  color: #495057;
}

.knowhow-details li:before {
  content: "▶";
  position: absolute;
  left: 0;
  color: #d63384;
  font-size: 0.8rem;
}

.knowhow-details strong {
  color: #2c3e50;
}

.knowhow-tip {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  padding: 15px;
  border-radius: 10px;
  border-left: 4px solid #ffc107;
  margin-top: 15px;
}

.knowhow-tip strong {
  color: #856404;
}

/* カテゴリー別色分け */
/* 生活用品活用術 */
.knowhow-category.daily-items .knowhow-icon,
.knowhow-category:nth-child(2) .knowhow-icon {
  background: linear-gradient(135deg, #28a745, #20c997) !important;
}

.knowhow-category.daily-items .knowhow-details h4,
.knowhow-category:nth-child(2) .knowhow-details h4 {
  color: #28a745;
}

.knowhow-category.daily-items h2,
.knowhow-category:nth-child(2) h2 {
  border-left-color: #28a745;
}

.knowhow-category.daily-items h2 i,
.knowhow-category:nth-child(2) h2 i {
  color: #28a745;
}

/* 食料・水確保術 */
.knowhow-category.food-water .knowhow-icon,
.knowhow-category:nth-child(3) .knowhow-icon {
  background: linear-gradient(135deg, #007bff, #6610f2) !important;
}

.knowhow-category.food-water .knowhow-details h4,
.knowhow-category:nth-child(3) .knowhow-details h4 {
  color: #007bff;
}

.knowhow-category.food-water h2,
.knowhow-category:nth-child(3) h2 {
  border-left-color: #007bff;
}

.knowhow-category.food-water h2 i,
.knowhow-category:nth-child(3) h2 i {
  color: #007bff;
}

/* 電源・通信確保術 */
.knowhow-category.power-communication .knowhow-icon,
.knowhow-category:nth-child(4) .knowhow-icon {
  background: linear-gradient(135deg, #ffc107, #fd7e14) !important;
}

.knowhow-category.power-communication .knowhow-details h4,
.knowhow-category:nth-child(4) .knowhow-details h4 {
  color: #ffc107;
}

.knowhow-category.power-communication h2,
.knowhow-category:nth-child(4) h2 {
  border-left-color: #ffc107;
}

.knowhow-category.power-communication h2 i,
.knowhow-category:nth-child(4) h2 i {
  color: #ffc107;
}

/* 避難・移動術 */
.knowhow-category.evacuation .knowhow-icon,
.knowhow-category:nth-child(5) .knowhow-icon {
  background: linear-gradient(135deg, #6f42c1, #e83e8c) !important;
}

.knowhow-category.evacuation .knowhow-details h4,
.knowhow-category:nth-child(5) .knowhow-details h4 {
  color: #6f42c1;
}

.knowhow-category.evacuation h2,
.knowhow-category:nth-child(5) h2 {
  border-left-color: #6f42c1;
}

.knowhow-category.evacuation h2 i,
.knowhow-category:nth-child(5) h2 i {
  color: #6f42c1;
}

/* 健康・衛生管理術 */
.knowhow-category.health-hygiene .knowhow-icon,
.knowhow-category:nth-child(6) .knowhow-icon {
  background: linear-gradient(135deg, #dc3545, #fd7e14) !important;
}

.knowhow-category.health-hygiene .knowhow-details h4,
.knowhow-category:nth-child(6) .knowhow-details h4 {
  color: #dc3545;
}

.knowhow-category.health-hygiene h2,
.knowhow-category:nth-child(6) h2 {
  border-left-color: #dc3545;
}

.knowhow-category.health-hygiene h2 i,
.knowhow-category:nth-child(6) h2 i {
  color: #dc3545;
}

/* 心理・コミュニケーション術 */
.knowhow-category.psychology-communication .knowhow-icon,
.knowhow-category:nth-child(7) .knowhow-icon {
  background: linear-gradient(135deg, #17a2b8, #6610f2) !important;
}

.knowhow-category.psychology-communication .knowhow-details h4,
.knowhow-category:nth-child(7) .knowhow-details h4 {
  color: #17a2b8;
}

.knowhow-category.psychology-communication h2,
.knowhow-category:nth-child(7) h2 {
  border-left-color: #17a2b8;
}

.knowhow-category.psychology-communication h2 i,
.knowhow-category:nth-child(7) h2 i {
  color: #17a2b8;
}

/* CTAセクション */
.cta-section {
  background: linear-gradient(135deg, #2c3e50 0%, #3498db 100%);
  padding: 80px 0;
  text-align: center;
  color: white;
  margin-top: 60px;
}

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

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

.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 1rem;
}

.primary-btn {
  background: #d63384;
  color: white;
  border-color: #d63384;
}

.primary-btn:hover {
  background: #b02a5b;
  border-color: #b02a5b;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(214, 51, 132, 0.3);
}

.secondary-btn {
  background: transparent;
  color: white;
  border-color: white;
}

.secondary-btn:hover {
  background: white;
  color: #2c3e50;
  transform: translateY(-2px);
}

/* 展開インジケーター */
.knowhow-card:after {
  content: "+";
  position: absolute;
  top: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  background: rgba(214, 51, 132, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  color: #d63384;
  transition: all 0.3s ease;
}

.knowhow-card.expanded:after {
  content: "−";
  transform: rotate(180deg);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .intro-text h2 {
    font-size: 2rem;
  }
  
  .knowhow-category h2 {
    font-size: 1.8rem;
  }
  
  .knowhow-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .knowhow-content {
    padding: 0 20px 20px;
  }
  
  .cta-content h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .intro-section {
    padding: 40px 0;
  }
  
  .intro-text h2 {
    font-size: 1.8rem;
  }
  
  .knowhow-category {
    margin-bottom: 40px;
    padding: 20px 0;
  }
  
  .knowhow-category h2 {
    font-size: 1.6rem;
    padding-left: 10px;
  }
  
  .knowhow-content h3 {
    font-size: 1.2rem;
  }
  
  .cta-section {
    padding: 60px 0;
  }
  
  .cta-content h2 {
    font-size: 1.8rem;
  }
} 