/*
Theme Name: blog
Theme URI: https://example.com/
Author:
Author URI:
Description: アフィリエイト・Google AdSenseでの継続収益化を意識した、雑記ブログ・特化ブログどちらにも使える汎用WordPressテーマ。人気記事ランキング・関連記事・パンくず・SNSシェア・広告枠管理をコードを書かずCustomizerだけで運用できます。
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Tested up to: 6.6
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: blog
Tags: blog, two-columns, right-sidebar, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   0. Custom Properties
   ========================================================= */
:root {
	/* ブランドカラー: メイン(緑) / サブ(金・CTA) / アクセント(青・情報) */
	--color-primary: #4a6b57;
	--color-primary-dark: #3a5545;
	--color-primary-rgb: 74, 107, 87;
	--color-accent: #e0a94a;
	--color-accent-dark: #c68f34;
	--color-accent-rgb: 224, 169, 74;
	--color-info: #6faec1;
	--color-info-rgb: 111, 174, 193;
	--color-text: #3a2e26;
	--color-text-light: #8a7d72;
	--color-bg: #fafaf7;
	--color-white: #ffffff;
	--color-border: #ece6de;
	--color-gold: #e0a94a;
	--color-silver: #a7adba;
	--color-bronze: #c97b3f;
	--radius-s: 5px;
	--radius-m: 8px;
	--radius-l: 18px;
	--shadow-card: 0 2px 10px rgba(58, 46, 38, 0.07);
	--shadow-card-hover: 0 8px 24px rgba(58, 46, 38, 0.14);
	--font-body: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "Segoe UI", Meiryo, sans-serif;
	--font-heading: "Zen Maru Gothic", var(--font-body);
	--container-width: 1180px;
}

/* =========================================================
   1. Reset / Base
   ========================================================= */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.85;
	color: var(--color-text);
	background: var(--color-white);
	word-break: break-word;
	overflow-wrap: break-word;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
	line-height: 1.5;
	font-family: var(--font-heading);
}

button {
	font-family: inherit;
	cursor: pointer;
}

input,
textarea,
select {
	font-family: inherit;
	font-size: 1em;
}

table {
	border-collapse: collapse;
	width: 100%;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link {
	position: absolute;
	top: -100px;
	left: 0;
	background: var(--color-accent);
	color: #fff;
	padding: 10px 16px;
	z-index: 10000;
	transition: top .2s ease;
}

.skip-link:focus {
	top: 0;
}

/* =========================================================
   2. Layout
   ========================================================= */
.site-container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 20px;
}

.site-main-wrap {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 40px;
	align-items: start;
	padding: 32px 0 60px;
}

.site-main-wrap.no-sidebar {
	grid-template-columns: minmax(0, 1fr);
}

.site-main-wrap.sidebar-left {
	grid-template-columns: 320px minmax(0, 1fr);
}

.site-main-wrap.sidebar-left .primary-content {
	order: 2;
}

.site-main-wrap.sidebar-left .site-sidebar {
	order: 1;
}

@media (max-width: 960px) {

	.site-main-wrap,
	.site-main-wrap.sidebar-left {
		grid-template-columns: minmax(0, 1fr);
	}

	.site-main-wrap.sidebar-left .primary-content,
	.site-main-wrap.sidebar-left .site-sidebar {
		order: initial;
	}
}

/* =========================================================
   3. Header
   ========================================================= */
.ad-slot {
	margin: 18px auto;
	text-align: center;
}

.ad-slot-label {
	font-size: 11px;
	color: var(--color-text-light);
	letter-spacing: .1em;
	margin-bottom: 6px;
}

.site-header {
	background: var(--color-white);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 500;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
	position: relative;
}

.site-branding {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: none;
}

.site-branding img.custom-logo {
	max-height: 44px;
	width: auto;
}

