jQuery(function() { jQuery("a[href^=#]").click(function(){ var elmID = jQuery(this).attr("href"); var posi = 0; if(jQuery(elmID).size()){ posi = jQuery(elmID).offset().top -0; BodySlider(posi); return false; } }); function BodySlider(HashOffset){ jQuery("html,body").animate({ scrollTop: HashOffset }, 600); } }); /*============================================== �X���C�h�V���[ ==============================================*/ $(function() { $('.slider').slick({ prevArrow: '', nextArrow: '', infinite: true, dots: false, slidesToShow: 1, centerMode: true, //�v�f�𒆉��� centerPadding:'10%', //���T�C�h�̌����Ă��镔���̃T�C�Y autoplay:true, //�����Đ� responsive: [{ breakpoint: 480, settings: { centerMode: true, } }] }); }); $(function(){ $('#contents2 .inner').matchHeight(); $('#contents2 .inner .ttl01').matchHeight(); $('#contents2 .inner .main-text').matchHeight(); $('.STF_WEBNAME').matchHeight(); }); /*============================================== �w�b�_�[�ʒu����h�~ ==============================================*/ $(function () { var headerHight = 70; //�w�b�_�̍��� $('a[href^=#]').click(function(){ var href= $(this).attr("href"); var target = $(href == "#" || href == "" ? 'html' : href); var position = target.offset().top-headerHight; //�w�b�_�̍������ʒu�����炷 $("html, body").animate({scrollTop:position}, 550, "swing"); return false; }); });