{"id":4932,"date":"2026-01-16T20:57:52","date_gmt":"2026-01-16T11:57:52","guid":{"rendered":"https:\/\/dennie.tokyo\/it\/?p=4932"},"modified":"2026-01-16T20:58:41","modified_gmt":"2026-01-16T11:58:41","slug":"%e3%80%90css%e3%80%91%e6%96%87%e5%ad%97%e3%82%92%e3%83%9b%e3%83%90%e3%83%bc%e3%81%99%e3%82%8b%e3%81%a8%e4%b8%8b%e7%b7%9a%e3%81%8c%e4%bc%b8%e3%81%b3%e3%82%8b","status":"publish","type":"post","link":"https:\/\/dennie.tokyo\/it\/?p=4932","title":{"rendered":"\u3010CSS\u3011\u6587\u5b57\u3092\u30db\u30d0\u30fc\u3059\u308b\u3068\u4e0b\u7dda\u304c\u4f38\u3073\u308b"},"content":{"rendered":"\n<p>\u6587\u5b57\u3092\u30db\u30d0\u30fc\u3059\u308b\u3068\u4e0b\u7dda\u304c\u4f38\u3073\u308b\u3088\u3046\u306a\u30ae\u30df\u30c3\u30af\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<!--more-->\n\n\n\n<p><strong>\u30b5\u30f3\u30d7\u30eb<\/strong><\/p>\n\n\n\n<style>\n.box-01 {\n  margin-top: 30px;\n}\n\n.sample-01 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-01::after {\n  position: absolute;\n  left: 50%;\n  bottom: -1px;\n  content: ' ';\n  height: 3px;\n  width: 0;\n  transition: .5s all;\n  transform: translateX(-50%);\n  background-color: #ffd700;\n}\n\n.sample-01:hover:after {\n  width: 100%;\n}\n\n.sample-02 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-02::after {\n  position: absolute;\n  left: 0;\n  bottom: -1px;\n  content: ' ';\n  height: 3px;\n  width: 0;\n  transition: .5s all;\n  background-color: #ffd700;\n}\n\n.sample-02:hover:after {\n  width: 100%;\n}\n\n.sample-03 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-03::after {\n  position: absolute;\n  right: 0;\n  bottom: -1px;\n  content: ' ';\n  height: 3px;\n  width: 0;\n  transition: .5s all;\n  background-color: #ffd700;\n}\n\n.sample-03:hover:after {\n  width: 100%;\n}\n<\/style>\n<div class=\"box-01\">\n  <div class=\"sample-01\">HOME<\/div>\n<\/div>\n<div class=\"box-01\">\n  <div class=\"sample-02\">HOME<\/div>\n<\/div>\n<div class=\"box-01\">\n  <div class=\"sample-03\">HOME<\/div>\n<\/div>\n\n\n\n<p><strong>HTML<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-html\" data-lang=\"HTML\"><code>&lt;div class=&quot;sample-01&quot;&gt;HOME&lt;\/div&gt;\n&lt;div class=&quot;sample-02&quot;&gt;HOME&lt;\/div&gt;\n&lt;div class=&quot;sample-03&quot;&gt;HOME&lt;\/div&gt;<\/code><\/pre><\/div>\n\n\n\n<p><strong>CSS<\/strong><\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-css\" data-lang=\"CSS\"><code>.sample-01 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-01::after {\n  position: absolute;\n  left: 50%;\n  bottom: -1px;\n  content: &#39; &#39;;\n  height: 3px;\n  width: 0;\n  transition: .5s all;\n  transform: translateX(-50%);\n  background-color: #ffd700;\n}\n\n.sample-01:hover:after {\n  width: 100%;\n}\n\n.sample-02 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-02::after {\n  position: absolute;\n  left: 0;\n  bottom: -1px;\n  content: &#39; &#39;;\n  height: 3px;\n  width: 0;\n  transition: .5s all;\n  background-color: #ffd700;\n}\n\n.sample-02:hover:after {\n  width: 100%;\n}\n\n.sample-03 {\n  display: inline-block;\n  position: relative;\n}\n\n.sample-03::after {\n  position: absolute;\n  right: 0;\n  bottom: -1px;\n  content: &#39; &#39;;\n  height: 3px;\n  width: 0;\n  transition: .5s all;\n  background-color: #ffd700;\n}\n\n.sample-03:hover:after {\n  width: 100%;\n}<\/code><\/pre><\/div>\n\n\n\n<h1 class=\"wp-block-heading\">\u6700\u5f8c\u306b<\/h1>\n\n\n\n<p>\u7279\u306b\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u5b57\u3092\u30db\u30d0\u30fc\u3059\u308b\u3068\u4e0b\u7dda\u304c\u4f38\u3073\u308b\u3088\u3046\u306a\u30ae\u30df\u30c3\u30af\u3092\u4f5c\u308a\u307e\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":4723,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9],"tags":[],"class_list":["post-4932","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-css"],"_links":{"self":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/4932","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4932"}],"version-history":[{"count":2,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/4932\/revisions"}],"predecessor-version":[{"id":4937,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/posts\/4932\/revisions\/4937"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=\/wp\/v2\/media\/4723"}],"wp:attachment":[{"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dennie.tokyo\/it\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}