.site-title {
	font-size: 24px;
	font-weight: 800;
	margin: 0;
	letter-spacing: -.01em;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.site-title a {
	color: var(--color-text);
}

.site-description {
	font-size: 12px;
	color: var(--color-text-light);
	margin: 2px 0 0;
}

.material-symbols-outlined {
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	font-size: 22px;
	line-height: 1;
	vertical-align: middle;
}

.site-header-tools {
	display: flex;
	align-items: center;
	gap: 6px;
	flex: none;
}

.header-search {
	position: relative;
}

.search-toggle {
	border: none;
	background: none;
	padding: 8px;
	border-radius: 50%;
	display: inline-flex;
	color: var(--color-text);
}

.search-toggle:hover {
	background: var(--color-bg);
}

.header-search-box {
	display: none;
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-card-hover);
	padding: 12px;
	z-index: 50;
}

.header-search-box.is-open {
	display: block;
}

.header-search-form {
	display: flex;
}

.header-search-form input[type="search"] {
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s) 0 0 var(--radius-s);
	padding: 8px 12px;
	width: 200px;
	outline: none;
}

.header-search-form button {
	border: none;
	background: var(--color-accent);
	color: #fff;
	padding: 0 14px;
	border-radius: 0 var(--radius-s) var(--radius-s) 0;
	display: inline-flex;
	align-items: center;
}

.menu-toggle {
	display: none;
	border: none;
	background: none;
	padding: 8px;
	flex-direction: column;
	gap: 5px;
}

.menu-toggle span {
	width: 24px;
	height: 2px;
	background: var(--color-text);
	display: block;
}

.primary-navigation {
	flex: 1;
	min-width: 0;
	display: flex;
	justify-content: center;
}

.primary-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 2px;
	justify-content: center;
}

.primary-navigation a {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	padding: 6px 14px;
	font-weight: 700;
	font-size: 12px;
	border-radius: var(--radius-s);
	transition: background .15s, color .15s;
	white-space: nowrap;
}

.primary-navigation .nav-icon {
	font-size: 20px;
}

.primary-navigation a:hover,
.primary-navigation .current-menu-item>a {
	background: rgba(var(--color-primary-rgb), .1);
	color: var(--color-primary);
}

@media (max-width: 900px) {
	.menu-toggle {
		display: inline-flex;
	}

	.primary-navigation {
		display: none;
		position: absolute;
		left: 0;
		right: 0;
		top: 100%;
		background: var(--color-white);
		border-bottom: 1px solid var(--color-border);
		box-shadow: var(--shadow-card);
	}

	.primary-navigation.is-open {
		display: block;
	}

	.primary-navigation ul {
		flex-direction: column;
		align-items: stretch;
		padding: 8px 20px 16px;
		gap: 0;
	}

	.primary-navigation a {
		flex-direction: row;
		justify-content: flex-start;
		padding: 10px 4px;
		font-size: 14.5px;
	}

	.site-description {
		display: none;
	}
}

@media (max-width: 480px) {
	.header-search-form input[type="search"] {
		width: 150px;
	}
}

/* =========================================================
   4. Breadcrumbs
   ========================================================= */
.breadcrumbs {
	font-size: 12.5px;
	color: var(--color-text-light);
	margin: 16px 0;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.breadcrumbs a {
	color: var(--color-text-light);
}

.breadcrumbs a:hover {
	color: var(--color-primary);
	text-decoration: underline;
}

.breadcrumbs .sep {
	margin: 0 4px;
	opacity: .5;
}

/* =========================================================
   5. Hero / セクション見出し共通
   ========================================================= */
.hero-section {
	position: relative;
	background: url('assets/images/fv.png') center bottom / cover no-repeat, var(--color-bg);
	border-bottom: 1px solid var(--color-border);
}

.hero-section::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, .88) 0%, rgba(255, 255, 255, .6) 55%, rgba(255, 255, 255, .3) 100%);
}

.hero-inner {
	position: relative;
	display: grid;
	align-items: center;
	padding: 72px 0;
}

.hero-content {
	max-width: 560px;
}

.hero-heading {
	font-size: 34px;
	font-weight: 900;
	line-height: 1.5;
	letter-spacing: -.01em;
}

