Well child porn is illegal, but all the rest are legal, depending if you're the same age as the guideline suggests. But that's just a formality, I think.
Well, you're half-right. In japan, anime featuring 2 people that look under 18 is legal so long as it doesn't show any genitalia. Find it kinda weird, but meh, I don't make the crazy japanese laws....