@charset "UTF-8";@import url("https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@2.44.0/tabler-icons.min.css");

/*
  Theme: kosui
  Author: kosui
  Responsive: yes
  Released under the MIT License.
*/
/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
/* Document
   ========================================================================== */
/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */
html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}
/* Sections
   ========================================================================== */
/**
 * Remove the margin in all browsers.
 */
body {
  margin: 0;
}
/**
 * Render the `main` element consistently in IE.
 */
main {
  display: block;
}
/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}
/* Grouping content
   ========================================================================== */
/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */
hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}
/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}
/* Text-level semantics
   ========================================================================== */
/**
 * Remove the gray background on active links in IE 10.
 */
a {
  background-color: transparent;
}
/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */
abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  -webkit-text-decoration: underline dotted;
          text-decoration: underline dotted; /* 2 */
}
/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */
b,
strong {
  font-weight: bolder;
}
/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}
/**
 * Add the correct font size in all browsers.
 */
small {
  font-size: 80%;
}
/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sub {
  bottom: -0.25em;
}
sup {
  top: -0.5em;
}
/* Embedded content
   ========================================================================== */
/**
 * Remove the border on images inside links in IE 10.
 */
img {
  border-style: none;
}
/* Forms
   ========================================================================== */
/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */
button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}
/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */
button,
input { /* 1 */
  overflow: visible;
}
/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */
button,
select { /* 1 */
  text-transform: none;
}
/**
 * Correct the inability to style clickable types in iOS and Safari.
 */
button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}
/**
 * Remove the inner border and padding in Firefox.
 */
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}
/**
 * Restore the focus styles unset by the previous rule.
 */
button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}
/**
 * Correct the padding in Firefox.
 */
fieldset {
  padding: 0.35em 0.75em 0.625em;
}
/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */
legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}
/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */
progress {
  vertical-align: baseline;
}
/**
 * Remove the default vertical scrollbar in IE 10+.
 */
textarea {
  overflow: auto;
}
/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */
[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}
/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}
/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */
[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}
/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */
[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}
/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */
::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}
/* Interactive
   ========================================================================== */
/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */
details {
  display: block;
}
/*
 * Add the correct display in all browsers.
 */
summary {
  display: list-item;
}
/* Misc
   ========================================================================== */
/**
 * Add the correct display in IE 10+.
 */
template {
  display: none;
}
/**
 * Add the correct display in IE 10.
 */
