@charset "UTF-8";
/*
 * SWELL を今の granza（Cocoon・スキン ganchan03）の見た目に寄せる CSS（2026-10-22 Claude）
 * 値は本番の写しの Cocoon で測ったもの（PC 1280px）：
 *   背景 #f4f5f7、本文とサイドバーは白（角丸 4px）、本文 860px・サイドバー 376px・間 20px、
 *   題名・見出し3・サイドバーの見出しは茶色 #594321 の帯に白字、見出し2 は薄いクリーム #faf8ef に上下の茶色の線（中央寄せ）、
 *   ヘッダーは背景画像 granza_top8.jpg の上にキャッチフレーズ（上）とロゴ、その下に白いメニュー（高さ 60px・太字 #666）、フッターはベージュ #f2e7c7
 */

/* ---- 全体の幅：本文 860px・サイドバー 376px・間 20px（Cocoon と同じ） ---- */
:root .-frame-on-sidebar,
:root .-sidebar-on {
	--swl-sidebar_width: 376px;
	--swl-sidebar_margin: 20px;
}
@media (min-width: 960px) {
	.l-content.l-container {
		padding-left: 5px;
		padding-right: 5px;
		padding-top: 6px;
	}
}

/* ---- ヘッダー：背景画像の上に、キャッチフレーズ（上）とロゴ ---- */
.l-header {
	background-color: #fff;
	background-image: url(/wp-content/uploads/2024/07/granza_top8.jpg);
	background-size: 100% auto;
	background-position: 50% 0;
	box-shadow: none;
}
.-parallel-bottom .l-header__logo {
	display: flex;
	flex-direction: column-reverse;
	align-items: center;
	padding: 8px 0 10px;
}
.-parallel .l-header__logo .c-catchphrase {
	color: #333;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 14px;
	letter-spacing: 0;
}
.l-header__gnav,
.l-header .c-gnavWrap {
	background: #fff;
}
.c-gnav > .menu-item > a {
	color: #666;
	font-weight: 700;
	height: 60px;
	padding: 0 2em;
}
.c-gnav > .menu-item > a .ttl {
	font-size: 16px;
}
.c-gnav > .menu-item > a::after {
	content: none;
}
/* スマホ：背景画像の上にロゴ（Cocoon のスマホは、上に小さいボタンの帯、その下に背景画像とロゴ） */
@media (max-width: 959px) {
	.l-header {
		background-size: cover;
	}
	.l-header__inner {
		min-height: 96px;
	}
	.l-fixHeader {
		display: none;
	}
}

/* ---- 本文とサイドバーの枠：Cocoon はサイドバー全体が 1 枚の白い板 ---- */
.-frame-on .l-mainContent {
	border-radius: 4px;
	padding: 36px 29px;
}
@media (min-width: 960px) {
	#sidebar {
		background: #fff;
		border-radius: 4px;
		padding: 19px;
	}
	.-frame-on-sidebar #sidebar .c-widget {
		background: none;
		padding: 0;
		border-radius: 0;
	}
}
@media (max-width: 959px) {
	.-frame-on .l-mainContent {
		padding: 16px 10px;
	}
}

/* ---- 記事の題名：茶色の帯に白字、左に水色の線 ---- */
.c-postTitle {
	background: #594321;
	border-left: 4px solid #9be4e8;
	padding: 20px;
	margin-bottom: 0;
}
.c-postTitle__ttl {
	color: #fff;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
}
.c-postTitle__date {
	display: none;
}
@media (max-width: 599px) {
	.c-postTitle__ttl {
		font-size: 20px;
	}
}
/* 日付は写真の下・右寄せ（Cocoon と同じ）。題名 → 写真 → 日付 → PR 表記 の順に並べ替える */
.single .l-mainContent__inner > .p-articleHead { order: 1; }
.single .l-mainContent__inner > .p-articleThumb { order: 2; margin-top: 1.5em; }
.single .l-mainContent__inner > .p-articleMetas.-top { order: 3; justify-content: flex-end; margin: .5em 0 1em; }
.single .l-mainContent__inner > .c-prNotation { order: 4; }
.single .l-mainContent__inner > .post_content { order: 5; }
.single .l-mainContent__inner {
	display: flex;
	flex-direction: column;
}
.single .l-mainContent__inner > * {
	order: 9;
	min-width: 0;
}

/* 固定ページ・404 の題名も、記事と同じ茶色の帯 */
.c-pageTitle {
	background: #594321;
	border-left: 4px solid #9be4e8;
	padding: 20px;
	margin-bottom: 1.5em;
}
.c-pageTitle__inner {
	color: #fff;
	font-size: 24px;
	font-weight: 500;
	line-height: 1.25;
	border: none;
	padding: 0;
}
.c-pageTitle__inner::before,
.c-pageTitle__inner::after,
.c-pageTitle::after {
	content: none;
}