.hero-subtext {
	font-size: 15px;
	color: var(--color-text-light);
	margin-top: 16px;
	line-height: 1.9;
}

.hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 26px;
}

.btn-outline {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--color-white);
	color: var(--color-text) !important;
	font-weight: 700;
	padding: 12px 26px;
	border-radius: 999px;
	font-size: 14.5px;
	border: 2px solid var(--color-border);
	transition: border-color .15s ease, transform .15s ease;
}

.btn-outline:hover {
	border-color: var(--color-primary);
	transform: translateY(-2px);
}

@media (max-width: 860px) {
	.hero-inner {
		padding: 40px 0;
		text-align: center;
	}

	.hero-content {
		max-width: none;
	}

	.hero-actions {
		justify-content: center;
	}

	.hero-heading br {
		display: none;
	}
}

.section-block {
	padding: 44px 0;
}

.section-block:nth-of-type(even) {
	background: var(--color-white);
}

.category-section {
	background: var(--color-bg);
}

.section-heading {
	font-size: 19px;
	font-weight: 800;
	margin: 8px 0 18px;
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.section-heading .material-symbols-outlined {
	color: var(--color-primary);
}

.section-heading .section-sub {
	font-size: 12.5px;
	font-weight: 500;
	color: var(--color-text-light);
}

.section-header-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
}

.more-link {
	font-size: 13px;
	font-weight: 700;
	color: var(--color-primary);
	flex: none;
}

.more-link:hover {
	text-decoration: underline;
}

/* =========================================================
   6. Post Card
   ========================================================= */
.post-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 22px;
}

@media (max-width: 960px) {
	.post-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.post-card-grid {
		grid-template-columns: 1fr;
	}
}

.post-card-grid-5 {
	grid-template-columns: repeat(5, 1fr);
}

@media (max-width: 1100px) {
	.post-card-grid-5 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 960px) {
	.post-card-grid-5 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.post-card-grid-5 {
		grid-template-columns: 1fr;
	}
}


.post-card-grid-5 .post-card-excerpt {
	display: none;
}

.post-card-views {
	display: inline-flex;
	align-items: center;
	gap: 3px;
}

.post-card-views .material-symbols-outlined {
	font-size: 14px;
}

.post-card {
	background: var(--color-white);
	border-radius: var(--radius-m);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	height: 100%;
}

.post-card-thumb {
	position: relative;
	aspect-ratio: 3/2;
	overflow: hidden;
	background: #eceef1;
	border-radius: var(--radius-m);
}

.post-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}

.post-card-thumb img.post-card-thumb-logo {
	object-fit: contain;
	padding: 18%;
}

.post-card:hover .post-card-thumb img.post-card-thumb-logo {
	transform: none;
}

.post-card:hover .post-card-thumb img {
	transform: scale(1.06);
}

