

:root {
    color-scheme: light dark;
}

body {
    margin: 0;
    background-color: #222222;
    color: #CCFFCC;
    font-size: 16px;

    /* ★フォント適用（custom/preset/google 全対応） */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
}

body {
    background-color: light-dark(#222222, #222222);
    color: light-dark(#CCFFCC, #CCFFCC);
}

form input,
form textarea,
form select,
form button {
    color-scheme: light;

    /* ★フォーム類も同じフォントに */
    font-family: inherit;
}

a {
    color: #00EE00;
    color: light-dark(
        #00EE00,
        #00EE00    );
}
a:visited {
    color: #FFFF00;
    color: light-dark(
        #FFFF00,
        #FFFF00    );
}
a:active {
    color: #ff4444;
    color: light-dark(
        #ff4444,
        #ff4444    );
}

.quote-text {
    color: #91d18b;
    color: light-dark(
        #91d18b,
        #91d18b    );
}

.comment-text {
    color: #CCFFCC;
    color: light-dark(
        #CCFFCC,
        #CCFFCC    );
}

.note-text {
    color: #FF0000;
    color: light-dark(
        #FF0000,
        #FF0000    );
}

.name {
    color: #91d18b;
    color: light-dark(
        #91d18b,
        #91d18b    );
}

.cap {
    color: #f48c40;
    color: light-dark(
        #f48c40,
        #f48c40    );
}

.deleted-message {
    color: #ff5555;
    color: light-dark(
        #ff5555,
        #ff5555    );
}

.error-message {
    color: #ff5555;
    color: light-dark(
        #ff5555,
        #ff5555    );
}

hr {
    border: none;
    border-top: 1px solid #FF00FF;
    border-top-color: light-dark(
        #FF00FF,
        #FF00FF    );
}

.embed-post {
    background-color: #222222;
    color: #CCFFCC;
    background-color: light-dark(
        #222222,
        #222222    );
    color: light-dark(
        #CCFFCC,
        #CCFFCC    );
}

mark {
    background-color: transparent;
    color: inherit;
    margin: 0 5px;
}

/* パンくずリスト */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1rem;
    list-style: none;
    padding-left: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
}

.breadcrumb-item + .breadcrumb-item::before {
    display: inline-block;
    padding: 0 0.5rem;
    content: ">";
    vertical-align: middle;

    color: #CCFFCC;
    color: light-dark(
        #CCFFCC,
        #CCFFCC    );
}

/* 最後のパンくずリスト項目のリンクを無効にする */
.breadcrumb-item:last-child a {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
}

/* スマートフォン用スタイル */
@media (max-width: 640px) {
    .embed-contents {
        position: relative;
        width: 100%;
        max-height: 200px;
        overflow: hidden;
    }
    .embed-instagram {
        width: 100%;
        height: 360px !important;
        max-height: 360px !important;
    }

    .embed-video iframe {
        width: 100%;
        height: 360px !important;
        max-height: 360px !important;
    }

    .embed-youtube iframe {
        width: 100%;
        height: 360px !important;
        max-height: 360px !important;
    }

    .embed-youtube {
        width: 100%;
        height: 360px !important;
        max-height: 360px !important;
    }

    .img-thumbnail, .embed-youtube-img, .embed-image, .video-thumbnail {
        max-width: 128px;
        max-height: auto;
    }
}

/* パソコン用スタイル */
@media (min-width: 641px) {
    .embed-contents {
        position: relative;
        width: 100%;
        max-height: 350px;
        overflow: hidden;
    }

    .embed-instagram {
        width: 600px;
        height: 360px !important;
        max-height: 360px !important;
    }

    .embed-video iframe {
        width: 600px;
        height: 360px !important;
        max-height: 360px !important;
    }

    .embed-youtube iframe {
        width: 600px;
        height: 360px !important;
        max-height: 360px !important;
    }

    .img-thumbnail, .embed-youtube-img, .embed-image, .video-thumbnail {
        max-width: 128px;
        max-height: auto;
        cursor: pointer;
    }
}

img.emoji {
    height: 1em;
    width: 1em;
    margin: 0 .05em 0 .1em;
    vertical-align: -0.1em;
}

img {
    max-height: 512px;
}

