html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    box-sizing: border-box
}

*,
*:before,
*:after {
    box-sizing: inherit
}

body {
    margin: 0;
    padding: 0
}

button,
input,
select,
textarea,
label {
    margin: 0;
    padding: 0;
    font-family: inherit;
    font-size: inherit
}

img {
    max-width: 100%
}

body {
    line-height: 1.75
}

h1,
h2,
h3,
h4,
h5,
h6 {
    padding: 0;
    margin: 60px 0 30px;
    line-height: 1.25;
    text-align: center
}

h1 {
    font-size: 32px;
    font-weight: 400
}

h2 {
    font-size: 22px;
    font-weight: 700
}

h3,
h4,
h5,
h6 {
    font-size: 19px;
    font-weight: 700;
    text-align: left
}

blockquote {
    margin: 1em 0;
    padding: 0 2em;
    border-left: 3px solid #ddd
}

pre,
code {
    font-size: .9em
}

pre code {
    display: block;
    border: 1px solid #ddd;
    box-shadow: 5px 5px 5px #eee;
    padding: 1em;
    overflow-x: auto;
    line-height: 1.75
}

code {
    background: #f9f9f9
}

pre code {
    background: 0 0
}

ul,
ol {
    padding: 0 0 0 20px
}

li {
    margin: 4px 0;
    padding: 0
}

a {
    color: #000;
    text-decoration: none;
    padding-bottom: 2px;
    border-bottom: 1px solid
}

a:hover {}

sup a {
    border-bottom: none
}

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid;
    margin: 50px auto;
    padding: 0;
    max-width: 300px
}

.copyright {
    text-align: center
}

.post-nav {
    display: flex;
    justify-content: space-between;
    font-weight: 700
}

.nav-next {
    margin-left: 1em;
    text-align: right
}

.nav-prev {
    margin-right: 1em
}

.comments {
    margin-top: 20px
}

body {
    width: 960px;
    margin: 0 auto;
    padding: 30px 0
}

.masthead {
    width: 260px;
    padding: 20px 50px 20px 10px;
    float: left
}

.main {
    width: 700px;
    padding: 32px 10px 20px 50px;
    margin-left: 260px;
    border-left: 3px solid #000;
    min-height: calc(100vh - 60px);
}

.masthead h1 {
    margin-top: 0;
    margin-bottom: 34px;
    padding: 0;
    text-align: right;
    font-size: 46px;
    line-height: 58px
}

.masthead h1 a {
    border-bottom: none
}

.masthead .tagline {
    font-style: italic;
    text-align: right
}

.masthead .menu {
    margin-right: 20px;
    direction: rtl
}

.masthead .menu a {
    direction: ltr
}

.masthead .menu ul ul {
    list-style: none;
    margin-left: 10px;
    margin-right: 10px
}

.masthead .menu li li::before {
    content: "•\00a\000a0\00a0"
}

#menu-check {
    display: none
}

#menu-label {
    display: none
}

.main .title h1 {
    margin-top: 0;
    margin-bottom: 40px
}

.title h3 {
    font-weight: 400;
    text-align: center
}

.subtitle {
    font-size: .9em;
    color: #666
}

.footnotes {
    font-size: .9em
}

table {
    margin: auto;
    border-top: 1px solid #666;
    border-bottom: 1px solid #666
}

table thead th {
    border-bottom: 1px solid #666
}

th,
td {
    padding: 5px
}

thead,
tfoot,
tr:nth-child(even) {
    background: #f8f8f8
}

.unselectable {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none
}

@-ms-viewport {
    width: device-width;
}

@viewport {
    width: device-width;
}

@media screen and (max-width:960px) {
    body {
        width: auto;
        max-width: 700px
    }

    .masthead {
        width: auto;
        float: none;
        padding: 20px 0 60px;
        text-align: center;
        margin-left: 10px;
        margin-right: 10px;
        border-bottom: 3px solid #000
    }

    .main {
        width: auto;
        padding: 40px 10px;
        margin-left: 0;
        border-left: none;
        min-height: auto
    }

    .masthead h1 {
        text-align: center
    }

    .masthead .tagline {
        text-align: center
    }

    .masthead .menu {
        direction: ltr;
        max-width: 300px;
        margin-left: auto;
        margin-right: auto
    }

    .masthead .menu ul {
        text-align: left;
        margin: 0;
        padding: 0
    }

    .masthead .menu ul ul {
        margin: 0
    }

    .masthead .menu li {
        border-bottom: 1px solid;
        list-style: none;
        margin: 0;
        padding: 0
    }

    .masthead .menu li:first-child {
        border-top: 1px solid
    }

    .masthead .menu li li:last-child {
        border-bottom: none
    }

    .masthead .menu a {
        display: block;
        padding: 15px 20px;
        border-bottom: none
    }

    .masthead .menu li li a {
        padding-left: 30px
    }

    .masthead .menu li li::before {
        content: none
    }

    .masthead .menu li li a::before {
        content: "•\00a0\00a0\00a0"
    }

    #menu-label {
        display: inline-block;
        padding: 0 20px;
        height: 50px;
        border: 1px solid;
        cursor: pointer;
        line-height: 50px;
        color: #333;
        font-size: 20px;
        margin-top: 10px
    }

    #menu-label:hover,
    #menu-label:focus {
        border: 1px solid #888
    }

    #menu-label .icon {
        padding-right: 8px;
        width: 30px
    }

    #menu-check~label .close-icon {
        display: none
    }

    #menu-check~label .open-icon {
        display: inline-block
    }

    #menu-check:checked~label .close-icon {
        display: inline-block
    }

    #menu-check:checked~label .open-icon {
        display: none
    }

    #menu-check~ul {
        display: none
    }

    #menu-check:checked~ul {
        display: block;
        margin-top: 50px;
        margin-bottom: 0
    }
}

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

