@import url("https://fonts.googleapis.com/css2?family=BIZ+UDPGothic:wght@400;700&family=Noto+Color+Emoji&display=swap");
@import url("/styles/modern-normalize.css");

/* フォント指定 */
/* font-family */
@font-face {
  font-family: "LINESeedJP Sub";
  src: url("/font/LINESeed_Subset_Bar_Rg.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif Hentaigana";
  src: url("/font/NotoSerifHentaigana[wght].woff2") format("woff2");
}

/* honkitリンクを隠す */
.book-summary ul.summary li a.gitbook-link {
  display: none;
}

.divider {
  display: none;
}

/* 全体 */
body {
  font-family: "LINESeedJP Sub", "BIZ UDPGothic", "Noto Color Emoji",
    "Noto Serif Hentaigana", sans-serif;
  letter-spacing: 0;
  position: relative;
  max-width: 1360px;
  width: 100%;
  height: 100%;
  margin-left: auto;
  margin-right: auto;
}

.book-body {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding-bottom: 0px;
}

@media screen and (min-width: 1360px) {
  .book-body {
    left: 300px;
  }
}

@media screen and (max-width: 1240px) {
  .book-body {
    padding-bottom: 0px;
  }
}

.book-body .body-inner {
  position: relative;
  min-height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-y: auto;
  scroll-padding-top: 48px;
}

/** ヘッダー */
.book-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  position: sticky;
  top: 0;

  background: #fff;
  width: 100%;
  max-width: 800px;
  height: 48px;
  font-family: "LINESeedJP Sub", "BIZ UDPGothic", "Noto Color Emoji",
    "Noto Serif Hentaigana", sans-serif;
}

@media screen and (min-width: 1360px) {
  .book-header {
    justify-content: center;
  }
}

.book-header h1 {
  display: flex;
  padding: 0;
  opacity: 1;
}

@media screen and (max-width: 1000px) {
  .book-header h1 {
    display: block;
  }
}

/* サイドバー出し入れボタン */
.book-header .btn {
  /* 横幅1360pxより大きい場合 */
  display: none;
  justify-content: center;
  align-items: center;
}

@media screen and (max-width: 1360px) {
  .book-header .btn {
    display: flex;
  }
}

.js-toolbar-action i {
  font-size: 24px;
  color: #333;
}

/* サイドバー */
.book-summary {
  font-family: "LINESeedJP Sub", "BIZ UDPGothic", "Noto Serif Hentaigana",
    sans-serif;
  font-size: 14px;
  border-left: 1px solid rgba(0, 0, 0, 0.07);
}

/* 1360px以上の画面幅ではサイドバーを左に固定 */
@media screen and (min-width: 1360px) {
  .book-summary {
    left: 0px;
  }
}

/* ナビゲーション */
.bottom-navigation {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, calc(50% - 2px));
  width: 100%;
  max-width: 800px;
  gap: 4px;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 12px;
}

.bottom-navigation a {
  border: 1px solid #ccc;
  border-radius: 4px;
  display: block;
  width: 100%;
  height: 100%;
  line-height: 1.5;
  padding: 1em;
  color: #364149;
  background-color: #fff;
}

.bottom-navigation__title {
  display: inline-block;
  font-weight: bold;
  white-space: nowrap;
  max-width: 100%;
  max-height: 21px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* prev */
.bottom-navigation a.prev {
  grid-column: 1/2;
  text-align: left;
}

/* next */
.bottom-navigation a.next {
  grid-column: 2/3;
  text-align: right;
}

/* 本文 */
.page-wrapper,
.page-inner {
  width: 100%;
}

.markdown-section {
  font-size: 14px;
  line-height: 1.8;
}

.markdown-section ul,
.markdown-section ol {
  margin-bottom: 0.85em;
}

.markdown-section ol ol {
  margin-bottom: 0;
  list-style-type: lower-alpha;
}

.markdown-section ol ol ol {
  margin-bottom: 0;
  list-style-type: lower-roman;
}

.markdown-section rt {
  font-size: 10px;
}

/* 768px以上の画面幅の場合 */
@media (min-width: 768px) {
  /* サイドバー */
  .book-summary {
    font-size: 16px;
  }

  .book-summary ul.summary li a,
  .book-summary ul.summary li span {
    padding: 0.75em 2em;
  }

  .markdown-section {
    font-size: 16px;
    line-height: 1.7;
  }
}

/* aside */
aside {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;

  padding: 1em;
  column-gap: 1em;

  width: 100%;
  border-radius: 8px;

  margin: 1em 0;
}

aside.error {
  background-color: #ffeceb;
}

aside.success {
  background-color: #e6ffed;
}

aside.info {
  background-color: #e8f5fe;
}

/* aside内アイコン */
aside.error div.icon {
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  mask-image: url("/svg/error.svg");
  background-color: rgb(201, 55, 44);
}

aside.success div.icon {
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  mask-image: url("/svg/success.svg");
  background-color: rgb(56, 142, 60);
}

aside.info div.icon {
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  mask-image: url("/svg/info.svg");
  background-color: rgb(41, 98, 255);
}
