@charset "UTF-8";
/*---------------------------------------------------------------
  サイドバー：ブロックウィジェット用（見出しはテーマ任せ）
---------------------------------------------------------------*/

.l-sidebar {
	--side-line: rgba(0, 0, 0, 0.1);
	--side-muted: rgba(0, 0, 0, 0.45);
	--side-soft: #f7f7f7;
	--side-accent: #a83f3f;
}

/* ウィジェット内の余白（見出しは触らない） */
.l-sidebar .widget-side > *:not(.heading) {
	margin-top: 0;
}

.l-sidebar .wp-widget-group__inner-blocks > * + *,
.l-sidebar .wp-block-group__inner-container > *:not(.heading) + * {
	margin-top: 1.6em;
}

/* ---------- 検索 ---------- */
.l-sidebar .wp-block-search__label,
.l-sidebar .wp-block-archives__label {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.l-sidebar .wp-block-search__inside-wrapper {
	display: flex;
	align-items: stretch;
	gap: 0;
	border: 1px solid var(--side-line);
	background: #fff;
}

.l-sidebar .wp-block-search__input {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 0.85em 1em;
	border: 0;
	background: transparent;
	font-size: 1.3rem;
	line-height: 1.4;
	color: inherit;
}

.l-sidebar .wp-block-search__input:focus {
	outline: none;
}

.l-sidebar .wp-block-search__inside-wrapper:focus-within {
	border-color: rgba(168, 63, 63, 0.55);
}

.l-sidebar .wp-block-search__button {
	flex: 0 0 auto;
	margin: 0;
	padding: 0 1.1em;
	border: 0;
	border-left: 1px solid var(--side-line);
	border-radius: 0;
	background: var(--side-soft);
	color: #333;
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
}

.l-sidebar .wp-block-search__button:hover {
	background: var(--side-accent);
	color: #fff;
}

/* ---------- カテゴリ ---------- */
.l-sidebar .wp-block-categories {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 1px solid var(--side-line);
}

.l-sidebar .wp-block-categories .cat-item {
	margin: 0;
	padding: 0;
	list-style: none;
	border-bottom: 1px solid var(--side-line);
}

.l-sidebar .wp-block-categories .cat-item a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75em;
	padding: 0.9em 0.2em;
	line-height: 1.45;
	text-decoration: none;
	color: inherit;
	transition: color 0.15s;
}

.l-sidebar .wp-block-categories .cat-item a:hover {
	color: var(--side-accent);
}

.l-sidebar .wp-block-categories .widgetCount {
	flex: 0 0 auto;
	margin-left: 0;
}

/* ---------- カレンダー（ブロック版） ---------- */
.l-sidebar .wp-block-calendar {
	padding: 1.2em;
	background: var(--side-soft);
	border: 1px solid var(--side-line);
}

.l-sidebar .wp-calendar-table {
	width: 100%;
	table-layout: fixed;
	font-size: 1.2rem;
}

.l-sidebar .wp-calendar-table caption {
	margin-bottom: 0.9em;
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	caption-side: top;
}

.l-sidebar .wp-calendar-table thead th {
	padding-bottom: 0.55em;
	text-align: center;
	font-weight: 600;
	color: var(--side-muted);
}

.l-sidebar .wp-calendar-table tbody td {
	height: 2.6em;
	padding: 0;
	text-align: center;
	vertical-align: middle;
	background: #fff;
	border: 1px solid #f0f0f0;
	color: var(--side-muted);
}

.l-sidebar .wp-calendar-table tbody td.pad {
	background: transparent;
	border-color: transparent;
}

.l-sidebar .wp-calendar-table tbody td#today {
	background: #fff;
	box-shadow: inset 0 0 0 2px rgba(168, 63, 63, 0.35);
	color: #191919;
	font-weight: 700;
}

.l-sidebar .wp-calendar-table tbody a {
	display: block;
	height: 100%;
	line-height: 2.6em;
	font-weight: 700;
	background: #7f7f7f;
	color: #fff !important;
	text-decoration: none;
	transition: background 0.15s;
}

