@charset "UTF-8";
/*
Theme Name: MY THEME Graphite
Author: inoinori.jp
Description: 墨色ベースのダークなブログ用テーマ。記事をタイル状に並べて表示します。
Version: 2.0.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: mytheme-graphite
*/


/* ------------------- 色・サイズの設定 ------------------- */
:root {
	--c-accent: #4fd1a5;
	--c-accent-dark: #6fdcb7;
	--c-accent-soft: rgba(79, 209, 165, .12);
	--c-accent-light: #2f8f6f;
	--c-on-accent: #0b2a20;
	--c-text: #e9e9e6;
	--c-muted: #9b9b96;
	--c-border: #303136;
	--c-bg: #18191b;
	--c-card: #222327;
	--c-card-border: #2b2c31;
	--c-hover: #2a2b2f;
	--c-input: #1c1d20;

	--radius: 10px;
	--radius-s: 8px;
	--shadow: 0 0 0 1px var(--c-card-border);
	--shadow-hover: 0 0 0 1px #3a3b41, 0 10px 28px rgba(0, 0, 0, .35);

	--font: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
	--font-logo: "Audiowide", var(--font);
	--font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

	--wrap: 1120px;
	--gutter: 16px;
}


/* ------------------- 基本 ------------------- */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-padding-top: 16px;
}

body {
	margin: 0;
	color-scheme: dark;
	background-color: var(--c-bg);
	color: var(--c-text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.7;
	overflow-wrap: anywhere;
	line-break: strict;
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--c-accent-dark);
	transition: color .2s, background-color .2s, opacity .2s, box-shadow .2s, transform .2s;
}

a:hover {
	color: var(--c-accent);
}

img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

i, cite, em, var, address, dfn {
	font-style: normal;
}

:focus-visible {
	outline: 3px solid var(--c-accent-light);
	outline-offset: 2px;
}

/* スクリーンリーダー用のテキスト（画面には表示しない） */
.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	top: 8px;
	left: 8px;
	z-index: 1000;
	width: auto;
	height: auto;
	padding: 10px 16px;
	clip: auto;
	border-radius: var(--radius-s);
	background: var(--c-card);
	box-shadow: var(--shadow-hover);
}


/* ------------------- 基本構造 ------------------- */
.header-inner,
.footer-inner,
.sub-header,
.container {
	width: 100%;
	max-width: var(--wrap);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--gutter);
	padding-right: var(--gutter);
}

.container {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 32px;
	padding-top: 24px;
	padding-bottom: 56px;
}

.sub-header + .container {
	padding-top: 8px;
}

@media (min-width: 1040px) {
	/* コンテンツとサイドバーを横に並べる */
	.container {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 40px;
	}
}

@media (max-width: 599px) {
	:root {
		--gutter: 12px;
	}

	.container {
		padding-top: 12px;
	}
}


/* ------------------- ヘッダー ------------------- */
.site-header {
	border-bottom: 1px solid var(--c-border);
	background-color: var(--c-bg);
}

.header-inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	min-height: 68px;
	padding-top: 10px;
	padding-bottom: 10px;
}

/* サイト名 */
.site-title {
	margin: 0;
	font-family: var(--font-logo);
	font-size: 26px;
	font-weight: normal;
	line-height: 1.2;
}

.site-title a {
	display: inline-block;
	color: var(--c-text);
	text-decoration: none;
	letter-spacing: .02em;
}

/* サイト名の「.jp」などをアクセントカラーに */
.site-title a span {
	color: var(--c-accent);
}

.site-title a:hover {
	color: var(--c-text);
	opacity: .8;
}

.site-title .custom-logo-link {
	padding: 0;
	background: none;
}

.site-title .custom-logo {
	width: auto;
	max-height: 48px;
}

@media (max-width: 599px) {
	.header-inner {
		min-height: 56px;
	}

	.site-title {
		font-size: 20px;
	}

}


/* ------------------- ナビゲーションメニュー ------------------- */
.mainmenu ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mainmenu li a {
	display: block;
	padding: 10px 14px;
	border-radius: var(--radius-s);
	color: var(--c-text);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.mainmenu li a:hover,
.mainmenu .current-menu-item > a {
	background-color: var(--c-accent-soft);
	color: var(--c-accent-dark);
}

/* トグルボタン */
#navbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-s);
	background-color: var(--c-card);
	color: var(--c-muted);
	font-size: 18px;
	cursor: pointer;
}

#navbtn:hover {
	background-color: var(--c-hover);
}

#navbtn[aria-expanded="true"] .fa-bars::before {
	content: "\f00d";
}

