<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">// keyValue蜿門ｾ�
const gam_keyValue = function(){
	const gam_host = location.protocol + '\/\/' + location.host;
	const gam_url = location.pathname.replace(/\/index.html$/,'\/');
	const gam_key = document.querySelector('meta[name="keywords"]').content;
	if(cx_segments.length &gt;= 200) cx_segments = cx_segments.slice(0,200);
	const gam_ug = typeof sc_visitor_id !== 'undefined' ? sc_visitor_id : '';
	const gam_composite = String((new Date().getTime() % 12)+1);
	let gam_up = '';
	if(gam_ug) gam_up = gam_ug.match(/^itm\_(a|m|y|K|W|8)/) ? 'A' : gam_ug.match(/^itm\_(b|n|z|L|X)/) ? 'B' : gam_ug.match(/^itm\_(c|o|A|M|Y)/) ? 'C' : gam_ug.match(/^itm\_(d|p|B|N|Z)/) ? 'D' : gam_ug.match(/^itm\_(e|q|C|O|0|9)/) ? 'E' : gam_ug.match(/^itm\_(f|r|D|P|1)/) ? 'F' : gam_ug.match(/^itm\_(g|s|E|Q|2)/) ? 'G' : gam_ug.match(/^itm\_(h|t|F|R|3)/) ? 'H' : gam_ug.match(/^itm\_(i|u|G|S|4)/) ? 'I' : gam_ug.match(/^itm\_(j|v|H|T|5)/) ? 'J' : gam_ug.match(/^itm\_(k|w|I|U|6)/) ? 'K' : gam_ug.match(/^itm\_(l|x|J|V|7)/) ? 'L' : '';
	googletag.pubads().setTargeting('server',window.gam_server).setTargeting('host',gam_host).setTargeting('url',gam_url).setTargeting('CxSegments',cx_segments).setTargeting('composite',gam_composite);
	if(gam_key) googletag.pubads().setTargeting('keywords',gam_key.replace(/(��|�榎\(|\)|�ポ��)/g,'').split(','));
	googletag.pubads().setTargeting('itm_adpath_4','wp');
	if(gam_ug) googletag.pubads().setTargeting('user_pattern',gam_up);
}

// 驟堺ｿ｡迥ｶ豕√Ο繧ｰ
const gamDeliveryCheck = function(){
	googletag.pubads().addEventListener('slotRenderEnded',function(e){
		const gam_slotid = e.slot.getSlotElementId();
		if(gam_logop) gam_logop[gam_slotid] = e;
	});
}

// slot逕滓�
const gamSlotCreate = function(id,count){
	const parent = document.getElementById(id);
	for(let i = 1; i &lt;= count; i++) {
		const div = document.createElement('div');
		div.id = id + '_' + i;
		div.style.margin = '0 auto 5px';
		div.style.textAlign = 'center';
		parent.appendChild(div);
	}
}

// refresh
const refreshGam = function(slot){
	googletag.cmd.push(function(){
		let gframe = '';
		if(slot == 'Rectangle'){
			gframe = [gam_rct1];
			const rd = document.getElementById('gam_Rectangle');
			if(rd){
				rd.style.margin = '0 auto';
				rd.style.textAlign = 'center';
			}
		}
		if(slot == 'RcolBanner'){
			gamSlotCreate('gam_RcolBanner',10);
			gframe = [gam_rb1,gam_rb2,gam_rb3,gam_rb4,gam_rb5,gam_rb6,gam_rb7,gam_rb8,gam_rb9,gam_rb10];
		}
		if(gframe){
			googletag.pubads().refresh(gframe);
			if(slot == 'Rectangle') gamDeliveryCheck();
		}
	});
}

// GAM蜃ｦ逅�
window.gam_logop = {};
window.gam_media= 'wpdc';
let gam_rct1,gam_rb1,gam_rb2,gam_rb3,gam_rb4,gam_rb5,gam_rb6,gam_rb7,gam_rb8,gam_rb9,gam_rb10;

// 繝ｦ繝九ャ繝郁ｨｭ螳�
googletag.cmd.push(function(){
	googletag.pubads().collapseEmptyDivs();
	const sd = '/43042345/tt/';
	try{
		if(gam_device == 'PC'){
			gam_rct1 = googletag.defineSlot(sd + 'PC_wp_rcol-Rectangle',[[300,250],[300,300],[300,600]],'gam_Rectangle').addService(googletag.pubads());
		}else if(gam_device == 'SP'){
			gam_rct1 = googletag.defineSlot(sd + 'SP_wp_in-feed-Rectangle',[[300,250],[300,300]],'gam_Rectangle').addService(googletag.pubads());
		}
	}catch(e){
		console.error('gamError:' + e);
	}
	gam_rb1 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_1').setTargeting('slot_pos','1').addService(googletag.pubads());
	gam_rb2 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_2').setTargeting('slot_pos','2').addService(googletag.pubads());
	gam_rb3 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_3').setTargeting('slot_pos','3').addService(googletag.pubads());
	gam_rb4 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_4').setTargeting('slot_pos','4').addService(googletag.pubads());
	gam_rb5 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_5').setTargeting('slot_pos','5').addService(googletag.pubads());
	gam_rb6 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_6').setTargeting('slot_pos','6').addService(googletag.pubads());
	gam_rb7 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_7').setTargeting('slot_pos','7').addService(googletag.pubads());
	gam_rb8 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_8').setTargeting('slot_pos','8').addService(googletag.pubads());
	gam_rb9 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_9').setTargeting('slot_pos','9').addService(googletag.pubads());
	gam_rb10 = googletag.defineSlot(sd + 'PC_rcol-Banner',[[300,100]],'gam_RcolBanner_10').setTargeting('slot_pos','10').addService(googletag.pubads());
	gam_keyValue(); // Key-Value險ｭ螳�
	googletag.pubads().enableSingleRequest();
	googletag.pubads().disableInitialLoad();
	googletag.enableServices();
});</pre></body></html>