there are 23 pages of posts and explanations on how to convert a chd, create a chd from an img and deal with a .defs, I highly recommend learning the basics and understanding that the name of the .bin and .chd doesn't matter, but it is important that they coincide with the name associated with the .arcadedefs
here you can find media ID :
https://github.com/mamedev/mame/blob/master/src/mame/namco/namcops2.cpp
and in the specific case for Idol Master the name is NM00022 IDM1-HA (HDD).chd