In ancient times , in many cases , capitals were located in places near kyoto , nara and their surrounding area , and areas including yamashiro province , yamao province , settsu province , kawachi province and izumi province (part of kyoto prefecture , nara prefecture , osaka prefecture and part of hyogo prefecture ) were collectively called the kinai region (which means within the wall ) (provinces surrounding kyoto and nara ). 古くは京都や奈良、及びその周辺に都(みやこ)が置かれていたことが多く、山城国、大和国、摂津国、河内国、和泉国(京都府の一部、奈良県、大阪府、兵庫県の一部)は併せて畿内(「畿」はかきね・門の内側。