Japan declares state of emergency