/* ---- PR 表記（Cocoon の大きい表記：細い枠線の箱、中央寄せ、アイコンなし） ---- */
.c-prNotation[data-style="big"] {
	background: none;
	border: 1px solid rgba(51, 51, 51, .7);
	border-radius: 0;
	font-size: 12.8px;
	padding: 12.8px;
	text-align: center;
	justify-content: center;
	margin: 0 0 2em;
}
.c-prNotation[data-style="big"] .icon-info {
	display: none;
}

/* ---- 見出し ---- */
.post_content h2 {
	background: #faf8ef;
	color: #333;
	border-top: 2px solid #594321;
	border-bottom: 2px solid #594321;
	padding: 20px 0;
	margin-left: 0;
	margin-right: 0;
	text-align: center;
	font-size: 22px;
	font-weight: 500;
	line-height: 1.25;
}
.post_content h2::before,
.post_content h2::after {
	content: none;
}
.post_content h3 {
	background: #594321;
	color: #fff;
	border: none;
	padding: 10px 16px;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.25;
}
.post_content h3::before,
.post_content h3::after {
	content: none;
}
.post_content h4 {
	color: #242735;
	border: none;
	padding: 9px 10px;
	font-size: 18px;
}
.post_content h4::before,
.post_content h4::after {
	content: none;
}
@media (max-width: 599px) {
	.post_content h2 { font-size: 20px; }
	.post_content h3 { font-size: 18px; }
	.post_content h4 { font-size: 17px; }
}

/* ---- 本文の文字：16px・行の高さ 1.8（Cocoon と同じ） ---- */
.post_content {
	font-size: 16px;
	line-height: 1.8;
}

/* ---- 目次：中央に置いた枠線の箱、題「目次」を中央（Cocoon と同じ） ---- */
#main_content .p-toc {
	display: table;
	margin: 1em auto 1.8em;
	max-width: 100%;
	border: 1px solid #ccc;
	border-radius: 0;
	padding: 16px 26px;
	font-size: 14.4px;
}
#main_content .p-toc .p-toc__ttl {
	text-align: center;
	border-bottom: none;
	margin-bottom: .5em;
	padding: 0;
	font-size: 16px;
}
#main_content .p-toc .p-toc__ttl::before {
	content: none;
}

/* ---- サイドバー・ウィジェットの見出し：茶色の帯に白字 ---- */
.c-widget__title,
.l-sidebar .c-widget__title,
.c-secTitle {
	background: #594321;
	color: #fff;
	font-size: 16px;
	font-weight: 500;
	padding: 14px 20px;
	border-radius: 2px;
	text-align: left;
}
.c-widget__title::before,
.c-widget__title::after,
.c-secTitle::before,
.c-secTitle::after {
	content: none;
}
.l-sidebar .c-widget + .c-widget {
	margin-top: 2em;
}

/* プロフィール：名前は青のリンク色（Cocoon と同じ） */
.p-profileBox {
	background: none;
	color: #333;
	border: 1px solid #ddd;
	padding: 20px;
}
.p-profileBox__name {
	color: #1967d2;
	font-weight: 700;
	text-decoration: underline;
}

/* ---- 一覧（トップ・カテゴリー） ---- */
.l-mainContent .p-postList__title {
	font-size: 16px;
	font-weight: 700;
}
.l-mainContent .p-postList__excerpt {
	font-size: 13px;
	line-height: 1.6;
}
.l-mainContent .p-postList__times {
	justify-content: flex-end;
}
.l-mainContent .c-postThumb__cat {
	background: rgba(51, 51, 51, .7) !important;
	font-size: 10px;
}
/* トップの「新着記事」のタブは 1 つだけなので、見出しのタブは出さない（Cocoon にはタブがない） */
.home .p-postListTab {
	display: none;
}

/* ---- フッター ---- */
.l-footer {
	background: #f2e7c7;
	color: #666;
}
.l-footer__foot {
	background: #f2e7c7;
}
.copyright {
	color: #666;
	font-size: 14px;
}

/* ---- パンくず（Cocoon は本文の下・小さい灰色の文字） ---- */
.p-breadcrumb {
	font-size: 13px;
	color: #999;
}

