Micromagnetic Study on Influence of the Magnetic Field Direction on the Domain Structure in Stacked Media