.post-card-cat {
	position: absolute;
	top: 10px;
	left: 10px;
	background: var(--color-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 5px;
	border-radius: var(--radius-s);
	letter-spacing: .02em;
}

/* カテゴリーごとにブランドカラーを巡回させるバッジ配色 */
.post-card-cat.cat-color-1 {
	background: var(--color-primary);
	color: #fff;
}

.post-card-cat.cat-color-2 {
	background: var(--color-info);
	color: #fff;
}

.post-card-cat.cat-color-3 {
	background: var(--color-accent);
	color: #fff;
}

.post-card-cat.cat-color-4 {
	background: var(--color-bg);
	color: var(--color-text);
	border: 1px solid var(--color-border);
}

.post-card-body {
	padding: 16px 0 0;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card-title {
	font-size: 16px;
	font-weight: 700;
	line-height: 1.5;
	margin: 0 0 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card-title a:hover {
	color: var(--color-primary);
}

.post-card-excerpt {
	font-size: 13px;
	color: var(--color-text-light);
	margin: 0 0 12px;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card-meta {
	font-size: 11.5px;
	color: var(--color-text-light);
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: auto;
}

.post-list-row {
	display: flex;
	align-items: flex-start;
	gap: 20px;
	padding: 20px 0;
	border-bottom: 1px solid var(--color-border);
}

.post-list-row:first-child {
	padding-top: 0;
}

.post-list-row:last-child {
	border-bottom: none;
}

.post-list-row .post-card-thumb {
	width: 180px;
	min-width: 180px;
}

@media (max-width: 500px) {
	.post-list-row {
		flex-direction: column;
	}

	.post-list-row .post-card-thumb {
		width: 100%;
	}
}

/* =========================================================
   6b. カテゴリーカード
   ========================================================= */
.category-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 16px;
}

@media (max-width: 960px) {
	.category-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (max-width: 560px) {
	.category-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

.category-card {
	background: var(--color-white);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-card);
	padding: 22px 16px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	transition: transform .18s ease, box-shadow .18s ease;
}

.category-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--shadow-card-hover);
}

.category-card-icon {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	background: rgba(var(--color-primary-rgb), .1);
	color: var(--color-primary);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 4px;
}

.category-card-icon .material-symbols-outlined {
	font-size: 26px;
}

.category-card-name {
	font-weight: 800;
	font-size: 14.5px;
	color: var(--color-text);
}

.category-card-desc {
	font-size: 12px;
	color: var(--color-text-light);
	line-height: 1.6;
}

/* =========================================================
   7. Buttons / CTA
   ========================================================= */
.btn-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--color-accent);
	color: #fff !important;
	font-weight: 700;
	padding: 12px 26px;
	border-radius: 999px;
	font-size: 14.5px;
	box-shadow: 0 4px 14px rgba(var(--color-accent-rgb), .35);
	transition: transform .15s ease, box-shadow .15s ease;
}

.btn-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(var(--color-accent-rgb), .45);
}

.more-link-wrap {
	text-align: center;
	margin: 30px 0;
}

/* =========================================================
   8. Sidebar / Widgets
   ========================================================= */
.widget {
	background: var(--color-white);
	border-radius: var(--radius-m);
	padding: 20px;
	margin-bottom: 24px;
	box-shadow: var(--shadow-card);
}

.widget-title {
	font-size: 15.5px;
	font-weight: 800;
	margin: 0 0 16px;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--color-primary);
	display: inline-block;
}

