/* <system section="theme"> */
/*!
Theme: Media-v2
Author: Hatena Blog Team
Description: はてなCMSのデフォルトテーマです
Responsive: yes
*//*! normalize.css v7.0.0 | MIT License | github.com/necolas/normalize.css */html{line-height:1.15;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}body{margin:0}article,aside,footer,header,nav,section{display:block}h1{font-size:2em;margin:.67em 0}figcaption,figure,main{display:block}figure{margin:1em 40px}hr{box-sizing:content-box;height:0;overflow:visible}pre{font-family:monospace,monospace;font-size:1em}a{background-color:transparent;-webkit-text-decoration-skip:objects}abbr[title]{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}b,strong{font-weight:inherit}b,strong{font-weight:bolder}code,kbd,samp{font-family:monospace,monospace;font-size:1em}dfn{font-style:italic}mark{background-color:#ff0;color:#000}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}audio,video{display:inline-block}audio:not([controls]){display:none;height:0}img{border-style:none}svg:not(:root){overflow:hidden}button,input,optgroup,select,textarea{font-family:sans-serif;font-size:100%;line-height:1.15;margin:0}button,input{overflow:visible}button,select{text-transform:none}button,html [type=button],[type=reset],[type=submit]{-webkit-appearance:button}button::-moz-focus-inner,[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner{border-style:none;padding:0}button:-moz-focusring,[type=button]:-moz-focusring,[type=reset]:-moz-focusring,[type=submit]:-moz-focusring{outline:1px dotted ButtonText}fieldset{padding:.35em .75em .625em}legend{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}progress{display:inline-block;vertical-align:baseline}textarea{overflow:auto}[type=checkbox],[type=radio]{box-sizing:border-box;padding:0}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}[type=search]::-webkit-search-cancel-button,[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}details,menu{display:block}summary{display:list-item}canvas{display:inline-block}template{display:none}[hidden]{display:none}*{box-sizing:border-box}html,body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif;color:#3d3f44;background-color:#fff;line-height:1.5;word-wrap:break-word}a{color:#5684d7;text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,h4,h5,h6{color:#3d3f44;line-height:1.3}h1 a,h2 a,h3 a,h4 a,h5 a,h6 a,h1 a:hover,h2 a:hover,h3 a:hover,h4 a:hover,h5 a:hover,h6 a:hover{color:#3d3f44}.blog-header:not(.is-touch) .blog-header-inner{margin-left:10px;margin-right:10px}@media(min-width:768px){.blog-header:not(.is-touch) .blog-header-inner{width:720px;margin:auto;padding-left:0;padding-right:0}}@media(min-width:992px){.blog-header:not(.is-touch) .blog-header-inner{width:940px}}@media(min-width:1200px){.blog-header:not(.is-touch) .blog-header-inner{width:1140px}}.blog-header-inner{padding:1.2rem 0;text-align:center}@media(min-width:768px){.blog-header-inner{padding:1.5rem 0}}.blog-header-fullwidth .blog-header-inner{margin:0;width:auto;padding:0}.blog-title-heading{margin:0 auto;font-size:1.5rem}@media(min-width:576px){.blog-title-heading{font-size:1.8rem}}.blog-title-heading img{vertical-align:middle;max-width:100%}.blog-description{color:#9aa5ab;line-height:1.3;margin:.5rem 0 0;font-size:.8rem;display:none}@media(min-width:576px){.blog-description{display:block}}@media(min-width:576px){.navbar:not(.is-touch){margin-bottom:2rem}}@media(min-width:576px){.navbar:not(.is-touch) .navbar-inner{margin-left:10px;margin-right:10px}}@media(min-width:576px)and (min-width:768px){.navbar:not(.is-touch) .navbar-inner{width:720px;margin:auto;padding-left:0;padding-right:0}}@media(min-width:576px)and (min-width:992px){.navbar:not(.is-touch) .navbar-inner{width:940px}}@media(min-width:576px)and (min-width:1200px){.navbar:not(.is-touch) .navbar-inner{width:1140px}}.navbar{background-color:#f7f8f9;margin-bottom:1.5rem;border-bottom:4px solid #5684d7}.navbar .navbar-inner{display:flex;justify-content:space-between}.navbar-list{position:relative;display:flex;margin:0 auto;padding:0;align-items:left;overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;white-space:nowrap;flex-wrap:nowrap}@media(min-width:576px){.navbar-list{flex-wrap:wrap;white-space:normal}}.navbar.is-open .navbar-list{flex-wrap:wrap;white-space:normal;overflow:visible}.navbar.is-open .navbar-list:after{display:none}.navbar-list li{list-style:none;max-width:15rem}.navbar-list a{position:relative;display:flex;align-items:center;justify-content:center;text-align:center;height:44px;padding:0 .6rem;font-size:.8rem;line-height:1.3;font-weight:700;color:#5684d7}.navbar-list a:after{content:"";position:absolute;top:0;left:0;display:block;width:100%;height:100%;background-color:#0000;transition:background-color .2s}.navbar-list a:hover{text-decoration:none}.navbar-list a:hover:after{background-color:#00000014}@media(min-width:768px){.navbar-list a{font-size:.95rem;padding:0 1rem;height:3.5rem}}.navbar-toggle-nav{position:relative;text-align:center}@media(min-width:576px){.navbar-toggle-nav{display:none}}.navbar-toggle-nav:after{content:"";display:block;position:absolute;top:0;left:-30px;width:30px;height:44px;background:linear-gradient(to right,#f7f8f900,#f7f8f9)}@media(min-width:576px){.navbar-toggle-nav:after{display:none}}.navbar-toggle-btn{position:relative;background-size:16px 12px;display:flex;align-items:center;justify-content:center;width:44px;height:44px;cursor:pointer}.navbar-toggle-btn:after{content:"";position:absolute;top:0;left:0;display:block;width:100%;height:100%;background-color:#0000;transition:background-color .2s}.navbar-toggle-btn:hover{color:transparent;text-decoration:none}.navbar-toggle-btn:hover:after{background-color:#00000014}.navbar.is-open .navbar-toggle-btn .navbar-toggle-btn-open,.navbar-toggle-btn .navbar-toggle-btn-close{display:none}.navbar.is-open .navbar-toggle-btn .navbar-toggle-btn-close{display:inline}.navbar-toggle-btn-icon line{stroke:#5684d7}.entry-content{line-height:1.7;font-size:.9rem}@media(min-width:576px){.entry-content{font-size:1rem}}.entry-content a.keyword{text-decoration:none;border-bottom:1px dotted #DFE5E7;color:#3d3f44}.entry-content p{margin:1rem 0}.entry-content img,.entry-content video{max-width:100%;height:auto}.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6{margin:1em 0 .8em;line-height:1.3}.entry-content h2,.entry-content h3{padding-bottom:.1em;border-bottom:1px solid #DFE5E7}.entry-content h1{font-size:150%}@media(min-width:768px){.entry-content h1{font-size:160%}}.entry-content h2{font-size:140%}@media(min-width:768px){.entry-content h2{font-size:150%}}.entry-content h3{font-size:130%}@media(min-width:768px){.entry-content h3{font-size:140%}}.entry-content h4{font-size:120%}@media(min-width:768px){.entry-content h4{font-size:130%}}.entry-content h5{font-size:110%}@media(min-width:768px){.entry-content h5{font-size:110%}}.entry-content h6{font-size:100%}.entry-content ul,.entry-content ol,.entry-content dd{margin:0 0 1em 1.5em;padding:0}.entry-content ul li ul,.entry-content ol li ul,.entry-content dd li ul,.entry-content ul li ol,.entry-content ol li ol,.entry-content dd li ol{margin-bottom:0}.entry-content table{border-collapse:collapse;border-spacing:0;border-bottom:1rem;margin-bottom:1rem;width:100%;overflow:auto;display:block;font-size:.8rem}@media(min-width:576px){.entry-content table{font-size:.9rem}}.entry-content table th,.entry-content table td{border:1px solid #DFE5E7;padding:5px 10px}.entry-content table th{background:#f7f8f9}.entry-content .hatena-asin-detail li{line-height:1.4}.entry-content blockquote{margin:1rem 0;padding:5px 5px 5px 15px;border-left:3px solid #DFE5E7}@media(min-width:768px){.entry-content blockquote{margin:1.5rem 2rem;padding:5px 20px}}.entry-content blockquote p:first-child{margin-top:0}.entry-content blockquote p:last-child{margin-bottom:0}.entry-content pre,.entry-content code{font-family:Monaco,Consolas,Courier New,Courier,monospace,sans-serif}.entry-content pre{background:#f7f8f9;border:none;white-space:pre-wrap;text-overflow:ellipsis ellipsis;font-size:100%;line-height:1.3;font-size:.8rem;padding:10px}@media(min-width:768px){.entry-content pre{font-size:.85rem;padding:15px}}.entry-content pre>code{margin:0;padding:0;white-space:pre;border:none;background-color:transparent;font-family:Monaco,Consolas,Courier New,Courier,monospace,sans-serif}.entry-content code{font-size:90%;margin:0 2px;padding:0 5px;background-color:#f7f8f9;border-radius:3px}.entry-content hr{width:50%;border:0;border:none;border-top:1px solid #DFE5E7;margin:2em auto}.entry-content .hatena-asin-detail,.entry-content .itunes-embed{background-color:#f7f8f9;border-color:#dfe5e7}.entry-content .entry-see-more{width:100%;box-sizing:border-box;text-decoration:none}.entry-content .table-of-contents{padding:1em 1em 1em 2em;margin:1em 0;border:1px solid #DFE5E7}.hatena-module-title{font-weight:700;margin-bottom:1rem;padding-top:0;padding-bottom:5px;font-size:1.2rem;border-top:0;border-bottom:1px solid #bdccd4;color:#5684d7;position:relative}.hatena-module-title a{color:#5684d7;text-decoration:none}.hatena-module-title a:hover{text-decoration:underline}.hatena-module-title:after{content:"";position:absolute;display:block;bottom:-1px;left:0;z-index:1;width:70px;border-bottom:4px solid #5684d7}.hatena-module{margin-bottom:2rem}.hatena-urllist{margin:0;padding:0}.hatena-urllist li{list-style:none;padding-bottom:.8rem;margin-bottom:.8rem;border-bottom:1px solid #DFE5E7}.hatena-urllist li:last-child{border:none;margin-bottom:0;padding-bottom:0}.hatena-urllist .urllist-title-link{font-weight:700;color:#3d3f44;font-size:.9rem;line-height:1.5}@media(min-width:576px){.hatena-urllist .urllist-title-link{font-size:1rem}}@media(min-width:768px){.hatena-urllist .urllist-title-link{font-size:1.1rem}}.urllist-date-link{font-size:.8rem}.urllist-date-link a{color:#9aa5ab}.urllist-entry-body{font-size:.85rem;color:#55585f;margin-top:.3rem}.urllist-categories{margin-top:.3rem}.urllist-image{max-width:100%}.urllist-see-more-link{display:inline-block;text-align:center;padding:.6rem 1rem;cursor:pointer;line-height:1.5;font-size:.8rem;overflow:hidden;background-color:#79878f;color:#fff;font-weight:700;border-radius:.2rem;text-decoration:none!important;transition:all .2s}.urllist-see-more-link:hover{background-color:#616d74;color:#fff;text-decoration:none}.urllist-see-more-link img,.urllist-see-more-link svg{vertical-align:top;margin-right:.3em}@media(min-width:576px){#header-modules .hatena-urllist,#top-page-header-modules .hatena-urllist{display:flex;flex-wrap:wrap;margin:0 -.7rem;padding:0}}@media(min-width:992px){#header-modules .hatena-urllist,#top-page-header-modules .hatena-urllist{margin:0 -1rem}}#header-modules .urllist-item,#top-page-header-modules .urllist-item{margin-bottom:2rem;padding-bottom:0;border-bottom:none;box-sizing:border-box}#header-modules .urllist-item:last-child,#top-page-header-modules .urllist-item:last-child{margin-bottom:0}@media(min-width:576px){#header-modules .urllist-item,#top-page-header-modules .urllist-item{margin-bottom:0;width:33.3333%;padding:0 .7rem}}@media(min-width:992px){#header-modules .urllist-item,#top-page-header-modules .urllist-item{padding:0 1rem}}#header-modules .urllist-image-link,#top-page-header-modules .urllist-image-link{display:flex;align-items:center;justify-content:center;margin:0 0 .5rem}#header-modules .urllist-image,#top-page-header-modules .urllist-image{max-width:100%;float:none;display:block;margin-right:0;margin-bottom:0}#header-modules .urllist-title-link,#top-page-header-modules .urllist-title-link{font-size:1rem}@media(min-width:768px){#header-modules .urllist-title-link,#top-page-header-modules .urllist-title-link{font-size:1.1rem}}.footer:not(.is-touch) .footer-inner{margin-left:10px;margin-right:10px}@media(min-width:768px){.footer:not(.is-touch) .footer-inner{width:720px;margin:auto;padding-left:0;padding-right:0}}@media(min-width:992px){.footer:not(.is-touch) .footer-inner{width:940px}}@media(min-width:1200px){.footer:not(.is-touch) .footer-inner{width:1140px}}.footer{padding:2rem 0;font-size:.85rem;text-align:center;background:transparent}.footer .footer-nav ul{list-style:none;margin:0 0 1rem;padding:0}.footer .footer-nav ul li{display:inline-block;margin:.6rem .6rem 0 0;padding-right:.6rem;border-right:1px solid #DFE5E7}.footer .footer-nav ul li:last-child{border-right:0;margin-right:0;padding-right:0}.footer address{font-style:normal;color:#9aa5ab}.footer a{color:#9aa5ab;text-decoration:none}.footer a:hover{text-decoration:underline}#content{margin-left:10px;margin-right:10px}@media(min-width:768px){#content{width:720px;margin:auto;padding-left:0;padding-right:0}}@media(min-width:992px){#content{width:940px}}@media(min-width:1200px){#content{width:1140px}}@media(min-width:768px){#content-inner{display:flex;margin:0 -.7rem}}@media(min-width:992px){#content-inner{margin:0 -1rem}}@media(min-width:768px){#wrapper{width:66.6666%;padding:0 .7rem}}@media(min-width:992px){#wrapper{padding:0 1rem}}@media(min-width:768px){#box2{width:33.3333%;padding:0 .7rem}}@media(min-width:992px){#box2{padding:0 1rem}}@media(min-width:768px){.static-page-layout-header-footer #content-inner{display:block;margin:0}}@media(min-width:992px){.static-page-layout-header-footer #content-inner{margin:0}}@media(min-width:768px){.static-page-layout-header-footer #wrapper{width:auto;padding:0}}@media(min-width:992px){.static-page-layout-header-footer #wrapper{padding:0}}.entry{margin-bottom:3rem}.entry-header{position:relative;margin-bottom:1.5rem}.date{font-size:.8rem}.date a,.date-last-updated{color:#9aa5ab}.entry-header-menu{position:absolute;top:0;right:0}.entry-header-menu a{display:inline-block;text-align:center;padding:.6rem 1rem;cursor:pointer;line-height:1.5;font-size:.8rem;overflow:hidden;background-color:#79878f;color:#fff;font-weight:700;border-radius:.2rem;text-decoration:none!important;transition:all .2s;padding:.3em .7em;font-size:.75rem}.entry-header-menu a:hover{background-color:#616d74;color:#fff;text-decoration:none}.entry-header-menu a img,.entry-header-menu a svg{vertical-align:top;margin-right:.3em}.entry-title{font-size:1.5rem;margin:.5rem 0}@media(min-width:576px){.entry-title{font-size:1.7rem}}.entry-title a{text-decoration:none}.entry-title a:hover{text-decoration:underline}.entry-footer{margin-top:1rem}.entry-footer-section{font-size:.8rem;color:#9aa5ab}.entry-footer-section a{color:#9aa5ab}.entry-footer-section a:hover{text-decoration:underline}.comment-box ul{list-style:none;margin:0 0 15px;padding:0;font-size:.9rem}.comment-box li{padding:10px 0 10px 60px;border-bottom:1px solid #DFE5E7;position:relative}.comment-box li:first-child{border-top:1px solid #DFE5E7}.comment-box .hatena-id-icon{position:absolute;top:10px;left:0;width:50px!important;height:50px!important;border-radius:3px}.comment-user-name{margin:0 0 10px;font-weight:700}.comment-content{font-size:.85rem;margin:0 0 10px;word-wrap:break-word}.comment-content p{margin:0 0 10px}.comment-metadata{font-size:.8rem;color:#9aa5ab;margin:0}.comment-metadata a{color:#9aa5ab}.leave-comment-title{display:inline-block;text-align:center;padding:.6rem 1rem;cursor:pointer;line-height:1.5;font-size:.8rem;overflow:hidden;background-color:#79878f;color:#fff;font-weight:700;border-radius:.2rem;text-decoration:none!important;transition:all .2s}.leave-comment-title:hover{background-color:#616d74;color:#fff;text-decoration:none}.leave-comment-title img,.leave-comment-title svg{vertical-align:top;margin-right:.3em}.pager{font-size:.9rem;display:flex;align-items:center;justify-content:center;width:100%;line-height:1.5;border-top:1px solid #DFE5E7;border-bottom:1px solid #DFE5E7;text-align:center;margin:1.5em auto}.pager a{color:#3d3f44;font-weight:700;text-decoration:none}.pager a:hover{text-decoration:underline}.pager .pager-next,.pager .pager-prev{position:relative;width:50%}.pager .pager-next a,.pager .pager-prev a{display:block;padding:1rem}@media(min-width:768px){.pager .pager-next a,.pager .pager-prev a{padding:.5rem}}.pager .pager-next .pager-arrow,.pager .pager-prev .pager-arrow{font-size:20px;height:20px;line-height:.7;position:absolute;display:block;top:0;bottom:0;margin:auto;color:#dfe5e7}@media(min-width:768px){.pager .pager-next .pager-arrow,.pager .pager-prev .pager-arrow{font-size:30px;height:30px}}.pager.permalink .pager-next{text-align:right}.pager.permalink .pager-next a{padding-right:20px}@media(min-width:768px){.pager.permalink .pager-next a{padding-right:40px}}.pager.permalink .pager-next .pager-arrow{right:0}.pager.permalink .pager-prev{text-align:left}.pager.permalink .pager-prev a{padding-left:20px}@media(min-width:768px){.pager.permalink .pager-prev a{padding-left:40px}}.pager.permalink .pager-prev .pager-arrow{left:0}#main .urllist-item{padding-bottom:1rem;margin-bottom:1rem}#main .urllist-image{max-width:50%;margin-right:1rem;margin-bottom:0}@media(min-width:992px){#main .urllist-image{max-width:100%}}#header-modules .urllist-see-more{text-align:right}#main .urllist-see-more-link{display:block;width:100%}.urllist-read-more-btn{display:inline-block;text-align:center;padding:.6rem 1rem;cursor:pointer;line-height:1.5;font-size:.8rem;overflow:hidden;background-color:#79878f;color:#fff;font-weight:700;border-radius:.2rem;text-decoration:none!important;transition:all .2s;display:block;width:100%}.urllist-read-more-btn:hover{background-color:#616d74;color:#fff;text-decoration:none}.urllist-read-more-btn img,.urllist-read-more-btn svg{vertical-align:top;margin-right:.3em}#entry-footer-secondary-modules .hatena-module:first-child{margin-top:1.5rem}.entry-footer-modules .urllist-title-link{font-size:.9rem}@media(min-width:992px){.entry-footer-modules .urllist-title-link{font-size:1rem}}#box2{font-size:.85rem}#box2 .hatena-module{background-color:#f7f8f9;padding:1rem}#box2 .hatena-module-title{font-size:1rem}#box2 .urllist-title-link{font-size:.9rem}#box2 .urllist-category-link{background-color:#fff}#box2 .urllist-entry-body{font-size:.8rem}#box2 .hatena-module-html{background-color:transparent;padding:0}.hatena-module-profile .hatena-module-body:after{content:" ";display:block;clear:both}.hatena-module-profile .profile-icon{float:left;margin:0 10px 10px 0;border-radius:5px}.hatena-module-profile .id{display:block;font-weight:700;font-size:1rem;margin-bottom:.5rem}.hatena-module-profile .profile-description p{margin-top:0}.hatena-urllist .archive-module-year{padding-bottom:0;border-bottom:0}.search-form{position:relative}.search-form .search-module-input{width:100%;border:2px solid #DFE5E7;padding:.5rem .5rem .5rem 30px;color:#3d3f44;outline:none;font-size:1rem;background:#fff url(https://cdn.blog.st-hatena.com/css/theme/media-v2/images/search.svg?version=f5154c74e6e38109ce2f0c7b9afd51) no-repeat 5px center;background-size:20px 20px}.search-form .search-module-input:hover{border-color:#bdccd4}.search-form .search-module-input:focus{border-color:#9aa5ab}.search-form .search-module-button{height:0;width:0;border:0;padding:0;position:absolute;border:none;outline:none;opacity:0}.hatena-module-category .hatena-urllist li{padding-bottom:0;border-bottom:0}.entry-category-link,.urllist-category-link{color:#7e8c94;background-color:#f7f8f9;padding:.1rem .2rem;line-height:1.2em;font-size:.8rem;text-decoration:none;display:inline-block;margin:0 .4rem .3rem 0}.entry-category-link:hover,.urllist-category-link:hover{color:#718088;text-decoration:none;background-color:#e0e4e8}.categories{margin:.3rem 0}#top-box{margin-left:10px;margin-right:10px;margin-bottom:1rem!important}@media(min-width:768px){#top-box{width:720px;margin:auto;padding-left:0;padding-right:0}}@media(min-width:992px){#top-box{width:940px}}@media(min-width:1200px){#top-box{width:1140px}}#top-box .breadcrumb{font-size:.9rem;color:#9aa5ab}.page-about dt{font-size:16px;font-weight:700;border-bottom:1px solid #DFE5E7;margin-bottom:5px}.page-about dd{margin-left:0;margin-bottom:30px}.page-archive .archive-entry{margin-bottom:1.5rem}@media(min-width:768px){.page-archive .archive-entry{margin-bottom:3rem}}.page-archive .entry-title{margin:0 0 .5rem;font-size:1rem}@media(min-width:768px){.page-archive .entry-title{font-size:1.1rem}}.page-archive .entry-thumb{width:80px;height:80px;background-size:cover}@media(min-width:576px){.page-archive .entry-thumb{width:100px;height:100px}}.page-archive .categories a{color:#7e8c94;background-color:#f7f8f9;padding:.1rem .2rem;line-height:1.2em;font-size:.8rem;text-decoration:none;display:inline-block;margin:0 .4rem .3rem 0}.page-archive .categories a:hover{color:#718088;text-decoration:none;background-color:#e0e4e8}.page-archive .entry-description{margin:.5rem 0;font-size:.85rem}@media(min-width:576px){.page-archive .entry-description{font-size:.9rem}}.archive-heading{font-weight:700;margin-bottom:1rem;padding-top:0;padding-bottom:5px;font-size:1.2rem;border-top:0;border-bottom:1px solid #bdccd4;color:#5684d7;position:relative}.archive-heading a{color:#5684d7;text-decoration:none}.archive-heading a:hover{text-decoration:underline}.archive-heading:after{content:"";position:absolute;display:block;bottom:-1px;left:0;z-index:1;width:70px;border-bottom:4px solid #5684d7}.archive-description{font-size:.85rem}@media(min-width:576px){.archive-description{font-size:.9rem}}


/* ========================================================================= */
/* CSS変数定義（サイト全体で使用） */
/* ========================================================================= */
:root {
  /* ヘッダー関連（viewport に応じて 60px→70px を clamp で変化） */
  --header-height: clamp(
    60px,
    calc(60px + (100vw - 426px) * (10 / 342)),
    70px
  );
  /* コンテンツ上マージン */
  --detail-content-top-margin: calc(var(--header-height) + 0px);

  /* タイポグラフィ（ベースは fluid、320px→768px で可読性確保） */
  --font-size-base-min: 87.5%;   /* 320px幅時（14px相当） */
  --font-size-base-max: 106.25%;  /* 768px幅時（17px相当） */
  --font-size-input: 0.9375rem;  /* 入力欄：ベースに連動（320/768で適度なサイズ） */
  /* スライドタイトル（h3.slide-title）：425/320幅→16px、768幅→24px */
  --font-size-slide-title-min: 16px;
  --font-size-slide-title-max: 18px;
  --viewport-slide-title-start: 425px; /* この幅まで min */
  --viewport-slide-title-end: 768px;
  --font-size-slide-title: clamp(
    var(--font-size-slide-title-min),
    calc(
      var(--font-size-slide-title-min)
      + (var(--font-size-slide-title-max) - var(--font-size-slide-title-min))
      * ((100vw - var(--viewport-slide-title-start)) / (var(--viewport-slide-title-end) - var(--viewport-slide-title-start)))
    ),
    var(--font-size-slide-title-max)
  );
  --font-size-slide-date: 0.8rem; /* 日付：ベースに連動 */
  
  /* カルーセル関連 */
  --carousel-height-desktop: 18.75rem;  /* 300px - デスクトップ */
  --carousel-height-tablet: 25rem;      /* 400px - タブレット（1024px以下） */
  --carousel-height-mobile: 15.625rem;  /* 250px - モバイル（768px以下） */
  /* カルーセルカード幅：75vw = 768px時576px・320px時240px（px指定なし、比率8:5で高さは aspect-ratio に連動） */
  --carousel-image-width: 75vw;
  /* モバイル／タブレット分離（425px境界 = スライドタイトルと揃える） */
  --carousel-slider-padding-x-mobile: 1rem;   /* モバイル時の左右余白 */
  --carousel-slider-padding-x-tablet: 1.5rem; /* タブレット時の左右余白 */
  --carousel-slide-text-padding-mobile: 0.6rem;
  --carousel-slide-text-padding-tablet: 1rem 1.5rem;
  --carousel-slide-text-min-height-mobile: 8rem;
  --carousel-slide-text-min-height-tablet: 12rem;
  
  /* サイドバー関連 */
  --sidebar-top-offset: 6.75rem;   /* 108px - サイドバーの上からの位置 */
  --sidebar-bottom-offset: 1.25rem; /* 20px - サイドバーの下部余白 */
  
  /* レイアウト関連 */
  --content-max-width: 87.5rem;    /* 1400px */
  --wrapper-max-width: 45rem;      /* 720px */
  --sidebar-width: 15.875rem;      /* 254px */
  --wrapper-top-offset-mobile: 1.25rem; /* 20px - モバイル時のwrapper上部余白 */
}

body {
  background-image: url("https://cdn.blog.st-hatena.com/files/6802418398571665203/6802888565223896577");
  background-repeat: no-repeat;
  background-position: top center;
  background-size: 110% auto;
  background-color: #f0f3f3;
  line-height: 1.8;
  overflow-x: hidden; /* 横スクロールを防止 */
}

html {
  /* Fluid Typography: 変数で 320px→小さめ / 768px→読みやすく 滑らかに変化（px指定なし） */
  font-size: clamp(
    var(--font-size-base-min),
    calc(var(--font-size-base-min) + (var(--font-size-base-max) - var(--font-size-base-min)) * ((100vw - 320px) / (768 - 320))),
    var(--font-size-base-max)
  );
  overflow-x: hidden; /* 横スクロールを防止 */
}

/* author_ を含むclassを持つ要素を非表示（先頭・中間・末尾いずれも対象）
   .urllist-category-link / .entry-category-link の display:inline-block !important より優先するため body で詳細度を上げる */
body [class*="author_"] {
  display: none !important;
}

/* 記事詳細ページ以外では .detail-social-links を非表示（記事詳細では page-detail-design_v2.css で表示） */
.detail-social-links {
  display: none !important;
}

#content {
  min-height: 100vh !important;
  width: 100%;
  max-width: 100%;
}

