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

@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 100;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 200;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 300;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Medium");
  font-weight: 400;
}
@font-face {
  font-family: "Yu Gothic";
  src: local("Yu Gothic Bold");
  font-weight: bold;
}

body {
    background: #eee;
    font-family: Avenir, "Open Sans", "Helvetica Neue", Helvetica, Arial, Verdana, Roboto, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "Yu Gothic", "YuGothic", "Meiryo UI", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
    font-weight: 500;
    font-feature-settings : "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mtb {
    margin-top: 100px;
}
.ctitle {
    color: #428bca;
}

section {
    background-color: #fff;
    box-shadow: 0px 0px 12px rgba(0, 0, 0, .08);
    margin-bottom: 40px;
}

.section-inner {
    padding: 10px 30px 20px 30px;
}

@media screen and (max-width: 767px) {
    .section-inner {
        padding: 10px 20px 20px 20px;
    }
}

h4 {
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.paginator {
    font-size: 16px;
    margin: 0;
    padding: 0;
    margin-bottom: 40px;
}
.paginator:after {
    display: block;
    content: "";
    clear: both;
}
.paginator .paginator-next {
    float: right;
}
.paginator .paginator-prev {
    float: left;
}
.paginator .paginator-next,
.paginator .paginator-prev {
    list-style-type: none;
    background-color: #fff;
    box-shadow: 0px 0px 12px rgba(0,0,0,.08);
}
.paginator a {
    display: inline-block;
    padding: 10px;
    width: 100px;
    text-align: center;
}

/* navbar */

.navbar-default {
    background-color: #0e3851;
}
.navbar-header {
    float: left !important;
}
.navbar-right {
    float: right !important;
}
.navbar-right li {
    float: left !important;
}
.navbar-header .navbar-brand {
    color: #fff;
    font-size: 24px;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: #fff;
}
.navbar-default .navbar-nav > li > a {
    font-size: 16px;
    color: #eee;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #eee;
    background-color: #2e5871;
}

.navbar-default .navbar-nav > li > a:hover {
    color: #eee;
    background-color: #2e5871;
}

.navbar-default .navbar-collapse {
    border-width: 0;
    box-shadow: none;
}

.badge-theme {
    background-color: #999;
}

/* title */

#blue {
    background: transparent;
    margin-bottom: 0;
}

#blue h3 {
    color: #555;
}

/* blog entry */

section.entry p, li {
    font-size: 16px;
    line-height: 180%;
    color: #222;
    letter-spacing: 0.02em;
}

section.entry .section-meta {
    margin-bottom: 20px;
}
section.entry .section-meta,
section.entry .section-meta a {
    color: #777;
}
section.entry .section-meta span {
    margin-right: 5px;
}
section.entry .section-meta .fa {
    margin-right: 3px;
}

.img-responsive,
.thumbnail > img,
.thumbnail a > img,
.carousel-inner > .item > img,
.carousel-inner > .item > a > img {
    width: 100%;
}

a.eyecatch {
    max-height: 400px;
    overflow-y: hidden;
    display: block;
}
@media screen and (max-width: 767px) {
    a.eyecatch {
        max-height: 200px;
    }
}

.popular-posts li:after {
    content: "";
    display: block;
    clear: both;
}

.popular-posts li .thumb-wrapper {
    float: left;
    display: inline-block;
    max-height: 80px;
    overflow-y: hidden;
    width: 30%;
    margin-right: 20px;
}

.popular-posts li .thumb-wrapper img {
    float: none;
    margin-right: 0;
}

/* prettify */

code, kbd, pre, samp,
pre.prettyprint, code.prettyprint {
  font-family: Ricty, "Ricty Diminished", Inconsolata, Menlo, Monaco, Consolas, "Courier New", monospace !important;
}

.prettyprint {
    border-radius: 0 0 2px 2px !important;
    padding-left: 0 !important;
}
.prettyprint.linenums {
    box-shadow: 40px 0 0 #373832 inset, 44px 0 0 #373832 inset !important;
}

.prettyprint ol.linenums {
    padding-left: 52px !important;
}

.prettyprint ::selection {
    color: #272822 !important;
    background: #eee !important;
}

pre .pln, code .pln {
    color: #eee !important;
}

pre.ex-code-prettify ol.linenums li {
    text-shadow: none !important;
    font-size: 15px !important;
    font-weight: bold !important;
}

.ex-code-prettify-contents {
    margin-bottom: 20px;
}

.ex-code-prettify-tools {
    background: #ddd;
}
.ex-code-prettify-tools a:visited,
.ex-code-prettify-tools a {
    color: #555 !important;
}
.ex-code-prettify-tools a.ex-code-prettify-raw:after {
    content: " >";
}
.ex-code-prettify-tools a.ex-code-prettify-back:before {
    content: "< ";
}

.ex-code-prettify-edit-mode textarea {
    font-size: 16px !important;
}

/* sidebar */

.sidebar-widget {
    padding: 10px 20px 20px 20px;
    background-color: #fff;
    box-shadow: 0px 0px 12px rgba(0,0,0,.08);
    margin-bottom: 40px;
}

.sidebar-widget p {
    margin-top: 8px;
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 180%;
    color: #000;
    letter-spacing: 0.02em;
}
.sidebar-widget p:first-of-type {
    margin-top: 0;
}
.sidebar-widget p:last-of-type {
    margin-bottom: 0;
}

.sidebar-widget .popular-posts span {
    color: #777;
    font-size: 12px;
}

.sidebar-widget .popular-posts p {
    font-size: 15px;
    line-height: 150%;
    margin-left: calc(30% + 20px);
}

/* footer */

#footerwrap {
    background: #0e3851;
    padding-top: 10px;
    padding-bottom: 10px;
}
#footerwrap p {
    text-align: right;
}

.readmore,
.readmore:hover {
    display: inline-block;
    background: #0e3851;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    margin-top: 10px;
}

@media screen and (max-width: 767px) {
    .col-lg-8,
    .col-lg-4 {
        padding-left: 0;
        padding-right: 0;
    }
    #footerwrap .col-lg-4 {
        padding-left: 15px;
        padding-right: 15px;
    }
}

.clearfix:after {
    display: block;
    content: "";
    clear: both;
}
