@charset "UTF-8";

:root {
    --TEXT: #202020;
    --PUT: #fff;
    --BACK: #e1e6f0;
    --LINK: #fff;
    --ACCENT: #1e8cdc;

    --VIEW: 90vw;
    --VIEW_MAX: 900px;

    --c-info: #60adff;
    --c-note: #31df4e;
    --c-warn: #ffa51d;
    --c-denger: #ff3333;
}

* {
    margin: 0;
    font-family: sans-serif;
    box-sizing: border-box;
    word-break: break-word;
    scrollbar-color: var(--ACCENT) var(--PUT);
}

*::-webkit-scrollbar {
    width: 8px;
    height: 4px;
}

*::-webkit-scrollbar-track {
    background: var(--PUT);
}

*::-webkit-scrollbar-thumb {
    background: var(--ACCENT);
}

body {
    background-color: var(--BACK);
    min-width: 240px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
}

header {
    background-color: var(--PUT);
    width: 100%;
    margin-bottom: 64px;
    padding: 8px 0;
}

header > div {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

header > div > #headerTitle {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

header > div > #headerTitle > span > a {
    color: var(--TEXT);
    border-radius: 8px;
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
}

header > div > #headerTitle > nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

header > div > #headerTitle > nav > a {
    color: var(--TEXT);
    text-decoration: none;
    font-size: 18px;
    transition-duration: 0.3s;
}

header > div > #headerTitle > nav > a:hover {
    color: #1964b9;
    opacity: 0.6;
}

header > div > #headerIcon {
    display: flex;
    align-items: center;
}

header > div > #headerIcon > span {
    display: inline-block;
    width: 48px;
    align-self: 1/1;
}

header > div > #headerIcon > span > img {
    width: 100%;
    border-radius: 50%;
    align-self: 1/1;
    object-fit: contain;
}

footer {
    position: sticky;
    top: 100vh;
    background-color: var(--PUT);
    width: 100%;
    padding: 8px 0;
}

footer > div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

footer > div > a {
    color: var(--TEXT);
}

#meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
    justify-items: center;
    margin-bottom: 32px;
}

#meta > #catchEmoji {
    text-align: center;
}

#meta > #catchEmoji > span > img {
    width: 64px;
}

#meta > #postTitle {
    text-align: center;
}

#meta > #postTitle > span {
    display: inline-block;
    text-align: left;
    font-size: 24px;
    font-weight: bold;
}

#meta > #postInfo {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#meta > #postInfo > span {
    font-size: 14px;
    opacity: 0.6;
}

#postTopics {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

#postTopics > a {
    color: var(--TEXT);
    padding: 4px 8px;
    border: solid 1px var(--BACK);
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    transition-duration: 0.3s;
}

#postTopics > a:hover {
    background-color: var(--ACCENT);
    color: var(--LINK);
}


/* post --- */
.post * {
    font-size: 16px;
}

.post a {
    color: var(--ACCENT);
}

.post a:not(#postTopics > a):hover {
    opacity: 0.4;
}

.post blockquote {
    margin: 16px 32px;
    padding-left: 6px;
    border-left: solid 4px var(--BACK);
    opacity: 0.8;
}

.post code:not(pre > code) {
    background-color: var(--BACK);
    margin: 0 2px;
    padding: 2px 4px;
    border-radius: 8px;
}

.post h1, .post h2, .post h3 {
    margin: 32px 0 16px 0;
    font-weight: bold;
}

.post h2, .post h3 {
    padding-left: 6px;
    border-left: solid 4px var(--BACK);
}

.post h4, .post h5, .post h6 {
    z-index: 0;
    position: relative;
    margin: 32px 0 8px 0;
    padding-left: 8px;
    font-weight: bold;
}

.post h4::after, .post h5::after, .post h6::after {
    z-index: -1;
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    background-color: var(--BACK);
    width: 2px;
    height: 32%;
}

.post h1 {
    border-bottom: solid 2px var(--BACK);
    font-size: 28px;
}

.post h2 {
    font-size: 24px;
}

.post h3 {
    font-size: 20px;
}

.post h4 {
    font-size: 18px;
}

.post h5 {
    font-size: 16px;
}

.post h6 {
    font-size: 14px;
}

.post hr {
    display: block;
    background-color: transparent;
    width: 100%;
    height: 2px;
    margin: 8px 0;
    padding: 0;
    border: 0;
    border-bottom: solid 2px var(--BACK);
}

.post img:not(img.emoji), .post video {
    background-color: var(--BACK);
    width: 100%;
    margin: 8px 0;
    aspect-ratio: 16/9;
    object-fit: contain;
    cursor: zoom-in;
}

.post img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

.post small {
    font-size: 14px;
    opacity: 0.6;
}

.post ul, .post ol {
    margin-bottom: 8px;
    padding-left: 40px;
}

.post p {
    margin: 16px 0;
    line-height: 1.6;
}

