.bluesky img
{
  height: 28px;
  max-height: 32px;
}
.bluesky:hover
{
  opacity: .8;
}

li p {
  margin-bottom: .5rem;
}

.code-block-header {
  position: relative;
}

.code-block-header::before {
  content: attr(data-lang);
  background: #eee;
  color: #888;
  display: block;
  font-size: 13px;
  padding: 5px 10px;
  position: absolute;
  top: 0;
  left: 0;
  width: calc(100% - 75px);
  min-width: 220px;
  max-width: fit-content;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 1;
}

pre.code-block-header code.hljs{
  padding-top: 3em;
}

pre code.hljs {
  padding:1rem 1rem 1rem 0;
  white-space: inherit;
}

.hljs, code {
  background: #f5f5f5;
  font-size: 0.875rem;
}

code {
  padding: 3px 5px;
  white-space: pre-wrap;
}

pre{
  position:relative;
}

pre{
    counter-reset: rowNumber;
}
pre span.row-number{
    counter-increment: rowNumber;
}
pre span.row-number::before { 
  content: counter(rowNumber);
  width: 2.5rem;
  display: inline-block;
  color: #ddd;
  text-align: center;
  border-right: 1px solid #eee;
  margin-right: 1rem;
}

.copy-button{
  color:#888;
  font-size:.6rem;
  font-style: normal;
  display:inline-block;
  padding:5px 10px;
  margin-right:0px;
  border:none;
  cursor: pointer;
  background: #f5f5f5;
  transition: all .2s ease;
  position:absolute;
  right:0;
  top:0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  z-index: 0;
}
.copy-button.success{border-color:#00C851;background-color:#c8e6c9;color:#007E33;}
.copy-button.failed{border-color:#ff4444;background-color:#ffcdd2;color:#CC0000;}
.copy-button:hover{
  box-shadow:0px 2px 5px 0px rgba(0,0,0,0.1), 0px 2px 5px 0px rgba(0,0,0,0.1);
}



.hljs-ln {
  line-height: 1.4;
  margin-bottom: 5px;
  font-size: 0.875rem;
}
.hljs-ln td {
  padding: 0;
  border: none;
}
.hljs-ln td.hljs-ln-numbers {
  color: rgba(0, 0, 0, .2);
  width: 30px;
  min-width: 30px;
  border-right: 1px solid #eee;
  padding-right: 10px;
  text-align: center;
}
.hljs-ln td.hljs-ln-code {
  padding-left: 10px;
  padding-right: 30px;
}

html {
  scroll-padding-top: 100px; /* 固定ヘッダの高さ分 */
}

body {
  color: #0c1e29;
  -webkit-text-size-adjust: 100%;
}

header {
  height: 90px;
}
.scroll header {
  height: 70px;
  padding: 15px 0;
}
header .drawer-trigger .drawer-svg {
  margin-top: 0px;
}
header nav ul li {
  height: 30px;
}
#content {
  padding: 100px 15px 0;
}

header .blog-logo a {
  font-weight: 600;
}

header .blog-logo a img:hover {
  opacity: .8;
}
header .blog-logo a:hover {
  color: #3c86dc;
  text-decoration: none;
}

input, textarea {
  border-radius: 3px;
}

.modal .bookmark-container {
  border-radius: 3px;
}

::placeholder {
  color: #666;
  font-size: 13px;
}

.read-later {
  color: #929292;
}

.modal .item {
  padding: 15px 30px 15px 15px;
}

.intro p {
  /*border-bottom: 1px solid #dddede;*/
  padding: 0 0 20px;
}

.post-coverImage img {
  object-fit: cover;
  height: 170px;
  width: 100%;
  margin-bottom: 10px;
  object-position: center;
}

a.post-title h2:hover {
  color: #3c86dc;
}
a.post-title h2 {
  transition: all 0.3s ease-in-out;
}
a.post-title:hover,
a.post-title:focus {
  color: #3c86dc;
  text-decoration: none;
}

li + Li.nav-item {
  margin-top: 0;
}

.author {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 15px;
}

.author small {
  font-size: 80%;
}

.author .social li a {
  font-size: 1.5rem;
}

.info {
  background-color: #d9edf7;
/*  background-color: #CFF4FC;*/
  padding: 1rem;
  border-radius: 3px;
  margin: 1rem 0px 1rem;
  line-height: 1.313;
}

.warn {
/*  background-color: #fcf8e3;*/
  background-color: #FFF3CD;
  padding: 1rem;
  border-radius: 3px;
  margin: 1rem 0px 1rem;
  line-height: 1.313;
}

.alert {
/*  background-color: #f2dede;*/
  background-color: #F8D7DA;
  padding: 1rem;
  border-radius: 3px;
  margin: 1rem 0px 1rem;
  line-height: 1.313;
}

.listBox {
  background-color: #f6f8fa;
  padding: 1rem;
  border-radius: 3px;
  margin: 1rem 0px 1rem;
}
.listBox ul {
  padding: 0;
  margin: 0;
  list-style:none;
}
.listBox ol {
  margin-bottom: 0;
}

.info h4,
.info h5,
.warn h4,
.warn h5,
.alert h4,
.alert h5 {
  margin-top: 0px;
  margin-bottom: .5rem;
  font-weight: 600;
  line-height: 1.25;
}

.info br,
.warn br,
.alert br {
  margin-bottom: 10px;
}

video {
  display: inline-block;
  vertical-align: baseline;
  border-radius: 5px;
  height: auto;
  margin: 0.4em auto 0.8em;
  max-width: 100%;
}

.g-recaptcha > div {
  margin: 0 auto;
}

.repo-card .content p {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, YakuHanJPs, "IBM Plex Sans JP", YuGothic, "Yu Gothic", "Hiragino Sans", "Noto Sans CJK JP", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Sans Emoji";
}

.modal h3.title {
  font-size: 1.125em;
}

.modal-content h2 {
  font-size: 1.125em;
  border: none;
}

.modal .bookmark-container .no-bookmarks {
  font-size: 13px;
  padding: 15px;
}

h1 {
  font-size: 1.5em
}

h2 {
  font-size: 1.375em
}

h3 {
  font-size: 1.25em
}

h4 {
  font-size: 1.125em
}

h5 {
  font-size: 1em
}

h6 {
  font-size: 1em
}

h1.post-title {
  margin-bottom: 0.3em;
  font-size: 1.75em;
}

@media (max-width: 767px) {
  h1.post-title {
    font-size: 1.5em;
  }
}

h1.blog-logo {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: initial;
}

.plugin.plugin-search .plugin-content {
  display: flex;
  gap: 5px;
}
.plugin.plugin-search .plugin-content input[type="button"] {
  flex-basis: 100px;
}
.btn-primary:hover {
  background: none;
}

.editor-content-static {
  margin-bottom: 0px;
  margin-top: 38px;
  padding-bottom: 0px;
}

.editor-content-static ol, .editor-content-static ul {
  color: #41484c;
  padding-left: 10px;
  margin-left: 10px;
}

.editor-content a[href^="http"]:after,
.editor-content a[href^="//"]:after,
.editor-content-static a[href^="http"]:after,
.editor-content-static a[href^="//"]:after {
  margin: 0 3px;
  font-family: "Font Awesome 6 Free";
  content: '\f08e';
  font-weight: 900;
}
.editor-content a[href^="https://hattantoco.com/"]:after,
.editor-content a[href^="https://github.com/HATTANTOCO/"]:after,
.editor-content-static a[href^="https://hattantoco.com/"]:after,
.editor-content-static a[href^="https://github.com/HATTANTOCO/"]:after {
  margin: inherit;
  font-family: inherit;
  content: '';
  font-weight: inherit;
}

/* colorBoxの画面縦中央レイアウトのため */
.lightbox {
  transform: translateY(50vh) translateY(-50%) translateY(-30px);
}