@media screen and (max-width:480px) {
    body {
        font-size: 16px
    }

    h1 {
        font-size: 28px
    }

    h2 {
        font-size: 18px
    }

    h3,
    h4,
    h5,
    h6 {
        font-size: 16px
    }

    pre,
    code {
        font-size: 12px
    }

    .masthead {
        padding-top: 0
    }
}


/* ----------------------------------------------------------------------------------------------------- */

@media screen and (min-width:961px) {
    .masthead {
        position: sticky;
        top: 0;
        min-height: 100vh;
        border-right: 3px solid #ddd;
        background: #fafafa;
        width: 200px;
        padding: 2em 1em
    }

    .main {
        margin-left: calc(50% - 250px);
    }
}

body {
    width: auto;
    padding: 0
}

.main {
    padding: 2em 40px;
    hyphens: auto;
    border-left: none;
}

.archive>ul>li {
    display: inline-block;
    margin-right: 1em
}

.archive>ul>li>span,
.hash-note {
    color: #666;
    font-size: .9em
}

.menu li:not([class]) a,
a:hover,
.copyright a {
    border-bottom: none
}

.menu-extra {
    list-style: circle
}

.en .main header~p:first-of-type::first-line {
    font-variant: small-caps;
    letter-spacing: .05em;
    font-size: 1.1em
}

.en .main header~p:first-of-type::first-letter {
    font-size: 3em;
    padding: .1em .1em 0 0;
    float: left;
    line-height: 1em
}

code {
    hyphens: none
}

a {
    border-bottom: 1px dashed
}

iframe,
twitterwidget,
video {
    max-width: 100%;
    display: block;
    margin: auto
}

#TableOfContents {
    background-color: #f8f8f8;
    padding: .5em
}

table {
    min-width: 50%;
    max-width: 100%;
    margin: auto
}

pre .nohighlight {
    background-color: transparent
}

pre:hover {
    white-space: pre-wrap;
    word-break: break-all
}

.hljs-comment {
    font-style: inherit
}

.hljs {
    padding: 1em
}

.home hr {
    margin: 2em auto 1em
}

.masthead img {
    max-width: 80px
}

img[src$="#border"] {
    border: 1px solid #ddd;
    box-shadow: 5px 5px 5px #eee
}

.cn del {
    background-color: #444
}

.cn del:hover {
    background-color: inherit;
    text-decoration: inherit
}

.home blockquote,
.cn blockquote:not(:hover) {
    border-left-color: transparent
}

.anchor {
    display: none
}

:hover>.anchor {
    display: inline
}

#disqus_thread a {
    color: #4682b4
}

.tabs {
    display: flex;
    flex-wrap: wrap;
    background: #fafafa;
    box-shadow: 0 20px 80px -50px rgb(0 0 0/30%)
}

.input {
    position: absolute;
    opacity: 0
}

.label {
    padding: 15px 20px;
    background: #eee;
    cursor: pointer;
    font-weight: 700;
    color: #7f7f7f;
    transition: background .1s, color .1s
}

.label:hover {
    background: #d8d8d8
}

.label:active {
    background: #ccc
}

.input:focus+.label {
    box-shadow: inset 0 0 0 3px #2aa1c0;
    z-index: 1
}

.input:checked+.label {
    background: #fff;
    color: #000;
    border: 1px solid #eee
}

.panel {
    display: none;
    padding: 10px;
    background: #fff;
    width: 100%;
    order: 99
}

.panel .title {
    font-weight: 700
}

.input:checked+.label+.panel,
.comment-full .tabs,
.comment-full .panel:not(:last-of-type) {
    display: block
}

.comment-full .panel {
    order: inherit
}

.comment-full .label {
    width: 100%;
    display: block
}

.hash-note {
    background: #ffffe0
}

.hash-note a {
    color: inherit
}

span.hash-note::before {
    content: "　# "
}

.hide-notes .hash-note,
.unlist {
    display: none !important
}

.toggle-notes {
    border-top: 4px double #999;
    margin-bottom: 47px
}

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

    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        margin: 2em auto 1.5em
    }

    .title h2,
    .title h3 {
        margin: 1.5em auto
    }

    .main .title h1 {
        margin: 1em auto 0
    }

    .title hr {
        margin: 2em auto
    }

    .masthead {
        padding: 1em
    }

    .masthead .menu {
        max-width: inherit
    }

    .masthead h1 {
        margin-bottom: 10px
    }

    .masthead .menu ul {
        text-align: center
    }

    .masthead .menu a {
        display: inline-block;
        padding: 5px 10px;
        background: #444;
        color: #fff;
        border-radius: 5px
    }

    .masthead .menu .active a {
        background: 0 0;
        border: 1px solid #444;
        color: #000
    }

    .masthead .menu li,
    .masthead .menu li:first-child {
        border: none;
        display: inline-block;
        margin-top: 5px
    }

    .masthead .menu .menu-extra {
        display: none
    }

    .panel {
        order: inherit
    }

    .label {
        width: 100%
    }
}

@media print {

    del,
    footer,
    .masthead {
        display: none
    }

    body {
        max-width: 700px
    }

    .main {
        margin-left: 0;
        border-left: none;
        padding-left: 10px
    }
}