Japan, once a family-based, group-oriented society, is becoming a place where people live alone.