/* =======================================================
  HRP Custom CSS v2.6 (clean, no reset)
  - Sidebar/Related サムネ最終安定版
  - Footer v3.0 維持
======================================================= */

/* ---- テーマ継承 ---- */
@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=f55d41c1f1e9d553c20fd41f441dc0) 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-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%}}


/* ---- トークン ---- */
:root{
  --sb-radius:8px;
  --rel-gap:12px;
  --rel-radius:12px;
  --rel-shadow:0 4px 14px rgba(0,0,0,.08);
  --rel-bd:1px solid rgba(0,0,0,.06);

  /* サムネ内側の安全余白 */
  --rel-inset:6%;   /* 関連記事：5–8%推奨 */

  /* Footer（v3.0と値を共有） */
  --hrp-ft-bg:#0b1220; --hrp-ft-grad1:#0b1220; --hrp-ft-grad2:#131b2e;
  --hrp-ft-txt:#d7deff; --hrp-ft-dim:#9aa6c0; --hrp-ft-accent:#7dd3fc; --hrp-ft-pill:#ef4444;
}

/* =======================================================
  サイドバー：最新／人気（純正寄せ＋見た目最小）
======================================================= */
.hatena-module-recent-entries .urllist-with-thumbnails li,
.hatena-module-entries-access-ranking .urllist-with-thumbnails li{
  margin:0 0 16px; border-radius:var(--sb-radius); overflow:hidden;
  border:1px solid rgba(0,0,0,.06); box-shadow:0 2px 10px rgba(0,0,0,.06); background:#fff;
}
.hatena-module-recent-entries .urllist-title-link,
.hatena-module-entries-access-ranking .urllist-title-link{
  display:block; margin:8px 6px 10px; line-height:1.45; font-weight:700;
}
.hatena-module-recent-entries .urllist-date-link,
.hatena-module-entries-access-ranking .urllist-date-link,
.hatena-module-recent-entries .urllist-categories,
.hatena-module-entries-access-ranking .urllist-categories{
  font-size:12px; color:#999; margin:0 6px 8px;
}

/* ===== Sidebar thumbs（人気・最新 共通）：16:9＋contain（欠け防止） ===== */
.hatena-module-recent-entries  .urllist-image-link,
.hatena-module-entries-access-ranking .urllist-image-link{
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  border-radius: var(--sb-radius) !important;
  background: #f5f5f5 !important;
}
.hatena-module-recent-entries  .urllist-image-link img,
.hatena-module-entries-access-ranking .urllist-image-link img{
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;      /* ← これで“50%高さ”を封殺 */
  object-position: center center !important;
  display: block !important;
  border-radius: inherit !important;
}

/* SP：2カラムグリッド（見た目最小） */
@media (max-width:767px){
  .hatena-module-recent-entries .hatena-module-body > ul,
  .hatena-module-entries-access-ranking .hatena-module-body > ul{
    display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; gap:12px !important;
    list-style:none; margin:0; padding:0;
  }
  .hatena-module-recent-entries .urllist-title-link,
  .hatena-module-entries-access-ranking .urllist-title-link{
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
    font-size:14px; line-height:1.4; margin:8px 8px 10px;
  }
}

