Sell your iPhone 4. Use the money toward the purchase of an iPhone 5.
Apple does not do trade ins.
Be advises, all iPhones sold in Japan by wireless carriers are locked to the
wireless carrier that sold it and no wireless carriers in Japan offer unlocking.
When/if you leave Japan, sell the iPhone that you purchased there before
leaving as it will be useless outside of Japan.