@charset 'utf-8';

.sg-body {
    font-size: 13px;
    color: #333;
}

/*========================================*/
/* Header
/*========================================*/

.sg-header {
    position: fixed;
    width: 100%;
    height: 70px;
    top: 0;
    left: 0;
    padding: 0 20px;
    background-color: #f6f6f6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 9999;
}

.sg-name > a {
    font-weight: 200;
    font-size: 24px;
    display: flex;
    align-items: center;
    color: #333;
    vertical-align: middle;
}
.sg-name img {
    margin-right: 10px
}

.sg-nav {
    display: flex;
}
.sg-nav > li {
    list-style: none;
    position: relative;
    margin: 0 6px;
}
.sg-nav > li > a {
    color: #333;
    display: block;
    line-height: 70px;
    padding: 0 6px;
    text-decoration: none;
    transition: all .2s;
}
.sg-nav > li > a:hover,
.sg-nav > li.current > a {
    color: #00b088;
}
.sg-nav > li.current:before {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    content: '';
    width: 100%;
    height: 3px;
    background-color: #00b088;
}

/*========================================*/
/* Main
/*========================================*/

.sg-main {
    padding: 70px 0 60px;
    position: relative;
    min-height: 100vh;
}

/* localnav */
.sg-localnav {
    position: fixed;
    top: 70px;
    width: 240px;
    height: 90%;
    height: calc(100% - 70px);
    background: #393939;
    z-index: 100;
    overflow-y: scroll;
}
.sg-localnav a {
    display: block;
    padding: 16px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .15);
    transition: all .2s;
}
.sg-localnav a:hover {
    background: #555;
}
@media print, screen and (max-width: 1000px) {
    .sg-localnav {
        display: none;
    }
}

/* contents */
.sg-contents {
    padding: 0 60px 60px 300px;
    font-size: 15px;
}

@media print, screen and (max-width: 1000px) {
    .sg-contents {
        padding: 0 20px 50px 20px;
    }
}

.sg-contents > h1 {
    font-size: 28px;
    font-weight: bold;
    padding: 90px 0 10px;
    margin-top: -40px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}
.sg-contents > h2 {
    font-size: 24px;
    margin-top: 30px;
    margin-bottom: 10px;
}
.sg-contents > h3 {
    font-size: 17px;
    margin-top: 15px;
    margin-bottom: 5px;
}
.sg-contents > h4 {
    font-size: 16px;
    margin-top: 15px;
    margin-bottom: 5px;
}
.sg-contents > h5 {
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 5px;
}
.sg-contents > p,
.sg-contents > ul,
.sg-contents > ol {
    margin-bottom: 20px;
}
.sg-contents > ul li,
.sg-contents > ol li {
    margin-left: 20px;
}

.sg-contents > ul li ul,
.sg-contents > ul li ol,
.sg-contents > ol li ul,
.sg-contents > ol li ol {
    margin-bottom: 0;
}

.sg-contents > ul li ul li,
.sg-contents > ul li ol li,
.sg-contents > ol li ul li,
.sg-contents > ol li ol li {
    margin-left: 15px;
}

.sg-contents > ul li {
    padding-top: 3px;
    padding-bottom: 3px;
    list-style-type: disc;
}

.sg-contents > ul li ul li {
    list-style-type: circle;
}

.sg-contents > ul li ol li {
    list-style-type: decimal;
}

.sg-contents > ol li {
    list-style-type: decimal;
}

.sg-contents > ol li ul li {
    list-style-type: circle;
}


.sg-contents > blockquote {
    padding: 0 0 0 4em;
    margin: 0 0 0 2em;
    color: #ccc;
    border-left: 3px solid #eee;
}
.sg-contents > hr {
    height: 0;
    margin: 2em 0;
    border: none;
    border-top: 1px dashed #eee;
}

.sg-contents pre {
    margin: 20px 0;
    padding: 20px;
    overflow: auto;
    font-family: Consolas, 'Liberation Mono', Courier, monospace;
    background-color: rgba(0, 0, 0, .07);
    font-size: 13px;
    border-radius: 5px;
    color: #333;
}

.sg-contents code {
    padding: 0 0.5em;
    white-space: nowrap;
    display: inline-block;
    font-family: Consolas, 'Liberation Mono', Courier, monospace;
    font-size: 13px;
    background-color: rgba(0, 0, 0, .07);
    position: relative;
    top: -2px;
    border-radius: 3px;
}

.sg-contents pre code {
    padding: 0;
    white-space: pre;
    display: inline;
    font-size: 14px;
    line-height: 1;
    background-color: inherit;
    border-radius: 0;
    box-shadow: none;
}

.sg-contents .example {
    margin-top: 30px;
    padding: 30px;
    border: 1px solid #e6e6e6;
    border-bottom: none;
}
.sg-contents .codeblock {
    margin-bottom: 40px;
}
.sg-contents .codeblock pre {
    margin: 0;
    border-radius: 0 0 5px 5px;
}

.sg-colors {
    display: flex;
    flex-wrap: wrap;
}
.sg-color {
    width: 23%;
    margin-left: 2.666%;
    border: 1px solid #e6e6e6;
    margin-top: 20px;
}
.sg-color:nth-child(4n + 1) {
    margin-left: 0;
}
.sg-color_sample {
    width: 100%;
    height: 80px;
}
.sg-color_txt {
    padding: 15px;
    line-height: 1.6;
}

.sg-glyph {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.sg-glyph_item {
    width: 16.666%;
    background-color: rgba(0, 0, 0, .07);
    border: 1px solid #fff;
    text-align: center;
    padding-bottom: 12px;
}
.sg-glyph_icon {
    font-size: 36px;
    padding: 30px 0 20px;
    display: block;
}
.sg-glyph span {
    font-size: 13px;
    display: block !important;
}


/*========================================*/
/* Footer
/*========================================*/

.sg-footer {
    width: 100%;
    position: absolute;
    bottom: 0;
    color: #999;
    background-color: #f6f6f6;
    padding: 20px;
    text-align: right;
    font-size: 11px;
    z-index: 10;
}


/*========================================*/
/**
 * gitHub code highlight
 *
 * コードをハイライトするところで使用しているスタイルです。
 * 以下のリポジトリにあるスタイルを利用しました。
 *
 * trulia/hologram-example
 * https://github.com/trulia/hologram-example
 */
/*========================================*/

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