/* ---- 10/22 見比べ v2 の手直し ---- */
/* 本文の左右の余白（SWELL は本文の内側にもう 16px 余白がある。Cocoon は無い） */
.post_content {
	--swl-pad_post_content: 0px;
	padding-left: 0;
	padding-right: 0;
}
/* 見出しの上の余白（SWELL は 88px と広い。Cocoon は段落の下の余白＋見出しの下の余白 1.8em 程度） */
.post_content h2 {
	margin-top: 2.2em;
	margin-bottom: 1.6em;
}
.post_content h3 {
	margin-top: 2em;
	margin-bottom: 1.4em;
}
/* 目次の番号：Cocoon と同じ「1.」の入れ子（SWELL の「1-1 |」は使わない） */
#main_content .p-toc__list,
#main_content .p-toc__childList {
	list-style: decimal;
	padding-left: 1.6em;
	margin: 0;
}
#main_content .p-toc__list li::before,
#main_content .p-toc__list li::marker {
	color: #333;
}
#main_content .p-toc__list.is-style-index li::before,
#main_content .p-toc__list .p-toc__link::before {
	content: none !important;
	counter-increment: none !important;
}
#main_content .p-toc__list > li + li {
	margin-top: .2em;
}
#main_content .p-toc__list [data-level="3"],
#main_content .p-toc__list [data-level="4"] {
	font-size: 1em;
}
/* 一覧の日付は右寄せ（Cocoon と同じ） */
.l-mainContent .p-postList__meta {
	justify-content: flex-end;
}
#main_content .p-toc__list li {
	list-style: inherit;
}
/* 目次の番号（SWELL は li の番号を消しているので強めに戻す） */
#main_content .p-toc ol.p-toc__list,
#main_content .p-toc ol.p-toc__childList {
	list-style: decimal outside !important;
}
#main_content .p-toc ol li {
	list-style: decimal outside !important;
	display: list-item !important;
}

/* ---- スマホの手直し（10/22 見比べ v5） ---- */
@media (max-width: 959px) {
	/* ヘッダー：上を白い帯にして、ボタンとロゴを置く（Cocoon のスマホは白い帯にメニュー・ロゴ・検索） */
	.l-header {
		background-size: 100% auto;
		background-position: 50% 50px;
		background-repeat: no-repeat;
	}
	.l-header__inner {
		min-height: 0;
		background: #fff;
	}
	.l-header::after {
		content: "";
		display: block;
		height: 70px;
	}
	.l-header__logo {
		padding: 6px 0;
	}
	.l-header__menuBtn,
	.l-header__customBtn {
		color: #333;
	}
	/* 一覧：説明文は小さく 3 行まで（Cocoon と同じ） */
	.l-mainContent .p-postList__title {
		font-size: 15px;
		line-height: 1.5;
	}
	.l-mainContent .p-postList__excerpt {
		font-size: 12px;
		line-height: 1.6;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}
	.l-mainContent .-type-list .p-postList__thumb {
		width: 40%;
	}
}
@media (max-width: 959px) {
	.l-header {
		position: relative;
	}
	.l-header .c-headLogo__img {
		max-width: 72vw;
		height: auto;
		width: 72vw;
	}
}
@media (max-width: 959px) {
	.l-header__menuBtn .c-iconBtn__label,
	.l-header__customBtn .c-iconBtn__label {
		white-space: nowrap;
		font-size: 10px;
	}
}
/* カテゴリーのページ：題名の横の「– category –」は出さない（Cocoon には無い）。Cocoon のカテゴリーの本文は題名の下 */
.c-pageTitle__subTitle {
	display: none;
}
.granza-termContent {
	margin: 0 0 2em;
}

/* ---- 追尾サイドバー：中をスクロールさせず、全部を表示する（10/22 依頼者「人気記事も新着記事もスクロールバーが出て全部表示されていない」） ----
   SWELL は追尾サイドバーを画面の高さに収めるため、人気記事・新着記事の欄を縮めて中をスクロールさせる。
   granza の追尾サイドバー（人気記事・バナー・最近の投稿・広告・カテゴリー）は画面より長く、貼り付けても下が見えないので、普通に並べる */
.w-fixSide,
.w-fixSide.-multiple {
	position: static;
	display: block;
	max-height: none !important;
	overflow: visible;
}
.w-fixSide .c-widget,
.w-fixSide.-multiple .widget_swell_new_posts,
.w-fixSide.-multiple .widget_swell_popular_posts,
.w-fixSide.-multiple .c-listMenu {
	min-height: 0;
	max-height: none;
	overflow: visible !important;
}

/* ---- 目次の手直し（10/22 依頼者「センタリングなのか幅なのか、違和感がある」）：Cocoon の値に合わせる ----
   Cocoon：箱は中身に合わせた幅で中央（display:table）、文字は本文の 0.9 倍（PC 約 16px）、行の高さ 1.8、
   枠の内側の余白 1em 1.6em、題は 1.1 倍で中央、入れ子の字下げ 1em、題の横に [閉じる] */
