How did Japan respond to domestic social changes and the challenges posed by contact with foreign cultures? according to ap "the earth in it people" textbook