@charset "utf-8";

:root {
	/* メイン文字色 */
	--main-text-color: #333;
	/* 明るめの文字色 */
	--light-text-color: #536471;
	/* リンクやその他アクセントカラー */
	--a-color: #59514e;
	/* 全体の背景色 */
	--main-bg-color: #fff;
	/* 細かいパーツの背景色 */
	--light-bg-color: #efefef;
	/* ↑よりさらに明るめの色 */
	--lighter-color: #eff3f4;
	/* アイコンフォント */
	--icon-font: 'Line Awesome Free', 'Line Awesome Brands';
}

html {
	text-rendering: optimizeLegibility;
	scroll-behavior: smooth;
}


label,
summary {
	cursor: pointer;
}

summary {
	display: block;
	list-style: none;
}

summary::-webkit-details-marker {
	display: none;
}




.container {
	display: flex;
	flex-wrap: wrap;
}

.container :where(ul, ol) {
	padding-left: 1.5em;
}

label[for*="tab"] {
	padding-block: 16px;
	position: relative;
	flex: 1;
	order: -1;
	color: var(--light-text-color);
	text-align: center;
}

input[id*="tab"] {
	display: none;
}

.tab_content {
	width: 100%;
	display: none;
}

body:not(.mode-gallery) input[type="radio"]:checked+label::after,
.mode-gallery label[for="tab999"]::after {
	content: '';
	display: block;
	width: 50%;
	height: 4px;
	position: absolute;
	left: 50%;
	bottom: 0;
	background-color: rgb(29, 155, 240);
	border-radius: 2px;
	transform: translateX(-50%);
}

input[type="radio"]:checked+label+.tab_content {
	display: block;
}

label[for*="tab"]:hover {
	background: var(--light-bg-color);
}

label[for*="tab"] a {
	padding-top: 16px;
	display: block;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	color: var(--light-text-color);
	text-decoration: none;
}

input[type="radio"]:checked+label,
label[for*="tab"] a:hover {
	color: currentColor;
}

body:not(.mode-gallery, .onelog) label[for="tab1"] a {
	pointer-events: none;
}

article,
.categoryTree,
.hashtag,
.archives {
	padding: 12px 16px;
	border-color: var(--lighter-color);
	border-style: solid;
	border-width: 1px 0 1px 0;
}

article {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

article:hover {
	background-color: rgb(239, 239, 239, .4);
}

article.logstatus-fixed::before {
	margin-left: 20px;
	content: "📌固定";
	display: block;
	width: 100%;
	color: var(--light-text-color);
	font-size: .8em;
	font-weight: bold;
}

article .icon {
	width: 40px;
}

article .icon img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
}

article .post_body {
	line-height: 1.4;
	flex: 1;
}

.post_info {
	margin-bottom: 4px;
}

.post_info a {
	text-decoration: none;
}

.post_info .username {
	color: #0f1419;
	font-weight: bold;
}


.post_info .categories {
	display: block;
	font-size: .8em;
	text-align: right;
}

.post_title {
	display: none;
}

.post_body .passkeyguide {
	margin: 6px;
	display: block;
}

.post_body .passkeyerror {
	margin: 6px;
	padding: 3px 6px;
	display: inline-block;
	border: 1px solid var(--light-text-color);
	color: var(--light-text-color);
	background-color: var(--light-bg-color);
	border-radius: 3px;
}

.post_body :where([type="text"], [type="submit"], .readmorebutton) {
	margin: 6px;
	padding: 6px 1em;
	border: 1px solid var(--light-text-color);
	color: var(--main-text-color);
	border-radius: 6px;
}

.post_body :where([type="submit"], .readmoreopen) {
	padding: 6px 1em;
	background-color: var(--light-bg-color);
	transition: .3s;
}
.post_body :where([type="submit"], .readmoreopen):hover {
	background-color: #e5f1fb;
	text-decoration: none;
}
.readmorearea {
	background-color: var(--lighter-color);
}

.readmoreclose {
	padding: 0 6px;
}

