/* Base */
/* ----------------------------------------------------------*/

* {
  margin: 0;
  padding: 0;
}

html, body { height: 100%; }

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-weight: 300;
	color:#3c3c3c;
	background:url(../images/bg_body.gif);
}

h1, h2, h3, h4, h5, h6 { font-size: 100%; font-weight: 400; }

a         { color: #00a0e8; text-decoration: none; outline: none;}
a:hover   { color: #00a0e8; text-decoration: underline; }
a:visited { color: #00a0e8; }
a:focus{outline: none;}

/* Utility */

.wrap:before,
.wrap:after { content:""; display:table; }
.wrap:after { clear: both; }

.site-header .wrap{background-color:#ffffff;}
.site-footer .wrap{background:none;position:relative;}
.page-content .wrap {
	background-color:#fff;
  max-width: 820px;
  padding: 0 20px;
  margin: 0 auto 0px auto;
  zoom: 1;
}

img {
  max-width: 100%;
  height: auto;
}

/* Layout Styles */
/* ----------------------------------------------------------*/

/* Site header */
.site-header{
	width:860px;
	margin:20px auto 0px auto;
}

.site-title,
.site-title:hover,
.site-title:visited {
	width:420px;
	height:68px;
	text-indent:-9999px;
	background:url(../images/logo.gif) no-repeat;
  display: block;
  color: #3c3c3c;
  font-size: 26px;
  letter-spacing: -1px;
  float: left;
  line-height: 56px;
  position: relative;
  z-index: 1;
	margin:52px 40px 32px 40px;
	}

.site-nav .menu-icon { display: none; }

.site-nav .page-link {
  margin-left: 20px;
  color: #727272;
  letter-spacing: -.5px;
}
.trigger{
	position:relative;
}
.trigger #nav-about{
	width:62px;
	height:15px;
	text-indent:-9999px;
  display: block;	
	background:url(../images/nav_about.gif) no-repeat;
	position:absolute;
	top:87px;
	right:259px;
}
.trigger #nav-link{
	width:45px;
	height:15px;
	text-indent:-9999px;
  display: block;	
	background:url(../images/nav_link.gif) no-repeat;
	position:absolute;
	top:87px;
	right:159px;
}
.trigger #nav-rss{
	width:30px;
	height:15px;
	text-indent:-9999px;
  display: block;	
	background:url(../images/nav_rss.gif) no-repeat;
	position:absolute;
	top:87px;
	right:56px;	
}
.trigger #nav-about:hover{
	background:url(../images/nav_about_on.gif) no-repeat;
}
.trigger #nav-link:hover{
	background:url(../images/nav_link_on.gif) no-repeat;
}
.trigger #nav-rss:hover{
	background:url(../images/nav_rss_on.gif) no-repeat;
}



/* Site footer */

.site-footer {
	width:700px;
	display:block;
	margin:0 auto;
  padding: 30px 80px;
}

.footer-heading {
  font-size: 18px;
  font-weight: 300;
  letter-spacing: -.5px;
  margin-bottom: 15px;
}

.site-footer .column { float: left; margin-bottom: 15px; }

.footer-col-1 {
  width: 150px; /*fallback*/
  width: -webkit-calc(26% - 10px);
  width: -moz-calc(26% - 10px);
  width: -o-calc(26% - 10px);
  width: calc(26% - 10px);
  margin-right: 10px
}
.footer-col-2 {
  width: 175px; /*fallback*/
  width: -webkit-calc(23.125% - 10px);
  width: -moz-calc(23.125% - 10px);
  width: -o-calc(23.125% - 10px);
  width: calc(23.125% - 10px);
  margin-right: 10px
}
.footer-col-3 {
  width: 535px; /*fallback*/
  width: -webkit-calc(70.875%);
  width: -moz-calc(70.875%);
  width: -o-calc(70.875%);
  width: calc(70.875%);
}
.footer-col-3 .text{
	position:absolute;
	bottom:15px;
}

.site-footer ul { list-style: none; }

.site-footer li,
.site-footer p {
  font-size: 12px;
  letter-spacing: -.3px;
  color: #3c3c3c;
}

.github-icon-svg,
.twitter-icon-svg {
  display: inline-block;
  width: 16px;
  height: 16px;
  position: relative;
  top: 3px;
}


/* Page Content styles */
/* ----------------------------------------------------------*/

.page-content{
	width:860px;
	margin:20px auto 0px auto;
  padding: 45px 0px;
	background-color:#fff;
}


/* Pagination styles */
/* ----------------------------------------------------------*/
div.pagination {
    text-align: center;
    background:url(../images/line_pagenation.gif) no-repeat center;							
}

