/* <system section="theme" selected="bordeaux"> */
@charset "UTF-8";body{margin:0;padding:0;color:#fff;font-family:Helvetica,Arial,ヒラギノ角ゴ Pro W3,Hiragino Kaku Gothic Pro,メイリオ,Meiryo,ＭＳ Ｐゴシック,MS PGothic,sans-serif;-moz-transition:all 1s ease;-webkit-transition:all 1s ease;background-color:#3d3d3d}a{color:#c00;text-decoration:none;-webkit-transition:.3s ease;-webkit-transition-property:opacity,border,color,background;-moz-transition:.3s ease;-moz-transition-property:opacity,border,color,background;-o-transition:.3s ease;-o-transition-property:opacity,border,color,background;transition:.3s ease;transition-property:opacity,border,color,background}a:hover{text-decoration:underline}a:visited{color:#a86f79}pre{padding:20px;background:#3d3d3d;color:#f5f5f5}pre a{color:#ff4545}#content{width:900px;color:#3d3d3d;margin:0 auto;background:#fff}#box2{width:160px;font-size:13px;float:left;margin:20px}#wrapper{font-size:13px;float:left;width:100%;margin-right:-201px;min-height:100px}#wrapper:after{content:".";display:block;height:0;font-size:0;clear:both;visibility:hidden}#main-inner{border-right:1px solid #ddd}#wrapper>*{margin-right:200px}#content:after{content:".";display:block;height:0;font-size:0;clear:both;visibility:hidden}#globalheader-container{color:#666 \	}#blog-title{margin:10px auto 0;width:900px;text-align:center}#blog-title-inner{text-align:left}#blog-title h1{padding:30px 0 35px}#blog-title h1,#blog-title h2{display:inline-block;*display: inline;*zoom: 1;margin:0}#title a{color:#fff;font-size:30px;font-weight:700}#title a:hover{color:#de0c30;text-decoration:none}#blog-description{font-size:13px;font-weight:700;margin-left:.5em!important}.header-image-enable #blog-title #title{padding:20px 0 0 20px}#top-box,#top-editarea,#bottom-editarea{width:900px;text-align:left;margin:0 auto;font-size:14px}.breadcrumb{margin-bottom:20px}.breadcrumb a{color:#aaa}.entry{padding-bottom:50px}.entry-content{margin:20px 0;padding:0 20px}.entry-header{position:relative;margin:0 0 .5em;padding:20px 95px .2em 20px;border-bottom:1px solid #ddd}h1.entry-title{font-size:26px;margin:0;line-height:1.3}.entry-title a:visited{color:#ba0000}.categories a{margin-right:5px;color:#666;line-height:1.5}.date{position:absolute;right:20px;bottom:6px;font-weight:700}.date a{color:#000}.entry-header-menu{position:absolute;right:20px;bottom:30px}.entry-header-menu a{color:#fff;background:#ba0000;padding:5px 15px;font-weight:700;font-size:12px}.entry-header-menu a:hover{text-decoration:none;background:#de0c30}.entry-footer{margin:30px 20px 0}.entry-footer .social-buttons{margin:10px 0}.entry-footer-section{color:#8f8f8f;font-style:italic;margin:0}.entry-footer-time a{color:#8f8f8f;text-decoration:underline}.entry-footer-time a:hover{color:#c00}.comment{margin:0 0 10px;padding:0}.comment li{list-style:none;padding:0 8px;border-left:4px solid #dfdfdf;margin:15px 0}.comment-user-name{display:inline;font-weight:700;margin:0 .3em 0 0}.comment-content{line-height:1.7}.comment-content p{margin:.5em 0;word-wrap:break-word}.comment-metadata{display:block;margin:0;color:#aaa}.comment-metadata a{color:#aaa}.leave-comment-title{font-size:12px;font-weight:700;padding:5px 15px;display:inline;border:1px solid #dfdfdf;-webkit-transition:.3s ease;-webkit-transition-property:opacity,border,color,background;-moz-transition:.3s ease;-moz-transition-property:opacity,border,color,background;-o-transition:.3s ease;-o-transition-property:opacity,border,color,background;transition:.3s ease;transition-property:opacity,border,color,background}.leave-comment-title:hover{background:#ba0000;color:#fff;text-decoration:none}.pager{margin-right:10px!important;padding:20px 0 20px 20px}.pager a{font-size:12px;font-weight:700;padding:5px 25px;background:#bbb;font-size:13px;color:#f5f5f5;line-height:1.5;word-wrap:break-word;display:inline-block;max-width:200px}.pager-next a{margin-right:5px}.pager a:hover{background:#ba0000;text-decoration:none}.entry-content{font-size:14px;line-height:1.8}.entry-content img{max-width:100%}.entry-content p{margin:.8em 0}.entry-content h1,.entry-content h2,.entry-content h3,.entry-content h4,.entry-content h5,.entry-content h6{margin:1em 0 .5em}.entry-content h1{font-size:160%}.entry-content h2{font-size:150%}.entry-content h3{font-size:140%}.entry-content h4{font-size:120%}.entry-content h5{font-size:110%}.entry-content h6{font-size:100%}.entry-content h1,.entry-content h2,.entry-content h3{border-bottom:1px dotted #999}.entry blockquote{padding:15px;margin:1em 0;border:1px solid #ddd}.entry blockquote p{margin-top:0;margin-bottom:0}.entry-content ul,.entry-content ol{margin:0 0 0 1.5em;padding:0}.entry-content table{border-collapse:collapse;border-spacing:0}.entry-content table th,.entry-content table td{border:1px solid #ddd;padding:5px 10px}.entry-content table th{background:#fafafa}a.keyword{color:#3d3d3d;text-decoration:none;border-bottom:1px solid #DEDEDE}pre.lang-aa{color:#3d3d3d;font-size:14px;line-height:15px}.gist pre{color:#3d3d3d}.hatena-module{margin-bottom:50px;font-size:12px}.hatena-module-title,.hatena-module-title a,.hatena-module-title a:hover,.hatena-module-title a:visited{text-align:left;font-size:15px;font-weight:700;margin-bottom:5px;padding-bottom:3px;color:#3d3d3d}.hatena-module-body ul{margin:0;padding:0;list-style:none;line-height:1.5}.hatena-module-body ul li{padding:.5em 0}.hatena-module-body ul li.archive{padding-top:15px}.urllist-item{padding:10px 0;border-bottom:1px solid #ddd}.hatena-module-profile .id{display:block;line-height:2;font-weight:700}.hatena-module-profile .id a{color:#ba0000}.profile-icon{border:1px solid #ccc}.hatena-module-profile .profile-description{margin:0 0 5px;line-height:1.5}form.search-form{margin-top:10px}form.search-form input{border:1px solid #666;vertical-align:middle}.search-form .search-module-input{width:130px;padding:3px;margin:0;font-size:12px}.search-form .search-module-button{height:23px;width:23px;border:none;text-indent:-999px;margin-left:-5px;cursor:pointer;background:#666 url(https://cdn.blog.st-hatena.com/images/theme/search_w.png?version=e8e716e55e34506d9079e1b45eeb1e) 50% 50% no-repeat}#footer{clear:both;text-align:center;padding:20px 0;font-size:small}#footer a{color:#dfdfdf}.hatena-embed.hatena-fotolife,.hatena-embed.twitpic{padding:10px 10px 30px;margin:1em 0;background:transparent;display:inline-block;border:1px solid #dfdfdf;box-shadow:0 1px 5px #00000029;background:#fff;text-align:center}.hatena-embed.hatena-fotolife{background:#fff url(https://cdn.blog.st-hatena.com/images/theme/hatena-embed/embed-fotolife.png?version=e8e716e55e34506d9079e1b45eeb1e) no-repeat right bottom}.hatena-embed.twitpic{padding:10px}.hatena-embed.hatena-fotolife .hatena-embed-image,.hatena-embed.twitpic .hatena-embed-image{display:inline-block;max-width:600px}.hatena-embed.hatena-fotolife .hatena-embed-body,.hatena-embed.hatena-fotolife .hatena-embed-body a,.hatena-embed.twitpic .hatena-embed-body,.hatena-embed.twitpic .hatena-embed-body a{text-align:center;font-family:Homemade Apple,cursive;color:#454545;font-size:16px;margin-top:10px}.hatena-embed.hatena-coco,.hatena-embed.foursquare{margin:1em 0;box-shadow:0 1px 5px #00000029}.hatena-embed.hatena-coco{border:1px solid #e2d279;padding:20px 30px;background:#faf9e6 url(https://cdn.blog.st-hatena.com/images/theme/hatena-embed/embed-coco.png?version=e8e716e55e34506d9079e1b45eeb1e) no-repeat right bottom}.hatena-embed.hatena-coco .hatena-embed-image,.hatena-embed.foursquare .hatena-embed-image{width:100px;height:100px}.hatena-embed.foursquare{border:1px solid #C1D5DB;padding:20px 30px;background:#e6eff2 url(https://cdn.blog.st-hatena.com/images/theme/hatena-embed/embed-4sq.png?version=e8e716e55e34506d9079e1b45eeb1e) no-repeat right bottom}.hatena-embed.hatena-bookmark{padding:15px 15px 15px 70px;margin:1em 0;background:transparent;border:1px solid #dfdfdf;box-shadow:0 1px 5px #00000029;background:#fff url(https://cdn.blog.st-hatena.com/images/theme/hatena-embed/embed-bookmark.png?version=e8e716e55e34506d9079e1b45eeb1e) no-repeat 10px top;position:relative}.hatena-embed.hatena-bookmark a{text-decoration:underline}.hatena-embed.hatena-bookmark .hatena-embed-image{max-height:50px}.hatena-embed.hatena-haiku{padding:15px 15px 15px 70px;margin:1em 0;background:transparent;border:1px solid #dfdfdf;box-shadow:0 1px 5px #00000029;background:#fff url(https://cdn.blog.st-hatena.com/images/theme/hatena-embed/embed-haiku.png?version=e8e716e55e34506d9079e1b45eeb1e) no-repeat 5px 5px}.hatena-embed.hatena-monolith{width:580px;padding:15px;margin:1em 0;background:transparent;border:1px solid #dfdfdf;box-shadow:0 1px 5px #00000029;background:#fff url(https://cdn.blog.st-hatena.com/images/theme/hatena-embed/embed-monolith.png?version=e8e716e55e34506d9079e1b45eeb1e) no-repeat right bottom}.hatena-embed.hatena-monolith .hatena-embed-image{display:block;float:left;max-width:98px;border:1px solid #dfdfdf}.hatena-embed.hatena-monolith .hatena-embed-body{float:left;width:470px;margin-left:10px}.hatena-embed.hatena-monolith:after{content:"";display:block;height:0;visibility:hidden;clear:both}.hatena-embed.twitter{padding:10px 0;margin:1em 0;border-bottom:1px dotted #757575;border-top:1px dotted #757575}.hatena-embed.atnd{padding:10px 0;margin:1em 0;border-bottom:1px dotted #757575;border-top:1px dotted #757575;font-family:PT Sans Caption,Helvetica,ヒラギノ角ゴ Pro W3,HiraKakuProN-W3,Hiragino Kaku Gothic Pro,メイリオ,Meiryo,ＭＳ Ｐゴシック,sans-serif}.hatena-embed-detail.atnd-detail{font-size:20px;font-weight:700;color:#262626}.hatena-embed-detail.atnd-detail:hover{color:#ea1f00;text-decoration:none}.hatena-embed.atnd .content-body{font-size:12px;color:#222}.page-about #google_afc_user{padding:20px}.page-about dt{font-size:16px;font-weight:700}.page-about dd{margin-left:0;margin-bottom:30px}.page-about .entry-content img.profile-icon{height:16px;width:16px}.page-archive #main-inner{padding:20px}.page-archive #main-inner section{padding-bottom:40px}.page-archive .archive-entry .date{position:static}.page-archive .archive-entry .entry-title{font-size:18px;margin:0 0 .3em;line-height:1.5}.page-archive .archive-entry p{margin:1em 0}

/* </system> */

/* <system section="background" selected="default"> */
/* default */
/* </system> */


/* ==================================================
   SEあれこれ
   技術ブログ向けカスタムCSS 完全版
   ================================================== */


/* ==================================================
   1. カラーパレット
   ================================================== */

:root {
  --tech-navy: #0f172a;
  --tech-navy-light: #1e293b;
  --tech-blue: #2563eb;
  --tech-blue-dark: #1d4ed8;
  --tech-cyan: #06b6d4;
  --tech-orange: #f59e0b;

  --text-main: #334155;
  --text-dark: #0f172a;
  --text-muted: #64748b;

  --border-color: #dbe4ee;
  --background-color: #f3f6fa;
  --content-background: #ffffff;

  --info-background: #eff6ff;
  --success-background: #ecfdf5;
  --warning-background: #fffbeb;
  --danger-background: #fff1f2;
}


/* ==================================================
   2. 全体
   ================================================== */

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--text-main);
  background-color: var(--background-color);

  /* ごく薄いドットパターン */
  background-image:
    radial-gradient(
      circle,
      rgba(100, 116, 139, 0.14) 1px,
      transparent 1px
    );

  background-size: 24px 24px;

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Noto Sans JP",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;

  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ボックスサイズを統一 */