.decorationQ {
	padding: 16px;
	border: 1px solid #e0e0e0;
	font-size: .9em;
	border-radius: 1em;
}

.post_body :where(iframe, video) {
	max-width: 100%;
}

.decorationQ::before,
.decorationQ::after {
	content: '';
}

.decorationQ .postidlink {
	display: block;
}

/* 画像表示用 */
.post_body img {
	max-width: 100%;
	height: auto;
}

/* NSFW画像用 */
.imagelink.nsfw {
	display: block;
	max-width: 50%;
	position: relative;
}

.imagelink.nsfw::before {
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background-color: rgba(0, 0, 0, .5);
	backdrop-filter: blur(20px);
}

.imagelink.nsfw::after {
	content: '\f071';
	position: absolute;
	top: 50%;
	left: 50%;
	color: #fff;
	font-family: var(--icon-font);
	font-size: 36px;
	font-weight: 900;
	text-decoration: none;
	transform: translate(-50%, -50%);
}

/* キャプションあり */
.embeddedpictbox {
	display: inline-table;
	border-collapse: collapse;
	position: relative;
}

.embeddedpictbox.nsfw {
	max-width: 50%;

	& .imagelink.nsfw {
		max-width: 100%;
	}
}

.embeddedpictbox figcaption {
	padding: 3px;
	width: 100%;
	display: table-caption;
	position: absolute;
	top: 0;
	caption-side: bottom;
	color: #fff;
	background: rgba(0, 0, 0, .3);
	font-size: .8em;
	text-align: center;
}

/* 独自装飾・ウォーターマーク */
.deco-watermark {
	display: inline-block;
	position: relative;
}

.deco-watermark .imagelink::after {
	content: '転載禁止';
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	transform: translateY(-50%);
	color: rgba(0, 0, 0, .3);
	font-weight: bold;
	font-size: 200%;
	text-align: center;
	text-decoration: none;
	text-shadow: -1px -1px 0 rgba(255, 255, 255, .3), -1px 0 0 rgba(255, 255, 255, .3), -1px 1px 0 rgba(255, 255, 255, .3), 0 -1px 0 rgba(255, 255, 255, .3), 0 1px 0 rgba(255, 255, 255, .3), 1px -1px 0 rgba(255, 255, 255, .3), 1px 0 0 rgba(255, 255, 255, .3), 1px 1px 0 rgba(255, 255, 255, .3);
}

/* 独自装飾・4枚の画像を旧ツイッターぽくまとめて表示 */
.deco-twimage {
	border: 1px solid rgb(207, 217, 222);
	display: flex;
	overflow: hidden;
	gap: 3px;
	flex-wrap: wrap;
	border-radius: 16px;
}

.deco-twimage a {
	width: calc(50% - 3px);
	height: auto;
	max-height: 180px;
}

.deco-twimage a img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post_footer {
	width: 100%;
	position: relative;
}

.post_footer>ul {
	padding-left: 0;
	display: flex;
	list-style: none;
}

.post_footer>ul>li {
	width: 100%;
	color: var(--light-text-color);
	text-align: center;
}

.post_footer>ul>li :where(details summary, button) {
	margin: 0 auto;
	width: 1.4em;
	color: var(--light-text-color);
	font-size: 1.4em;
	text-align: center;
	border-radius: 50%;
}

:is(.reply, .edit) summary:hover {
	color: rgb(29, 155, 240);
	background-color: rgba(29, 155, 240, .1);
}

.share summary:hover {
	color: rgb(0, 186, 124);
	background-color: rgba(0, 186, 124, .1);
}

.favorite button:hover {
	color: rgb(249, 24, 128);
	background-color: rgba(249, 24, 128, .1);
}

.post_footer details ul {
	padding-left: 0;
	border: 1px solid var(--lighter-color);
	min-width: 10em;
	position: absolute;
	bottom: 2em;
	background-color: #fff;
	box-shadow: 0 0 3px #eee;
}

.post_footer details ul li {
	text-align: left;
	list-style: none;
}