.widget ul {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ranking-list {
	counter-reset: rank;
}

.ranking-item {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	position: relative;
	counter-increment: rank;
}

.ranking-badge {
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 1;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-text-light);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ranking-badge::before {
	content: counter(rank);
}

.ranking-item:nth-child(1) .ranking-badge {
	background: var(--color-gold);
}

.ranking-item:nth-child(2) .ranking-badge {
	background: var(--color-silver);
}

.ranking-item:nth-child(3) .ranking-badge {
	background: var(--color-bronze);
}

.ranking-thumb {
	flex: none;
	width: 100px;
	height: 75px;
	border-radius: var(--radius-s);
	overflow: hidden;
	background: #eceef1;
}

.ranking-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ranking-title {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.ranking-title a:hover {
	color: var(--color-primary);
}

.category-list li {
	display: flex;
}

.category-list a {
	flex: 1;
	display: flex;
	justify-content: space-between;
	padding: 9px 4px;
	border-bottom: 1px dashed var(--color-border);
	font-size: 13.5px;
	font-weight: 600;
}

.category-list a:hover {
	color: var(--color-primary);
}

.category-list .count {
	color: var(--color-text-light);
	font-weight: 400;
}

.profile-widget {
	text-align: center;
}

.profile-widget img {
	border-radius: 50%;
	width: 88px;
	height: 88px;
	object-fit: cover;
	margin: 0 auto 12px;
}

.profile-widget .profile-name {
	font-weight: 800;
	margin-bottom: 6px;
}

.profile-widget .profile-bio {
	font-size: 13px;
	color: var(--color-text-light);
}

/* Style overrides for WordPress Popular Posts plugin output */
.wpp-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.wpp-list li {
	display: flex !important;
	gap: 10px;
	align-items: flex-start;
	counter-increment: rank;
	position: relative;
}

.wpp-list li::before {
	content: counter(rank);
	position: absolute;
	top: 6px;
	left: 6px;
	z-index: 1;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--color-text-light);
	color: #fff;
	font-size: 12px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

.wpp-list li:nth-child(1)::before {
	background: var(--color-gold);
}

.wpp-list li:nth-child(2)::before {
	background: var(--color-silver);
}

.wpp-list li:nth-child(3)::before {
	background: var(--color-bronze);
}

.wpp-list .wpp-thumbnail {
	border-radius: var(--radius-s);
	object-fit: cover;
	aspect-ratio: 3 / 2;
	margin: 0;
}

.wpp-list a {
	font-size: 13px;
	font-weight: 600;
	line-height: 1.5;
}

.wpp-post-title {
	flex: 1;
}

/* =========================================================
   8c. お問い合わせフォーム (Contact Form 7)
   ========================================================= */
.contact-form-wrap {
	max-width: 640px;
	margin: 24px auto 0;
}

.contact-form-wrap>p:first-child {
	margin-bottom: 28px;
	color: var(--color-text-light);
}

.wpcf7-form p {
	margin: 0 0 20px;
}

.wpcf7-form label {
	display: block;
	font-weight: 700;
	font-size: 14px;
	margin-bottom: 8px;
}

.wpcf7-required {
	color: var(--color-accent);
	margin-left: 2px;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form textarea {
	width: 100%;
	font-weight: 400;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s);
	padding: 12px 14px;
	font-size: 15px;
	font-family: inherit;
	background: var(--color-white);
	transition: border-color .15s ease;
}

.wpcf7-form input[type="text"]:focus,
.wpcf7-form input[type="email"]:focus,
.wpcf7-form textarea:focus {
	outline: none;
	border-color: var(--color-primary);
}

.wpcf7-form textarea {
	min-height: 160px;
	resize: vertical;
}

.wpcf7-list-item {
	margin: 0;
}

.wpcf7-acceptance .wpcf7-list-item-label {
	font-size: 13.5px;
	font-weight: 400;
	color: var(--color-text-light);
}

.wpcf7-acceptance .wpcf7-list-item-label a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.wpcf7-acceptance .wpcf7-list-item label {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-weight: 400;
}

.wpcf7-acceptance input[type="checkbox"] {
	width: 16px;
	height: 16px;
	flex: none;
	margin-top: 3px;
	accent-color: var(--color-primary);
}

.wpcf7-form input[type="submit"] {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--color-accent);
	color: #fff;
	font-weight: 700;
	padding: 12px 32px;
	border: none;
	border-radius: 999px;
	font-size: 14.5px;
	cursor: pointer;
	transition: transform .15s ease;
}

.wpcf7-form input[type="submit"]:hover {
	transform: translateY(-2px);
}

.wpcf7-form input[type="submit"]:disabled {
	opacity: .6;
	cursor: not-allowed;
	transform: none;
}

.wpcf7-not-valid-tip {
	display: block;
	color: #c0392b;
	font-size: 12.5px;
	font-weight: 400;
	margin-top: 4px;
}

.wpcf7-response-output {
	border-radius: var(--radius-s);
	padding: 12px 16px;
	font-size: 13.5px;
	margin: 20px 0 0 !important;
}

.wpcf7-form.sent .wpcf7-response-output {
	border-color: var(--color-primary) !important;
	color: var(--color-primary);
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output {
	border-color: #c0392b !important;
	color: #c0392b;
}

/* =========================================================
   9. Single Post
   ========================================================= */
.single-article-header {
	margin-bottom: 20px;
}

.single-article-header .post-card-cat {
	position: static;
	display: inline-block;
	margin-bottom: 10px;
}

.single-title {
	font-size: 27px;
	font-weight: 800;
	line-height: 1.5;
}

.single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
	margin-top: 12px;
}

.single-meta .meta-item {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--color-bg);
	border-radius: 999px;
	padding: 5px 12px;
	font-size: 12.5px;
	color: var(--color-text-light);
}