#container,
#container *,
#container *::before,
#container *::after {
  box-sizing: border-box;
}

#container {
  width: calc(100% - 32px);
  max-width: 1120px;
  margin: 0 auto;
}

/* 文字選択時 */

::selection {
  color: #ffffff;
  background: rgba(37, 99, 235, 0.85);
}


/* ==================================================
   3. ヘッダー
   ================================================== */

#blog-title {
  position: relative;
  isolation: isolate;
  width: auto;
  margin: 0;
  padding: 54px 42px;
  overflow: hidden;

  background:
    radial-gradient(
      circle at 85% 25%,
      rgba(6, 182, 212, 0.35),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      #0f172a 0%,
      #172554 55%,
      #0c4a6e 100%
    );

  border-bottom: 4px solid var(--tech-cyan);
}

/* ヘッダーの薄いグリッド模様 */

#blog-title::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.14;

  background-image:
    linear-gradient(
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px
    ),
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.3) 1px,
      transparent 1px
    );

  background-size: 32px 32px;
}

#title {
  margin: 0;
  color: #ffffff;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.06em;
  text-shadow: none;
}

#title a,
#title a:visited {
  color: #ffffff;
  text-decoration: none;
}

#title a:hover {
  color: #a5f3fc;
}

#blog-description {
  max-width: 720px;
  margin-top: 12px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}


