@charset "utf-8";
/* 日本語スタイル PDF, HTML共用 */

/********************
 * コンテンツの水平方向の配置
 */
/*** 言語別の設定 ***/
/* 最終行以外は両端揃え */
body,
.align_left:not([rotate]),
.align_center:not([rotate]),
.align_right:not([rotate]) {
    text-align: justify;
}

@media print {
    body {
        -ah-punctuation-trim: end;
    }
}

/********************
 * フォント
 */
/*** 言語別の設定 ***/
/* PDF, HTML共通 */
html {
    -ah-language: ja;
    font-family: "Noto Sans JP";
}

body {
    font-size: 10pt;
    font-weight: 300;
}

li.list_number:before {
    font-weight: 700;
}

/* PDFのみ */
@media print {
    @page:left {
        @top-left {
            font-weight: 700;
            font-size: 15pt;
        }

        @bottom-left {
            font-weight: 300;
            font-size: 10pt;
        }
    }

    @page:right {
        @top-right {
            font-weight: 700;
            font-size: 15pt;
        }

        @bottom-right {
            font-weight: 300;
            font-size: 10pt;
        }
    }

    @page:blank {
        @top-center {
            font-weight: 700;
            font-size: 15pt;
        }
    }
}

/* AHF V6.6用。この設定がないとリーダーがあふれる。 */
@font-face {
    font-family: "Noto Sans JP-Light";
    src: url("../../../fonts/fonts/japanese/NotoSansJP-Light.ttf");
}

@media print {
    div.chapter_TOC .s_lead_ul > li > p.TOC_title::after,
    .section_index p.tree_door > span.title::after,
    .t_contents_ul_s span.tree_index::after {
        font-family: "Noto Sans JP-Light";
    }
}

/*** 全言語共通の設定 ***/
h1, h2, h3, h4,
p.PL_lead {
    font-weight: 700;
}

b {
    font-weight: 700;
}

h1 b, h2 b, h3 b, h4 b {
    font-weight: 800;
}

table.template_danger th,
table.template_warning th,
table.template_caution th,
table.template_point th,
table.template_notice th,
table.template_note th {
    font-weight: 700;
}

.svg_parent .foreign_object p {
    font-weight: 700;
}

.svg_parent .foreign_object p b {
    font-weight: 800;
}

li.list_circle:before,
li.list_point:before,
li.list_hyphen:before,
li.list_asterisk:before,
li.list_em_asterisk:before,
li.list_jp_asterisk:before {
    font-family: "Noto Sans JP";
}

li.list_alphabet:before,
li.list_comment:before {
    font-family: "Noto Sans";
}

li.list_nega_number:before {
    font-family: "ToDoX Black Number";
}

li.list_posi_number:before {
    font-family: "ToDoX White Number";
}

/******************************
 * 参照
 */
@media print {
    body[mode="preview"] a.link_format_cat_rectangle:after {
        content: "XX";
    }

    body:not([mode="preview"]) a.link_format_cat_rectangle:after {
        content: target-counter(attr(href, url), page);
    }
}
