PageSourceSearch

https://athena-ptr.co.jp/3.2/js/cmn.js

js athena-ptr.co.jp collected 2026-10-05 11:15:52 UTC 86,372 bytes, 2,163 lines download raw bytes

1/*hover tap*/
2window.ontouchstart = function() {};
3window.addEventListener('touchstart', function() {}, true);
4window.addEventListener('touchstart', function() {}, false);
5
6var arr_unix = ['1528180833','1650581629','1705634840','1705636518','1645775840','1705541550','1651225752','1668747880','1675231059','1683504801','1683504672','1709191069','1712550480','1641881222','1618804329', '1674473438'];
7
8function ResizeHeadIni(){
9	if((arr_unix.indexOf(String(unix)) !== -1 || Number(unix) >= 1720398070) && $('header#pattern2')){//24-07-05-00:00
10		$('header').addClass('hc_hide');//header_contents_hide
11	}
12	if(window.innerWidth <= 900){
13		$('header:not(#pattern4)>nav').appendTo('header .header_contents .inner');
14		$('header:not(#pattern4) .header_contents').css({height: 'calc(100vh - '+$('header').height()+'px)'});
15		$('header:not(#pattern4) .header_contents').css({height: 'calc(100dvh - '+$('header').height()+'px)'});
16		if($('.translate').length){
17			$('#google_translate_element').appendTo('.burger .sp_translate');
18		}
19		$('header.h_on h1').appendTo('header.h_on .header_contents');
20	}else{
21		$('header:not(#pattern4) .header_contents .inner nav').appendTo('header');
22		$('header:not(#pattern4) .header_contents').css({height: 'auto'});
23		if($('.translate').length){
24			$('#google_translate_element').appendTo('.header_col1 .translate');
25		}
26		$('header.h_on .header_contents h1').insertBefore('header.h_on .logo');
27	}
28	$('body:not(.edit_view) header#pattern4>nav').appendTo('header .header_contents .inner');
29	$('body.edit_view header#pattern4 .header_contents, body.edit_view header#pattern4>nav').remove();
30	$('header#pattern4 #google_translate_element').appendTo('.burger .sp_translate');
31	if(!$('header.over').length){
32		$('body').removeClass('scrolled');
33		$('body').removeClass('scrolledHide');
34	}
35}
36
37$(function(){
38	
39	var unix = $('body').data('ini');
40	$('nav').css({overflow: 'hidden'});
41	$('.gallery_single_slider  img').attr('loading', '');
42	
43	/*---gnav_current---*/
44	/*
45	$('.gnav_current').removeClass('gnav_current');
46	var nowPath = location.pathname;
47	if(nowPath == '/'){
48		$('.nav_1st>li>a[href="/"]').parents('li').addClass('gnav_current');
49	}else{
50		$('.nav_1st>li>a[href*="'+nowPath+'"]').parents('li').addClass('gnav_current');
51	}
52	nowPath = nowPath.replace(/^\//i, '');
53	nowPath = nowPath.replace(/\/$/i, '');
54	nowPath = nowPath.split('/');
55	if(nowPath[0]){
56		$('.nav_1st>li>a[href="/'+nowPath[0]+'/"]').parents('li').addClass('gnav_current');
57	}else{
58		$('.nav_1st>li>a[href="/"]').parents('li').addClass('gnav_current');
59	}
60	*/
61	
62	//DEVELOP-779
63	if($('header#pattern1.DEVELOP779').length || $('header#pattern2.DEVELOP779').length){
64		$('.header_sns').css({height: 0, opacity: 0});
65	}
66	
67	/*---header---*/
68	ResizeHeadIni();
69	
70	if(($('header#pattern4').length)){
71		if(!($('header#pattern4>.wraper>.inner>.header_sns').length)){
72			$('header#pattern4 .header_contents .header_sns').clone().insertBefore('.burger');
73		}
74		if(($('header#pattern4>.wraper>.inner>.header_sns ul').length)){
75			$('header#pattern4>.wraper>.inner>.header_sns ul').clone().insertAfter('header#pattern4 .burger li.header_sns_sp ul').addClass('pattern4_pc_sns');
76			$('header#pattern4 ul.pattern4_pc_sns li:not(.on)').remove();
77		}
78		function pattern4_pc_sns(){
79			if(window.innerWidth > 901){
80				$('header#pattern4 .header_sns_sp ul:not(.pattern4_pc_sns)').hide();
81				$('header#pattern4 .header_sns_sp ul.pattern4_pc_sns').show();
82			}else{
83				$('header#pattern4 .header_sns_sp ul:not(.pattern4_pc_sns)').show();
84				$('header#pattern4 .header_sns_sp ul.pattern4_pc_sns').hide();
85			}
86		}
87		$(window).on('resize', pattern4_pc_sns);
88		pattern4_pc_sns();
89	}
90	
91	/*---pagelink---*/
92
93	var hash = location.hash;
94	if(hash){
95		$('body,html').stop().scrollTop(0);
96		$(window).load(function(){
97			$('body,html').stop().scrollTop(0);
98			$(window).delay(100).queue(function(){
99				pageScroll(hash);
100			});
101		});
102	}
103	$('a[href*=#][href!=#]:not(.no):not([target="_blank"])').click(function(){
104		$('header').removeClass('open');
105		var url = location.pathname;
106		var href = $(this).attr("href");
107		var path = href.split('#');//path[0]
108		//if(url.indexOf(path[0]) != -1){
109		if(url == path[0] || path[0] == ''){
110			pageScroll('#'+path[1]);
111			return false;
112		}
113	});
114	function pageScroll(i){
115		var target = $(i === "#" || i === "" ? 'html' : i);
116		var position = target.offset().top;
117		if(position == 0){
118			var offset = 0;
119			if($('#mv').length){
120				offset = parseInt($('#mv').css('margin-top'), 10);
121			}else if($('#lv').length){
122				offset = parseInt($('#lv').css('margin-top'), 10);
123			}
124			position = position - offset;
125		}else if($(window).width() < 900){
126			position = position - $('header').height();
127		}
128		$('body,html').animate({scrollTop: position}, 1000, 'easeInOutCubic');
129	}
130	
131
132	$('#anker').on('click', function(){
133		var t = $(this).offset().top;
134		console.log(t);
135		return false;
136	});
137
138	$('header .translate a').attr('aria-label', 'Google言語翻訳ウィジェット');
139	$('header .sp_translate a').attr('aria-label', 'Google言語翻訳ウィジェット');
140	$('#scrolltop a').attr('aria-label', 'ページトップへ移動');
141
142	$('.translate a, .sp_translate a').on('click', function(e){
143		const $container = $('#google_translate_element');
144		const hasUI = $container.find('iframe').length > 0 || $container.find('select').length > 0;
145		if(!hasUI){
146			const currentUrl = location.href;
147			const translatedUrl = 'https://translate.google.com/translate?hl=ja&sl=auto&u=' + encodeURIComponent(currentUrl);
148			location.href = translatedUrl;
149		} else {
150			e.preventDefault();
151		}
152	});
153
154	/*---delay---*/
155	
156	$('.delay').on('inview', function(event, isInView, visiblePartX, visiblePartY) {
157		if(isInView){
158			$(this).stop().addClass('delayActive');
159		}
160	});
161	$('.delay1').on('inview', function(event, isInView, visiblePartX, visiblePartY) {
162		if(isInView){
163			$(this).stop().addClass('delay1Active');
164		}
165	});
166	$('.delay2').on('inview', function(event, isInView, visiblePartX, visiblePartY) {
167		if(isInView){
168			$(this).stop().addClass('delay2Active');
169		}
170	});
171	$('.delay3').on('inview', function(event, isInView, visiblePartX, visiblePartY) {
172		if(isInView){
173			$(this).stop().addClass('delay3Active');
174		}
175	});
176	$('.delay4').on('inview', function(event, isInView, visiblePartX, visiblePartY) {
177		if(isInView){
178			$(this).stop().addClass('delay4Active');
179		}
180	});
181	$(window).load(function(){
182		$('.delay5 .content_wrapper>*').append('<i class="dl5"></i>');
183		$('.delay5').on('inview', function(event, isInView, visiblePartX, visiblePartY) {
184			if(isInView){
185				$(this).stop().addClass('delay5Active');
186			}
187		});
188	});
189	
190	/*----spnav----*/
191	
192	var sp_nav = 0;
193	$('.header_inner #menu').on(
194		'click', function(){
195			if(sp_nav === 0){
196				sp_nav = 1;
197				$('.header_inner nav').addClass('open');
198			}else{
199				sp_nav = 0;
200				$('.header_inner nav').removeClass('open');
201			}
202			return false;
203		}
204	);
205	
206	/*----popup----*/
207	
208	var parentSectionClass = "aaaa";
209	var $parent;
210	var popCount;
211	var popIndex;
212	var popTxt;
213	var popTxt0;
214	var $popA = 'a:not([href*="no_image"])[href$=".webp"], a:not([href*="no_image"])[href$=".jpeg"], a:not([href*="no_image"])[href$=".jpg"], a:not([href*="no_image"])[href$=".gif"], a:not([href*="no_image"])[href$=".png"], a:not([href*="no_image"])[href$=".WEBP"], a:not([href*="no_image"])[href$=".JPEG"], a:not([href*="no_image"])[href$=".JPG"], a:not([href*="no_image"])[href$=".GIF"], a:not([href*="no_image"])[href$=".PNG"], a:not([href*="no_image"])[href$=".webp/"], a:not([href*="no_image"])[href$=".jpeg/"], a:not([href*="no_image"])[href$=".jpg/"], a:not([href*="no_image"])[href$=".gif/"], a:not([href*="no_image"])[href$=".png/"], a:not([href*="no_image"])[href$=".WEBP/"], a:not([href*="no_image"])[href$=".JPEG/"], a:not([href*="no_image"])[href$=".JPG/"], a:not([href*="no_image"])[href$=".GIF/"], a:not([href*="no_image"])[href$=".PNG/"]';
215	var $popB = 'a:not([href*="no_image"])[href^="/common/"][href$=".webp"], a:not([href*="no_image"])[href^="/common/"][href$=".jpeg"], a:not([href*="no_image"])[href^="/common/"][href$=".jpg"], a:not([href*="no_image"])[href^="/common/"][href$=".gif"], a:not([href*="no_image"])[href^="/common/"][href$=".png"], a:not([href*="no_image"])[href^="/common/"][href$=".WEBP"], a:not([href*="no_image"])[href^="/common/"][href$=".JPEG"], a:not([href*="no_image"])[href^="/common/"][href$=".JPG"], a:not([href*="no_image"])[href^="/common/"][href$=".GIF"], a:not([href*="no_image"])[href^="/common/"][href$=".PNG"], a:not([href*="no_image"])[href^="/images/"][href*=".webp"], a:not([href*="no_image"])[href^="/images/"][href*=".jpeg"], a:not([href*="no_image"])[href^="/images/"][href*=".jpg"], a:not([href*="no_image"])[href^="/images/"][href*=".gif"], a:not([href*="no_image"])[href^="/images/"][href*=".png"], a:not([href*="no_image"])[href^="/images/"][href*=".WEBP"], a:not([href*="no_image"])[href^="/images/"][href*=".JPEG"], a:not([href*="no_image"])[href^="/images/"][href*=".JPG"], a:not([href*="no_image"])[href^="/images/"][href*=".GIF"], a:not([href*="no_image"])[href^="/images/"][href*=".PNG"]';
216	$('a:not([href*="no_image"])[href^="/common/"][href$=".webp"], a:not([href*="no_image"])[href^="/common/"][href$=".jpeg"], a:not([href*="no_image"])[href^="/common/"][href$=".jpg"], a:not([href*="no_image"])[href^="/common/"][href$=".gif"], a:not([href*="no_image"])[href^="/common/"][href$=".png"], a:not([href*="no_image"])[href^="/common/"][href$=".WEBP"], a:not([href*="no_image"])[href^="/common/"][href$=".JPEG"], a:not([href*="no_image"])[href^="/common/"][href$=".JPG"], a:not([href*="no_image"])[href^="/common/"][href$=".GIF"], a:not([href*="no_image"])[href^="/common/"][href$=".PNG"], a:not([href*="no_image"])[href^="/images/"][href*=".
216webp"], a:not([href*="no_image"])[href^="/images/"][href*=".jpeg"], a:not([href*="no_image"])[href^="/images/"][href*=".jpg"], a:not([href*="no_image"])[href^="/images/"][href*=".gif"], a:not([href*="no_image"])[href^="/images/"][href*=".png"], a:not([href*="no_image"])[href^="/images/"][href*=".WEBP"], a:not([href*="no_image"])[href^="/images/"][href*=".JPEG"], a:not([href*="no_image"])[href^="/images/"][href*=".JPG"], a:not([href*="no_image"])[href^="/images/"][href*=".GIF"], a:not([href*="no_image"])[href^="/images/"][href*=".PNG"], a:not([href*="no_image"])[href*="?pop=1"]').on(
217			'click', function(){
218			if((!$('body').hasClass('nopop') || $(this).parents().hasClass('pop') || $(this).attr('href').indexOf('?pop=1') !== -1) && $(this).attr('href').indexOf('no_image') == -1){
219				var img = new Image();
220				img.src = $(this).attr("href");
221				img.alt = $(this).find('img').attr("alt");
222				popTxt0 = $(this).next('.heading').find('.h').html();
223				popTxt = $(this).next('.heading').find('p').html();
224				parentSectionClass = $(this).parents('main>*, #common_footer>*').attr('class');
225				$parent = $(this).parents('.content_wrapper');
226				popCount = $parent.find($popB).length;
227				popIndex = $parent.find($popB).index(this);
228				if($(this).next('.heading').find('.h').length && $(this).next('.heading').find('p').length){
229					$('body').append('<div class="popup"><div class="popimg"><div><div class="popimgwrap"><img src="'+img.src+'" alt="'+img.alt+'"><div class="poptxt"><p><strong>'+popTxt0+'</strong><br>'+popTxt+'</p></div></div><div class="loader"></div></div></div><div class="popclose">×</div><ul class="popnav"><li class="popprev"></li><li class="popnext"></li></ul></div>');
230				}else if($(this).next('.heading').find('.h').length){
231					$('body').append('<div class="popup"><div class="popimg"><div><div class="popimgwrap"><img src="'+img.src+'" alt="'+img.alt+'"><div class="poptxt"><p><strong>'+popTxt0+'</strong></p></div></div><div class="loader"></div></div></div><div class="popclose">×</div><ul class="popnav"><li class="popprev"></li><li class="popnext"></li></ul></div>');
232				}else if($(this).next('.heading').find('p').length){
233					$('body').append('<div class="popup"><div class="popimg"><div><div class="popimgwrap"><img src="'+img.src+'" alt="'+img.alt+'"><div class="poptxt"><p>'+popTxt+'</p></div></div><div class="loader"></div></div></div><div class="popclose">×</div><ul class="popnav"><li class="popprev"></li><li class="popnext"></li></ul></div>');
234				}else{
235					$('body').append('<div class="popup"><div class="popimg"><div><div class="popimgwrap"><img src="'+img.src+'" alt="'+img.alt+'"></div><div class="loader"></div></div></div><div class="popclose">×</div><ul class="popnav"><li class="popprev"></li><li class="popnext"></li></ul></div>');
236				}
237				if(popCount === 1 || $(this).attr('href').indexOf('?pop=1') !== -1){
238					$('.popnext').css({marginRight: -50});
239					$('.popprev').css({marginLeft: -50});
240				}else{
241					if(popIndex === 0){
242						$('.popnext').stop().animate({marginRight: 10}, 200, 'easeOutCubic');
243						$('.popprev').css({marginLeft: -50});
244					}else if(popIndex === popCount - 1){
245						$('.popnext').css({marginRight: -50});
246						$('.popprev').stop().animate({marginLeft: 10}, 200, 'easeOutCubic');
247					}
248				}
249				$('.popup:not(.-w-modal)').css({opacity: 0}).stop().animate({opacity: 1}, 400, 'easeInOutCubic');
250				img.onload = function(){
251					$('.popimgwrap').stop().animate({opacity: 1}, 400, 'easeInOutCubic');
252				}
253				$('.poptxt').stop().animate({bottom: 0}, 5000, 'easeInOutCubic', function(){
254					$('.poptxt').addClass("timelimit");
255				});
256			}
257			return false;
258		}
259	);
260	
261	$(document).on("click", ".popimg:not(.no), .popup:not(.-w-modal) .popclose, .poppayclose", function(){
262		$('.popup:not(.-w-modal)').stop().animate({opacity: 0}, 400, 'easeInOutCubic', function(){
263			$('.popup:not(.-w-modal)').remove();
264			popTxt0 = '';
265			popTxt = '';
266		});
267	});
268	$(document).on("click", ".popup:not(.-w-modal) img:not(.no)", function(){
269		return false;
270	});
271	function popNav(){
272		$('.popimgwrap').stop().animate({opacity: 0}, 400, 'easeInOutCubic', function(){
273			$('.poptxt').removeClass("timelimit").remove();
274			$('.popup:not(.-w-modal) img').remove();
275			popTxt0 = '';
276			popTxt = '';
277			var img = new Image();
278			img.src = $parent.find($popA).eq(popIndex).attr("href");
279			img.alt = $parent.find($popA).eq(popIndex).find('img').attr("alt");
280			popTxt0 = $parent.find($popA).eq(popIndex).next('.heading').find('.h').html();
281			popTxt = $parent.find($popA).eq(popIndex).next('.heading').find('p').html();
282			$('.popimgwrap').prepend('<img src="'+img.src+'" alt="'+img.alt+'">');
283			if($parent.find($popA).eq(popIndex).next('.heading').find('.h').length && $parent.find($popA).eq(popIndex).next('.heading').find('p').length){
284				$('.popimgwrap').prepend('<div class="poptxt"><p><strong>'+popTxt0+'</strong><br>'+popTxt+'</p></div>');
285			}else if($parent.find($popA).eq(popIndex).next('.heading').find('.h').length){
286				$('.popimgwrap').prepend('<div class="poptxt"><p><strong>'+popTxt0+'</strong></p></div>');
287			}else if($parent.find($popA).eq(popIndex).next('.heading').find('p').length){
288				$('.popimgwrap').prepend('<div class="poptxt"><p>'+popTxt+'</p></div>');
289			}
290			$('.poptxt').stop().animate({bottom: 0}, 5000, 'easeInOutCubic', function(){
291				$('.poptxt').addClass("timelimit");
292			});
293			img.onload = function(){
294				$('.popimgwrap').stop().animate({opacity: 1}, 400, 'easeInOutCubic');
295			}
296		});
297	}
298	function handlePopNext(){
299		popIndex++;
300		if(popIndex == popCount - 1){
301			$('.popnext').stop().animate({marginRight: -50}, 200, 'easeInCubic');
302			$('.popprev').stop().animate({marginLeft: 10}, 200, 'easeOutCubic');
303		}else{
304			$('.popprev').stop().animate({marginLeft: 10}, 200, 'easeOutCubic');
305		}
306		if(popIndex < popCount){
307			popNav();
308		}else{
309			popIndex = popCount-1;
310		}
311	}
312	function handlePopPrev(){
313		popIndex--;
314		if(popIndex == 0){
315			$('.popprev').stop().animate({marginLeft: -50}, 200, 'easeInCubic');
316			$('.popnext').stop().animate({marginRight: 10}, 200, 'easeOutCubic');
317		}else{
318			$('.popnext').stop().animate({marginRight: 10}, 200, 'easeOutCubic');
319		}
320		if(popIndex >= 0){
321			popNav();
322		}else{
323			popIndex = 0;
324		}
325	}
326	$(document).on('click', '.popnext', function(){
327		handlePopNext();
328		return false;
329	});
330	$(document).on('click', '.popprev', function(){
331		handlePopPrev();
332		return false;
333	});
334	$(document).on('keydown', function(e){
335		const activeElement = document.activeElement;
336		const isTextInput =
337			activeElement.tagName === 'INPUT' ||
338			activeElement.tagName === 'TEXTAREA' ||
339			activeElement.isContentEditable;
340		if(isTextInput) return;//入力中なら何もしない
341		if(e.key === 'ArrowRight'){
342			handlePopNext();
343			return false;
344		}else if(e.key === 'ArrowLeft'){
345			handlePopPrev();
346			return false;
347		}
348	});
349	let touchStartX = 0;
350	let touchEndX = 0;
351	$(document).on('touchstart', function(e){
352		touchStartX = e.originalEvent.changedTouches[0].screenX;
353	});
354	$(document).on('touchend', function(e){
355		touchEndX = e.originalEvent.changedTouches[0].screenX;
356		handleSwipeGesture();
357	});
358	function handleSwipeGesture(){
359		let swipeDistance = touchEndX - touchStartX;
360		if(Math.abs(swipeDistance) > 50){ // 最低スワイプ距離(ピクセル)
361			if(swipeDistance < 0){
362				handlePopNext(); // 左→右のスワイプ(次へ)
363			}else{
364				handlePopPrev(); // 右→左のスワイプ(前へ)
365			}
366		}
367	}
368	
369	$('a[href*="no_image.jpg"], body.nopop a[href^="/common/"][href$=".webp"], body.nopop a[href^="/common/"][href$=".jpeg"], body.nopop a[href^="/common/"][href$=".jpg"], body.nopop a[href^="/common/"][href$=".gif"], body.nopop a[href^="/common/"][href$=".png"], body.nopop a[href^="/common/"][href$=".WEBP"], body.nopop a[href^="/common/"][href$=".JPEG"], body.nopop a[href^="/common/"][href$=".JPG"], body.nopop a[href^="/common/"][href$=".GIF"], body.nopop a[href^="/common/"][href$=".PNG"], body.nopop a[href^="/images/"][href$=".webp"], body.nopop a[href^="/images/"][href$=".jpeg"], body.nopop a[href^="/images/"][href$=".jpg"], body.nopop a[href^="/images/"][href$=".gif"], body.nopop a[href^="/images/"][href$=".png"], body.nopop a[href^="/images/"][href$=".WEBP"], body.nopop a[href^="/images/"][href$=".JPEG"], body.nopop a[href^="/images/"][href$=".JPG"], body.nopop a[href^="/images/"][href$=".GIF"], body.nopop a[href^="/images/"][href$=".PNG"]').each(function(){
370		$(this).css({pointerEvents: 'none'});
371	});
372	$('a[href*="no_image.jpg"], body.nopop a[href^="/common/"][href$=".webp"], body.nopop a[href^="/common/"][href$=".jpeg"], body.nopop a[href^="/common/"][href$=".jpg"], body.nopop a[href^="/common/"][href$=".gif"], body.nopop a[href^="/common/"][href$=".png"], body.nopop a[href^="/common/"][href$=".WEBP"], body.nopop a[href^="/common/"][href$=".JPEG"], body.nopop a[href^="/common/"][href$=".JPG"], body.nopop a[href^="/common/"][href$=".GIF"], body.nopop a[href^="/common/"][href$=".PNG"], body.nopop a[href^="/images/"][href$=".webp"], body.nopop a[href^="/images/"][href$=".jpeg"], body.nopop a[href^="/images/"][href$=".jpg"], body.nopop a[href^="/images/"][href$=".gif"], body.nopop a[href^="/images/"][href$=".png"], body.nopop a[href^="/images/"][href$=".WEBP"], body.nopop a[href^="/images/"][href$=".JPEG"], body.nopop a[href^="/images/"][href$=".JPG"], body.nopop a[href^="/images/"][href$=".GIF"], body.nopop a[href^="/images/"][href$=".PNG"]').on(
373		'click', function(){
374			return false;
375		}
376	);
377	
378	/*----payment pop----*/
379	
380	$('a[href="#mypayment"]').on(
381		'click', function(){
382			$('body').append('<div class="popup"><div class="poppay"><span class="poppayclose"></span><div class="tgt"><div class="loader"></div></div></div><div class="popclose">×</div></div>');
383			$('.mypayment').clone().prependTo('.poppay .tgt');
384			$('.poppay .mypayment').css({display: 'block'});
385			$('.popup:not(.-w-modal)').css({opacity: 0}).stop().animate({opacity: 1}, 400, 'easeInOutCubic');
386			return false;
387		}
388	);
389	if(navigator.userAgent.indexOf('iPhone') > 0){//iphone
390		$('#pay_paypay a').attr('href', 'https://apps.apple.com/jp/app/paypay-%E3%83%9A%E3%82%A4%E3%83%9A%E3%82%A4-%E7%B0%A1%E5%8D%98-%E3%81%8A%E5%BE%97%E3%81%AA%E3%82%B9%E3%83%9E%E3%83%9B%E6%B1%BA%E6%B8%88%E3%82%A2%E3%83%97%E3%83%AA/id1435783608?mt=8');
391		$('#pay_aupay a').attr('href', 'https://apps.apple.com/jp/app/au-wallet-au-pay%E3%82%82%E4%BD%BF%E3%81%88%E3%82%8B%E3%82%B9%E3%83%9E%E3%83%9B%E6%B1%BA%E6%B8%88%E3%82%A2%E3%83%97%E3%83%AA/id862800897?mt=8')
392		$('#pay_merpay a').attr('href', 'https://apps.apple.com/jp/app/%E3%83%A1%E3%83%AB%E3%82%AB%E3%83%AA-%E3%83%95%E3%83%AA%E3%83%9E%E3%82%A2%E3%83%97%E3%83%AA-%E3%82%B9%E3%83%9E%E3%83%9B%E6%B1%BA%E6%B8%88%E3%83%A1%E3%83%AB%E3%83%9A%E3%82%A4/id667861049?mt=8')
393		$('#pay_dpay a').attr('href', 'https://apps.apple.com/jp/app/d%E6%89%95%E3%81%84-%E3%82%B9%E3%83%9E%E3%83%9B%E6%B1%BA%E6%B8%88%E3%82%A2%E3%83%97%E3%83%AA-%E3%82%AD%E3%83%A3%E3%83%83%E3%82%B7%E3%83%A5%E3%83%AC%E3%82%B9%E3%81%A7%E3%81%8A%E6%94%AF%E6%89%95%E3%81%84/id1328132872?mt=8')
394	}else if(navigator.userAgent.indexOf('Android') > 0){//Android
395		$('#pay_paypay a').attr('href', 'https://play.google.com/store/apps/details?id=jp.ne.paypay.android.app&hl=ja');
396		$('#pay_aupay a').attr('href', 'https://play.google.com/store/apps/details?id=jp.auone.wallet&hl=ja')
397		$('#pay_merpay a').attr('href', 'https://play.google.com/store/apps/details?id=com.kouzoh.mercari&hl=ja')
398		$('#pay_dpay a').attr('href', 'https://play.google.com/store/apps/details?id=com.nttdocomo.keitai.payment')
399	}else{
400		$('.sp_payment, .mypayment').remove();
401	}
402	
403	/*-#load img-*/
404
405	$('#load img').one('load', function(){
406		$(this).addClass('loaded');
407	}).load();
408	
409	/*----text > a-----*/
410	
411	$('main a').each(function(){
412		var color = $(this).css('color');
413		color = 'rgba(' + color.slice(4,-1) + ' ,0.3)';
414		$(this).css({textDecorationColor: color});
415	});
416	
417	/*----sp tellink remove-----*/
418	
419	if($('.widget_shop01').length || $('.article-signature').length){
420		$('.widget_shop01 .fax a[href^="tel:"], .article-signature .fax a[href^="tel:"]').css({textDecoration: 'none'});
421		$('.widget_shop01 .fax a[href^="tel:"], .article-signature .fax a[href^="tel:"]').on('click', function(){
422			return false;
423		});
424		if((navigator.userAgent.indexOf('iPhone') == -1 && navigator.userAgent.indexOf('iPad') == -1) && navigator.userAgent.indexOf('iPod') == -1 && navigator.userAgent.indexOf('Android') == -1){
425			$('.widget_shop01 .tel a[href^="tel:"], .article-signature .tel a[href^="tel:"]').css({textDecoration: 'none', cursor: 'default'});
426			$('.widget_shop01 .tel a[href^="tel:"], .article-signature .tel a[href^="tel:"]').on('click', function(){
427				return false;
428			});
429		}
430	}
431	if($('#lv').length){
432		var htm = $('#lv p').html();
433		if(htm.indexOf('プライバシー') !== -1 || htm.toLowerCase().indexOf('privacy') !== -1){
434			$('.contents_box01 a[href^="tel:"]').css({textDecoration: 'none'});
435			$('.contents_box01 a[href^="tel:"]').on('click', function(){
436				return false;
437			});
438		}
439		$('#lv').css({minHeight: parseInt($('#lv').css('height'), 10), height: 'auto'});
440	}
441	
442	/*---header---*/
443
444	$('.nav_1st').css({flexWrap: 'no-wrap'});
445	$('.nav_1st>li').css({flexGrow: '1'});
446	
447	$('header .sp_menu a').on(
448		'click', function(){
449			$(this).parents('header').toggleClass('open');
450			return false;
451		}
452	);
453	
454	if($('header .header_contents .header_col1 .btn .translate').length){
455		$('header .header_contents .header_col1 .btn').addClass('hastrans');
456	}
457	
458	/*---header nav_2nd---*/
459
460	$('.nav_2nd').each(function(){
461		$(this).css({overflow: 'auto', maxHeight: window.innerHeight - $(this).offset().top - parseInt($(this).css('padding-top'), 10) - parseInt($(this).css('padding-bottom'), 10) - 20});
462	});	
463	
464	/*---gallery 2column---*/
465	
466	function lay_column2(){
467		$('.gallery_archive.lay_column2 .content_wrapper>.wrapper_item').wrap('<div id="primary"></div>');
468		//カテゴリー上
469		$('.gallery_archive.lay_column2 ul.category1:first-child').wrap('<div id="sidebar" class="align-left"><section></section></div>').removeClass('category1').addClass('sidebar_list pos_top');
470		//カテゴリー下
471		$('.gallery_archive.lay_column2~ul.category1').insertAfter('#primary').wrap('<div id="sidebar" class="align-left"><section></section></div>').removeClass('category1').addClass('sidebar_list pos_bottom');
472		$('.gallery_archive.lay_column2 #sidebar section .sidebar_list:first-child').before('<div class="heading block_header_5"><h4 class="h">カテゴリー</h4><p>Categories</p></div>');
473		$('.gallery_archive.lay_column2+.pager').appendTo('#primary');
474		
475		$('.youtubelist_archive.lay_column2 .content_wrapper>.wrapper_item').wrap('<div id="primary"></div>');
476		//カテゴリー上
477		$('.youtubelist_archive.lay_column2 ul.category1:first-child').wrap('<div id="sidebar" class="align-left"><section></section></div>').removeClass('category1').addClass('sidebar_list pos_top');
478		//カテゴリー下
479		$('.youtubelist_archive.lay_column2~ul.category1').insertAfter('#primary').wrap('<div id="sidebar" class="align-left"><section></section></div>').removeClass('category1').addClass('sidebar_list pos_bottom');
480		$('.youtubelist_archive.lay_column2 #sidebar section .sidebar_list:first-child').before('<div class="heading block_header_5"><h4 class="h">カテゴリー</h4><p>Categories</p></div>');
481		$('.youtubelist_archive.lay_column2+.pager').appendTo('#primary');
482	}
483	lay_column2();
484	$(window).on('resize', lay_column2);
485	
486	/*----composite_box01-----*/
487	
488	$('.composite_box01.block_images_3 .heading, .composite_box01.block_images_6 .heading').each(function(){
489		var $tt = $(this).parents('.inner_item');
490		$(this).prependTo($tt);
491	});
492	$('.composite_box01:not(.block_images_8):not(.block_images_10)').each(function(){
493		$(this).find('.inner_item_img img').each(function(){
494			var src = $(this).attr('src');
495			if(src.indexOf('no_image') !== -1){
496				$(this).parents('.inner_item_img').remove();
497			}
498		});
499	});
500	$('.composite_box01 .inner_item').each(function(){
501		if(!($(this).find('.inner_item_img').length) || $(this).find('.inner_item_img img').attr('src').indexOf('no_image') !== -1){
502			if(!($(this).find('.inner_item_txt heading').length)){
503				var str = $(this).find('.inner_item_txt').text();
504				if(str.trim() == ''){
505					$(this).addClass('empty')
506				}
507			}
508		}
509	});
510	$('.composite_box01.block_images_13 .empty').remove();
511
512	//a area 241003
513	$('.composite_box01.block_images_17 .inner_item').each(function(){
514		if($(this).find('a').length){
515			var href = $(this).find('a').attr('href');
516			if(!href.startsWith(`/images/`) && !href.startsWith(`/common/`)){
517				$(this).css({cursor: 'pointer'});
518				$(this).on('click', function(){
519					var tgt = $(this).find('a').attr('target');
520					if(tgt == '_blank'){
521						window.open(href, '_blank');
522					}else{
523						location.href = href;
524					}
525				});
526			}
527		}
528	});
529	
530	/*---pindex---*/
531	
532	if($('body:not(.edit_view) .pindex').length){
533		var pindex = 0;
534		$('.heading .h').each(function(){
535			if($(this).closest('aside#common_footer').length <= 0 && $(this).closest('.entry_header').length <= 0 && $(this).closest('.contents_related_tags').length <= 0 && $(this).closest('.contents_related').length <= 0 && $(this).closest('.widget_shop01.add_design3').length <= 0 && $(this).closest('.widget_shop01.add_design4').length <= 0){
536				if($(this).prop('tagName') == 'H2' || $(this).prop('tagName') == 'H3'){
537					pindex++;
538					$(this).parents('.heading').attr('data-pindex', 'pi'+pindex);
539					var txt = $(this).text();
540					if(txt == ''){
541						txt = $(this).next('p').text();
542					}
543					if($(this).prop('tagName') == 'H2'){
544						$('.pindex ul').append('<li><a href="#" data-plink="pi'+pindex+'">'+txt+'</a></li>');
545					}else if($(this).prop('tagName') == 'H3'){
546						$('.pindex ul').append('<li class="sub"><a href="#" data-plink="pi'+pindex+'">'+txt+'</a></li>');
547					}
548				}
549			}
550		});
551		$('a[href^="#"][data-plink]').click(function(){
552			var target = $(this).attr('data-plink');
553			var $target = $('[data-pindex="'+target+'"]');
554			if(!$target.length){
555				return false;
556			}
557			var position = $target.offset().top;
558			position = position - $('header').outerHeight() - 20;
559			$('body,html').animate({scrollTop: position}, 1000, 'easeInOutCubic');
560			return false;
561		});
562	}
563
564	/*---load3 5---*/
565	
566	if($('#load.load3, #load.load5, #load.load6, #load.load7, #load.load8, #load.load9, #load.load8').length){
567		var imgArray = [];
568		var images = document.getElementsByTagName('img');
569		var count = 0;
570		var gaugeMax = 400;
571		var current;
572		for(var i = 0; i < images.length; i++){
573			imgArray.push(images[i].src);
574		}
575		var imgArray2 = imgArray.filter(function(x, i, self){
576            return self.indexOf(x) === i;
577        });
578		for (var i = 0; i < imgArray2.length; i++) {
579			var img = new Image();
580			img.onload = function() {
581				count += 1;
582			}
583			img.onerror = function() {
584				count += 1;
585			}
586			img.src = imgArray2[i];
587		};
588		var nowLoading = setInterval(function() {
589			current = count / imgArray2.length * 100;
590			$('#load .loader').css({width: current+'%'});
591		}, 10);
592		$(window).load(function(){
593			clearInterval(nowLoading);
594		});
595	}
596
597	/*---load4---*/
598	
599	if($('#load.load4').length){
600		$('#load.load4').attr('data-anime1', Math.round(Math.random() * 1));
601		$('#load.load4').attr('data-anime1', Math.round(Math.random() * 1));
602	}
603
604	/*---fixsns---*/
605	
606	if((navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPad') > 0) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0){
607		$('#fixsns').addClass('sp');
608		$('#fixsns .snstgl').on('click', function(){
609			$('#fixsns').toggleClass('open');
610		});
611	}
612	
613	/*---richeditor table---*/
614
615	$('.inner_item_txt table[style*="width:"]').each(function(){
616		$(this).css({width: '100%', maxWidth: parseInt($(this).css('width'), 10)});
617	});
618
619	/*---staff SNS---*/
620	
621	$('.widget_staff01').each(function(){
622		$(this).find('dd').each(function(){
623			var txt = $(this).text();
624			if(txt.indexOf('https://www.instagram.com/') == 0 || txt.indexOf('https://www.youtube.com/') == 0 || txt.indexOf('https://twitter.com/') == 0 || txt.indexOf('https://x.com/') == 0 || txt.indexOf('https://www.facebook.com/') == 0 || txt.indexOf('http://line.me/') == 0 || txt.indexOf('https://line.me/') == 0 || txt.indexOf('https://www.tiktok.com/') == 0 || txt.indexOf('http://www.threads.net/') == 0 || txt.indexOf('https://www.threads.net/') == 0 || txt.indexOf('https://www.threads.com/') == 0){
625				$(this).parents('.inner_item_txt').addClass('has_sns').find('.heading').after('<li><a href='+txt+' target="_blank"></a></li>');
626				$(this).parents('dl').remove();
627			}
628		});
629	});
630	$('.widget_staff01 .has_sns').each(function(){
631		$(this).children('li').wrapAll('<ul class="s_sns"></ul>');
632	});
633
634	/*---shop SNS---*/
635	
636	$('.widget_shop01').each(function(){
637		$(this).find('dd').each(function(){
638			var txt = $(this).text();
639			if(txt.indexOf('https://www.instagram.com/') == 0 || txt.indexOf('https://www.youtube.com/') == 0 || txt.indexOf('https://twitter.com/') == 0 || txt.indexOf('https://x.com/') == 0 || txt.indexOf('https://www.facebook.com/') == 0 || txt.indexOf('http://line.me/') == 0 || txt.indexOf('https://line.me/') == 0 || txt.indexOf('https://www.tiktok.com/') == 0 || txt.indexOf('http://www.threads.net/') == 0 || txt.indexOf('https://www.threads.net/') == 0 || txt.indexOf('https://www.threads.com/') == 0){
640				$(this).parents('.inner_item_txt').addClass('has_sns').find('.heading').after('<li><a href='+txt+' target="_blank"></a></li>');
641				$(this).parents('dl').remove();
642			}
643		});
644	});
645	$('.widget_shop01 .has_sns').each(function(){
646		$(this).children('li').wrapAll('<ul class="s_sns"></ul>');
647	});
648	
649	/*headerbtn span 240909*/
650	if(arr_unix.indexOf(String(unix)) !== -1 || Number(unix) == 1719536606 || Number(unix) >= 1725202800){//24-09-02-0:00
651		var hbtn_c = $('.header_col1 .btn>a').css('color');
652		var hbtn_hc = $('.header_col1 .btn>a:hover').css('color');
653		var hbtn_p1 = $('.header_col1 .btn>a:not([target="_blank"])').css('padding');
654		var hbtn_p2 = $('.header_col1 .btn>a[target="_blank"]').css('padding');
655		$('.header_col1 .btn>a').wrapInner('<span class="inn"></span>');
656		$('.header_col1 .btn>a:not([target="_blank"]) span.inn').attr('style', 'padding:'+hbtn_p1+';');
657		$('.header_col1 .btn>a[target="_blank"] span.inn').attr('style', 'padding:'+hbtn_p2+';');
658		$('head').append('<style>header .header_contents .header_col1 .btn > a span.inn{color: '+hbtn_c+'} header .header_contents .header_col1 .bt
658n > a:hover span.inn{color: '+hbtn_hc+'} header .header_contents .header_col1 .btn > a[target="_blank"] span.inn::before, header .header_contents .header_col1 .btn > a[target="_blank"] span.inn::after{border-color: '+$('.header_col1 .btn>a').css('color')+';} header .header_contents .header_col1 .btn > a[target="_blank"]:hover span.inn::before, header .header_contents .header_col1 .btn > a[target="_blank"]:hover span.inn::after{border-color: '+$('.header_col1 .btn>a:hover span').css('color')+';}</style>');
659	}
660
661	/* header footer details */
662	function accordion_btn_pos($i){
663	}
664	if($('.accordion_btn').length){
665		if($('header .accordion_btn').length){
666			if($('header#pattern4').length){
667				$('header .accordion_btn').clone().insertAfter('header>.wraper>.inner>.btn>a');
668			}
669			if($('.header_col1 .btn>a').length){
670				var $t = $('.header_col1 .btn>a');
671				if($('.header_col1 .btn>a span.inn').length){
672					$t = $('.header_col1 .btn>a span.inn');
673				}
674				var hbtn_pt = $t.css('padding-top');
675				var hbtn_pb = $t.css('padding-bottom');
676				var hbtn_pl = $t.css('padding-left');
677				$('header .accordion_btn summary span.inn').attr('style', 'padding:'+hbtn_pt+' '+hbtn_pl+' '+hbtn_pb+' '+hbtn_pl+' '+';');
678			}
679		}
680		$('body').on('click', '.accordion_btn summary', function(event){
681			event.preventDefault();
682			$(this).parent().toggleClass('is-open');
683			var $i = $(this).next('.resevation_btns');
684			var pos = $i.offset().left + $i.outerWidth();
685			var gap = window.innerWidth - pos;
686			if(gap <= 0){
687				$i.css({marginLeft: gap - 10});
688				$i.find('i').css({marginLeft: (gap - 10)*-1});
689			}
690		});
691		$(document).on('click', function(event){
692			if(!$(event.target).closest('.accordion_btn.is-open .resevation_btn a, .accordion_btn summary').length){
693				$('.accordion_btn').removeClass('is-open');
694			}
695		});
696		$('body').on('click', '.accordion_btn .close', function(){
697			$('.accordion_btn').removeClass('is-open');
698		});
699		$('.sp_menu a').on('click', function(){
700			$('.accordion_btn').removeClass('is-open');
701		});
702		$(window).scroll(function(){
703			$('.accordion_btn').removeClass('is-open');
704		});
705	}
706})
707
708$(window).load(function(){
709	
710	/*---ini---*/
711	
712	var unix = $('body').data('ini');
713	
714	$('body:not(.edit_view) p:empty').remove();
715	
716	if($('#goog-gt-vt').length){
717		$('#goog-gt-vt').find('img').attr('alt', 'Google翻訳');
718	}	
719	
720	var myVer = 3;//無印のverは3
721	if($('body').data('ver')){
722		myVer = $('body').data('ver');
723	}
724	var myVerRes = new String(myVer).split('.');
725	function verChekck(v){
726		var ver = new String(v);
727		var res = ver.split('.');
728		var lim = res.length;
729		if(lim < myVerRes.length){
730			lim = myVerRes.length;
731		}
732		for(var i = 0; i < lim; i++){
733			if(!myVerRes[i]){
734				myVerRes.push('0');
735			}
736			if(!res[i]){
737				res.push('0');
738			}
739			if(myVerRes[i] > res[i]){
740				return true;
741				break;
742			}
743			if(myVerRes[i] < res[i]){
744				return false;
745				break;
746			}
747		}
748		return true;
749	}
750	//verChekck('*.*.*.*')//引数と比較して対象のverが新しいまたは同じならtrue、古ければfalse
751	//if(!verChekck('3.1.2')){}//対象のverが3.1.2より古い場合
752	
753	/*---loading---*/
754	
755	if($('#load').length){
756		$("#load .loader").stop().animate({opacity: 0}, 300, 'easeInOutCubic');
757		$("body").addClass('done');
758		$("#load").addClass('complete').stop().animate({opacity: 0}, 800, 'easeInOutCubic', function(){
759			HH();
760			//ResizeHead();
761			$("#load").css({display: "none"});
762			$('nav').css({overflow: 'visible'});
763		});
764	}else{
765		$('nav').css({overflow: 'visible'});
766		$("body").addClass('done');
767	}
768	
769	/*----pcnav-----*/
770	
771	function ResizeNav(){
772		$('.nav_2nd').each(function(){
773			var pos = $(this).parents('li').offset().left + $(this).width();
774			if(pos > $(window).width()){
775				$(this).css({left: $(window).width() - pos - 20});
776			}else{
777				$(this).css({left: 0});
778			}
779		});
780	}
781	$(window).on('resize', ResizeNav);
782	ResizeNav();
783	
784	$('.nav_1st>li:has(li)>a').after('<i></i>');
785	$('.nav_1st>li i').on('click', function(){
786		$(this).next().slideToggle();
787		$(this).toggleClass('open');
788	});
789	
790	/*----btn 複数ボタン-----*/
791	
792	if(arr_unix.indexOf(String(unix)) !== -1 || Number(unix) >= 1681398000){//23-04-14-0:00
793		$('main .contents_btn01').each(function(){
794			var count = $(this).find('.content_wrapper>a').length;
795			if(count > 2){
796				var wAry = [];
797				for(var i = 0; i < count; i++){
798					var $tgt = $(this).find('.content_wrapper>a').eq(i);
799					wAry.push(Math.ceil($tgt.width() + 1));
800				}
801				$(this).find('.content_wrapper>a').css({width: Math.max.apply(null, wAry)});
802			}
803		});
804	}
805	if(arr_unix.indexOf(String(unix)) !== -1 || Number(unix) >= 1684940400){//23-05-25-0:00
806		var count = $('footer .contents_btn01>*').length;
807		if(count > 1){
808			var $tgt = $('footer .contents_btn01>*').eq(0);
809			var bwidth = getMaxFbtn(count);
810			var bwidth2 = bwidth + parseInt($tgt.css('border-left-width'), 10) + parseInt($tgt.css('border-right-width'), 10) + parseInt($tgt.css('margin-left'), 10) + parseInt($tgt.css('margin-right'), 10);
811			if(parseInt($('footer .contents_btn01').css('width'), 10) < bwidth2*2){
812				$('footer .contents_btn01>* span').css({letterSpacing: 0});
813				$('footer .contents_btn01>*').css({width: getMaxFbtn(count)});
814			}else{
815				$('footer .contents_btn01>*').css({width: bwidth});
816			}
817		}
818	}
819	function getMaxFbtn(j){
820		var wAry = [];
821		for(var i = 0; i < j; i++){
822			var $tgt = $('footer .contents_btn01>*').eq(i);
823			wAry.push(Math.ceil($tgt.width() + 1));
824		}
825		return Math.max.apply(null, wAry);
826	}
827
828	var hbcount = $('.header_col1 .btn>a').length;
829	if(hbcount > 1){
830		var hbwAry = [];
831		for(var i = 0; i < hbcount; i++){
832			var $hbtgt = $('.header_col1 .btn>a').eq(i);
833			hbwAry.push(Math.ceil($hbtgt.outerWidth() + 1));
834		}
835		$('.header_col1 .btn>a').css({width: Math.max.apply(null, hbwAry)});
836	}
837
838	/*----footer 4 5-----*/
839	
840	var count = $('footer nav ul > li').length;
841	var $fu = $('footer nav ul');
842	var $fl = $('footer nav ul > li');
843	function ResizeFNav(){
844		if($('footer.add_design4').length || $('footer.add_design5').length){
845			var column;
846			var line;
847			$fl.removeClass('flw20 flw25 flw100');
848			if(count <= 10){
849				if(window.innerWidth > 1000){
850					$fl.addClass('flw20');
851				}else{
852					$fl.addClass('flw25');
853				}
854				if(count >= 7){//7 8 9 10
855					column = 3;
856				}else if(count >= 5){//5 6
857					column = 2;
858				}else{// 1 2 3 4
859					column = 1;
860					$fl.addClass('flw100');
861				}
862			}else{
863				if(window.innerWidth < 1000){
864					column = 4;
865					$fl.addClass('flw25');
866				}else{
867					column = 5;
868					$fl.addClass('flw20');
869				}
870			}
871			line = Math.ceil(count/column);
872			var start = 0;
873			var flh2 = 0;
874			for(var j = 0; j < column; j++){
875				var flh = 0;
876				for(var i = 0+j*column; i < line+j*column; i++){
877					var $fls = $('footer nav ul > li').eq(i);
878					flh += $fls.height() + parseInt($fls.css('padding-top'), 10) + parseInt($fls.css('padding-bottom'), 10) + 1;
879				}
880				if(flh2 < flh){
881					flh2 = flh;
882				}
883			}
884			$fu.css({height: flh2});
885		}
886	}
887	$(window).on('resize', ResizeFNav);
888	ResizeFNav();
889	
890	/*----fixbtn-----*/
891	
892	if($('footer').length){
893		$(function(){
894			setTimeout(function(){
895				$('#fixbtn .fixbtnwrap').css({transform: 'translateY(0)'});
896			},500);
897		});
898
899		if(!$('#fixbtn').is('[data-pattern]')){
900			$('#fixbtn').attr('data-pattern', '1');
901		}
902
903		var fheight = $('#fixbtn .fixbtnwrap').outerHeight();
904		if(!($('#fixbtn .fixbtntel').length) && !($('#fixbtn .contents_btn01').length)){
905			$('#fixbtn').addClass('no');
906		}
907		function funcFixFooter(){
908			fheight = $('#fixbtn .fixbtnwrap').outerHeight();
909			$('#fixbtn:not([data-pattern="4"])').css({height: fheight});
910			var page_scroll = $(this).scrollTop();
911			
912			//旧DEVELOP778
913			if(!$('#fixbtn.DEVELOP778').length){
914				if($('#fixbtn').offset().top > window.innerHeight*2){
915					//▼100vh以上スクロールすると下から出てくる
916					if(page_scroll >= window.innerHeight){
917						$('#fixbtn').addClass("scrolled");
918						//▼#fixbtnの位置までスクロールするとボタンが固定される
919						if(page_scroll + window.innerHeight >= $('#fixbtn').offset().top + $('#fixbtn').height()){
920							$('#fixbtn').css({position: 'relative'});
921							$('#fixbtn:not([data-pattern="4"]) .fixbtnwrap').css({position: 'absolute', bottom: 'auto', top: 0});
922							$('#fixsns').removeClass('show');
923						}else{
924							$('#fixbtn').css({position: 'inherit'});
925							$('#fixbtn .fixbtnwrap').css({position: 'fixed', bottom: 0, top: 'auto'});
926							$('#fixsns').addClass('show');
927						}
928					}else{
929						$('#fixbtn').removeClass("scrolled");
930						$('#fixbtn .fixbtnwrap').css({bottom: fheight*-1});
931					}
932				}else{
933					$('#fixbtn').css({position: 'relative'});
934					$('#fixbtn:not([data-pattern="4"]) .fixbtnwrap').css({position: 'absolute', bottom: 'auto', top: 0});
935					$('#fixsns').addClass('show');
936				}
937				
938				$('#fixbtn[data-pattern="3"]').css({height: $('#fixbtn[data-pattern="3"] .fixbtnwrap .inner').outerHeight()});
939			}
940
941			//新DEVELOP778
942			if($('#fixbtn.DEVELOP778').length){	
943				if($('#fixbtn').offset().top > window.innerHeight){
944					//▼#fixbtnの位置までスクロールするとボタンが固定される
945					if(page_scroll + window.innerHeight >= $('#fixbtn').offset().top){
946						$('#fixbtn').css({position: 'relative'});
947						$('#fixbtn:not([data-pattern="4"]) .fixbtnwrap').css({position: 'absolute', bottom: 'auto', top: 0});
948						$('#fixsns').removeClass('show');
949					}else{
950						$('#fixbtn').css({position: 'inherit'});
951						$('#fixsns').addClass('show');
952						$('#fixbtn .fixbtnwrap').stop().css({position: 'fixed', bottom: fheight*-1, top: 'auto'});
953						if(funcFixFooterShoeTime) clearTimeout(funcFixFooterShoeTime);
954						funcFixFooterShoeTime = setTimeout(function(){
955							$('#fixbtn .fixbtnwrap').css({bottom: 0});
956						}, 500);
957					}
958				}else{
959					$('#fixbtn').css({position: 'relative'});
960					$('#fixbtn:not([data-pattern="4"]) .fixbtnwrap').css({position: 'absolute', bottom: 'auto', top: 0});
961					$('#fixsns').addClass('show');
962				}
963			}
964		};
965		//funcFixFooter();
966		var funcFixFooterShoeTime = false;
967		$(window).scroll(function(){
968			funcFixFooter();
969		});
970		if($('#fixbtn.DEVELOP778.scrolled').length){
971			$('#fixsns').addClass('show');
972			$('#fixbtn .fixbtnwrap').stop().css({position: 'fixed', bottom: fheight*-1, top: 'auto'});
973			$('#fixbtn .fixbtnwrap').css({bottom: 0});
974		}
975		
976		function ResizeFixbtn(){
977			fheight = $('#fixbtn .fixbtnwrap').height();
978			if($(window).width() < 700){
979				if($('.fixbtntel span').length || $('.fixbtntel a').length){
980				}else{
981					$('#fixbtn .fixbtntel').css({display: "none"});
982				}
983			}else{
984				$('#fixbtn .fixbtntel').css({display: "inherit"});
985			}
986
987			//#fixbtn[data-pattern="2"]
988			var fixbtnH = 0;
989			$('#fixbtn[data-pattern="2"] .fixbtntel').css({minHeight: fixbtnH});
990			fixbtnH = $('#fixbtn[data-pattern="2"] .contents_btn01').height();
991			$('#fixbtn[data-pattern="2"] .fixbtntel').css({minHeight: fixbtnH});
992		}
993		ResizeFixbtn();
994		$(window).on('resize', ResizeFixbtn);
995
996		//#fixbtn[data-pattern="3"]
997		var fb3w = $('#fixbtn[data-pattern="3"] .contents_btn01').outerWidth() + $('#fixbtn[data-pattern="3"] .fixbtntel').outerWidth();
998		if($(window).width()+10 <= fb3w){
999			$('#fixbtn[data-pattern="3"]').addClass('column');
1000		}
1001		$('#fixbtn[data-pattern="3"]').css({height: $('#fixbtn[data-pattern="3"] .fixbtnwrap .inner').outerHeight()});
1002		
1003	}
1004	
1005	/*----parallax----*/
1006	
1007	var parallax_spd = 2.5;//スピード設定(1=スクロール等速)
1008	function parallaxScroll(){
1009		var parallax_scroll = $(this).scrollTop();
1010		$('.parallax').each(function(){
1011			var parallax_pos = $(this).offset().top;
1012			var parallax_h = $(this).height() + parseInt($(this).css('padding-top'), 10) + parseInt($(this).css('padding-bottom'), 10);
1013			var parallax_ratio = (parallax_pos - parallax_scroll + parallax_h) / ($(window).height() + parallax_h);
1014			var parallax_A1 = parallax_h * parallax_spd;
1015			var parallax_A2 = parallax_A1 * parallax_ratio * -1 + parallax_h * parallax_ratio;
1016			$(this).find('.parallax_img').css({
1017				height: parallax_A1,
1018				transform: 'translateY(' + parallax_A2 + 'px)',
1019			});
1020		});
1021	}
1022	/*
1023	if((navigator.userAgent.indexOf('iPhone') == -1 && navigator.userAgent.indexOf('iPad') == -1) && navigator.userAgent.indexOf('iPod') == -1 && navigator.userAgent.indexOf('Android') == -1){
1024		$(window).scroll(function(){
1025			parallaxScroll();
1026		});
1027		parallaxScroll();
1028	}else{
1029		$('.parallax').each(function(){
1030			var parallax_h = $(this).height() + parseInt($(this).css('padding-top'), 10) + parseInt($(this).css('padding-bottom'), 10);
1031			$(this).find('.parallax_img').addClass('sp').css({
1032				height: parallax_h,
1033				top: 0,
1034			});
1035		});
1036	}
1037	*/
1038	$(window).scroll(function(){
1039		parallaxScroll();
1040	});
1041	parallaxScroll();
1042	
1043	/*----contents_box01-----*/
1044	
1045	function ResizeContentsBox(){
1046		if($(window).width() <= 900){
1047			var ContentsBoxM;
1048			ContentsBoxM = parseInt($('#main>section.mb .content_wrapper>*:last-child').css('margin-bottom'), 10);
1049			$('.contents_box01 .content_wrapper>*:last-child').each(function(){
1050				if(parseInt($(this).css('margin-bottom'), 10) == 0){
1051					$(this).css({paddingBottom: ContentsBoxM});
1052				}
1053			});
1054		}else{
1055			$('.contents_box01 .content_wrapper>*:last-child').each(function(){
1056				$(this).css({paddingBottom: 0});
1057			});
1058		}
1059	}
1060	ResizeContentsBox();
1061	$(window).on('resize', ResizeContentsBox);
1062	
1063	/*----block_fukidashi-----*/
1064	
1065	$('section[class*="block_fukidashi_"] .inner_item_img').each(function(){
1066		var alt = $(this).find('img').attr('alt');
1067		if(alt !== ''){
1068			$(this).append('<p>'+alt+'</p>');
1069		}
1070	});
1071	
1072	/*---tooltip---*/
1073	
1074	var tip_num = 0;
1075	$('main a[data-tooltip]').hover(function(e){
1076		if((navigator.userAgent.indexOf('iPhone') === -1 && navigator.userAgent.indexOf('iPad') === -1) && navigator.userAgent.indexOf('iPod') === -1 && navigator.userAgent.indexOf('Android') === -1){
1077			var wrd = $(this).text();
1078			var rel = $(this).attr('data-tooltip');
1079			var n = tip_num;
1080			if(!rel){
1081				rel = $(this).attr('title');
1082			}
1083			$('body').append('<div class="tip tipnum'+tip_num+'"><p>'+wrd+'</p><p>'+rel+'</p><span></span></div>');
1084			var a_y = $(this).offset().top;
1085			var a_h = $(this).height();
1086			var a_w = $(this).width();
1087			var a_lh = parseInt($(this).css('line-height'), 10);
1088			var tip_w = $('.tipnum'+tip_num).width();
1089			var tip_h = $('.tipnum'+tip_num).height();
1090			var tip_x = e.pageX;
1091			var tip_y = a_y - tip_h;
1092			if(e.pageY - a_y >= a_lh){
1093				tip_y += a_lh;
1094			}
1095			var spanOff = 0;
1096			if(tip_x >= window.innerWidth - tip_w){
1097				spanOff = tip_x + tip_w - window.innerWidth + 20;
1098				tip_x = window.innerWidth - tip_w - 20;
1099			}else if(tip_x < 40){
1100				tip_x = 30;
1101			}
1102			$('.tipnum'+tip_num).find('span').css({left: parseInt($('.tipnum'+tip_num).find('span').css('left'), 10) + spanOff});
1103			$('.tipnum'+tip_num).css({top: tip_y - 20, left: tip_x - 20}).delay(10).queue(function(){
1104				if(n === tip_num){
1105					$(this).css({transform: 'translate(0,0)', opacity: 1}).dequeue();
1106				}
1107			});
1108		}
1109	}, function(){
1110		tip_num ++;
1111		$('.tip:nth-last-of-type(1)').css({transform: 'translate(0,-20px)', opacity: 0});
1112		$('.tip:nth-last-of-type(n+3)').remove();
1113	});
1114	function ResizeTip(){
1115		$('.tip').remove();
1116	}
1117	$(window).on('resize', ResizeTip);
1118	ResizeTip();
1119	
1120	/*----tel link-----*/
1121	
1122	if((navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPad') > 0) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0){
1123		$('span[data-tel^=tel]').each(function(){
1124			var html = $(this).html();
1125			var tel = $(this).attr('data-tel');
1126			$(this).replaceWith('<a href="'+ tel +'">'+ html +'</a>');
1127		});
1128	}else{
1129		$('span[data-tel^=tel]').each(function(){
1130			if($(this).closest('.contents_btn01').length > 0){
1131				var html = $(this).html();
1132				var tel = $(this).attr('data-tel');
1133				$(this).replaceWith('<a href="'+ tel +'">'+ html +'</a>');
1134			}
1135		});
1136		$('header a[href^=tel], footer a[href^=tel]:not(.pc_tel)').each(function(){
1137			var html = $(this).html();
1138			var tel = $(this).attr('href');
1139			$(this).replaceWith('<span data-tel="'+ tel +'">'+ html +'</span>');
1140		});
1141	}
1142	
1143	/*----composite_box01-----*/
1144	
1145	if($('body:not(.edit_view) .composite_box01.block_images_13').length){
1146		$('body:not(.edit_view) .composite_box01.block_images_13 .wrapper_item:not(.slick-slider)').each(function(){
1147			$(this).slick({
1148				accessibility: false,
1149				autoplay: true,
1150				autoplaySpeed: 4000,
1151				speed: 700,
1152				slidesToShow: 2,
1153				slidesToScroll: 1,
1154				arrows: true,
1155				cssEase: 'ease-in-out',
1156				centerMode: false,
1157				centerPadding: '0',
1158				draggable: true,
1159				pauseOnHover: true,
1160				swipe: true,
1161				infinite: true,
1162				dots: true,
1163				responsive:[
1164					{
1165						breakpoint: 600,
1166						settings:{
1167							slidesToShow: 1,
1168						}
1169
1170					},
1171				]
1172			});
1173		});
1174	}
1175
1176	if($('body:not(.edit_view) .composite_box01.block_images_19').length){
1177		$('body:not(.edit_view) .composite_box01.block_images_19 .wrapper_item:not(.slick-slider)').each(function(){
1178			$(this).slick({
1179				accessibility: false,
1180				autoplay: false,
1181				autoplaySpeed: 4000,
1182				speed: 700,
1183				slidesToShow: 1,
1184				slidesToScroll: 1,
1185				arrows: false,
1186				cssEase: 'ease-in-out',
1187				centerMode: false,
1188				centerPadding: '0',
1189				draggable: false,
1190				pauseOnHover: false,
1191				swipe: false,
1192				infinite: false,
1193				responsive:[
1194					{
1195						breakpoint: 900,
1196						settings:{
1197							autoplay: true,
1198							pauseOnHover: true,
1199							swipe: true,
1200							centerMode: true,
1201							centerPadding: '7vw',
1202							initialSlide: 0,
1203							dots: true,
1204							swipe: true,
1205							draggable: true,
1206						}
1207					},
1208				]
1209			});
1210		});
1211	}
1212	//.composite_box01.block_images_21 side-slide cmn.js main.js blockInsert.js
1213	if($('body:not(.edit_view) .composite_box01.block_images_21').length){
1214		function ResizeSideslide(){
1215			$('.composite_box01.block_images_21').each(function(){
1216				var $tgt = $(this);
1217				var items = $tgt.find('.inner_item').length;
1218				$tgt.find('.inner_item').each(function(){
1219					if(!$(this).find('img').length){
1220						$(this).addClass('img0');
1221					}
1222					if(!$(this).find('.inner_item_txt').text().match(/\S/g)){
1223						$(this).addClass('img100');
1224					}
1225				});
1226				var c_img = $tgt.find('.img0').length + $tgt.find('.img100').length;
1227				if(window.innerWidth <= 800){
1228					$tgt.find('.sideslide .wrapper_item').css({height: 200*items - 100*c_img + 'vh'});
1229					$tgt.find('.side-scroll').css({width: 200*items - 100*c_img + 'vw'});
1230				}else{
1231					$tgt.find('.sideslide .wrapper_item').css({height: 100*items + 'vh'});
1232					$tgt.find('.side-scroll').css({width: 100*items + 'vw'});
1233				}
1234			});
1235		}
1236		ResizeSideslide();
1237		$(window).on('resize', ResizeSideslide);
1238		$('.composite_box01.block_images_21').each(function(){
1239			var $tgt = $(this);
1240			$(window).scroll(function(){
1241				var start = $tgt.find('.sideslide .wrapper_item').offset().top;
1242				var offset = ($(this).scrollTop() - start) * (window.innerWidth / window.innerHeight);
1243				var lim = $tgt.find('.side-scroll').width() - window.innerWidth;
1244				if(offset >= lim){
1245					$tgt.find('.side-scroll').css({marginLeft: lim*-1});
1246				}else if(offset >= 0){
1247					$tgt.find('.side-scroll').css({marginLeft: offset*-1});
1248				}else{
1249					$tgt.find('.side-scroll').css({marginLeft: 0});
1250				}
1251			});
1252		});
1253	}
1254	
1255	var bt5 = 0;
1256	if($('.contents_box01.block_text_5').length){
1257		$('.contents_box01.block_text_5').each(function(){
1258			if(!$(this).prev().hasClass('block_text_5') && !$(this).prev().hasClass('contents_hr')){
1259				bt5 = 0;
1260			}
1261			bt5 ++;
1262			$(this).find('.content_wrapper').append('<i class="num">No.'+bt5+'</i>');
1263		});
1264	}
1265	
1266	if($('.contents_box01.block_text_6').length){
1267		$('body:not(.edit_view) .contents_box01.block_text_6 .heading').on('click', function(){
1268			$(this).parent('.content_wrapper').find('.wrapper_item').slideToggle(500, 'easeOutCubic');
1269			$(this).parent('.content_wrapper').toggleClass('open');
1270		});
1271	}
1272	
1273	/*----contents_numbering-----*/
1274	
1275	if($('body:not(.edit_view) .contents_numbering.add_design10').length){
1276		$('body:not(.edit_view) .contents_numbering.add_design10 .wrapper_item:not(.slick-slider)').each(function(){
1277			$(this).slick({
1278				accessibility: false,
1279				autoplay: true,
1280				autoplaySpeed: 4000,
1281				speed: 700,
1282				slidesToShow: 2,
1283				slidesToScroll: 1,
1284				arrows: true,
1285				cssEase: 'ease-in-out',
1286				centerMode: false,
1287				centerPadding: '0',
1288				draggable: true,
1289				pauseOnHover: true,
1290				swipe: true,
1291				infinite: true,
1292				dots: true,
1293				responsive:[
1294					{
1295						breakpoint: 600,
1296						settings:{
1297							slidesToShow: 1,
1298						}
1299
1300					},
1301				]
1302			});
1303		});
1304	}
1305	if($('body:not(.edit_view) .contents_numbering.add_design11').length){
1306		$('body:not(.edit_view) .contents_numbering.add_design11 .wrapper_item:not(.slick-slider)').each(function(){
1307			$(this).slick({
1308				accessibility: false,
1309				autoplay: true,
1310				autoplaySpeed: 4000,
1311				speed: 700,
1312				slidesToShow: 2,
1313				slidesToScroll: 1,
1314				arrows: true,
1315				cssEase: 'ease-in-out',
1316				centerMode: false,
1317				centerPadding: '0',
1318				draggable: true,
1319				pauseOnHover: true,
1320				swipe: true,
1321				infinite: true,
1322				dots: true,
1323				responsive:[
1324					{
1325						breakpoint: 600,
1326						settings:{
1327							slidesToShow: 1,
1328						}
1329
1330					},
1331				]
1332			});
1333		});
1334	}
1335	if($('body:not(.edit_view) .contents_numbering.add_design12').length){
1336		$('body:not(.edit_view) .contents_numbering.add_design12 .wrapper_item:not(.slick-slider)').each(function(){
1337			$(this).slick({
1338				accessibility: false,
1339				autoplay: true,
1340				autoplaySpeed: 4000,
1341				speed: 700,
1342				slidesToShow: 2,
1343				slidesToScroll: 1,
1344				arrows: true,
1345				cssEase: 'ease-in-out',
1346				centerMode: false,
1347				centerPadding: '0',
1348				draggable: true,
1349				pauseOnHover: true,
1350				swipe: true,
1351				infinite: true,
1352				dots: true,
1353				responsive:[
1354					{
1355						breakpoint: 600,
1356						settings:{
1357							slidesToShow: 1,
1358						}
1359
1360					},
1361				]
1362			});
1363		});
1364	}
1365	
1366	/*----staff-----*/
1367
1368	if('.widget_staff01'){
1369		function staffResizeS1(){
1370			var hArray = [];
1371			var maxH = 0;
1372			$('.widget_staff01 .inner_item').each(function(){
1373				hArray.push($(this).find('.inner_item_img img').height());
1374			});
1375			maxH = Math.max.apply(null, hArray);
1376			$('.widget_staff01 .inner_item_img').each(function(){
1377				$(this).css({height: maxH});
1378			});
1379		}
1380		staffResizeS1();
1381		$(window).on('resize', staffResizeS1);
1382	}
1383	
1384	if($('body:not(.edit_view) .widget_staff01.add_design3').length){
1385		$('body:not(.edit_view) .widget_staff01.add_design3 .wrapper_item:not(.slick-slider)').each(function(){
1386			$(this).slick({
1387				accessibility: false,
1388				autoplay: true,
1389				autoplaySpeed: 4000,
1390				speed: 700,
1391				slidesToShow: 1,
1392				slidesToScroll: 1,
1393				arrows: true,
1394				cssEase: 'ease-in-out',
1395				centerMode: false,
1396				centerPadding: '0',
1397				draggable: true,
1398				pauseOnHover: true,
1399				swipe: true,
1400				infinite: true,
1401				dots: true,
1402			});
1403		});
1404	}
1405	
1406	/*----form-----*/
1407	
1408	$('.widget_form .input_agree input[type="checkbox"]').change(function(){
1409		$(this).parents('.widget_form').find('.input_agree input[type="checkbox"]').each(function(){
1410			if($(this).prop('checked')){
1411				$(this).parents('.widget_form').find('.submit').removeClass('disabled');//有効にする
1412				$(this).parents('.widget_form').find('.submit input[type="button"]').prop('disabled', false);//有効にする
1413			}else{
1414				$(this).parents('.widget_form').find('.submit').addClass('disabled');//無効にする
1415				$(this).parents('.widget_form').find('.submit input[type="button"]').prop('disabled', true);//無効にする
1416				return false;
1417			}
1418		});
1419	});
1420	$('.widget_form .input_agree input[type="checkbox"]').each(function(){
1421		if($(this).prop('checked')){
1422			$(this).parents('.widget_form').find('.submit').removeClass('disabled');//有効にする
1423			$(this).parents('.widget_form').find('.submit input[type="button"][id*="form_submit"]').prop('disabled', false);//有効にする
1424		}else{
1425			$(this).parents('.widget_form').find('.submit').addClass('disabled');//無効にする
1426			$(this).parents('.widget_form').find('.submit input[type="button"][id*="form_submit"]').prop('disabled', true);//無効にする
1427			return false;
1428		}
1429	});
1430	$('.widget_form  input[type="file"][placeholder]').each(function(){
1431		var placeholder = $(this).attr('placeholder');
1432		$(this).attr('placeholder', '');
1433		$(this).parents('dd').attr('placeholder', placeholder);
1434	});
1435	
1436	/*----gallery-----*/
1437
1438	/*
1439	$('.widget_gallery01.add_design1, .gallery_archive.add_design1').each(function(){//未使用
1440		var portrait = 0;
1441		var landscape = 0;
1442		$(this).find('.inner_item img').each(function(){
1443			var img = new Image();
1444			img.src = $(this).attr('src');
1445			var width = img.width;
1446			var height = img.height;
1447			if(height/width > 1){
1448				portrait ++;
1449			}else{
1450				landscape ++;
1451			}
1452		});
1453		if(portrait > landscape){
1454			$(this).addClass("view_portrait");
1455		}else if(portrait < landscape){
1456			$(this).addClass("view_landscape");
1457		}else{
1458			$(this).addClass("view_square");
1459		}
1460	});
1461	*/
1462
1463	$('.gallery_archive.add_design3 .inner_item img').each(function(){
1464		var img = new Image();
1465		img.src = $(this).attr('src');
1466		var h = img.height;
1467		if(window.innerHeight*0.5 < h){
1468			h = window.innerHeight*0.5;
1469			$(this).css({maxHeight: h});
1470		}
1471	});
1472	
1473	/*
1474	$('.gallery_archive.add_design4 .inner_item a').each(function(){
1475		$(this).parents('.inner_item').find('.heading').appendTo($(this));
1476		$(this).parents('.inner_item').find('.infotxt').appendTo($(this));
1477	});
1478	*/
1479	
1480	/*----news-----*/
1481	
1482	$('.news_archive.add_design3 article .entry_header').each(function(){
1483		$(this).insertAfter($(this).parent('article').find('.entry_body .inner_item_img'));
1484	});
1485	
1486	$('#sidebar ul.sidebar_list.archive>li>a.open').next('ul').slideToggle(500, 'easeInOutCubic');
1487	$('#sidebar ul.sidebar_list.archive>li>a').on('click', function(){
1488		$(this).toggleClass('open').next('ul').slideToggle(500, 'easeInOutCubic');
1489		$('#sidebar ul.sidebar_list.archive>li>a').not($(this)).removeClass('open').next().slideUp(500, 'easeInOutCubic');
1490		return false;
1491	});
1492	
1493	$('#sidebar ul.sidebar_list:not(.archive)>li').has('ul').addClass('open acco');
1494	$('#sidebar ul.sidebar_list:not(.archive)>li').has('ul').children('a').append('<span class="toggle">-</span>');
1495	$('#sidebar ul.sidebar_list:not(.archive) .toggle').on('click', function(){
1496		$(this).parents('.acco').toggleClass('open').children('ul').slideToggle(500, 'easeInOutCubic');
1497		$('#sidebar ul.sidebar_list:not(.archive) .acco').not($(this).parents('.acco')).removeClass('open').children('ul').slideUp(500, 'easeInOutCubic');
1498		$('#sidebar ul.sidebar_list:not(.archive) .acco .toggle').html('+');
1499		$('#sidebar ul.sidebar_list:not(.archive) .acco.open .toggle').html('-');
1500		return false;
1501	});
1502	
1503	if($('body:not(.edit_view) .block_news_1.add_design12').length){
1504		$('body:not(.edit_view) .block_news_1.add_design12').each(function(){
1505			$(this).find('.content_wrapper>ul, .content_wrapper>div:not(".heading")').wrapAll('<div class="inner">');
1506		});
1507		$('body:not(.edit_view) .block_news_1.add_design12 ul:not(.slick-slider)').slick({
1508			accessibility: false,
1509			autoplay: true,
1510			autoplaySpeed: 2500,
1511			speed: 500,
1512			arrows: false,
1513			cssEase: 'ease-in-out',
1514			draggable: false,
1515			pauseOnHover: true,
1516			swipe: false,
1517			vertical: true,
1518		});
1519	}
1520	
1521	/*----block_header fontsize-----*/
1522	
1523	function Resizeheading(){
1524		$('#lv p span, .block_header_1 .h, .block_header_1 p, .block_header_2 .h, .block_header_3 .h, .block_header_4 .h, .block_header_6 .h, .block_header_6 p, .contents_btn01 a span').each(function(){
1525			if($(this).find('.ib').length == -1){
1526				var h_default = '';
1527				var h_dis;
1528				var h_ls;
1529				var h_w;
1530				var h_w2;
1531				var h_num;
1532				var h_fs;
1533				var h_ov;
1534				var h_ls2;
1535				function HF1st(j){
1536					var d = new $.Deferred;
1537					if(j.attr('style') != undefined){
1538						h_default = j.attr('style');
1539					}
1540					h_dis = j.css('display');
1541					h_ls = parseInt(j.css('letter-spacing'), 10);
1542					d.resolve();
1543					return d.promise();
1544				}
1545				function HF2nd(j){
1546					j.css({'cssText': 'display: block !important;'});
1547					h_w = parseInt(j.css('width'), 10);
1548				}
1549				function HF3rd(j){
1550					j.css({'cssText': 'display: inline-block !important; white-space: nowrap; !important'});
1551					h_w2 = parseInt(j.css('width'), 10);
1552				}
1553				function HF4th(j){
1554					j.removeAttr('style').css({'cssText': h_default});
1555				}
1556				function HF5th(j){
1557					h_num = j.text().replace(/^\s+|\s+$/g, "").length;
1558					h_fs = h_w2 / h_num - 0.0001;
1559				}
1560				function HF6th(j){
1561					h_ov = (h_w2 - h_w)/h_fs;
1562					h_ov = Math.ceil(h_ov);
1563				}
1564				function HF7th(j){
1565					h_ls2 = (h_fs*h_ov)/(h_num)*-1 + Number(h_ls);
1566					if(0 < h_ov && h_ov < 3){//1-2文字落ち防止
1567						if(h_ls2 > 0){
1568							h_ls2 = 0;
1569						}
1570						j.css({'cssText': h_default + 'letter-spacing: '+h_ls2+'px !important;'});
1571					}
1572				}
1573				HF1st($(this)).then(HF2nd($(this))).then(HF3rd($(this))).then(HF4th($(this))).then(HF5th($(this))).then(HF6th($(this))).then(HF7th($(this)));
1574			}
1575		});
1576	}
1577	//$(window).on('resize', Resizeheading);
1578	Resizeheading();
1579	
1580	/*----block_header2:before-----*/
1581	
1582	if(unix == 1528180833 || unix < 1698764400){//23-11-01-0:00
1583		if($('.block_header_2').length){
1584			nodelist = document.querySelectorAll('.block_header_2 .h');
1585			var $tbh2 = nodelist[0];
1586			var tbh2_bt = getComputedStyle($tbh2, '::before').top;
1587			var tbh2_bh = getComputedStyle($tbh2, '::before').height;
1588			tbh2_bt = Number(tbh2_bt.replace('px', ''));
1589			tbh2_bh = Number(tbh2_bh.replace('px', ''));
1590			var tbh2_bbs = getComputedStyle($tbh2, '::before').boxSizing;
1591			if(tbh2_bbs == 'border-box'){
1592				var tbh2_btw = getComputedStyle($tbh2, '::before').borderTopWidth;
1593				var tbh2_bbw = getComputedStyle($tbh2, '::before').borderBottomWidth;
1594				tbh2_btw = Number(tbh2_btw.replace('px', ''));
1595				tbh2_bbw = Number(tbh2_bbw.replace('px', ''));
1596				tbh2_bh = tbh2_bh - tbh2_btw - tbh2_bbw;
1597			}
1598			var tbh2_h = getComputedStyle($tbh2).height;
1599			var tbh2_lh = getComputedStyle($tbh2).lineHeight;
1600			tbh2_h = Number(tbh2_h.replace('px', ''));
1601			tbh2_lh = Number(tbh2_lh.replace('px', ''));
1602			var bpos = tbh2_h/2 - tbh2_lh/2;
1603			if(bpos*0.9 <= tbh2_bt){
1604				tbh2_lh = tbh2_lh/2 - tbh2_bh/2;
1605				var block_header2_style = '';
1606				block_header2_style += '<style type="text/css">';
1607				block_header2_style += '.heading.block_header_2 .h::before{top: '+tbh2_lh+'px;}';
1608				block_header2_style += '</style>';
1609				$('head').append(block_header2_style);
1610			}
1611		}
1612	}
1613	
1614	/*----unix4-----*/
1615	
1616	if(arr_unix.indexOf(String(unix)) !== -1 || Number(unix) >= 1715266800){//24-05-10-0:00
1617		if($('header#pattern4').length){
1618			$('header#pattern4').addClass('unix4')
1619		}
1620	}
1621	
1622	/*----main min-height-----*/
1623		
1624	function mainHeightResize(){
1625		var fh = $('footer').height();
1626		var mp = $('main').offset().top;
1627		$('main').css({minHeight: $(window).height() - fh - mp});
1628	}
1629	mainHeightResize();
1630	$(window).on('resize', mainHeightResize);
1631	
1632	/*---sp_payment color---*/
1633	
1634	var sp_menuColor = $('header .sp_menu a div span').css('background-color');
1635	var sp_menuColor2 = $('header .burger li.sp_payment a svg').css('fill');
1636	var sp_menuColor3 = $('header .burger li.sp_translate a svg').css('fill');
1637	if(sp_menuColor2 == 'rgb(0, 0, 0)' || sp_menuColor2 == 'rgb(0,0,0)' || sp_menuColor2 == 'black'){
1638		$('header .burger li.sp_payment a svg').css({'fill': sp_menuColor});
1639	}
1640	
1641	/*---youtube iframe---*/
1642	
1643	$('*:not(.youtube_block)>iframe[src^="https://www.youtube.com/"]').each(function(){
1644		$(this).wrap("<div class='youtube_block'></div>");
1645	});
1646	
1647	/*---beforeafter_archive 56---*/
1648	
1649	$('.beforeafter_archive.block_comparison_5 .inner_item a, .beforeafter_archive.block_comparison_6 .inner_item a').on('click', function(){
1650		return false;
1651	});
1652	$('.beforeafter_archive.block_comparison_5 .before, .beforeafter_archive.block_comparison_6 .before').each(function(){
1653		if((navigator.userAgent.indexOf('iPhone') > 0 || navigator.userAgent.indexOf('iPad') > 0) || navigator.userAgent.indexOf('iPod') > 0 || navigator.userAgent.indexOf('Android') > 0){
1654			$(this).on('touchmove', function(e){
1655				$(this).find('a').width(event.changedTouches[0].clientX);
1656			});
1657		}else{
1658			$(this).on('mousemove', function(e){
1659				$(this).find('a').width(e.offsetX);
1660			});
1661		}
1662	});
1663	function beforeafter56Resize(){
1664		$('.beforeafter_archive.block_comparison_5 .before, .beforeafter_archive.block_comparison_6 .before').each(function(){
1665			$(this).css({height: $(this).prev('.after').height()});
1666			$(this).find('img').css({width: $(this).parents('.inner_item').width()});
1667		});
1668	}
1669	$(window).on('resize', beforeafter56Resize);
1670	beforeafter56Resize();
1671	
1672	/*---cotents_hide---*/
1673	
1674	$('body').on('click', '.hidetgl a, .hidetgl span', function(){
1675		$(this).parent().parent().toggleClass('c_show');
1676		contentsHIde();
1677		return false;
1678	});
1679	
1680	if($('.widget_menu01.cotents_hide, .widget_menu01.cotents_hide_sp').length){
1681		$('.widget_menu01.cotents_hide .mbx, .widget_menu01.cotents_hide_sp .mbx').each(function(){
1682			$(this).wrapInner('<span></span>').append('<p class="hidetgl"><span>もっと見る</span></p>');
1683		});
1684	}
1685	function contentsMenuHIdeResize(){
1686		$('.widget_menu01.cotents_hide .mbx>span, .widget_menu01.cotents_hide_sp .mbx>span').each(function(){
1687			if($(this).width() < $(this).parent('.mbx').width() - 95 && $(this).height() <= $(this).parent('.mbx').height()){
1688				$(this).next('.hidetgl').hide();
1689			}else{
1690				$(this).next('.hidetgl').show();
1691			}
1692		});
1693	}
1694	$(window).on('resize', contentsMenuHIdeResize);
1695	contentsMenuHIdeResize();
1696	
1697	if($('.beforeafter_archive.cotents_hide, .beforeafter_archive.cotents_hide_sp').length){
1698		$('.beforeafter_archive.cotents_hide .inner_item_txt p:not(.title), .beforeafter_archive.cotents_hide_sp .inner_item_txt p:not(.title)').each(function(){
1699			$(this).wrapInner('<span></span>').append('<p class="hidetgl"><span>もっと見る</span></p>');
1700		});
1701	}
1702	function contentsBAHIdeResize(){
1703		$('.beforeafter_archive.cotents_hide .inner_item_txt p:not(.title)>span, .beforeafter_archive.cotents_hide_sp .inner_item_txt p:not(.title)>span').each(function(){
1704			if($(this).width() < $(this).parent('p').width() - 74 && $(this).height() < $(this).parent('p').height()){
1705				$(this).next('.hidetgl').hide();
1706			}else{
1707				$(this).next('.hidetgl').show();
1708			}
1709		});
1710	}
1711	$(window).on('resize', contentsBAHIdeResize);
1712	contentsBAHIdeResize();
1713	
1714	function contentsHIde(){
1715		$('.hidetgl a, .hidetgl span').text('もっと見る');
1716		$('.c_show .hidetgl a, .c_show .hidetgl span').text('閉じる');
1717	}
1718	contentsHIde();
1719	
1720	/*----cvパーツ-----*/
1721	
1722	if($('.widget_cv').length){
1723		function Resizewidget_cv(){
1724			$('.widget_cv').each(function(){
1725				var $widget = $(this);
1726				var $btnWrap = $widget.find('.inner_item_btn');
1727				var minW = 230;
1728				var maxW = $btnWrap.innerWidth();
1729				var w = minW;
1730				if(!maxW){
1731					return;
1732				}
1733				$widget.find('.cv_btn').css({width: ''});
1734				$widget.find('.cv_btn a').css({
1735					width: '',
1736					maxWidth: '',
1737					whiteSpace: 'normal'
1738				});
1739				$widget.find('.cv_btn').each(function(){
1740					var $btn = $(this);
1741					var $clone = $btn.clone();
1742					$clone.css({
1743						position: 'absolute',
1744						visibility: 'hidden',
1745						pointerEvents: 'none',
1746						left: '-9999px',
1747						top: '-9999px',
1748						width: 'auto',
1749						maxWidth: 'none',
1750						minWidth: minW,
1751						margin: 0
1752					});
1753					$clone.find('a').css({
1754						width: 'max-content',
1755						maxWidth: 'none',
1756						whiteSpace: 'nowrap'
1757					});
1758					$btnWrap.append($clone);
1759					w = Math.max(w, Math.ceil($clone.find('a').outerWidth()));
1760					$clone.remove();
1761				});
1762				w = Math.min(w, maxW);
1763				$widget.find('.cv_btn').css({width: w});
1764				$widget.find('.cv_btn a').css({
1765					width: '100%',
1766					maxWidth: '100%',
1767					whiteSpace: 'normal'
1768				});
1769			});
1770		}
1771		Resizewidget_cv();
1772		$(window).on('load resize', Resizewidget_cv);
1773		if(document.fonts){
1774			document.fonts.ready.then(function(){
1775				Resizewidget_cv();
1776			});
1777		}
1778		setTimeout(Resizewidget_cv, 100);
1779		setTimeout(Resizewidget_cv, 300);
1780		setTimeout(Resizewidget_cv, 700);
1781		if(window.ResizeObserver){
1782			$('.widget_cv').each(function(){
1783				var resizeObserver = new ResizeObserver(function(){
1784					Resizewidget_cv();
1785				});
1786				resizeObserver.observe(this);
1787			});
1788		}
1789	}
1790	
1791	/*---header---*/
1792	
1793	var hh = $('header').height();
1794	
1795	var liw = 0;
1796	$('.nav_1st>li>a>span').each(function(){
1797		liw += $(this).width();
1798	});
1799	function ResizeNavs(){
1800		if($('header nav').width() > liw - 10){
1801			$('.nav_1st').css({flexWrap: 'no-wrap'});
1802			$('.nav_1st>li').css({flexGrow: '1'});
1803			$('.nav_1st>li>a').css({paddingLeft: 0, paddingRight: 0});
1804		}else{
1805			$('.nav_1st').css({flexWrap: 'wrap'});
1806			$('.nav_1st>li').css({flexGrow: '0'});
1807			$('.nav_1st>li>a').css({paddingLeft: '1vw', paddingRight: '1vw'});
1808		}
1809		hh = $('header').height();
1810	}
1811	$(window).on('resize', ResizeNavs);
1812	
1813	function HH(){
1814		if($('header#pattern2')){
1815			$('header#pattern2').css({minHeight: $('header#pattern2 .logo img').height() + parseInt($('header#pattern2 .logo').css('padding-top'), 10) + parseInt($('header#pattern2 .logo').css('padding-bottom'), 10)});
1816			$('header#pattern2 nav ul.nav_1st').css({minHeight: $('header#pattern2').height()*0.8 - $('header#pattern2 .wraper').height()*0.8});
1817		}
1818		var mww = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
1819		if(mww > 900){
1820			setTimeout(function(){
1821				$('header#pattern2 .logo').css({minHeight: $('header#pattern2').height()});
1822			},20);
1823		}else{
1824			$('header#pattern2 .logo').css({minHeight: 'inherit'});
1825		}
1826	};
1827	
1828	function ResizeHead(){
1829		HH();
1830		ResizeHeadIni();
1831		hh = $('header').height();
1832		//$('header:not(.over)~#mv_outer, header:not(.over)~#lv_outer, header+#main, header+#pan').css({borderTop: 'transparent solid', borderTopWidth: hh});
1833		$('header.over~#mv_outer #mv .mv_text').css({paddingTop: hh});
1834		$('header.over~#lv_outer #lv').css({paddingTop: hh});
1835		
1836		var mww = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
1837		if(mww > 900 && $('header .header_contents .header_col1').css('flex-direction') == 'row'){
1838			$('body.scrolled header .header_col1 .tel').css({display: 'block'});
1839		}
1840		$('body:not(.edit_view) header#pattern4 .header_contents').css({height: 'calc(100vh - '+hh+'px)', minHeight: 0});
1841		$('body:not(.edit_view) header#pattern4 .header_contents').css({height: 'calc(100dvh - '+hh+'px)'});
1842		if(mww <= 900){
1843			$('header:not(#pattern4) .header_contents').css({height: 'calc(100vh - '+hh+'px)'});
1844			$('header:not(#pattern4) .header_contents').css({height: 'calc(100dvh - '+hh+'px)'});
1845		}else{
1846			$('header:not(#pattern4) .header_contents').css({height: 'auto'});
1847		}
1848	}
1849	$(window).on('resize', ResizeHead);
1850	ResizeHead();
1851	
1852	function ResizeHeadTel(){
1853		var mww = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
1854		if(mww > 900 && $('header .header_contents .header_col1').css('flex-direction') == 'row'){
1855			$('body.scrolled header .header_col1 .tel').css({display: 'block'});
1856		}
1857
1858		/*----CORRECTION-5365----*/
1859
1860		if($('header i.teli').length){
1861			$('header i.teli').each(function(){
1862				var $svg = $(this).parent().find('svg');
1863				if($(this).css('display') !== 'none'){
1864					$svg.css({top: ($(this).parents('.tel').outerHeight() - $(this).outerHeight())/2 - $svg.height()/2 + 2});
1865				}else{
1866					$svg.css({top: $(this).parents('.tel').outerHeight()/2 - $svg.height()/2 + 2});
1867				}
1868				$(this).appendTo($(this).parents('.tel'));
1869			});
1870		}
1871	}
1872	$(window).on('resize', ResizeHeadTel);
1873	$(window).scroll(function(){
1874		ResizeHeadTel();
1875	});
1876	ResizeHeadTel();
1877	
1878	if(!$('body').hasClass('edit_view')){
1879		if(!($('header#pattern4>.wraper>.inner>.btn').length)){
1880			$('header#pattern4 .header_contents .btn').clone().insertBefore('.burger');
1881			$('header#pattern4 .wraper>.inner>.btn>a[href^=#][href!=#]:not(.no):not([target="_blank"])').click(function(){
1882				$('header').removeClass('open');
1883				var href = $(this).attr("href");
1884				var target = $(href === "#" || href === "" ? 'html' : href);
1885				var position = target.offset().top;
1886				if(position == 0){
1887					var offset = 0;
1888					if($('#mv').length){
1889						offset = parseInt($('#mv').css('margin-top'), 10);
1890					}else if($('#lv').length){
1891						offset = parseInt($('#lv').css('margin-top'), 10);
1892					}
1893					position = position - offset;
1894				}else if($(window).width() < 900){
1895					position = position - $('header').height();
1896				}
1897				$('body,html').animate({scrollTop: position}, 1000, 'easeInOutCubic');
1898				return false;
1899			});
1900		}
1901	}
1902	$('header#pattern4 .header_contents a').on(
1903		'click', function(){
1904			$('header#pattern4').removeClass('open');
1905	});
1906	$(window).scroll(function(){
1907		if(window.innerWidth > 901){
1908			$('header#pattern4.open').removeClass('open');
1909		}
1910	});
1911	
1912	function setheader(){
1913		var hh2 = $('header').height();
1914		if(!$('body').hasClass('ss')){
1915			$('body').addClass('ss');
1916			$('header:not(.over):not(.nofixed)~#mv_outer, header:not(.over):not(.nofixed)~#lv_outer, header+#pan+main').css({borderTop: 'transparent solid', borderTopWidth: hh2});
1917			$('header+#pan').css({top: hh2});
1918			if(window.innerWidth <= 900){
1919				$('header:not(.over)~#mv_outer, header:not(.over)~#lv_outer, header+#pan+main').css({borderTop: 'transparent solid', borderTopWidth: hh2});
1920				if(hh2-2 <= $('body,html').scrollTop() <= hh2+2){
1921					$('body,html').scrollTop($('body,html').scrollTop() - hh2);
1922				}
1923			}
1924		}
1925	}
1926	$(window).on('resize', setheader);
1927	$(window).scroll(function(){
1928		setheader();
1929	});
1930	//setheader();
1931	$('body:not(.index):not(:has(#lv)) header').removeClass('over');
1932	
1933	//DEVELOP-779
1934	if($('header#pattern1.DEVELOP779').length || $('header#pattern2.DEVELOP779').length){
1935		$('.header_sns').css({height: 'auto', opacity: 1});
1936		var h_btn_w = $('.header_col1 .btn').width() + parseInt($('.header_col1 .btn').css('padding-right'), 10) + $('.header_sns ul').width();
1937		var h_btn_pb = parseInt($('.header_sns').css('padding-bottom'), 10);
1938		function ResizeHeadSNS(){
1939			if($('header#pattern2').length){
1940				$('header#pattern2 .header_contents').css({marginLeft: $('header#pattern2 .logo img').width()});
1941				$('header#pattern2 .nav_1st').css({width: $('header#pattern2 .header_contents').width()});
1942			}
1943			if($('.header_col1').width() >= h_btn_w){
1944				$('.header_sns').css({paddingBottom: 0});
1945				if($('.header_col1 .btn .translate').length){
1946					$('.header_sns').insertBefore('.header_col1 .btn .translate');
1947				}else{
1948					$('.header_sns').appendTo('.header_col1 .btn');
1949				}
1950			}else{
1951				$('.header_sns').css({paddingBottom: h_btn_pb});
1952				$('.header_sns').prependTo('.header_contents>.inner');
1953			}
1954		}
1955		$(window).on('resize', ResizeHeadSNS);
1956		ResizeHeadSNS();
1957	}
1958	
1959	/*---scroll---*/
1960	
1961	var start_pos = 0;
1962	var main_pos = $('main').offset().top;
1963	$('body').removeClass('scrolled');
1964	$('body').removeClass('scrolledHide');
1965	$(window).scroll(function(e){
1966		if(!($('header.nofixed').length)){
1967			var current_pos = $(this).scrollTop();
1968			//if(current_pos >= hh){
1969			if(current_pos >= $('main').offset().top){
1970				$('body').addClass('scrolled');
1971				$('body').addClass('hHide');
1972				if(current_pos >= (main_pos + hh)*1.2 && current_pos < start_pos){//scrollup
1973					$('body').removeClass('hHide');
1974				}
1975			}else{
1976				$('body').removeClass('scrolled');
1977				$('body').removeClass('hHide');
1978			}
1979			start_pos = current_pos;
1980		}
1981		$('header#pattern4 .header_contents').css({height: 'calc(100vh - '+$('header').height()+'px)'});
1982		$('header#pattern4 .header_contents').css({height: 'calc(100dvh - '+$('header').height()+'px)'});
1983		HH();
1984	});
1985	
1986	/*---ResizeComposite---*/
1987	
1988	//.composite_box01画像サイズ統一 cmn.js main.js blockInsert.js ResizeComposite(){
1989	function ResizeComposite(){
1990		$('.composite_box01').each(function(){
1991			var $tgtBox = $(this);
1992			var tgtBoxW = $(this).find('.inner_item_img').width();
1993			var rate = 1.6;
1994			$(this).find('.inner_item_img source').each(function(){
1995				if($(this).attr('srcset').indexOf('no_image.jpg') == -1){
1996					var source = new Image();
1997					source.src = $(this).attr('srcset');
1998					source.onload = function(){
1999						var width = source.width;
2000						var height = source.height;
2001						var thisrate = height/width;
2002						if(rate > thisrate && width > 0 && height > 0){
2003							rate = thisrate;
2004						}
2005						$tgtBox.find('.inner_item_img img').each(function(){
2006							$(this).css({width: '100%', transitionProperty: 'opacity'});
2007							$(this).css({height: tgtBoxW*rate});
2008						});
2009					}
2010				}
2011			});
2012			$(this).find('.inner_item_img img').each(function(){
2013				if($(this).attr('src').indexOf('no_image.jpg') == -1){
2014					var img = new Image();
2015					img.src = $(this).attr('src');
2016					img.onload = function(){
2017						var width = img.width;
2018						var height = img.height;
2019						var thisrate = height/width;
2020						if(rate > thisrate && width > 0 && height > 0){
2021							rate = thisrate;
2022						}
2023						$tgtBox.find('.inner_item_img img').each(function(){
2024							$(this).css({width: '100%', transitionProperty: 'opacity, transform'});
2025							$(this).css({height: tgtBoxW*rate});
2026						});
2027					}
2028				}
2029			});
2030		});
2031	}
2032	$('body').delay(100).queue(function(){
2033		ResizeComposite();
2034	});
2035	$(window).on('resize', ResizeComposite());
2036	
2037	/*--------------追従バナー------------*/
2038
2039	if($('#fixbanner').length){
2040		var countini = $('#fixbanner ul.ffb_ul > li').length;
2041		var mycount = countini;
2042		var fixbannerH;
2043		function Resizefixbanner(){
2044			if(window.innerHeight <= 650){
2045				if(countini >= 2){
2046					mycount = 1;
2047				}
2048			}else if(window.innerHeight <= 768){
2049				if(countini == 3){
2050					mycount = 2;
2051				}
2052			}else{
2053				mycount = countini;
2054			}
2055			fixbannerH = window.innerHeight - 40;
2056			if($('#fixbanner.fixbanner_1').length){//ボタン中央
2057				if($('#fixbtn .fixbtnwrap').length){
2058					if($('#fixbtn #fixsns').length){
2059						fixbannerH = window.innerHeight - $('#fixbtn .fixbtnwrap').height()*2 - 220;
2060					}else{
2061						fixbannerH = window.innerHeight - $('#fixbtn .fixbtnwrap').height()*2 - 40;
2062					}
2063				}
2064				$('#fixbanner.fixbanner_1 span.ffb_inner').css({maxHeight: fixbannerH/mycount});
2065			}else if($('#fixbanner.fixbanner_2_1').length){//バナー右下
2066				if($('#fixbtn .fixbtnwrap').length){
2067					if($('#fixbtn #fixsns').length){
2068						fixbannerH = window.innerHeight - $('#fixbtn .fixbtnwrap').height() - 140 -50;
2069						$('#fixbanner.fixbanner_2_1').css({paddingBottom: $('#fixbtn .fixbtnwrap').height() + 110});
2070					}else{
2071						fixbannerH = window.innerHeight - $('#fixbtn .fixbtnwrap').height() - 40 -50;
2072						$('#fixbanner.fixbanner_2_1').css({paddingBottom: $('#fixbtn .fixbtnwrap').height() + 20});
2073					}
2074				}else{
2075					$('#fixbanner.fixbanner_2_1').css({paddingBottom: 20});
2076				}
2077				$('#fixbanner.fixbanner_2_1 span.ffb_inner img').css({maxHeight: fixbannerH/mycount});
2078			}else if($('#fixbanner.fixbanner_2_2').length){//バナー中央
2079				if($('#fixbtn .fixbtnwrap').length){
2080					if($('#fixbtn #fixsns').length){
2081						fixbannerH = window.innerHeight - $('#fixbtn .fixbtnwrap').height()*2 - 220;
2082					}else{
2083						fixbannerH = window.innerHeight - $('#fixbtn .fixbtnwrap').height()*2 - 40;
2084					}
2085				}
2086				$('#fixbanner.fixbanner_2_2 span.ffb_inner img').css({maxHeight: fixbannerH/mycount});
2087			}
2088		}
2089		Resizefixbanner();
2090		$(window).on('resize', Resizefixbanner);
2091		
2092		$('#fixbanner .ffb_close').on('click', function(){
2093			$('#fixbanner').addClass('hide');
2094			return false;
2095		});
2096	}
2097});
2098	
2099/*---changeTitle---*/
2100
2101//changeTitle('カテゴリー', '置換テキスト');//例
2102function changeTitle(t, s){
2103	console.log("changeSideTitle");
2104	$('#sidebar .heading h4, #sidebar .heading p, .contents_related_tags .heading h2, .contents_related_tags .heading p, .contents_related .heading h2, .contents_related .heading p').each(function(){
2105		var txt = $(this).text();
2106		if(txt == t){
2107			$(this).text(s);
2108		}
2109	});
2110}
2111	
2112/*---ポップアップバナー 離脱防止 スクロール 滞在時間---*/
2113
2114if($('.-w-modal').length){
2115	$(function(){
2116		if($('.-w-modal:not(.-w-d_none2)[data-scrolly]').length){
2117			var sc = $(window).scrollTop();
2118			var scrolly = ($(document).height() - window.innerHeight) * $('.-w-modal[data-scrolly]').attr('data-scrolly');
2119			if(sc < scrolly && 0 < scrolly){
2120				$(window).scroll(function(){
2121					sc = $(window).scrollTop();
2122					if(sc >= scrolly){
2123						if(!$('.-w-modal.show-up').length){
2124							$('.-w-modal:not(.-w-d_none2)[data-scrolly]').addClass('show-up');
2125						}
2126					}
2127				});
2128			}
2129		}
2130		if($('.-w-modal:not(.-w-d_none2)[data-timer]').length){
2131			function wmodalTimer(){
2132				var timer = $('.-w-modal[data-timer]').attr('data-timer');
2133				if(timer > 0){
2134					var timerIDS1 = setInterval(function(){
2135						if(!$('.-w-modal.show-up').length){
2136							$('.-w-modal:not(.-w-d_none2)[data-timer]').addClass('show-up');
2137						}
2138						clearInterval(timerIDS1);
2139					}, timer);
2140				}
2141			}
2142			wmodalTimer();
2143		}
2144		if($('.-w-modal').length){
2145			$('.-w-modal .close, .-w-modal .dialogclose').on('click', function(){
2146				$(this).parents('.-w-modal').removeClass('show-up').addClass('-w-d_none2');
2147			});
2148		}
2149	});
2150}
2151
2152/*!
2153 * @copyright Copyright (c) 2017 IcoMoon.io
2154 * @license   Licensed under MIT license
2155 *            See https://github.com/Keyamoon/svgxuse
2156 * @version   1.2.6
2157 */
2158(function(){if("undefined"!==typeof window&&window.addEventListener){var e=Object.create(null),l,d=function(){clearTimeout(l);l=setTimeout(n,100)},m=function(){},t=function(){window.addEventListener("resize",d,!1);window.addEventListener("orientationchange",d,!1);if(window.MutationObserver){var k=new MutationObserver(d);k.observe(document.documentElement,{childList:!0,subtree:!0,attributes:!0});m=function(){try{k.disconnect(),window.removeEventListener("resize",d,!1),window.removeEventListener("orientationchange",
2159d,!1)}catch(v){}}}else document.documentElement.addEventListener("DOMSubtreeModified",d,!1),m=function(){document.documentElement.removeEventListener("DOMSubtreeModified",d,!1);window.removeEventListener("resize",d,!1);window.removeEventListener("orientationchange",d,!1)}},u=function(k){function e(a){if(void 0!==a.protocol)var b=a;else b=document.createElement("a"),b.href=a;return b.protocol.replace(/:/g,"")+b.host}if(window.XMLHttpRequest){var d=new XMLHttpRequest;var m=e(location);k=e(k);d=void 0===
2160d.withCredentials&&""!==k&&k!==m?XDomainRequest||void 0:XMLHttpRequest}return d};var n=function(){function d(){--q;0===q&&(m(),t())}function l(a){return function(){!0!==e[a.base]&&(a.useEl.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href","#"+a.hash),a.useEl.hasAttribute("href")&&a.useEl.setAttribute("href","#"+a.hash))}}function p(a){return function(){var c=document.body,b=document.createElement("x");a.onload=null;b.innerHTML=a.responseText;if(b=b.getElementsByTagName("svg")[0])b.setAttribute("aria-hidden",
2161"true"),b.style.position="absolute",b.style.width=0,b.style.height=0,b.style.overflow="hidden",c.insertBefore(b,c.firstChild);d()}}function n(a){return function(){a.onerror=null;a.ontimeout=null;d()}}var a,b,q=0;m();var f=document.getElementsByTagName("use");for(b=0;b<f.length;b+=1){try{var h=f[b].getBoundingClientRect()}catch(w){h=!1}var g=(a=f[b].getAttribute("href")||f[b].getAttributeNS("http://www.w3.org/1999/xlink","href")||f[b].getAttribute("xlink:href"))&&a.split?a.split("#"):["",""];var c=
2162g[0];g=g[1];var r=h&&0===h.left&&0===h.right&&0===h.top&&0===h.bottom;h&&0===h.width&&0===h.height&&!r?(c.length||!g||document.getElementById(g)||(c=""),f[b].hasAttribute("href")&&f[b].setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",a),c.length&&(a=e[c],!0!==a&&setTimeout(l({useEl:f[b],base:c,hash:g}),0),void 0===a&&(g=u(c),void 0!==g&&(a=new g,e[c]=a,a.onload=p(a),a.onerror=n(a),a.ontimeout=n(a),a.open("GET",c),a.send(),q+=1)))):r?c.length&&e[c]&&setTimeout(l({useEl:f[b],base:c,
2163hash:g}),0):void 0===e[c]?e[c]=!0:e[c].onload&&(e[c].abort(),delete e[c].onload,e[c]=!0)}f="";q+=1;d()};var p=function(){window.removeEventListener("load",p,!1);l=setTimeout(n,0)};"complete"!==document.readyState?window.addEventListener("load",p,!1):p()}})();

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.