

:root {
    color-scheme: light dark;
}

body {
    margin: 0;
    background-color: #FFBFCE;
    color: #7F0000;
    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(#FFBFCE, #FFBFCE);
    color: light-dark(#7F0000, #7F0000);
}

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

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

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

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

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

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

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

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

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

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

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

.embed-post {
    background-color: #FFBFCE;
    color: #7F0000;
    background-color: light-dark(
        #FFBFCE,
        #FFBFCE    );
    color: light-dark(
        #7F0000,
        #7F0000    );
}

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

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

* { font-family: "Hiragino Kaku Gothic ProN", "Osaka", Meiryo, "MS UI Gothic", "ＭＳ Ｐゴシック", sans-serif; }
body { margin: 0 0 0 5px; }
  /* 行間を詰める共通クラス */
  .threads {
    margin-left: 4px;
    margin-top: 10px;
}
  .line-text {
    margin:0px;
  }
.btn-spacing{
letter-spacing: 0.08em; 
}