/* #content-inner のスタイル（モバイルファースト） */
#content-inner {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    min-height: 100vh !important;
    margin-top: var(--detail-content-top-margin) !important;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 16px;
    box-sizing: border-box;
    gap: 20px;
}

#content-inner .hatena-module {
    margin-bottom: 40px;
    background-color: transparent;
}

/* #box2 (左サイドバー) のスタイル（モバイルファースト） */
#box2 {
    width: 100%;
    flex-shrink: 0;
    order: 2;
    position: relative;
    z-index: 10;
    scrollbar-width: none;
    padding: 0 16px;
}

/* 768px以上：#box2 の左右 padding を 0 に（二重余白を防ぐ） */
@media (min-width: 768px) {
  #box2 {
    padding: 0 !important;
  }
}

#box2-inner {
  scroll-margin-top: 70px !important;
}

#box2-inner .hatena-module-custom-side-pickup {
  padding: 0;
}

@media (min-width: 1024px) {
  #box2-inner .hatena-module-custom-side-pickup {
    padding: 0 1rem 0 0;
  }

  #box2 .hatena-module-html.hatena-module-custom-see-more {
    padding-right: .4rem;
  }
}

#box2-inner .hatena-module.hatena-module-category.hatena-module-custom-top_side_pickup {
    margin-bottom: 0 !important;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    padding: 0;
}