.pagination-item {
    padding-right: 12px;
    padding-left: 16px;
}

/* Home styles */
/* ----------------------------------------------------------*/

.home h1 { margin-bottom: 25px; }

.posts { list-style-type: none;}

.posts > li {
    margin-bottom: 45px;
    border-bottom: 1px solid #ffffff;
    background:url(../images/line_section.gif) repeat-x bottom;					
}

.posts .post-link {
	display:block;
  font-size: 18px;
  letter-spacing: -1px;
  line-height: 1.2;
  color: #555555;
	margin:0px 60px;	
}

.posts .post-date {
  display: block;
  font-size: 15px;
  color: #838587;
	padding-left:60px;	
}



/* Post styles */
/* ----------------------------------------------------------*/
.news{ background:url(../images/icon_news.gif) no-repeat left 0.1em;}
.info{	background:url(../images/icon_info.gif) no-repeat left 0.1em;}
.law{ background:url(../images/icon_law.gif) no-repeat left 0.1em;}
.tech{ background:url(../images/icon_tech.gif) no-repeat left 0.1em;}
.warning{ background:url(../images/icon_warning.gif) no-repeat left 0.1em;}


.post-header {
	display: block;
	margin: 0px 0px 0px 60px;
	padding-top:1px;
}

.post-header h1 {
  font-size: 18px;
  letter-spacing: -1px;
  line-height: 1;
  font-weight: 300;
  color: #555555;
}

.post-header .meta {
  font-size: 15px;
  color: #838587;
  margin-top: 3px;
}


.post-content > * { margin: 20px 0px 20px 0px;}
.post-content{
	display:block;
	padding:0px 60px 20px 60px;
	word-wrap:break-word;

}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  line-height: 1;
  font-weight: 300;
  margin: 40px 0 20px;
}

.post-content h2 {
  font-size: 16px;
  letter-spacing: -1px;
}

.post-content h3 {
  font-size: 14px;
  letter-spacing: -1px;
}

.post-content h4 {
  font-size: 14px;
  letter-spacing: -1px;
}

.post-content blockquote {
  border-left: 4px solid #e8e8e8;
  padding-left: 20px;
  font-size: 14px;
  opacity: .6;
  letter-spacing: -1px;
  font-style: italic;
  margin: 30px 0;
}

.post-content ul,
.post-content ol { padding-left: 20px; }

.post-content ul li{
	list-style:none;
  background:url(../images/listmark_first.gif) no-repeat 0% 0.25em;
	padding-left:20px;
	min-height:14px;
}
.post-content ul li ul li{
	background:none;
  background:url(../images/listmark_second.gif) no-repeat 0% 0.7em;
	padding-left:11px;
	min-height:4px;	
}

.post pre,
.post code {
	background-color:#f7f7f7;
  padding: 15px 18px;
  font-size: 14px;
	white-space: pre-wrap;
}

.post code { padding: 0; }

.post ul,
.post ol { margin-left: 1.35em; }

.post pre code { border: none; }

/* terminal */
.post pre.terminal {
  border: 1px solid #000;
  background-color: #333;
  color: #FFF;
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
}

