A political system that prioritizes the needs of the society over individual freedoms is called collectivism.
Japan is the perfect example of a collectivist society - it is a country where individuals are not as important as the entire society, and its members are aware of that. This is why they usually put their own lives aside in order to contribute to the entire country and its society.