/* 記事一覧へボタンのみ右揃えにする */
.hatena-module-custom-top-article-btn .hatena-module-body {
    display: flex;
    justify-content: flex-end;
}

ul.hatena-urllist {
    display: flex;
    flex-wrap: wrap;
}

#box2 .hatena-module-html {
    margin: 0px 0px 40px 0px;
}

/* #wrapper (本文エリア) のスタイル（モバイルファースト） */
#wrapper {
    width: 100%;
    flex: 1;
    min-width: 0;
    order: 1;
}

/*  ========================================= */
/* カテゴリータグ */
.hatena-module-custom-top_side_pickup a,
.entry-category-link, 
.urllist-category-link,
.archive-category-link {
    color: #7e8c94 !important;
    background-color: #fff !important;
    padding: 4px 8px !important;
    line-height: 14px;
    font-size: 10px;
    text-decoration: none !important;
    display: inline-block !important;
    margin: 5.4px 5.4px 0 0;
    border: 1px solid #247987 !important;
    border-radius: 400px;
}

/* category-author_ が先頭につくclassを持つ要素を非表示 */
[class*="category-author_"] {
  display: none !important;
}
.hatena-module-custom-top_side_pickup .category-NEW,
.hatena-module-custom-top_side_pickup .category-PICK-UP,
a.urllist-category-link.recent-entries-category-link.category-PICK.UP{
    display: none !important;
}