#main_content .p-toc {
	display: table !important;
	width: auto !important;
	max-width: 100%;
	margin: 1em auto 1.8em !important;
	padding: 1em 1.6em;
	font-size: 16.2px;
	line-height: 1.8;
	border: 1px solid #ccc;
}
#main_content .p-toc .p-toc__ttl {
	font-size: 1.1em;
	padding: 2px 16px;
	margin-bottom: .6em;
}
#main_content .p-toc ol.p-toc__list {
	padding-left: 1em;
	margin: 0;
}
#main_content .p-toc ol.p-toc__childList {
	padding-left: 1em;
	margin: 0;
}
#main_content .p-toc li,
#main_content .p-toc__list > li + li {
	margin: 0;
	line-height: 1.8;
	font-size: 1em;
}
#main_content .p-toc__list [data-level="3"],
#main_content .p-toc__list [data-level="4"],
#main_content .p-toc__childList li {
	font-size: 1em;
}
#main_content .p-toc .p-toc__link {
	color: #333;
	text-decoration: none;
}
#main_content .p-toc .p-toc__link:hover {
	text-decoration: underline;
}
/* [閉じる]／[開く]（functions.php のスクリプトが付ける） */
.granza-toc-toggle {
	margin-left: .5em;
	font-size: .8em;
	cursor: pointer;
}
.granza-toc-toggle:hover {
	text-decoration: underline;
}
#main_content .p-toc.is-granza-closed .p-toc__list {
	display: none;
}
@media (max-width: 599px) {
	#main_content .p-toc {
		font-size: 14.4px;
	}
}
/* 目次の行の間隔：Cocoon は 1 項目 約 32px（文字 16.2px × 2） */
#main_content .p-toc li,
#main_content .p-toc__list > li + li {
	line-height: 2;
}

/* =====================================================================
   10/22 Codex のレビューと Cocoon の実測値（テスト機を Cocoon に戻して測った）による手直し
   ===================================================================== */

/* ---- 本文：Cocoon は PC・スマホとも 18px・行の高さ 1.8・段落の下 1.8em（前の 16px は誤り） ---- */
.post_content {
	font-size: 18px;
	line-height: 1.8;
}
.post_content p {
	margin-bottom: 1.8em;
}
.post_content li {
	font-size: .9em;
	line-height: 1.8;
}
.post_content li li {
	font-size: 1em;
}
@media (max-width: 599px) {
	.post_content h2 { font-size: 22px; }
	.post_content h3 { font-size: 20px; }
	.post_content h4 { font-size: 18px; }
	.c-postTitle__ttl,
	.c-pageTitle__inner { font-size: 24px; }
	#main_content .p-toc { font-size: 16.2px; }
}

/* ---- 記事の冒頭の間隔（Cocoon：題名の下 38px（スマホ 4px）→ 写真 → 10.8px → 日付 → 18px → PR 表記（上下 14.4px）→ 18px → 本文） ---- */
.single .l-mainContent__inner > .granza-prSmall { order: 0; }
.single .l-mainContent__inner > .p-articleHead { margin-bottom: 38px; }
.single .l-mainContent__inner > .p-articleThumb { margin: 0 0 10.8px; }
.single .l-mainContent__inner > .p-articleMetas.-top { margin: 0 0 18px; }
.single .l-mainContent__inner > .c-prNotation { margin: 0 0 14.4px; }
.single .l-mainContent__inner > .post_content { margin-top: 18px; }
@media (max-width: 599px) {
	.single .l-mainContent__inner > .p-articleHead { margin-bottom: 4px; }
}
/* 写真は本文の幅いっぱい・影なし（Cocoon と同じ） */
.p-articleThumb {
	position: relative;
	text-align: center;
}
.p-articleThumb__img {
	width: 100%;
	height: auto;
	box-shadow: none;
}
/* 写真の左上のカテゴリーの札（Cocoon：14px・半透明の黒・白字・細い白い枠） */
.granza-eyecatch-cat {
	position: absolute;
	top: 5.6px;
	left: 5.6px;
	z-index: 1;
	font-size: 14px;
	line-height: 1.6;
	padding: 2px 8px;
	color: #fff;
	background: rgba(51, 51, 51, .7);
	border: 1px solid #eee;
	border-radius: 2px;
}
/* 題名の上の小さい「PR」（Cocoon：12px・細い枠・白地・左寄せ） */
.granza-prSmall {
	align-self: flex-start;
	font-size: 12px;
	line-height: 1.8;
	padding: 2px 12px;
	margin: -20px 0 12px -20px;
	border: 1px solid rgba(51, 51, 51, .7);
	color: #333;
	background: rgba(255, 255, 255, .9);
}
@media (max-width: 959px) {
	.granza-prSmall {
		margin: -10px 0 6px -4px;
	}
}

/* ---- 本文の白い背景は中身の終わりまで（短いページでサイドバーの下まで伸ばさない。Cocoon と同じ） ---- */
.-sidebar-on .l-mainContent {
	align-self: flex-start;
}

/* ---- 表（Cocoon：見出しのセルは薄いグレー #f5f6f7・黒字・太字・中央、枠線 #eee、内側 9px、奇数行 #fafbfc、18px） ---- */
.post_content table {
	font-size: 18px;
	border-collapse: collapse;
}
.post_content th,
.post_content thead th,
.post_content thead td {
	background-color: #f5f6f7;
	color: #333;
	border: 1px solid #eee;
	padding: 9px;
	font-weight: 700;
	text-align: center;
}
.post_content td {
	border: 1px solid #eee !important;
	padding: 9px;
}
.post_content tr:nth-of-type(2n+1) {
	background-color: #fafbfc;
}
.post_content tr:nth-of-type(2n) {
	background-color: transparent;
}

