

:root {
    color-scheme: light dark;
}

body {
    margin: 0;
    background-color: #ffffff;
    color: #696969;
    font-size: 16px;

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

body {
    background-color: light-dark(#ffffff, #ffffff);
    color: light-dark(#696969, #696969);
}

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

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

a {
    color: #BC8F8F;
    color: light-dark(
        #BC8F8F,
        #BC8F8F    );
}
a:visited {
    color: #BC8F8F;
    color: light-dark(
        #BC8F8F,
        #BC8F8F    );
}
a:active {
    color: #BC8F8F;
    color: light-dark(
        #BC8F8F,
        #BC8F8F    );
}

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

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

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

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

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

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

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

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

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

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: #696969;
    color: light-dark(
        #696969,
        #696969    );
}

/* 最後のパンくずリスト項目のリンクを無効にする */
.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;
}

