What script was used first in japan HiraganaKatakana or Kanji?

kanji