Spectrum coexistence capability is particularly important for radar systems in complex electromagnetic environments, since it can suppress interference arising from signals in the common frequency band. In this paper, a unimodular waveform design method based on the Karush-Kuhn-Tucker (KKT) conditions is proposed to design transmit waveforms with spectral coexistence and pulse-like autocorrelation function. First, we construct the joint optimization problem as a stopband minimization problem subject to energy spectral density (ESD) and amplitude constraints. Subsequently, the constructed optimization problem is decomposed into multiple subproblems with a single constraint. In particular, we solve the coupling variables by analyzing the KKT conditions for the coupling subproblem. The proposed method achieves simultaneous optimization of spectral coexistence and pulse-like autocorrelation by constructing a new optimization framework and introducing a proximal algorithm, which also reduces the computational complexity and improves the efficiency of waveform design. Numerical simulation results demonstrate the effectiveness of the proposed method in terms of runtime and waveform characteristics.