/* <system section="theme" selected="smooth"> */
@charset "UTF-8";/*!
Theme: Smooth
Author: Hatena Blog Team
Responsive: yes
*//*!
 * Bootstrap Reboot v4.2.1 (https://getbootstrap.com/)
 * Copyright 2011-2018 The Bootstrap Authors
 * Copyright 2011-2018 Twitter, Inc.
 * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
 * Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
 */*,*:before,*:after{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[title],abbr[data-original-title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):hover,a:not([href]):not([tabindex]):focus{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}pre,code,kbd,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}button,[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{padding:0;border-style:none}input[type=radio],input[type=checkbox]{box-sizing:border-box;padding:0}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}html,body{background:#f9fafb;font-family:helvetica,Segoe UI,游ゴシック体,YuGothic,游ゴシック Medium,Yu Gothic Medium,游ゴシック,Yu Gothic,メイリオ,Meiryo,sans-serif;color:#293030}html{line-height:1}body{font-size:17px;line-height:1.6}img{vertical-align:baseline}a{color:#293030}a:hover{color:#586767;transition:all .3s}.date{margin:0 0 .7em;font-size:.9rem}.date a{color:#6f8383}.date a:hover{color:#a5b3b3}.date-last-updated{color:#6f8383;font-size:.9rem}#globalheader-container{position:sticky;top:0;background:#f9fafb}#container{word-wrap:break-word}#blog-title{max-width:1280px;margin:auto;padding:4% 5%;text-align:center}#title{font-size:150%;font-family:Times New Roman,游明朝体,YuMincho,游明朝,Yu Mincho,serif;font-weight:400}@media(min-width:768px){#title{font-size:215%}}#blog-description{font-size:90%;font-weight:400}#content-inner{width:100%;display:flex;flex-direction:column}@media(min-width:768px){#content-inner{flex-direction:row;margin:auto;padding:0 20px}}@media(min-width:1200px){#content-inner{width:1200px}}#wrapper{flex:0 0 100%;max-width:100%}@media(min-width:768px){#wrapper{flex:0 0 75%;max-width:75%}}@media(min-width:1020px){#main{padding:0 3% 0 0}}.header-image-enable #blog-title,.header-image-only #blog-title{padding:0 0 1.5em}@media(min-width:1200px){.header-image-enable #blog-title,.header-image-only #blog-title{width:1160px}}.header-image-enable #blog-title #blog-title-inner,.header-image-only #blog-title #blog-title-inner{display:flex;align-items:center;justify-content:center;height:50vw;max-height:200px}@media(min-width:1200px){.header-image-enable #blog-title #blog-title-inner,.header-image-only #blog-title #blog-title-inner{background-size:100%}}.header-image-enable #blog-title-content,.header-image-only #blog-title-content{margin:0 .5em}.breadcrumb{font-size:.9rem}.categories{margin-bottom:2em}.categories a{display:inline-block;background:#e9f0f2;margin:0 .3em 0 0;padding:0 10px;font-size:12px}.pager{text-align:center;margin:3em .8em}@media(min-width:1020px){.pager{margin:0}}.pager a{display:inline-block;width:100%;background:#eff1f5;padding:.7em 1.2em;border:none;font-weight:400;font-size:.9rem;color:#293030}.pager a:hover{background-color:#e9ecf1;text-decoration:none}.pager .pager-next,.pager .pager-prev{width:100%;padding:.5em 0}.pager .pager-prev+.pager-next{margin-left:1em;padding-left:1em}@media(min-width:768px){.pager .pager-prev+.pager-next{margin-left:1.5em;padding-left:1.5em}}.pager.permalink{display:flex;justify-content:center;align-items:center;text-align:center}.hatena-urllist{padding-left:0;list-style:none}.hatena-urllist li{border-top:1px dotted #cfd8d8;padding-top:10px;padding-bottom:10px}.hatena-urllist .archive-module-year,.hatena-urllist .archive-module-month{line-height:2}.hatena-urllist .urllist-date-link a{color:#6f8383}.hatena-urllist .urllist-category-link{display:inline-block;background:#e9f0f2;margin:.5em .3em 0 0;padding:3px 10px;font-size:12px;line-height:1.3}.hatena-urllist .urllist-category-link:hover{background:#d9e5e9;text-decoration:none;transition:background .3s}.hatena-urllist .urllist-entry-body{margin-top:10px}.hatena-module{margin-bottom:3em;padding-left:20px;padding-right:20px;font-size:.85rem}.hatena-module:last-child{margin-bottom:0}.hatena-module-title{margin-bottom:12px;font-family:Times New Roman,游明朝体,YuMincho,游明朝,Yu Mincho,serif;font-size:20px}.hatena-module-body{font-size:15px}.hatena-module-body .urllist-title-link{font-size:100%}.hatena-module-body .archive-module-button{display:inline-block;width:15px;height:15px}.hatena-module-body .archive-module-hide-button,.hatena-module-body .archive-module-show-button{position:absolute;overflow:hidden;width:15px;height:15px;text-indent:-15px}.hatena-module-body .archive-module-hide-button:after,.hatena-module-body .archive-module-show-button:after{content:"";top:50%;display:inline-block;position:absolute;width:8px;height:8px;margin-top:-.1em;border-top:1px solid #6f8383;border-right:1px solid #6f8383}.hatena-module-body .archive-module-hide-button{transform:rotate(135deg);margin-top:.2em}.hatena-module-body .archive-module-show-button{transform:rotate(45deg);margin-top:.2em}@media(min-width:481px){.search-result-form{margin:0 1em}}.search-result+p{background:#fff;border:1px solid #f0f1f1;margin:0 0 3em;padding:8% 0;font-weight:700;text-align:center}.search-form,.search-result-form{position:relative;width:100%;background:#fff;margin:auto;border:1px solid #eee;box-sizing:border-box}.search-form:hover,.search-result-form:hover{border-color:#ddd}.search-module-input,.search-result-form .search-result-input{width:90%;height:30px;padding:5px;background:#fff;border:none;outline:none}.search-module-input::-webkit-input-placeholder,.search-result-form .search-result-input::-webkit-input-placeholder,.search-module-input::-placeholder,.search-result-form .search-result-input::-placeholder{color:#9faba9}.search-module-button,.search-result-form .search-result-button{width:20px;height:20px;background:transparent url(https://cdn.blog.st-hatena.com/images/theme/search@2x.png?version=d422509bd0b39c8cdd48718768287a) no-repeat right center;background-size:20px 20px;border:none;outline:none;text-indent:-9999px;position:absolute;top:5px;right:5px;opacity:.5;cursor:pointer}.search-module-button:hover,.search-result-form .search-result-button:hover{opacity:.85}#top-box{margin:0 auto;padding:0 10px}@media(min-width:768px){#top-box{padding:0 20px}}@media(min-width:1200px){#top-box{max-width:1200px}}.entry{background:#fff;border:1px solid #f0f1f1;margin-bottom:2em;padding:8% 5%}@media(min-width:768px){.entry{padding:8% 9% 5%}}.entry-header{position:relative;margin-bottom:1.5em}@media(min-width:481px){.entry-header{margin-bottom:3em}}.entry-header-menu{position:absolute;top:0;right:0;margin-bottom:1em}.entry-header-menu a{background:#f9fafb;border:1px solid #cfd8d8;padding:5px 10px;font-size:.9rem}.entry-header-menu a:hover{background:#f3f5f7;text-decoration:none}.entry-title{margin-bottom:.5em;font-family:Times New Roman,游明朝体,YuMincho,游明朝,Yu Mincho,serif;font-size:130%;font-weight:400;line-height:1.5}@media(min-width:768px){.entry-title{font-size:190%}}.entry-content{line-height:1.85}.entry-content a{color:#119e4d}.entry-content a:hover{color:#0c7037}.entry-content a.keyword{-webkit-text-decoration:underline dotted #cfd8d8;text-decoration:underline dotted #cfd8d8}.entry-content a.keyword:hover{color:#586767;-webkit-text-decoration:underline dotted #ffffff;text-decoration:underline dotted #ffffff}.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:1.5em 0 .8em;line-height:1.3}.entry-content h1{padding-bottom:15px;font-size:190%;border-bottom:1px solid #cfd8d8}.entry-content h2{font-size:165%}.entry-content h3{padding-bottom:10px;font-size:140%;border-bottom:1px solid #cfd8d8}.entry-content h4{font-size:130%}.entry-content h5{padding-bottom:10px;font-size:120%;border-bottom:1px solid #cfd8d8}.entry-content h6{font-size:100%}.entry-content ul,.entry-content ol,.entry-content dd{margin:0 0 1em 1.5em;padding:0;line-height:1.7}.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 dl{margin-top:2em}.entry-content dl dt{margin-bottom:.8em}.entry-content p{margin:0 0 .7em}.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6,.entry-content .footnote-number{scroll-margin-top:56px}.entry-content blockquote{position:relative;padding:9px 15px 9px 40px;border:1px solid #f0f1f1}@media(min-width:1020px){.entry-content blockquote{padding:20px 20px 20px 60px}}.entry-content blockquote:before{display:inline-block;position:absolute;top:10px;left:10px;vertical-align:middle;content:"“";font-size:40px;font-family:Times New Roman,游明朝体,YuMincho,游明朝,Yu Mincho,serif;color:#6f8383;line-height:1}@media(min-width:1020px){.entry-content blockquote:before{left:15px;font-size:70px}}.entry-content blockquote p{margin-bottom:0}.entry-content blockquote cite{display:block;margin-top:.5rem;text-align:right;font-size:85%;line-height:1.3}.entry-content table{border-collapse:collapse;border-spacing:0;border-bottom:1em;margin-bottom:1em;width:100%;overflow:auto;display:block}.entry-content table th,.entry-content table td{border:1px solid #f0f1f1;padding:5px 10px}.entry-content table th{background:#f9fafb}.entry-content pre,.entry-content code{font-family:Monaco,Consolas,Courier New,Courier,monospace,sans-serif}.entry-content pre{background:#293030;border:none;white-space:pre-wrap;text-overflow:ellipsis ellipsis;font-size:100%;font-size:.9rem;padding:10px;color:#ccc}@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 .1em;padding:0 5px;border-radius:3px}.entry-content .table-of-contents{background:#f9fafb;margin-left:0;padding:15px 10px 15px 35px;font-size:16px}@media(min-width:768px){.entry-content .table-of-contents{padding:20px 20px 20px 50px}}.entry-footer{margin-top:1em}.entry-footer-modules .hatena-module{padding:0}.entry-footer-section{margin-bottom:8px;color:#6f8383;font-size:.9rem}.entry-footer-section a{color:#6f8383}.entry-footer-ad{margin-left:-9%;margin-right:-9%}.comment-box{margin:0 -5%;padding:5% 5% 0;border-top:1px solid #f0f1f1}@media(min-width:768px){.comment-box{margin:0 -11%;padding:20px 11% 0}}.comment-box .leave-comment-title{background:#f9fafb;border:1px solid #cfd8d8;padding:.5rem 1rem;font-size:.9rem}.comment-box .leave-comment-title:hover{background:#f3f5f7}.comment-box .comment{list-style:none;padding-left:0}.comment-box .comment a{color:#119e4d}.comment-box .comment a:hover{color:#0c7037}.comment-box .comment .comment-user-id{font-size:14px;font-weight:700}.comment-box .comment .entry-comment{padding:20px 0 0;border-top:1px solid #f0f1ff;color:#6f8383}.comment-box .comment .entry-comment:first-child{padding-top:0;border-top:none}.comment-box .comment .entry-comment .comment-content{word-wrap:break-word}.comment-box .comment .entry-comment .comment-content p{font-size:14px}.comment-box .comment .entry-comment time{font-size:12px}.comment-box .comment .read-more-comments{font-size:14px}@media(min-width:1020px){.comment-box .comment .read-more-comments{margin-right:25px}}.comment-box .comment .read-more-comments a{position:relative;display:inline-block}.comment-box .comment .read-more-comments a:after{content:"";top:20%;left:-20px;display:inline-block;position:absolute;width:8px;height:8px;border-top:1px solid #119e4d;border-right:1px solid #119e4d;transform:rotate(135deg);margin-top:1px}#box2{flex:0 0 100%;max-width:100%;background:#fff3;padding:1em 0}@media(min-width:768px){#box2{flex:0 0 25%;max-width:25%}}#box2 .hatena-urllist>li:last-child{border-bottom:1px dotted #cfd8d8}.hatena-module-profile .profile-icon-link{display:inline;float:left;margin-right:.7em}.hatena-module-profile .profile-icon-link .profile-icon{border-radius:400px}@media(min-width:1020px){.hatena-module-profile .profile-icon-link{display:block;float:none;margin-right:0}}.hatena-module-profile .id{display:block}.hatena-module-profile .id a{color:#119e4d;font-weight:700}.hatena-module-profile .id a:hover{color:#0c7037}.hatena-module-profile .profile-description p{font-size:80%}.archive-module-calendar .calendar-day a{color:#119e4d;font-weight:700}.archive-module-calendar .calendar-day a:hover{color:#0c7037}.hatena-module-recent-comments .user-id span{font-size:12px;opacity:.7}#footer{background:#fff;margin-top:2em;padding-top:2rem;padding-bottom:2rem;text-align:center;font-size:.9rem;color:#6f8383}#footer a{color:#6f8383}#footer p{margin:.5em auto}.archive-header-category{margin-bottom:.3em}.page-archive .archive-heading{margin:.5em .7em 1.3em;line-height:1.5}@media(min-width:1020px){.page-archive .archive-heading{margin:.5em 0 1.3em}}.page-archive .archive-entries-sort{margin-left:1.2em}@media(min-width:768px){.page-archive .archive-entries-sort{margin-left:0}}.page-archive .archive-entry{background:#fff;border:1px solid #f0f1f1;margin-bottom:30px;padding:9% 6% 6%}@media(min-width:768px){.page-archive .archive-entry{padding:6%}}@media(min-width:768px){.page-archive .archive-entry .entry-title{font-size:150%}}

/* </system> */

/* To Top */
.toTop-nav {
  position: fixed;
  bottom: 10px;
  right: 10px;
  display: -webkit-flex;
  display: flex;
  padding: 0;
  margin: 0;
  z-index: 999; }
  .toTop-nav li {
    list-style-type: none;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    text-align: center; }
    .toTop-nav li:first-child {
      margin-right: 10px; }
    .toTop-nav li a {
      display: block;
      width: 50px;
      height: 50px;
      font-size: 30px;
      line-height: 50px; }
      .toTop-nav li a {
        color: #fff;
        text-decoration: none; }
        .toTop-nav li a:visited {
          color: #fff; }
        .toTop-nav li a:hover {
          color: #fff;
          text-decoration: underline; }
        .toTop-nav li a:active, .toTop-nav li a:focus {
          color: #fff; }
      .toTop-nav li a:hover {
        text-decoration: none; }



/* =========================================================
   妖怪DBトップ：固定記事方式
   ========================================================= */

/*
 * #yokai-home は固定記事本文の中に置く。
 * 旧方式のように #content 全体を消さない。
 */
#yokai-home {
  display: block !important;
}

/* トップ専用JSが動いたときだけ、はてな標準ヘッダ等を隠す */
body.page-index.ydh-home-ready #blog-title,
body.page-index.ydh-home-ready #globalheader-container,
body.page-index.ydh-home-ready .blog-controlls,
body.page-index.ydh-home-ready #footer {
  display: none !important;
}

body.page-index.ydh-home-ready,
body.page-index.ydh-home-ready #container,
body.page-index.ydh-home-ready #container-inner,
body.page-index.ydh-home-ready #content,
body.page-index.ydh-home-ready #content-inner,
body.page-index.ydh-home-ready #main,
body.page-index.ydh-home-ready #main-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body.page-index.ydh-home-ready {
  background: #f4f7f8;
  scroll-behavior: smooth;
}


