Parties may establish, by agreement, the country in which they are permitted to file an action with the courts.
当事者は、合意により、いずれの国の裁判所に訴えを提起することができるかについて定めることができる。
An agreement as referred to in the preceding paragraph is not valid unless it is made regarding actions that are based on a specific legal relationship, and executed by means of a paper document.
前項の合意は、一定の法律関係に基づく訴えに関し、かつ、書面でしなければ、その効力を生じない。
If electronic or magnetic records (meaning records used in computer data processing which are created in electronic form, magnetic form, or any other form that is otherwise impossible to perceive through the human senses alone; the same applies below) in which the content of an agreement as referred to in paragraph (1) is recorded are used to execute that agreement, the agreement is deemed to have been executed by means of a paper document and the provisions of the preceding paragraph apply.
An agreement that an action may be filed only with the courts of a foreign country may not be invoked if those courts are unable to exercise jurisdiction by law or in fact.
外国の裁判所にのみ訴えを提起することができる旨の合意は、その裁判所が法律上又は事実上裁判権を行うことができないときは、これを援用することができない。
An agreement as referred to in paragraph (1) which covers consumer contract disputes that may arise in the future is valid only in the following cases:
if the agreement provides that an action may be filed with the courts of the country where the consumer was domiciled at the time the consumer contract was concluded (except in the case stated in the following item, any agreement that an action may be filed only with a court of such a country is deemed not to preclude the filing of an action with a court of any other country);
if the consumer, in accordance with that agreement, has filed an action with the courts of the agreed-upon country, or if an enterprise has filed an action with the Japanese courts or with the courts of a foreign country and the consumer has invoked that agreement.
An agreement as referred to in paragraph (1) which covers civil disputes over individual labor relationships that may arise in the future is valid only in the following cases:
将来において生ずる個別労働関係民事紛争を対象とする第一項の合意は、次に掲げる場合に限り、その効力を有する。
if the agreement is made at the time a labor contract ends, and establishes that an action may be filed with the courts of the country where the place that the labor was being provided as of that time is located (except in the case stated in the following item, an agreement that an action may be filed only with the courts of such a country is deemed not to preclude the filing of an action with the courts of any other country);
労働契約の終了の時にされた合意であって、その時における労務の提供の地がある国の裁判所に訴えを提起することができる旨を定めたもの(その国の裁判所にのみ訴えを提起することができる旨の合意については、次号に掲げる場合を除き、その国以外の国の裁判所にも訴えを提起することを妨げない旨の合意とみなす。)であるとき。
if the worker, in accordance with that agreement, files an action with the courts of the agreed-upon country; or if the enterprise files an action with the Japanese courts or with the courts of a foreign country and the worker invokes that agreement.
労働者が当該合意に基づき合意された国の裁判所に訴えを提起したとき、又は事業主が日本若しくは外国の裁判所に訴えを提起した場合において、労働者が当該合意を援用したとき。
Read this with the articles around it