/* ---- 内部のブログカード（Cocoon：本文の 90% の幅で中央、写真 160×90、題 18px 太字、抜粋 14.4px） ---- */
.post_content .p-blogCard {
	width: 90%;
	margin-left: auto;
	margin-right: auto;
}
.post_content .p-blogCard__thumb {
	width: 160px;
	flex: 0 0 160px;
}
.post_content .p-blogCard__title {
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
}
.post_content .p-blogCard__excerpt {
	font-size: 14.4px;
	line-height: 1.6;
}

/* ---- 一覧（PC）：Cocoon は写真 320×180、題 18px 太字、抜粋 14.4px、日付は右下 ---- */
@media (min-width: 600px) {
	.l-mainContent .-type-list .p-postList__item {
		margin-bottom: 0;
		padding: 12px 0;
	}
	.l-mainContent .-type-list .p-postList__link {
		display: flex;
		align-items: flex-start;
	}
	.l-mainContent .-type-list .p-postList__thumb {
		width: 320px;
		flex: 0 0 320px;
		margin-right: 12px;
	}
	.l-mainContent .-type-list .p-postList__body {
		flex: 1 1 auto;
		min-width: 0;
	}
	.l-mainContent .p-postList__title {
		font-size: 18px;
		font-weight: 700;
		line-height: 1.6;
	}
	.l-mainContent .p-postList__excerpt {
		font-size: 14.4px;
		line-height: 1.3;
		margin-top: .5em;
	}
	.l-mainContent .p-postList__meta {
		font-size: 14px;
	}
}
/* 一覧（スマホ）：写真は左 40%、右に題と抜粋（抜粋の左端を題とそろえる） */
@media (max-width: 599px) {
	.l-mainContent .-type-list .p-postList__link {
		display: flex;
		align-items: flex-start;
	}
	.l-mainContent .-type-list .p-postList__thumb {
		width: 40%;
		flex: 0 0 40%;
		margin-right: 10px;
	}
	.l-mainContent .-type-list .p-postList__body {
		flex: 1 1 auto;
		min-width: 0;
	}
}

/* ---- ページ送り（Cocoon：バナー → 横長の「次のページ」→ ページ番号。今のページは薄いグレー） ---- */
.granza-indexBottom {
	margin: 1.5em 0;
	text-align: center;
}
.granza-nextPage__link {
	display: block;
	text-align: center;
	background: #f9f9f9;
	border: 1px solid #eee;
	color: #333;
	font-size: 21.6px;
	line-height: 60px;
	text-decoration: none;
	margin: 1.5em 0 1em;
}
.granza-nextPage__link:hover {
	background: #eee;
}
.c-pagination .page-numbers {
	width: 46px;
	height: 46px;
	line-height: 46px;
	border: none;
	color: #333;
	background: none;
}
.c-pagination .page-numbers.current {
	background: #eee;
	color: #333;
}

/* ---- サイドバー ---- */
/* 検索：上に「検索」、入力欄と黒いボタン（Cocoon と同じ） */
#sidebar .wp-block-search__label {
	display: block;
	font-size: 16px;
	margin-bottom: .5em;
}
#sidebar .wp-block-search__button {
	background: #333;
	color: #fff;
	border: none;
	border-radius: 0;
	padding: 0 1em;
}
#sidebar .wp-block-search__input {
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 16px;
	padding: 8px;
}
/* プロフィール：四角い写真 100px、枠つきの板、名前は青の太字 */
.p-profileBox {
	border: 1px solid #ccc;
	border-radius: 4px;
	padding: 20px;
}
.p-profileBox__icon .p-profileBox__iconImg,
.p-profileBox__iconImg {
	width: 100px;
	height: 100px;
	border-radius: 0 !important;
}
.p-profileBox__name {
	font-size: 19.8px;
	font-weight: 700;
	color: #1967d2;
	text-decoration: underline;
}
.p-profileBox__text {
	font-size: 16px;
	line-height: 1.4;
	text-align: left;
}
/* カテゴリー：アイコン・区切り線なし、18px、字下げ（Cocoon と同じ） */
#sidebar .widget_categories ul,
#sidebar .widget_categories li {
	list-style: none;
	border: none;
}
#sidebar .widget_categories a {
	font-size: 18px;
	padding: 10px 4px 10px 20px;
	border: none !important;
	color: #333;
}
#sidebar .widget_categories a::before,
#sidebar .widget_categories a::after,
#sidebar .widget_categories .c-listMenu a::before {
	content: none !important;
}
#sidebar .widget_categories .children a {
	padding-left: 40px;
}

