"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function _createForOfIteratorHelper(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var o=0,t=function(){};return{s:t,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:t}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,a=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){i=!0,r=e},f:function(){try{a||null==n.return||n.return()}finally{if(i)throw r}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n={}.toString.call(e).slice(8,-1);return"Map"===(n="Object"===n&&e.constructor?e.constructor.name:n)||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function _regeneratorRuntime(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function(){return i};var s,i={},e=Object.prototype,l=e.hasOwnProperty,u=Object.defineProperty||function(e,t,n){e[t]=n.value},t="function"==typeof Symbol?Symbol:{},o=t.iterator||"@@iterator",n=t.asyncIterator||"@@asyncIterator",r=t.toStringTag||"@@toStringTag";function a(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{a({},"")}catch(s){a=function(e,t,n){return e[t]=n}}function c(e,t,n,o){var r,a,i,c,t=t&&t.prototype instanceof y?t:y,t=Object.create(t.prototype),o=new A(o||[]);return u(t,"_invoke",{value:(r=e,a=n,i=o,c=f,function(e,t){if(c===p)throw Error("Generator is already running");if(c===m){if("throw"===e)throw t;return{value:s,done:!0}}for(i.method=e,i.arg=t;;){var n=i.delegate;if(n){var o=function e(t,n){var o=n.method,r=t.iterator[o];if(r===s)return n.delegate=null,"throw"===o&&t.iterator.return&&(n.method="return",n.arg=s,e(t,n),"throw"===n.method)||"return"!==o&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+o+"' method")),g;var r=d(r,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,g;r=r.arg;return r?r.done?(n[t.resultName]=r.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=s),n.delegate=null,g):r:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}(n,i);if(o){if(o===g)continue;return o}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(c===f)throw c=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);c=p;o=d(r,a,i);if("normal"===o.type){if(c=i.done?m:h,o.arg===g)continue;return{value:o.arg,done:i.done}}"throw"===o.type&&(c=m,i.method="throw",i.arg=o.arg)}})}),t}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}i.wrap=c;var f="suspendedStart",h="suspendedYield",p="executing",m="completed",g={};function y(){}function v(){}function w(){}var b={};a(b,o,function(){return this});t=Object.getPrototypeOf,t=t&&t(t(L([])));t&&t!==e&&l.call(t,o)&&(b=t);var $=w.prototype=y.prototype=Object.create(b);function k(e){["next","throw","return"].forEach(function(t){a(e,t,function(e){return this._invoke(t,e)})})}function x(i,c){var t;u(this,"_invoke",{value:function(n,o){function e(){return new c(function(e,t){!function t(e,n,o,r){e=d(i[e],i,n);if("throw"!==e.type){var a=e.arg;return(n=a.value)&&"object"==_typeof(n)&&l.call(n,"__await")?c.resolve(n.__await).then(function(e){t("next",e,o,r)},function(e){t("throw",e,o,r)}):c.resolve(n).then(function(e){a.value=e,o(a)},function(e){return t("throw",e,o,r)})}r(e.arg)}(n,o,e,t)})}return t=t?t.then(e,e):e()}})}function S(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(S,this),this.reset(!0)}function L(t){if(t||""===t){var e=t[o];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,e=function e(){for(;++n<t.length;)if(l.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=s,e.done=!0,e};return e.next=e}}throw new TypeError(_typeof(t)+" is not iterable")}return u($,"constructor",{value:v.prototype=w,configurable:!0}),u(w,"constructor",{value:v,configurable:!0}),v.displayName=a(w,r,"GeneratorFunction"),i.isGeneratorFunction=function(e){e="function"==typeof e&&e.constructor;return!!e&&(e===v||"GeneratorFunction"===(e.displayName||e.name))},i.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,w):(e.__proto__=w,a(e,r,"GeneratorFunction")),e.prototype=Object.create($),e},i.awrap=function(e){return{__await:e}},k(x.prototype),a(x.prototype,n,function(){return this}),i.AsyncIterator=x,i.async=function(e,t,n,o,r){void 0===r&&(r=Promise);var a=new x(c(e,t,n,o),r);return i.isGeneratorFunction(t)?a:a.next().then(function(e){return e.done?e.value:a.next()})},k($),a($,r,"Generator"),a($,o,function(){return this}),a($,"toString",function(){return"[object Generator]"}),i.keys=function(e){var t,n=Object(e),o=[];for(t in n)o.push(t);return o.reverse(),function e(){for(;o.length;){var t=o.pop();if(t in n)return e.value=t,e.done=!1,e}return e.done=!0,e}},i.values=L,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=s,this.done=!1,this.delegate=null,this.method="next",this.arg=s,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&l.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=s)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var o=this;function e(e,t){return a.type="throw",a.arg=n,o.next=e,t&&(o.method="next",o.arg=s),!!t}for(var t=this.tryEntries.length-1;0<=t;--t){var r=this.tryEntries[t],a=r.completion;if("root"===r.tryLoc)return e("end");if(r.tryLoc<=this.prev){var i=l.call(r,"catchLoc"),c=l.call(r,"finallyLoc");if(i&&c){if(this.prev<r.catchLoc)return e(r.catchLoc,!0);if(this.prev<r.finallyLoc)return e(r.finallyLoc)}else if(i){if(this.prev<r.catchLoc)return e(r.catchLoc,!0)}else{if(!c)throw Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return e(r.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;0<=n;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&l.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}var a=(r=r&&("break"===e||"continue"===e)&&r.tryLoc<=t&&t<=r.finallyLoc?null:r)?r.completion:{};return a.type=e,a.arg=t,r?(this.method="next",this.next=r.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;0<=t;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var o,r=n.completion;return"throw"===r.type&&(o=r.arg,T(n)),o}}throw Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:L(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=s),g}},i}function asyncGeneratorStep(e,t,n,o,r,a,i){try{var c=e[a](i),s=c.value}catch(e){return void n(e)}c.done?t(s):Promise.resolve(s).then(o,r)}function _asyncToGenerator(c){return function(){var e=this,i=arguments;return new Promise(function(t,n){var o=c.apply(e,i);function r(e){asyncGeneratorStep(o,t,n,r,a,"next",e)}function a(e){asyncGeneratorStep(o,t,n,r,a,"throw",e)}r(void 0)})}}document.addEventListener("DOMContentLoaded",function(){var o,r,a,e,t,i,c,s="",l="",u="",d=0,n="",f="",h=0,p=0,m=0,g=null,y=0,v=!!navigator.userAgent.match(/crios/i),v=!!navigator.userAgent.match(/safari/i)&&!v;function w(){y=$(window).scrollTop(),$("body").addClass("no-scroll"),"touchmove"===f&&(console.log("scrollTop:"+y),$("body").css("position","fixed"),$("body").css("top",-y))}function b(){$("body").removeClass("no-scroll"),"touchmove"===f&&($("body").css("top",""),$("body").css("position",""),$(window).scrollTop(y))}function k(e){$(e).each(function(){var e=$(this),t=$(this).text().split("");e.innerHTML="",$.each(t,function(){this.match(/ /)?e.innerHTML+="<span>"+this+"</span>":this.match(/\r?\n/)?e.innerHTML+="<br>":e.innerHTML+='<span class="t">'+this+"</span>"}),e.html(e.innerHTML)})}function x(){ScrollTrigger.batch(".scroll-text-random-visible",{scroller:".scroll-container",start:"top bottom-=12%",onEnter:function(e){e.forEach(function(e,t){gsap.to(e.querySelectorAll(".t"),{autoAlpha:1,duration:.75,ease:Power2.easeOut,stagger:{amount:.5,from:"random",grid:"auto"}})})},once:!0})}function S(){document.querySelectorAll(".scroll-in-visible").forEach(function(e,t){var n=document.createElement("span");n.className="item-bg",e.appendChild(n)}),ScrollTrigger.batch(".scroll-in-visible",{scroller:".scroll-container",start:"top bottom-=12%",onEnter:function(e){e.forEach(function(e,t){gsap.to(e,{clipPath:"polygon(0 0, 200% 0, 0 200%)",duration:1.5,overwrite:!0,ease:Power2.easeOut,stagger:.1}),gsap.to(e.querySelector("img, video"),{autoAlpha:1,scale:1,duration:1.5,delay:.4,ease:Power2.easeOut,stagger:.1,onComplete:function(){e.querySelector(".item-bg").style.visibility="hidden"}})})},once:!0})}function T(){ScrollTrigger.batch(".scroll-fade",{scroller:".scroll-container",start:"top bottom-=8%",onEnter:function(e){gsap.to(e,{autoAlpha:1,duration:1,stagger:.25,ease:Power2.easeOut})}})}function A(){ScrollTrigger.batch(".scroll-slide-up",{scroller:".scroll-container",start:"top bottom-=12%",onEnter:function(e){gsap.to(e[0].querySelector("img"),{autoAlpha:1,y:0,duration:1,stagger:.25,ease:Power2.easeOut})}})}function L(){document.documentElement.style.setProperty("--vh",d/100+"px")}function O(){$("#site-footer").css("height",d)}function P(){d=$(window).height(),console.log("計算されたscreenHeight:",d),$(".home-first-view-block").css("height",d),$(".home-first-view-img-block").css("height",d),console.log(".home-first-view-blockに適用された高さ:",$(".home-first-view-block").height()),console.log(".home-first-view-img-blockに適用された高さ:",$(".home-first-view-img-block").height())}function _(){d=$(window).height(),$(window).width()}function C(e){var t=$("<head />").html($.parseHTML(e.html.match(/<head[^>]*>([\s\S.]*)<\/head>/i)[0],document,!0)),e=["meta[name='keywords']","meta[name='description']","meta[property^='og']","meta[property^='fb']","meta[name^='twitter']","meta[name='robots']","meta[itemprop]","link[itemprop]","link[rel='prev']","link[rel='next']","link[rel='canonical']"].join(",");$("head").find(e).remove(),t.find(e).appendTo("head")}function E(){for(var e=document.querySelectorAll("#g-nav li a"),t=0;t<e.length;t++)e[t].classList.remove("current"),e[t].href===location.href&&e[t].classList.add("current")}0<navigator.userAgent.indexOf("iPhone")&&-1===navigator.userAgent.indexOf("iPad")||0<navigator.userAgent.indexOf("iPod")||0<navigator.userAgent.indexOf("Android")?($("body").removeClass("pc"),n=v?"orientationchange resize":"orientationchange",f="touchmove"):(n="resize",f="onwheel"in document?"wheel":"onmousewheel"in document?"mousewheel":"DOMMouseScroll",$("body").addClass("pc"),$("a.call").on("click",function(e){e.preventDefault()}));var R,j,G=null,I=null;function V(){G.update(),I.update()}function q(){a=$(".home-first-view-text-block"),a.width(),a.height(),t=$(".home-commitment-movie-block"),i=t.offset().top,t=$(".home-commitment-3-block"),c=t.offset().top,a.css("left",e)}function D(){window.location.pathname.includes("/en/")?document.body.classList.add("en"):document.body.classList.remove("en")}y=m=h=0,w(),$("#drawer-menu-btn").on("click",function(){0===h?(w(),$(this).addClass("open"),gsap.timeline().to("#drawer-menu-block",.4,{autoAlpha:1,delay:0}).to("#g-nav",.6,{autoAlpha:1,delay:0,onComplete:function(){h=1}})):(b(),$(this).removeClass("open"),gsap.timeline().to("#g-nav",.6,{autoAlpha:0,delay:0}).to("#drawer-menu-block",.4,{autoAlpha:0,delay:0,onComplete:function(){b(),h=0}}))}),_(),L(),k(".text-sprit-randam-class-add"),O(),gsap.set(".btn-icon img",{rotation:0,scale:1});var H,M=0,N=imagesLoaded("body",{background:".bg"}),F=N.images.length,Y=0;function W(){N.on("progress",function(e,t){M++})}function z(){Y+=.1*(M/F*100-Y)}function B(t){return t=t||2e3,new Promise(function(e){setTimeout(function(){e()},t)})}function U(){y=g.scroll.instance.scroll.y}function X(){document.querySelectorAll(".anchor").forEach(function(t){t.addEventListener("click",function(e){e.preventDefault();e=t.getAttribute("href"),e=document.querySelector(e);g.scrollTo(e,{duration:1e3,easing:[.25,0,.35,1]})})})}function J(){ScrollTrigger.addEventListener("refresh",function(){return g.update()}),ScrollTrigger.refresh(),console.log("再描写しました")}function K(){var e=document.querySelector(".wpcf7-response-output");new MutationObserver(function(e,t){var n,o=_createForOfIteratorHelper(e);try{for(o.s();!(n=o.n()).done;)"childList"===n.value.type&&(console.log("A child node has been added or removed."),J())}catch(e){o.e(e)}finally{o.f()}}).observe(e,{childList:!0})}function Q(){Y=100,clearInterval(H),_(),$("#site-footer").css("height",d);var e=$("a[href]");e.each(function(e,t){$(t).on("click",function(e){var t;(t=e).currentTarget.href===window.location.href&&(t.preventDefault(),t.stopPropagation()),e.currentTarget.href!==window.location.href&&(R=$(this).find(".icon"),j=R[0]?((e=R[0])?(e.classList.add("is-icon-btn-move"),e.parentElement.classList.add("is-icon-btn-save"),console.log("Position saved")):console.log("No icon element found to store position."),$(this).addClass("icon-origin-pos"),($(this).hasClass("default-btn")||$(this).hasClass("home-menu-btn"))&&R.addClass("default-btn-icon"),gsap.to(R.find("img"),{rotation:"+=360",duration:2,repeat:-1,paused:!0,ease:Linear.easeNone})):gsap.to(".loader-icon img",{rotation:"+=360",duration:2,repeat:-1,paused:!0,ease:Linear.easeNone}))})}),gsap.timeline().to(".overlay-block",.5,{autoAlpha:0,ease:Power2.easeOut,onComplete:function(){var t,e,n;"home"!==l&&"top"!==l&&"en"!==l||(P(),q(),U(),$(window).width(),d=$(window).height(),I=new createjs.Stage("kinako"),G=new particlejs.ParticleSystem,I.addChild(G.container),G.importFromJson({bgColor:"#010101",width:1680,height:900,emitFrequency:600,startX:840,startXVariance:400,startY:-48,startYVariance:0,initialDirection:90,initialDirectionVariance:60,initialSpeed:"6.4",initialSpeedVariance:"0",friction:.01,accelerationSpeed:.1035,accelerationDirection:90,startScale:0,startScaleVariance:.3,finishScale:"0",finishScaleVariance:.06,lifeSpan:240,lifeSpanVariance:276,startAlpha:1,startAlphaVariance:"1",finishAlpha:"0",finishAlphaVariance:"0",shapeIdList:["circle"],startColor:{hue:47,hueVariance:0,saturation:75,saturationVariance:0,luminance:60,luminanceVariance:0},blendMode:!0,alphaCurveType:1,VERSION:"1.0.0"}),createjs.Ticker.framerate=60,createjs.Ticker.timingMode=createjs.Ticker.RAF,createjs.Ticker.addEventListener("tick",V),$(".is-icon-btn-move").css("display","none"),$(".home-menu-btn-block").on("mouseleave",function(){$(".home-menu-btn-img-block").removeClass("active")}),$(".home-menu-btn-block").on("mouseenter",function(){var e=$(".home-menu-btn-block").index(this);console.log(e),$(".home-menu-btn-img-block").eq(e).addClass("active")}),ScrollTrigger.create({scroller:".scroll-container",trigger:"#container",start:"top 0",end:function(){return"".concat(c)},scrub:!0,invalidateOnRefresh:!0,onEnter:function(){a.addClass("is-fixed").removeClass("is-finished")},onLeave:function(){a.removeClass("is-fixed").addClass("is-finished")},onEnterBack:function(){a.addClass("is-fixed").removeClass("is-finished")},onLeaveBack:function(){a.addClass("is-fixed").removeClass("is-finished")}}),gsap.to(a,{autoAlpha:0,scrollTrigger:{scroller:".scroll-container",trigger:"#container",start:function(){return"".concat(i)},end:function(){return"".concat(c)},scrub:!0}}),gsap.timeline().to("#kinako",1,{autoAlpha:1,delay:0,ease:Power2.easeOut},0).to(".home-first-view-img-block",1,{autoAlpha:1,delay:1},"same").to("#kinako",.5,{autoAlpha:0,delay:1,ease:Power2.easeOut},"same").to(".home-first-view-text",1,{autoAlpha:1,y:0,delay:1,ease:Power2.easeOut},"same").to(".home-first-view-text .text-bg",1,{autoAlpha:1,scaleY:1,delay:1,ease:Power2.easeOut},"same").to(".home-first-view-text h2 img",1,{autoAlpha:1,delay:2,ease:Power2.easeOut},"same").to(".home-first-view-text .sub-text .text",.5,{autoAlpha:1,y:0,delay:2.5,ease:Power2.easeOut},"same"),new Swiper(".home-news-swiper",{slidesPerView:1.22,breakpoints:{768:{slidesPerView:2},1024:{slidesPerView:2},1200:{slidesPerView:4}},on:{init:function(){$(".home-news-swiper article p").matchHeight(),$(".home-news-swiper article .text-block").matchHeight(),ScrollTrigger.refresh()}}})),"products"===l&&($(".modal-product").on("click",function(){var e=$(this).attr("href");return t=$("#"==e||""==e?"html":e),p=window.innerWidth-document.body.clientWidth,0===m&&(w(),$("#container").after('<div class="modal-close-btn" id="modal-close-btn"><span class="line"></span></div>'),$("#container").after('<div class="modal-overlay-block"></div>'),$("#container").after('<div class="modal-block"></div>'),e=$(t).html(),$(".modal-block").html(e),$("body").css("padding-right",p),gsap.timeline().to(".modal-overlay-block",.4,{autoAlpha:1,ease:Power2.easeOut}).to("#drawer-menu-btn",.6,{autoAlpha:0,ease:Power2.easeOut,delay:0},"same").to(".modal-close-btn",.6,{autoAlpha:1,delay:0,ease:Power2.easeOut},"same").to(".modal-block",.6,{autoAlpha:1,delay:0,ease:Power2.easeOut},"same"),m=1),!1}),$(document).on("click",".modal-close-btn",function(){1===m&&($("body").css("padding-right",0),b(),gsap.timeline().to(".modal-block",.4,{autoAlpha:0,delay:0,ease:Power2.easeOut,onComplete:function(){$(".modal-block").remove()}}).to(".modal-overlay-block",.6,{autoAlpha:0,delay:0,ease:Power2.easeOut,onComplete:function(){$(".modal-overlay-block").remove()}},"same").to("#drawer-menu-btn",.6,{autoAlpha:1,ease:Power2.easeOut,delay:0,onComplete:function(){$(".modal-close-btn").remove()}},"same").to(".modal-close-btn",.6,{autoAlpha:0,ease:Power2.easeOut},"same"),m=0)})),"contact"===l&&(n=".toggle-heading",$(".toggle-content").css("display","none"),$(n).on("click",function(){$(this).next().is(":hidden")?($(this).addClass("open"),$(this).next().slideDown(400,J)):($(this).removeClass("open"),$(this).next().slideUp(400,J))}),K()),"franchise"===l&&K(),"news"===l&&0<$(".news-list-block").length&&($(".news-list-block article p").matchHeight(),$(".news-list-block .text-block").matchHeight()),"post-detail"===l&&0<$(".wp-video").length&&(e=$(".wp-video video").attr("width"),n=$(".wp-video video").attr("height"),console.log("videoWidth:"+e),console.log("videoHeight:"+n),n<e&&$(".wp-video").addClass("horizontal"))}}),ScrollTrigger.refresh()}$.fn.throttle=function(e,t){t=$.extend({interval:256},t);var n,o,r=Date.now();return function(){(n=r+t.interval-Date.now())<0?(e(),r=Date.now()):(clearTimeout(o),o=setTimeout(function(){e()},t.interval-n+16))}},barba.Logger.setLevel(0),barba.use(barbaPrefetch);try{Typekit.load({active:function(){function n(e){g=new LocomotiveScroll({el:e.querySelector("[data-scroll-container]"),smooth:!0,getDirection:!0}),ScrollTrigger.scrollerProxy("[data-scroll-container]",{scrollTop:function(e){return arguments.length?g.scrollTo(e,0,0):g.scroll.instance.scroll.y},getBoundingClientRect:function(){return{top:0,left:0,width:window.innerWidth,height:window.innerHeight}},pinType:e.querySelector("[data-scroll-container]").style.transform?"transform":"fixed"}),g.on("scroll",L),g.on("scroll",_),g.on("scroll",O),"home"!==l&&"top"!==l&&"en"!==l||(g.on("scroll",U),g.on("scroll",q)),ScrollTrigger.addEventListener("refresh",function(){return g.update()}),ScrollTrigger.refresh()}var t;barba.hooks.after(function(){g.init()}),barba.hooks.enter(function(){window.scrollTo(0,0)}),barba.init({sync:!0,debug:!1,timeout:12e3,logLevel:0,transitions:[{beforeOnce:function(t){return _asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:w(),window.scrollTo(0,0),s=$("#container").data("barba-namespace"),$("body").attr("id",s),$("body").addClass(s),l=$("body").attr("id"),u=$("body").attr("class"),u.split(" "),C(t.next),n(t.next.container),E(),W(),H=setInterval(z,20),_(),"home"!==l&&"top"!==l&&"en"!==l||(P(),q()),D();case 16:case"end":return e.stop()}},e)}))()},once:function(e){return _asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y=100,gsap.timeline().to(".loader-icon span",1,{scale:0,delay:0,ease:Power2.easeOut});case 3:case"end":return e.stop()}},e)}))()},afterOnce:function(e){return _asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Q(),"home"===l||"top"===l||"en"===l)return e.next=4,B(2e3);e.next=6;break;case 4:e.next=8;break;case 6:return e.next=8,B(1e3);case 8:b(),$(".loader-icon").css("visibility","hidden"),x(),S(),T(),A(),ScrollTrigger.refresh();case 15:case"end":return e.stop()}},e)}))()},beforeLeave:function(e){return _asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return $(window).width(),d=$(window).height(),R[0]?(o=R.offset().top,r=R.offset().left,console.log(o+","+r),R.insertAfter("#container"),R.addClass("is-fixed"),R.offset({top:o,left:r}),gsap.timeline().to(R,1,{top:"-100%",left:"-100%",width:"300%",height:"300%",delay:0,ease:Power2.easeOut,onStart:function(){j.play()}}).to(R.find("img"),1,{width:"300%",height:"300%",delay:0,ease:Power2.easeOut},"-=")):($(".loader-icon").css("visibility","visible"),gsap.timeline().to(".loader-icon",1,{top:"-100%",left:"-100%",width:"300%",height:"300%",delay:0,ease:Power2.easeOut,onStart:function(){j.play()}}).to(".loader-icon img",1,{width:"300%",height:"300%",delay:0,ease:Power2.easeOut},"-=1").to(".loader-icon span",1,{width:"100%",scale:1,delay:0,ease:Power2.easeOut},"-=1")),e.next=5,B(1e3);case 5:case"end":return e.stop()}},e)}))()},leave:function(t){return _asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:s=$("#container").data("barba-namespace"),t.current.container.remove();case 2:case"end":return e.stop()}},e)}))()},afterLeave:function(e){return _asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:1===m&&($("body").css("padding-right",0),b(),gsap.timeline().to(".modal-block",.4,{autoAlpha:0,delay:0,ease:Power2.easeOut,onComplete:function(){$(".modal-block").remove()}}).to(".modal-overlay-block",.6,{autoAlpha:0,delay:0,ease:Power2.easeOut,onComplete:function(){$(".modal-overlay-block").remove()}},"same").to("#drawer-menu-btn",.6,{autoAlpha:1,ease:Power2.easeOut,delay:0,onComplete:function(){$(".modal-close-btn").remove()}},"same").to(".modal-close-btn",.6,{autoAlpha:0,ease:Power2.easeOut},"same"),m=0);case 1:case"end":return e.stop()}},e)}))()},beforeEnter:function(t){return _asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:$("body").removeClass(s),s=$("#container").data("barba-namespace"),$("body").attr("id",s),$("body").addClass(s),l=$("body").attr("id"),u=$("body").attr("class"),u.split(" "),E(),C(t.next),M=0,N=imagesLoaded("body",{background:".bg"}),F=N.images.length,Y=0,ScrollTrigger.getAll().forEach(function(e){return e.kill()}),g&&g.destroy(),n(t.next.container),k(".text-sprit-randam-class-add"),_(),W(),H=setInterval(z,20),$("#drawer-menu-btn").removeClass("open"),D();case 22:case"end":return e.stop()}},e)}))()},enter:function(e){return _asyncToGenerator(_regeneratorRuntime().mark(function e(){return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:Y=100,clearInterval(H),gsap.timeline().to("#g-nav",0,{delay:0,autoAlpha:0}).to("#drawer-menu-block",0,{autoAlpha:0,delay:0,onComplete:function(){h=0}}),0<(t=document.querySelectorAll(".c-scrollbar")).length&&t[0].remove(),R[0]?gsap.timeline().to(R.find("img"),1,{scale:0,delay:0,ease:Power2.easeOut,onComplete:function(){console.log("ここ"),$(".is-icon-btn-move").appendTo(".is-icon-btn-save")}}):gsap.timeline().to(".loader-icon span",1,{scale:0,delay:0,ease:Power2.easeOut});case 7:case"end":return e.stop()}},e)}))()},afterEnter:function(e){return _asyncToGenerator(_regeneratorRuntime().mark(function e(){var t;return _regeneratorRuntime().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(Q(),"home"===l||"top"===l||"en"===l)return e.next=4,B(2e3);e.next=6;break;case 4:e.next=8;break;case 6:return e.next=8,B(1e3);case 8:b(),j.pause(),x(),S(),T(),A(),R[0]?(t=$(".icon-origin-pos").find(".inner"),R.appendTo(t),$("a").removeClass("icon-origin-pos"),$(".btn-icon").removeClass("is-fixed"),$(".btn-icon").attr("style",""),$(".btn-icon img").attr("style",""),gsap.set(".btn-icon img",{rotation:0,scale:1}),$(".default-btn-icon").remove()):$(".loader-icon").css("visibility","hidden"),"function"==typeof wpcf7.init&&document.querySelectorAll(".wpcf7 > form").forEach(function(e){wpcf7.init(e)}),ScrollTrigger.refresh(),X();case 18:case"end":return e.stop()}},e)}))()}}]}),barba.use(barbaPrefetch)}})}catch(e){}$(window).on(n,function(){L(),_(),O(),"home"!==l&&"top"!==l&&"en"!==l||(P(),q())}),sessionStorage.getItem("initialLoadDone")||(sessionStorage.clear(),sessionStorage.setItem("initialLoadDone","true")),X()});