/*
Theme Name: sawaguchi_036_responsive
Author: ZEL
*/

@import url("css/color.css");

/* Reset
-------------------------------------------------------------- */

* {
	padding: 0;
	margin: 0;
	list-style: none;
	font-style:normal;
}
body,div,pre,p,blockquote,form,fieldset,dl,dt,dd,li,h1,h2,h3,h4,h5,h6,table,th,td,embed,object,button{
	margin: 0;
	padding: 0;
	vertical-align: baseline;
	font-size: 100%;
	font-weight: normal;
}
body {
    font-family: "メイリオ",Meiryo,"ＭＳ Ｐゴシック",sans-serif;
    font-size: 14px;
    overflow-y: scroll;
}
select,input,textarea,option {
	font-family: 'メイリオ',Meiryo,'ＭＳ Ｐゴシック',sans-serif;
}
img{
	border: 0;
	margin: 0px;
	padding: 0px;
}
a img{
	border-style: none;
	border:0;
}
h1,h2,h3,h4,h5,h6{
	margin: 0px;
	font-style: normal;
	padding: 0px;
	line-height: normal;
	font-weight: normal;
	clear: both;
}
a {
    outline: medium none;
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}
*:after { clear:both; }

/* Common
-------------------------------------------------------------- */
h2 {
        padding:.8em .9em;
        margin-bottom: 15px;
    } 

h3 {
    font-size: 130%;
    margin-bottom: 10px;
    padding-left: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    border-radius: 15px;
}
article {
    margin-bottom: 30px;
}
.inner {
	width:960px;
	margin:auto;
	overflow:hidden;
}
.text {
	line-height: 1.7em;
}
.status {
    color: #999;
    font-size: 80%;
    padding: 5px 0;
}
.arrow li {
    line-height: 1.8em;
    padding-left: 15px;
    position: relative;
}
.arrow li::before {
    border-style: solid;
    border-width: 5px 0 5px 5px;
    content: "";
    height: 0;
    left: 0;
    position: absolute;
    top: 6px;
    width: 0;
}
img {
    width: 100%;
    height: auto;
}
.clearfix:after {  
  content: ".";   
  display: block;   
  height: 0;   
  clear: both;   
  visibility: hidden;  
}  
  
.clearfix { display: inline-table; }  
  
/* Hides from IE-mac \*/  
* html .clearfix { height: 1%; }  
.clearfix { display: block; }  
/* End hide from IE-mac */  
  


/* Layout
-------------------------------------------------------------- */
#wrapper {}
#headerWrap {
    margin-bottom: 10px;
}
#container {
    margin: auto auto 50px;
    overflow: hidden;
    width: 940px;
    border-radius: 10px;
    padding: 15px 10px;
}
#primary {
    float: right;
    width: 75%;
    margin-left: 2%;
    margin-right: 2%;
}
#secondary {
    float: left;
    width: 21%;
}
#tertiary {
    float: left;
    width: 21%;
}

/* Style
-------------------------------------------------------------- */
/* header */
#headerWrap h1 span {
    display: block;
    font-size: 80%;
    line-height: 25px;
}
#headerWrap .logo {
    font-size: 200%;
    padding: 10px 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    word-break: break-all;
    font-weight: bold;
}
#headerWrap a {
    padding: 5px 20px;
    text-decoration: none;
}
#naviBox {
    margin-bottom: 20px;
}
#breadcrumb {
    padding: 5px 0;
}
#breadcrumb ul li {
    display: inline-block;
}
#breadcrumb ul li:before {
    content: ">";
    font-size: 75%;
    padding: 0 5px;
    vertical-align: middle;
}
#breadcrumb ul li:first-child:before {
    content: "";
    padding: 0;
}
#breadcrumb ul li > * {
	font-size: 80%;
}
#breadcrumb ul li a {
	text-decoration: underline;
}
#breadcrumb ul li a:hover {
	text-decoration: none;
}
#breadcrumb ul li > span {}

