* {
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", "Hiragino Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: 14px;
    line-height: 1.5;
    color: #1f2328;
    background-color: #ffffff;
    margin: 0;
}

header {
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1;
    background-color: #ffffff;
    border-bottom: 2px solid lightgray;
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 16px;
}

.site-title {
    display: block;
    line-height: 0;
}

/* logo.png は 3 倍の解像度(476×108)。表示の大きさは img の width/height */
.site-title img {
    display: block;
}

.Box {
    max-width: 1200px;
    margin: 16px auto;
    border: 1px solid #d0d7de;
    border-radius: 6px;
}

.container-lg {
    max-width: 1140px;
    margin-right: auto;
    margin-left: auto;
}

.markdown-body {
    font-size: 16px;
    line-height: 1.6;
    word-wrap: break-word;
    padding: 16px 32px 32px;
}

@media (max-width: 700px) {
    .Box {
        margin: 0;
        border: none;
        border-radius: 0;
    }

    .markdown-body {
        padding: 8px 16px 24px;
    }
}

h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.25;
    margin-top: 24px;
    margin-bottom: 16px;
}

h1 {
    padding-bottom: 0.3em;
    font-size: 2em;
    border-bottom: 1px solid hsla(210, 18%, 87%, 1);
}

h2 {
    padding-bottom: 0.3em;
    font-size: 1.5em;
    border-bottom: 1px solid hsla(210, 18%, 87%, 1);
}

h3 {
    font-size: 1.25em;
}

/* sticky ヘッダーの下に見出しが潜らないように(ページ内リンクで飛んだとき) */
[id] {
    scroll-margin-top: 64px;
}

a {
    color: #0969da;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

blockquote {
    margin: 0 0 16px;
    padding: 0 1em;
    color: #59636e;
    border-left: 0.25em solid #d0d7de;
}

details {
    margin: 0 0 16px;
}

summary {
    cursor: pointer;
}

table {
    display: block;
    max-width: 100%;
    overflow: auto;
    border-collapse: collapse;
    margin-bottom: 16px;
}

table tr {
    background-color: #ffffff;
    border-top: 1px solid hsla(210, 18%, 87%, 1);
}

tr:nth-child(2n) {
    background-color: #f6f8fa;
}

table th,
table td {
    padding: 6px 13px;
    border: 1px solid #d0d7de;
}

code {
    padding: 0.2em 0.4em;
    margin: 0;
    font-size: 85%;
    background-color: rgba(175, 184, 193, 0.2);
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

pre {
    padding: 16px;
    overflow: auto;
    font-size: 85%;
    line-height: 1.45;
    background-color: #f6f8fa;
    border-radius: 6px;
}

pre code {
    padding: 0;
    font-size: 100%;
    background-color: transparent;
    white-space: pre;
}