/* 新着記事ブロック内でイベント情報タグ付きの記事は表示しない（イベント専用モジュールは除外） */
.hatena-module.hatena-module-custom-new-article:not(.category-イベント情報):not(.hatena-module-custom-event) .urllist-item.recent-entries-item:has(.urllist-category-link.category-イベント情報) {
    display: none !important;
}

.hatena-module-custom-top_side_pickup a:hover,
.entry-category-link:hover,
.urllist-category-link:hover,
.archive-category-link:hover {
    background-color: #247987 !important;
    color: #fff !important;
}
.hatena-module-custom-top_side_pickup li{
  margin-bottom: .1rem !important;
}

/* box2内のキーワードタグを最大10件まで表示（共通・表示遅延を防ぐためCSSで実施） */
/* ピックアップ記事（.urllist-with-thumbnails）には当てない */
#box2 .hatena-module-custom-top_side_pickup .hatena-module-body .hatena-urllist:not(.urllist-with-thumbnails) li:nth-child(n+11) {
  display: none !important;
}

/* サイドバータイトル */
.hatena-module-title {
  margin-bottom: 16px !important;
  font-size: 16px !important;
  border-top: none !important;
  border-bottom: none !important;
  color: #3F3F41 !important;
}

.hatena-module-title a{
    text-decoration: none !important;
    color: #3F3F41 !important;
    font-weight: 600 !important;
    pointer-events: none !important;
}