.ydh-blog-page,
.ydh-blog-page * { box-sizing: border-box; }
.ydh-blog-page { width: 100%; margin: 0; }
.ydh-blog-page a { color: inherit; text-decoration: none; }
.ydh-blog-page button,
.ydh-blog-page input,
.ydh-blog-page select { font: inherit; }
.ydh-blog-page button,
.ydh-blog-page select { cursor: pointer; }
.ydh-sr-only {
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.ydh-loading {
  grid-column: 1 / -1;
  min-height: 150px;
  display: grid;
  place-items: center;
  margin: 0;
  color: #6c767a;
  background: #fff;
  border: 1px solid #dce2e4;
  font-size: 12px;
}

/* Japanese blog-style homepage */
.ydh-blog-page {
  --ydh-ink: #30373a;
  --ydh-muted: #6c767a;
  --ydh-blue: #2f6279;
  --ydh-blue-dark: #234b5e;
  --ydh-pale-blue: #e9f0f2;
  --ydh-line: #dce2e4;
  --ydh-page: #f4f7f8;
  --ydh-paper: #ffffff;
  min-height: 100vh;
  background: var(--ydh-page);
  color: var(--ydh-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.ydh-blog-page ::selection { background: #c9dde4; color: var(--ydh-ink); }
.ydh-blog-page a:focus-visible,
.ydh-blog-page button:focus-visible,
.ydh-blog-page input:focus-visible,
.ydh-blog-page select:focus-visible {
  outline: 3px solid rgba(47, 98, 121, .28);
  outline-offset: 3px;
}

.ydh-blog-header {
  min-height: 72px;
  padding: 0 max(24px, calc((100vw - 1360px) / 2));
  display: grid;
  grid-template-columns: minmax(255px, 1fr) auto minmax(145px, 1fr);
  align-items: center;
  gap: 30px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--ydh-line);
  box-shadow: 0 3px 15px rgba(30, 50, 58, .04);
}

.ydh-blog-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.ydh-blog-brand > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ydh-blog-brand strong,
.ydh-footer-brand strong {
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .06em;
}
.ydh-blog-brand small { color: #899296; font-size: 9px; letter-spacing: .18em; }
.ydh-blog-seal {
  width: 39px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--ydh-blue);
  color: var(--ydh-blue);
  font: 500 22px/1 "Yu Mincho", serif;
}

.ydh-blog-nav { display: flex; justify-content: center; gap: 28px; }
.ydh-blog-nav a {
  padding: 27px 0 24px;
  position: relative;
  color: #566064;
  font-size: 11px;
  letter-spacing: .05em;
}
.ydh-blog-nav a::after {
  content: "";
  height: 2px;
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -1px;
  background: var(--ydh-blue);
  transition: right .2s ease;
}
.ydh-blog-nav a:hover { color: var(--ydh-blue); }
.ydh-blog-nav a:hover::after { right: 0; }

.ydh-current-blog {
  justify-self: end;
  padding: 9px 0;
  color: var(--ydh-blue);
  border-bottom: 1px solid #afc5ce;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .08em;
}

.ydh-blog-hero {
  min-height: 250px;
  display: grid;
  place-items: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: white;
  background-color: #243c43;
  background-image: url("https://cdn-ak.f.st-hatena.com/images/fotolife/c/cryptchallenger/20260315/20260315201303.png");
  background-position: center 48%;
  background-size: cover;
}
.ydh-blog-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(21, 34, 37, .55), rgba(21, 34, 37, .3), rgba(21, 34, 37, .58));
}
.ydh-blog-hero::after {
  content: "";
  position: absolute;
  inset: 13px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, .35);
}
.ydh-blog-hero-copy { padding: 38px 22px; text-align: center; text-shadow: 0 2px 18px rgba(0, 0, 0, .48); }
.ydh-blog-hero-copy > p { margin: 0 0 14px; font-size: 9px; font-weight: 700; letter-spacing: .35em; }
.ydh-blog-hero h1 {
  margin: 0;
  font: 400 clamp(38px, 4.7vw, 62px)/1.1 "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: .08em;
}
.ydh-blog-hero h1 span { margin-left: .2em; }
.ydh-blog-hero h2 { margin: 16px 0 0; font-size: 13px; font-weight: 600; letter-spacing: .09em; }

