// JavaScript Document

function mainvisual(){

imgH=$(".main-visual img:first").outerHeight(true);
		
h3H=$(".main-visual h3:first").outerHeight(true);
ulH=$(".main-visual ul:first").outerHeight(true);
pH=$(".main-visual p:first").outerHeight(true);

if(imgH > h3H+ulH+pH){
	$(".main-visual p:first").height(imgH-(h3H+ulH));
}
}

$(function(){mainvisual()})
