article, aside, canvas, details, figcaption, figure, header, footer, main, menu, nav, section, summary { display: block; }

html { margin: 0; padding: 0; }
body { margin: 0; padding: 0; font-family: "Hina Mincho", YuMincho, "Hiragino Mincho ProN", serif; font-optical-sizing: auto; font-weight: normal; color: #444; background: #e2e2ee; overflow-y: scroll; overflow-x: hidden; -webkit-text-size-adjust: 100%; -ms-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }

body.noscroll {overflow: hidden; }
#header { width: 100%; height: auto; margin: 0; padding: 0; overflow-y: auto; }

#header .logo { margin: 0; padding: 10px; }
#header .logo img { max-width: 100%; height: auto; }

#header #nav { z-index: 101; margin: 0; padding: 0; }
#header #nav ul { display: none; margin: 0 0 30px; padding: 10px; }
#header #nav ul li { width: calc(25% - 16px); list-style-type: none; margin: 0 0 15px; padding: 8px; }
#header #nav ul li a { position: relative; display: block; font-weight: bold; text-decoration: none; margin: 0; padding: 0; }
#header #nav ul li span { display: block; color: #fff; font-size: 15px; font-weight: bold; line-height: 1.6em; text-shadow: 1px 1px 1px #666; margin: 0; padding: 15px 20px; }
#header #nav ul li img { width: 100%; height: auto; }
#header #nav .open_btn { z-index: 102; display: block; position: fixed; top: 15px; right: 15px; width: 46px; height: 46px; margin: 0; padding: 0; line-height: 1; cursor: pointer; border-radius: 50%; background: rgba(50,50,50,.9); overflow: hidden; }
#header #nav .open_btn span { display: inline-block; position: absolute; left: 12px; height: 2px; background: #fff; transition: all .4s; }
#header #nav .open_btn span:nth-of-type(1) { top: 19px; width: 50%; }
#header #nav .open_btn span:nth-of-type(2) { top: 26px; width: 30%; }
#header #nav .open_btn.active span:nth-of-type(1) { top: 16px; left: 13px; transform: translateY(6px) rotate(-45deg); width: 42%; }
#header #nav .open_btn.active span:nth-of-type(2) { top: 28px; left: 13px; transform: translateY(-6px) rotate(45deg); width: 42%; }
#header #nav.active { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #333; overflow-y: scroll; }
#header #nav.active .open_btn { right: 30px; background: rgba(150,150,150,.9); }
#header #nav.active ul { display: flex; flex-wrap: wrap; margin-top: 60px; }

main, article, section { width: 100%; margin: 0; padding: 0; }

h1 { font-size: 25px; }
h2 { font-size: 24px; }
h3, h4 { font-size: 23px; }

p { font-size: 18px; line-height: 1.8; margin: 5px 0; padding: 5px 0; }
a { color: #00aaff; text-decoration: underline; }
a:hover { opacity:.85; }

img { max-width: 100%; height: auto; vertical-align: top; }
picture { position: relative; display: inline-block; }

.post_content { margin: 0; padding: 0 0 30px; }
.post_content::after { content: ""; display: block; height: 0; clear: both; visibility: hidden; }
article section:nth-of-type(2n) .post_content { background: #d3d3e5; }

.post_content header { position: relative; width: 100%; height: auto; margin: 0 0 10px; padding: 0; overflow: hidden; }
.post_content header h1 { color: #1005a5; font-size: 30px; font-weight: bold; line-height: 1.5em; letter-spacing: 0.04em; text-shadow: 1px 1px 1px #666; margin: 0; padding: 10px 50px; }
.post_content header picture, .post_content header img { width: 100%; height: auto; } 
.post_content .title { position: relative; margin: 0 0 5px; padding: 40px 30px 10px 30px; }
.post_content .title span { position: relative; display: block; line-height: 1.4em; letter-spacing: 0.03em; margin: 0; padding: 0 0 0 35px; }
.post_content .title span::before { content: ""; position: absolute; top: 8px; left: 0; display: inline-block; width: 20px; height: 20px; background: #333; }
.post_content .title span::after { content: ""; position: absolute; top: 16px; left: 8px; display: inline-block; width: 8px; height: 8px; background: #aaa; }

.post_content .post_body { margin: 0 0 10px; padding: 20px 35px; }
.post_content .post_body img { max-width: 100%; height: auto; }

.post_image { text-align: center; margin: 0 auto 25px; }
.post_image.left { float: left; max-width: 42%; margin: 0 30px 30px 0; clear: both; }
.post_image.right { float: right; max-width: 42%; margin: 0 0 30px 30px; clear: both; }

#footer { text-align: center; margin: 0; padding: 0; background: #333; }
#footer .copyright { margin: 0; padding: 5px; }
#footer .copyright small { color: #fff; font-size: 13px; margin: 0; padding: 0; }
#footer .copyright small a { color: #fff; text-decoration: none; }
#footer .copyright small a:hover{ color: #fff; text-decoration: none; }

@media screen and (max-width: 900px) {

    #header { position: relative; width: 100%; height: auto; margin: 0; padding: 0; }
    #wrap-body { width: 100%; margin: 0; padding: 0; }
    
    #header #nav ul li { width: calc(50% - 16px); margin: 0 0 15px; padding: 8px; }
    #header #nav .open_btn { top: 7px; right: 10px; width: 42px; height: 42px; }
    #header #nav .open_btn span { left: 11px; }
    #header #nav .open_btn span:nth-of-type(1) { top: 17px; }
    #header #nav .open_btn span:nth-of-type(2) { top: 24px; }
    #header #nav .open_btn.active span:nth-of-type(1) { top: 14px; left: 12px; }
    #header #nav .open_btn.active span:nth-of-type(2) { top: 26px; left: 12px; }
    #header #nav.active .open_btn { right: 20px; }
    
    h1 { font-size: 17px; }
    h2 { font-size: 16px; }
    h3, h4 { font-size: 15px; }
    p { font-size: 15px; line-height: 1.95em; margin: 3px 0 5px; padding: 2px 0; }

    .post_content header h1 { bottom: 25px; font-size: 20px; padding: 10px 30px; }
    .post_content header picture, .post_content header img { width: 100%; height: auto; } 
    .post_content .post_body { margin: 0 0 10px; padding: 15px 25px; }
    .post_image { margin: 0 auto 20px; padding: 5px; }
    .post_image.left { max-width: 47%; margin: 0 20px 20px 0; }
    .post_image.right { max-width: 47%; margin: 0 0 20px 20px; }

    #footer .copyright small { font-size: 12px; }
        
}

