@font-face {
  font-family: "DotGothic16";
  src: url("../fonts/DotGothic16-Regular.ttf") format("truetype");
  font-display: block;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  src: url("../fonts/ZenKakuGothicNew-Medium.ttf") format("truetype");
  font-display: block;
}

.page {
  background-image: url("../images/background-body.png");
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  color: #222;
  font-family: "DotGothic16", sans-serif;
}

.page.section-header {
  background-image: url("../images/background-title.png");
}

.page code, .page pre {
  font-family: "DotGothic16", monospace;
}

/* 右下のフッターロゴ */
.page::before {
  content: '';
  position: absolute;
  right: 40px;
  bottom: 30px;
  width: 420px;
  height: 35px;
  background-image: url("../images/logo-footer.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: right bottom;
  pointer-events: none;
}

.page::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background-image: url("../images/h3_pattern.svg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: bottom left;
}

.page:not(:has(.page-header)) .page-content {
  top: 45%;
}

#cover {
  background-image: url("../images/background-title.png");
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
}

/* カバー上部: 赤・青のボーダー（background-body.png と同じ位置・太さをCSSで描画）
   赤: 上から 1.85%〜2.5% / 青: 11.76%〜12.4%（スライド高さ比） */
#cover::before {
  content: '';
  position: absolute;
  top: 1.85%;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 10.55%;
  box-sizing: border-box;
  background:
    linear-gradient(#e8404b, #e8404b) top / 100% 6.2% no-repeat,
    linear-gradient(#5f7cb8, #5f7cb8) bottom / 100% 6.2% no-repeat,
    transparent;
  pointer-events: none;
}

/* ボーダーの間にタイトルロゴ */
#cover::after {
  content: '';
  position: absolute;
  top: 3.6%;
  left: 0;
  right: auto;
  bottom: auto;
  width: 100%;
  height: 7%;
  background-image: url("../images/logo-footer.png");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: left 100px center;
  pointer-events: none;
}

#cover .page-header {
  top: 24%;
}

.slide .page-header {
  margin-top: 22px;
  width: 80%;
  left: 0;
  right: 0;
  margin-left: auto;
  margin-right: auto;
}

h1 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  font-size: 180%;
  color: #202020;
}

h2 {
  font-family: "Zen Kaku Gothic New", sans-serif;
  color: #202020;
  padding: 13px 13px 13px 100px;
  box-sizing: border-box;
  text-align: left;
  position: relative;
}

h2 code {
  font-size: 1em;
}

h2::before {
  content: '';
  position: absolute;
  top: 58%;
  left: 8px;
  width: 80px;
  height: 80px;
  background-image: url("../images/ruby.png");
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(-50%);
  image-rendering: pixelated;
}

#cover .page-content {
  position: relative;
  margin-top: 3em;
}

#cover .author {
  position: relative;
  float: right;
  right: 3em;
}

#cover .icon {
  position: relative;
  left: 30em; 
}

.picoride {
  font-size: 160%;
}

img {
  margin: 200px auto 0;
  display: block;
  width: 90%;
}

#cover .icon img {
  margin: 0;
  width: 128px;
}

#picoride .strong {
  color: red;
  font-size: 140%;
}

.twitter img {
  margin-top: 150px;
  width: 50%;
}

.picoride_icon img {
  margin-top: 8em;
  display: block;
  width: 20%;
}

.whats_druby img {
  margin: auto;
  display: block;
  width: 80%;
}

.No_need_JSON_API img {
  margin: auto;
  display: block;
  width: 80%;
}

.Share_objects img {
  margin: auto;
  display: block;
  width: 80%;
}

.gibier2 img {
  margin: auto;
  display: block;
  width: 75%;
}

.center {
  text-align: center;
  font-size: 120%;
  margin-top: 2em;
}

a:link {
  color: #48e;
  text-decoration: none;
}

a:visited {
  color: #48e;
  text-decoration: none;
}

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

a:active {
  color: #48e;
  text-decoration: none;
}

.page td, .page th {
  padding: 10px 30px;
}

.page th {
  color: #fff;
  background: #333;
}

.page table tr:nth-child(odd) {
  background: #eee;
}

.page table tr:nth-child(even) {
  background: #fff;
}

.page pre.highlight {
  font-size: 0.6em;
  padding: 0.5em;
  border-radius: 0 0.3em 0.3em 0.3em;
}

.page p:has(.file-ref) {
  display: inline-block;
  background-color: #282c34;
  color: #abb2bf;
  font-size: 0.5em;
  padding: 0.3em 0.8em;
  margin-bottom: 0;
  border-radius: 0.3em 0.3em 0 0;
}

.page p:has(.file-ref) .file-ref {
  color: #e6c07b;
}

.page p:has(.file-ref) + pre.highlight {
  margin-top: 0;
}

.page ul {
  list-style: none;
  padding-left: 3em;
}

.page ul li {
  position: relative;
  padding-left: 0.5em;
  margin: 36px 0;
}

.page ul li::before {
  content: '';
  position: absolute;
  left: -1.2em;
  top: 0.15em;
  width: 0.9em;
  height: 0.9em;
  background-image: url("../images/bullet-1.png");
  background-size: contain;
  background-repeat: no-repeat;
  image-rendering: pixelated;
}

.page ul ul li::before {
  background-image: url("../images/bullet-2.png");
}