@media (max-width: 767px) {
	#mainmenu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		z-index: 100;
		padding: 8px var(--gutter) 16px;
		border-bottom: 1px solid var(--c-border);
		background-color: var(--c-card);
		box-shadow: 0 16px 32px rgba(0, 0, 0, .4);
	}

	#mainmenu.is-open {
		display: block;
		animation: menu-in .2s ease-out;
	}

	.mainmenu li a {
		padding: 12px;
		border-bottom: 1px solid var(--c-border);
		border-radius: 0;
	}

	.mainmenu .sub-menu a {
		padding-left: 28px;
		font-weight: normal;
	}
}

@keyframes menu-in {
	from { opacity: 0; transform: translateY(-6px); }
	to   { opacity: 1; transform: none; }
}

@media (min-width: 768px) {
	#navbtn {
		display: none;
	}

	.mainmenu > ul {
		display: flex;
		flex-wrap: wrap;
		gap: 4px;
	}

	.mainmenu li {
		position: relative;
	}

	/* サブメニュー（ドロップダウン） */
	.mainmenu .sub-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		z-index: 100;
		min-width: 200px;
		padding: 6px;
		border: 1px solid var(--c-border);
		border-radius: var(--radius-s);
		background-color: var(--c-card);
		box-shadow: var(--shadow-hover);
	}

	.mainmenu li:hover > .sub-menu,
	.mainmenu li:focus-within > .sub-menu {
		display: block;
	}

	.mainmenu .sub-menu a {
		font-weight: normal;
	}
}


/* ------------------- パンくずリスト ------------------- */
.bread ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	margin: 0;
	padding: 14px 0 6px;
	list-style: none;
	color: var(--c-muted);
	font-size: 12px;
}

.bread li {
	display: flex;
	align-items: center;
	min-width: 0;
}

.bread li + li::before {
	content: "\f105";
	margin: 0 8px;
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 10px;
	opacity: .6;
}

.bread a {
	color: var(--c-muted);
	text-decoration: none;
}

.bread a:hover {
	color: var(--c-accent-dark);
	text-decoration: underline;
}

.bread .fa-house {
	margin-right: 4px;
}

.bread [aria-current] {
	overflow: hidden;
	max-width: 24em;
	white-space: nowrap;
	text-overflow: ellipsis;
}

@media (max-width: 599px) {
	.bread [aria-current] {
		max-width: 12em;
	}
}


/* ------------------- 一覧ページの見出し ------------------- */
.page-header {
	margin-bottom: 20px;
}

.page-header h1 {
	margin: 0;
	font-size: 26px;
	line-height: 1.4;
}

.page-header h1 small {
	margin-left: .3em;
	color: var(--c-muted);
	font-size: .6em;
	font-weight: normal;
}

.archive-description {
	margin-top: 8px;
	color: var(--c-muted);
	font-size: 14px;
}

.archive-description p {
	margin: 0;
}

@media (max-width: 599px) {
	.page-header h1 {
		font-size: 21px;
	}
}


/* ------------------- 記事の概要（一覧） ------------------- */
.post-list {
	display: grid;
	gap: 16px;
}

/* カテゴリーのラベル */
.cat-label {
	display: inline-block;
	margin-bottom: 6px;
	padding: 2px 10px;
	border-radius: 999px;
	background-color: var(--c-accent-soft);
	color: var(--c-accent-dark);
	font-size: 11px;
	font-weight: 700;
	line-height: 1.6;
}

/* 概要 */
.gaiyou > a {
	display: flex;
	gap: 20px;
	padding: 16px;
	border-radius: var(--radius);
	background-color: var(--c-card);
	box-shadow: var(--shadow);
	color: var(--c-text);
	text-decoration: none;
}

.gaiyou > a:hover,
.gaiyou-large > a:hover {
	box-shadow: var(--shadow-hover);
	transform: translateY(-2px);
	color: var(--c-text);
}

.gaiyou .thumb {
	flex: 0 0 240px;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	border-radius: var(--radius-s);
	background-color: var(--c-border);
}

.thumb img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .4s ease;
}

a:hover .thumb img,
a:hover .thumb .noimage {
	transform: scale(1.04);
}

