PageSourceSearch

https://www.aigan.co.jp/wp/wp-content/themes/aigan/assets/js/common.js

js aigan.co.jp collected 2026-10-02 05:52:43 UTC 23,491 bytes, 806 lines download raw bytes

1
2// -------------------------------------------------------------------
3// common:PC/SPの切り替え幅(これ以下ならSP)
4// 【!】必ず宣言すること
5// -------------------------------------------------------------------
6$('html').addClass('pre');
7
8var SP_MAX_WIDTH = 768;
9var elmWin = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
10
11$(window).on('load scroll', function() {
12	if( elmWin > SP_MAX_WIDTH  ) {
13		//console.log($('#header').innerHeight());
14		var value = $(this).scrollTop();
15		if ( value > $('#header').innerHeight() ) {
16			$('body').addClass('duration');
17		} else {
18			$('body').removeClass('duration');
19		}
20
21	}
22});
23
24$(window).on('load resize', function(){
25
26	elmWin = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
27
28	//ヘッダー固定分の高さをとる
29	/*
30        if( $('.breadcrumb').length ){
31            $('.breadcrumb').css({'margin-top' : $('header').innerHeight() });
32        }else{
33            //$('.main').css({'padding-top' : $('header').innerHeight() });
34            $('#wrapper-main').css({'padding-top' : $('header').innerHeight() });
35
36        }
37    */
38	if( $('aside').length && !$('#search').hasClass('wrapper') ) {
39		$('aside').css({'top' : $('header').innerHeight() });
40
41		if( $('#wrapper-main > .main-visual').length ){
42
43			$('aside').css({
44				//'position' : 'static'
45				'position' : 'absolute',
46				'top' : $('#wrapper-main > .main-visual').innerHeight() + $('header').innerHeight(),
47				//'height' : $('.sidebar').innerHeight()
48			});
49			if( $('.main').innerHeight() < $('aside').innerHeight() ) {
50				$('.main').css({
51					'height' : $('aside').innerHeight()
52				});
53			}
54		}
55	}
56
57	/*
58        $('.js-trigger_sp').unbind('click');
59        //スマホのみのアコディオン
60        if( elmWin <= SP_MAX_WIDTH  ) {
61            $('.js-trigger_sp').next().hide();
62            $('.js-trigger_sp').removeClass('open');
63
64            $('.js-trigger_sp').click(function(){
65                $(this).next().slideToggle();
66                $(this).toggleClass('open');
67            });
68
69        } else {
70            //$('.js-trigger_sp').unbind('click');
71            $('.js-trigger_sp').next().show();
72            $('.js-trigger_sp').removeClass('open');
73        }
74
75     */
76
77	//スマホ時のメガメニュー系
78	// $('.link-mega_menu > a').click(function(){
79	// 	/*
80	// 	if( elmWin < SP_MAX_WIDTH  ) {
81	// 		if( $(this).hasClass('select') ){
82	// 			$(this).removeClass('select');
83	// 			$(this).children('div').removeAttr('style');
84	// 			$('.wrapper').removeClass("blackout");
85	// 		}else{
86	// 			$(this).addClass('select');
87	// 			$(this).children('div').css({
88	// 				"visibility": "visible",
89	// 				"opacity": "1",
90	// 				"height": "auto"
91	// 			});
92	// 			$('.wrapper').addClass("blackout");
93  //
94	// 		}
95	// 	}
96	// 	 */
97  //
98  //
99	// 	if( $(this).parent().hasClass('select') ){
100	// 		$(this).parent().removeClass('select');
101	// 		$(this).parent().children('div').removeAttr('style');
102	// 		$('.wrapper').removeClass("blackout");
103	// 		$('#md-cover').remove();
104  //
105	// 		bodyScrollPrevent(false);
106  //
107	// 	}else{
108	// 		$('.link-mega_menu').removeClass('select');
109	// 		$('.link-mega_menu').children('div').removeAttr('style');
110	// 		$('#md-cover').remove();
111  //
112	// 		$(this).parent().addClass('select');
113	// 		$(this).parent().children('div').css({
114	// 			"visibility": "visible",
115	// 			"opacity": "1",
116	// 			"height": "auto"
117	// 		});
118	// 		$('.wrapper').addClass("blackout");
119	// 		$('body').append('<div id="md-cover"/>');
120	// 		$('.box-mega_menu').css({
121	// 			'height': $(window).innerHeight() - $('#header').innerHeight()
122	// 		});
123	// 		bodyScrollPrevent(true);
124  //
125	// 	}
126  //
127	// 	$('#md-cover').click(function(){
128	// 		$('.link-mega_menu').removeClass('select');
129	// 		$('.link-mega_menu').children('div').removeAttr('style');
130	// 		$(this).remove();
131	// 		$('.wrapper').removeClass("blackout");
132	// 	});
133	// });
134
135	$('.box-mega_menu').css({
136		'height': $(window).innerHeight() - $('#header').innerHeight()
137	});
138
139
140	//タグのもっと見る
141	$('.more-btn').on('click', function() {
142		if( $(this).children().is('.open') ) {
143			$(this).html('<p class="close">閉じる</p>').addClass('close-btn');
144			$(this).parent().removeClass('slide-up').addClass('slide-down');
145		} else {
146			$(this).html('<p class="open">さらに見る</p>').removeClass('close-btn');
147			$(this).parent().removeClass('slide-down').addClass('slide-up');
148		}
149	});
150
151	/*
152        if( $('.container-sub_navi').length ) {
153            if( elmWin > SP_MAX_WIDTH  ) {
154                $('.wrapper').css({
155                    'margin-top':'160px'
156                });
157            }else{
158                $('.wrapper').css({
159                    'margin-top':'123px'
160                });
161            }
162        }else{
163            if( elmWin > SP_MAX_WIDTH  ) {
164                $('.wrapper').css({
165                    'margin-top':'80px'
166                });
167            }else{
168                $('.wrapper').css({
169                    'margin-top':'50px'
170                });
171            }
172        }
173
174     */
175
176});
177
178
179$(function(){
180	if( $('.box-brand_list').length ){
181		$('.box-brand_list figure img').matchHeight();
182		$('.box-brand_list .body').matchHeight();
183	}
184  $('html').removeClass('pre');
185});
186/*
187$(window).on('load', function(){
188	//スマホのみのアコディオン
189	if( elmWin <= SP_MAX_WIDTH  ) {
190//		$('.js-trigger_sp').next().hide();
191		$('.js-trigger_sp').click(function(){
192			$(this).next().slideToggle();
193			$(this).toggleClass('open');
194		});
195	} else {
196		$('.js-trigger_sp').next().show().removeClass('open');
197	}
198});
199*/
200
201
202$(window).on('load', function(){
203	if( $('aside').length ){
204		//サイドあり
205	} else {
206		//サイド無し
207		$('#wrapper-main').addClass('not-side');
208	}
209
210	$('.js-trigger_sp').unbind('click');
211	//スマホのみのアコディオン
212	if( elmWin <= SP_MAX_WIDTH  ) {
213		$('.js-trigger_sp').next().hide();
214		$('.js-trigger_sp').removeClass('open');
215
216		$('.js-trigger_sp').click(function(){
217			$(this).next().slideToggle();
218			$(this).toggleClass('open');
219		});
220
221	} else {
222		//$('.js-trigger_sp').unbind('click');
223		$('.js-trigger_sp').next().show();
224		$('.js-trigger_sp').removeClass('open');
225	}
226
227
228});
229
230
231// -------------------------------------------------------------------
232// スマホのみアコーディオンのレスポンシブ切り替え
233// -------------------------------------------------------------------
234/*
235// 幅が768px以上のビューポートをターゲットとする条件を作成
236const mediaQuery = window.matchMedia('(min-width: 768px)')
237
238function handleTabletChange(e) {
239	// メディアクエリがtrueかどうかを確認
240	if (e.matches) {
241		//PC
242		$('.js-trigger_sp').unbind('click');
243		$('.js-trigger_sp').next().show();
244		$('.js-trigger_sp').removeClass('open');
245	}else{
246		//SP
247		$('.js-trigger_sp').next().hide();
248		$('.js-trigger_sp').removeClass('open');
249
250		$('.js-trigger_sp').click(function(){
251			$(this).next().slideToggle();
252			$(this).toggleClass('open');
253		});
254			}
255}
256
257// イベントリスナーを登録
258mediaQuery.addListener(handleTabletChange)
259
260// 初期チェック
261handleTabletChange(mediaQuery)
262
263 */
264
265
266document.addEventListener('DOMContentLoaded', function () {
267	var mql = window.matchMedia('screen and (max-width: 780px)');
268
269	function checkBreakPoint(mql) {
270		$('.js-trigger_sp').unbind('click');
271		if (mql.matches) {
272			//SP
273			$('.js-trigger_sp').next().hide();
274			$('.js-trigger_sp').removeClass('open');
275
276			$('.js-trigger_sp').click(function(){
277				$(this).next().slideToggle();
278				$(this).toggleClass('open');
279			});
280		} else {
281			//PC
282			$('.js-trigger_sp').next().show();
283			$('.js-trigger_sp').removeClass('open');
284		}
285	}
286
287	// ブレイクポイントの瞬間に発火
288	mql.addListener(checkBreakPoint);
289
290	// 初回チェック
291	checkBreakPoint(mql);
292});
293
294
295
296
297
298$(function(){
299	//画像を背景に変更
300	$('img.bg-image').each(
301		function(){
302			//画像サイズの取得
303			var img = {
304				width:Number($(this).attr('width')),
305				height:Number($(this).attr('height'))
306			};
307
308			//imgタグをdivに変えた要素を生成
309			var target = $($(this).prop('outerHTML').replace('<img','<div') + '</div>');
310
311			//不要な属性を削除
312			target.removeAttr('width height alt src');
313
314			//背景画像に変更
315			target.css({
316				backgroundImage: 'url('+ $(this).attr('src') +')'
317			});
318
319			//imgとdivの差し替え
320			$(this).before(target).remove();
321		});
322});
323
324
325$(function(){
326	// スムーススクロール
327	$('a[href^="#"]').not('.popup-modal').click(function() {
328		var speed = 400;
329		var href= $(this).attr("href");
330		var target = $(href == "#" || href == "" ? 'html' : href);//ヘッダー固定なのでヘッダーの高さ分を差し引く
331		var position = target.offset().top - $('header').innerHeight();
332		$('body,html').animate({scrollTop:position}, speed, 'swing');
333		return false;
334	});
335});
336
337$(function () {
338
339	/**
340	 * アコーディオン
341	 */
342	$('.js-ac_trigger:not(.open)').next().hide();
343	$('.js-ac_trigger').click(function(){
344		$(this).next().slideToggle();
345		$(this).toggleClass('open');
346	});
347
348
349	/**
350	 * スマートフォン用ハンバーガーメニュー
351	 */
352	$('.menuBtn').click(function(e){
353		var elmBtn = $(e.currentTarget);
354		var elmMenu = $('#gNavi');
355
356		elmMenu.stop();
357		elmBtn.toggleClass('open');
358		var bOpen = elmBtn.hasClass('open');
359
360		elmMenu.toggleClass('open');
361
362		if (bOpen) {
363			$('html,body').css({
364				'overflow':'hidden',
365				//'top': $(window).scrollTop()
366
367			});
368			$('.wrapper').css({
369				//'position':'relative',
370				//'transform':'translateX(69%)',
371				//'left':'69%'
372				'margin-left':'69%'
373
374			});
375
376
377			if( $('.breadcrumb').length ){
378				$('#gNavi').css({
379					//'transform':'translateX(0)',
380					//'top': $(window).scrollTop() - $('header').innerHeight()
381				});
382			}else{
383				$('#gNavi').css({
384					//'transform':'translateX(0)',
385					//'top': $(window).scrollTop()
386				});
387			}
388
389			if( $('.breadcrumb').length ){
390				$('#header').css({
391					//'top': $(window).scrollTop() - $('header').innerHeight()
392				});
393			}else{
394				$('#header').css({
395					//'top': $(window).scrollTop()
396				});
397			}
398
399		} else {
400			//$('html, body, .wrapper, #gNavi').removeAttr('style');
401			$('html, body').removeAttr('style');
402			$('.wrapper').css({
403				//'position':'relative',
404				'margin-left':'0'
405			});
406			$('#header').delay(300).queue(function(){
407				//$('#header').removeAttr('style').dequeue();
408			});
409
410			$('#gNavi').css({
411				//'transform':'translateX(0)',
412				//'top': -$('header').innerHeight()
413				//'left':'-69%'
414			});
415		}
416
417
418
419		//スマホからPCへリサイズしてもナビがでるように
420		$(window).resize(function(){
421			bOpen = elmBtn.hasClass('open');
422			if(elmWin.innerWidth() > SP_MAX_WIDTH){
423				elmBtn.removeClass('open');
424				elmMenu.css({
425					'display' : 'block'
426				});
427			} else {
428				if( bOpen ) {
429
430				} else {
431					elmMenu.css({
432						'display' : 'none'
433					});
434				}
435
436			}
437		});
438
439	});
440
441
442	//matchHeight
443	if ($('.match-height').length) {
444		$('.match-height').matchHeight();
445	}
446	if ($('.form-header,.form-content').length) {
447		$('.form-header,.form-content').matchHeight();
448	}
449
450
451	/**
452	 * サイドナビスクロール処理
453	 */
454	/*
455	var sideFlag = $("#js-side_scroll");
456	$(window).scroll(function(){
457
458		if( sideFlag.length && !$('#search').length ){
459			$('aside').addClass('before');
460
461			if(elmWin > SP_MAX_WIDTH && !$('#wrapper-main > .main-visual').length ){
462
463				scrollHeight = $(document).height();
464				scrollPosition = $(window).height() + $(window).scrollTop();
465
466				if ( scrollPosition  > sideFlag.offset().top ) {
467					//動かす
468					$('aside').addClass('scroll');
469					$('aside').css({
470						'top': sideFlag.offset().top - $(window).height() + 80
471					});
472				} else {
473					//固定
474					$('aside').removeClass('scroll');
475					$('aside').removeAttr('style');
476				}
477
478			}//PCのみ
479
480		}
481
482	});
483
484	 */
485
486	/**
487	 * ページトップ処理
488	 */
489	var pageTop = $("#pagetop");
490	$(window).scroll(function(){
491		scrollHeight = $(document).height();
492		scrollPosition = $(window).height() + $(window).scrollTop();
493		footHeight = $(".footer").height();
494
495		if ($(this).scrollTop() > 100) {
496			$('#pagetop').fadeIn();
497		} else {
498			$('#pagetop').fadeOut();
499		}
500
501
502		if ( scrollHeight - scrollPosition  < footHeight-130 ) {
503			$("a#pagetop").css({"position":"fixed"});
504		} else {
505			$("a#pagetop").css({"position":"fixed"});
506		}
507
508	});
509	pageTop.click(function () {
510		$('body, html').animate({ scrollTop: 0 }, 500);
511		return false;
512	});
513
514
515	//タブ処理(性別リンクのみ?)
516	if( $('.tab-group').length ){
517		$('.tab').click(function(){
518			$(this).parent().find('a').removeClass('is-active');
519			$(this).find('a').addClass('is-active');
520			$(this).parent().next('.panel-group').find('.panel').removeClass('is-show');
521			const index = $(this).index();
522			$(this).parent().next('.panel-group').find('.panel').eq(index).addClass('is-show');
523		});
524	}
525
526	// --- ハッシュ判定 ---
527	var hash = window.location.hash;
528	if (hash === '#hochouki') {
529			// .tab.hochouki クラスを持つ要素、または 4番目のタブを指定
530			var $targetTab = $('.tab-group .tab.hochouki');
531			
532			// もしクラス名 .hochouki がHTML側にない場合は、順番で指定
533			if ($targetTab.length === 0) {
534					$targetTab = $('.tab-group .tab').eq(3); // 0から数えて3番目=4つ目のタブ
535			}
536
537			if ($targetTab.length) {
538					$targetTab.trigger('click');
539					
540					// タブの位置までスクロールさせる(必要に応じて)
541					var offset = $targetTab.offset().top - 100;
542					$('html, body').animate({scrollTop: offset}, 400);
543			}
544	}
545
546});
547
548// -------------------------------------------------------------------
549// common:電話番号リンクの制御(PCの場合はtelリンクを無効化)
550// jsTelLinkクラスを持つ、リンクタグ(aタグ)のみに有効
551// -------------------------------------------------------------------
552$(function () {
553//$(document).ready(function(){
554	//判定モード
555	//・ユーザーエージェント判定:ua
556	//・画面幅判定:width(ua以外なら何でも)
557	var strMode = 'ua';
558
559
560	var bEnable = false;
561	switch(strMode){
562		//ユーザーエージェント判定
563		case 'ua': {
564			var ua = navigator.userAgent.toLowerCase();
565
566			//どれにも当てはまらなければ、PC(リンク無効)
567			bEnable = (ua.indexOf('phone') == -1 //iPhoneとWindows phone
568				&& ua.indexOf('ipad') == -1 //iPad
569				&& ua.indexOf('android') == -1); //AndroidとAndroidタブレット
570
571			break;
572		}
573
574		//画面幅判定
575		default: {
576			bEnable = (elmWin > SP_MAX_WIDTH);
577			break;
578		}
579	}
580
581	//リンクを無効にする
582	if(bEnable){
583		$('a.jsTelLink').each(function(){
584			var elmNew = $('<span/>', {
585				'class': $(this).attr('class')
586			});
587			elmNew.html($(this).html());
588
589			$(this).replaceWith(elmNew);
590		});
591	}
592});
593
594
595$(function () {
596	$('.popup-modal').magnificPopup({
597		type: 'inline',
598		preloader: false
599	});
600	$(document).on('click', '.btn-close_wrap', function (e) {
601		e.preventDefault();
602		$.magnificPopup.close();
603	});
604});
605
606
607// -------------------------------------------------------------------
608//モーダル化したときのスクロール分ズレるのを解消
609// -------------------------------------------------------------------
610function bodyScrollPrevent(flag){
611	let scrollPosition;
612	const body = document.getElementsByTagName('body')[0];
613	const ua = window.navigator.userAgent.toLowerCase();
614	const isiOS = ua.indexOf('iphone') > -1 || ua.indexOf('ipad') > -1 || ua.indexOf('macintosh') > -1 && 'ontouchend' in document;
615	const scrollBarWidth = window.innerWidth - document.body.clientWidth;
616	if(flag){
617		body.style.paddingRight = scrollBarWidth + 'px';
618		if(isiOS){
619			scrollPosition = -window.pageYOffset;
620			body.style.position = 'fixed';
621			body.style.width = '100%';
622			body.style.top = scrollPosition + 'px';
623		} else {
624			body.style.overflow = 'hidden';
625		}
626	} else if(!flag) {
627		body.style.paddingRight = '';
628		if(isiOS){
629			scrollPosition = parseInt(body.style.top.replace(/[^0-9]/g,''));
630			body.style.position = '';
631			body.style.width = '';
632			body.style.top = '';
633			window.scrollTo(0, scrollPosition);
634		}else {
635			body.style.overflow = '';
636		}
637	}
638}
639
640/**
641 * Contact Form 7のエラーメッセージの場所を変更
642 */
643// エラーメッセージ位置変更
644$(document).on('wpcf7invalid', function() {
645	$('.wpcf7-custom-item-error').html('');
646	$.ajax().always(function () {
647		//姓
648		$('.wpcf7-form-control-wrap.i_name_sei').each(function (index, el) {
649			if ($(el).find('.wpcf7-not-valid-tip').length) {
650				$('.wpcf7-custom-item-error.i_name_sei').append('<span style="margin-right:10px;" />');
651				$('.wpcf7-custom-item-error.i_name_sei span').append($(el).find('.wpcf7-not-valid-tip').html());
652			}
653		});
654		//名
655		$('.wpcf7-form-control-wrap.i_name_mei').each(function (index, el) {
656			if ($(el).find('.wpcf7-not-valid-tip').length) {
657				$('.wpcf7-custom-item-error.i_name_mei').append('<span style="margin-right:10px;" />');
658				$('.wpcf7-custom-item-error.i_name_mei span').append($(el).find('.wpcf7-not-valid-tip').html());
659			}
660		});
661		//せい
662		$('.wpcf7-form-control-wrap.i_kana_sei').each(function (index, el) {
663			if ($(el).find('.wpcf7-not-valid-tip').length) {
664				$('.wpcf7-custom-item-error.i_kana_sei').append('<span style="margin-right:10px;" />');
665				$('.wpcf7-custom-item-error.i_kana_sei span').append($(el).find('.wpcf7-not-valid-tip').html());
666			}
667		});
668		//めい
669		$('.wpcf7-form-control-wrap.i_kana_mei').each(function (index, el) {
670			if ($(el).find('.wpcf7-not-valid-tip').length) {
671				$('.wpcf7-custom-item-error.i_kana_mei').append('<span style="margin-right:10px;" />');
672				$('.wpcf7-custom-item-error.i_kana_mei span').append($(el).find('.wpcf7-not-valid-tip').html());
673			}
674		});
675
676		//郵便番号
677		$('.wpcf7-form-control-wrap.zip').each(function (index, el) {
678			if ($(el).find('.wpcf7-not-valid-tip').length) {
679				if($('.wpcf7-custom-item-error.zip').html() == ""){
680					$('.wpcf7-custom-item-error.zip').append('<span style="margin-right:10px;" />');
681					$('.wpcf7-custom-item-error.zip span').html($(el).find('.wpcf7-not-valid-tip').html());
682				}
683			}
684		});
685		$('.wpcf7-form-control-wrap.zip1').each(function (index, el) {
686			if ($(el).find('.wpcf7-not-valid-tip').length) {
687				if($('.wpcf7-custom-item-error.zip').html() == ""){
688					$('.wpcf7-custom-item-error.zip').append('<span style="margin-right:10px;" />');
689					$('.wpcf7-custom-item-error.zip span').html($(el).find('.wpcf7-not-valid-tip').html());
690				}
691			}
692		});
693
694		//都道府県
695		$('.wpcf7-form-control-wrap.pref').each(function (index, el) {
696			if ($(el).find('.wpcf7-not-valid-tip').length) {
697				$('.wpcf7-custom-item-error.pref').append('<span style="margin-right:10px;" />');
698				$('.wpcf7-custom-item-error.pref span').append($(el).find('.wpcf7-not-valid-tip').html());
699			}
700		});
701		//市区町村以下の住所
702		$('.wpcf7-form-control-wrap.city').each(function (index, el) {
703			if ($(el).find('.wpcf7-not-valid-tip').length) {
704				$('.wpcf7-custom-item-error.city').append('<span style="margin-right:10px;" />');
705				$('.wpcf7-custom-item-error.city span').append($(el).find('.wpcf7-not-valid-tip').html());
706			}
707		});
708
709		//電話番号
710		$('.wpcf7-form-control-wrap.i_tel1').each(function (index, el) {
711			if ($(el).find('.wpcf7-not-valid-tip').length) {
712				if($('.wpcf7-custom-item-error.tel').html() == ""){
713					$('.wpcf7-custom-item-error.tel').append('<span style="margin-right:10px;" />');
714					$('.wpcf7-custom-item-error.tel span').html($(el).find('.wpcf7-not-valid-tip').html());
715				}
716			}
717		});
718		$('.wpcf7-form-control-wrap.i_tel2').each(function (index, el) {
719			if ($(el).find('.wpcf7-not-valid-tip').length) {
720				if($('.wpcf7-custom-item-error.tel').html() == ""){
721					$('.wpcf7-custom-item-error.tel').append('<span style="margin-right:10px;" />');
722					$('.wpcf7-custom-item-error.tel span').html($(el).find('.wpcf7-not-valid-tip').html());
723				}
724			}
725		});
726		$('.wpcf7-form-control-wrap.i_tel3').each(function (index, el) {
727			if ($(el).find('.wpcf7-not-valid-tip').length) {
728				if($('.wpcf7-custom-item-error.tel').html() == ""){
729					$('.wpcf7-custom-item-error.tel').append('<span style="margin-right:10px;" />');
730					$('.wpcf7-custom-item-error.tel span').html($(el).find('.wpcf7-not-valid-tip').html());
731				}
732			}
733		});
734
735		//メールアドレス
736		$('.wpcf7-form-control-wrap.i_email').each(function (index, el) {
737			if ($(el).find('.wpcf7-not-valid-tip').length) {
738				$('.wpcf7-custom-item-error.i_email').append('<span style="margin-right:10px;" />');
739				$('.wpcf7-custom-item-error.i_email span').append($(el).find('.wpcf7-not-valid-tip').html());
740			}
741		});
742		//メールアドレス確認
743		$('.wpcf7-form-control-wrap.i_email_check').each(function (index, el) {
744			if ($(el).find('.wpcf7-not-valid-tip').length) {
745				$('.wpcf7-custom-item-error.i_email_check').append('<span style="margin-right:10px;" />');
746				$('.wpcf7-custom-item-error.i_email_check span').append($(el).find('.wpcf7-not-valid-tip').html());
747			}
748		});
749
750		//その他要望
751		$('.wpcf7-form-control-wrap.t_message').each(function (index, el) {
752			if ($(el).find('.wpcf7-not-valid-tip').length) {
753				$('.wpcf7-custom-item-error.t_message').append('<span style="margin-right:10px;" />');
754				$('.wpcf7-custom-item-error.t_message span').append($(el).find('.wpcf7-not-valid-tip').html());
755			}
756		});
757
758
759		//貴社名
760		$('.wpcf7-form-control-wrap.c_name').each(function (index, el) {
761			if ($(el).find('.wpcf7-not-valid-tip').length) {
762				$('.wpcf7-custom-item-error.c_name').append('<span style="margin-right:10px;" />');
763				$('.wpcf7-custom-item-error.c_name span').append($(el).find('.wpcf7-not-valid-tip').html());
764			}
765		});
766		//貴社名(ふりがな)
767		$('.wpcf7-form-control-wrap.c_kana').each(function (index, el) {
768			if ($(el).find('.wpcf7-not-valid-tip').length) {
769				$('.wpcf7-custom-item-error.c_kana').append('<span style="margin-right:10px;" />');
770				$('.wpcf7-custom-item-error.c_kana span').append($(el).find('.wpcf7-not-valid-tip').html());
771			}
772		});
773
774		//電話番号
775		$('.wpcf7-form-control-wrap.i_tel').each(function (index, el) {
776			if ($(el).find('.wpcf7-not-valid-tip').length) {
777				if($('.wpcf7-custom-item-error.i_tel').html() == ""){
778					$('.wpcf7-custom-item-error.i_tel').append('<span style="margin-right:10px;" />');
779					$('.wpcf7-custom-item-error.i_tel span').html($(el).find('.wpcf7-not-valid-tip').html());
780				}
781			}
782		});
783		//都道府県
784		$('.wpcf7-form-control-wrap.pref_name').each(function (index, el) {
785			if ($(el).find('.wpcf7-not-valid-tip').length) {
786				$('.wpcf7-custom-item-error.pref_name').append('<span style="margin-right:10px;" />');
787				$('.wpcf7-custom-item-error.pref_name span').append($(el).find('.wpcf7-not-valid-tip').html());
788			}
789		});
790		//市区町村以下の住所
791		$('.wpcf7-form-control-wrap.i_addr').each(function (index, el) {
792			if ($(el).find('.wpcf7-not-valid-tip').length) {
793				$('.wpcf7-custom-item-error.i_addr').append('<span style="margin-right:10px;" />');
794				$('.wpcf7-custom-item-error.i_addr span').append($(el).find('.wpcf7-not-valid-tip').html());
795			}
796		});
797
798		//形態
799		$('.wpcf7-form-control-wrap.i_form').each(function (index, el) {
800			if ($(el).find('.wpcf7-not-valid-tip').length) {
801				$('.wpcf7-custom-item-error.i_form').append('<span style="margin-right:10px;" />');
802				$('.wpcf7-custom-item-error.i_form span').append($(el).find('.wpcf7-not-valid-tip').html());
803			}
804		});
805	});
806});

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.