Japanese, Brazilian leaders agree to protect Amazon rainforest