/* ---- カテゴリーのページの題名の前にフォルダーのアイコン（Cocoon と同じ） ---- */
.archive .c-pageTitle__inner::before {
	content: "\f07c";
	font-family: FontAwesome;
	margin-right: .4em;
}

/* ---- フッター：左にロゴ、右にコピーライト（Cocoon と同じ） ---- */
.l-footer__foot .l-container {
	display: flex;
	flex-direction: row-reverse;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}
.granza-footLogo__img {
	height: 40px;
	width: auto;
}
@media (max-width: 599px) {
	.l-footer__foot .l-container {
		flex-direction: column-reverse;
	}
}

/* ---- スマホのヘッダー：背景画像の帯にも大きいロゴ（Cocoon と同じ 2 段） ---- */
@media (max-width: 959px) {
	.l-header::after {
		height: 62px;
		background: url(/wp-content/uploads/2024/07/granza_logo5.png) no-repeat center 50% / 92% auto;
	}
}

/* ---- サイドバーの人気記事・最近の投稿：写真を幅いっぱいに大きく、その下に題名（10/22 依頼者「大きくてもいい、逆に見やすい」。Cocoon とは違う形のまま） ---- */
#sidebar .widget_swell_popular_posts .p-postList__link,
#sidebar .widget_swell_new_posts .p-postList__link {
	display: block;
}
#sidebar .widget_swell_popular_posts .p-postList__thumb,
#sidebar .widget_swell_new_posts .p-postList__thumb {
	width: 100%;
	max-width: none;
	margin: 0 0 6px;
}
#sidebar .widget_swell_popular_posts .p-postList__body,
#sidebar .widget_swell_new_posts .p-postList__body {
	width: 100%;
	padding: 0;
}
#sidebar .widget_swell_popular_posts .p-postList__item + .p-postList__item,
#sidebar .widget_swell_new_posts .p-postList__item + .p-postList__item {
	margin-top: 1.2em;
}

/* =====================================================================
   10/22 人気記事 上位 20 本の見比べ（Claude・Codex）による手直し
   ===================================================================== */

/* ---- スマホ：本文の後に、人気記事・最近の投稿・カテゴリーも出す（Cocoon はスマホでもサイドバーを全部出していた。SWELL は追尾サイドバーを PC だけにする） ---- */
@media (max-width: 959px) {
	#fix_sidebar.pc_,
	.w-fixSide.pc_ {
		display: block !important;
	}
}

/* ---- ボタン（購入ボックスなどの WordPress のボタン）：Cocoon と同じ大きさ（文字 1.125 倍、内側の余白は WordPress の標準） ---- */
.post_content .wp-block-button__link {
	font-size: 1.125em;
	line-height: 1.5;
	padding: calc(.667em + 2px) calc(1.333em + 2px);
}

/* ---- 表：記事の中で色を付けた見出しのセルは、その色のまま（前の指定の !important を外す） ---- */
.post_content th,
.post_content thead th,
.post_content thead td {
	background-color: #f5f6f7;
	color: #333;
}
/* ブロックの表は中身に合わせた幅（Cocoon と同じ）。「固定レイアウト」の表と、幅広・全幅の表は本文の幅いっぱい */
.post_content figure.wp-block-table table {
	width: auto;
}
.post_content figure.wp-block-table table.has-fixed-layout,
.post_content figure.wp-block-table.alignwide table,
.post_content figure.wp-block-table.alignfull table {
	width: 100%;
}
/* 見出しの行の下の濃い線（WordPress の表の標準。Cocoon でも出ていた） */
.post_content .wp-block-table thead {
	border-bottom: 3px solid;
}

/* ---- 写真の説明文：小さめの灰色・左寄せ（ブロックの写真）、枠つきの灰色の帯・中央（クラシックの写真）。Cocoon と同じ ---- */
.post_content .wp-block-image figcaption,
.post_content figure figcaption.wp-element-caption {
	font-size: 13px;
	color: #666;
	text-align: left;
	margin: .5em 0 1em;
	padding: 0;
	background: none;
}
.post_content .wp-caption {
	margin: 1em 0;
	padding-top: 4px;
	border: 1px solid #eee;
	border-radius: 3px;
	background-color: #f5f6f7;
	text-align: center;
}
.post_content .wp-caption .wp-caption-text {
	font-size: .8em;
	margin: 2px;
}

/* ---- 小さい写真は左寄せ（Cocoon はブロックの写真を左寄せで出していた。中央・右の指定がある写真はそのまま） ---- */
.post_content .wp-block-image:not(.aligncenter):not(.alignright):not(.is-style-rounded) > img,
.post_content .wp-block-image:not(.aligncenter):not(.alignright) > a > img {
	margin-left: 0;
	margin-right: auto;
}

/* ---- 記事の最後の書いた人（Cocoon：右寄せ・14px） ---- */
.granza-authorInfo {
	text-align: right;
	font-size: 14px;
	margin: 1em 0 0;
}
.granza-authorInfo .fa {
	margin-right: .2em;
}