/* index */
#mainImg {
    margin-bottom: 0px;
    width: 960px;
    margin: 0 auto 20px;
}
#mainImg img {
    display: inline;
    vertical-align: middle;
    height: auto;
    width: 100%;
    line-height: 0px;
    border-radius: 5px;
}

section, .section, .section2 {
    margin-bottom: 30px;
    overflow: hidden;
}
.section figure {
    width: 100%;
    text-align: center;
}
.section figure img {
    width: 300px;
    border-radius: 5px;
}
.section > div {
    float: right;
    width: 100%;
    
}


/* category */
#category {
    margin-bottom: 20px;
}
#catList li {
    border-top: 1px dotted #bbb;
    padding: 20px 0;
}
#catList li:first-child {
    border-top: none;
    padding: 0 0 20px;
}
#catList li .date {
    margin-bottom: 10px;
}
#catList li .text p {
    text-align: right;
}
#catList li .text p .more {
    border-radius: 5px;
    padding: 5px 10px;
}

/* single */
#postArticle .text {
    margin-bottom: 30px;
}
#postNavi {
    border-top: 1px dotted #bbb;
    margin-bottom: 30px;
    padding-top: 10px;
}
#postNavi ul {
    overflow: hidden;
}
#postNavi ul li {
	font-size:80%;
}
#postNavi ul li.prev {
    float: left;
}
#postNavi ul li.next {
    float: right;
}
#relatedPost ul li {
    line-height: 1.8em;
}

/* page */
#page section {
    margin-bottom: 30px;
}

/* sidebar */
#secondary nav li {
    margin-bottom: 10px;
}
#secondary nav li a {
    display: block;
    padding: 10px;
    text-decoration: none;
    font-weight: bold;
}
#secondary nav li a:hover {
	opacity:0.8;
	filter: alpha(opacity=80);
}

#secondary aside {
    margin-bottom: 30px;
}
#secondary aside h3 {
    border-bottom: 1px solid #e5e5e5;
    font-size: 140%;
    margin-bottom: 10px;
}

/* footer */
.copyright {
    font-size: 80%;
    line-height: 4em;
    text-align: center;
}

.textwidget,.text {
    word-break: break-all;
}


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

@media screen and (max-width: 960px) {
    #mainImg {
        width: 96%;
        margin: 0 2% 20px;
        position: relative;
    }
    #headerWrap {
        width: 100%;
        margin: auto auto 10px;
    }
	#container {
        margin: auto auto 50px;
        overflow: hidden;
        width: 96%;
        padding: 2%;
    }
    #primary,#secondary,#tertiary {
        float: none;
        width: 100%;
        margin: 0px;
    }
    .inner {
	   width: 100%;
	   margin:auto;
	   overflow:hidden;
    }
    #secondary nav li {
        width: 49%;
        float: left;
    }
    #secondary nav li:last-child {
        float: right;
    }
    #secondary nav li a {
        display: block;
        padding: 10px;
        text-decoration: none;
        font-weight: bold;
    }
}
@media screen and (max-width: 500px) {
    #mainImg img {
        display: block;
        width: 48%;
    }
    #mainImg span img {
        width: 100%;
        margin: 10px 0px;
    }
    #mainImg img.last {
        position: absolute;
        top: 0px;
        right: 0px;
    }
    .section figure,
    .section2 figure{
        width: 100%;
        margin: 0px 0px 20px;
        float: none;
    }
    .section figure img,
    .section2 figure img {
        margin: 0;
    }
    .section > div,
    .section2 > div{
        float: none;
        width: 100%;
    }
    .section > div > div,
    .section2 > div > div {
        margin: 0px;
    }
    #subImg {
        float: none;
        width: 100%;
        margin-right: 0px;
    }
    #subImg img {
        width: 46%;
        margin: 0 2% 0;
        border-radius: 20px;
    }
    #subImg img:first-child {
        margin: 0 2% 0;
    }
    .section figure img {
        width: 100%;   
    }
}