/* ===========================
   栄養成分カード専用スタイル
   参考資料に基づくデザイン改善
=========================== */

/* 基本スタイル */
.modal-unified-base.theme-food-detail .nutri-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 0.9rem;
  margin-bottom: 1.4rem;
}

.modal-unified-base.theme-food-detail .nutri-card {
  background: #f0f0f0;
  padding: 1rem 0.6rem;
  border-radius: 12px;
  text-align: center;
}

.modal-unified-base.theme-food-detail .nutri-card span {
  display: block;
  font-size: 0.75rem;
  color: #666;
}

.modal-unified-base.theme-food-detail .nutri-card strong {
  display: block;
  font-size: 1.1rem;
  margin-top: 3px;
  font-weight: 600;
  color: #111;
}

/* デスクトップ対応 (1024px以上) */
@media (min-width: 1024px) {
  .modal-unified-base.theme-food-detail .nutri-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 1.2rem;
    margin-bottom: 1.8rem;
  }
  
  .modal-unified-base.theme-food-detail .nutri-card {
    padding: 1.2rem 0.9rem;
  }
}

/* タブレット対応 (768px以下) */
@media (max-width: 768px) {
  .modal-unified-base.theme-food-detail .nutri-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  
  .modal-unified-base.theme-food-detail .nutri-card {
    padding: 1rem 0.8rem;
  }
}

/* モバイル対応 (480px以下) */
@media (max-width: 480px) {
  .modal-unified-base.theme-food-detail .nutri-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    margin-bottom: 1.2rem;
  }
  
  .modal-unified-base.theme-food-detail .nutri-card {
    padding: 0.9rem 0.5rem;
    font-size: 0.7rem;
  }
  
  .modal-unified-base.theme-food-detail .nutri-card strong {
    font-size: 1rem;
  }
}