.single-meta .meta-item .material-symbols-outlined {
	font-size: 16px;
	color: var(--color-text-light);
}

.single-thumb {
	border-radius: var(--radius-m);
	overflow: hidden;
	margin: 18px 0;
}

.entry-intro {
	font-size: 15.5px;
	line-height: 1.9;
	color: var(--color-text);
	margin: 18px 0;
}

.entry-content {
	font-size: 16.5px;
	line-height: 1.95;
}

.entry-content>*+* {
	margin-top: 1.3em;
}

.entry-content h2 {
	font-size: 22px;
	font-weight: 800;
	margin-top: 2.2em;
	padding-bottom: 10px;
	border-bottom: 3px solid var(--color-primary);
}

.entry-content h3 {
	font-size: 18.5px;
	font-weight: 800;
	margin-top: 2em;
	padding-left: 18px;
	border-left: 6px solid #4A6B57;
	padding-bottom: 8px;
}

.entry-content h4 {
	font-size: 16.5px;
	font-weight: 700;
	margin-top: 1.6em;
}

.entry-content a {
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.entry-content img {
	border-radius: var(--radius-s);
	margin: 0 auto;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.6em;
	list-style: revert;
}

.entry-content blockquote {
	margin: 0;
	padding: 14px 20px;
	background: var(--color-bg);
	border-left: 4px solid var(--color-text-light);
	border-radius: var(--radius-s);
	font-size: 15px;
	color: var(--color-text-light);
}

.entry-content table {
	border: 1px solid var(--color-border);
}

.entry-content table th,
.entry-content table td {
	border: 1px solid var(--color-border);
	padding: 10px;
}

.entry-content table th {
	background: var(--color-bg);
}

.entry-content pre {
	background: #24262e;
	color: #eee;
	padding: 16px;
	border-radius: var(--radius-s);
	overflow-x: auto;
	font-size: 13.5px;
}

.entry-content code {
	background: rgba(0, 0, 0, .05);
	padding: 2px 6px;
	border-radius: 4px;
	font-size: .9em;
}

/* Table of Contents (Easy Table of Contents plugin) look & feel */
#ez-toc-container,
.ez-toc-container {
	background: var(--color-white) !important;
	border: 1px solid var(--color-border) !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding: 20px 40px;
}

.ez-toc-title {
	font-weight: 800 !important;
	font-family: var(--font-heading);
}

div#ez-toc-container ul li,
div#ez-toc-container ul li a {
	margin-bottom: 4px;
}

/* Share buttons */
.share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 24px 0;
}

.share-buttons-label {
	width: 100%;
	font-size: 12.5px;
	font-weight: 700;
	color: var(--color-text-light);
}

.share-btn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 16px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	color: #fff !important;
	transition: opacity .15s ease;
}

.share-btn:hover {
	opacity: .85;
}

.share-btn.x {
	background: #000;
}

.share-btn.facebook {
	background: #1877f2;
}

.share-btn.line {
	background: #06c755;
}

.share-btn.hatena {
	background: #00a4de;
}

.share-btn.pocket {
	background: #ef4056;
}

/* Author box */
.author-box {
	display: flex;
	gap: 16px;
	background: var(--color-white);
	border-radius: var(--radius-m);
	padding: 22px;
	margin: 30px 0;
	box-shadow: var(--shadow-card);
	align-items: flex-start;
}

.author-box img {
	border-radius: 50%;
	width: 64px;
	height: 64px;
	flex: none;
}

.author-box .author-name {
	font-weight: 800;
	margin-bottom: 6px;
}

.author-box .author-desc {
	font-size: 13.5px;
	color: var(--color-text-light);
}

/* Related posts */
.related-posts {
	margin: 44px 0;
}

/* Prev / next navigation */
.post-nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin: 30px 0;
}

.post-nav-links .nav-item {
	background: var(--color-white);
	border-radius: var(--radius-m);
	box-shadow: var(--shadow-card);
	padding: 14px;
	display: flex;
	gap: 10px;
	align-items: center;
	min-width: 0;
}