/* =======================================================
  記事末：関連記事
======================================================= */
.hatena-module-related-entries{ margin-top:28px }
.hatena-module-related-entries .related-entries{
  list-style:none; margin:0; padding:0;
  display:grid; gap:var(--rel-gap); grid-template-columns:repeat(2,minmax(0,1fr));
}
@media (min-width:680px){  .hatena-module-related-entries .related-entries{ grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media (min-width:1080px){ .hatena-module-related-entries .related-entries{ grid-template-columns:repeat(4,minmax(0,1fr)); } }

.hatena-module-related-entries .related-entries > li{
  background:#fff; border:var(--rel-bd); border-radius:var(--rel-radius);
  overflow:hidden; box-shadow:var(--rel-shadow);
}
.hatena-module-related-entries .urllist-item-inner{ position:relative; display:block }

/* ===== Related thumbs：16:9固定＋文字欠けゼロ（絶対配置＋inset） ===== */
.hatena-module-related-entries .urllist-item-inner :is(.urllist-image-link, .rel-thumb){
  position: relative !important;
  display: block !important;
  width: 100% !important;
  aspect-ratio: 16 / 9 !important;
  overflow: hidden !important;
  border-radius: var(--rel-radius) !important;
  background: #f5f5f5 !important;
}
.hatena-module-related-entries .urllist-item-inner :is(.urllist-image-link img, .rel-thumb img){
  position: absolute !important;
  inset: var(--rel-inset) !important;  /* 5–8%で調整。デフォ6% */
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  border-radius: inherit !important;
  display: block !important;
}

/* pill：左上重ね */
.hatena-module-related-entries .urllist-categories{
  position:absolute; top:8px; left:8px; z-index:2; display:flex; gap:6px; flex-wrap:wrap; margin:0; padding:0;
}
.hatena-module-related-entries .urllist-categories a{
  display:inline-block; padding:4px 10px; font-size:11px; line-height:1; font-weight:700; color:#fff;
  border-radius:9999px; text-decoration:none; box-shadow:0 6px 16px rgba(0,0,0,.18); backdrop-filter:saturate(1.1) blur(2px);
}
.hatena-module-related-entries .urllist-categories .category-猫と暮らす{ background:#3b82f6; }
.hatena-module-related-entries .urllist-categories .category-バイク{ background:#ef4444; }
.hatena-module-related-entries .urllist-categories .category-キャンプ・アウトドア{ background:#10b981; }
.hatena-module-related-entries .urllist-categories .category-ツーリング{ background:#f59e0b; }
.hatena-module-related-entries .urllist-categories a:not([class*="category-"]){ background:#9ca3af; }
.hatena-module-related-entries .urllist-title-link{ margin-top:10px }

/* “関連記事の説明テキスト／赤ボタン” を常に見せる */
.hatena-module-related-entries .related-entries + *,
.hatena-module-related-entries .related-entries ~ *{
  display:block !important; visibility:visible !important; margin-top:12px;
}

/* =======================================================
  Pager（SPのみ最適化。PCはテーマ準拠）
======================================================= */
@media (max-width:680px){
  .entry-footer .pager::before,
  .entry-navigation::before,
  .pager.entry-pager::before,
  .pager.pager-permalink.permalink::before{ content:none !important; display:none !important; }

  .pager.pager-permalink.permalink{
    display:grid !important; grid-template-columns:16px minmax(0,1fr) minmax(0,1fr) 16px !important;
    column-gap:14px !important; margin:16px 0 8px !important; padding:0 !important; box-sizing:border-box !important;
  }
  .pager.pager-permalink.permalink .pager-prev{ grid-column:2 / 3 !important; }
  .pager.pager-permalink.permalink .pager-next{ grid-column:3 / 4 !important; }

  .pager.pager-permalink.permalink :is(.pager-prev,.pager-next,.pager-prev a,.pager-next a){
    text-align:left !important; float:none !important; margin:0 !important; width:100% !important;
  }
  .pager.pager-permalink.permalink :is(.pager-prev a,.pager-next a){
    display:flex !important; flex-wrap:wrap !important; align-items:flex-start !important; gap:8px !important;
    background:#fff; border:1px solid rgba(0,0,0,.08); border-radius:12px; padding:12px;
    box-shadow:0 6px 18px rgba(0,0,0,.06); color:inherit; text-decoration:none; line-height:1.4; font-weight:700;
  }
  .hrp-pill{ display:inline-block; margin:0 8px 6px 0; padding:4px 10px; border-radius:9999px; font-size:12px; font-weight:700; line-height:1; }
  .hrp-pill.is-prev{ background:#eef2ff; color:#4f46e5; }  .hrp-pill.is-next{ background:#ecfdf5; color:#059669; }
  .pager.pager-permalink.permalink .pager-arrow{ display:none !important; }
}
@media (min-width:681px){ .pager.pager-permalink.permalink{ outline:none !important; outline-offset:0 !important; } }
.hrp-pager-heading{ text-align:center; margin:16px 0 8px; font-weight:800; font-size:22px; line-height:1.25; color:#222; }
@media (min-width:681px){ .hrp-pager-heading{ font-size:20px; margin:20px 0 10px; } }

/* =======================================================
  細部（安全範囲のみ）
======================================================= */
.hatena-urllist{ list-style:none; padding-left:0; margin-left:0 }
.entry-content img{ max-width:100%; height:auto }
.hatena-module .hatena-module-title{ margin:0 0 .5rem; font-weight:600 }
#container,#content,.pager{ word-wrap:break-word }
.entry-content h3{ font-size:1.1rem; line-height:1.45; font-weight:700; margin:18px 0 8px; }
.entry-content .hrp-cap{ margin:12px 0 8px; font-weight:700; }
.table-scroll{ overflow-x:auto; -webkit-overflow-scrolling:touch; margin-bottom:16px; }
/* SP横はみ出しを抑える：最小幅を少しだけ緩める */
.table-scroll table{ min-width:720px; }
@media (max-width:680px){ .table-scroll table{ min-width:560px; } }
/* 念のための保険（横スクロール抑止） */
@media (max-width:680px){
  html, body { max-width:100%; overflow-x:hidden; }
}

/* === カテゴリpill色（はてな純正対応） === */
.hatena-module-related-entries .urllist-categories a[href*="%E7%8C%AB%E3%81%A8%E6%9A%AE%E3%82%89%E3%81%99"]{ background:#3b82f6; }
.hatena-module-related-entries .urllist-categories a[href*="%E3%83%90%E3%82%A4%E3%82%AF"]{ background:#ef4444; }
.hatena-module-related-entries .urllist-categories a[href*="%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%97%E3%83%BB%E3%82%A2%E3%82%A6%E3%83%88%E3%83%89%E3%82%A2"]{ background:#10b981; }
.hatena-module-related-entries .urllist-categories a[href*="%E3%83%84%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%B0"]{ background:#f59e0b; }

/* サイドバーにも同じ指定 */
.hatena-module-entries-access-ranking .urllist-categories a[href*="%E7%8C%AB%E3%81%A8%E6%9A%AE%E3%82%89%E3%81%99"],
.hatena-module-recent-entries      .urllist-categories a[href*="%E7%8C%AB%E3%81%A8%E6%9A%AE%E3%82%89%E3%81%99"]{ background:#3b82f6; }
.hatena-module-entries-access-ranking .urllist-categories a[href*="%E3%83%90%E3%82%A4%E3%82%AF"],
.hatena-module-recent-entries      .urllist-categories a[href*="%E3%83%90%E3%82%A4%E3%82%AF"]{ background:#ef4444; }
.hatena-module-entries-access-ranking .urllist-categories a[href*="%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%97%E3%83%BB%E3%82%A2%E3%82%A6%E3%83%88%E3%83%89%E3%82%A2"],
.hatena-module-recent-entries      .urllist-categories a[href*="%E3%82%AD%E3%83%A3%E3%83%B3%E3%83%97%E3%83%BB%E3%82%A2%E3%82%A6%E3%83%88%E3%83%89%E3%82%A2"]{ background:#10b981; }
.hatena-module-entries-access-ranking .urllist-categories a[href*="%E3%83%84%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%B0"],
.hatena-module-recent-entries      .urllist-categories a[href*="%E3%83%84%E3%83%BC%E3%83%AA%E3%83%B3%E3%82%B0"]{ background:#f59e0b; }

/* ===== HRP Footer v3.0 ===== */
:root{
  --hrp-ft-bg:#0b1220; --hrp-ft-grad1:#0b1220; --hrp-ft-grad2:#131b2e;
  --hrp-ft-txt:#d7deff; --hrp-ft-dim:#9aa6c0; --hrp-ft-accent:#7dd3fc; --hrp-ft-pill:#ef4444;
}
.hrp-site-footer{ 
  position:relative; margin:32px 0 0; 
  background:linear-gradient(180deg,var(--hrp-ft-grad1),var(--hrp-ft-grad2));
  color:var(--hrp-ft-txt);
  border-radius:16px; box-shadow:0 20px 60px rgba(0,0,0,.25); overflow:hidden;
}
.hrp-site-footer__inner{ max-width:1100px; margin:0 auto; padding:28px 24px; box-sizing:border-box; }
.hrp-ft-top{
  display:grid;
  grid-template-areas:
    "brand links"
    "cta   links";
  grid-template-columns:1.3fr 1fr;
  gap:28px 40px;
  align-items:start;
}
/* ブランド */
.hrp-brand{ grid-area: brand; display:flex; align-items:center; gap:12px; }
.hrp-brand__logo img{ width:64px; height:64px; border-radius:50%; display:block; background:#111; }
.hrp-brand__text h3{ margin:0 0 6px; font-size:22px; font-weight:800; }
.hrp-brand__text p{ margin:0; color:var(--hrp-ft-dim); line-height:1.6; font-size:14px; }
/* CTA */
.hrp-cta-card{ grid-area: cta; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.08); border-radius:14px; padding:16px; }
.hrp-cta-card h4{ margin:0 0 8px; font-size:16px; }
.hrp-cta-card p{ margin:0 0 12px; color:var(--hrp-ft-dim); font-size:14px; line-height:1.6; }
.hrp-btn{ display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:9999px; font-weight:700; text-decoration:none; background:var(--hrp-ft-pill); color:#fff !important; }
/* リンク */
.hrp-links{ grid-area: links; display:flex; flex-wrap:wrap; gap:40px; }
.hrp-links .col{ flex:1 1 240px; }
.hrp-links .hd{ font-weight:700; margin:0 0 8px; font-size:16px; color:var(--hrp-ft-accent); }
.hrp-links ul{ margin:0; padding:0; list-style:none; }
.hrp-links li{ margin:6px 0; }
.hrp-links a{ color:#fff; text-decoration:none; }
.hrp-links a:hover{ text-decoration:underline; }
/* 区切り線 */
.hrp-sep{ height:1px; background:linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent); margin:20px 0; }
/* ボトム */
.hrp-ft-bottom{ display:flex; justify-content:space-between; align-items:center; gap:16px; flex-wrap:wrap; color:var(--hrp-ft-dim); font-size:13px; }
.hrp-social{ display:flex; gap:12px; }
.hrp-social a{ display:inline-flex; width:34px; height:34px; align-items:center; justify-content:center; border-radius:10px; background:rgba(255,255,255,.06); border:1px solid rgba(255,255,255,.08); text-decoration:none; }
.hrp-social svg{ width:18px; height:18px; fill:var(--hrp-ft-accent); }
/* SP対応 */
@media (max-width:680px){
  .hrp-site-footer__inner{ padding:20px 16px; }
  .hrp-ft-top{ grid-template-areas:"brand" "cta" "links"; grid-template-columns:1fr; gap:18px; }
  .hrp-links{ flex-direction:column; gap:20px; }
  .hrp-brand__text h3{ font-size:18px; }
  .hrp-cta-card{ padding:14px; }
  .hrp-ft-bottom{ justify-content:center; text-align:center; }
}

/* 角丸を強制クリップ（描画差の保険） */
.hatena-module-recent-entries .urllist-image-link,
.hatena-module-entries-access-ranking .urllist-image-link{
  border-radius: var(--sb-radius) !important;
  overflow: hidden !important;
  /* まれにborder-radiusだけだと甘い環境があるのでclip-pathでも丸める */
  clip-path: inset(0 round var(--sb-radius));
}
.hatena-module-recent-entries .urllist-image-link img,
.hatena-module-entries-access-ranking .urllist-image-link img{
  border-radius: inherit !important;
  background:#f5f5f5; /* レターボックス色を揃える */
}

@media (max-width: 767px){
  .hatena-module-recent-entries .urllist-image-link img.urllist-image{
    inset: 4% 2% 2% 2% !important; /* 上だけ+2%（3〜6%で好みに調整） */
  }
}

/* ---- Footer fix: HRPは必ず表示、HRPがあるときだけ純正を隠す ---- */

/* まず全部見える状態に戻す（強制上書き） */
#footer, .site-footer, .blog-footer { display: block !important; }
.hrp-site-footer { display: block !important; }

/* HRPがフッター領域に存在する場合のみ、純正の要素を隠す */
.blog-footer:has(.hrp-site-footer) > :not(.hrp-site-footer) { display: none !important; }

/* もしHRPが blog-footer の外にいるテーマでも、HRP直後の純正行を消せる保険 */
.hrp-site-footer + .blog-footer { display: none !important; }