.ydh-blog-shell { width: min(1360px, calc(100% - 48px)); margin: 42px auto 0; }
.ydh-blog-shell section { scroll-margin-top: 96px; }
.ydh-paper-panel { background: var(--ydh-paper); border: 1px solid var(--ydh-line); }

.ydh-search-section { padding: clamp(28px, 4vw, 48px); }
.ydh-section-title { display: flex; align-items: center; gap: 18px; }
.ydh-section-title > span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--ydh-blue);
  color: white;
  font: 400 13px/1 Georgia, serif;
}
.ydh-section-title p,
.ydh-content-heading > div > p {
  margin: 0 0 6px;
  color: var(--ydh-blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .17em;
}
.ydh-section-title h2,
.ydh-content-heading h2 {
  margin: 0;
  font: 500 clamp(28px, 3.4vw, 42px)/1.25 "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: .04em;
}
.ydh-section-lead { max-width: 780px; margin: 24px 0; color: var(--ydh-muted); font-size: 13px; line-height: 1.9; }

.ydh-search-form {
  min-height: 68px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 7px 7px 7px 20px;
  border: 2px solid var(--ydh-blue);
  background: white;
}
.ydh-search-icon { width: 16px; height: 16px; position: relative; display: block; border: 2px solid var(--ydh-blue); border-radius: 50%; }
.ydh-search-icon::after { content: ""; width: 7px; height: 2px; position: absolute; right: -6px; bottom: -3px; transform: rotate(45deg); background: var(--ydh-blue); }
.ydh-search-form input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ydh-ink); font-size: 15px; }
.ydh-search-form input::placeholder { color: #8b969a; }
.ydh-search-form button {
  align-self: stretch;
  min-width: 126px;
  border: 0;
  background: var(--ydh-blue);
  color: white;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  transition: background .2s ease;
}
.ydh-search-form button:hover { background: var(--ydh-blue-dark); }

.ydh-filter-area { margin-top: 24px; padding: 24px; background: #f3f6f7; border: 1px solid var(--ydh-line); }
.ydh-filter-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 17px; }
.ydh-filter-heading h3 { margin: 0 0 5px; font-size: 14px; }
.ydh-filter-heading p { margin: 0; color: var(--ydh-muted); font-size: 11px; }
.ydh-filter-heading button { padding: 5px 0; border: 0; border-bottom: 1px solid #aab8bd; background: transparent; color: #657176; font-size: 10px; }
.ydh-filter-controls { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(180px, 1fr) minmax(120px, .55fr); gap: 14px; }
.ydh-filter-controls label { display: flex; flex-direction: column; gap: 7px; }
.ydh-filter-controls label > span { color: #596469; font-size: 10px; font-weight: 700; }
.ydh-filter-controls select { min-height: 48px; padding: 0 14px; border: 1px solid #c8d1d4; border-radius: 0; background: white; color: var(--ydh-ink); }
.ydh-filter-summary { min-height: 48px; display: flex; align-items: baseline; justify-content: center; gap: 6px; align-self: end; border-left: 1px solid #ccd5d8; }
.ydh-filter-summary strong { color: var(--ydh-blue); font: 500 29px/1 Georgia, serif; }
.ydh-filter-summary span { color: #687479; font-size: 10px; }

.ydh-representative-section,
.ydh-index-section { padding: 78px 0 86px; }
.ydh-roundup-section { margin: 0 calc(50% - 50vw); padding: 78px max(24px, calc((100vw - 1360px) / 2)) 86px; }
.ydh-content-heading { display: grid; grid-template-columns: minmax(0, .85fr) minmax(280px, .5fr); align-items: end; gap: 50px; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid var(--ydh-blue); }
.ydh-content-heading > p { margin: 0 0 5px; color: var(--ydh-muted); font-size: 12px; line-height: 1.8; }
.ydh-roundup-control { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ydh-roundup-control p { margin: 0; color: var(--ydh-muted); font-size: 12px; line-height: 1.8; }
.ydh-roundup-control button {
  padding: 9px 13px;
  border: 1px solid #9db4bd;
  background: transparent;
  color: var(--ydh-blue);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .06em;
  transition: background .2s ease, color .2s ease;
}
.ydh-roundup-control button:hover { background: var(--ydh-blue); color: white; }
.ydh-roundup-control button span { margin-left: 4px; font-size: 13px; }

.ydh-article-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.ydh-article-card {
  min-height: 274px;
  display: grid;
  grid-template-columns: 142px 1fr;
  position: relative;
  overflow: hidden;
  background: white;
  border: 1px solid var(--ydh-line);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ydh-article-card:hover { transform: translateY(-3px); border-color: #b7c8ce; box-shadow: 0 13px 28px rgba(35, 60, 69, .1); }
.ydh-article-visual {
  min-height: 100%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background-color: #1f363e;
  background-image: radial-gradient(circle at 25% 25%, rgba(113, 151, 151, .5), transparent 38%), linear-gradient(150deg, rgba(218, 137, 76, .27), transparent 55%);
}
.ydh-article-visual::before,
.ydh-article-visual::after { content: ""; position: absolute; width: 110px; height: 110px; border: 1px solid rgba(255, 255, 255, .11); border-radius: 50%; }
.ydh-article-visual::after { width: 74px; height: 74px; }
.ydh-article-visual > span { position: relative; z-index: 1; color: rgba(255, 255, 255, .9); font: 400 58px/1 "Yu Mincho", serif; text-shadow: 0 3px 12px rgba(0, 0, 0, .5); }
.ydh-article-visual > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  z-index: 2;
  object-fit: cover;
  object-position: center;
  transition: transform .35s ease, filter .35s ease;
}
.ydh-article-card:hover .ydh-article-visual > img { transform: scale(1.04); filter: contrast(1.03); }
.ydh-article-copy { padding: 20px 21px 18px; display: flex; flex-direction: column; min-width: 0; }
.ydh-tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.ydh-tag-row span { padding: 4px 7px; background: var(--ydh-pale-blue); color: #52646b; font-size: 8px; }
.ydh-reading { margin: 15px 0 3px; color: var(--ydh-blue); font-size: 10px; letter-spacing: .05em; }
.ydh-reading small { margin-left: 5px; color: #8a9498; font-family: Georgia, serif; font-size: 9px; text-transform: uppercase; }
.ydh-article-card h3 { margin: 0 0 8px; font: 500 27px/1.25 "Yu Mincho", serif; letter-spacing: .02em; }
.ydh-summary { margin: 0; color: #667176; font-size: 10px; line-height: 1.75; }
.ydh-traits { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 14px; color: #7d898d; font-size: 8px; }
.ydh-article-copy > b { margin-top: auto; align-self: flex-start; color: var(--ydh-blue); font-size: 9px; letter-spacing: .08em; }
.ydh-article-copy > b span { margin-left: 6px; }

.ydh-empty-state { min-height: 260px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 25px; padding: 45px; background: white; border: 1px solid var(--ydh-line); }
.ydh-empty-state > span { color: #cbd6da; font: 400 72px/1 "Yu Mincho", serif; }
.ydh-empty-state h3 { margin: 0 0 8px; font: 500 23px/1.4 "Yu Mincho", serif; }
.ydh-empty-state p { margin: 0 0 18px; color: var(--ydh-muted); font-size: 11px; }
.ydh-empty-state button { padding: 11px 16px; border: 0; background: var(--ydh-blue); color: white; font-size: 10px; }

.ydh-roundup-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ydh-line); border-left: 1px solid var(--ydh-line); }
.ydh-roundup-card { min-height: 216px; display: grid; grid-template-columns: 42px 1fr auto; gap: 17px; padding: 27px; border-right: 1px solid var(--ydh-line); border-bottom: 1px solid var(--ydh-line); transition: background .2s ease; }
.ydh-roundup-card:hover { background: #f1f5f6; }
.ydh-roundup-number { color: var(--ydh-blue); font: 400 12px/1.4 Georgia, serif; }
.ydh-roundup-card div > p { margin: 0 0 10px; color: var(--ydh-blue); font-size: 9px; font-weight: 700; }
.ydh-roundup-card h3 { margin: 0 0 12px; font: 500 21px/1.55 "Yu Mincho", serif; }
.ydh-roundup-card div > span { color: var(--ydh-muted); font-size: 10px; line-height: 1.75; }
.ydh-roundup-card > b { align-self: center; color: var(--ydh-blue); font-size: 18px; }

.ydh-index-box { overflow: hidden; background: white; border: 1px solid var(--ydh-line); }
.ydh-index-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--ydh-line); }
.ydh-index-tabs button { min-height: 62px; border: 0; border-right: 1px solid var(--ydh-line); background: #f3f6f7; color: #647075; font-size: 13px; font-weight: 700; letter-spacing: .09em; }
.ydh-index-tabs button:last-child { border-right: 0; }
.ydh-index-tabs button[aria-selected="true"] { background: var(--ydh-blue); color: white; }
.ydh-index-intro { padding: 27px 30px 20px; }
.ydh-index-intro h3 { margin: 0 0 5px; font: 500 24px/1.4 "Yu Mincho", serif; }
.ydh-index-intro p { margin: 0; color: var(--ydh-muted); font-size: 11px; }
.ydh-index-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 0 30px 30px; }
.ydh-index-grid.is-region,
.ydh-index-grid.is-attribute { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.ydh-index-link { min-height: 110px; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; padding: 17px; border-right: 1px solid var(--ydh-line); border-bottom: 1px solid var(--ydh-line); }
.ydh-index-link::before { content: ""; width: 3px; position: absolute; left: 0; top: 50%; bottom: 50%; background: var(--ydh-blue); transition: top .2s ease, bottom .2s ease; }
.ydh-index-link:hover { background: #f5f8f9; }
.ydh-index-link:hover::before { top: 0; bottom: 0; }
.ydh-index-link > span { width: 31px; height: 31px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid #c9d6da; color: var(--ydh-blue); font: 500 17px/1 "Yu Mincho", serif; }
.ydh-index-link h4 { margin: 0; font: 500 17px/1.35 "Yu Mincho", serif; }
.ydh-index-link p { margin: 4px 0 0; color: #7c888c; font-size: 8px; line-height: 1.45; }
.ydh-index-link > b { margin-left: auto; color: #9aabad; font-size: 11px; }

.ydh-blog-footer {
  margin: 0;
  padding: 48px max(24px, calc((100vw - 1360px) / 2)) 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: start;
  background: #29373c;
  color: white;
}
.ydh-footer-brand { display: flex; align-items: center; gap: 14px; }
.ydh-footer-brand .ydh-blog-seal { border-color: rgba(255, 255, 255, .7); color: white; }
.ydh-footer-brand p { margin: 7px 0 0; color: #b5c0c4; font-size: 10px; }
.ydh-footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 22px; color: #c5cfd2; font-size: 10px; }
.ydh-footer-links a:hover { color: white; }
.ydh-footer-note { grid-column: 1 / -1; margin: 0; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); color: #8fa0a6; font-size: 9px; }

@media (max-width: 980px) {
  .ydh-blog-header { grid-template-columns: 1fr auto; padding-inline: 24px; }
  .ydh-blog-nav { display: none; }
  .ydh-current-blog { grid-column: 2; }
  .ydh-content-heading { grid-template-columns: 1fr; gap: 13px; }
  .ydh-content-heading > p { max-width: 620px; }
  .ydh-roundup-control { max-width: 620px; }
  .ydh-article-card { grid-template-columns: 120px 1fr; }
  .ydh-index-grid,
  .ydh-index-grid.is-region,
  .ydh-index-grid.is-attribute { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .ydh-blog-header { min-height: 65px; }
  .ydh-blog-brand strong { font-size: 14px; }
  .ydh-blog-brand small { display: none; }
  .ydh-current-blog { font-size: 9px; }
  .ydh-blog-hero { min-height: 220px; }
  .ydh-blog-hero h1 span { display: block; margin: 6px 0 0; }
  .ydh-blog-hero h2 { font-size: 11px; }
  .ydh-blog-shell { width: min(100% - 28px, 620px); margin-top: 24px; }
  .ydh-search-section { padding: 25px 18px; }
  .ydh-search-form { grid-template-columns: 20px 1fr; padding: 12px 14px; }
  .ydh-search-form button { grid-column: 1 / -1; min-height: 45px; }
  .ydh-filter-heading { align-items: end; }
  .ydh-filter-controls { grid-template-columns: 1fr; }
  .ydh-filter-summary { justify-content: flex-start; border-left: 0; border-top: 1px solid #ccd5d8; padding-top: 14px; }
  .ydh-representative-section,
  .ydh-index-section { padding: 58px 0 64px; }
  .ydh-roundup-section { padding-top: 58px; padding-bottom: 64px; }
  .ydh-article-grid,
  .ydh-roundup-list { grid-template-columns: 1fr; }
  .ydh-article-card { grid-template-columns: 112px 1fr; min-height: 268px; }
  .ydh-index-grid,
  .ydh-index-grid.is-region,
  .ydh-index-grid.is-attribute { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 16px 18px; }
  .ydh-index-intro { padding-inline: 18px; }
  .ydh-index-link { min-height: 96px; padding: 13px; }
  .ydh-blog-footer { grid-template-columns: 1fr; }
  .ydh-footer-links { justify-content: flex-start; }
}

@media (max-width: 470px) {
  .ydh-blog-header { padding-inline: 15px; }
  .ydh-blog-seal { width: 34px; font-size: 19px; }
  .ydh-current-blog { border-bottom: 0; }
  .ydh-current-blog span { display: none; }
  .ydh-blog-hero { min-height: 205px; }
  .ydh-blog-hero::after { inset: 8px; }
  .ydh-blog-hero-copy > p { letter-spacing: .22em; }
  .ydh-blog-hero h1 { font-size: 35px; }
  .ydh-section-title { align-items: flex-start; }
  .ydh-section-title > span { width: 42px; height: 42px; }
  .ydh-section-lead { font-size: 12px; }
  .ydh-filter-heading { display: block; }
  .ydh-filter-heading button { margin-top: 11px; }
  .ydh-article-card { grid-template-columns: 88px 1fr; }
  .ydh-article-copy { padding: 16px 14px; }
  .ydh-article-card h3 { font-size: 24px; }
  .ydh-summary { font-size: 9px; }
  .ydh-roundup-card { grid-template-columns: 30px 1fr auto; gap: 10px; padding: 22px 15px; }
  .ydh-roundup-card h3 { font-size: 18px; }
  .ydh-index-tabs button { min-height: 55px; }
  .ydh-index-link > span { display: none; }
  .ydh-index-link h4 { font-size: 15px; }
}

.ydh-quiz-cta {
  margin-top: 28px;
  padding: 23px 26px;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ydh-line);
  border-left: 4px solid var(--ydh-blue);
  box-shadow: 0 8px 24px rgba(35, 75, 94, .07);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.ydh-quiz-cta:hover {
  transform: translateY(-2px);
  border-color: #b7c8ce;
  border-left-color: var(--ydh-blue);
  box-shadow: 0 13px 28px rgba(35, 60, 69, .11);
}

.ydh-quiz-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ydh-blue);
  color: var(--ydh-blue);
  font: 500 27px/1 "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.ydh-quiz-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ydh-quiz-copy small {
  margin-bottom: 4px;
  color: var(--ydh-blue);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .18em;
}

.ydh-quiz-copy strong {
  color: var(--ydh-ink);
  font: 500 23px/1.35 "Yu Mincho", "Hiragino Mincho ProN", serif;
  letter-spacing: .04em;
}

.ydh-quiz-copy > span {
  margin-top: 5px;
  color: var(--ydh-muted);
  font-size: 10px;
  line-height: 1.7;
}

.ydh-quiz-action {
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  background: var(--ydh-blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  white-space: nowrap;
}

.ydh-quiz-cta:hover .ydh-quiz-action {
  background: var(--ydh-blue-dark);
}

.ydh-quiz-action b {
  font-size: 16px;
  font-weight: 400;
}

@media (max-width: 760px) {
  .ydh-quiz-cta {
    margin-top: 18px;
    padding: 19px 16px;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }

  .ydh-quiz-mark {
    width: 44px;
    height: 44px;
    font-size: 23px;
  }

  .ydh-quiz-copy strong {
    font-size: 20px;
  }

  .ydh-quiz-action {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 2px;
  }
}

#yokai-home button.ydh-filter-summary {
  width: 100%;
  padding: 0 8px;
  border-top: 0;
  border-right: 0;
  border-bottom: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color .2s ease, box-shadow .2s ease;
}

#yokai-home button.ydh-filter-summary:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--ydh-blue);
}

#yokai-home button.ydh-filter-summary:focus-visible {
  outline: 3px solid rgba(47, 98, 121, .28);
  outline-offset: 3px;
}






/* =========================================================
   トップページ
   ========================================================= */

/*
 * 旧方式では #content 全体を消していたため、
 * 固定記事方式では再表示する。
 */
body.page-index #content,
body.page-index.ydh-home-ready #content {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 通常の記事はトップでは表示しない */
body.page-index .entry {
  display: none !important;
}

/* #yokai-home が入っている固定記事だけ表示 */
body.page-index .entry:has(#yokai-home) {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* 固定記事の通常記事用タイトル・日付などを消す */
body.page-index .entry:has(#yokai-home) .entry-header,
body.page-index .entry:has(#yokai-home) .entry-footer {
  display: none !important;
}

/* はてなの通常記事用余白を解除 */
body.page-index .entry:has(#yokai-home) .entry-inner,
body.page-index .entry:has(#yokai-home) .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* メインカラムを全幅に */
body.page-index #main,
body.page-index #main-inner,
body.page-index #content-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* トップでは通常サイドバー不要 */
body.page-index #box2 {
  display: none !important;
}

/* トップのページ送りも不要 */
body.page-index .pager {
  display: none !important;
}


/* =========================================================
   /entry/home
   ========================================================= */

/*
 * 固定記事の個別URLでも、
 * 通常記事の狭いカラムから解放する。
 */
body:not(.page-index):has(#yokai-home) #content,
body:not(.page-index):has(#yokai-home) #content-inner,
body:not(.page-index):has(#yokai-home) #main,
body:not(.page-index):has(#yokai-home) #main-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* home記事だけ通常の記事枠を解除 */
body:not(.page-index) .entry:has(#yokai-home) {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body:not(.page-index) .entry:has(#yokai-home) .entry-inner,
body:not(.page-index) .entry:has(#yokai-home) .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* home記事では通常の記事タイトル・日付・投稿者などを消す */
body:not(.page-index) .entry:has(#yokai-home) .entry-header,
body:not(.page-index) .entry:has(#yokai-home) .entry-footer {
  display: none !important;
}

/* home記事ではサイドバーを消す */
body:not(.page-index):has(#yokai-home) #box2 {
  display: none !important;
}

/* 前後の記事リンクも不要 */
body:not(.page-index):has(#yokai-home) .pager {
  display: none !important;
}

/* =========================================================
   /entry/home：トップと同じ全画面レイアウトにする
   ========================================================= */

body:not(.page-index):has(#yokai-home) #blog-title,
body:not(.page-index):has(#yokai-home) #globalheader-container,
body:not(.page-index):has(#yokai-home) .blog-controlls,
body:not(.page-index):has(#yokai-home) #footer {
  display: none !important;
}

body:not(.page-index):has(#yokai-home),
body:not(.page-index):has(#yokai-home) #container,
body:not(.page-index):has(#yokai-home) #container-inner,
body:not(.page-index):has(#yokai-home) #content,
body:not(.page-index):has(#yokai-home) #content-inner,
body:not(.page-index):has(#yokai-home) #main,
body:not(.page-index):has(#yokai-home) #main-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

body:not(.page-index):has(#yokai-home) {
  background: #f4f7f8;
}

/* =========================================================
   トップページ最終幅調整
   固定記事の親幅ではなく viewport 幅を直接使用
   ========================================================= */

/* トップで横方向にはみ出した全幅要素によるスクロールを防ぐ */
body.page-index.ydh-home-ready {
  overflow-x: clip;
}

/*
 * Smoothテーマ側の2カラム制約を解除。
 * overflowも解除して、子要素の100vw表示を妨げない。
 */
body.page-index.ydh-home-ready #container,
body.page-index.ydh-home-ready #container-inner,
body.page-index.ydh-home-ready #content,
body.page-index.ydh-home-ready #content-inner,
body.page-index.ydh-home-ready #wrapper,
body.page-index.ydh-home-ready #main,
body.page-index.ydh-home-ready #main-inner,
body.page-index .entry:has(#yokai-home),
body.page-index .entry:has(#yokai-home) .entry-inner,
body.page-index .entry:has(#yokai-home) .entry-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

/*
 * ここが重要。
 * 100%ではなく100vwにして、固定記事の親カラム幅を無視し、
 * ブラウザの表示領域いっぱいにトップページを広げる。
 */
body.page-index #yokai-home {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  left: 0 !important;
  box-sizing: border-box !important;
}

/*
 * 中身は最大1360pxで画面中央へ。
 * 100%ではなく100vwを基準にして中央位置を安定させる。
 */
body.page-index #yokai-home .ydh-blog-shell {
  width: min(1360px, calc(100vw - 48px)) !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/*
 * まとめ記事は全画面幅の帯。
 * #yokai-homeが100vwになったことで左右が正しく揃う。
 */
body.page-index #yokai-home .ydh-roundup-section {
  width: auto !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  overflow: visible !important;
}

/* ヘッダ・ヒーロー・フッタもviewportいっぱいにする */
body.page-index #yokai-home .ydh-blog-header,
body.page-index #yokai-home .ydh-blog-hero,
body.page-index #yokai-home .ydh-blog-footer {
  width: 100% !important;
  max-width: none !important;
}

/* =========================================================
   /entry/home も同じ幅構成にする
   ========================================================= */

body:not(.page-index):has(#yokai-home) {
  overflow-x: clip;
}

body:not(.page-index):has(#yokai-home) #container,
body:not(.page-index):has(#yokai-home) #container-inner,
body:not(.page-index):has(#yokai-home) #content,
body:not(.page-index):has(#yokai-home) #content-inner,
body:not(.page-index):has(#yokai-home) #wrapper,
body:not(.page-index):has(#yokai-home) #main,
body:not(.page-index):has(#yokai-home) #main-inner,
body:not(.page-index) .entry:has(#yokai-home),
body:not(.page-index) .entry:has(#yokai-home) .entry-inner,
body:not(.page-index) .entry:has(#yokai-home) .entry-content {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  float: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body:not(.page-index) #yokai-home {
  width: 100vw !important;
  max-width: 100vw !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  left: 0 !important;
  box-sizing: border-box !important;
}

body:not(.page-index) #yokai-home .ydh-blog-shell {
  width: min(1360px, calc(100vw - 48px)) !important;
  max-width: 1360px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

body:not(.page-index) #yokai-home .ydh-roundup-section {
  width: auto !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
}

/* スマホでは従来どおり左右14pxの余白 */
@media (max-width: 760px) {
  body.page-index #yokai-home .ydh-blog-shell,
  body:not(.page-index) #yokai-home .ydh-blog-shell {
    width: min(620px, calc(100vw - 28px)) !important;
  }
}

/* =========================================================
   妖怪検索窓を大きくする
   ========================================================= */

/* 検索フォーム全体 */
#yokai-home .ydh-search-form {
  min-height: 88px !important;
  grid-template-columns: 28px minmax(0, 1fr) 160px !important;
  gap: 16px !important;
  padding: 10px 10px 10px 24px !important;
}

/* 虫眼鏡 */
#yokai-home .ydh-search-icon {
  width: 19px !important;
  height: 19px !important;
}

/* 文字を入力する検索窓 */
#yokai-home .ydh-search-form input#ydh-yokai-search {
  width: 100% !important;
  height: 64px !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 19px !important;
  line-height: 64px !important;
}

/* プレースホルダー */
#yokai-home .ydh-search-form input#ydh-yokai-search::placeholder {
  font-size: 16px !important;
}

/* 検索するボタン */
#yokai-home .ydh-search-form button[type="submit"] {
  width: 160px !important;
  min-width: 160px !important;
  max-width: 160px !important;
  min-height: 68px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  font-size: 14px !important;
}

/* スマホ */
@media (max-width: 760px) {
  #yokai-home .ydh-search-form {
    min-height: 0 !important;
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 10px 12px !important;
    padding: 12px 14px !important;
  }

  #yokai-home .ydh-search-form input#ydh-yokai-search {
    height: 56px !important;
    padding: 0 6px !important;
    font-size: 17px !important;
    line-height: 56px !important;
  }

  #yokai-home .ydh-search-form button[type="submit"] {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 52px !important;
  }
}

/* =========================================================
   妖怪検索窓・配置修正版
   ========================================================= */

/* はてなテーマのform指定を強制的に上書き */
#yokai-home form#ydh-search-form {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 180px !important;
  grid-template-rows: 64px !important;
  align-items: stretch !important;
  gap: 12px !important;

  width: 100% !important;
  min-height: 88px !important;

  margin: 0 !important;
  padding: 10px !important;

  box-sizing: border-box !important;
  border: 2px solid var(--ydh-blue) !important;
  background: #ffffff !important;
}

/* 今回は虫眼鏡アイコンを消して、入力欄を最大化 */
#yokai-home #ydh-search-form .ydh-search-icon {
  display: none !important;
}

/* 検索入力欄 */
#yokai-home #ydh-search-form input#ydh-yokai-search {
  display: block !important;
  grid-column: 1 !important;
  grid-row: 1 !important;

  position: static !important;
  float: none !important;

  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 64px !important;

  margin: 0 !important;
  padding: 0 20px !important;

  box-sizing: border-box !important;

  border: 1px solid #c8d1d4 !important;
  border-radius: 0 !important;

  background: #f9fbfb !important;
  color: #30373a !important;

  font-size: 18px !important;
  line-height: 64px !important;

  appearance: none !important;
  -webkit-appearance: none !important;
}

/* プレースホルダー */
#yokai-home #ydh-search-form input#ydh-yokai-search::placeholder {
  color: #8b969a !important;
  font-size: 16px !important;
  opacity: 1 !important;
}

/* 検索ボタンを右側へ固定 */
#yokai-home #ydh-search-form button[type="submit"] {
  display: block !important;

  grid-column: 2 !important;
  grid-row: 1 !important;

  position: static !important;
  float: none !important;

  width: 180px !important;
  min-width: 180px !important;
  max-width: 180px !important;
  height: 64px !important;
  min-height: 64px !important;

  margin: 0 !important;
  padding: 0 20px !important;

  box-sizing: border-box !important;

  border: 0 !important;
  border-radius: 0 !important;

  background: var(--ydh-blue) !important;
  color: #ffffff !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 64px !important;
  text-align: center !important;
}

/* スマホ */
@media (max-width: 760px) {

  #yokai-home form#ydh-search-form {
    grid-template-columns: 1fr !important;
    grid-template-rows: 58px 52px !important;
    gap: 10px !important;

    min-height: 0 !important;
    padding: 10px !important;
  }

  #yokai-home #ydh-search-form input#ydh-yokai-search {
    grid-column: 1 !important;
    grid-row: 1 !important;

    height: 58px !important;
    padding: 0 15px !important;

    font-size: 17px !important;
    line-height: 58px !important;
  }

  #yokai-home #ydh-search-form button[type="submit"] {
    grid-column: 1 !important;
    grid-row: 2 !important;

    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;

    height: 52px !important;
    min-height: 52px !important;

    line-height: 52px !important;
  }
}