{"id":2566,"date":"2022-04-11T10:35:00","date_gmt":"2022-04-11T01:35:00","guid":{"rendered":"https:\/\/pasero.net\/~mako\/blog\/?p=2566"},"modified":"2023-12-12T10:14:59","modified_gmt":"2023-12-12T01:14:59","slug":"css-%e3%81%a7%e8%a6%8b%e5%87%ba%e3%81%97h1-h2-%e3%81%ab%e9%80%a3%e7%95%aa%e3%82%92%e4%bb%98%e3%81%91%e3%82%8b","status":"publish","type":"post","link":"https:\/\/pasero.net\/~mako\/blog\/s\/2566","title":{"rendered":"CSS \u3067\u898b\u51fa\u3057(h1, h2, \u2026)\u306b\u9023\u756a\u3092\u4ed8\u3051\u308b"},"content":{"rendered":"\n<p>\u691c\u7d22\u3059\u308b\u3068\u4f3c\u305f\u3088\u3046\u306a\u30bf\u30a4\u30c8\u30eb\u3067\u305f\u304f\u3055\u3093\u306e\u8a18\u4e8b\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u3002\u4eca\u3055\u3089\u2026\u2026\u306a\u8a71\u984c\u3067\u3059\u304c\u3001\u305d\u308c\u3089\u3092\u53c2\u8003\u306b\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306a CSS \u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u3088\u304f\u898b\u304b\u3051\u308b\u4f8b\u3060\u3068\u3001\u305d\u308c\u305e\u308c\u306e\u898b\u51fa\u3057\u3067\u3072\u3068\u3064\u4e0b\u306e\u968e\u5c64\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u3060\u3051\u3092\u30ea\u30bb\u30c3\u30c8\u3057\u3066\u3044\u308b\u306e\u304c\u591a\u3044\u306e\u3067\u3059\u304c\u3001\u305d\u308c\u3060\u3068 h2 \u306e\u6b21\u306b(h3 \u304c\u306a\u304f\u3066) h4 \u304c\u6765\u308b\u3088\u3046\u306a\u5834\u5408\u306b\u3046\u307e\u304f\u3044\u304d\u307e\u305b\u3093\u3002\u305d\u3046\u3044\u3046\u6587\u66f8\u304c\u60aa\u3044\u3068\u3082\u8a00\u3048\u307e\u3059\u304c\u3002<\/p>\n\n\n\n<p>Chrome \u3068 Firefox \u3067\u7570\u306a\u308b\u7d50\u679c\u306b\u306a\u3063\u305f\u308a\u3057\u3066\u3001\u7d50\u5c40\u3053\u3046\u306a\u308a\u307e\u3057\u305f\u3002<code><a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/CSS\/counter-set\">counter-set<\/a><\/code> \u3092\u7d39\u4ecb\u3057\u3066\u3044\u308b\u8a18\u4e8b\u306f\u307b\u3068\u3093\u3069\u898b\u304b\u3051\u307e\u305b\u3093\u3002\u898b\u3064\u3051\u305f\u306e\u306f<a href=\"https:\/\/stackoverflow.com\/questions\/65002274\/\">\u3053\u306e\u8cea\u554f\u3068\u56de\u7b54<\/a>\u304f\u3089\u3044\u3067\u3001\u56de\u7b54\u8005\u304c\u4ed5\u69d8\u3092\u8aac\u660e\u3057\u3066\u304f\u308c\u3066\u3044\u308b\u306e\u306f\u3068\u3066\u3082\u53c2\u8003\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u4ed5\u69d8\u306e <a href=\"https:\/\/drafts.csswg.org\/css-lists-3\/#example-b1a4542d\">EXAMPLE 22<\/a> \u306f Firefox \u3067\u306f\u6b63\u3057\u304f\u518d\u73fe\u3055\u308c\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p>\u30102022\u5e744\u670818\u65e5\u8ffd\u8a18\u3011\u73fe\u6642\u70b9\u3067\u306e Safari \u3084 iOS \u4e0a\u306e\u30d6\u30e9\u30a6\u30b6\u30fc(Webkit)\u3067\u306f <a href=\"https:\/\/webkit.org\/css-status\/#property-counter-set\"><kbd>counter-set<\/kbd> \u304c\u5b9f\u88c5\u3055\u308c\u3066\u3044\u306a\u3044<\/a>\u305f\u3081\u3001\u4e0b\u8a18\u3067\u306f\u3046\u307e\u304f\u3044\u304b\u306a\u3044\u3088\u3046\u3067\u3059\u3002\u3010\u8ffd\u8a18\u7d42\u308f\u308a\u3011\u30102023\u5e7412\u670812\u65e5\u8ffd\u8a18\u3011Safari \u3084 iOS \u4e0a\u306e\u30d6\u30e9\u30a6\u30b6\u30fc(Webkit)\u306b <a href=\"https:\/\/webkit.org\/blog\/14787\/webkit-features-in-safari-17-2\/\">counter-set \u304c\u5b9f\u88c5\u3055\u308c\u305f<\/a>\u3088\u3046\u3067\u3059\u3002\u73fe\u6642\u70b9\u3067\u307e\u3060\u5b9f\u969b\u306b\u52d5\u4f5c\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u305b\u3093\u304c\u3002\u3010\u8ffd\u8a18\u7d42\u308f\u308a\u3011<\/p>\n\n\n\n<p><code>padding<\/code> \u3067\u5b57\u4e0b\u3052\u3092\u3057\u3066\u3044\u307e\u3059\u3002\u756a\u53f7\u306e\u66f8\u5f0f\u306f\u300c<a href=\"https:\/\/www.bunka.go.jp\/seisaku\/bunkashingikai\/kokugo\/hokoku\/pdf\/93651301_01.pdf#page=31\">\u516c\u7528\u6587\u4f5c\u6210\u306e\u8003\u3048\u65b9<\/a>\u300d\u3092\u53c2\u8003\u306b\u3057\u307e\u3057\u305f\u3002<code>\\a0<\/code>  (non-breaking space)\u3092\u3044\u304f\u3064\u304b\u5165\u308c\u3066\u3044\u308b\u306e\u306f\u3001\u9023\u756a\u3092\u30ab\u30bf\u30ab\u30ca\u3068\u3057\u305f\u306e\u3067\u3001\u898b\u51fa\u3057\u305d\u306e\u3082\u306e\u306e\u5185\u5bb9\u304c\u30ab\u30bf\u30ab\u30ca\u3067\u59cb\u307e\u3063\u3066\u3044\u308b\u5834\u5408\u306b\u3042\u308b\u7a0b\u5ea6\u3042\u3044\u3060\u304c\u958b\u3044\u3066\u3044\u306a\u3044\u3068\u6df7\u4e71\u3059\u308b\u304b\u3089\u3067\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>body {\n    counter-reset: chapter section subsection subsubsection paragraph subparagraph;\n}\n\nh1 {\n    counter-set: section subsection subsubsection paragraph subparagraph;\n}\nh2 {\n    counter-set: subsection subsubsection paragraph subparagraph;\n    padding-left:1em;\n}\nh3 {\n    counter-set: subsubsection paragraph subparagraph;\n    padding-left:2em;\n}\nh4 {\n    counter-set: paragraph subparagraph;\n    padding-left:4em;\n}\nh5 {\n    counter-set: subparagraph;\n}\n\nh1::before {\n    counter-increment: chapter;\n    content: counter(chapter, upper-roman) \"\\a0\\a0\\a0\\a0\";\n}\nh2::before {\n    counter-increment: section;\n    content: counter(section, decimal) \"\\a0\\a0\\a0\\a0\";\n}\nh3::before {\n    counter-increment: subsection;\n    content: \"(\" counter(subsection, decimal) \")\\a0\\a0\\a0\";\n}\nh4::before {\n    counter-increment: subsubsection;\n    content: counter(subsubsection, katakana) \"\\a0\\a0\\a0\\a0\";\n}\nh5::before {\n    counter-increment: paragraph;\n    content: \"(\" counter(paragraph, katakana) \")\\a0\\a0\\a0\";\n}\nh6::before {\n    counter-increment: subparagraph;\n    content: counter(subparagraph, upper-alpha) \"\\a0\\a0\\a0\\a0\";\n}\n\n<\/code><\/pre>\n\n\n\n<p>\u304d\u3063\u304b\u3051\u306f Markdown \u3067\u3057\u305f\u3002\u6700\u8fd1\u3001Firefox \u306a\u3089\u62e1\u5f35\u6a5f\u80fd <a href=\"https:\/\/addons.mozilla.org\/ja\/firefox\/addon\/markdown-viewer-webext\/\">Markdown Viewer Webext<\/a> \u3001Chrome \u306a\u3089\u62e1\u5f35\u6a5f\u80fd <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/markdown-preview-plus\/febilkbfcbhebfnokafefeacimjdckgl?hl=ja\">Markdown Preview Plus<\/a> \u306a\u3069\u3092\u4f7f\u3063\u3066\u3001\u624b\u5143\u3067 Markdown \u3067\u66f8\u3044\u305f\u3082\u306e\u3092\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u773a\u3081\u308b\u3053\u3068\u304c\u3057\u3070\u3057\u3070\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u969b\u306b\u3001\u3053\u306e\u6587\u66f8\u306f\u898b\u51fa\u3057\u306b\u9023\u756a\u304c\u307b\u3057\u3044\u3088\u306a\u3042\u306a\u3069\u3068\u601d\u3063\u305f\u306e\u3067\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u3053\u306b\u6319\u3052\u305f2\u3064\u306e\u62e1\u5f35\u6a5f\u80fd\u306f CSS \u3092\u8ffd\u52a0\u3067\u304d\u308b\u306e\u3067\u3001\u305d\u3053\u306b\u3053\u308c\u3092\u66f8\u3044\u3066\u3082\u3044\u3044\u3067\u3059\u304c\u3001\u305d\u3046\u3059\u308b\u3068 Markdown \u306a\u3089\u5168\u3066\u9023\u756a\u4ed8\u304d\u898b\u51fa\u3057\u306b\u306a\u3063\u3066\u3057\u307e\u3044\u307e\u3059\u3002\u62e1\u5f35\u6a5f\u80fd <a href=\"https:\/\/chrome.google.com\/webstore\/detail\/stylus\/clngdbkpkpeebahjckkjfobafhncgmne?hl=ja\">Stylus<\/a> \u3067\u3001\u597d\u304d\u306a\u3068\u304d\u306b\u5165\u308c\u305f\u308a\u5207\u3063\u305f\u308a\u3059\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002\u3082\u3061\u308d\u3093 Markdown \u306e\u30d7\u30ec\u30d3\u30e5\u30fc\u3060\u3051\u3067\u306f\u306a\u304f\u3001\u3042\u3089\u3086\u308b\u30b5\u30a4\u30c8\u3092\u898b\u308b\u969b\u306b\u9069\u7528\u3067\u304d\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u691c\u7d22\u3059\u308b\u3068\u4f3c\u305f\u3088\u3046\u306a\u30bf\u30a4\u30c8\u30eb\u3067\u305f\u304f\u3055\u3093\u306e\u8a18\u4e8b\u304c\u898b\u3064\u304b\u308a\u307e\u3059\u3002\u4eca\u3055\u3089\u2026\u2026\u306a\u8a71\u984c\u3067\u3059\u304c\u3001\u305d\u308c\u3089\u3092\u53c2\u8003\u306b\u8a66\u884c\u932f\u8aa4\u3057\u3066\u3001\u6b21\u306e\u3088\u3046\u306a CSS \u306b\u306a\u308a\u307e\u3057\u305f\u3002 \u3088\u304f\u898b\u304b\u3051\u308b\u4f8b\u3060\u3068\u3001\u305d\u308c\u305e\u308c\u306e\u898b\u51fa\u3057\u3067\u3072\u3068\u3064\u4e0b\u306e\u968e\u5c64\u306e\u30ab\u30a6\u30f3\u30bf\u30fc\u3060\u3051\u3092\u30ea&hellip; <a class=\"more-link\" href=\"https:\/\/pasero.net\/~mako\/blog\/s\/2566\">\u7d9a\u304d\u3092\u8aad\u3080<span class=\"screen-reader-text\">: CSS \u3067\u898b\u51fa\u3057(h1, h2, \u2026)\u306b\u9023\u756a\u3092\u4ed8\u3051\u308b<\/span> <span class=\"meta-nav\" aria-hidden=\"true\">&rarr;<\/span><\/a>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[75],"tags":[85,95],"class_list":["post-2566","post","type-post","status-publish","format-standard","hentry","category-software","tag-css","tag-markdown"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pLxlV-Fo","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":2370,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/2370","url_meta":{"origin":2566,"position":0},"title":"HTML \u306e &lt;ruby&gt; \u306b\u601d\u3046\u3053\u3068","author":"Mako","date":"2018\u5e746\u670813\u65e5(\u6c34)","format":false,"excerpt":"\u30cb\u30e5\u30fc\u30b9\u30b5\u30a4\u30c8\u304b\u3089\u8a18\u4e8b\u672c\u6587\u3092\u629c\u304d\u51fa\u3057\u3066\u5229\u7528\u3057\u3088\u3046\u3068\u3044\u3046\u4f5c\u696d\u3092\u3084\u3063\u3066\u307f\u3066\u3001<ruby> \u8981\u2026","rel":"","context":"\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","block_context":{"text":"\u30a4\u30f3\u30bf\u30fc\u30cd\u30c3\u30c8","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/internet"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2695,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/2695","url_meta":{"origin":2566,"position":1},"title":"Debian \u3067 EPUB \u30d3\u30e5\u30fc\u30a2\u306e\u672c\u6587\u306e\u7b87\u6240\u304c\u771f\u3063\u767d","author":"Mako","date":"2026\u5e743\u670813\u65e5(\u91d1)","format":false,"excerpt":"\u2026\u2026\u3068\u3001\u691c\u7d22\u753b\u9762\u306e AI \u30e2\u30fc\u30c9\u306b\u805e\u3044\u305f\u3089\u3001\u307b\u3093\u306e 2,3\u306e\u3084\u308a\u53d6\u308a\u3067\u4ee5\u4e0b\u306e\u7b54\u306b\u3002\u4ee5\u524d\u306a\u3089\u3053\u308c\u306b\u305f\u3069\u2026","rel":"","context":"Debian","block_context":{"text":"Debian","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/debian"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2228,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/2228","url_meta":{"origin":2566,"position":2},"title":"\u89aa\u30c6\u30fc\u30de\u6307\u5b9a\u306e web \u30d5\u30a9\u30f3\u30c8\u3092\u5b50\u30c6\u30fc\u30de\u3067\u5909\u66f4\u3059\u308b","author":"Mako","date":"2017\u5e743\u670815\u65e5(\u6c34)","format":false,"excerpt":"\u307e\u3068\u3081 \u307e\u3068\u3081\u3092\u5148\u306b\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002 <head> \u5185\u3067 \u306e\u9806\u306b\u306a\u3063\u3066\u307b\u3057\u3044\u305f\u3081\u3001\u5b50\u30c6\u30fc\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2232,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/2232","url_meta":{"origin":2566,"position":3},"title":"font-family \u6307\u5b9a\u3092\u898b\u308b\u5074\u304c\u9078\u3079\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u308b","author":"Mako","date":"2017\u5e743\u670818\u65e5(\u571f)","format":false,"excerpt":"\u3042\u308b\u6599\u7406\u5e97\u304c\u3042\u3063\u305f\u3002\u6599\u7406\u306f\u300c\u30b3\u30c3\u30af\u304a\u3059\u3059\u3081\u306e\u30ef\u30a4\u30f3\u300d\u3068\u30bb\u30c3\u30c8\u3060\u3063\u305f\u3002 \u3042\u308b\u65e5\u30b3\u30c3\u30af\u306f\u8003\u3048\u305f\u3002\u300c\u4eba\u306f\u307f\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2613,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/2613","url_meta":{"origin":2566,"position":4},"title":"\u6bb5\u843d\u306e\u6700\u521d\u306e\u884c\u982d\u306e\u5b57\u4e0b\u3052","author":"Mako","date":"2023\u5e749\u670826\u65e5(\u706b)","format":false,"excerpt":"WordPress.org \u306e\u65e5\u672c\u8a9e\u30d5\u30a9\u30fc\u30e9\u30e0\u3067\u306e\u300c\u65e5\u672c\u8a9e\u5b57\u4e0b\u3052\u3092\u3044\u3064\u307e\u3067\u7121\u8996\u3057\u7d9a\u3051\u308b\u306e\u304b\u300d\u3068\u3044\u3046\u6295\u2026","rel":"","context":"WordPress","block_context":{"text":"WordPress","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/wordpress"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":337,"url":"https:\/\/pasero.net\/~mako\/blog\/s\/337","url_meta":{"origin":2566,"position":5},"title":"Firefox \u3067\u306e\u5370\u5237\u6642\u306e\u80cc\u666f\u8272","author":"Mako","date":"2011\u5e748\u670827\u65e5(\u571f)","format":false,"excerpt":"Firefox (Iceweasel) \u3067\u3001\u80cc\u666f\u8272\u3092\u767d\u4ee5\u5916(\u8584\u3044\u7070\u8272)\u306b\u6307\u5b9a\u3057\u3066\u4f7f\u7528\u3057\u3066\u3044\u308b\u3002\u30d7\u30ea\u30f3\u2026","rel":"","context":"\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2","block_context":{"text":"\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2","link":"https:\/\/pasero.net\/~mako\/blog\/s\/category\/software"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/posts\/2566","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/comments?post=2566"}],"version-history":[{"count":0,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/posts\/2566\/revisions"}],"wp:attachment":[{"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/media?parent=2566"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/categories?post=2566"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pasero.net\/~mako\/blog\/wp-json\/wp\/v2\/tags?post=2566"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}