/*
 * Theme Name: fkoji
 * Theme URI: http://blog.fkoji.com/
 * Description: Theme of blog.fkoji.com
 * Author: F.Ko-Ji
 * Author URI: http://blog.fkoji.com/
 * Version: 1.0
 */

@import url(//fonts.googleapis.com/css?family=Open+Sans:400,400italic,600,600italic,700,700italic);

html {
    background: #fff;
    font-family: Avenir, "Open Sans", "Helvetica Neue", Helvetica, Arial, Verdana, Roboto, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-size: 16px;
    letter-spacing: 0.01em;
}

ins {
    background: #fff;
}

a {
    color: #333;
    text-decoration: none;
}
a:visited {
    color: #333;
}
a:hover {
    color: #333;
    text-decoration: underline;
}
a:active {
    color: #333;
}

.all-small-caps {
    font-variant-caps: all-small-caps;
}

/* WordPress selectors */

ul.post-categories {
    list-style: none;
}

ul.post-categories li {
    display: inline-block;
}

/* Site */

.container {
    box-sizing: border-box;
    width: 320px;
    margin: 0 auto;
    /*background: #fcfcfc;*/
}

body > header {
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    text-align: center;
}

header h1 {
    padding: 24px 0;
}

header h1 img {
    width: 300px;
    height: 134px;
}

header ul.header-categories {
    list-style: none;
    margin: 16px 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

header ul.header-categories li {
    margin: 0 16px 16px;
}

header ul.header-categories li a {
    color: #616aee;
}

.post-box {
    position: relative;
    margin: 0 16px 48px;
    height: 162px;
    background-repeat: no-repeat;
    background-size: cover;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
}

.post-box > a {
    display: block;
    width: 100%;
    height: 100%;
}

.post-box > a:hover {
    text-decoration: none;
}

.post-box .category-label {
    display: none;
    position: absolute;
    bottom: 0;
    right: 0;
    font-size: 0;
}

.post-box .category-label .post-categories li {
    padding: 8px;
    background: #616aee;
    font-size: 14px;
    margin-left: 8px;
}

.post-box .category-label a {
    color: #fff;
}

.post-box .date-label {
    position: absolute;
    bottom: 0;
    left: 0;
    display: inline-block;
    padding: 8px;
    line-height: 0.8;
    border-radius: 4px;
    font-size: 14px;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
}

/* single */

.photo-by {
    font-size: 12px;
    color: #666;
}

.top-post-script {
    background: #eef;
    border: 1px solid #ccf;
    margin-bottom: 24px;
    padding: 8px;
    font-weight: bold;
    line-height: 1.86;
}

header h2 {
    padding: 16px;
    font-size: 18px;
    line-height: 1.4;
    background: rgba(255, 255, 255, 0.7);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.8));
    text-shadow: 0 1px 0 rgba(127, 127, 127, 0.3);
    /*box-shadow: 0 6px 3px -3px rgba(0, 0, 0, 0.1);*/
    border-top: 1px solid #ddd;
}

.post-box:hover h2 {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0.92));
}

article header h2 {
    box-shadow: none;
    border-bottom: 1px solid #ddd;
}

header .post-meta {
    margin: 24px 0;
    padding: 0 16px;
}

.breadcrumb {
    list-style: none;
    margin: 24px 16px;
    padding: 0;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    max-width: 288px;
}

.breadcrumb > li {
    display: inline;
    font-size: 14px;
    line-height: 1.6;
}

.breadcrumb > li > a {
    color: #2b7bb9;
}

.breadcrumb > li > a:visited {
    color: #2b7bb9;
}

.breadcrumb .divider {
    margin: 8px;
    color: #aaa;
}

.content {
    margin: 48px 0;
    font-size: 16px;
    padding: 0 16px;
    word-wrap : break-word;
}

article a {
    color: #2b7bb9;
}

article a:visited {
    color: #2b7bb9;
}

article a:hover {
    color: #2b7bb9;
}

article a:active {
    color: #2b7bb9;
}

.content p {
    margin-bottom: 24px;
    line-height: 1.86;
}

.using-affiliates {
    text-align: center;
    margin: 48px 0;
    font-weight: bold;
    line-height: 1.6;
}

article .content h3,
article .content h4,
article .content h5,
article .content h6,
article .content ul,
article .content ol,
article .content pre,
article .content blockquote,
article .content div.blockquote,
article .content table {
    margin: 24px 0;
}

article .content h3 {
    font-size: 18px;
    line-height: 1.4;
}

article .content .header2 {
    border-left: 6px solid rgba(27, 48, 199, 0.4);
    padding-left: 12px;
}

article .content h4 {
    font-size: 16px;
    line-height: 1.4;
}

article .content h4:before {
    content: " - ";
}

article .content blockquote,
article .content div.blockquote {
    border-left: 4px solid #ddd;
    margin-left: 8px;
    padding-top: 4px;
    padding-left: 12px;
    line-height: 1.7;
    color: #808080;
}

article .content pre {
    background: #fafafa;
    line-height: 1.6;
    font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #f6f6f6;
    overflow: auto;
}

article .content img {
    max-width: 288px;
    height: auto;
    box-shadow: 0 1px 3px 1px rgba(127, 127, 127, 0.3);
}

article .content ul,
article .content ol {
    margin-left: 24px;
}

article .content ul li,
article .content ol li {
    line-height: 1.6;
}

article .content dl {
    margin: 24px 0;
}

article .content dl dt {
    margin-bottom: 12px;
    font-weight: bold;
}

article .content dl dd {
    margin-bottom: 24px;
    text-indent: 1em;
}

article .content .last-updated-at {
    margin-top: -8px;
    text-align: right;
    font-size: 80%;
}

article .container iframe {
    width: 100%;
}