[hidden] {
  display: none;
}
html,
body {
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif;
  color: #1a0200;
  background-color: #fcfafa;
  line-height: 1.6;
}
a {
  color: #e05e52;
}
a:hover {
  color: #d83627;
}
a.keyword {
  text-decoration: none;
  border-bottom: 1px dotted #ddd;
  color: #1a0200;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #333;
  line-height: 1.3;
}
h1 a,
h2 a,
h3 a,
h4 a,
h5 a,
h6 a {
  color: #333;
  text-decoration: none;
}
h1 a:hover,
h2 a:hover,
h3 a:hover,
h4 a:hover,
h5 a:hover,
h6 a:hover {
  color: #d83627;
}
/* ヘッダ（グローバルヘッダ）
  グローバルヘッダの中はiframeですが、
  #globalheader-container に背景色や文字色を指定することでiframeの中にも色が反映されます。
*/
#globalheader-container {
  background-color: #1a0200;
  color: #fcfafa;
}
/* container */
#container,
#footer {
  padding-left: 8px;
  padding-right: 8px;
}
@media (min-width: 768px) {
  #container,
  #footer {
    width: 720px;
    margin: auto;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (min-width: 992px) {
  #container,
  #footer {
    width: 940px;
  }
}
#blog-title,
#content-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
body.page-index #wrapper,
#blog-title-inner,
#box2 {
  padding-left: 8px;
  padding-right: 8px;
}
@media (min-width: 768px) {
  body.page-index #wrapper,
  #blog-title-inner,
  #box2 {
    width: 720px;
    margin: auto;
    padding-left: 0;
    padding-right: 0;
  }
}
@media (min-width: 992px) {
  body.page-index #wrapper,
  #blog-title-inner,
  #box2 {
    width: 940px;
  }
}
body.page-index #wrapper,
#wrapper {
  margin-bottom: 64px;
}
@media (max-width: 600px) {
  body.page-index #wrapper,
  #wrapper {
    width: 100%;
    max-width: 100%;
  }
}
#box2-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 600px) {
  #box2-inner {
    grid-template-columns: 1fr;
  }
}
.hatena-module {
  flex: 1;
}
/* ヘッダ */
#blog-title {
  margin: 2em 0;
  text-align: center;
}
@media (min-width: 768px) {
  #blog-title {
    margin: 3em 0;
    text-align: left;
  }
}
#title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 500;
  color: #e05e52;
}
@media (min-width: 992px) {
  #title {
    font-size: 1.7rem;
  }
}
#title a {
  color: #e05e52;
}
#title::before {
  display: block;
  content: "";
  background: url("https://kosui.hateblo.jp/icon/link");
  width: 48px;
  height: 48px;
  background-size: contain;
  border-radius: 16px;
  padding: 2px;
  box-shadow: 0px 3px 15px 0px hsla(5, 70%, 90%, 0.6);
}
#blog-description {
  font-weight: normal;
  font-size: 0.8rem;
  margin: 1em 0 0;
}
/* ヘッダ画像を設定したとき */
.header-image-enable #blog-title {
  margin: 0 0 2em;
}
.header-image-enable #blog-title-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.header-image-enable #blog-title-content {
  margin-left: 10px;
  margin-right: 10px;
}
/* タイトル下HTML */
#top-editarea {
  margin-bottom: 1em;
}
/* パンくず（カテゴリー、記事ページで表示されます） */
.breadcrumb {
  font-size: 0.9rem;
}
/* entry */
.entry {
  position: relative;
  margin-bottom: 4em;
}
.entry-header {
  padding-bottom: 1em;
  margin-bottom: 2em;
  position: relative;
}
.date {
  margin-bottom: 0.5em;
  font-size: 0.9rem;
}
.date a {
  color: #999;
  text-decoration: none;
}
.date a:hover {
  text-decoration: underline;
}
.entry-title {
  margin: 0 0 0.3em;
  font-size: 1.5rem;
}
@media (min-width: 992px) {
  .entry-title {
    font-size: 1.6rem;
  }
}
.categories {
  margin: 0.5em 0;
  font-size: 0.9rem;
}
.categories a {
  margin-right: 0.5em;
}
/* 「編集する」ボタン */
.entry-header-menu {
  position: absolute;
  top: 0;
  right: 0;
}
/* 記事内の書式 */
.entry-content img,
.entry-content video {
  max-width: 100%;
  height: auto;
}
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  margin: 1em 0 0.8em 0;
}
.entry-content h1 {
  font-size: 1.5rem;
}
@media (min-width: 992px) {
  .entry-content h1 {
    font-size: 1.7rem;
  }
}
.entry-content h2 {
  font-size: 1.4rem;
  border-left: 6px solid #e05e52;
  padding-left: 8px;
}
@media (min-width: 992px) {
  .entry-content h2 {
    font-size: 1.5rem;
  }
}
.entry-content h3 {
  font-size: 1.2rem;
  color: #e05e52;
}
@media (min-width: 992px) {
  .entry-content h3 {
    font-size: 1.3rem;
  }
}
.entry-content h4 {
  font-size: 1.1rem;
}
.entry-content h5 {
  font-size: 1rem;
}
.entry-content h6 {
  font-size: 0.9rem;
}
.entry-content ul,
.entry-content ol,
.entry-content dd {
  margin: 0 0 1em 1.5em;
  padding: 0;
}
.entry-content ul li ul,
.entry-content ul li ol,
.entry-content ol li ul,
.entry-content ol li ol,
.entry-content dd li ul,
.entry-content dd li ol {
  margin-bottom: 0;
}
.entry-content table {
  border-collapse: collapse;
  border-spacing: 0;
  border-bottom: 1em;
  margin-bottom: 1em;
  width: 100%;
  overflow: auto;
  display: block;
  font-size: 0.8rem;
}
@media (min-width: 992px) {
  .entry-content table {
    font-size: 0.9rem;
  }
}
.entry-content table th,
.entry-content table td {
  border: 1px solid #ddd;
  padding: 5px 10px;
}
.entry-content table th {
  background: #f5f5f5;
}
.entry-content blockquote {
  border: 1px solid #ddd;
  margin: 0 0 10px;
  padding: 20px;
}
.entry-content blockquote p:first-of-type {
  margin-top: 0;
}
.entry-content blockquote p:last-of-type {
  margin-bottom: 0;
}
.entry-content pre,
.entry-content code {
  font-family: "Monaco", "Consolas", "Courier New", Courier, monospace, sans-serif;
}
.entry-content pre {
  background: #f5f5f5;
  border: none;
  white-space: pre-wrap;
  text-overflow: clip;
  line-height: 1.3;
  font-size: 0.8rem;
  padding: 10px;
}
.entry-content pre > code {
  margin: 0;
  padding: 0;
  white-space: pre;
  border: none;
  background-color: transparent;
  font-family: "Monaco", "Consolas", "Courier New", Courier, monospace, sans-serif;
}
.entry-content code {
  font-size: 90%;
  margin: 0 2px;
  padding: 0px 5px;
  background-color: #f5f5f5;
  border-radius: 3px;
}
.entry-content hr {
  width: 50%;
  border: 0;
  border: none;
  border-top: 1px solid #ddd;
  margin: 2em auto;
}
.entry-content .table-of-contents {
  padding: 1em 1em 1em 2em;
  margin: 1em 0;
  border: 1px solid #ddd;
}
/* 記事下 */
.entry-footer .social-buttons {
  margin-bottom: 1em;
}
.entry-footer-section {
  color: #999;
  font-size: 0.9rem;
}
.entry-footer-section a {
  color: #999;
}
/* コメント */
.comment-box {
  margin: 1em 0;
}
.comment-box .comment {
  list-style: none;
  margin: 0 0 15px 0;
  padding: 0;
  line-height: 1.7;
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .comment-box .comment {
    font-size: 0.9rem;
  }
}
.comment-box .entry-comment {
  padding: 10px 0 10px 60px;
  border-bottom: 1px solid #ddd;
  position: relative;
}
.comment-box .entry-comment:first-child {
  border-top: 1px solid #ddd;
}
.comment-box .read-more-comments {
  padding: 10px 0;
}
.comment-box .hatena-id-icon {
  position: absolute;
  top: 10px;
  left: 0;
  width: 50px !important;
  height: 50px !important;
  border-radius: 3px;
}
.comment-user-name {
  margin: 0 0 0.4em 0;
  font-weight: bold;
}
.comment-content {
  margin: 0 0 0.4em 0;
  word-wrap: break-word;
  color: #1a0200;
  font-size: 0.85rem;
}
.comment-content p {
  margin: 0 0 0.6em 0;
}
.comment-metadata {
  color: #999;
  margin: 0;
  font-size: 0.8rem;
}
.comment-metadata a {
  color: #999;
}
.leave-comment-title {
  padding: 0.6em 1em;
  font-size: 0.85rem;
  border: 1px solid #ddd;
}
/* Pager */
.pager {
  margin: 2em 0;
  display: flex;
  justify-content: space-between;
}
/* サイドバーモジュール */
.hatena-module {
  box-sizing: border-box;
  margin-bottom: 3em;
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .hatena-module {
    font-size: 0.9rem;
  }
}
.hatena-module-title {
  margin-bottom: 0.6em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #ddd;
  font-size: 1rem;
  font-weight: bold;
}
.hatena-module-title a {
  color: #1a0200;
  text-decoration: none;
}
.hatena-module-title a:hover {
  text-decoration: underline;
}
/* Profile module */
.hatena-module-profile .profile-icon {
  float: left;
  margin: 0 10px 10px 0;
}
.hatena-module-profile .id {
  display: block;
  font-weight: bold;
  margin-bottom: 0.5em;
}
.hatena-module-profile .profile-description p {
  margin-top: 0;
}
/* urllist module */
.hatena-urllist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.hatena-urllist li {
  padding: 0.5em 0;
}
.hatena-urllist li:last-child {
  padding-bottom: 0;
}
.hatena-urllist li a {
  text-decoration: none;
}
.hatena-urllist li a:hover {
  text-decoration: underline;
}
.hatena-urllist .urllist-category-link {
  font-size: 0.7rem;
  padding: 0.1em 0.3em;
}
.hatena-urllist .urllist-date-link a {
  color: #999;
}
.hatena-urllist .urllist-entry-body {
  margin-top: 0.3em;
}
/* Search module */
.hatena-module-search-box .search-form {
  border: 1px solid #ddd;
  border-radius: 3px;
  width: 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.hatena-module-search-box .search-module-input {
  flex: 1 0;
  padding: 5px;
  color: #1a0200;
  background: none;
  border: none;
  outline: none;
  height: 20px;
}
.hatena-module-search-box .search-module-button {
  width: 24px;
  height: 24px;
  margin-right: 5px;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cdefs%3E%3Cstyle%3E.a%7Bfill:none;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3Esearch%3C/title%3E%3Cpath d='M16.7,15l-3.4-3.3h-.1a5.4,5.4,0,0,0,.9-3.1,5.6,5.6,0,1,0-5.6,5.6,5.4,5.4,0,0,0,3.1-.9.1.1,0,0,0,.1.1L15,16.7a1.1,1.1,0,0,0,.8.3,1.6,1.6,0,0,0,.9-.3,1.4,1.4,0,0,0,0-1.7M8.5,12.3A3.8,3.8,0,0,1,4.8,8.5,3.8,3.8,0,0,1,8.5,4.7a3.9,3.9,0,0,1,3.8,3.8,3.8,3.8,0,0,1-3.8,3.8'/%3E%3Crect class='a' width='20' height='20'/%3E%3C/svg%3E") no-repeat center;
  background-size: 20px 20px;
  border: none;
  outline: none;
  color: transparent;
  overflow: hidden;
  opacity: 0.5;
  cursor: pointer;
}
.hatena-module-search-box .search-module-button:hover {
  opacity: 0.85;
}
/* About ページ */
.page-about .entry-content dt {
  font-weight: bold;
  border-bottom: 1px solid #ddd;
  margin-bottom: 0.5em;
}
.page-about .entry-content dd {
  margin-left: 0;
  margin-bottom: 2em;
}
/* Archive */
.archive-header-category {
  text-align: center;
}
.page-archive .archive-entries {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0px;
}
@media (max-width: 600px) {
  .page-archive .archive-entries {
    grid-template-columns: 1fr;
  }
}
.page-archive .archive-entry {
  display: grid;
  margin: 0;
  padding: 24px;
  line-height: 1.3;
  grid-template-columns: 320px 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .page-archive .archive-entry {
    grid-template-columns: 1fr;
  }
}
.page-archive .archive-entry header.entry-header {
  margin: 0;
  padding: 0;
}
.page-archive .archive-entry .social-buttons,
.page-archive .archive-entry .entry-content,
.page-archive .archive-entry .entry-footer-section,
.page-archive .archive-entry .entry-description {
  display: none !important;
}
.page-archive .archive-entry .archive-entry-header {
  grid-row: 1/3;
  grid-column: 2/4;
}
@media (max-width: 600px) {
  .page-archive .archive-entry .archive-entry-header {
    grid-row: 2/3;
    grid-column: 1/2;
  }
}
.page-archive .archive-entry::after {
  display: none;
}
.page-archive .archive-entry .archive-entry-body {
  display: none;
}
.page-archive .archive-entry .categories {
  grid-row: 2/3;
  grid-column: 2/3;
}
.page-archive .entry-title {
  margin: 0.3em auto;
}
.page-archive .entry-thumb-link {
  position: relative;
  grid-row: 1/3;
  grid-column: 1/2;
}
@media (max-width: 600px) {
  .page-archive .entry-thumb-link {
    grid-row: 1/2;
    grid-column: 1/2;
  }
}
.page-archive .entry-thumb-link::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}
.page-archive .entry-thumb {
  width: 100%;
  height: 100%;
  background-size: cover;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 8px;
}
.page-archive .entry-thumb:hover,
.page-archive .entry-thumb:focus {
  border: 2px solid #e05e52;
}
.page-archive .entry-description {
  margin: 0;
  font-size: 0.85rem;
}
@media (min-width: 768px) {
  .page-archive .entry-description {
    font-size: 0.9rem;
  }
}
.page-archive .social-buttons {
  display: block;
  margin-top: 0.3em;
}
/* footer */
#footer {
  margin-top: 2em;
  padding-bottom: 2rem;
  text-align: center;
  font-size: 0.8rem;
  color: #999;
}
#footer a {
  color: #999;
}
#footer p {
  margin: 0.5em auto;
}
/* code boxの見た目 */
/* ソースコードのフォントはちょっと小さめにする */
.entry-content pre {
  font-size: 90%;
}
.entry-content pre.code.mermaid {
  background: none;
  border: none;
  padding: 0;
}
.entry-content pre.code.mermaid[data-lang=mermaid]:before {
  content: none;
}
.entry-content pre .code-line {
  counter-increment: linenumber;
}
.entry-content pre .code-line::before {
  content: counter(linenumber);
  display: inline-block;
  color: #ccc;
  text-align: right;
  width: 32px;
  padding: 0 16px 0 0;
}
.entry-content pre.code:before {
  width: 99%;
  content: attr(data-lang);
  display: inline-block;
  background: #454545;
  color: #fff;
  padding: 0.5px 0px;
  padding-left: 1%;
  border-radius: 4px 4px 0 0;
  position: absolute;
  margin-left: -8px;
  margin-top: -32px;
}
.entry-content pre.code {
  padding-top: 32px !important;
  background-color: #272822;
  color: #f8f8f2;
}
.entry-content pre .synComment {
  color: #75715e;
}
.entry-content pre .synSpecial {
  color: #e6db74;
}
.entry-content pre .synType {
  color: #66d9ef;
}
.entry-content pre .synPreProc {
  color: #f92672;
}
.entry-content pre .synStatement {
  color: #f92672;
}
.entry-content pre .synIdentifier {
  color: #f8f8f2;
}
.entry-content pre .synConstant {
  color: #ae81ff;
}
#content {
  border-radius: 8px;
  padding: 24px;
}
@media (max-width: 600px) {
  #content {
    margin: 0;
    padding: 8px;
  }
}
body.page-index #content {
  box-shadow: none;
  padding: 0;
  background: transparent;
}