  //アコーディオン
$(function() {
   $('#accordion dd').hide();
   $('#accordion dt a').click(function(){
       $('#accordion dd').slideUp();
       $(this).parent().next().slideDown();
       return false;
   });
});



  //アコーディオン
$(document).ready(function() {
	$(".navi4").hover(function(){
		$(this).css("cursor","pointer"); 
	},function(){
		$(this).css("cursor","default"); 
		});
	$(".navi4").click(function(){
		$(this).next().slideToggle("slow");
		});
});


  //ロゴ
$(function(){ 
	$("#home").css({"position":"relative","top":"-60px"});
   $("#home").animate({ top:0 },1000,"swing"); 
}); 

//IE8 pngジャギー除去
$(function() {
    if(navigator.userAgent.indexOf("MSIE") != -1) {
        $('img').each(function() {
            if($(this).attr('src').indexOf('.png') != -1) {
                $(this).css({
                    'filter': 'progid:DXImageTransform.Microsoft.AlphaImageLoader(src="' +
                    $(this).attr('src') +
                    '", sizingMethod="scale");'
                });
            }
        });
    }
});



$(function(){ 
$("#shopImage01").css({"position":"relative" , "top":"-100px"});
$("#shopImage01").animate({ top:0 },1700,"swing"); 
$("#shopImage02").css({"position":"relative" , "top":"-300px"});
$("#shopImage02").animate({ top:0 },1700,"swing"); 
$("#shopImage03").css({"position":"relative" , "top":"-500px"});
$("#shopImage03").animate({ top:0 },1700,"swing"); 
$("#shopImage04").css({"position":"relative" , "top":"-800px"});
$("#shopImage04").animate({ top:0 },1700,"swing"); 

$("#shopImage").css({"display":"none"});
$("#shopImage").fadeIn(2000);
$("#shop #content").css({"display":"none"});
$("#shop #content").fadeIn(2000);
$("#blog #content").css({"display":"none"});
$("#blog #content").fadeIn(2000);

}); 


	// Easingの追加  
jQuery.easing.quart = function (x, t, b, c, d) {  
    return -c * ((t=t/d-1)*t*t*t - 1) + b;  
};  
/*------------------------------------- 
 ページ読み込み中 
-------------------------------------*/  
jQuery(document).ready(function(){  
    //  
    // <a href="#***">の場合、スクロール処理を追加  
    //  
    jQuery('a[href^=#]').click(function() {  
        if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) {  
            var $target = jQuery(this.hash);  
            $target = $target.length && $target || jQuery('[name=' + this.hash.slice(1) +']');  
            if ($target.length) {  
                var targetOffset = $target.offset().top;  
                jQuery('html,body').animate({ scrollTop: targetOffset }, 1200, 'quart');  
                return false;  
                
            }  
        }  
    });  
});