/* ---- 記事の下のカテゴリー：茶色ではなく灰色の小さい札（Cocoon と同じ） ---- */
.p-articleFoot .c-categoryList__link {
	background: #333;
	color: #fff;
	font-size: 12px;
	padding: 2px 6px;
	border-radius: 0;
}

/* ---- 前後の記事：上下 2 段（Cocoon と同じ。SWELL は左右 2 列で茶色の矢印の帯） ---- */
.p-pnLinks {
	flex-direction: column;
	margin: 38px 0;
}
.p-pnLinks__item {
	width: 100%;
	font-size: 14.4px;
	border: 1px solid #ddd;
}
.p-pnLinks__item + .p-pnLinks__item {
	border-top: none;
}
.p-pnLinks__item.-next:first-child {
	margin-left: 0;
}
.p-pnLinks .-prev .p-pnLinks__link,
.p-pnLinks .-next .p-pnLinks__link {
	border-left: none;
	border-right: none;
	background: none;
	padding: 10px;
}
.p-pnLinks .-prev::before,
.p-pnLinks .-next::before {
	color: #ddd;
}
.p-pnLinks__thumb {
	width: 120px;
	height: 68px;
}
@media (max-width: 599px) {
	.p-pnLinks__thumb {
		width: 30%;
		height: auto;
	}
}

/* ---- スマホの本文：Cocoon はスマホでも本文 18px（10/22 撮影の画像で 1 行の文字数から確認。16px にしたのは誤りだったので戻した） ---- */

/* ---- 写真の寄せ方（10/22 2 回目の見比べ） ----
   クラシックの説明文付きの写真（wp-caption）は、記事の中の寄せ方（aligncenter など）のまま。上の枠の指定で中央寄せが消えていたので戻す */
.post_content .wp-caption {
	margin-top: 1em;
	margin-bottom: 1em;
}
.post_content .wp-caption.aligncenter {
	margin-left: auto;
	margin-right: auto;
}
/* 寄せ方の指定がないブロックの写真（幅を指定した小さい写真など）は左寄せ（Cocoon は写真を block で出すので左に寄る） */
.post_content .wp-block-image:not(.aligncenter):not(.alignright):not(.alignleft) {
	text-align: left;
}
.post_content .wp-block-image:not(.aligncenter):not(.alignright):not(.alignleft) img {
	display: block;
	margin-left: 0;
	margin-right: auto;
}

/* ---- 横に長い表：切れずに横にスクロールできるように（Cocoon もスマホでは横スクロール） ---- */
.post_content figure.wp-block-table {
	overflow-x: auto;
	max-width: 100%;
	-webkit-overflow-scrolling: touch;
}

/* ---- ブログカード（子テーマの swl_parts__blog_card が出す。Cocoon と同じ形） ---- */
.post_content .granza-blogCard {
	width: 90%;
	margin: 0 auto 1.8em;
	border: 1px solid #ccc;
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	transition: background-color .2s;
}
.post_content .granza-blogCard:hover {
	background-color: #f5f6f7;
}
.post_content .granza-blogCard .p-blogCard__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	padding: 1.6% 2.2% 2%;
}
.post_content .granza-blogCard .p-blogCard__caption {
	display: none;
}
.post_content .granza-blogCard .p-blogCard__thumb {
	width: 160px;
	flex: 0 0 160px;
	margin: 0 2% 0 0;
	padding: 0;
}
.post_content .granza-blogCard .p-blogCard__body {
	flex: 1 1 0;
	min-width: 0;
	padding: 0;
}
.post_content .granza-blogCard .p-blogCard__title {
	display: block;
	color: #333;
	font-size: 18px;
	font-weight: 700;
	line-height: 1.6;
	text-decoration: none;
}
.post_content .granza-blogCard .p-blogCard__excerpt {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	color: #333;
	font-size: 14.4px;
	line-height: 1.6;
	margin-top: .2em;
}
.granza-blogCard__footer {
	display: flex;
	justify-content: space-between;
	width: 100%;
	margin-top: .4em;
	font-size: 14.4px;
	color: #333;
}
.granza-blogCard__site img {
	width: 16px;
	height: 16px;
	margin-right: 4px;
	vertical-align: -2px;
}
@media (max-width: 599px) {
	.post_content .granza-blogCard {
		width: 100%;
	}
	.post_content .granza-blogCard .p-blogCard__thumb {
		width: 30%;
		flex: 0 0 30%;
	}
	.post_content .granza-blogCard .p-blogCard__title {
		font-size: 16px;
	}
	.post_content .granza-blogCard .p-blogCard__excerpt {
		font-size: 13px;
	}
}

/* ---- パンくず（記事の白い枠の中の一番下。Cocoon と同じ） ---- */
.granza-breadcrumb-in {
	order: 10;
	background: none !important;
	padding: 0;
	margin: 1em .4em 0;
}
.granza-breadcrumb-in .p-breadcrumb__list {
	padding: 0;
}

