TOKYO - Japan's ruling parties agreed Friday that the country should pledge to acquire a "counterstrike capability" to address the rapid deterioration of the regional security environment, heralding a major shift in the nation's security policy.