/*******************************************************************************
 \file      AdditionalCSS.css
 \author    SENOO, Ken
 \copyright CC0
 \date      Created: 2018-03-22T20:23+09:00
 \date      Updated: 2020-02-22T03:41+09:00
*******************************************************************************/

.veu_autoEyeCatchBox {
	text-align: center;
}

p {
  text-indent: 1em;
  word-break: break-all;
  margin-bottom: 0.5em;
}
li {
  margin-bottom: 0;
}

article em, article strong {
  color: red;
  font-weight: bold;
}
article strong {background-color: yellow;}

h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  color: inherit !important;
}

/** Reset **/
h1.entry-title::first-letter, .single h1.entry-title::first-letter {
	color: black;
}

ul, ol {
  padding-left: 2em;
}

pre {
  overflow: auto;
}

/** Line number for source code **/
pre>code, pre>samp {
  display: block;
  white-space: pre;
  border-style: none;
  position: relative;
  padding-left: 3em;
  overflow-x: auto;
}

pre>code::before, pre>samp::before {
  content:
  "0001000200030004000500060007000800090010001100120013001400150016001700180019002000210022002300240025002600270028002900300031003200330034003500360037003800390040004100420043004400450046004700480049005000510052005300540055005600570058005900600061006200630064006500660067006800690070007100720073007400750076007700780079008000810082008300840085008600870088008900900091009200930094009500960097009800990100010101020103010401050106010701080109011001110112011301140115011601170118011901200121012201230124012501260127012801290130013101320133013401350136013701380139014001410142014301440145014601470148014901500151015201530154015501560157015801590160016101620163016401650166016701680169017001710172017301740175017601770178017901800181018201830184018501860187018801890190019101920193019401950196019701980199020002010202020302040205020602070208020902100211021202130214021502160217021802190220022102220223022402250226022702280229023002310232023302340235023602370238023902400241024202430244024502460247024802490250025102520253025402550256025702580259026002610262026302640265026602670268026902700271027202730274027502760277027802790280028102820283028402850286028702880289029002910292029302940295029602970298029903000301030203030304030503060307030803090310031103120313031403150316031703180319032003210322032303240325032603270328032903300331033203330334033503360337033803390340034103420343034403450346034703480349035003510352035303540355035603570358035903600361036203630364036503660367036803690370037103720373037403750376037703780379038003810382038303840385038603870388038903900391039203930394039503960397039803990400040104020403040404050406040704080409041004110412041304140415041604170418041904200421042204230424042504260427042804290430043104320433043404350436043704380439044004410442044304440445044604470448044904500451045204530454045504560457045804590460046104620463046404650466046704680469047004710472047304740475047604770478047904800481048204830484048504860487048804890490049104920493049404950496049704980499050005010502050305040505050605070508050905100511051205130514051505160517051805190520052105220523052405250526052705280529053005310532053305340535053605370538053905400541054205430544054505460547054805490550055105520553055405550556055705580559056005610562056305640565056605670568056905700571057205730574057505760577057805790580058105820583058405850586058705880589059005910592059305940595059605970598059906000601060206030604060506060607060806090610061106120613061406150616061706180619062006210622062306240625062606270628062906300631063206330634063506360637063806390640064106420643064406450646064706480649065006510652065306540655065606570658065906600661066206630664066506660667066806690670067106720673067406750676067706780679068006810682068306840685068606870688068906900691069206930694069506960697069806990700070107020703070407050706070707080709071007110712071307140715071607170718071907200721072207230724072507260727072807290730073107320733073407350736073707380739074007410742074307440745074607470748074907500751075207530754075507560757075807590760076107620763076407650766076707680769077007710772077307740775077607770778077907800781078207830784078507860787078807890790079107920793079407950796079707980799080008010802080308040805080608070808080908100811081208130814081508160817081808190820082108220823082408250826082708280829083008310832083308340835083608370838083908400841084208430844084508460847084808490850085108520853085408550856085708580859086008610862086308640865086608670868086908700871087208730874087508760877087808790880088108820883088408850886088708880889089008910892089308940895089608970898089909000901090209030904090509060907090809090910091109120913091409150916091709180919092009210922092309240925092609270928092909300931093209330934093509360937093809390940094109420943094409450946094709480949095009510952095309540955095609570958095909600961096209630964096509660967096809690970097109720973097409750976097709780979098009810982098309840985098609870988098909900991099209930994099509960997099809991000";

  display: block;
  width: 2.7em;
  height: 100%;
  position: absolute;
  left: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-all;
  overflow-y: hidden;
  border-right: 1px solid;
}


/** Section **/
main article {counter-reset: heading1;}
main article>header>h1:first-of-type,
main article>header>h2:first-of-type,
main article>header>h3:first-of-type,
main article>header>h4:first-of-type,
main article>header>h5:first-of-type,
main article>header>h6:first-of-type {
  counter-reset: heading1;
  font-size: 2.2em !important;
  font-weight: bold !important;
  padding-left: 0.5em;
  border-top: 1px solid;
  border-bottom: 1px solid;
  border-left: 6px solid;
  border-right: 6px solid;
  border-color: hsl(0, 0%, 80%);
}
main section>h1:first-of-type,
main section>h2:first-of-type,
main section>h3:first-of-type,
main section>h4:first-of-type,
main section>h5:first-of-type,
main section>h6:first-of-type {
  counter-increment: heading1; counter-reset: heading2 figure table listing;
  font-size: 2.0em;
  padding-left: 0.5em;
  background-color: blue;
  background-image: linear-gradient(hsla(0,0%,100%,0.9), hsla(0,0%,100%,0.9));
  border-bottom: 1px solid;
  border-left: 6px solid;
  border-color: hsl(0, 0%, 80%);
}
main section>h1:first-of-type::before,
main section>h2:first-of-type::before,
main section>h3:first-of-type::before,
main section>h4:first-of-type::before,
main section>h5:first-of-type::before,
main section>h6:first-of-type::before {
  content: counter(heading1) " ";
}

