

:root {
    color-scheme: light dark;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

* {
	margin:0px;
	font-size: 16px;
	font-family:'HelveticaNeue',Helvetica,'Hiragino Kaku Gothic Pro',Osaka,sans-serif;
}
/* 上下タイトル */
#top,#bottom,.breadcrumb{
	color: #ffffff;
	text-align: center;
	padding: 6px 0px;
	text-shadow: 1px 1px 1px #999999;
	filter: dropshadow(color=#999999, offx=1, offy=1);
	background: -moz-linear-gradient(top, #4f4f4f, #000000);
	background: -webkit-gradient(linear, left top, left bottom, from(#4f4f4f), to(#000000));
	background: linear-gradient(to bottom, #4f4f4f, #000000);
}
.breadcrumb { justify-content: center; }
.breadcrumb a:link { color:#ffffff; }
.breadcrumb a:visited  { color:#ffffff; }
.breadcrumb a:active  { color:#ffffff; }

#top a:link { color:#ffffff; }
#top a:visited  { color:#ffffff; }
#top a:active  { color:#ffffff; }

/* 上部機能バー */
#link {
	margin-bottom: 5px;
}
/* 下部機能バー */
#linkbt {
	margin-top: 5px;
}
/* スレッド部 */
#thread {
	margin-top: 0px;
	margin-bottom: 0px;
	margin-left: 4px
}
/* 設定ボタン */
#conf {
	margin-top: 4px;
}
/* 本文 */
#ｔｘｔ {
	padding-right: 16px;
	padding-left: 16px;
}
/* 画像サムネイル */
.img-thumbnail {
 	aspect-ratio: 1 / 1;
 }
/* リアクション */
.rea {
	float:left;
}
#reac {
	clear:  both;
}