window.addEventListener("DOMContentLoaded",function(o){new ppAccordion({tg:".ac-container",id:"aca",close:!1}),new ppAccordion({tg:".ac-container2",id:"aca2",close:!0}),new ppAccordion({tg:".ac-container3",id:"aca3",close:!0})});var ppAccordion=function(o){var t=this;t.opt=o,t.obj=[],t.init(t.opt)};ppAccordion.prototype.init=function(o){for(var t=this,n=$(o.tg),i=0;i div"),t.obj[i].btn=t.obj[i].tg.find(".ac-btn"),t.obj[i].btn.attr("data-btn",i),t.obj[i].btn.on("click",function(){var o=$(this).attr("data-btn"),n=t.obj[o].in.innerHeight(),i=t.obj[o].tg.attr("id"),c=t.obj[o].btn,e=t.obj[o].container;return t.openClose(e,c,n,i),t.pageScroll(i),!1})},ppAccordion.prototype.openClose=function(o,t,n,i){var c=o.find(".ac-contents");this.opt.close&&this.allClose(),o.hasClass("accordion-open")?(c.height(0),o.removeClass("accordion-open"),o.find(".ac-more").empty().html("もっと見る")):(c.height(n),o.addClass("accordion-open"),o.find(".ac-more").empty().html("閉じる"))},ppAccordion.prototype.allClose=function(){var o=this;$(o.opt.tg).find(".ac-contents").height(0),$(o.opt.tg).removeClass("accordion-open"),$(o.opt.tg).find(".ac-more").empty().html("もっと見る")},ppAccordion.prototype.pageScroll=function(o){var t,n=$("#"+o).offset().top;t=(_ua.Mobile,-80),$("body,html").stop().animate({scrollTop:n+t},{duration:1e3,easing:"easeOutCubic"},function(){})}; var ppa2;window.addEventListener("DOMContentLoaded",function(t){ppa2=new ppAccordion2({class:".ac-menu"})});var ppAccordion2=function(t){var n=this;n.opt=t,n.ary=[],n.init()};ppAccordion2.prototype.init=function(){for(var t=this,n=$(t.opt.class),o=0;o0||d.indexOf("Android")>0&&d.indexOf("Mobile")>0?"smartphone":d.indexOf("iPad")>0||d.indexOf("Android")>0?"tablet":"pc"},e.OS=function(){return-1!==i.indexOf("windows nt")?"windows":-1!==i.indexOf("android")?"android":-1!==i.indexOf("iphone")||-1!==i.indexOf("ipad")?"ios":-1!==i.indexOf("mac os x")?"mac":void 0},e.browser=function(){return-1!=i.indexOf("msie")?-1!=b.indexOf("msie 6.")?"ie6":-1!=n.indexOf("msie 7.")?"ie7":-1!=n.indexOf("msie 8.")?"ie8":-1!=n.indexOf("msie 9.")?"ie9":-1!=n.indexOf("msie 10.")?"ie10":"ie":-1!=i.indexOf("trident")?"edge":-1!=i.indexOf("chrome")?"chrome":-1!=i.indexOf("firefox")?"firefox":-1!=i.indexOf("safari")?"safari":-1!=i.indexOf("opera")?"opera":-1!=i.indexOf("gecko")&&"gecko"}}; function getRequest(){if(location.search.length>1){for(var t=new Object,r=location.search.substr(1).split("&"),a=0;at.range?t.tg.classList.add("pageup__display"):t.tg.classList.remove("pageup__display")})}; var headerAnimation=function(e){var t=this;t.tg=document.getElementById(e.id),t.range=e.range,t.current=0,t.type=e.type,document.addEventListener("scroll",function(e){var n=window.pageYOffset;"thin"===t.type?n>300?t.tg.classList.add("head-thinly"):t.tg.classList.remove("head-thinly"):"updown"===t.type&&n>t.range&&(n>t.current?t.tg.classList.add("head-hide"):t.tg.classList.remove("head-hide"),t.current=n)})}; var loadingAction=function(t){var o=this;o.source=t.source,o.bar=$("#container"),o.init(),o.set(),window.addEventListener("load",function(){o.loaded()})};loadingAction.prototype.init=function(){var t=this;$("body").scrollTop(0),$("body").addClass("body-lock"),t.tg=$(t.source),t.tg_txt1=$(t.source).find("p span")[0],t.tg_txt2=$(t.source).find("p span")[1],t.tl=new TimelineMax,t.co=$(".wrappar")},loadingAction.prototype.set=function(){var t=this;t.tl.set(t.tg_txt1,{transform:"translateX(-100px)"}).set(t.tg_txt2,{transform:"translateX(100px)"}).to(t.tg_txt1,.5,{opacity:1,transform:"translateX(0px)",ease:Power1.easeInOut},0).to(t.tg_txt2,.5,{opacity:1,transform:"translateX(0px)",ease:Power1.easeInOut,onComplete:function(){$("body").removeClass("body-lock")}},0)},loadingAction.prototype.loaded=function(){var t=this;t.tl.to(t.tg_txt1,.5,{opacity:0,transform:"scale(1) rotateZ(0deg) translateY(-20px)",ease:Power1.easeInOut},.8).to(t.tg_txt2,.5,{opacity:0,transform:"scale(1) rotateZ(0deg) translateY(-20px)",ease:Power1.easeInOut},.8).to(t.bar,.8,{opacity:0,transform:"scaleX(0)",ease:Power1.easeInOut},.8).to(t.tg,.5,{opacity:0,ease:Power1.easeInOut,onComplete:function(){t.tg.remove()}},1.2)}; var slideMenu=function(n){var o=this;o.option=n,o.button=document.getElementById(o.option.button),o.navi=document.getElementById(o.option.nav),o.head=document.getElementById(o.header),o.body=document.body,$(o.button).on("click",function(){$(o.button).hasClass("navi-button-on")?($("body").removeClass("scroll-stop"),$(o.button).removeClass("navi-button-on"),$(o.navi).removeClass("menu-open")):($("body").addClass("scroll-stop"),$(o.button).addClass("navi-button-on"),$(o.head).removeClass("head-hide"),$(o.navi).addClass("menu-open"))})}; jQuery(function(s){s(window).on("load resize",function(){var o=s(".subNav1Trg.sntrg1,.subNav1Box.sn1b1"),t=s(".subNav1Trg.sntrg1"),e=s(".subNav1Box.sn1b1"),a=s(".subNav2Trg,.subNav2Box"),i=s(".subNav2Box"),l=s(".subNav1Trg.sntrg2,.subNav1Box.sn1b2"),n=s(".subNav1Trg.sntrg2"),v=s(".subNav1Box.sn1b2"),c=s("body"),r=0;e.stop().hide(),i.stop().hide(),v.stop().hide(),c.stop().removeClass("scroll-stop"),o.hover(function(){clearTimeout(r),v.stop().removeClass("active").slideUp("fast"),t.stop().addClass("active"),c.stop().addClass("scroll-stop"),r=setTimeout(function(){e.stop().slideDown().addClass("active")},100)},function(){t.stop().removeClass("active"),r=setTimeout(function(){e.stop().removeClass("active").slideUp(),c.stop().removeClass("scroll-stop")},300)}),a.each(function(){var o=s(this).children(".subNav2Box");s(this).hover(function(){o.stop().slideDown().addClass("active")},function(){o.stop().removeClass("active").slideUp()})}),l.hover(function(){clearTimeout(r),clearTimeout(r),e.stop().removeClass("active").slideUp("fast"),n.stop().addClass("active"),c.stop().addClass("scroll-stop"),r=setTimeout(function(){v.stop().slideDown().addClass("active")},100)},function(){n.stop().removeClass("active"),r=setTimeout(function(){v.stop().removeClass("active").slideUp(),c.stop().removeClass("scroll-stop")},300)})});var o=s(".spNavTrg"),t=".spNavBox";s(t).stop().hide(),o.on("click",function(){s(this).stop().toggleClass("active"),s(this).next(t).stop().slideToggle()})}); var contentsWindowFix=function(){var i=this;i.init=function(){i.tg=$(".fix__field"),i.update(),i.resize()},i.update=function(){for(var t=0;tn?(t=c*o,f.width(t)):(t=e,f.width(e));var d=(e-f.width())/2,h=(c-f.height())/2;f.css("left",d),f.css("top",h)}}; var prf;window.addEventListener("DOMContentLoaded",function(i){(prf=new ratioFix({feild:$("#MV-SLIDER"),box:"figure",type:"nofix",ratio:1.5,minheight:500,bp:[{w:1e3,ratio:1.5,type:"fix"},{w:400,ratio:.5,type:"fix"}]})).init()}),window.addEventListener("load",function(i){prf.loaded()});var ratioFix=function(i){this.opt=i};ratioFix.prototype.init=function(){this.sizefix()},ratioFix.prototype.loaded=function(){var i=this;$(window).on("resize",function(){setTimeout(function(){i.sizefix()},300)})},ratioFix.prototype.sizefix=function(){for(var i,t=this,o=$(window).width(),e=t.opt.bp,n=t.opt.type,r=t.opt.ratio,f=t.opt.feild.width(),p=t.opt.feild.height(),d=t.opt.minheight,a=t.opt.feild.find(t.opt.box),h={},w=0;wo&&(n=e[w].type,r=e[w].ratio);"fix"==n?((i={}).w=f,i.h=f/r,h=i):h=function(){var i={};p"),t.canvas=t.tg.find("canvas"),t.canvas.attr("width",t.width).attr("height",t.height)},this.renderCanvas()};$(function(){new renderCanvasGraph("#canvasGraph",{width:400,height:300})}); var renderGraph=function(t,r){var e=this;if(e.tg=t.tg,e.opt=t,e.data=r,e.svg,e.objAry=[],e.w=e.opt.w,e.h=e.opt.h,0==e.tg.lnegth)return!1;switch("pie"==e.opt.type&&(e.donuts=t.donuts),e.speed=.5,e.time=.1,e.step=50,t.speed&&(e.speed=t.speed),t.time&&(e.time=t.time),t.step&&(e.step=t.step),this.renderSvg(),e.opt.type){case"line":e.renderLineGraph();break;case"bar":e.renderBarGraph();break;case"barLine":e.renderBarLineGraph();break;case"pie":e.renderPieChart()}};renderGraph.prototype.renderSvg=function(){var t,r=this,e="",a="0 0 "+r.opt.w+" "+r.opt.h;switch(r.opt.type){case"barLine":case"line":case"bar":t="translate(0 "+r.opt.h+")";break;case"pie":t="translate("+r.opt.w/2+" "+r.opt.h/2+")"}if(e+="","line"==r.opt.type){e+='';for(var o=0;o";e+=""}if("line"==r.opt.type){e+='';for(o=0;o";e+=""}e+='';for(o=0;o";break;case"barLine":e+="";break;case"bar":e+="";break;case"pie":e+=""}e+="","pie"==r.opt.type&&(e+=''),e+="",r.tg.append(e),r.svg=r.tg.find("svg"),r.svg.attr("viewBox",a),r.svg.find(".group").attr("transform",t),r.svg.find(".graphStage").attr("transform",t),"pie"==r.opt.type&&(r.svg.find(".pieDonuts").attr("transform",t),r.svg.find(".pieDonuts").find("circle").attr({cx:0,cy:0,r:r.donuts.r,fill:r.donuts.color})),r.sizeSet(),$(window).on("resize",function(){r.sizeSet()})},renderGraph.prototype.sizeSet=function(){var t=this;t.svg.attr({width:t.tg.width(),height:Math.round(t.tg.width()/(t.opt.w/t.opt.h))})},renderGraph.prototype.renderBarLineGraph=function(){var t=this;t.cw=0,t.graphdata,t.lm=t.opt.leftmargin,t.rm=t.opt.rightmargin,t.filedWidth=t.opt.w-(t.lm+t.rm),t.step=t.filedWidth/t.data.length,t.line=[],t.circle=[],t.border=t.opt.lineBorder,t.stroke=t.opt.lineColor,t.figLineBorder=t.opt.graphLineBorder,t.figLineColor=t.opt.graphLineColor,t.horizontalLineMinNum=t.opt.horizontalLineMinNum,t.horizontalLineMaxNum=t.opt.horizontalLineMaxNum,t.horizontalLineStep=t.opt.horizontalLineStep,function(){for(var r=function(){var r={},e=0,a=0,o=0,i=[];r.w=t.filedWidth,r.posAry=[];for(var n=0;n180&&(n=1),"M "+r+","+e+" L "+s+","+h+" a "+a+" "+a+" "+a+" "+n+" 1 "+l+","+d+" z"}; $(function(){new ppMegaBnr});var ppMegaBnr=function(){$(".megabnr-btn").on("click",function(){$(".megabnr-btn").removeClass("megabnr-button-open"),$(".megabnr-field").removeClass("megabnr-open");var n="#MB-"+$(this).attr("data-id");return $("body").css("overflow","hidden"),$(n).addClass("megabnr-open"),$(this).addClass("megabnr-button-open"),!1}),$(".megabnr-bg").on("click",function(){var n="#mega-button"+$(this).parent().attr("id").split("-")[1];$(n).removeClass("megabnr-button-open"),$(this).parent().removeClass("megabnr-open"),$("body").css("overflow","auto")})}; var svganime;window.addEventListener("DOMContentLoaded",function(n){svganime=new svganimation}),window.addEventListener("load",function(n){svganime.init()});var svganimation=function(){};svganimation.prototype.init=function(){var n=this;n.obj=[],n.tl=new TimelineMax,n.chars=$(".svg-block"),n.tl.staggerFrom(n.chars,.5,{opacity:0,transform:"rotate(3deg) translateY(-300px)",ease:Back.easeIn.config(1.7)},.1,"+=0.5")},svganimation.prototype.loaded=function(){}; var onviewTween=function(){var e=$(".TMI"),t=[],r=$(window).scrollTop(),a=$(window).height(),s=100;function n(){for(var e=0;e0&&i