$(function(){$('a[href^="#"]').click(function(){var href=$(this).attr('href');var target=$(href=='#'||href==''?'html':href);var position=target.offset().top;$('body,html').animate({scrollTop:position},400,'swing');return false;});var windowWidth = $(window).width();$('#footNavi').hide();if(windowWidth < 768){$(window).scroll(function(){if($(this).scrollTop()>200){$('#footNavi').fadeIn();}else{$('#footNavi').fadeOut();}});}$('.pagetop').hide();$(window).scroll(function(){if($(this).scrollTop()>300){$('.pagetop').fadeIn();}else{$('.pagetop').fadeOut();}});$('.menu-btn-inner-link').click(function(){$('#checked').prop('checked',!$('#checked').prop('checked'));});$('.card').css('cursor','pointer');$('.card').click(function(){window.location.href=$(this).find('a').attr('href');});});