/* ---- フッターのロゴ（Cocoon と同じく元の大きさの高さ 54px まで） ---- */
.granza-footLogo__img {
	height: 54px;
	max-width: 100%;
	width: auto;
}

/* ---- スマホのヘッダー：背景画像の帯を Cocoon と同じ高さ（約 112px）に ---- */
@media (max-width: 959px) {
	.l-header::after {
		height: 112px;
		background-size: 92% auto;
		background-position: center 70%;
	}
}
/* ボタンの外側の箱がボタンより低く計算され、縦に並んだときにボタンどうしが重なっていた（10/22）。高さは中身に合わせる */
.post_content .wp-block-button {
	height: auto;
	line-height: 1.5;
}
.post_content .wp-block-button__link {
	display: inline-block;
	height: auto !important;
}

/* ---- 見出し 4：左に茶色の線（Cocoon のスキン ganchan03：18px・#242735・左 6px の茶色の線。前の指定で線を消していたので戻す） ---- */
.post_content h4 {
	font-size: 18px;
	font-weight: 500;
	color: #242735;
	border: none;
	border-left: 6px solid #594321;
	padding: 9px 10px;
	background: none;
}

/* ---- 引用：薄いグレーの背景・細い枠線・左上と右下に大きな引用符（Cocoon と同じ。SWELL の左の縦線と灰色の面はやめる） ---- */
.post_content blockquote {
	position: relative;
	background-color: #fafbfc;
	border: 1px solid #ddd;
	border-left: 1px solid #ddd;
	padding: 1.4em 1.8em;
	box-shadow: none;
}
.post_content blockquote::before,
.post_content blockquote::after {
	position: absolute;
	color: #c8c8c8;
	font-family: serif;
	font-size: 300%;
	background: none;
	border: none;
	width: auto;
	height: auto;
	opacity: 1;
	transform: none;
}
.post_content blockquote::before {
	content: "\201C";
	line-height: 1.1;
	left: 10px;
	top: 0;
}
.post_content blockquote::after {
	content: "\201D";
	line-height: 0;
	right: 10px;
	bottom: 0;
	left: auto;
	top: auto;
}
.post_content blockquote cite {
	font-size: .7em;
}

/* ---- 3 回目の見比べの手直し ---- */
/* 前後の記事：外枠なし（Cocoon と同じ）、矢印は薄い灰色 */
.p-pnLinks__item,
.p-pnLinks__item + .p-pnLinks__item {
	border: none;
}
.p-pnLinks__item:hover {
	background-color: #f5f8fa;
}
/* プロフィールの細い枠（SWELL のウィジェットの指定より強く） */
#sidebar .p-profileBox {
	border: 1px solid #ccc !important;
	border-radius: 4px;
}
/* カテゴリーの件数は右寄せ */
#sidebar .widget_categories .cat-post-count {
	float: right;
	margin-left: .5em;
}
/* 記事の冒頭の日付（Cocoon：本文の 0.7 倍・黒） */
.p-articleMetas .c-postTimes {
	font-size: 12.6px;
	color: #333;
	opacity: 1;
}
/* コピーライト（Cocoon：14px） */
.l-footer .copyright,
.l-footer__foot .copyright {
	font-size: 14px;
}

/* ---- 4 回目の見比べの手直し ---- */
@media (max-width: 959px) {
	/* スマホの本文の幅：Cocoon は左右 10px の余白だけ（幅 480px / 画面 500px）。SWELL は外側と内側の二重の余白で 460px だった */
	.l-content.l-container {
		padding-left: 0;
		padding-right: 0;
	}
	.-frame-on .l-mainContent {
		padding-left: 10px;
		padding-right: 10px;
		border-radius: 0;
	}
}
@media (max-width: 599px) {
	/* スマホの表：Cocoon と同じく、セルの文字は 0.8 倍・内側の余白 3px（一覧性を保つ） */
	.post_content table th,
	.post_content table td {
		font-size: .8em;
		padding: 3px;
	}
}
/* ブログカードの枠は薄い灰色（Cocoon：#ddd） */
.post_content .granza-blogCard {
	border-color: #ddd;
}
/* 記事の最後：書いた人 → カテゴリー → 前後の記事の間を詰める（Cocoon と同じくらい） */
.single .l-mainContent__inner > .p-articleFoot {
	margin-top: .5em;
	margin-bottom: 0;
	padding-top: 0;
	border-top: none;
}
.p-articleFoot .p-articleMetas {
	padding-top: 0;
	border-top: none;
}
.l-articleBottom {
	margin-top: 0;
}
/* 目次の [閉じる] はボタン（キーボードでも押せる）。見た目は文字だけ */
.granza-toc-toggle {
	background: none;
	border: none;
	padding: 0;
	color: inherit;
	font: inherit;
	font-size: .8em;
	cursor: pointer;
}
