If the term of employment exceeds five years, or the end of the term is not fixed, either party may cancel the contract at any time after the passage of five years.
雇用の期間が五年を超え、又はその終期が不確定であるときは、当事者の一方は、五年を経過した後、いつでも契約の解除をすることができる。
If a person seeking to cancel a contract pursuant to the provisions of the preceding paragraph must give notice three months in advance if the person is an employer, or two weeks in advance if the person is an employee.
前項の規定により契約の解除をしようとする者は、それが使用者であるときは三箇月前、労働者であるときは二週間前に、その予告をしなければならない。
cancellation
解除
Ending a contract by one party's notice to the other, where the contract or the law gives that party a right to cancel (Civil Code, Article 540, paragraph (1)). The Civil Code lets a party cancel for the other's failure to perform: after a demand to perform within a reasonable time that is not met, unless what is still missing is minor (Article 541), or at once where performance has become wholly impossible, or the other party has clearly refused to perform, among other cases where performance clearly will not come (Article 542, paragraph (1)). On cancellation each party must put the other back in the position before the contract, and damages can still be claimed (Article 545, paragraphs (1) and (4)); a lease, though, ends only from then on (Article 620). Cancellation differs from rescission (取消し), after which the act is treated as void from the start (Article 121).
Written for this site using Civil Code, Arts. 121, 540, 541, 542, 545, 620 as a reference.