/* This file is kept intentionally blank inside the jekyll-github-theme
 * It gets imported at the end of custom.css
 * Its purpose is for users of the theme to be able to add css rules from a blank file
 *   these get simply added to the ones already active in the layout.
 */

/* Font settings button and menu z-index fix */
.book .book-header .buttons {
    z-index: 1000;
}

.book .book-header {
    z-index: 100 !important;
    position: relative !important;
    overflow: visible !important;
}

.book .book-header .buttons .dropdown-menu,
.book .book-header .popover,
.popover,
.dropdown-menu {
    z-index: 99999 !important;
    position: absolute !important;
}

/* Ensure sidebar doesn't cover menus */
.book-summary {
    z-index: 1 !important;
}

/* Reduce indentation of TOC items in sidebar */
.book-summary .summary ul {
    padding-left: 8px;
}

/* Centered page content */
.page-inner {
    margin: 0 auto;
}

/* Justify text alignment */
.markdown-section {
    text-align: justify;
}

.markdown-section {
    margin-left: -0.5em;
}

/* 見出しのフォントサイズをbodyと同等に */
h1, h2, h3, h4, h5, h6 {
    font-size: 1.1em !important;  /* bodyテキストとほぼ同等 */
    font-weight: bold !important;
}

.markdown-section h1 {
    font-size: 1.4em !important;
    font-weight: bold !important;
    margin-left: 0;
}

.markdown-section h2 {
    font-size: 1.2em !important;
    font-weight: bold !important;
    margin-left: 0;
}

.markdown-section h3,
.markdown-section h4,
.markdown-section h5,
.markdown-section h6 {
    font-size: 1.1em !important;
    padding-left: 1.1em;
    margin-left: 0;
    /* font-weight: bold !important; */
}

.markdown-section p,
.markdown-section blockquote,
.markdown-section ul,
.markdown-section ol {
    margin-left: 1.5em;
}

.markdown-section ul > li {
    margin-bottom: 0.2em;
    padding-left: 1.8em;
    text-indent: -1.8em;
}

.markdown-section ul > li::marker {
    content: "- ";
    color: inherit;
}

.markdown-section .pub-list p {
    padding-left: 2.64em;
    text-indent: -1.44em;
    margin-bottom: 1.8em;
}

/* ヘッダーバーはサイドバー右端からページ右端まで広げる */
.book .book-body .book-header {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0 8px !important;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* Night テーマ時はヘッダー下線を白系に変更 */
.book.color-theme-2 .book-body .book-header {
    border-bottom-color: rgba(255, 255, 255, 0.45);
}

.book .book-body .book-header .pull-left {
    flex: 0 0 auto;
    order: 1;
}

.book .book-body .book-header h1 {
    flex: 1 1 auto;
    order: 2;
    text-align: center;
    margin: 0;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.book .book-body .book-header .pull-right {
    flex: 0 0 auto;
    order: 3;
}

/* サイドバー表示時もヘッダー本体は本文領域の幅いっぱいに広げる */
.book.with-summary .book-body .book-header {
    width: 100%;
}

.book.with-summary .book-body .book-header h1 {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

/* ヘッダータイトルを常時表示 */
.book-header h1,
.book-header:hover h1 {
    opacity: 1 !important;
    transition: none !important;
}

.book-header h1 a,
.book-header h1 a:hover,
.book.is-loading .book-header h1 a {
    display: inline !important;
}

.book-header h1 i,
.book.is-loading .book-header h1 i {
    display: none !important;
}