.hatena-module-title::after {
  border-bottom: none !important;
}

.entry-title a {
  text-decoration: none !important;
}

.entry-title {
  margin: .5rem 0 1rem 0
}

.enlighter-default {
  font-family:ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace !important;
}

p.link-button {
  margin: 0;
}

.hatena-module-body p.link-button a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem; /* 6px */
  padding: 0.625rem 1.25rem; /* 10px 20px */
  border-radius: 0.25rem; /* 4px */
  background-color: #127987;
  color: #fff !important;
  font-weight: 600;
  font-size: 0.875rem; /* 14px */
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.hatena-module-body p.link-button a:hover {
  opacity: 0.5;
  text-decoration: none !important;
}

.hatena-module-custom-top-article-btn {
    margin: -3.4rem 0 0 0 auto !important;
}

.hatena-module-custom-new-article:not(.hatena-module-custom-event) .urllist-see-more-link.recent-entries-see-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 4px;
  background-color: #127987;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

#box2 .hatena-module-html.hatena-module-custom-see-more {
    border-top: 0px !important;
}

/* ピックアップ下「もっと見る」用（PCはテキストリンク） */
#box2 .hatena-module-html.hatena-module-custom-see-more-btn {
  border-top: 0 !important;
  padding-bottom: 40px !important;
}
.hatena-module-custom-see-more-btn .hatena-module-body {
  display: flex !important;
  justify-content: flex-end !important;
}
.hatena-module-custom-see-more-btn a {
  padding-right: 14px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  margin-top: 20px;
}

.hatena-module-body a{
    color: #3F3F41 !important;
    text-decoration: none !important;
}

/* もっと見るボタンを右揃え（キーワード下用） */
.hatena-module-custom-see-more .hatena-module-body {
    display: flex !important;
    justify-content: flex-end !important;
}

.hatena-module-custom-see-more a {
    padding-right: 14px;
    display: inline-flex;
    align-items: center;
    font-size: 12px;
    margin-top: 20px;
}
.hatena-module-custom-see-more svg {
    margin-left: 8px;
}

.hatena-module-body .link-button a svg {
    width: 0.625rem; /* 10px */
    height: 1rem; /* 16px */
}

.hatena-module-body .link-button a svg path {
    fill: #ffffff !important;
}
 
 /* Embla Carouselのベーススタイル */
.hatena-module-custom-top_slider .hatena-module-body {
  overflow: hidden;
}

/* 余計な要素を非表示/リセット */
.hatena-module-custom-top_slider .urllist-entry-body {
    display: none !important;
}

/* カード全体のコンテナ (.card-inner) スタイル */
.custom-card-item .card-inner {
    display: flex;
    flex-direction: row-reverse; /* 🚨 画像を右に配置 */
    align-items: flex-start; /* 上詰 */
    gap: 30px;
    padding: 20px;
    background-color: #fff; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-height: 250px; /* 最小高さを確保 */
}

/* 左側テキストコンテナ (.card-text-container) 設定 */
.custom-card-item .card-text-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column; /* 🚨 日付・タグ・タイトルを縦並びに */
    justify-content: flex-start; /* 上詰 */
    gap: 8px;
    width: auto;
}

/* 画像エリア (.card-image-link) - 横長比率と固定幅 */
.custom-card-item .card-image-link {
    flex-shrink: 0;
    width: 100%;
    max-width: 350px; /* 最大幅を設定、小さい画面では柔軟に */
    height: 210px; /* 画像の固定高さ (約 16:9 の横長比率) */
    overflow: hidden;
    border-radius: 4px;
}
.custom-card-item .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像をクロップして領域に合わせる */
}

/* テキスト要素の順序とスタイル (日付、タグ、タイトル) */
/* 🚨 順序は order プロパティで決定 */
.custom-card-item .card-date {
    order: 1; /* 日付を一番上 */
    font-size: 0.9em;
    color: #888;
}
.custom-card-item .card-tags {
    order: 2; /* タグを中央 */
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 5px;
}
.custom-card-item .card-title {
    order: 3; /* タイトルを一番下 */
    font-size: 1.5em; 
    font-weight: bold;
    line-height: 1.3;
    text-decoration: none;
    color: #333;
}
/* タグの横幅調整（既存の urllist-category-link が適用される前提） */
.custom-card-item .card-tags a {
    white-space: nowrap; 
}

/* カルーセルCSSはヘッダーに集約 */
.urllist-date-link a{
    text-decoration: none;
}
@media (max-width: 767px) {
  #content {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  body.page-index #content {
    margin: 0 !important;
    padding: 0 !important;
    margin-top: 60px !important; /* カルーセルが固定ヘッダーに隠れないように */
  }
  body.search-open.page-index #content {
    margin-top: 1rem !important; /* 検索窓表示時は余白を詰める */
  }
  
  body.page-index #content-inner {
    padding: 0 !important;
  }
  
  body.page-index #wrapper {
    padding: 0 16px; /* 新着記事セクションに適切なパディングを追加 */
  }
  /* SP時：hatena-module-recent-entries / 新着記事（イベント専用は除外）内のカテゴリータグを非表示 */
  @media (max-width: 1024px) {
    .hatena-module.hatena-module-recent-entries .urllist-categories,
    .hatena-module.hatena-module-custom-new-article:not(.hatena-module-custom-event) .urllist-categories {
      display: none !important;
    }
    /* タグ非表示で空いたスペースを埋める：タイトルを2・3行目にまたがせて3行表示 */
    .hatena-module.hatena-module-recent-entries .urllist-item.recent-entries-item .urllist-title-link,
    .hatena-module.hatena-module-custom-new-article:not(.hatena-module-custom-event) .urllist-item.recent-entries-item .urllist-title-link {
      grid-row: 2 / 4 !important; /* タグがあった2行目も含めてタイトル領域に */
      -webkit-line-clamp: 3 !important;
      line-clamp: 3 !important;
    }
    /* ピックアップモジュール内タイトル：SP時は0.75rem */
    .hatena-module.hatena-module-custom-side-pickup .urllist-item.recent-entries-item .urllist-title-link,
    .hatena-module.hatena-module-custom-side-pickup .urllist-item.related-entries-item .urllist-title-link {
      font-size: 0.75rem !important;
    }
  }
}
.urllist-item-inner.recent-entries-item-inner,
.urllist-item-inner.related-entries-item-inner {
    display: block;
}

