Mileage is awarded based on fare class you fly. For example someone flying with an expensive business class ticket might get 125% miles, but someone with a discounted economy ticket would only get 30% of miles.
Here's a chart:
http://www.ana.co.jp/wws/japan/e/local/int/fare/