/* site theme */

body {
    background-color: rgb(247 185 185);
    margin: 0;
    padding: 0;
}

body>header {
    background-color: white;
    border-block-end-style: solid;
    border-block-end-width: 1px;
    border-block-end-color: rgb(200 200 200);
}

.page-container {
    padding-block: 0;
    padding-inline: 30px;
}

.page-section {
    background-color: white;
    box-sizing: border-box;
    max-inline-size: 900px;
    margin-inline: auto;
    margin-block: 30px;
    border-radius: 30px;
    padding: 30px;
}

footer.page-section {
    background-color: rgb(241, 226, 195);
}

.page-section-wide {
    background-color: white;
    max-inline-size: none;
    margin-block: 30px;
    border-radius: 30px;
    padding: 30px;
}

.page-section-multi-column {
    --max-multi-column-count: 5;

    background-color: white;
    max-inline-size: clamp(clamp(0px, 100% - 60px, 840px), round(down, 100% - 60px, 840px), var(--max-multi-column-count) * 840px);
    margin-inline: auto;
    margin-block: 30px;
    border-radius: 30px;
    padding: 30px;
}

@supports not (max-inline-size: round(down, 100% - 60px, 840px)) {
    .page-section-multi-column {
        max-inline-size: 840px;
    }
}

.page-section-multi-column>.multi-column {
    display: grid;
    grid-template-columns: repeat(auto-fit, min(100%, 840px - (max(100%, 840px) / 840 - 1px) * 50));
    column-gap: 50px;
    column-rule-style: solid;
    column-rule-width: 1px;
}

.page-category {
    margin-block: 0.67em;
    text-align: center;
    font-size: 1.5em;
}

.page-crumb {
    border-block-style: solid;
    border-width: 1px;
    border-color: lightgray;
    border-radius: 5px;
    padding: 3px;
    padding-inline-start: 5px;
}

.page-crumb ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
}

.page-crumb li {
    display: inline;
}

.page-crumb li:not(:last-child)::after {
    content: ">";
    content: ">" / "";
    margin-inline: 0.3em;
}

.vertical {
    block-size: 100%;
    writing-mode: vertical-rl;
    column-width: 70vh;
    column-width: 80svh;
    column-gap: 50px;
    column-rule-style: solid;
    column-rule-width: 1px;
    column-fill: auto;
}

a:hover {
    color: rgb(0, 140, 255);
}

a:active {
    color: rgb(255, 0, 0);
}

a.link-internal:link {
    color: rgb(136, 93, 34);
    text-decoration-style: dotted;
}

a.link-internal:visited {
    color: rgb(49, 49, 49);
    text-decoration-style: dotted;
}

a.link-internal:hover {
    color: rgb(219, 146, 36);
}

a.link-internal:hover:visited {
    color: rgb(151, 151, 151);
}

a.link-internal:active {
    color: rgb(255, 0, 0);
}

a.link-nav {
    color: inherit;
    text-decoration: inherit;
}

a.link-external::after {
    content: "（外部リンク）";
    content: "（外部リンク）" / "";
}

h1 {
    border-block-end-style: solid;
    border-block-end-color: lightgray;
    text-align: inherit;
    font-size: 2em;
}

h2 {
    border-block-end-style: solid;
    border-block-end-color: lightgray;
    text-align: inherit;
    font-size: 1.5em;
}

p {
    text-indent: 1em;
}

p.no-indent {
    text-indent: 0;
}

blockquote {
    color: gray;
    font-style: italic;
}

q {
    color: gray;
    font-style: italic;
}

q::after {
    content: none;
}

q::before {
    content: none;
}

mark {
    color: inherit;
    background-color: inherit;
    text-decoration: underline;
    text-decoration-color: cyan;
}

code {
    background-color: rgb(235, 235, 235);
    border-radius: 0.3em;
    padding: 0.1em;
    font-family: "Consolas", ui-monospace, monospace;
    white-space: pre-wrap;
}

pre {
    background-color: rgb(243, 249, 255);
    border-color: rgb(160, 173, 187);
    border-style: solid;
    border-width: 1px;
    border-radius: 3px;
    padding: 3px;
    overflow: auto;
}

pre>code {
    background-color: transparent;
    border: none;
    padding: 0;
    white-space: inherit;

    color: rgb(61, 61, 61);
}

code span.code-keyword {
    color: rgb(5, 83, 252);
}

code span.code-string {
    color: rgb(218, 112, 13);
}

code span.code-number {
    color: rgb(108, 112, 84);
}

code span.code-variable {
    color: rgb(0, 167, 179);
}

code span.code-method {
    color: rgb(175, 149, 30);
}

code span.code-comment {
    color: rgb(31, 156, 6);
}

code span.code-xml-tag {
    color: rgb(119, 119, 119);
}

code span.code-xml-type {
    color: rgb(37, 150, 255);
}

code span.code-xml-attribute {
    color: rgb(255, 47, 32);
}

code span.code-csharp-type {
    color: rgb(0, 170, 91);
}

/* utils */

span.圏点 {
    text-emphasis: filled dot;
}

.小声 {
    font-size: 0.7em;
}

img.emoji {
    width: auto;
    height: 1em;
}

.flex-container {
    display: flex;
}