article .container table {
    border-collapse: collapse;
    table-layout: fixed;
}

article .container table th,
article .container table td {
    padding: 16px 8px;
    line-height: 1.4;
    border-bottom: 1px solid #ddd;
}

article .container table.ranking-table span.last-rank {
    color: #999;
    font-size: 12px;
}

article .container table.ranking-table i.fa-arrow-up {
    color: #f77;
}

article .container table.ranking-table i.fa-arrow-down {
    color: #77f;
}

article .container table.ranking-table i.fa-arrow-right {
    color: #666;
}

article .category-label {
    padding: 0 16px;
    font-size: 0;
    text-align: right;
}

article .category-label .post-categories li {
    display: inline-block;
    margin-bottom: 8px;
    padding: 8px;
    background: #616aee;
    font-size: 14px;
    margin-left: 8px;
}

article .category-label a {
    color: #fff;
}

/* share buttons */

article .content ul.shares {
    list-style: none;
    margin: 0;
    padding: 0;
}

ul.shares > li {
    display: inline-block;
    margin: 0 4px 16px 0;
    vertical-align: middle;
}

.tweet-button {
    display: inline-block;
    background: #2b7bb9;
    border-radius: 4px;
}

.hatebu-button {
    display: inline-block;
    background: rgb(0, 143, 222);
    border-radius: 4px;
}

.hatebu-button-v2 {
    padding-top: 8px;
}

.tweet-button a,
.hatebu-button a {
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
    height: 28px;
    line-height: 28px;
    padding: 0 8px;
    font-size: 13px;
    color: #fff;
}

.tweet-button a:visited,
.hatebu-button a:visited {
    color: #fff;
}

.tweet-button a:hover,
.hatebu-button a:hover {
    color: #fff;
    text-decoration: none;
    opacity: 0.9;
}

.tweet-button a:active,
.hatebu-button a:active {
    color: #fff;
}

/* comment */

.commentlist {
    list-style: none;
}

article .commentlist ul {
    list-style: none;
    margin-left: 0;
    margin-bottom: 0;
}

.commentlist li {
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

article .commentlist ul li {
    border-top: 0;
    border-bottom: 0;
    border-right: 0;
    border-radius: 0;
}

.commentlist .comment-author img.avatar {
    border-radius: 4px;
}

.commentlist .comment-meta {
    margin: 8px 0;
}

.commentlist p {
    margin-bottom: 8px;
}

.commentlist .reply {
    font-size: 14px;
}

.comment-form label {
    display: block;
}

.comment-form p {
    margin-bottom: 8px;
    font-size: 14px;
}

.comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    padding: 4px;
    font-size: 16px;
}

.comment-form input[type="text"] {
    box-sizing: border-box;
    width: 100%;
    padding: 4px;
    font-size: 16px;
}

.comment-form input[type="submit"] {
    padding: 4px;
    font-size: 16px;
}


/* post nav */

ul.post-nav {
    margin: 48px 0;
    padding: 0 16px;
    font-size: 14px;
}

ul.post-nav li {
    margin: 16px 0;
    line-height: 1.6;
}

.posts-nav {
    margin-top: 96px;
    text-align: center;
}

.posts-nav .nav {
    margin: 0 36px;
    color: #333;
    font-size: 36px;
}

.posts-nav span.nav {
    color: #aaa;
}

section.about-author {
    margin: 0 16px;
    font-size: 14px;
    line-height: 1.6;
}

.about-author h3 {
    margin: 16px 0;
    font-size: 18px;
}

.about-author .author-icon {
    margin-right: 16px;
}

.about-author .author-icon img {
    border-radius: 6px;
}

.about-author .author-info h4 {
    margin: 0 0 8px;
    font-size: 16px;
}

.author-info p {
    margin-bottom: 8px;
}

.bottom-ad {
    margin: 48px 0;
}

/* footer */

footer {
    margin-top: 96px;
    padding: 64px 0 96px;
    text-align: center;
    background: #242424;
    color: #fff;
    font-size: 14px;
}

.footer-monthly {
    position: relative;
    margin: 0 auto 48px;
    width: 240px;
}

.footer-monthly select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 240px;
    padding: 12px;
    border: 1px solid #999;
    border-radius: 6px;
    background: #4a4a4a;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.footer-monthly i.fa-calendar {
    position: absolute;
    right: 12px;
    top: 16px;
}

.footer-categories {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-categories li {
    margin: 0 0 16px 0;
    min-width: 10em;
    text-align: left;
}

.footer-categories a {
    color: #fff;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    display: inline-block;
    margin: 0 16px;
}

.footer-links li a {
    color: #fff;
}

.footer-logo {
    margin: 48px 0;
}

@media all and (min-width: 480px) {
    .container {
        width: 480px;
    }

    .breadcrumb {
        max-width: 448px;
    }

    article .content img {
        max-width: 448px;
    }

    .author-flex {
        display: flex;
    }

    .footer-categories li {
        min-width: 12em;
    }
}

@media all and (min-width: 600px) {
    .container {
        width: 600px;
    }

    .post-box {
        height: 360px;
    }

    .post-box .category-label {
        display: inline-block;
    }

    .post-box .date-label {
        position: static;
        float: right;
        margin: 8px;
    }

    header h2 {
        font-size: 24px;
    }

    .breadcrumb {
        max-width: 568px;
    }

    article .content img {
        max-width: 568px;
    }

    .footer-categories li {
        min-width: 14em;
    }
}

@media all and (min-width: 800px) {
    header h1 img {
        width: 402px;
        height: 180px;
    }

    .container {
        width: 800px;
    }

    .breadcrumb {
        max-width: 768px;
    }

    article .content img {
        max-width: 768px;
    }

    .footer-categories li {
        min-width: 18em;
    }
}