.post_footer details ul li :where(button, a) {
	margin-inline: 0;
	padding: 6px 8px;
	display: block;
	color: var(--main-text-color);
	font-size: 1em;
	text-align: left;
}

.post_footer details ul li button {
	width: fit-content;
}

.url-copied {
	display: none;
	width: 100%;
	height: 100%;
	line-height: 4;
	position: absolute;
	top: 0;
	color: #fff;
	background-color: rgba(0, 0, 0, .6);
	font-weight: bold;
	text-align: center;
}


/* いいねボタン・改用 */
.favorite button.clicked .la-heart {
	animation: heartAnime 600ms;
}

@keyframes heartAnime {
	0% {
		transform: scale(0);
	}

	75% {
		transform: scale(1.1, 0.9) translate(0%, 5%);
	}

	80% {
		transform: scale(0.95, 1.05) translate(0%, -3%);
	}

	100% {
		transform: scale(1, 1) translate(0%, 0%);
	}
}

.newiine_btn {
	position: relative;
}

.newiine_count {
	position: absolute;
	bottom: 0;
	font-size: .6em;
}

:is(.newiine_clickedtoday, .newiine_clicked) i {
	color: rgb(249, 24, 128);
}

.utilitylinks {
	margin: 1em;
	padding: 1em 2em;
	background-color: var(--light-bg-color);
	font-size: .8em;
	border-radius: 1em;
}

.dateseparator {
	padding: 3px 0;
	color: var(--light-text-color);
	text-align: center;
	opacity: .6;
}

.dateseparator:hover {
	opacity: 1;
}

.fixedseparator {
	display: none;
}

.page_nav {
	padding: 1em 0;
	display: flex;
	justify-content: center;

	& a {
		margin: 3px;
		padding: 3px 10px;
		color: var(--main-text-color);
		background-color: var(--light-bg-color);
		border-radius: 3px;
	}

	& a:hover {
		color: #fff;
		background-color: var(--a-color);
		text-decoration: none;
	}

	& where:(.prevlink, .nextlink) {
		margin: 0 4px;
		display: grid;
		place-items: center;
	}

	& .prevlink {
		order: 1;
	}

	& .linkseparator {
		display: none;
	}

	& .nextlink {
		order: 3;
	}

	& .pagenum {
		order: 2;

		& a {
			min-width: 1.4em;
			display: inline-block;
			text-align: center;
		}
	}

	& .pagenumhere {
		color: #fff;
		background-color: var(--main-text-color);
		font-weight: bold;
	}
}

.onelog :where(.prevlink, .nextlink) {
	width: 100%;
	text-align: justify;
	overflow-wrap: break-word;
}

.onelog .prevlink::before,
.onelog .nextlink::before {
	padding-top: 3px;
	display: block;
	font-family: var(--icon-font);
	font-weight: 900;
	text-align: center;
}

.onelog .prevlink::before {
	content: '\f104';
}

.onelog .nextlink::before {
	content: '\f105';
}

.onelog .nextlink {
	text-align: right;
}


.queryinput {
	padding: 6px;
	max-width: calc(100% - 60px);
	flex: 1;
}

.submitbutton {
	padding: 6px 16px;
	color: var(--light-text-color);
}

.hashtaglist {
	padding-left: 0;
}

:where(.hashtaglist, .datelimitsublist) li {
	display: inline;
}

:where(.cattree, .hashtaglist, .datelimitsublist) .num {
	color: var(--light-text-color);
	font-size: .8em;
}

.archives:nth-child(1) {
	display: flex;
	gap: 16px;
	justify-content: center;
	align-items: center;
}





footer {
	padding: 1em 1em 0;
	font-size: .9em;
}

.poweredby {
	text-align: center;
}

footer .material {
	color: var(--light-text-color);
	text-align: center;
	opacity: .4;
}

footer .material:hover {
	opacity: 1;
}
footer .material li {
	display: inline;
}

.post_info :where(.postuserid, .postdate a) {
	margin: 0 4px;
	color: var(--light-text-color);
}



#open_form {
	display: grid;
	place-content: center;
	width: 60px;
	height: 60px;
	color: #fff;
	background-color: var(--a-color);
	border-radius: 50%;
}

