@charset "utf-8";

:root {
	/* メイン文字色 */
	--main-text-color: #333;
	/* 明るめの文字色 */
	--light-text-color: #536471;
	/* リンクやその他アクセントカラー */
	--a-color: #1d9bf0;
	/* 全体の背景色 */
	--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;
}

body {
	color: var(--main-text-color);
	background-color: var(--main-bg-color);
	font-family: 'Noto Sans JP', sans-serif;
	font-size: clamp(12px, 3.75vw, 16px);
}

a {
	color: var(--a-color);
	text-decoration: none;
	transition: .3s all;
}

a:hover {
	text-decoration: underline;
}

label,
summary {
	cursor: pointer;
}

summary {
	display: block;
	list-style: none;
}

summary::-webkit-details-marker {
	display: none;
}

header,
.container,
footer {
	margin: 0 auto;
	border-color: var(--lighter-color);
	border-style: solid;
	border-width: 0 1px 0 1px;
	max-width: 700px;
}

header {
	position: relative;
}

header h1 {
	padding: 6px 16px;
	background-color: rgba(255, 255, 255, .6);
	font-size: 20px;
}

header h1 a {
	color: var(--main-text-color);
}

header h1 a:hover {
	text-decoration: none;
}

header h1 a::before {
	margin-right: .5em;
	content: '←';
}

header h2 {
	height: 200px;
	background-color: rgb(207, 217, 222);
	background-image: url(../images/X-header.jpg);
	background-position: center;
	background-repeat: no-repeat;
	background-size: cover;
}

header h2 span {
	display: none;
}

.header_sub,
.free {
	padding: 0 16px;
}

.header_sub {
	min-height: 100px;
	position: relative;
	top: -70px;
	left: 0;
}

header .icon {
	width: 25%;
	min-width: 48px;
}

header .icon+div {
	padding-right: 16px;
	width: calc(100% - (20% + 16px));
	position: absolute;
	top: 80px;
	left: calc(20% + 16px);
	display: flex;
}

header .usericon {
	border: 3px solid #fff;
	width: 100%;
	height: auto;
	border-radius: 50%;
}

.description {
	margin-left: auto;
	padding: .5em 1em;
	border: 1px solid;
	max-width: 100%;
	white-space: nowrap;
	text-overflow: ellipsis;
	overflow: hidden;
	border-radius: 1.5em;
}

header :where(.username, .postuserid) {
	display: block;
}

header :where(.username, .postuserid):hover {
	text-decoration: none;
}

header .username {
	color: var(--main-text-color);
	font-size: 1.2em;
	font-weight: bold;
}

header .postuserid {
	color: var(--light-text-color);
}

header .free {
	margin-top: -70px;
}

.home_link {
	color: var(--light-text-color);
	font-size: .9em;
}

.home_link a::before {
	content: '\f0c1';
	color: var(--light-text-color);
	font-family: var(--icon-font);
	font-weight: 900;
}

.home_link a::after {
	content: attr(href);
}

.home_link :where(.home_link, span) {
	display: block;
}

@media (520px < width) {
	header .icon {
		width: 15%;
	}

	.home_link :where(a, span) {
		display: inline-block;
	}

	.home_link span {
		margin-left: 1em;
	}
}

.onelog header {
	padding-top: 0;
}

.onelog header h1 {
	position: static;
	text-align: left;
}


.onelog :where(header h2, .header_sub, .free) {
	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 :where(.postuserid, .postdate a) {
	margin: 0 4px;
	color: var(--light-text-color);
}

.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;
}

.searchbox {
	padding: 6px;
	background-color: var(--lighter-color);
	border-radius: 6px;
}

.searchinputs {
	display: flex;
	flex-direction: row-reverse;
}

.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;
}

/* calender CSS via たこつぼくらぶ さま https://takotubo.10rino.net/ */
.calendar {
	width: 100%;
	line-height: 2.5;
	border-collapse: collapse;
	font-size: 12px;
	text-align: center;
}

.calendar a {
	position: relative;
	display: inline-block;
	width: 100%;
	background-color: rgba(29, 155, 240, .1);
	font-weight: bold;
	text-decoration: none;
}

.calendar caption {
	text-align: center;
	font-weight: bold;
	font-size: 1.4em;
}

.calendar tr.daysofweek th {
	border-bottom: 2px solid var(--light-text-color);
	text-align: center;
	font-size: 1.2em;
	line-height: 2.3;
}

.calendar tr {
	border-bottom: 1px solid var(--light-text-color);
}

.calendar tr:last-child {
	border-bottom: none;
}


.calendar td {
	vertical-align: middle;
}


.calendar th:nth-child(7) {
	color: hsl(200, 70%, 40%);
}

.calendar tr td.sat {
	background-color: hsl(200, 100%, 90%);
}

.calendar th:nth-child(1) {
	color: hsl(0, 70%, 40%);
}

.calendar tr td.sun {
	background-color: hsl(0, 100%, 90%);
}

.calendar tr td.today {
	background-color: hsl(50, 100%, 90%);
}

.calendar td.empty::after {
	content: "-";
}

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;
}

.admin_link span {
	display: none;
}

.admin_link::before {
	content: '\f013';
	font-family: var(--icon-font);
	font-weight: 900;
}

.admin_links {
	position: fixed;
	z-index: 11;
	right: 20px;
	top: 20px;
}

#open_quickpost,
:is(#open_form, #close_form, .close_form) span,
#quickpost {
	display: none;
}

#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;
}

#open_quickpost:checked~#quickpost {
	width: 100%;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	display: block;
	overflow: auto;
}

#open_quickpost:checked~#quickpost .close_form {
	width: 100%;
	height: 100%;
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	background: rgba(0, 0, 0, .4);
}

.postarea {
	margin: 3em auto 0;
	padding: 1em;
	max-width: 600px;
	background-color: #fff;
	border-radius: 16px;
}

.postform {
	padding: .5em 0;
}

.postform p {
	margin: 0;
}

.postarea :where(textarea, [type="text"], [type="submit"], [type="button"], [type="file"], button, select) {
	padding: 6px 8px;
	border: 1px solid var(--light-text-color);
	border-radius: 3px;
}

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;
}

.postarea :where([type="submit"], [type="button"], button) {
	margin: 2px 0;
	background-color: var(--lighter-color);
}

#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;
}

.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;
	background-color: var(--a-color);
	font-size: 1.4em;
	font-weight: bold;
}