.post-nav-links .nav-next {
	flex-direction: row-reverse;
	text-align: right;
}

.post-nav-links .nav-thumb {
	width: 64px;
	height: 48px;
	border-radius: var(--radius-s);
	overflow: hidden;
	flex: none;
	background: #eceef1;
}

.post-nav-links .nav-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.post-nav-links .nav-label {
	font-size: 11px;
	color: var(--color-text-light);
}

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

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

/* Comments */
#comments {
	margin-top: 40px;
}

.comment-list {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.comment-body {
	background: var(--color-white);
	border-radius: var(--radius-m);
	padding: 18px;
	box-shadow: var(--shadow-card);
}

.comment-author img {
	border-radius: 50%;
	vertical-align: middle;
	margin-right: 8px;
}

.comment-form input,
.comment-form textarea {
	width: 100%;
	border: 1px solid var(--color-border);
	border-radius: var(--radius-s);
	padding: 10px 12px;
	margin-top: 6px;
}

.comment-form p {
	margin: 14px 0;
}

.comment-form .form-submit input {
	width: auto;
	background: var(--color-accent);
	color: #fff;
	border: none;
	font-weight: 700;
	padding: 10px 28px;
}

/* =========================================================
   10. Pagination
   ========================================================= */
.pagination-nav {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 30px 0;
	flex-wrap: wrap;
}

.pagination-nav .page-numbers {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--color-white);
	border-radius: var(--radius-s);
	box-shadow: var(--shadow-card);
	font-weight: 700;
	font-size: 13.5px;
	padding: 0 6px;
}

.pagination-nav .page-numbers.current {
	background: var(--color-accent);
	color: #fff;
}

.pagination-nav .page-numbers:hover:not(.current) {
	background: rgba(var(--color-accent-rgb), .12);
}

/* =========================================================
   11. Footer
   ========================================================= */
.site-footer {
	background: #1c1d22;
	color: #cfd1d8;
	margin-top: 60px;
}

.footer-logo {
	width: auto;
}

.footer-columns {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1fr;
	gap: 28px;
	padding: 40px 0 30px;
}

.footer-col .widget-title {
	color: #fff;
	border-bottom-color: var(--color-accent);
	font-size: 14.5px;
	margin-bottom: 14px;
}

.footer-col ul {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer-col a {
	color: #cfd1d8;
	font-size: 13.5px;
}

.footer-col a:hover {
	color: var(--color-accent);
}

@media (max-width: 900px) {
	.footer-columns {
		display: block;
	}

	.footer-logo {
		width: 60%;
		max-width: 200px;
		margin: 0 auto 20px;
	}

	.footer-col:not(.footer-col-brand) {
		display: none;
	}
}

@media (max-width: 560px) {
	.footer-columns {
		grid-template-columns: 1fr;
	}
}

.site-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 18px 10px;
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 12.5px;
	color: #9598a2;
}

.footer-sns {
	display: flex;
	gap: 12px;
}

.footer-sns a {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255, 255, 255, .08);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #cfd1d8;
}

.footer-sns a:hover {
	background: var(--color-accent);
	color: #fff;
}

.footer-sns .material-symbols-outlined {
	font-size: 18px;
}

/* =========================================================
   12. Archive / Search / 404
   ========================================================= */
.archive-header {
	margin-bottom: 24px;
}

.archive-title {
	font-size: 22px;
	font-weight: 800;
}

.archive-description {
	color: var(--color-text-light);
	font-size: 13.5px;
	margin-top: 6px;
}

.no-results {
	background: var(--color-white);
	border-radius: var(--radius-m);
	padding: 40px;
	text-align: center;
	box-shadow: var(--shadow-card);
}

.error-404 {
	text-align: center;
	padding: 60px 0;
}

.error-404 .code {
	font-size: 90px;
	font-weight: 900;
	color: var(--color-accent);
	line-height: 1;
}

/* =========================================================
   13. Utility
   ========================================================= */
.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
}