.post pre.terminal code { background-color: #333; }

.post-navi {
		display:block;
    font-size: 12px;
    color: #333;
    padding-top: 30px;
		padding-left: 74px;
		background:url(../images/line_bird.gif) no-repeat top center;	
		position:relative;
}

.post-navi > a         { color: #00a0e8; text-decoration: none; }
.post-navi > a:hover   { color: #00a0e8; text-decoration: underline; }
.post-navi > a:visited { color: #00a0e8; }

.post-navi a[ref="prev"]{
  background:url(../images/icon_prev.gif) no-repeat 60px 0.4em;
	position:absolute;
	left:0px;
	padding-left:154px;
}
.post-navi a[ref="next"]{
  background:url(../images/icon_next.gif) no-repeat 60px 0.4em;
	position:absolute;
	left:0px;
	padding-left:154px;	
}

/* Syntax highlighting styles */
/* ----------------------------------------------------------*/

.highlight  { background: #ffffff; }
.highlight .c { color: #999988; font-style: italic } /* Comment */
.highlight .err { color: #a61717; background-color: #e3d2d2 } /* Error */
.highlight .k { font-weight: bold } /* Keyword */
.highlight .o { font-weight: bold } /* Operator */
.highlight .cm { color: #999988; font-style: italic } /* Comment.Multiline */
.highlight .cp { color: #999999; font-weight: bold } /* Comment.Preproc */
.highlight .c1 { color: #999988; font-style: italic } /* Comment.Single */
.highlight .cs { color: #999999; font-weight: bold; font-style: italic } /* Comment.Special */
.highlight .gd { color: #000000; background-color: #ffdddd } /* Generic.Deleted */
.highlight .gd .x { color: #000000; background-color: #ffaaaa } /* Generic.Deleted.Specific */
.highlight .ge { font-style: italic } /* Generic.Emph */
.highlight .gr { color: #aa0000 } /* Generic.Error */
.highlight .gh { color: #999999 } /* Generic.Heading */
.highlight .gi { color: #000000; background-color: #ddffdd } /* Generic.Inserted */
.highlight .gi .x { color: #000000; background-color: #aaffaa } /* Generic.Inserted.Specific */
.highlight .go { color: #888888 } /* Generic.Output */
.highlight .gp { color: #555555 } /* Generic.Prompt */
.highlight .gs { font-weight: bold } /* Generic.Strong */
.highlight .gu { color: #aaaaaa } /* Generic.Subheading */
.highlight .gt { color: #aa0000 } /* Generic.Traceback */
.highlight .kc { font-weight: bold } /* Keyword.Constant */
.highlight .kd { font-weight: bold } /* Keyword.Declaration */
.highlight .kp { font-weight: bold } /* Keyword.Pseudo */
.highlight .kr { font-weight: bold } /* Keyword.Reserved */
.highlight .kt { color: #445588; font-weight: bold } /* Keyword.Type */
.highlight .m { color: #009999 } /* Literal.Number */
.highlight .s { color: #d14 } /* Literal.String */
.highlight .na { color: #008080 } /* Name.Attribute */
.highlight .nb { color: #0086B3 } /* Name.Builtin */
.highlight .nc { color: #445588; font-weight: bold } /* Name.Class */
.highlight .no { color: #008080 } /* Name.Constant */
.highlight .ni { color: #800080 } /* Name.Entity */
.highlight .ne { color: #990000; font-weight: bold } /* Name.Exception */
.highlight .nf { color: #990000; font-weight: bold } /* Name.Function */
.highlight .nn { color: #555555 } /* Name.Namespace */
.highlight .nt { color: #000080 } /* Name.Tag */
.highlight .nv { color: #008080 } /* Name.Variable */
.highlight .ow { font-weight: bold } /* Operator.Word */
.highlight .w { color: #bbbbbb } /* Text.Whitespace */
.highlight .mf { color: #009999 } /* Literal.Number.Float */
.highlight .mh { color: #009999 } /* Literal.Number.Hex */
.highlight .mi { color: #009999 } /* Literal.Number.Integer */
.highlight .mo { color: #009999 } /* Literal.Number.Oct */
.highlight .sb { color: #d14 } /* Literal.String.Backtick */
.highlight .sc { color: #d14 } /* Literal.String.Char */
.highlight .sd { color: #d14 } /* Literal.String.Doc */
.highlight .s2 { color: #d14 } /* Literal.String.Double */
.highlight .se { color: #d14 } /* Literal.String.Escape */
.highlight .sh { color: #d14 } /* Literal.String.Heredoc */
.highlight .si { color: #d14 } /* Literal.String.Interpol */
.highlight .sx { color: #d14 } /* Literal.String.Other */
.highlight .sr { color: #009926 } /* Literal.String.Regex */
.highlight .s1 { color: #d14 } /* Literal.String.Single */
.highlight .ss { color: #990073 } /* Literal.String.Symbol */
.highlight .bp { color: #999999 } /* Name.Builtin.Pseudo */
.highlight .vc { color: #008080 } /* Name.Variable.Class */
.highlight .vg { color: #008080 } /* Name.Variable.Global */
.highlight .vi { color: #008080 } /* Name.Variable.Instance */
.highlight .il { color: #009999 } /* Literal.Number.Integer.Long */


/* media queries */
/* ----------------------------------------------------------*/

/* for Retina Display Devices */
@media
(-webkit-min-device-pixel-ratio: 2),
(min-resolution: 192dpi){

	/* logo.gif > logo@2x.gif*/
	.site-title,
	.site-title:hover,
	.site-title:visited {
		background:url(../images/logo@2x.gif) no-repeat center/100%;
	}
	/* nav_*.gif > nav_*@2x.gif */
	.trigger #nav-about{
		background:url(../images/nav_about@2x.gif) no-repeat center/100%;
	}
	.trigger #nav-about:hover{
		background:url(../images/nav_about_on@2x.gif) no-repeat center/100%;
	}

	.trigger #nav-link{
		background:url(../images/nav_link@2x.gif) no-repeat center/100%;
	}
	.trigger #nav-link:hover{
		background:url(../images/nav_link_on@2x.gif) no-repeat center/100%;
	}

	.trigger #nav-rss{
		background:url(../images/nav_rss@2x.gif) no-repeat center/100%;
	}
	.trigger #nav-rss:hover{
		background:url(../images/nav_rss_on@2x.gif) no-repeat center/100%;
	}

	/* icon_*.gif > icon_*@2x.gif */
	.news,.info,.law,.tech,.warning{ background-size: 44px 44px !important;}
	.news{ background:url(../images/icon_news@2x.gif) no-repeat left 0.1em;}
	.info{ background:url(../images/icon_info@2x.gif) no-repeat left 0.1em;}
	.law{ background:url(../images/icon_law@2x.gif) no-repeat left 0.1em;}
	.tech{ background:url(../images/icon_tech@2x.gif) no-repeat left 0.1em;}
	.warning{ background:url(../images/icon_warning@2x.gif) no-repeat left 0.1em;}

	/* line_*.gif > line_*@2x.gif */
	.post-navi {
		background:url(../images/line_bird@2x.gif) no-repeat top center/100%;
	}

	div.pagination {
		background:url(../images/line_pagination@2x.gif) no-repeat center/2px;
	}

	.posts > li {
		background:url(../images/line_section@2x.gif) repeat-x bottom/3px;
	}

	/* listmark_*.gif > listmark_*@2x.gif */
	.post-content ul li{
		background-size: 14px 14px !important;
		background:url(../images/listmark_first@2x.gif) no-repeat 0% 0.25em;
	}
	.post-content ul li ul li{
		background-size: 6px 4px !important;
		background:url(../images/listmark_second@2x.gif) no-repeat 0% 0.7em;
	}

	/* icon_*.gif > icon_*@2x.gif */
	.post-navi a[ref="prev"]{
		background:url(../images/icon_prev@2x.gif) no-repeat 60px/7px 0.4em;
	}
	.post-navi a[ref="next"]{
		background:url(../images/icon_next@2x.gif) no-repeat 60px/7px 0.4em;
	}

	/* bg_body.gif > bg_body@2x.gif */
	body {
		background:url(../images/bg_body@2x.gif) /4px;
	}
}

@media screen and (max-width: 860px) {
	.site-header{
		width:100%;
	}
	.page-content{
		width:100%;
	}
	.post-content{
		padding:0px 0px 20px 60px;
	}
	.posts .post-link{
		line-height:1.3;
	}
	.post-header h1{
		line-height:1.3;	
	}
  .site-footer .column.footer-col-3 {
    width: auto;
    float: none;
    clear: both;
  }
	.site-footer {
		width:90%;
		padding: 30px 10px;
	}
	.site-footer .column { float: none; margin-bottom:5px; }
	.footer-col-1 {	width:100%; }
	.footer-col-2 {	width:100%; }
	.footer-col-3 {	width:100%; }
	.footer-col-3 .text{
		position:static;
	}
}


@media screen and (max-width: 800px) {
  .site-nav {
    position: fixed;
    z-index: 10;
    top: 35px; right: 10px;
    background-color: white;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    border: 1px solid #e8e8e8;
  }
  .site-nav .menu-icon {
    display: block;
    font-size: 24px;
    color: #505050;
    float: right;
    width: 36px;
    text-align: center;
    line-height: 36px;
  }
  .site-nav .menu-icon svg { width: 18px; height: 16px; }
  .site-nav .trigger {
    clear: both;
    margin-bottom: 5px;
    display: none;
  }
  .site-nav:hover .trigger { display: block;}
  .site-nav .page-link {
    display: block;
    text-align: right;
    line-height: 1.25;
    padding: 5px 10px;
    margin: 0;
  }
	.trigger{
		position:static;
	}
	.trigger a{
		width:40px !important;
		background:none !important;
		position:static !important;
	}
	.site-nav:hover .trigger a{
		background:none;
	}

  .post-content blockquote { padding-left: 0px; }
  .post-content ul,
  .post-content ol { padding-left: 0px; margin-left:10px;}
	
	.post-navi {
			padding-left: 10px;
	}
	.post-navi a[ref="prev"]{
		background:none;
		position:static;
		padding-left:10px;
	}
	.post-navi a[ref="next"]{
		background:none;
		position:static;
		padding-left:10px;	
	}
}


@media screen and (max-width: 620px) {
    body{
        min-width: 500px;
    }
	.post-content{
		padding:0px 0px 20px 0px;
	}
	.posts .post-link {
		margin:0px 0px 0px 60px;
	}
	.post-header {
		margin: 0px 0px 0px 60px;
	}
}
