@charset "utf-8";
/* でんブログ 追加CSS
   style.css（FC2時代のCSS）はそのまま使い、FC2から移行して増えた部品と
   スマホ表示だけをここに書く。 */

/* 縦のスクロールバーを常に表示（ページごとに左右にずれるのを防ぐ） */
html {
	overflow-y: scroll;
}

/* コメント欄の最後の「コメントの受付は終了しました…」の下にも、上と同じくらいの余白を空ける */
.comment_entry ~ p.sirowaku.usuku {
	padding-bottom: 1em;
}

/* 一覧ページの見出し */
h2.area_index {
	margin: 10px 1px 20px;
	padding: 6px 10px;
	border-left: 10px solid #666;
	background-color: #333;
	color: #ddd;
	font-size: 110%;
}

/* シェアボタン（外部スクリプトなし） */
.share_buttons {
	clear: both;
	margin: 2em 0 1em;
	padding: 0 1em;
	font-size: 13px;
}
.share_buttons .share_label {
	display: block;
	margin-bottom: 6px;
	color: #999;
}
.share_buttons a,
.share_buttons a:visited,
.share_buttons button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	height: 30px;
	margin: 0 6px 6px 0;
	padding: 0 12px;
	border: 1px solid #555;
	border-radius: 4px;
	background: #2a2a2a;
	color: #ddd;
	font-family: inherit;
	font-size: 13px;
	line-height: 1;
	text-decoration: none;
	vertical-align: middle;
	white-space: nowrap;
	cursor: pointer;
}
.share_buttons a:hover,
.share_buttons button:hover {
	border-color: #aaa;
	background: #383838;
	color: #fff;
	text-decoration: none;
}
.share_buttons .share_x { border-color: #777; }
.share_buttons .share_fb { border-color: #3b5998; }
.share_buttons .share_hb { border-color: #00a4de; }
.share_buttons .share_line { border-color: #06c755; }
.share_buttons .share_bsky { border-color: #1185fe; }
.share_buttons .share_copy { border-color: #888; }
.share_buttons .share_copy.done { border-color: #8d8; color: #8d8; }

/* 非公開コメント（FC2の「管理者にだけ表示」） */
.comment_body.himitu {
	color: #999;
}

/* 関連記事（FC2の関連記事に近い見た目） */
.entry_body .relate_ul {
	margin: 0.5em 1em;
}
.entry_body .relate_li {
	display: flex;
	align-items: center;
	margin: 0 0 12px 0;
	list-style: none;
}
.relate_entry_thumbnail {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	margin-right: 12px;
	overflow: hidden;
	background: #111;
}
.relate_entry_thumbnail img {
	width: 72px;
	height: 72px;
	object-fit: cover;
}
.relate_entry_title {
	line-height: 1.5em;
}
.relate_entry_date {
	display: block;
	color: #999;
	font-size: 12px;
}

/* 全記事ページ */
.archive_search input {
	width: 70%;
	padding: 4px 8px;
	border: 1px solid #666;
	background: #111;
	color: #ddd;
	font-size: 15px;
}
#arc_count {
	color: #999;
	font-size: 13px;
}
.archive_table {
	width: 100%;
	margin: 1em 0;
	border-collapse: collapse;
	font-size: 14px;
}
.archive_table td {
	padding: 4px 6px;
	border-bottom: 1px dashed #444;
	vertical-align: top;
}
.archive_table .arc_date {
	width: 6.5em;
	color: #999;
	white-space: nowrap;
}
.archive_table .arc_cat {
	width: 9em;
	font-size: 12px;
}

/* ページ先頭へ */
.gotop {
	position: fixed;
	right: 16px;
	bottom: 16px;
	margin: 0;
}
.gotop a,
.gotop a:visited {
	display: block;
	width: 40px;
	height: 40px;
	border: 1px solid #555;
	border-radius: 50%;
	background: rgba(40, 40, 40, 0.85);
	color: #ccc;
	text-align: center;
	line-height: 40px;
	text-decoration: none;
}

/* 画像がはみ出さないように */
.entry_body img {
	max-width: 100%;
	height: auto;
}

/* スマホ・狭い画面（FC2時代は800px固定だった） */
@media (max-width: 820px) {
	#container {
		width: auto;
		padding: 0 8px;
	}
	#main_block,
	#menu_block {
		float: none;
		width: auto;
	}
	#space {
		display: none;
	}
	#menu_block {
		margin-top: 16px;
	}
	.semai, .semaku, .saranisemaku {
		width: auto;
	}
	.semai2, .semaku2, .yorisemaku2, .saranisemaku2,
	.semai3, .semaku3, .yorisemaku3, .saranisemaku3,
	.semai5, .semaku5, .yorisemaku5, .saranisemaku5 {
		padding-left: 0.5em;
		padding-right: 0.5em;
	}
	.entry_body table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
	pre {
		overflow-x: auto;
	}
	.copyright {
		clear: both;
	}
}

/* サイドバー：カテゴリ（大分類だけを閉じて並べる） */
.sb_cat {
	margin: 2px 0;
}
.sb_cat summary,
.sb_mon summary {
	cursor: pointer;
	padding: 5px 4px;
	border-bottom: 1px dashed #444;
	color: #ddd;
}
.sb_cat summary:hover,
.sb_mon summary:hover {
	color: #fff;
}
.sb_cat .n,
.sb_mon .n {
	color: #888;
	font-size: 12px;
}
.sb_cat ul {
	margin: 4px 0 8px;
	padding-left: 1.2em;
}
.sb_cat li {
	margin: 3px 0;
	font-size: 13px;
}
#menu_block .sb_cat li.sb_art {
	list-style: none;
	margin-left: -1em;
}
#menu_block .sb_cat li.sb_art::before {
	content: '記事：';
	color: #999;
	font-size: 12px;
}

