Complex sentence: These were more advanced than the confectionery technology of Japan in those days, and served at the Imperial Court event, and were offered to Shintoist and Buddhist deities.
Split into simpler sentences: These were more advanced than the confectionery technology of Japan in those days. They were served at the Imperial Court and offered to Shintoist and Buddhist deities.