Is the military and civilian family an idiom?

Yes

According to Baidu Encyclopedia, a military-civilian family is an idiom, which means that a soldier and the people are a family and describe them as close.

Idioms, everyone says they have become words, and so do idioms. Idioms are mostly four-character, and some are three-character, five-character or even more than seven-character.