/* サイドバー：記事一覧（年別） */
#menu_block .sb_mon ul {
	list-style: none;
	margin: 2px 0 8px;
	padding: 0;
}
#menu_block .sb_mon li {
	position: relative;
	list-style: none;
	margin: 0;
	padding: 5px 0 5px 1em;
	font-size: 13px;
	line-height: 1.45;
	border-bottom: 1px dotted #3c3c3c;
}
#menu_block .sb_mon li:last-child {
	border-bottom: 0;
}
#menu_block .sb_mon li::before {
	content: '▸';
	position: absolute;
	left: 0;
	top: 5px;
	color: #bbb;
}

/* トップの「最近の記事」とカテゴリページの目次 */
.sub_h {
	margin: 28px 0 8px;
	padding: 6px 10px;
	border-left: 6px solid #888;
	background: #2a2a2a;
	font-size: 16px;
}
.toc {
	list-style: none;
	margin: 0;
	padding: 0;
}
.toc li {
	display: flex;
	gap: 12px;
	align-items: baseline;
	padding: 9px 4px;
	border-bottom: 1px dashed #555;
}
.toc .d {
	flex: none;
	width: 9.5em;
	color: #999;
	font-size: 13px;
}
.toc .t {
	flex: 1;
}
.toc .c {
	flex: none;
	font-size: 12px;
	color: #aaa;
}
.more_link {
	text-align: right;
	margin: 14px 4px;
}
@media (max-width: 600px) {
	.toc li {
		flex-wrap: wrap;
		gap: 2px 10px;
	}
	.toc .d {
		width: auto;
	}
	.toc .t {
		flex-basis: 100%;
	}
	/* 記事の日付とタイトル（パソコン用の大きさのままだと、日付が2行に折れてしまう） */
	.entry_title {
		border-left-width: 24px;
	}
	.entry_title .date {
		padding-top: 2px;
		font-size: 150%;
	}
	.entry_title h2 {
		padding-top: 6px;
		font-size: 115%;
	}
	/* ブログ名：画面幅に合わせて文字を小さくし、どの機種でも1行に収める（約13文字分＋左右の余白） */
	#tophead h1 a {
		font-size: min(90%, calc((100vw - 56px) / 13.5));
		white-space: nowrap;
	}
}

/* 「続きを読む」を真ん中に：文字の前後の全角スペースのうち、行末の分が幅に数えられず右へずれるのを防ぐ（2026-11-04） */
.entry_more a {
	white-space: break-spaces;
}