/* サムネイル画像コンテナの統一スタイル */
.urllist-item.recent-entries-item .urllist-image-link,
.urllist-item.related-entries-item .urllist-image-link {
    display: block;
    width: 100%;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 8 / 5; /* 画像の比率を維持（1080:675 = 8:5） */
    position: relative;
}

/* サムネイル画像本体の統一スタイル */
.urllist-item.recent-entries-item .urllist-image-link img,
.urllist-item.related-entries-item .urllist-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
}

/* ホバー時の画像拡大エフェクト */
.urllist-item.recent-entries-item:hover .urllist-image-link img,
.urllist-item.related-entries-item:hover .urllist-image-link img {
    transform: scale(1.05);
}

/* テキスト部分のパディング（recent-entriesのみに適用） */
.urllist-item.recent-entries-item .urllist-main {
    padding: 16px;
}

/* related-entriesのテキスト部分も同様に */
.urllist-item.related-entries-item .urllist-main {
    padding: 16px;
}

/* 日付表示の統一スタイル */
.urllist-item.recent-entries-item .urllist-date-link,
.urllist-item.related-entries-item .urllist-date-link {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
    text-decoration: none;
    padding: 1rem 0 0 1rem;
}

/* 日付リンクのテキスト装飾を削除 */
.urllist-date-link a {
    text-decoration: none;
    color: #999;
}

/* 新着記事の日付リンクを無効化（SP・PC共通。イベント専用モジュールは除外） */
.hatena-module-custom-new-article:not(.hatena-module-custom-event) .urllist-date-link {
    pointer-events: none;
    cursor: default;
}

.hatena-module-custom-new-article:not(.hatena-module-custom-event) .urllist-date-link a {
    pointer-events: none;
    cursor: default;
}

/* タイトルの統一スタイル */
.urllist-item.recent-entries-item .urllist-title-link,
.urllist-item.related-entries-item .urllist-title-link {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    color: #333;
    text-decoration: none;
    margin-top: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 1rem .2rem 1rem;
}

/* タイトルホバー時の色変更 */
.urllist-item.recent-entries-item .urllist-title-link:hover,
.urllist-item.related-entries-item .urllist-title-link:hover {
    color: #007c91;
}

/* カテゴリタグエリアの統一スタイル */
.urllist-item.recent-entries-item .urllist-categories,
.urllist-item.related-entries-item .urllist-categories {
    padding: 0 0 0 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 8px;
}

/* エントリー本文エリア */
.urllist-item.recent-entries-item .urllist-entry-body,
.urllist-item.related-entries-item .urllist-entry-body {
    padding: 0 0 0 1rem;
}

/* 不要な要素を非表示 */
.urllist-item.recent-entries-item .urllist-with-thumbnails,
.urllist-item.related-entries-item .urllist-with-thumbnails {
    display: none;
}

/* グリッドレイアウトの統一（モバイルファースト） */
.recent-entries.hatena-urllist.urllist-with-thumbnails,
.related-entries.hatena-urllist.urllist-with-thumbnails {
    display: grid;
    grid-template-columns: 1fr; /* モバイルは1カラム */
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 画像の縦横比を維持（全画面サイズ） */
.urllist-item.recent-entries-item .urllist-image-link,
.urllist-item.related-entries-item .urllist-image-link {
    aspect-ratio: 8 / 5;
}

/* デフォルトのmax-width: 50%を解除して画像の縦横比を維持 */
#main .urllist-item.recent-entries-item .urllist-image,
#main .urllist-item.related-entries-item .urllist-image {
    max-width: 100%;
    margin-right: 0;
}

/* サイドバー内は常に1カラム（縦積み） */
#box2 .recent-entries.hatena-urllist.urllist-with-thumbnails,
#box2 .related-entries.hatena-urllist.urllist-with-thumbnails {
    display: block;
    grid-template-columns: none;
}

