@charset "UTF-8";

/*
    カラーリングに関係ない共通設定
 */

 /* scrollbar */
pre.prism::-webkit-scrollbar{
    height: 8px;
}
pre.prism::-webkit-scrollbar-track{
    background: #f7f7f7;
    border:none;
}
pre.prism::-webkit-scrollbar-thumb{
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}


/* code wrapper*/
.hcb_wrap{
    position: relative;
    margin: 2em 0;
}

/* pre code */
.hcb_wrap code.prism,
.hcb_wrap pre.prism {
	text-align: left;
	white-space: pre;
	word-spacing: normal;
	word-break: normal;
	word-wrap: normal;
	-moz-tab-size: 4;
	-o-tab-size: 4;
	tab-size: 4;
	-webkit-hyphens: none;
	-moz-hyphens: none;
	-ms-hyphens: none;
	hyphens: none;
	border: none;
}

.hcb_wrap pre.prism{
    -webkit-overflow-scrolling: touch;
    line-height: 1;
    border-radius: 0;
    font-family: Menlo, monospace, Consolas, 'メイリオ', sans-serif;
    margin: 0;
    padding: 1.6em;
    overflow-x: auto;
    box-sizing: border-box;
	position: static;
	letter-spacing: 0.01em;
}

.hcb_wrap pre.prism code,
.hcb_wrap  pre.prism span{
    font-family: inherit;
    font-size: inherit;
    line-height: 1.6;
    box-sizing: border-box;
}


/* Inline code */
:not(pre) > code.prism {
	padding: .1em;
	border-radius: .3em;
	white-space: normal;
}


/* line highlight */

.hcb_wrap .line-highlight {
	position: absolute;
	left: 0;
	right: 0;
	padding: 0;
	margin-top: 1.6em; /* Same as .prism’s padding-top */
	pointer-events: none;
	line-height: inherit;
    white-space: pre;
    font-size: inherit
}

.hcb_wrap .line-highlight:before,
.hcb_wrap .line-highlight[data-end]:after {
	content: attr(data-start);
	position: absolute;
	top: 0em;
	left: 0em;
	min-width: 1.6em;
    padding: 1px 2px;
    font-weight: bold;
    font-size: 12px;
    line-height: inherit;
	text-align: center;
    vertical-align: .3em;
    vertical-align: middle;
	border-radius: 0px;
    text-shadow: none;
    box-sizing: border-box;
}

.hcb_wrap .line-highlight[data-end]:after {
	content: attr(data-end);
	top: auto;
	bottom: 0em;
}

.hcb_wrap .line-numbers .line-highlight:before,
.hcb_wrap .line-numbers .line-highlight:after {
	content: none;
}

/* line numbers */
.hcb_wrap pre.prism.line-numbers {
	position: static;  /* relative -> hcb_wrap */
	padding-left: 3.8em;
	counter-reset: linenumber;
}

.hcb_wrap pre.prism.line-numbers > code {
	position: relative;
	white-space: inherit;
}

.hcb_wrap .line-numbers .line-numbers-rows {
	position: absolute;
	pointer-events: none;
	top: -2px;
	font-size: inherit;
	left: -3.8em;
	width: 3em;  /* works for line-numbers below 1000 lines */
	letter-spacing: -1px;
	-webkit-user-select: none;
	-moz-user-select: none;
	-ms-user-select: none;
	user-select: none;
}

.hcb_wrap .line-numbers-rows > span {
	pointer-events: none;
	display: block;
	counter-increment: linenumber;
}

.hcb_wrap .line-numbers-rows > span:before {
	content: counter(linenumber);
	display: block;
	padding-right: 0.8em;
	text-align: right;
}

/* Lang Name */
.hcb_wrap pre::before{
  content: attr(data-lang);
  position: absolute;
  top: 0px;
  right: 0;
  display: block;
  width: max-content;
  min-width: 4em;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  padding: 0 .8em;
  font-family: Arial, Helvetica, sans-serif;
  box-sizing: border-box;
}