/* ==================================================
   4. メインレイアウト
   ================================================== */

#content {
  width: auto;
  margin: 32px auto 64px;
}

#content::after {
  content: "";
  display: block;
  clear: both;
}

/* PCの2カラム */

@media screen and (min-width: 769px) {
  #wrapper {
    float: left;
    width: 100%;
  }

  #main {
    margin-right: 320px;
  }

  #box2 {
    float: right;
    width: 280px;
    margin-left: -280px;
  }
}


/* ==================================================
   5. 記事カード
   ================================================== */

.entry {
  position: relative;
  z-index: 1;
  margin-bottom: 36px;
  padding: 30px 34px;
  background: var(--content-background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow:
    0 5px 18px rgba(15, 23, 42, 0.05);
}

/* 記事タイトル・本文・フッターの幅と位置を統一 */

.entry-header,
.entry-content,
.entry-footer {
  width: 100%;
  max-width: 740px;
  margin-right: auto;
  margin-left: auto;
}


/* ==================================================
   6. 投稿日・記事情報
   ================================================== */

.date {
  margin-bottom: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.date a,
.date a:visited {
  color: var(--text-muted);
  text-decoration: none;
}

.date a:hover {
  color: var(--tech-blue);
}


/* ==================================================
   7. 記事タイトル
   ================================================== */

.entry-title {
  margin: 0 0 14px;
  color: var(--text-dark);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.entry-title a,
.entry-title a:visited {
  color: var(--text-dark);
  text-decoration: none;
}

.entry-title a:hover {
  color: var(--tech-blue);
}


/* ==================================================
   8. カテゴリー
   ================================================== */

.entry-category-link {
  display: inline-block;
  margin: 4px 5px 4px 0;
  padding: 4px 10px;
  color: #0369a1 !important;
  background: #e0f2fe;
  border: 1px solid #bae6fd;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none !important;
}

.entry-category-link:hover {
  color: #ffffff !important;
  background: #0284c7;
  border-color: #0284c7;
}


/* ==================================================
   9. 記事本文
   ================================================== */

.entry-content {
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.01em;
  word-break: normal;
  overflow-wrap: anywhere;
}

.entry-content p {
  margin: 1.15em 0;
}

.entry-content strong {
  color: var(--text-dark);
  font-weight: 700;
}


/* ==================================================
   10. 大見出し
   ================================================== */

.entry-content h3 {
  position: relative;
  margin: 2.6em 0 1.2em;
  padding: 14px 18px;
  color: var(--text-dark);

  background:
    linear-gradient(
      90deg,
      #ecfeff 0%,
      #f8fafc 70%,
      #ffffff 100%
    );

  border: none;
  border-left: 5px solid var(--tech-cyan);
  border-bottom: 1px solid #cbd5e1;
  border-radius: 3px 8px 8px 3px;

  font-size: 21px;
  font-weight: 700;
  line-height: 1.5;
  scroll-margin-top: 20px;
}

/* Bordeauxテーマ側の装飾を無効化 */

.entry-content h3::before {
  content: none;
}


/* ==================================================
   11. 中見出し
   ================================================== */

.entry-content h4 {
  position: relative;
  margin: 2em 0 1em;
  padding: 9px 12px;
  color: var(--text-dark);
  background: transparent;
  border: none;
  border-left: 4px solid var(--tech-orange);
  border-bottom: 1px solid #e2e8f0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  scroll-margin-top: 20px;
}


/* ==================================================
   12. 小見出し
   ================================================== */

.entry-content h5 {
  margin: 1.7em 0 0.8em;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  scroll-margin-top: 20px;
}

.entry-content h5::before {
  content: "●";
  margin-right: 8px;
  color: var(--tech-cyan);
  font-size: 10px;
  vertical-align: 2px;
}


/* ==================================================
   13. リンク
   ================================================== */

.entry-content a {
  color: var(--tech-blue-dark);
  text-decoration: underline;
  text-decoration-color: #93c5fd;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.entry-content a:hover {
  color: #1e40af;
  text-decoration-color: #1e40af;
}


/* ==================================================
   14. キーボード操作
   ================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.45);
  outline-offset: 3px;
  border-radius: 3px;
}


/* ==================================================
   15. リスト
   ================================================== */

.entry-content ul,
.entry-content ol {
  margin: 1.2em 0;
  padding-left: 1.8em;
}

.entry-content li {
  margin: 0.45em 0;
  padding-left: 0.1em;
}

.entry-content li::marker {
  color: var(--tech-cyan);
  font-weight: 700;
}


/* ==================================================
   16. インラインコード
   ================================================== */

.entry-content p code,
.entry-content li code,
.entry-content td code,
.entry-content th code,
.entry-content blockquote code,
.entry-content dd code {
  margin: 0 0.15em;
  padding: 0.15em 0.4em;
  color: #be123c;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 4px;

  font-family:
    Consolas,
    Monaco,
    "SFMono-Regular",
    "Liberation Mono",
    monospace;

  font-size: 0.9em;
}


/* ==================================================
   17. コードブロック
   ================================================== */

.entry-content pre,
.entry-content pre.code {
  max-width: 100%;
  margin: 1.6em 0;
  padding: 18px 20px !important;
  overflow-x: auto;

  color: #e2e8f0;
  background: var(--tech-navy) !important;

  border: 1px solid #334155;
  border-left: 4px solid var(--tech-cyan);
  border-radius: 8px;

  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  font-family:
    Consolas,
    Monaco,
    "SFMono-Regular",
    "Liberation Mono",
    monospace;

  font-size: 14px;
  line-height: 1.7;
  tab-size: 4;
  white-space: pre;

  scrollbar-color: #64748b var(--tech-navy);
  scrollbar-width: thin;
}

.entry-content pre code {
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: none;
  font-size: inherit;
}

/* Chromium系ブラウザーのスクロールバー */

.entry-content pre::-webkit-scrollbar {
  height: 10px;
}

.entry-content pre::-webkit-scrollbar-track {
  background: var(--tech-navy);
}

.entry-content pre::-webkit-scrollbar-thumb {
  background: #64748b;
  border: 2px solid var(--tech-navy);
  border-radius: 999px;
}


/* ==================================================
   18. シンタックスハイライト
   ================================================== */

.entry-content .synComment {
  color: #94a3b8;
}

.entry-content .synStatement {
  color: #93c5fd;
}

.entry-content .synType {
  color: #67e8f9;
}

.entry-content .synConstant {
  color: #fbbf24;
}

.entry-content .synIdentifier {
  color: #c4b5fd;
}

.entry-content .synSpecial {
  color: #fda4af;
}

.entry-content .synPreProc {
  color: #86efac;
}


/* ==================================================
   19. 引用
   ================================================== */

.entry-content blockquote {
  position: relative;
  margin: 1.6em 0;
  padding: 18px 20px 18px 24px;
  color: #475569;
  background: #f8fafc;
  border: none;
  border-left: 4px solid #94a3b8;
  border-radius: 0 8px 8px 0;
}

.entry-content blockquote p:first-child {
  margin-top: 0;
}

.entry-content blockquote p:last-child {
  margin-bottom: 0;
}


/* ==================================================
   20. 表
   ================================================== */

.entry-content table {
  width: 100%;
  margin: 1.8em 0;
  background: #ffffff;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: 14px;
  line-height: 1.65;
}

.entry-content th {
  padding: 11px 13px;
  color: #ffffff;
  background: var(--tech-navy-light);
  border: 1px solid #475569;
  font-weight: 700;
  text-align: left;
  vertical-align: top;
}

.entry-content td {
  padding: 10px 13px;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  vertical-align: top;
}

.entry-content tr:nth-child(even) td {
  background: #f8fafc;
}


/* ==================================================
   21. 目次
   ================================================== */

.entry-content .table-of-contents {
  margin: 2em 0;
  padding: 20px 24px 20px 44px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-top: 4px solid var(--tech-cyan);
  border-radius: 8px;
}

.entry-content .table-of-contents::before {
  content: "この記事の目次";
  display: block;
  margin: 0 0 10px -20px;
  color: var(--text-dark);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.entry-content .table-of-contents li {
  margin: 5px 0;
}

.entry-content .table-of-contents a {
  text-decoration: none;
}

.entry-content .table-of-contents a:hover {
  text-decoration: underline;
}


/* ==================================================
   22. 画像
   ================================================== */

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.entry-content figure {
  margin: 1.8em 0;
}

.entry-content figcaption {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}


/* ==================================================
   23. 水平線
   ================================================== */

.entry-content hr {
  margin: 2.5em 0;
  border: 0;
  border-top: 1px solid #cbd5e1;
}


/* ==================================================
   24. この記事で分かること
   ================================================== */

.article-summary {
  margin: 1.5em 0 1.8em;
  padding: 20px 22px;
  color: var(--text-main);
  background: var(--info-background);
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--tech-blue);
  border-radius: 8px;
}

.article-summary-title {
  display: flex;
  align-items: center;
  margin: 0 0 10px !important;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}

.article-summary-title::before {
  content: "✓";
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;
  margin-right: 8px;

  color: #ffffff;
  background: var(--tech-blue);
  border-radius: 50%;

  font-size: 13px;
  font-weight: 700;
}

.article-summary ul,
.article-summary ol {
  margin: 0;
  padding-left: 1.6em;
}

.article-summary li {
  margin: 5px 0;
}

.article-summary p:last-child,
.article-summary ul:last-child,
.article-summary ol:last-child {
  margin-bottom: 0;
}


/* ==================================================
   25. 検証日・検証環境
   ================================================== */

.verification-info {
  margin: 1.5em 0 2em;
  padding: 16px 20px;
  color: var(--text-main);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.verification-info-title {
  margin: 0 0 10px !important;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 700;
}

.verification-info-title::before {
  content: "●";
  margin-right: 7px;
  color: var(--tech-cyan);
  font-size: 10px;
  vertical-align: 1px;
}

.verification-info dl {
  margin: 0;
}

.verification-info dl > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.verification-info dl > div:first-child {
  padding-top: 0;
}

.verification-info dl > div:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.verification-info dt {
  color: #475569;
  font-weight: 700;
}

.verification-info dd {
  min-width: 0;
  margin: 0;
  color: var(--text-main);
  overflow-wrap: anywhere;
}


/* ==================================================
   26. 参考資料
   ================================================== */

.reference-box {
  margin: 2.5em 0 1em;
  padding: 20px 22px;
  color: var(--text-main);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-top: 4px solid var(--tech-blue);
  border-radius: 8px;
}

.reference-box-title {
  margin: 0 0 10px !important;
  color: var(--text-dark);
  font-size: 16px;
  font-weight: 700;
}

.reference-box-title::before {
  content: "↗";
  margin-right: 8px;
  color: var(--tech-blue);
  font-weight: 700;
}

.reference-box ul,
.reference-box ol {
  margin: 0;
  padding-left: 1.6em;
}

.reference-box li {
  margin: 7px 0;
}

.reference-box a {
  font-weight: 600;
}

.reference-note {
  margin: 12px 0 0 !important;
  padding-top: 10px;
  color: var(--text-muted);
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  line-height: 1.7;
}


/* ==================================================
   27. 補足・注意・重要ポイント
   ================================================== */

.info-box,
.success-box,
.warning-box,
.danger-box {
  margin: 1.6em 0;
  padding: 18px 20px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.8;
}

.info-box {
  color: #1e3a8a;
  background: var(--info-background);
  border: 1px solid #bfdbfe;
  border-left: 5px solid var(--tech-blue);
}

.success-box {
  color: #065f46;
  background: var(--success-background);
  border: 1px solid #a7f3d0;
  border-left: 5px solid #10b981;
}

.warning-box {
  color: #78350f;
  background: var(--warning-background);
  border: 1px solid #fde68a;
  border-left: 5px solid var(--tech-orange);
}

.danger-box {
  color: #881337;
  background: var(--danger-background);
  border: 1px solid #fecdd3;
  border-left: 5px solid #e11d48;
}

.info-box-title,
.success-box-title,
.warning-box-title,
.danger-box-title {
  margin: 0 0 7px !important;
  color: inherit;
  font-size: 15px;
  font-weight: 700;
}

.info-box p:first-child,
.success-box p:first-child,
.warning-box p:first-child,
.danger-box p:first-child {
  margin-top: 0;
}

.info-box p:last-child,
.success-box p:last-child,
.warning-box p:last-child,
.danger-box p:last-child {
  margin-bottom: 0;
}


/* ==================================================
   28. 「続きを読む」
   ================================================== */

.entry-see-more {
  display: inline-block;
  margin-top: 14px;
  padding: 8px 16px;
  color: #ffffff !important;
  background: var(--tech-blue);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;

  transition:
    background-color 0.2s ease,
    transform 0.15s ease;
}

.entry-see-more:hover {
  background: var(--tech-blue-dark);
  transform: translateY(-1px);
}


/* ==================================================
   29. サイドバー
   ================================================== */

.hatena-module {
  margin-bottom: 20px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 10px;

  box-shadow:
    0 4px 14px rgba(15, 23, 42, 0.04);
}

.hatena-module-title {
  margin: -18px -18px 14px;
  padding: 12px 16px;
  color: var(--text-dark);
  background: #f8fafc;
  border-bottom: 1px solid var(--border-color);
  border-left: 4px solid var(--tech-cyan);
  border-radius: 10px 10px 0 0;
  font-size: 15px;
  font-weight: 700;
}

.hatena-module-title a,
.hatena-module-title a:visited {
  color: var(--text-dark);
  text-decoration: none;
}

.hatena-module ul {
  margin: 0;
  padding-left: 1.3em;
}

.hatena-module li {
  margin: 8px 0;
  line-height: 1.6;
}

.hatena-module a {
  color: var(--text-main);
  text-decoration: none;
}

.hatena-module a:hover {
  color: var(--tech-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==================================================
   30. 主要カテゴリー
   ================================================== */

.custom-category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.custom-category-list a {
  display: inline-block;
  padding: 6px 10px;
  color: var(--text-main);
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.custom-category-list a:hover {
  color: #ffffff;
  background: var(--tech-blue);
  border-color: var(--tech-blue);
  text-decoration: none;
}


/* ==================================================
   31. 検索フォーム
   ================================================== */

.search-form {
  display: flex;
  width: 100%;
}

.search-module-input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px 10px;
  color: var(--text-main);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px 0 0 6px;
  outline: none;
}

.search-module-input:focus {
  border-color: var(--tech-cyan);
  box-shadow:
    0 0 0 3px rgba(6, 182, 212, 0.12);
}

.search-module-button {
  flex: 0 0 auto;
  padding: 9px 12px;
  color: #ffffff;
  background: var(--tech-blue);
  border: 1px solid var(--tech-blue);
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}

.search-module-button:hover {
  background: var(--tech-blue-dark);
  border-color: var(--tech-blue-dark);
}


/* ==================================================
   32. パンくずリスト
   ================================================== */

.breadcrumb {
  width: auto;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
}

.breadcrumb a {
  color: var(--tech-blue);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}


/* ==================================================
   33. ページ送り
   ================================================== */

.pager {
  margin: 32px 0;
}

.pager a {
  display: inline-block;
  padding: 9px 15px;
  color: var(--tech-blue);
  background: #ffffff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;

  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.pager a:hover {
  color: #ffffff;
  background: var(--tech-blue);
  border-color: var(--tech-blue);
}


/* ==================================================
   34. 読者になるボタン
   ================================================== */

.hatena-follow-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 12px 24px !important;

  color: #ffffff !important;
  background: var(--tech-blue) !important;
  border: none !important;
  border-radius: 8px !important;

  font-size: 14px !important;
  font-weight: 700 !important;
  text-decoration: none !important;

  box-shadow:
    0 4px 14px rgba(37, 99, 235, 0.3);

  transition:
    background-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease;

  cursor: pointer;
}

.hatena-follow-button::before {
  content: "＋";
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.hatena-follow-button:hover {
  background: var(--tech-blue-dark) !important;

  box-shadow:
    0 6px 20px rgba(37, 99, 235, 0.4);

  transform: translateY(-1px);
}

.hatena-follow-button:active {
  transform: translateY(0);

  box-shadow:
    0 2px 8px rgba(37, 99, 235, 0.3);
}


/* ==================================================
   35. フッター
   ================================================== */

#footer {
  padding: 30px 16px;
  color: #94a3b8;
  background: var(--tech-navy);
  text-align: center;
}

#footer a {
  color: #cbd5e1;
  text-decoration: none;
}

#footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}


/* ==================================================
   36. スマートフォン・狭い画面
   ================================================== */

@media screen and (max-width: 768px) {
  #container {
    width: 100%;
    max-width: none;
  }

  #blog-title {
    padding: 34px 20px;
  }

  #title {
    font-size: 30px;
  }

  #blog-description {
    font-size: 13px;
  }

  #content {
    margin: 18px 12px 40px;
  }

  #wrapper,
  #main,
  #box2 {
    float: none !important;
    width: auto !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
  }

  .entry {
    margin-bottom: 22px;
    padding: 22px 18px;
    border-radius: 8px;
  }

  .entry-title {
    font-size: 22px;
  }

  .entry-content {
    max-width: none;
    font-size: 15px;
    line-height: 1.85;
  }

  .entry-content h3 {
    margin-top: 2.2em;
    padding: 12px 13px;
    font-size: 19px;
  }

  .entry-content h4 {
    font-size: 17px;
  }

  .entry-content pre,
  .entry-content pre.code {
    margin-right: -8px;
    margin-left: -8px;
    padding: 15px !important;
    border-radius: 5px;
    font-size: 13px;
  }

  .entry-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .article-summary,
  .reference-box {
    padding: 17px 16px;
  }

  .verification-info {
    padding: 15px 16px;
  }

  .verification-info dl > div {
    display: block;
  }

  .verification-info dt {
    margin-bottom: 3px;
  }

  .verification-info dd {
    margin: 0;
  }

  .info-box,
  .success-box,
  .warning-box,
  .danger-box {
    padding: 16px;
  }

  .hatena-module {
    margin-top: 20px;
  }

  .hatena-follow-button {
    width: 100%;
  }
}


/* さらに狭い画面 */

@media screen and (max-width: 480px) {
  #blog-title {
    padding: 28px 17px;
  }

  #title {
    font-size: 27px;
    letter-spacing: 0.04em;
  }

  .entry {
    padding: 20px 15px;
  }

  .entry-title {
    font-size: 20px;
  }

  .entry-content h3 {
    padding: 11px 12px;
    font-size: 18px;
  }

  .entry-content h4 {
    padding: 8px 10px;
    font-size: 16px;
  }

  .entry-content .table-of-contents {
    padding: 18px 18px 18px 36px;
  }
}


/* ==================================================
   37. 動きを減らす設定
   ================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .entry-see-more:hover,
  .hatena-follow-button:hover {
    transform: none;
  }
}