@font-face {
    font-family: 'Plemol';
    src: url('/~ogawara/PlemolJP-Medium.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Plemol';
    src: url('/~ogawara/PlemolJP-MediumIralic.woff2') format('woff2');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Plemol';
    src: url('/~ogawara/PlemolJP-Bold.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'Plemol';
    src: url('/~ogawara/PlemolJP-BoldItalic.woff2') format('woff2');
    font-weight: bold;
    font-style: italic;
}

:link {
    text-decoration: underline;
    color: #000080;
}

A:visited {
    color: #004080;
}

A:active {
    color: #0000FF;
}

A:hover {
    background-color: #ccccff;
}

html {
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    font-size: 16px;
}

body {
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    color: black;
    background-color: silver;
    font-family: Arial, Meiryo, sans-serif;
}

p {
    clear: both;
    text-indent: 1em;
    text-align: justify;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    clear: both;
}

h1 {
    font-size: 28px;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 0.5em;
    padding: 2px;
    padding-left: 0.5em;
    border-color: orange;
    border-width: 0pt 0pt 0pt 5pt;
    border-style: solid;
    background-color: #fff8f0;
}

h3 {
    font-size: 20px;
    padding-left: 2ex;
    border-width: 0pt 0pt 2pt 0pt;
    border-color: brown;
    border-style: dotted;
}

h4 {
    font-size: 16px;
    color: blue;
}

h5,
h6 {
    font-size: 16px;
    margin: 0.0em;
}

h5.source,
h5.diff {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    float: left;
    font-weight: normal;
}

h5.source::before {
    font-weight: bold;
    content: "source [";
}

h5.diff::before {
    font-weight: bold;
    content: "diff [";
}

h5.source::after,
h5.diff::after {
    font-weight: bold;
    content: "]";
}

div.body {
    top: 0px;
    left: 0px;
    margin: 0px;
    padding: 0px;
    text-align: center;
}

header,
footer,
nav,
section,
div.block {
    width: 95%;
    text-align: left;
    position: relative;
    top: 0px;
    left: 0px;
    color: black;
    background-color: white;
    /*margin: 1.0em;*/
    margin: 0px;
    margin-bottom: 0.5em;
    padding: 0.5em;
    border-width: 1pt 1pt 1pt 1pt;
    border-color: gray;
    border-style: solid;
    border-radius: 5px;
}

footer p {
    text-align: right;
}

@media screen and (min-width: 800px) {

    header,
    footer,
    nav,
    section,
    div.block {
        width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

img {
    border: 0;
    max-width: 100%;
    height: auto;
}

/*
div.block:after{
content: "";
display: block;
clear: both;
}
*/

dt.oneline {
    float: left;
}

div.oldblock {
    margin-left: 2em;
    padding: 2px;
    border: 1px;
    border-style: solid;
    background-color: silver;
}

dd.shortline {
    margin-left: 5em;
}

dd.longline {
    margin-left: 11.5em;
}

ul {
    line-height: 1.3em;
}

li {
    padding: 2px 0;
    margin-left: -0.5em;
}

li li {
    padding: 2px 0;
    margin-left: -1em;
}

ul.toc {
    padding-left: 0em;
    margin-left: 0.5em;
    line-height: 1.1em;
}

li.toc {
    padding-left: 0em;
    margin-left: 0.5em;
}

ol.ref {
    list-style-type: none;
}

ol.ref li {
    counter-increment: cnt;
}

ol.ref li:before {
    content: "[" counter(cnt) "] ";
    margin-left: -2em;
}

pre {
    clear: both;
    font-family: "Plemol";
    padding: 0.5em;
    border: 1px solid gray;
    border-radius: 5px;
    background-color: #f8f8ff;
    color: black;
    white-space: -moz-pre-wrap;
    /* Mozilla */
    white-space: -pre-wrap;
    /* Opera 4-6 */
    white-space: -o-pre-wrap;
    /* Opera 7 */
    white-space: pre-wrap;
    /* CSS3 */
    word-wrap: break-word;
    /* IE 5.5+ */
}

code {
    font-family: "Plemol";
}

div.code pre,
div.code-button pre {
    margin-top: 0.5em;
    max-height: 200px;
    overflow-y: scroll;
    scrollbar-color: orange transparent;
    scrollbar-width: auto;
}

div.code pre::-webkit-scrollbar-thumb,
div.code-button pre::-webkit-scrollbar-thumb {
    background-color: orange;
    border-radius: 5px;
}

div.code pre::-webkit-scrollbar,
div.code-button pre::-webkit-scrollbar {
    width: 12px;
    background-color: transparent;
}

div.code-button button {
    display: flex;
    margin-left: auto;
    border-radius: 5px;
    background-color: lightyellow;
}

a.pdf {
    display: inline-block;
    background-image: url("/~ogawara/pdficon_small.gif");
    width: 17px;
    height: 17px;
    vertical-align: middle;
    border: none;
}

th,
td {
    padding: 0.25em;
}

img.fig {
    text-align: center;
    border: solid 1px #cccccc;
    max-width: 100%;
    max-height: 320px;
    height: auto;
    margin-left: auto;
    margin-right: auto;
}

.movie {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
}

.movie iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: 0px;
}

ol.bib {
    counter-reset: item;
}

ol.bib li {
    display: block;
    position: relative;
    margin-left: 10px;
}

ol.bib li.no-number {
    display: block;
    position: relative;
    font-size: 16px;
    font-weight: bold;
    color: blue;
    margin-top: 1em;
    margin-left: 0px;
}

ol.bib li:before {
    content: counter(item) ". ";
    counter-increment: item;
    position: absolute;
    right: 100%;
    margin-right: 0.5em;
    text-align: right;
}

ol.bib li.no-number:before {
    content: "";
    counter-increment: none;
}

table {
    margin: 0 auto;
    border-collapse: collapse;
    border: 0px solid;
}

table th {
    text-align: center;
    padding-right: 5px;
    padding-left: 5px;
    border-bottom: 1px solid black;
}

table td {
    padding-right: 5px;
    padding-left: 5px;
    padding-bottom: 2px;
    border-bottom: 1px solid silver;
}

table.oneline {
    margin: 0;
}

table.oneline td {
    vertical-align: top;
}

figure {
    text-align: center;
    margin: 10px;
    float: left;
}

mark {
    background: linear-gradient(transparent 90%, #c00000 0%);
}