/* アイキャッチが無いときの代替画像 */
.noimage {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 100%;
	padding: 8%;
	background: linear-gradient(135deg, #2c3d37 0%, #1f2a27 60%, #1a1f1e 100%);
	color: var(--c-accent);
	font-family: var(--font-logo);
	font-size: clamp(11px, 2.4vw, 22px);
	line-height: 1.2;
	text-align: center;
	transition: transform .4s ease;
}

.mymenu-thumb .noimage {
	font-size: 9px;
}

.mymenu-related .noimage {
	font-size: 13px;
}

.gaiyou .text {
	flex: 1;
	min-width: 0;
}

.gaiyou h2 {
	margin: 0 0 6px;
	font-size: 18px;
	line-height: 1.5;
}

.gaiyou a:hover h2,
.gaiyou-large a:hover h2 {
	color: var(--c-accent-dark);
}

.gaiyou p {
	margin: 0;
	color: var(--c-muted);
	font-size: 14px;
	line-height: 1.7;
}

.gaiyou .kiji-date {
	margin-bottom: 6px;
}

@media (max-width: 599px) {
	.post-list {
		gap: 10px;
	}

	.gaiyou > a {
		gap: 12px;
		padding: 10px;
	}

	.gaiyou .thumb {
		flex-basis: 120px;
		aspect-ratio: 1 / 1;
	}

	.gaiyou h2 {
		font-size: 15px;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.gaiyou p {
		display: none;
	}

	.gaiyou .kiji-date {
		margin-bottom: 0;
	}

	.gaiyou .cat-label {
		margin-bottom: 4px;
		font-size: 10px;
	}
}

/* 概要（大サイズ） */
.gaiyou-large > a {
	display: block;
	overflow: hidden;
	border-radius: var(--radius);
	background-color: var(--c-card);
	box-shadow: var(--shadow);
	color: var(--c-text);
	text-decoration: none;
}

.gaiyou-large .thumb {
	overflow: hidden;
	aspect-ratio: 16 / 8;
	background-color: var(--c-border);
}

.gaiyou-large .text {
	padding: 20px 24px 24px;
}

.gaiyou-large h2 {
	margin: 0 0 8px;
	font-size: 24px;
	line-height: 1.45;
}

.gaiyou-large p {
	margin: 0;
	color: var(--c-muted);
	font-size: 14px;
}

.gaiyou-large .kiji-date {
	margin-bottom: 8px;
}

@media (max-width: 599px) {
	.gaiyou-large .thumb {
		aspect-ratio: 16 / 9;
	}

	.gaiyou-large .text {
		padding: 14px 14px 16px;
	}

	.gaiyou-large h2 {
		font-size: 18px;
	}

	.gaiyou-large p {
		font-size: 13px;
	}
}

/* 記事が無いとき */
.no-results {
	padding: 32px;
	border-radius: var(--radius);
	background-color: var(--c-card);
	box-shadow: var(--shadow);
}

.no-results p {
	margin-top: 0;
}


/* ------------------- 記事 ------------------- */
.kiji {
	padding: 40px;
	border-radius: var(--radius);
	background-color: var(--c-card);
	box-shadow: var(--shadow);
}

.kiji-header h1 {
	margin: 0 0 12px;
	font-size: 30px;
	line-height: 1.45;
	letter-spacing: .01em;
}

@media (max-width: 767px) {
	.kiji {
		padding: 28px 24px;
	}
}

@media (max-width: 599px) {
	.kiji {
		padding: 22px 16px;
		border-radius: var(--radius-s);
	}

	.kiji-header h1 {
		font-size: 22px;
	}
}

/* 投稿日・更新日 */
.kiji-date {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	color: var(--c-muted);
	font-size: 12px;
}

.kiji-date i {
	margin-right: 4px;
	opacity: .8;
}

@media (max-width: 599px) {
	.kiji-date {
		font-size: 11px;
	}
}

/* タグ */
.kiji-tag ul {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 14px;
	padding: 0;
	list-style: none;
}

.kiji-tag a {
	display: block;
	padding: 3px 10px;
	border-radius: 999px;
	background-color: var(--c-accent-soft);
	color: var(--c-accent-dark);
	font-size: 12px;
	text-decoration: none;
}

.kiji-tag a::before {
	content: "#";
	margin-right: 2px;
	opacity: .6;
}

.kiji-tag a:hover {
	background-color: var(--c-accent);
	color: var(--c-on-accent);
}

/* アイキャッチ画像 */
.catch {
	margin: 24px 0 32px;
}

.catch img {
	width: 100%;
	border-radius: var(--radius-s);
}

/* 本文 */
.entry-content {
	margin-top: 28px;
	font-size: 16px;
	line-height: 1.95;
	letter-spacing: .02em;
}

.entry-content::after {
	content: "";
	display: block;
	clear: both;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content p {
	margin: 0 0 1.6em;
}

.entry-content a {
	color: var(--c-accent-dark);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: .2em;
}

.entry-content a:hover {
	color: var(--c-accent);
}

.entry-content strong {
	background: linear-gradient(transparent 62%, rgba(79, 209, 165, .28) 62%);
}

@media (max-width: 599px) {
	.entry-content {
		font-size: 15px;
		line-height: 1.9;
	}
}

/* 見出し */
.entry-content h2 {
	margin: 2.6em 0 1em;
	padding: .6em .9em;
	border-left: 5px solid var(--c-accent);
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
	background-color: var(--c-accent-soft);
	font-size: 1.35em;
	line-height: 1.5;
	clear: both;
}

.entry-content h3 {
	position: relative;
	margin: 2.2em 0 .9em;
	padding-bottom: .45em;
	border-bottom: 2px solid var(--c-border);
	font-size: 1.18em;
	line-height: 1.5;
	clear: both;
}

.entry-content h3::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 3em;
	height: 2px;
	background-color: var(--c-accent);
}

.entry-content h4 {
	margin: 1.8em 0 .7em;
	padding-left: .7em;
	border-left: 3px solid var(--c-accent-light);
	font-size: 1.05em;
	line-height: 1.5;
}

.entry-content h5,
.entry-content h6 {
	margin: 1.6em 0 .6em;
	font-size: 1em;
}

/* リスト */
.entry-content ul,
.entry-content ol {
	margin: 0 0 1.6em;
	padding-left: 1.6em;
}

.entry-content li {
	margin-bottom: .3em;
}

.entry-content li > ul,
.entry-content li > ol {
	margin: .3em 0 0;
}

.entry-content ul li::marker {
	color: var(--c-accent);
}

/* 引用 */
.entry-content blockquote {
	position: relative;
	margin: 2em 0;
	padding: 1.2em 1.4em 1.2em 3.2em;
	border-radius: var(--radius-s);
	background-color: var(--c-hover);
	color: #c4c4c0;
}

.entry-content blockquote::before {
	content: "\f10d";
	position: absolute;
	top: 1em;
	left: 1em;
	color: var(--c-accent-light);
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 1.2em;
}

.entry-content blockquote p:last-child {
	margin-bottom: 0;
}

.entry-content blockquote cite {
	display: block;
	margin-top: .6em;
	color: var(--c-muted);
	font-size: .85em;
}

/* 表 */
.entry-content table {
	width: 100%;
	margin: 0 0 1.8em;
	border-collapse: collapse;
	font-size: .92em;
	line-height: 1.7;
}

.entry-content th,
.entry-content td {
	padding: .7em .9em;
	border: 1px solid var(--c-border);
	text-align: left;
	vertical-align: top;
}

.entry-content th,
.entry-content thead td {
	background-color: var(--c-hover);
	font-weight: 700;
}

.wp-block-table {
	margin: 0 0 1.8em;
	overflow-x: auto;
}

.wp-block-table table {
	margin: 0;
}

/* コード */
.entry-content code,
.entry-content kbd {
	padding: .15em .4em;
	border-radius: 4px;
	background-color: #2c2d32;
	font-family: var(--font-mono);
	font-size: .88em;
}

.entry-content pre {
	margin: 0 0 1.8em;
	padding: 1.2em 1.4em;
	overflow-x: auto;
	border-radius: var(--radius-s);
	border: 1px solid var(--c-border);
	background-color: #121315;
	color: #e3e3df;
	font-family: var(--font-mono);
	font-size: .85em;
	line-height: 1.7;
	letter-spacing: 0;
}

.entry-content pre code {
	padding: 0;
	background: none;
	color: inherit;
	font-size: inherit;
}

.entry-content hr {
	margin: 3em 0;
	border: none;
	border-top: 1px solid var(--c-border);
}

/* ボタンブロック */
.entry-content .wp-block-button__link {
	padding: .8em 2em;
	border-radius: 999px;
	background-color: var(--c-accent);
	color: var(--c-on-accent);
	font-weight: 700;
	text-decoration: none;
}

.entry-content .wp-block-button__link:hover {
	background-color: var(--c-accent-dark);
	color: var(--c-on-accent);
}


/* ------------------- 補足情報・注意書き ------------------- */
.point,
.is-style-point,
.attention,
.is-style-attention {
	position: relative;
	margin: 2.6em 0 2em;
	padding: 1.8em 1.4em 1.2em;
	border-radius: var(--radius-s);
	font-size: .94em;
	clear: both;
}

.point > :last-child,
.is-style-point > :last-child,
.attention > :last-child,
.is-style-attention > :last-child {
	margin-bottom: 0;
}

.point::before,
.is-style-point::before,
.attention::before,
.is-style-attention::before {
	position: absolute;
	top: -.9em;
	left: 1em;
	padding: .3em .9em .3em 2.1em;
	border-radius: 999px;
	background-repeat: no-repeat;
	background-position: .7em 50%;
	background-size: 1.1em;
	color: #ffffff;
	font-family: Verdana, var(--font);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .08em;
}

/* 補足情報 */
.point,
.is-style-point {
	border: 1px solid rgba(91, 192, 72, .4);
	background-color: rgba(91, 192, 72, .09);
}

.point::before,
.is-style-point::before {
	content: "POINT";
	background-color: #3f9a31;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 22h4M12 2a7 7 0 0 0-4 12.7c.6.5 1 1.3 1 2.1V17h6v-.2c0-.8.4-1.6 1-2.1A7 7 0 0 0 12 2z'/%3E%3C/svg%3E");
}

/* 注意書き */
.attention,
.is-style-attention {
	border: 1px dashed rgba(240, 98, 102, .55);
	background-color: rgba(240, 98, 102, .09);
}

.attention::before,
.is-style-attention::before {
	content: "CAUTION";
	background-color: #d93f45;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0zM12 9v4M12 17h.01'/%3E%3C/svg%3E");
}


/* ------------------- 画像・埋め込み ------------------- */

/* 画像のキャプション */
.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.entry-content figcaption {
	margin: .6em 0 0;
	color: var(--c-muted);
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

.wp-caption-text a {
	color: var(--c-muted);
}

.entry-content figure {
	margin: 0 0 1.8em;
}

.entry-content .wp-block-image img {
	border-radius: 6px;
}

/* 画像の配置 */
.aligncenter {
	display: block;
	margin: 2em auto;
}

@media (max-width: 599px) {
	.alignleft,
	.alignright {
		display: block;
		margin: 2em auto;
	}
}

@media (min-width: 600px) {
	.alignleft {
		float: left;
		margin: .5em 2em 1.2em 0;
	}

	.alignright {
		float: right;
		margin: .5em 0 1.2em 2em;
	}
}

iframe {
	max-width: 100%;
}

/* YouTubeのビデオ */
.ytvideo {
	position: relative;
	margin: 2em 0;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	border-radius: var(--radius-s);
}

.ytvideo iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}


/* ------------------- 記事内広告 ------------------- */
.ad-in-article {
	margin: 40px 0 0;
}

/* 広告が配信されなかったときは枠ごと隠す */
.ad-in-article:has(ins.adsbygoogle[data-ad-status="unfilled"]),
ins.adsbygoogle[data-ad-status="unfilled"] {
	display: none !important;
}


/* ------------------- シェアボタン ------------------- */
.share {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid var(--c-border);
	clear: both;
}

.share-title {
	margin: 0 0 12px;
	color: var(--c-muted);
	font-size: 13px;
	font-weight: 700;
	text-align: center;
}

.share ul {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.share a {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	height: 44px;
	border-radius: var(--radius-s);
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none;
}

.share a:hover {
	color: #ffffff;
	opacity: .85;
	transform: translateY(-1px);
}

.share i,
.share b {
	font-size: 16px;
}

.share-x    { background-color: #000000; box-shadow: inset 0 0 0 1px #3a3b41; }
.share-fb   { background-color: #1877f2; }
.share-hb   { background-color: #00a4de; }
.share-line { background-color: #06c755; }

@media (max-width: 599px) {
	.share span {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(0, 0, 0, 0);
	}
}


/* ------------------- 前後の記事 ------------------- */
.post-navigation {
	margin-top: 24px;
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 12px;
}

.post-navigation .nav-next {
	grid-column: 2;
	text-align: right;
}

.post-navigation a {
	display: block;
	height: 100%;
	padding: 14px 18px;
	border-radius: var(--radius);
	background-color: var(--c-card);
	box-shadow: var(--shadow);
	color: var(--c-text);
	text-decoration: none;
}

.post-navigation a:hover {
	box-shadow: var(--shadow-hover);
	color: var(--c-accent-dark);
}

.post-navigation .nav-label {
	display: block;
	margin-bottom: 2px;
	color: var(--c-muted);
	font-size: 12px;
}

.post-navigation .nav-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.5;
}

@media (max-width: 599px) {
	.post-navigation .nav-links {
		grid-template-columns: 1fr;
	}

	.post-navigation .nav-next {
		grid-column: auto;
	}
}


/* ------------------- ページネーション ------------------- */
.pagination {
	margin: 32px 0 8px;
	text-align: center;
}

.pagination ul {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.pagination a,
.pagination .current,
.pagination .dots {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 10px;
	border-radius: var(--radius-s);
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.pagination a {
	background-color: var(--c-card);
	box-shadow: var(--shadow);
	color: var(--c-text);
}

.pagination a:hover {
	background-color: var(--c-accent-soft);
	color: var(--c-accent-dark);
}

.pagination .current {
	background-color: var(--c-accent);
	color: var(--c-on-accent);
}

.pagination .dots {
	min-width: 20px;
	padding: 0;
	color: var(--c-muted);
}

/* 記事内のページ分割 */
.page-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.page-links a {
	box-shadow: none;
	border: 1px solid var(--c-border);
}


/* ------------------- コメント ------------------- */
.comments {
	margin-top: 24px;
	padding: 32px 40px;
	border-radius: var(--radius);
	background-color: var(--c-card);
	box-shadow: var(--shadow);
}

.comments-title,
.comment-reply-title {
	margin: 0 0 16px;
	font-size: 18px;
}

.comments-title .count {
	display: inline-block;
	margin-left: 8px;
	padding: 0 8px;
	border-radius: 999px;
	background-color: var(--c-accent-soft);
	color: var(--c-accent-dark);
	font-size: 13px;
	vertical-align: middle;
}

.commentlist,
.commentlist .children {
	margin: 0;
	padding: 0;
	list-style: none;
}

.commentlist .children {
	margin-left: 24px;
	padding-left: 16px;
	border-left: 2px solid var(--c-border);
}

.comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--c-border);
	font-size: 14px;
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-author .fn {
	color: var(--c-text);
	font-weight: 700;
}

.comment-author .says {
	display: none;
}

.comment-meta {
	margin: 2px 0 0 58px;
	font-size: 12px;
}

.comment-meta a {
	color: var(--c-muted);
	text-decoration: none;
}

.comment-body > p,
.comment-body .comment-content {
	margin: 8px 0 0 58px;
}

.reply {
	text-align: right;
}

.reply a {
	display: inline-block;
	padding: 2px 12px;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	color: var(--c-muted);
	font-size: 12px;
	text-decoration: none;
}

.reply a:hover {
	background-color: var(--c-hover);
}

.no-comments {
	color: var(--c-muted);
	font-size: 14px;
}

/* コメントフォーム */
.comment-respond {
	margin-top: 24px;
}

.comment-form {
	font-size: 14px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-weight: 700;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--c-border);
	border-radius: var(--radius-s);
	background-color: var(--c-input);
	color: var(--c-text);
	font: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
	border-color: var(--c-accent);
	outline: none;
	box-shadow: 0 0 0 3px var(--c-accent-soft);
}

.comment-form-cookies-consent {
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.comment-form-cookies-consent label {
	font-weight: normal;
}

.comment-form .submit {
	padding: 12px 32px;
	border: none;
	border-radius: 999px;
	background-color: var(--c-accent);
	color: var(--c-on-accent);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.comment-form .submit:hover {
	background-color: var(--c-accent-dark);
}

@media (max-width: 599px) {
	.comments {
		padding: 22px 16px;
		border-radius: var(--radius-s);
	}

	.comment-meta,
	.comment-body > p,
	.comment-body .comment-content {
		margin-left: 0;
	}
}


/* ------------------- サイドバー ------------------- */
.sub {
	display: flex;
	flex-direction: column;
	gap: 24px;
	min-width: 0;
}

.mymenu {
	padding: 20px;
	border-radius: var(--radius);
	background-color: var(--c-card);
	box-shadow: var(--shadow);
}

.mymenu h2,
.mymenu .wp-block-heading {
	position: relative;
	margin: 0 0 14px;
	padding-left: 12px;
	color: var(--c-text);
	font-size: 16px;
	line-height: 1.5;
}

.mymenu h2::before,
.mymenu .wp-block-heading::before {
	content: "";
	position: absolute;
	top: .2em;
	bottom: .2em;
	left: 0;
	width: 4px;
	border-radius: 2px;
	background-color: var(--c-accent);
}

.mymenu ul,
.mymenu ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mymenu li a {
	display: block;
	padding: 10px 6px;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-text);
	font-size: 14px;
	line-height: 1.5;
	text-decoration: none;
}

.mymenu li:last-child > a {
	border-bottom: none;
}

.mymenu li a:hover {
	background-color: var(--c-hover);
	color: var(--c-accent-dark);
}

.mymenu li ul {
	padding-left: 1em;
}

/* 広告 */
.myad {
	padding: 12px;
	text-align: center;
}

/* サムネイル付きのメニュー */
.mymenu-thumb li a {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 0;
}

.mymenu-thumb li a:hover {
	background-color: transparent;
}

.mymenu-thumb .thumb {
	position: relative;
	flex: 0 0 72px;
	overflow: hidden;
	aspect-ratio: 1 / 1;
	border-radius: 6px;
	background-color: var(--c-border);
}

.mymenu-thumb .text {
	flex: 1;
	min-width: 0;
	font-weight: 600;
}

.mymenu-thumb .text span {
	display: block;
	margin-top: 4px;
	color: var(--c-muted);
	font-size: 11px;
	font-weight: normal;
}

/* 人気記事の順位 */
.mymenu-ranking ol {
	counter-reset: rank;
}

.mymenu-ranking li {
	counter-increment: rank;
}

.mymenu-ranking .thumb::before {
	content: counter(rank);
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	width: 22px;
	height: 22px;
	border-radius: 0 0 6px 0;
	background-color: #55565c;
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	line-height: 22px;
	text-align: center;
}

.mymenu-ranking li:nth-child(1) .thumb::before { background-color: #e0a500; }
.mymenu-ranking li:nth-child(2) .thumb::before { background-color: #9aa5b1; }
.mymenu-ranking li:nth-child(3) .thumb::before { background-color: #c07a3e; }

/* サムネイル画像に文字を重ねたメニュー（おすすめ記事） */
.mymenu-large ul {
	display: grid;
	gap: 12px;
}

.mymenu-large li a {
	position: relative;
	padding: 0;
	overflow: hidden;
	border: none;
	border-radius: var(--radius-s);
}

.mymenu-large .thumb {
	aspect-ratio: 16 / 9;
	background-color: var(--c-border);
}

.mymenu-large .text {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	padding: 28px 12px 10px;
	background: linear-gradient(transparent, rgba(0, 0, 0, .72));
	color: #ffffff;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.5;
}

.mymenu-large li a:hover {
	background: none;
	color: #ffffff;
}

@media (min-width: 480px) and (max-width: 1039px) {
	.mymenu-large ul {
		grid-template-columns: 1fr 1fr;
	}
}

/* 関連記事 */
.mymenu-related {
	margin-top: 24px;
}

.mymenu-related ul {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

.mymenu-related li a {
	display: block;
	padding: 0;
	border: none;
}

.mymenu-related .thumb {
	width: 100%;
	margin-bottom: 8px;
	aspect-ratio: 16 / 10;
}

.mymenu-related .text {
	font-size: 13px;
}

@media (max-width: 599px) {
	.mymenu-related ul {
		grid-template-columns: 1fr 1fr;
	}
}


/* ------------------- ウィジェット ------------------- */

/* 検索フォーム */
.search-form,
.wp-block-search__inside-wrapper {
	display: flex;
}

.search-form label {
	flex: 1;
}

.search-field,
.wp-block-search__input {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--c-border);
	border-right: none;
	border-radius: var(--radius-s) 0 0 var(--radius-s);
	background-color: var(--c-input);
	color: var(--c-text);
	font-family: inherit;
	font-size: 14px;
	-webkit-appearance: none;
	appearance: none;
}

.search-field:focus,
.wp-block-search__input:focus {
	border-color: var(--c-accent);
	outline: none;
}

.search-submit,
.wp-block-search__button {
	flex: 0 0 auto;
	height: 44px;
	margin: 0;
	padding: 0 16px;
	border: none;
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
	background-color: var(--c-accent);
	color: var(--c-on-accent);
	font-family: inherit;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
}

.search-submit:hover,
.wp-block-search__button:hover {
	background-color: var(--c-accent-dark);
}

.wp-block-search__label {
	display: none;
}

/* タグクラウド */
.tagcloud,
.wp-block-tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.tagcloud a,
.wp-block-tag-cloud a {
	display: inline-block;
	padding: 4px 10px;
	border: 1px solid var(--c-border);
	border-radius: 999px;
	color: var(--c-text);
	font-size: 12px !important;
	text-decoration: none;
}

.tagcloud a:hover,
.wp-block-tag-cloud a:hover {
	border-color: var(--c-accent);
	background-color: var(--c-accent-soft);
	color: var(--c-accent-dark);
}

/* カテゴリー・アーカイブ（記事数を右端に並べる） */
.widget_categories li,
.widget_archive li,
.wp-block-categories li,
.wp-block-archives li {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	border-bottom: 1px solid var(--c-border);
	color: var(--c-muted);
	font-size: 12px;
}

.widget_categories li:last-child,
.widget_archive li:last-child,
.wp-block-categories li:last-child,
.wp-block-archives li:last-child {
	border-bottom: none;
}

.widget_categories li > a,
.widget_archive li > a,
.wp-block-categories li > a,
.wp-block-archives li > a {
	flex: 1;
	border-bottom: none;
}

.widget_categories li > ul,
.wp-block-categories li > ul {
	flex-basis: 100%;
	border-top: 1px solid var(--c-border);
}


/* ------------------- 404 ------------------- */
.not-found {
	text-align: center;
}

.not-found-code {
	margin: 0;
	color: var(--c-accent-light);
	font-family: var(--font-logo);
	font-size: 72px;
	line-height: 1;
}

.not-found h1 {
	margin: 12px 0 0;
	font-size: 24px;
}

.not-found .search-form {
	max-width: 420px;
	margin: 0 auto;
}


/* ------------------- フッター ------------------- */
.site-footer {
	border-top: 1px solid var(--c-border);
	background-color: var(--c-card);
}

.footer-inner {
	padding-top: 28px;
	padding-bottom: 28px;
	text-align: center;
}

.copyright p {
	margin: 0;
	color: var(--c-muted);
	font-size: 13px;
}

.copyright .site-description {
	margin-bottom: 4px;
}

.copyright a {
	color: inherit;
	text-decoration: none;
}

/* ページトップへ戻るボタン */
.pagetop {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 50;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background-color: var(--c-accent);
	box-shadow: var(--shadow-hover);
	color: var(--c-on-accent);
	text-decoration: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: opacity .3s, visibility .3s, transform .3s, background-color .2s;
}

.pagetop.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none;
}

.pagetop:hover {
	background-color: var(--c-accent-dark);
	color: var(--c-on-accent);
}

@media (max-width: 599px) {
	.pagetop {
		right: 12px;
		bottom: 12px;
		width: 44px;
		height: 44px;
	}
}


/* =========================================================
   Graphite：記事をタイル状に並べる
   ========================================================= */
.post-list {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gaiyou > a {
	flex-direction: column;
	gap: 0;
	height: 100%;
	padding: 0;
	overflow: hidden;
}

.gaiyou .thumb {
	flex: none;
	width: 100%;
	aspect-ratio: 16 / 9;
	border-radius: 0;
}

.gaiyou .text {
	padding: 14px 16px 18px;
}

.gaiyou h2 {
	font-size: 16px;
}

.gaiyou p {
	display: none;
}

/* 先頭の大きい記事：写真と文字を横に並べる */
.gaiyou-large {
	grid-column: 1 / -1;
}

.gaiyou-large > a {
	display: grid;
	grid-template-columns: 1.15fr 1fr;
	height: 100%;
}

.gaiyou-large .thumb {
	aspect-ratio: auto;
	min-height: 260px;
}

.gaiyou-large .text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	padding: 24px 28px;
}

.gaiyou-large h2 {
	font-size: 22px;
}

@media (max-width: 767px) {
	.gaiyou-large > a {
		grid-template-columns: 1fr;
	}

	.gaiyou-large .thumb {
		min-height: 0;
		aspect-ratio: 16 / 9;
	}

	.gaiyou-large .text {
		padding: 16px 16px 20px;
	}
}

@media (max-width: 599px) {
	.post-list {
		grid-template-columns: minmax(0, 1fr);
		gap: 14px;
	}

	.gaiyou > a {
		padding: 0;
	}

	.gaiyou .thumb {
		flex: none;
		aspect-ratio: 16 / 9;
	}

	.gaiyou .text {
		padding: 12px 14px 16px;
	}

	.gaiyou h2 {
		font-size: 15px;
	}
}

/* 本文の見出し：背景なし・左の線だけ */
.entry-content h2 {
	padding: .15em 0 .15em .8em;
	border-left: 4px solid var(--c-accent);
	border-radius: 0;
	background: none;
}

.entry-content h4 {
	border-left-color: var(--c-accent-light);
}

/* 引用・表 */
.entry-content blockquote {
	background-color: #1d1e21;
	border: 1px solid var(--c-border);
}

.entry-content th,
.entry-content thead td {
	background-color: #26272b;
}

/* カードに枠線 */
.gaiyou > a,
.gaiyou-large > a,
.kiji,
.mymenu,
.comments,
.no-results,
.post-navigation a {
	border: 1px solid var(--c-card-border);
	box-shadow: none;
}

.gaiyou > a:hover,
.gaiyou-large > a:hover,
.post-navigation a:hover {
	border-color: #3a3b41;
	box-shadow: 0 10px 28px rgba(0, 0, 0, .35);
}

.pagination a {
	border: 1px solid var(--c-card-border);
	box-shadow: none;
}


/* ------------------- プロフィール（ブロックパターン） ------------------- */
.profile-card .profile-card__body {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0;
}

.profile-card .profile-card__img {
	flex: 0 0 64px;
	margin: 0;
}

.profile-card .profile-card__img img {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	box-shadow: 0 0 0 2px var(--c-accent-soft);
}

.profile-card .profile-card__body > .wp-block-group,
.profile-card .profile-card__text {
	flex: 1;
	min-width: 0;
	margin: 0;
}

.profile-card p.profile-card__name {
	margin: 0;
	color: var(--c-text);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.5;
}

.profile-card p.profile-card__bio {
	margin: 4px 0 0;
	color: var(--c-muted);
	font-size: 13px;
	line-height: 1.7;
}


/* ------------------- 動きを減らす設定の人向け ------------------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