/* モバイルデフォルト：新着記事を横並びレイアウトに */
/* サイドバー内のピックアップ記事もグリッドレイアウトに（SP表示時） */
  #box2 .hatena-module-custom-side-pickup .recent-entries.hatena-urllist.urllist-with-thumbnails {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  
  /* カード全体のスタイルをリセット */
  .urllist-item.recent-entries-item,
  .urllist-item.related-entries-item {
    background: transparent !important; /* 背景色削除 */
    box-shadow: none !important; /* 影削除 */
    border-radius: 0 !important; /* 角丸削除 */
    transition: none !important; /* transformなし */
  }
  
  /* ピックアップ記事も同様にリセット（詳細度を上げる） */
  #box2 .hatena-module-custom-side-pickup .urllist-item.recent-entries-item,
  #box2 .hatena-module-custom-side-pickup .urllist-item.related-entries-item {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: none !important;
    padding-bottom: 0 !important;
  }
  
  /* ホバー時のスタイルもリセット */
  .urllist-item.recent-entries-item:hover,
  .urllist-item.related-entries-item:hover {
    transform: none; /* transformなし */
    box-shadow: none; /* 影なし */
  }
  
  /* カード全体をGridレイアウトに（左：画像、右：テキスト） */
  .urllist-item.recent-entries-item .urllist-item-inner.recent-entries-item-inner,
  .urllist-item.related-entries-item .urllist-item-inner.related-entries-item-inner {
    display: grid;
    grid-template-columns: 120px 1fr;
    grid-template-rows: auto auto auto;
    gap: 0 12px;
    align-items: start;
  }
  
  /* 左側：サムネイル画像（3行分） */
  .urllist-item.recent-entries-item .urllist-image-link,
  .urllist-item.related-entries-item .urllist-image-link {
    grid-row: 1 / 4; /* 1行目から4行目の手前まで */
    grid-column: 1;
    width: 120px;
    height: 80px;
    aspect-ratio: auto;
    border-radius: 0; /* 角丸削除 */
    position: relative; /* 追加：imgのabsolute positionの基準 */
    overflow: hidden; /* 追加：はみ出し部分を隠す */
  }
  
  /* ピックアップ記事（サイドバー内）の画像スタイルを統一 */
  #box2 .hatena-module-custom-side-pickup .urllist-item.recent-entries-item .urllist-image-link img,
  #box2 .hatena-module-custom-side-pickup .urllist-item.related-entries-item .urllist-image-link img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    max-width: none !important;
  }
  
  /* ピックアップ記事の画像要素のfloatとmarginをリセット */
  #box2 .hatena-module-custom-side-pickup .urllist-item.recent-entries-item .urllist-image,
  #box2 .hatena-module-custom-side-pickup .urllist-item.related-entries-item .urllist-image {
    float: none !important;
    margin: 0 !important;
    max-width: 100% !important;
  }
  
  /* 右側1行目：日付 */
  .urllist-item.recent-entries-item .urllist-date-link,
  .urllist-item.related-entries-item .urllist-date-link {
    grid-row: 1;
    grid-column: 2;
    padding: 0;
    margin-bottom: 4px;
    padding-top: 0 !important;
  }
  
  /* 右側2行目：カテゴリタグ */
  .urllist-item.recent-entries-item .urllist-categories,
  .urllist-item.related-entries-item .urllist-categories {
    grid-row: 2;
    grid-column: 2;
    padding: 0;
    margin-top: 0;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: nowrap; /* 折り返さない */
    gap: 0; /* 隙間なし */
    overflow: hidden; /* はみ出し部分を隠す */
    max-height: 1.25rem; /* 約20px、1行分の高さ */
  }
  
  /* タグがない場合は非表示にして余白を削除 */
  .urllist-item.recent-entries-item .urllist-categories:not(:has(a)),
  .urllist-item.related-entries-item .urllist-categories:not(:has(a)) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
  }
  
  /* ピックアップ記事のタグエリア（サイドバー内）も同様に処理 */
  #box2 .hatena-module-custom-side-pickup .urllist-categories {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
  }
  
  /* ピックアップ記事専用：タイトルを2行目に配置（タグがないため） */
  #box2 .hatena-module-custom-side-pickup .urllist-item.recent-entries-item .urllist-title-link,
  #box2 .hatena-module-custom-side-pickup .urllist-item.related-entries-item .urllist-title-link {
    grid-row: 2 !important; 
    grid-column: 2;
    margin-top: 4px !important; 
  }
  
  /* タグのスタイル（SP表示の新着記事のみ） */
  .urllist-item.recent-entries-item .urllist-categories a,
  .urllist-item.related-entries-item .urllist-categories a,
  .urllist-item.recent-entries-item .urllist-categories .plus-tags,
  .urllist-item.related-entries-item .urllist-categories .plus-tags {
    font-size: 0.6rem !important; 
    padding: 0.125rem 0.375rem !important; 
    line-height: 1.2 !important;
    max-width: clamp(65px, 12vw, 120px); /* 最小6文字表示を保証 */
    margin: 0.2rem 0.2rem 0 0 !important; 
    overflow: hidden;
    text-overflow: ellipsis; 
    white-space: nowrap; 
    flex-shrink: 0; 
  }
  
  /* 4つ目以降のタグを非表示（SP表示の新着記事のみ） */
  .urllist-item.recent-entries-item .urllist-categories a:nth-child(n+4):not(.category-NEW):not([class*="category-author_"]),
  .urllist-item.related-entries-item .urllist-categories a:nth-child(n+4):not(.category-NEW):not([class*="category-author_"]) {
    display: none !important;
  }
  
  /* 4つ以上タグがある場合、3つ目の後に「...」を追加 */
  .urllist-item.recent-entries-item .urllist-categories:has(a:nth-child(4))::after,
  .urllist-item.related-entries-item .urllist-categories:has(a:nth-child(4))::after {
    content: '+他';
    font-size: 0.5rem;
    line-height: 1.2rem;
    color: #7e8c94;
    margin: 0.2rem 0.2rem 0 0 ;
    display: inline-block;
  }
  
  /* 右側3行目：タイトル（モバイル320pxでは0.75remが適正。タブレット768pxでは下のブロックで1remに） */
  .urllist-item.recent-entries-item .urllist-title-link,
  .urllist-item.related-entries-item .urllist-title-link {
    grid-row: 3;
    grid-column: 2;
    padding: 0;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    -webkit-line-clamp: 2; /* 2行まで表示 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  
  #container .hatena-module-custom-top-article-btn{
    margin-top: -4rem !important; 
    margin-bottom: 3rem;
  }
  
  /* ネストされた.hatena-module-htmlの下マージンを削除（高さ削減） */
  .hatena-module-custom-top-article-btn .hatena-module-html {
    margin-bottom: 0 !important;
  }
  
  .hatena-module-body p.link-button a {
    font-size: 0.625rem !important; /* 10px */
    padding: 0.375rem 0.75rem !important; /* 6px 12px */
    gap: 0.25rem; /* 4px、アイコンとのギャップを調整 */
  }
  
  /* SVGアイコンのサイズをフォントサイズに合わせる（SP時 8px/12px は style-v8 文字数制限のため <header class="site-header">.html の @media (max-width: 768px) に記載） */
  .hatena-module-body p.link-button a svg {
    width: 0.625rem; /* 10px */
    height: 1rem; /* 16px、元の比率を維持 */
  }
  
  /* もっと見るボタンエリアの下部余白を削除（SP表示・ピックアップ下のみ） */
  #box2 .hatena-module-html.hatena-module-custom-see-more-btn {
    padding: 0 1rem !important;
  }

  /* ピックアップ下「もっと見る」を記事一覧へボタンと同じデザインに（SP） */
  .hatena-module-custom-see-more-btn a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.25rem !important;
    padding: 0.375rem 0.75rem !important;
    border-radius: 0.25rem !important;
    background-color: #127987 !important;
    color: #fff !important;
    font-weight: 600 !important;
    font-size: 0.625rem !important;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
    margin-top: 0 !important;
  }
  .hatena-module-custom-see-more-btn a:hover {
    opacity: 0.5;
    text-decoration: none !important;
  }
  .hatena-module-custom-see-more-btn a svg path {
    fill: #fff !important;
  }

/* モバイル：ソーシャルリンクを非表示（footer用に表示） */
.hatena-module-custom-social-link {
  display: none !important;
}

/* データ取得専用モジュールをCMSに表示要素と認識させつつ、画面外に配置する */
.hatena-module-category.hatena-module-custom-cat-list {
  display: none !important;
}

/* カテゴリ一覧記事をトップページ・アーカイブページで非表示 */
.page-index .entry[data-uuid="17179246901331567484"],
.page-archive .entry[data-uuid="17179246901331567484"] {
  display: none !important;
}

#box2 .hatena-module {
    background-color: transparent !important;
    /*border-radius: 6px;
    border: 1px solid #ebecee; */      
}
/* 7日以内の判定クラスがついた記事に、擬似要素でNEWを表示させる */
.has-new-tag time::before {
    content: "NEW";
    display: inline-block;
    background-color: #0969da ; 
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
    vertical-align: middle;
}

/* 既存のNEWタグ移動処理などで消されないようにするための設定 */
.has-new-tag .category-NEW {
    display: none !important; 
}
.blog-header,
.navbar {
  display: none !important;
}

/* 背景画像があるのでヘッダーは確実に白で覆う */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000 !important;
}

/* ヘッダー内配置（ロゴ左／検索＋ボタン右）※幅・余白はフッター .footer-inner に合わせる */
.site-header-inner {
  width: 100% !important;
  max-width: 1400px !important;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 40px !important;
}
@media (max-width: 768px) {
  .site-header-inner {
    gap: 16px;
    padding: 0 16px !important;
  }
}

/* ロゴ */
.site-logo img {
  display: block;
  height: auto;
  max-height: 46px;
  width: auto;
}

/* 右側グループ（検索＋ボタン） */
.site-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* 検索結果ページ用フォーム（search-result-form） */
.search-result-form {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  padding: 6px 10px;
  margin-bottom: 30px;
  max-width: 400px;
}

.search-result {
  max-width: 1200px;
  margin: 0 auto;
}

.search-result-input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 10px;
  color: #333;
}

.search-result-input:-webkit-autofill,
.search-result-input:-webkit-autofill:hover,
.search-result-input:-webkit-autofill:focus,
.search-result-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 30px #f5f7fa inset !important;
  -webkit-text-fill-color: #333 !important;
  transition: background-color 5000s ease-in-out 0s;
}

.search-result-input::selection {
  background-color: rgba(0, 124, 145, 0.2);
  color: #333;
}

.search-result-form .search-result-button {
  border: none !important;
  background: none !important;
  cursor: pointer;
  padding: 2px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  min-width: 20px !important;
  min-height: 20px !important;
  position: static !important;
  text-indent: 0 !important;
  opacity: 1 !important;
  font-size: 0 !important;
  overflow: visible !important;
}