.l-sidebar .wp-calendar-table tbody a:hover {
	background: var(--side-accent);
}

.l-sidebar .wp-calendar-nav {
	display: flex;
	justify-content: space-between;
	margin-top: 0.8em;
	font-size: 1.2rem;
}

.l-sidebar .wp-calendar-nav a {
	text-decoration: none;
	color: var(--side-muted);
	transition: color 0.15s;
}

.l-sidebar .wp-calendar-nav a:hover {
	color: var(--side-accent);
}

/* ---------- アーカイブ（ドロップダウン） ---------- */
.l-sidebar .wp-block-archives-dropdown select {
	width: 100%;
	padding: 0.85em 1em;
	border: 1px solid var(--side-line);
	border-radius: 0;
	background: #fff;
	font-size: 1.3rem;
	line-height: 1.4;
	color: inherit;
	appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, #888 50%),
		linear-gradient(135deg, #888 50%, transparent 50%);
	background-position:
		calc(100% - 18px) 50%,
		calc(100% - 12px) 50%;
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 2.4em;
	cursor: pointer;
	transition: border-color 0.15s;
}

.l-sidebar .wp-block-archives-dropdown select:hover,
.l-sidebar .wp-block-archives-dropdown select:focus {
	border-color: rgba(168, 63, 63, 0.55);
	outline: none;
}

/* ---------- タグクラウド ---------- */
.l-sidebar .wp-block-tag-cloud {
	margin: 1.8em 0 0;
	padding-top: 0.4em;
	line-height: 1.8;
}

.l-sidebar .wp-block-tag-cloud .tag-cloud-link {
	display: inline-block;
	margin: 0 0.35em 0.45em 0;
	padding: 0.35em 0.7em;
	border: 1px solid var(--side-line);
	border-radius: 2px;
	background: #fff;
	color: inherit;
	font-size: 1.2rem !important;
	line-height: 1.35;
	text-decoration: none;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.l-sidebar .wp-block-tag-cloud .tag-cloud-link:hover {
	background: var(--side-accent);
	border-color: var(--side-accent);
	color: #fff;
}

/* ---------- 目次（LuckyWP TOC） ---------- */
.l-sidebar .lwptoc {
	margin: 0;
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
}

.l-sidebar .lwptoc_i,
.l-sidebar .lwptoc_items {
	margin: 0;
	padding: 0;
}

.l-sidebar .lwptoc_itemWrap {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: 0;
}

.l-sidebar .lwptoc_item {
	margin: 0;
	border-bottom: 0;
}

.l-sidebar .lwptoc_item > a {
	display: flex;
	gap: 0.5em;
	padding: 0.85em 0.2em;
	line-height: 1.45;
	text-decoration: none;
	color: inherit;
	transition: color 0.15s;
	border-bottom: 1px solid var(--side-line);
}

.l-sidebar .lwptoc_item a:hover {
	color: var(--side-accent);
}

.l-sidebar .lwptoc_item_number {
	flex: 0 0 auto;
	color: var(--side-muted);
	font-variant-numeric: tabular-nums;
}

/* ---------- ブログ村などHTMLパーツ ---------- */
.l-sidebar .blogmura-blogparts,
.l-sidebar .widget-side a img[src*="blogmura"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.l-sidebar .widget-side a[href*="blogmura"] {
	font-size: 1.2rem;
	line-height: 1.6;
	color: var(--side-muted);
}

/* ---------- サイトカード／ブログカード ---------- */
.content .sitecard__contents,
.content .sitecard .eyecatch,
.content .blogcard__contents,
.content .blogcard .eyecatch {
	margin-top: 0 !important;
}

.content .blogcard,
.content .sitecard,
.content .writers__box {
	border: 1px solid rgba(0, 0, 0, 0.2) !important;
}

/* ブログカード左上のサイト名（URL）バッジを非表示 */
.content .blogcard__subtitle {
	display: none !important;
}

/* ---------- コメントフォーム余白 ---------- */
.comment-respond .logged-in-as,
.comment-respond .comment-notes,
.comment-respond #email-notes {
	margin-bottom: 1.6em;
	line-height: 1.7;
}

.comment-respond form > p,
.comment-respond form > div {
	margin-top: 0;
	margin-bottom: 1.5em;
}

.comment-respond form > p:last-child,
.comment-respond form > div:last-child,
.comment-respond .form-submit {
	margin-bottom: 0;
}

.comment-respond label {
	display: block;
	margin: 0 0 0.65em;
	line-height: 1.5;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond input[type="password"],
.comment-respond textarea {
	margin-top: 0.15em;
}

.comment-respond img {
	display: block;
	margin: 0.4em 0 0.8em;
}

.comment-respond .submit {
	margin-top: 0.25em;
}

/* diary本番「追加CSS」由来（box周り・momとは値が異なる） */
.box_style_title {
	margin-bottom: 16px !important;
}

.box_style_title_inner {
	font-weight: 550;
}

/* 賢威カラーボックス（style-userで確実に適用） */
.content .box_style.box_style_blue,
.content .box_style.box_style_green,
.content .box_style.box_style_orange,
.content .box_style.box_style_red,
.content .box_style.box_style_pink,
.content .box_style.box_style_yellow,
.content .box_style.box_style_gray {
	margin-bottom: 30px;
	padding: 6px;
	background-size: 4px 4px;
	background-repeat: repeat;
	font-size: 1.4rem;
}

.content .box_style.box_style_blue .box_inner,
.content .box_style.box_style_green .box_inner,
.content .box_style.box_style_orange .box_inner,
.content .box_style.box_style_red .box_inner,
.content .box_style.box_style_pink .box_inner,
.content .box_style.box_style_yellow .box_inner,
.content .box_style.box_style_gray .box_inner {
	padding: 15px;
}

.content .box_style.box_style_blue .box_style_title,
.content .box_style.box_style_green .box_style_title,
.content .box_style.box_style_orange .box_style_title,
.content .box_style.box_style_red .box_style_title,
.content .box_style.box_style_pink .box_style_title,
.content .box_style.box_style_yellow .box_style_title,
.content .box_style.box_style_gray .box_style_title {
	margin: -8px 0 5px -27px;
	color: #fff;
	line-height: 1.4;
}

.content .box_style_title span {
	position: relative;
	display: inline-block;
	padding: 5px 10px;
}

.content .box_style_title span::before {
	position: absolute;
	top: 100%;
	left: 0;
	height: 0;
	width: 0;
	border: 3px solid transparent;
	border-top-color: #d6d6d6;
	border-right-color: #d6d6d6;
	content: "";
}

.content .box_style.box_style_blue {
	background-image: linear-gradient(-45deg, #fff 25%, #0baedd 25%, #0baedd 50%, #fff 50%, #fff 75%, #0baedd 75%, #0baedd);
}
.content .box_style.box_style_blue .box_inner { background-color: #f8fdff; }
.content .box_style.box_style_blue .box_style_title span { background-color: #0baedd; }

.content .box_style.box_style_green {
	background-image: linear-gradient(-45deg, #fff 25%, #5bc130 25%, #5bc130 50%, #fff 50%, #fff 75%, #5bc130 75%, #5bc130);
}
.content .box_style.box_style_green .box_inner { background-color: #f9fff3; }
.content .box_style.box_style_green .box_style_title span { background-color: #5bc130; }

.content .box_style.box_style_orange {
	background-image: linear-gradient(-45deg, #fff 25%, #fca60d 25%, #fca60d 50%, #fff 50%, #fff 75%, #fca60d 75%, #fca60d);
}
.content .box_style.box_style_orange .box_inner { background-color: #fdf9f1; }
.content .box_style.box_style_orange .box_style_title span { background-color: #fca60d; }

.content .box_style.box_style_red {
	background-image: linear-gradient(-45deg, #fff 25%, #d94b59 25%, #d94b59 50%, #fff 50%, #fff 75%, #d94b59 75%, #d94b59);
}
.content .box_style.box_style_red .box_inner { background-color: #fff8f9; }
.content .box_style.box_style_red .box_style_title span { background-color: #d94b59; }

.content .box_style.box_style_pink {
	background-image: linear-gradient(-45deg, #fff 25%, #f48cc0 25%, #f48cc0 50%, #fff 50%, #fff 75%, #f48cc0 75%, #f48cc0);
}
.content .box_style.box_style_pink .box_inner { background-color: #fffafd; }
.content .box_style.box_style_pink .box_style_title span { background-color: #f48cc0; }

.content .box_style.box_style_yellow {
	background-image: linear-gradient(-45deg, #fff 25%, #f2cb0c 25%, #f2cb0c 50%, #fff 50%, #fff 75%, #f2cb0c 75%, #f2cb0c);
}
.content .box_style.box_style_yellow .box_inner { background-color: #fffdf3; }
.content .box_style.box_style_yellow .box_style_title span { background-color: #f2cb0c; }

.content .box_style.box_style_gray {
	background-image: linear-gradient(-45deg, #fff 25%, #999 25%, #999 50%, #fff 50%, #fff 75%, #999 75%, #999);
}
.content .box_style.box_style_gray .box_inner { background-color: #fafafa; }
.content .box_style.box_style_gray .box_style_title span { background-color: #999; }

/* 本番「追加CSS」由来（マーカー / 会話 / コード枠 / 参考文献） */
.marker-yellow {
	background: linear-gradient(transparent 40%, #ffffcc 40%);
	font-weight: bold;
}

.marker-yellow-all {
	background: linear-gradient(transparent 0%, #ffffcc 0%);
	font-weight: bold;
}

.marker-pink {
	background: linear-gradient(transparent 40%, #ffcccc 40%);
	font-weight: bold;
}

.marker-orange {
	background: linear-gradient(transparent 40%, #f5d0a9 40%);
	font-weight: bold;
}

.marker-orange-all {
	background: linear-gradient(transparent 0%, #f5d0a9 0%);
	font-weight: bold;
}

.marker-blue {
	background: linear-gradient(transparent 40%, #ccffff 40%);
	font-weight: bold;
}

.marker-green {
	background: linear-gradient(transparent 40%, #ccffcc 40%);
	font-weight: bold;
}

.kaiwa {
	color: #808080;
	font-weight: 700;
}

.code-toolbar {
	margin-bottom: 60px;
}

.code {
	font-weight: 700;
	padding: 20px;
	margin: 20px 0 40px;
	display: block;
	background-color: #f5f5f5;
	font-family: Arial, sans-serif;
}

.code-small {
	padding: 5px;
	display: inline;
	background-color: #f5f5f5;
	font-weight: 700;
	font-family: Arial, sans-serif;
}

.code-all {
	padding: 20px;
	margin: 20px 0 40px;
	display: block;
	background-color: #333;
	color: #fff;
	font-weight: 700;
	font-family: Arial, sans-serif;
}

.code-input {
	padding: 15px 10px;
	margin: 20px 0 40px;
	display: block;
	background-color: #333;
	color: #99ccff;
	font-weight: 700;
	font-family: Arial, sans-serif;
}

.code-output {
	font-size: 0.8em;
	padding: 0 15px 5px;
	margin-bottom: 2em;
	border-radius: 5px;
	display: block;
	background-color: #0f2640;
	color: #d3d3d3;
	font-family: Arial, sans-serif;
}

.references li {
	font-weight: 500;
	line-height: 1.5em;
	margin-bottom: 1em;
}

ul.custom-list {
	list-style-type: none;
	font-weight: 500;
	margin-left: 0;
}

ul.custom-list li::before {
	content: "※ ";
}
