@charset "UTF-8";

@page :left {
    margin: 8mm 16mm 8mm 12mm;
}
@page :right {
    margin: 8mm 12mm 8mm 16mm;
}
@page {
    counter-increment: page;
}
body {
    margin: 0;
}

/*
 行数:20
 行ピッチ:5mm / 文字 3.09mm
*/
body {
    -epub-writing-mode: vertical-rl ! important;
    -cssj-direction-mode: logical;
}

div.tate-entry h1, div.tate-entry h2, div.tate-entry h3, div.tate-entry h4, div.tate-entry h5, div.tate-entry h6,
div.tate-entry div.h1, div.tate-entry div.h2, div.tate-entry div.h3, div.tate-entry div.h4, div.tate-entry div.h5, div.tate-entry div.h6{
    margin: 0;
    page-break-inside: avoid;
    font-weight: normal;
    font-family: sans-serif;
}
div.tate-entry p {
    margin: 0;
    text-indent: 1em;
}
div.tate-entry blockquote {
    margin: 2.4mm 0;
    border: .2mm Black solid;
    padding: 2.4mm;
}
div.tate-entry .pagebreak {
    clear: all;
    page-break-before: always;
}
div.tate-entry .columnbreak {
    clear: all;
    page-break-before: column;
}
div.tate-entry .columnbreak-after {
    page-break-after: column;
}
div.tate-entry div.imagebox {
    writing-mode: horizontal-tb;
    page-break-inside: abvoid;
    margin: 0 2.5mm;
    width: 55mm;
    height: 80mm;
    font-family: sans-serif;
    font-size: 2mm;
    line-height: 1.618;
}
div.tate-entry div.imagebox img {
    display: block;
    height: 80mm;
    max-width: 50mm;
    margin: 0 auto;
}
#left-nombre,
#right-nombre {
    display: block;
    -cssj-direction-mode: physical;
    bottom: -4mm;
    width: 8mm;
    font-size: 2.5mm;
    line-height: 8mm;
}
#left-nombre {
    -cssj-page-content: nombre-left left;
    left: -9mm;
}
#right-nombre {
    -cssj-page-content: nombre-right right;
    right: -9mm;
}
#left-nombre .heading,
#right-nombre .heading,
#left-nombre .no-heading,
#right-nombre .no-heading {
    display: inline-block;
    line-height: 1;
    margin-bottom: 2em;
}
#left-nombre .heading:before,
#right-nombre .heading:before {
    content: -cssj-heading(1);
}
#left-nombre .page,
#right-nombre .page {
    position: absolute;
    bottom: 0;
    left: 0;
    writing-mode: horizontal-tb;
    width: 8mm;
    font-size: 3mm;
    line-height: 1;
    text-align: center;
}
#left-nombre .page:before,
#right-nombre .page:before {
    content: counter(page);
}

div.tate-entry {
    clear: all;
    page-break-after: always;
}
div.tate-entry,
div.tate-entry table {
    font-family: serif;
    font-size: 3.43mm;
    line-height: 1.618;
    text-align: justify;
    widows: 1;
    orphans: 1;    
}
div.tate-entry h1,
div.tate-entry div.h1{
    margin: 0 0 5mm 10mm;
    font-size: 6mm;
    line-height: 11.11mm;
}
div.tate-entry h2,
div.tate-entry div.h2{
    font-size: 4mm;
    line-height: 5mm;
    margin: 5mm 0;
}