Irimoya (入母屋) is a hip-and-gable roof (or a bulding with this roof construction). The "hip" are slopes down all four sides of the building, while the "gable" is used on the two ends of the building. The largest slopes were set over the front and the back, while the gable and smaller slopes were set at the sides.
The roof is built over the moya. The gable is usually right above the moya, while the hip covered the hisashi.
— History
This roof style was introduced from China with Buddhism in the mid 6th century. This style was originally used over the main hall of a Buddhist temple, as well as its lecture halls.
Later on, it began to be used for Shinto shrines, palaces, folk homes, and castles. On folk homes, it is called moya-zukuri (母屋造).