if(function(e,t,i,n,s,a,o){e.GoogleAnalyticsObject=s,e[s]=e[s]||function(){(e[s].q=e[s].q||[]).push(arguments)},e[s].l=1*new Date,a=t.createElement(i),o=t.getElementsByTagName(i)[0],a.async=1,a.src=n,o.parentNode.insertBefore(a,o)}(window,document,"script","//www.google-analytics.com/analytics.js","ga"),ga("create","UA-3333617-20","auto"),ga("send","pageview"),window.navigator.userAgent.toLowerCase().match(/version\/[1-8]/)&&window.navigator.userAgent.toLowerCase().match(/safari/)){var link=document.createElement("link");link.rel="stylesheet",link.type="text/css",link.href="/css/safari.css",document.getElementsByTagName("head")[0].appendChild(link)}$(function(){function e(e){return 1==e.length?"0"+e:e}function t(){var e=["Android","BlackBerry","Windows Phone","iPhone"],t=new RegExp(e.join("|"),"i");return t.test(navigator.userAgent)}function i(){$("#mainvisual input").each(function(){if($(this).is(":checked")){var e=$(this),t=7!=$("#mainvisual input").index(this)?$("#mainvisual input").index(this)+1:0,i=-684*t;$("#mvPhoto .inner").stop().animate({left:i},{duration:300,complete:function(){0==t?(e.prop("checked",!1),$("#mainvisual input:first").prop("checked",!0)):e.prop("checked",!1).next().prop("checked",!0)}})}}),l=setTimeout(i,h)}$("pre .mt-image-none").each(function(){var e=$(this).width(),t=$(this).next();"stxt"==t.attr("class")&&(t.parent("pre").css("width",e+"px"),t.css("width",e+"px"))}),$(".entryImgLeft,.entryImgRight,.entryImgCenter").each(function(){$(this).css("width",$(this).find("img").width()+"px"),$(this).find(".stxt").css("width",$(this).find("img").width()+"px")});var n=new Date,s=n.getFullYear(),a=n.getMonth()+1,o=n.getDate(),r=n.getHours(),c=""+s+e(""+a)+e(""+o)+e(""+r);if($('.entryDate[data-date!=""]').each(function(){c-$(this).attr("data-date")<=12&&$(this).css("display","inline-block")}),$('a[href^="http"]').not('[href^="http://'+location.hostname+'"]').not('[target^="_blank"]').click(function(){return window.open(this.href,""),!1}),"pc"==$.cookie("viewmode")&&($("#footer").append('

表示切替:スマートフォン版 | パソコン版

'),$("#resetViewCookie").click(function(){return $.cookie("viewmode",null,{path:"/"}),location.href=location.href,!1}),t())){var d=document.createElement("link");d.rel="stylesheet",d.type="text/css",d.href="/css/sp.css",document.getElementsByTagName("head")[0].appendChild(d)}if($("#mainvisual").length){var h=6e3,l=setTimeout(i,h);$("#mvPhoto a").hover(function(){clearTimeout(l)},function(){l=setTimeout(i,h)}),$("#mvCategory label").click(function(){$("#mvPhoto .inner").attr("style",""),clearTimeout(l),l=setTimeout(i,h)})}$(window).load(function(){function e(){var e=$("#archive").offset();return $(window).innerHeight()-e.top}function t(e,t,i,n){var s=$("#aside");e.scrollTop()t&&e.scrollTop()i+0&&s.addClass("stopAside").removeClass("fixAside").removeClass("normalAside").attr("style","")}function i(i){var s=e()-i,a=$(window),o=$("#archive").innerHeight()-s,r=$("#aside").innerHeight()-s;a.width()<$("#wrapper").width()&&!$("body.index").size()?n=a.width()-1100:(n=(a.width()-$("#contents").width())/2,0>n&&(n=2*n)),a.scroll(function(){t(a,r,o,n)})}var n;$(window).resize(function(){var i=e(),s=$(window),a=$("#archive").innerHeight()-i,o=$("#aside").innerHeight()-i;s.width()<$("#wrapper").width()&&!$("body.index").size()?n=s.width()-1100:(n=(s.width()-$("#contents").width())/2,0>n&&(n=2*n)),t(s,o,a,n)}),$("#archive").innerHeight()>$("#aside").innerHeight()?i(0):$("#archive").css("height",$("#aside").innerHeight()+"px")})}),function(e,t,i){var n,s=e.getElementsByTagName(t)[0];e.getElementById(i)||(n=e.createElement(t),n.id=i,n.src="//connect.facebook.net/ja_JP/all.js#xfbml=1&appId=166487183547697",s.parentNode.insertBefore(n,s))}(document,"script","facebook-jssdk");