Japanese shares close mixed as tech stocks under pressure