#open_form::before {
	content: '\f305';
	font-family: var(--icon-font);
	font-size: 36px;
	font-weight: 900;
}



textarea.tegalogpost {
	margin-bottom: .25em;
	padding: .5em;
	width: 100%;
	height: 5em;
	max-height: 10lh;
	line-height: 1.3;
	form-sizing: content;
	background-color: #fff;
	border-radius: 6px;
}


#close_form {
	margin: 0 auto;
	display: block;
	position: relative;
	width: 36px;
	height: 36px;
	background-color: #fff;
	border-radius: 50%;
}

#close_form:hover {
	background-color: #555;
}

#close_form::before,
#close_form::after {
	content: '';
	display: block;
	width: 4px;
	height: 26px;
	position: absolute;
	top: 5px;
	left: 16px;
	background: #ccc;
	border-radius: 3px;
}

#close_form::before {
	transform: rotate(45deg);
}

#close_form::after {
	transform: rotate(-45deg);
}

#preview {
	max-height: 20em;
	overflow: auto;
}

.line-control {
	margin: .25em 0;
}

.postbutton[type="submit"] {
	padding: .25em 1.5em;
	border-color: var(--a-color);
	color: #fff;
	background-color: var(--a-color);
	font-weight: bold;
	border-radius: 1em;
	opacity: .8;
}

.postbutton[type="submit"]:hover {
	opacity: 1;
}

.decoBtns {
	display: inline-block;
	margin-top: .5em;
        depth2 { display:none; }

}

.decoBtns input {
	min-width: 32px;
	min-height: 28px;
	margin: 1px;
	font-size: 14px;
	vertical-align: middle;
}

.decoBtns input:hover {
	background-color: #e5f1fb;
	border-color: #0078d7;
}

.decoBtnB {
	font-weight: bold;
}

.decoBtnD {
	text-decoration: line-through;
	text-decoration-color: red;
	text-decoration-style: double;
}

.decoBtnE {
	font-weight: bold;
	color: blue;
}

.decoBtnI {
	font-style: italic;
}

.decoBtnT {
	font-size: 11px !important;
}

.decoBtnU {
	text-decoration: underline;
	text-decoration-color: red;
}

.decoBtnC {
	color: red;
}

.decoBtnM {
	color: blue;
}

.catChecks {
	font-size: .9em;
	padding-top: .5em;
}

.catChecks label {
	display: inline-block;
	cursor: pointer;
	margin: 0 .75em 0 0;
}

.catChecks label:hover {
	text-decoration: underline;
}

.catChecks input {
	min-width: 0;
	min-height: 0;
	margin-right: .2em;
}

#imglistButton {
	margin: 2px;
	position: relative;
	z-index: 4;
}

table.images {
	border-collapse: collapse;
}

table.images th,
table.images td {
	border: 1px solid;
	font-size: .7em;
}

table.images img {
	width: 100px;
	height: auto;
}

#popupContent {
	padding: 1em;
	max-width: 600px;
	line-height: 1.2;
	position: absolute;
	z-index: 1;
	background: rgba(255, 255, 255, .9);
	box-shadow: 0 0 5px #ccc;
}

.go_page_top {
	width: 40px;
	height: 40px;
	position: fixed;
	right: 0;
	bottom: 0;
}

.go_page_top a {
	height: 100%;
	display: grid;
	place-content: center;
	color: #fff;
        opacity: 0.1;
	background-color: var(--a-color);
	font-size: 1.4em;
	font-weight: bold;
}
/* 埋め込みツイートの横幅を制限 */
div.twitter-tweet {
    max-width: 350px !important; /* または希望のサイズ（例: 300px, 280px） */
    /* width: 50%; /* 必要なら */ */
}

/* 埋め込みツイートの高さを制限する例 */
blockquote.twitter-tweet {
    max-height: 100px; /* 任意の高さに調整 */
    overflow: hidden; /* はみ出る部分を隠す */
    /* 必要に応じてmin-heightも設定 */
}