//━━━━━━━━━━━━━━━━━━━━━━━━━━━
//
//	グローバルナビ／アニメーション
//
//━━━━━━━━━━━━━━━━━━━━━━━━━━━

jQuery(function(){
    jQuery('#globalNavi li a').hover(
        function() {
            jQuery(this).stop().animate({"opacity":0});
        },
        function() {
            jQuery(this).stop().animate({"opacity":1});
        }
    );
});

jQuery(function(){
    jQuery('#globalNavi .current-menu-item a').hover(
        function() {
            jQuery(this).stop().animate({"opacity":1});
        },
        function() {
            jQuery(this).stop().animate({"opacity":1});
        }
    );
});





//━━━━━━━━━━━━━━━━━━━━━━━━━━━
//
//	スムース・スクロール（ページトップ）
//
//━━━━━━━━━━━━━━━━━━━━━━━━━━━
jQuery(function() {
	jQuery('.page_top a').click(function() {
      // アンカーの値取得
      var href= jQuery(this).attr("href");
      // 移動先を取得
      var target = jQuery(href == "#" || href == "" ? 'html' : href);
      // 移動先を数値で取得
      var position = target.offset().top;
      // スムーススクロール
      jQuery(jQuery.browser.safari ? 'body' : 'html').animate({scrollTop:position}, { duration: 1000, easing: 'easeInQuad', } );
      return false;
   });
});






//━━━━━━━━━━━━━━━━━━━━━━━━━━━
//
//	トップページ／メイン看板┃フェードイン
//
//━━━━━━━━━━━━━━━━━━━━━━━━━━━
jQuery(document).ready(function() {
    jQuery('#top_cont_area1_inner1, #top_cont_area1_inner1 img, #top_cont_area1_inner1 .bottomArea_source').fadeIn({ duration: 2500, easing: 'easeInCubic', });
    });


//━━━━━━━━━━━━━━━━━━━━━━━━━━━
//
//	トップページ／ピックアップ┃一番右の余白をゼロに
//
//━━━━━━━━━━━━━━━━━━━━━━━━━━━

jQuery("#top_pickup ul").find("li:last").css("margin", "0");

//━━━━━━━━━━━━━━━━━━━━━━━━━━━
//
//	ul_borderB_1px┃<li>の最後のボーダーを削除
//
//━━━━━━━━━━━━━━━━━━━━━━━━━━━

jQuery(function() {
	jQuery("ul.ul_borderB_1px").each(function() {
		jQuery("li:last-child").css('border', 'none');
		jQuery("li:last-child").css('padding', '0');
		jQuery("li:last-child").css('margin', '0 0 3px 0');
	});
	jQuery("#top_cont_mid3 .inner ul").each(function() {
		jQuery("li:last-child").css('border', 'none');
		jQuery("li:last-child").css('padding', '0');
		jQuery("li:last-child").css('margin', '0 0 25px 0');
	});
});



//━━━━━━━━━━━━━━━━━━━━━━━━━━━
//
//	グローバルナビ／スケジュールを別窓で開く
//
//━━━━━━━━━━━━━━━━━━━━━━━━━━━
jQuery(document).ready( function () {
    jQuery('#globalNavi #menu-item-82 a').click(function(){
        window.open(this.href, '_blank');
        return false;
    });
});