main section>section>h1:first-of-type,
main section>section>h2:first-of-type,
main section>section>h3:first-of-type,
main section>section>h4:first-of-type,
main section>section>h5:first-of-type,
main section>section>h6:first-of-type {
  counter-increment: heading2; counter-reset: heading3;
  font-size: 1.8em;
  padding-left: 0.5em;
  border-bottom: 1px solid;
  border-left: 6px solid;
  border-color: hsl(0, 0%, 80%);
}
main section>section>h1:first-of-type::before,
main section>section>h2:first-of-type::before,
main section>section>h3:first-of-type::before,
main section>section>h4:first-of-type::before,
main section>section>h5:first-of-type::before,
main section>section>h6:first-of-type::before {
  content: counter(heading1) "." counter(heading2) " ";
}

main section>section>section>h1:first-of-type,
main section>section>section>h2:first-of-type,
main section>section>section>h3:first-of-type,
main section>section>section>h4:first-of-type,
main section>section>section>h5:first-of-type,
main section>section>section>h6:first-of-type {
  counter-increment: heading3; counter-reset: heading4;
  font-size: 1.6em;
  padding-left: 0.5em;
  border-left: 6px solid;
  border-color: hsl(0, 0%, 80%);
}
main section>section>section>h1:first-of-type::before,
main section>section>section>h2:first-of-type::before,
main section>section>section>h3:first-of-type::before,
main section>section>section>h4:first-of-type::before,
main section>section>section>h5:first-of-type::before,
main section>section>section>h6:first-of-type::before {
  content: counter(heading1) "." counter(heading2) "." counter(heading3) " ";
}

main section>section>section>section>h1:first-of-type,
main section>section>section>section>h2:first-of-type,
main section>section>section>section>h3:first-of-type,
main section>section>section>section>h4:first-of-type,
main section>section>section>section>h5:first-of-type,
main section>section>section>section>h6:first-of-type {
  counter-increment: heading4; counter-reset: heading5;
  padding-left: 0.5em;
  font-size: 1.4em;
}
main section>section>section>section>h1:first-of-type::before,
main section>section>section>section>h2:first-of-type::before,
main section>section>section>section>h3:first-of-type::before,
main section>section>section>section>h4:first-of-type::before,
main section>section>section>section>h5:first-of-type::before,
main section>section>section>section>h6:first-of-type::before {
  content: counter(heading1) "." counter(heading2) "." counter(heading3) "."
           counter(heading4) " ";
}

/** Table **/
caption::before {
  content: "表：";
}
caption {
	caption-side: top;
  padding-top: 0;
  padding-bottom: 0;
}

tbody>tr:nth-of-type(even) {
  background: hsla(60, 100%, 50%, 0.5);
}
thead>tr>th {
  background: hsla(30, 100%, 50%, 0.5);
  text-align: center;
  font-weight: bold;
  color: white;
}

td>ul, td>ol {
  margin-top: 0;
  margin-bottom: 0;
}

/** Figure **/
figure>figcaption::before {
  content: "図：";
}
figure>figcaption:first-child {
  margin-top: 0.5em;
}
figure {
  text-align: center;
}
/** List **/
figure pre~figcaption::before,
figure figcaption:first-child::before {
  counter-increment: listing;
  content: "リスト：";
}
/** Blockquote **/
figure blockquote~figcaption::before {
  content: "—";
}

/** Description box **/
/*** Reset ***/
figure.alert {
  padding: 0;
  border: 0;
}

/*** Base color ***/
.alert {
  background-color: red;
}
.example {
  background-color: green;
}
.structure {
  background-color: blue;
}
.alert, .example, .structure {
  background-image: linear-gradient( hsla( 0,0%,100%,0.2 ), hsla( 0,0%,100%,0.2 ) );
}

/** Theme block **/
figure.structure pre~figcaption::before,
figure.structure figcaption:first-child::before,
figure.alert pre~figcaption::before,
figure.alert figcaption:first-child::before,
figure.example pre~figcaption::before,
figure.example figcaption:first-child::before {
  content: none;
}

figure.structure figcaption,
figure.alert figcaption,
figure.example figcaption {
  text-align: left;
}


figure.structure,
figure.alert,
figure.example {
  border-radius: 0.3em;
}

figure.structure figcaption,
figure.alert figcaption,
figure.example figcaption {
  color: white;
  font-weight: bold;
  text-indent: 1em;
  text-align: left;
}

figure.structure figcaption~*,
figure.alert figcaption~*,
figure.example figcaption~* {
  background-image: linear-gradient( hsla( 0,0%,100%,0.9 ), hsla( 0,0%,100%,0.9 ) );
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 0.1em;
  padding-bottom: 0.1em;
}

caption, figcaption {
  text-align: center;
  font-family: "TeX Gyre Heros", "FreeSans", "Migu 1P", "TakaoGothic", "VL Gothic", "Yu Gothic", "Meiryo UI", sans-serif;
}

figure * {
  text-align: left;
}

figure>figcaption {
  text-align: center;
}

figure>figcaption:last-child {
  text-align: center;
}
figure>blockquote+figcaption:last-child {
  text-align: right;
}

figure>figcaption+* {
  margin-top: 0;
}
