|
6 | 6 | @import url('https://fonts.googleapis.com/css2?family=BIZ+UDMincho&family=BIZ+UDPMincho&family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&display=swap'); |
7 | 7 | @import url('https://fonts.googleapis.com/css2?family=BIZ+UDGothic&display=swap'); |
8 | 8 |
|
| 9 | + :root { |
| 10 | + --inside-margin: 72pt; |
| 11 | + --outside-margin: 36pt; |
| 12 | + --font-family-serif: "BIZ UDMincho", serif; |
| 13 | + --font-family-sans-serif: "BIZ UDGothic", sans-serif; |
| 14 | + } |
9 | 15 | .ain, |
10 | 16 | :lang(ain) { |
11 | 17 | word-break: keep-all; /* CJKテキストの改行を許さない。全角スペースU+3000では改行できる。 */ |
12 | 18 | text-align: start; |
13 | | - font-family: "BIZ UDMincho"; |
| 19 | + font-family: var(--font-family-serif); |
14 | 20 | } |
15 | 21 | /* :lang(ain) { |
16 | 22 | color: crimson; |
17 | 23 | font-weight: bold; |
18 | 24 | } */ |
19 | | - :root { |
20 | | - --inside-margin: 72pt; |
21 | | - --outside-margin: 36pt; |
22 | | - } |
23 | 25 | @media print { |
24 | 26 | @page { |
25 | 27 | margin-top: 25mm; |
|
43 | 45 | @top-right { |
44 | 46 | content: string(section-title); |
45 | 47 | word-break: keep-all; |
46 | | - font-family: "BIZ UDMincho"; |
| 48 | + font-family: var(--font-family-serif); |
47 | 49 | } |
48 | 50 | @bottom-right { |
49 | 51 | content: counter(page) " / " counter(pages); |
|
58 | 60 | @top-left { |
59 | 61 | content: string(section-title); |
60 | 62 | word-break: keep-all; |
61 | | - font-family: "BIZ UDMincho"; |
| 63 | + font-family: var(--font-family-serif); |
62 | 64 | } |
63 | 65 | @bottom-right { |
64 | 66 | content: none; |
|
91 | 93 | text-underline-offset: 4px; |
92 | 94 | } |
93 | 95 | h1 { |
94 | | - font-family: "BIZ UDGothic", sans-serif; |
| 96 | + font-family: var(--font-family-sans-serif); |
95 | 97 | font-weight: 400; |
96 | 98 | font-style: normal; |
97 | 99 | font-size: 140%; |
|
105 | 107 | } |
106 | 108 | h2 { |
107 | 109 | margin-block-start: 4em; |
108 | | - font-family: "BIZ UDGothic", sans-serif; |
| 110 | + font-family: var(--font-family-sans-serif); |
109 | 111 | font-weight: 400; |
110 | 112 | font-style: normal; |
111 | 113 | font-size: 120%; |
|
114 | 116 | } |
115 | 117 | h1 > .ain, |
116 | 118 | h2 > .ain { |
117 | | - font-family: "BIZ UDGothic", sans-serif; |
| 119 | + font-family: var(--font-family-sans-serif); |
118 | 120 | font-weight: 400; |
119 | 121 | font-style: normal; |
120 | 122 | } |
|
146 | 148 | font-style: normal; |
147 | 149 | } |
148 | 150 | .biz-udmincho-regular { |
149 | | - font-family: "BIZ UDMincho", serif; |
| 151 | + font-family: var(--font-family-serif); |
150 | 152 | font-weight: 400; |
151 | 153 | font-style: normal; |
152 | 154 | } |
|
0 commit comments