@font-face {
    font-family: 'Boston';
    font-style: normal;
    font-weight: 800;
    src: url('../fonts/Boston Black/Boston-Black.woff') format('woff'),
         url('../fonts/Boston Black/Boston-Black.ttf') format('ttf'),
         url('../fonts/Boston Black/Boston-Black.eot') format('eot'),
         url('../fonts/Boston Black/Boston-Black.svg') format('svg');
}

::selection {
    color: #fff;
    background: rgba(200,50,0,0.8);
}

#ham-menu {
    background-color: #fff;
    box-sizing: border-box;
    height: 100%;
    padding: 10px 10px 10px 10px;
    position: fixed;
    overflow-y: auto;
    right: -300px;
    top: 0;
    transition: transform 0.3s linear 0s;
    width: 300px;
    z-index: 1000;
}

#menu-background {
    background-color: #333;
    display: block;
    height: 100%;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    transition: all 0.3s linear 0s;
    width: 100%;
    z-index: -1;
}

#menu-icon {
    background-color: #fff;
    color: #323232;
    cursor: pointer;
    display: block;
    font-size: 50px;
    height: 50px;
    font-weight: 700;
    line-height: 50px;
    position: fixed;
    right: 0;
    text-align: center;
    top: 0;
    width: 50px;
    transition: all 0.3s linear 0s;
    z-index: 1000;
}

#menu-cb {
    display: none;
}

#menu-cb:checked ~ #ham-menu,
#menu-cb:checked ~ #menu-icon {
    transform: translate(-300px);
}

#menu-cb:checked ~ #menu-background {
    opacity: 0.5;
    z-index: 999;
}

body {
    font-size: 12pt;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    margin: 0;
    line-height: 1.5;
}

#frame {
    padding: 100px;
    margin: 0;
    border: 0;
}

img#logo {
    margin-right: 10px;
    width: 75px;
    vertical-align: middle;
}

/* .writing-body { */
/*     display: flex; */
/*     flex-wrap: wrap; */
/* } */

.writing-body p {
    margin: 25px 0;
    /* margin: 5px; */
    /* padding: 20px; */
    /* line-height: 2.0; */
    /* border: solid 2px; */
    /* border-radius: 2px; */
    /* width: fit-content; */
    /* height: fit-content; */
}

blockquote p {
    margin: 0;
}

h1 {
    font-size: 18pt;
    font-weight: 700;
    margin: 0 0 10px;
}

a {
    color: #28b;
    text-decoration: none;
}

a:visited {
    color: #28b;
}

a:hover {
    color: #3af;
}

a:focus {
    outline: none;
}

a.name {
    font-size: 24pt;
    font-family: 'Boston';
    font-weight: 800;
    color: #323232;
    vertical-align: middle;
}

a.name404 {
    font-size: 24pt;
    font-weight: 700;
    color: #323232;
    vertical-align: middle;
}

#pages {
    padding: 0;
    margin: 0;
}

#pages li {
    display: inline-block;
    margin: 0;
    margin-right: 10px;
}

a.page {
    font-weight: 700;
    color: #323232;
    overflow-x: scroll;
}

div.saikawa, div.moe {
    margin: 20px 0;
}

time {
    font-size: 11pt;
}

.title {
    font-size: 12pt;
    font-weight: 700;
    color: #323232;
    margin: 0;
}

.site-nav {
    padding-bottom: 25px;
    overflow-y: hidden;
}

.writing-contents { 
    color: #444;
    font-size: 11pt;
}

.writing-index, .writing-header {
    padding: 0 0 10px;
}

.writing-title {
    color: #323232;
}

cite {
    font-style: normal;
    font-weight: 400;
    display: block;
}

.writing-body blockquote.quote {
    color: #666;
    font-style: italic;
    font-weight: 100;
}

.writing-body pre:not(.prettyprint) {
    font-size: 10pt;
    padding: 10px 20px;
    overflow: auto;
    border: solid 1px;
}

.writing-body pre.prettyprint {
    font-size: 10pt;
}

.writing-footer {
    padding: 25px 0 0;
}

#query-area {
    max-width: 500px;
    padding: 25px;
    margin-bottom: 25px;
    border: solid 1px;
    border-radius: 25px;
    display: flex;
    flex-wrap: wrap;
}