.search-result-form .search-result-button svg {
  width: 14px !important;
  height: 14px !important;
  min-width: 14px !important;
  min-height: 14px !important;
  color: #333 !important;
  fill: #333 !important;
  display: block !important;
  flex-shrink: 0 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.search-result-form .search-result-button svg path {
  fill: currentColor !important;
}

.search-result-form .search-result-button:hover {
  opacity: 0.7 !important;
}

/* モバイルメニュー */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mobile-menu-header {
  background: #fff;
  padding: 16px;
  display: flex;
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-header {
  transform: translateX(0);
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  color: #333;
  cursor: pointer;
  padding: 0;
}

.mobile-menu-close svg {
  width: 24px;
  height: 24px;
}

.mobile-menu-search {
  background: transparent;
  padding: 16px;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu.active .mobile-menu-search {
  transform: translateX(0);
}

.mobile-menu-search form {
  display: flex;
  align-items: center;
  background: #f5f7fa;
  border: 1px solid #e1e4e8;
  border-radius: 4px;
  padding: 10px 12px;
}

.mobile-menu-search input[type="text"] {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: #333;
}

.mobile-menu-search button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.mobile-menu-search button svg {
  width: 18px;
  height: 18px;
  color: #333;
}

/* 背景とのコントラスト確保：ヘッダー下影を極薄で */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
}
  
  /* スクロール時にヘッダーを上に隠す */
  .site-header.hidden {
    transform: translateY(-100%);
  }

  @media (max-width: 1023px) {
    .site-action .header-search-icon-sp {
      display: flex !important;
    }
  }
  
  /* ハンバーガーメニューを非表示 */
  .hamburger-menu {
    display: none !important;
  }
  
  /* モバイルメニューも非表示 */
  .mobile-menu {
    display: none !important;
  }
  
  /* スクロール時の検索アイコン */
  .search-icon-scroll {
    position: fixed;
    top: 12px;
    right: 10px;
    width: 36px;
    height: 36px;
    background: #fff;
    border: 0px;
    border-radius: 50%;
    display: none !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    transition: all 0.3s ease;
  }
  
  .search-icon-scroll svg {
    width: 18px;
    height: 18px;
    color: #127987;
  }
  
  .search-icon-scroll:hover {
    background: #f5f7fa;
  }
  
  /* SP専用検索エリア */
  .sp-search-area {
    display: block;
    padding: 0 16px 4px 16px;
    background: transparent;
  }
  .sp-search-area.is-open {
    margin-top: 4.75rem; /* 検索表示時は下余白(1rem)と揃えて上下バランスを取る */
  }
  
  .sp-search-area input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    color: #333;
  }
  
  .sp-search-area input[type="text"]::placeholder {
    color: #999;
  }
  
  .sp-search-area button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
  }
  
  .sp-search-area button svg {
    width: 20px;
    height: 20px;
    color: #666;
  }
  
  /* カルーセル高さ調整 */
  #header-modules {
    height: var(--carousel-height-mobile) !important;
  }
/* カルーセルエリア全体のスタイル */
#header-modules {
  margin-bottom: 1rem;
  height: var(--carousel-height-desktop);
}

  .site-header {
    padding: 12px 0;
    height: var(--header-height);
    transition: transform 0.3s ease;
  }

  .site-logo {
    flex: 0 0 auto;
  }
  
  .site-logo img {
    height: 50px !important;
    max-height: 50px;
  }
  
  .sp-search-area form {
    display: flex;
    align-items: center;
    background: #f5f7fa;
    border-radius: 30px;
    padding: .6rem .6rem;
  }

  .sp-search-area input[type="text"] {
    font-size: var(--font-size-input);
  }
  
  .sp-search-area button svg {
    width: 18px;
    height: 18px;
  }

  #header-modules {
    height: auto !important; 
  }

#header-modules .hatena-module-body {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 5;
  margin-top: 20px;
}

/* iframeカルーセル時：absolute をやめドキュメントフローに（二重スクロール・重なり防止・下の余白は控えめに） */
body.page-index #header-modules:has(.carousel-embed-iframe-wrapper) {
  position: relative !important;
  height: auto !important;
  min-height: 0 !important;
  margin-bottom: 1rem !important;
}
body.page-index #header-modules .hatena-module-body:has(.carousel-embed-iframe-wrapper) {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100% !important;
  z-index: auto !important;
  margin-top: 0 !important;
}
/* iframeを包む .hatena-module.hatena-module-html の高さを中身（iframe）のみに（420pxの二重化防止） */
body.page-index #header-modules .hatena-module.hatena-module-html:has(.carousel-embed-iframe-wrapper),
body.page-index #header-modules .hatena-module.hatena-module-html:has(.carousel-embed-iframe-wrapper) .hatena-module-body {
  min-height: 0 !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}
/* iframeラッパーは中身の高さのみ（余計な高さを出さない） */
body.page-index .carousel-embed-iframe-wrapper {
  line-height: 0 !important;
  font-size: 0 !important;
}
body.page-index .carousel-embed-iframe-wrapper iframe {
  vertical-align: top !important;
  min-height: 300px !important;
}
/* SP：画面幅に連動して高さを可変。最小500pxでページネーションが切れないように */
@media (max-width: 768px) {
  body.page-index .carousel-embed-iframe-wrapper iframe {
    min-height: 500px !important;
    height: clamp(500px, calc(500px + (100vw - 360px) * 100 / 408), 600px) !important;
  }
}

/* ※メディアクエリはファイル末尾に集約 */

#top-editarea {
    overflow-x: hidden;
}
.hatena-module-custom-side-pickup .recent-entries.hatena-urllist.urllist-with-thumbnails {
    display: block; /* グリッドを上書きして縦積みに */
    grid-template-columns: none; /* グリッドレイアウトを無効化 */
    padding: 0;
    margin: 0;
}

.hatena-module-custom-side-pickup .urllist-item.recent-entries-item {
    min-width: 0; /* 最小幅の制約を解除 */
    width: 100%; /* 親要素の幅いっぱいに広げる */
    max-width: 100%; /* 最大幅 */
}
/* 768px以上：タブレット（記事カード・レイアウト）。カルーセルCSSはヘッダーに集約 */
@media (min-width: 768px) {
    .hatena-module-custom-social-link {
        display: block !important;
    }
    body.page-index #content {
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        margin-top: 80px !important; /* カルーセルがヘッダーに重ならないよう768〜1023・1024以上で80px統一 */
        padding: 0 !important;
    }
    #content-inner {
        padding: 0 40px;
        gap: 32px;
    }
    #wrapper {
        margin: 0;
        padding: 0;
    }
    .urllist-item.recent-entries-item .urllist-title-link,
    .urllist-item.related-entries-item .urllist-title-link {
        font-size: 1rem;
    }
    .recent-entries.hatena-urllist.urllist-with-thumbnails:not(#box2 *),
    .related-entries.hatena-urllist.urllist-with-thumbnails:not(#box2 *) {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .urllist-item.recent-entries-item,
    .urllist-item.related-entries-item {
        background: #fff !important;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.08) !important;
        transition: transform 0.2s ease, box-shadow 0.2s ease !important;
        border-radius: 4px !important;
        width: 100%;
    }
    .urllist-item.recent-entries-item:hover,
    .urllist-item.related-entries-item:hover {
        transform: translateY(-4px) !important;
        box-shadow: 0 4px 16px rgba(0,0,0,0.12) !important;
    }
    .urllist-item.recent-entries-item .urllist-item-inner.recent-entries-item-inner,
    .urllist-item.related-entries-item .urllist-item-inner.related-entries-item-inner {
        display: block !important;
    }
    .urllist-item.recent-entries-item .urllist-image-link,
    .urllist-item.related-entries-item .urllist-image-link {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 8 / 5 !important;
    }
}

/* 768px〜1023pxのみ：サイドバー内ピックアップを2カラム（1024px以上では適用しない） */
@media (min-width: 768px) and (max-width: 1023px) {
    #box2 .hatena-module-custom-side-pickup .recent-entries.hatena-urllist.urllist-with-thumbnails {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
}

/* 1024px以上：二重スクロール防止（テーマの #box2 の max-height / overflow-y:auto を無効化） */
@media (min-width: 1024px) {
    #box2 {
        max-height: none !important;
        overflow-y: visible !important;
    }
}