Amorphous carbon nitride (a-CNx) films, prepared by reactive radio frequency magnetron sputtering, exhibit unique characteristics under visible light irradiation, referred to as photoinduced deformation. This phenomenon represents an energy conversion system wherein photon energy transforms into kinetic energy. The chemical bonding structure of a-CNx films was analyzed using near-edge x-ray absorption fine structure (NEXAFS) at the NewSUBARU synchrotron facility of the University of Hyogo, Japan. This analysis aimed to elucidate the mechanisms behind the photoinduced deformation observed in a-CNx films. Three variants of a-CNx films, displaying varying degrees of photoinduced deformation, were deposited using a graphite target and nitrogen gas under different deposition temperatures. The NEXAFS spectra of the a-CNx films with substantial photoinduced deformation showed changes under light irradiation from a Xe lamp (directed through an optical window within the NEXAFS chamber). Specifically, the peaks corresponding to the 1s to π* transition related to C—C and 1s to σ* transition related to C—N bonds exhibited high sensitivity to visible light irradiation. Simultaneously, the N K-edge spectra associated with the 1s to π* transition, attributed to the N—C bond, exhibited a slight intensity decrease. Conversely, the C K-edge spectrum in the a-CNx films displaying minimal photoinduced deformation remained unchanged under visible light irradiation. The N K-edge spectra maintained a consistent shape under both visible light and dark conditions.