#query-area a {
    font-weight: 700;
    margin: 5px;
    display: block;
}

.query-body {
    display: flex;
    flex-wrap: wrap;
}

.query-body blockquote.query {
    margin: 10px;
    padding: 50px;
    border: solid 1px;
    border-radius: 25px;
    width: 150px;
    color: #666;
    /* cursor: pointer; */
}

.query-body blockquote.query strong {
    font-weight: 900;
    font-size: 18pt;
}

.query-body blockquote.query cite {
    margin-bottom: 25px;
    font-size: 10pt;
    font-style: italic;
    font-weight: 900;
    text-align: center;
}

#social-area {
    font-size: 14pt;
    font-family: "Boston";
    font-weight: 700;
    margin: 10px;
}

#social-area a {
    margin: 5px;
    color: #323232;
    vertical-align: middle;
}

.duration {
    border-left: solid 3px;
    padding: 0px 0px 0px 10px;
    margin: 10px 0;
}

.duration::before {
    content: attr(id);
    font-size: 16pt;
    font-weight: 700;
    position: absolute;
    left: 10px;
}

.duration::after {
    content: attr(title);
    font-weight: 700;
}

/* summary { */
/*     background-color: #ccc; */
/*     white-space: nowrap; */
/* } */

/* summary:focus { */
/*     outline: none; */
/* } */

.tag-index {
    border-left: solid 3px;
    padding: 0px 0px 0px 10px;
    margin: 10px 0;
}

.tag-index::before {
    content: attr(title);
    font-weight: 700;
}

.link {
    border-left: solid 3px;
    padding: 0px 110px 0px 5px;
    margin: 5px 0px 5px 20px;
    color: #444;
}

.link::before {
    content: attr(title);
    position: absolute;
    left: 0px;
    color: #323232;
    transform: rotate(-90deg) translate(-12px, 0px);
}

.circle-link {
    position: fixed;
    color: #fff;
    font-size: 20pt;
    font-weight: 900;
    text-align: center;
    background-color: #28b;
    width: 40px;
    height: 30px;
    padding: 15px 15px 25px;
    border-radius: 50px;
    box-shadow: 0px 2px 10px 2px rgba(0,0,0,0.4);
    zoom: 80%;
}

#top-link-a {
    right: 15px;
    bottom: 15px;
}

#prev-link-a {
    left: 15px;
    bottom: 15px;
    color: #fff;
}

#next-link-a {
    left: 15px;
    bottom: 95px;
    color: #fff;
}

@media screen and (max-width: 400px) {
    body pre:not(.prettyprint) {
        width: 100%;
    }
    body img {
        max-width: 100%;
    }
    body iframe {
        width: 100%;
    }
    body #search-area {
        width: 100%;
    }
    body br.sub {
        display: none;
    }
    body {
        zoom: 90%;
    }
    #frame {
        padding-right: 20px;
        padding-left: 50px;
    }
    .duration::before {
        left: -65px;
        transform-origin: 100% 0%;
        transform: rotate(-90deg);
    }
}

@media screen and (max-width: 700px) {
    body pre:not(.prettyprint) {
        width: 100%;
    }
    body img {
        max-width: 100%;
    }
    body iframe {
        width: 100%;
    }
    body #search-area {
        width: 100%;
    }
    body br.sub {
        display: none;
    }
    #frame {
        padding-right: 50px;
        padding-left: 50px;
    }
    .circle-link {
        font-size: 10pt;
        font-weight: 700;
        width: 20px;
        height: 15px;
        padding: 7px 7px 12px;
        border-radius: 25px;
        box-shadow: 0px 1px 5px 1px rgba(0,0,0,0.4);
        zoom: 100%;
    }
    #top-link-a {
        right: 7px;
        bottom: 7px;
    }
    #prev-link-a {
        left: 7px;
        bottom: 7px;
        color: #fff;
    }
    #next-link-a {
        left: 7px;
        bottom: 50px;
        color: #fff;
    }
    .duration::before {
        left: -65px;
        transform-origin: 100% 0%;
        transform: rotate(-90deg);
    }
}

@media screen and (min-width: 700px) {
    body pre:not(.prettyprint) {
        max-width: 500px;
    }
    body .writing-body {
        max-width: 500px;
    }
    body img {
        max-width: 500px;
    }
    body #search-area {
        max-width: 500px;
    }
}