.post pre {
    background-color: #2b303b;
    padding: 16px;
    border-radius: 8px;
    overflow-y: auto;
}

.post pre * {
    color: #c0c5ce;
}

.post table {
    display: block;
    margin: 16px 0;
    border: solid 2px var(--BACK);
    border-collapse: collapse;
    border-radius: 8px;
    overflow: hidden;
    overflow-x: auto;
}

.post table thead {
    border-bottom: 2px solid var(--BACK);
}

.post table td, .post table th {
    min-width: 120px;
    padding: 8px 16px;
    border-top: 1px solid var(--BACK);
    border-left: 1px solid var(--BACK);
}

.post table tr:first-child td, .post table tr:first-child th{
    border-top:none;
}

.post table td:first-child, .post table th:first-child{
    border-left:none;
}
/* --- post */

.content {
    width: var(--VIEW);
    min-width: 240px;
    max-width:var(--VIEW_MAX);
    margin: 0 auto;
}

.put_content {
    background-color: var(--PUT);
    min-width: 240px;
    min-height: 240px;
    margin: 0 auto;
    margin-bottom: 32px;
    padding: 16px;
}

.right-text {
    text-align: right;
}

/* embed parts --- */
iframe.embed-nicovideo, iframe.embed-peertube, iframe.embed-youtube {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16/9;
    object-fit: contain;
}
/* --- embed parts */

/* info,note,warn,denger parts --- */
div.info-parts, div.note-parts, div.warn-parts, div.denger-parts {
    position: relative;
    margin: 32px 0;
    padding: 32px 16px 16px 16px;
    border-radius: 8px;
}

div.info-parts::after, div.note-parts::after, div.warn-parts::after, div.denger-parts::after {
    content: "";
    position: absolute;
    top: 8px;
    left: 8px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    text-align: center;
    font-size: 16px;
    line-height: 1;
}

div.info-parts {
    border: solid 2px var(--c-info);
}

div.info-parts::after {
    background-color: var(--c-info);
}

div.note-parts {
    border: solid 2px var(--c-note);
}

div.note-parts::after {
    background-color: var(--c-note);
}

div.warn-parts {
    border: solid 2px var(--c-warn);
}

div.warn-parts::after {
    background-color: var(--c-warn);
}

div.denger-parts {
    border: solid 2px var(--c-denger);
}

div.denger-parts::after {
    background-color: var(--c-denger);
}
/* --- info,note,warn,denger parts */

/* linkbutton --- */
a.linkbutton {
    display: inline-block;
    background-color: var(--ACCENT);
    color: var(--PUT);
    margin: 8px 0;
    padding: 4px 8px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}
/* --- linkbutton */

/* linkcard parts --- */
a.linkcard-parts {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--TEXT);
    margin: 32px 0;
    padding: 16px;
    border: solid 2px var(--BACK);
    border-radius: 8px;
    text-decoration: none;
}

span.linkcard-title {
    display: -webkit-box;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

span.linkcard-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.8;
}
/* --- linkcard parts */

/* postcard frame --- */
div.postcard-frame h2 {
    margin: 8px 0 16px 0;
    padding-left: 6px;
    border-left: solid 4px var(--BACK);
    font-size: 24px;
}
/* --- postcard frame */

/* postcard box --- */
div.postcard-box {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

@media screen and (min-width: 720px) {
    /* PC */
    div.near-post-navi-box {
        display: grid;
        gap: 16px;
        grid-template-columns: calc( 50% - 8px ) calc( 50% - 8px );
        margin-bottom: 32px;
    }
}

@media screen and (max-width: 720px) {
    /* Mob */
    div.near-post-navi-box {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 32px;
    }
}
/* --- postcard box */

/* postcard parts --- */
a.postcard-parts {
    display: flex;
    gap: 16px;
    color: var(--TEXT);
    text-decoration: none;
}

span.postcard-icon-unit {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    background-color: var(--BACK);
    padding: 8px 24px;
    border-radius: 8px;
}

span.postcard-icon-unit > img.emoji {
    width: 48px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

div.postcard-meta-unit {
    display: flex;
    flex-direction: column;
    width: 100%;
}

span.postcard-title {
    display: -webkit-box;
    font-size: 18px;
    font-weight: bold;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

span.postcard-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0.8;
}

div.near-post-navi-box a.postcard-parts {
    background-color: var(--PUT);
    padding: 16px;
    border-radius: 8px;
}
/* --- postcard parts */

@media screen and (min-width: 620px) {
    /* PC */
    .put_content {
        width: var(--VIEW);
        max-width: 900px;
        border-radius: 8px;
    }
}

@media screen and (max-width: 620px) {
    /* Mob */
    .put_content {
        width: 100%;
    }

    .put_content > div {
        width: var(--VIEW);
        margin: 0 auto;
    }
}

/* oldPostWarn --- */
#oldPostWarn {
    display: none;
}
/* --- oldPostWarn */