/*
Theme Name: Simple Corp Blog
Theme URI: https://example.com/simple-corp-blog/
Author: (制作者名を記入してください)
Author URI: https://example.com/
Description: 企業ブログ向けのシンプルなクラシックテーマ。JSON-LD構造化データ、パンくず、OGP、meta description、canonical、robots制御などの内部SEOを標準搭載し、追加JSに依存せず軽量に動作します。
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simple-corp-blog
Tags: blog, one-column, right-sidebar, custom-logo, custom-menu, featured-images, translation-ready
*/

/* -----------------------------------------------------------------
 * 1. 変数
 * ----------------------------------------------------------------- */
:root {
	--scb-accent: #0b5fff;
	--scb-accent-dark: #0846bf;
	--scb-text: #1f2328;
	--scb-muted: #5c6670;
	--scb-border: #e3e7eb;
	--scb-bg: #ffffff;
	--scb-bg-soft: #f6f8fa;
	--scb-max: 1120px;
	--scb-content-max: 760px;
	--scb-radius: 8px;
	--scb-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}

/* -----------------------------------------------------------------
 * 2. ベース
 * ----------------------------------------------------------------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

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

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

img,
video,
iframe {
	max-width: 100%;
	height: auto;
}

img {
	vertical-align: middle;
}

a {
	color: var(--scb-accent);
	text-decoration: underline;
	text-underline-offset: 2px;
}

a:hover,
a:focus {
	color: var(--scb-accent-dark);
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	line-height: 1.45;
	font-weight: 700;
}

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

th,
td {
	border: 1px solid var(--scb-border);
	padding: 0.6em 0.8em;
	text-align: left;
}

th {
	background: var(--scb-bg-soft);
}

code,
pre {
	font-family: ui-monospace, SFMono-Regular, Consolas, "Courier New", monospace;
	font-size: 0.92em;
}

pre {
	background: var(--scb-bg-soft);
	border: 1px solid var(--scb-border);
	border-radius: var(--scb-radius);
	padding: 1em;
	overflow-x: auto;
}

blockquote {
	margin: 1.6em 0;
	padding: 0.2em 0 0.2em 1.1em;
	border-left: 4px solid var(--scb-border);
	color: var(--scb-muted);
}

hr {
	border: 0;
	border-top: 1px solid var(--scb-border);
	margin: 2.5em 0;
}

/* -----------------------------------------------------------------
 * 3. 共通レイアウト・ユーティリティ
 * ----------------------------------------------------------------- */
.scb-container {
	width: 100%;
	max-width: var(--scb-max);
	margin: 0 auto;
	padding: 0 20px;
}

.site-content {
	display: block;
	max-width: var(--scb-max);
	margin: 0 auto;
	padding: 32px 20px 64px;
}

@media (min-width: 900px) {
	.site-content {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 48px;
		align-items: start;
	}

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

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

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 100;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: #fff;
	border: 2px solid var(--scb-accent);
	border-radius: var(--scb-radius);
}

.scb-button {
	display: inline-block;
	padding: 0.7em 1.4em;
	background: var(--scb-accent);
	color: #fff;
	border: 0;
	border-radius: var(--scb-radius);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.scb-button:hover,
.scb-button:focus {
	background: var(--scb-accent-dark);
	color: #fff;
}

/* -----------------------------------------------------------------
 * 4. ヘッダー・ナビゲーション
 * ----------------------------------------------------------------- */
.site-header {
	border-bottom: 1px solid var(--scb-border);
	background: var(--scb-bg);
}

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 68px;
}

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

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

.site-title {
	margin: 0;
	font-size: 1.15rem;
	line-height: 1.3;
}

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

.site-tagline {
	margin: 2px 0 0;
	font-size: 0.78rem;
	color: var(--scb-muted);
}

.menu-toggle {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	background: none;
	border: 1px solid var(--scb-border);
	border-radius: var(--scb-radius);
	color: var(--scb-text);
	font: inherit;
	font-size: 0.85rem;
	cursor: pointer;
}

.menu-toggle__bar,
.menu-toggle__bar::before,
.menu-toggle__bar::after {
	display: block;
	width: 18px;
	height: 2px;
	background: currentColor;
	content: "";
}

.menu-toggle__bar {
	position: relative;
}

.menu-toggle__bar::before {
	position: absolute;
	top: -6px;
}

.menu-toggle__bar::after {
	position: absolute;
	top: 6px;
}

.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a {
	display: block;
	padding: 12px 0;
	color: var(--scb-text);
	text-decoration: none;
	font-size: 0.95rem;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
	color: var(--scb-accent);
}

@media (max-width: 899px) {
	.main-navigation {
		display: none;
		width: 100%;
		padding-bottom: 12px;
	}

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

	.site-header__inner {
		flex-wrap: wrap;
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.main-navigation li + li {
		border-top: 1px solid var(--scb-border);
	}

	.main-navigation .sub-menu a {
		padding-left: 1em;
	}
}

@media (min-width: 900px) {
	.menu-toggle {
		display: none;
	}

	.main-navigation {
		display: block !important;
	}

	.main-navigation > ul {
		display: flex;
		gap: 24px;
		align-items: center;
	}

	.main-navigation .sub-menu {
		display: none;
		position: absolute;
		z-index: 20;
		min-width: 200px;
		padding: 4px 14px;
		background: #fff;
		border: 1px solid var(--scb-border);
		border-radius: var(--scb-radius);
		box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
	}

	.main-navigation li {
		position: relative;
	}

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

/* -----------------------------------------------------------------
 * 5. パンくず
 * ----------------------------------------------------------------- */
.scb-breadcrumb {
	background: var(--scb-bg-soft);
	border-bottom: 1px solid var(--scb-border);
	font-size: 0.82rem;
}

.scb-breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0 6px;
	list-style: none;
	margin: 0;
	padding: 10px 20px;
	max-width: var(--scb-max);
	margin-inline: auto;
	color: var(--scb-muted);
}

.scb-breadcrumb li + li::before {
	content: "/";
	margin-right: 6px;
	color: var(--scb-border);
}

.scb-breadcrumb a {
	color: var(--scb-muted);
	text-decoration: none;
}

.scb-breadcrumb a:hover {
	color: var(--scb-accent);
	text-decoration: underline;
}

/* -----------------------------------------------------------------
 * 6. 記事一覧
 * ----------------------------------------------------------------- */
.page-header {
	margin-bottom: 32px;
	padding-bottom: 16px;
	border-bottom: 2px solid var(--scb-text);
}

.page-title {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
}

.archive-description {
	margin: 10px 0 0;
	color: var(--scb-muted);
	font-size: 0.92rem;
}

.page-header__search {
	max-width: 420px;
	margin-top: 16px;
}

.post-list {
	display: grid;
	gap: 28px;
}

.post-card {
	display: grid;
	grid-template-columns: 1fr;
	gap: 14px;
	padding-bottom: 28px;
	border-bottom: 1px solid var(--scb-border);
}

@media (min-width: 600px) {
	.post-card {
		grid-template-columns: 240px minmax(0, 1fr);
		gap: 22px;
		align-items: start;
	}

	.post-card--no-thumb {
		grid-template-columns: minmax(0, 1fr);
	}
}

.post-card__thumb img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--scb-radius);
	background: var(--scb-bg-soft);
}

.post-card__title {
	margin: 0 0 8px;
	font-size: 1.12rem;
}

.post-card__title a {
	color: var(--scb-text);
	text-decoration: none;
}

.post-card__title a:hover {
	color: var(--scb-accent);
	text-decoration: underline;
}

.post-card__excerpt {
	margin: 8px 0 0;
	color: var(--scb-muted);
	font-size: 0.92rem;
	line-height: 1.75;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 14px;
	color: var(--scb-muted);
	font-size: 0.8rem;
}

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

.entry-meta a:hover {
	color: var(--scb-accent);
	text-decoration: underline;
}

.scb-cat-label {
	display: inline-block;
	padding: 2px 10px;
	background: var(--scb-accent);
	border-radius: 999px;
	color: #fff !important;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1.7;
}

.scb-cat-label:hover {
	background: var(--scb-accent-dark);
	color: #fff !important;
	text-decoration: none !important;
}

/* -----------------------------------------------------------------
 * 7. 記事本文
 * ----------------------------------------------------------------- */
.entry-header {
	margin-bottom: 24px;
}

.entry-title {
	margin: 10px 0 14px;
	font-size: 1.75rem;
}

@media (min-width: 700px) {
	.entry-title {
		font-size: 2rem;
	}
}

.post-thumbnail {
	margin: 0 0 28px;
}

.post-thumbnail img {
	width: 100%;
	border-radius: var(--scb-radius);
}

.entry-content {
	max-width: var(--scb-content-max);
}

.entry-content > * {
	margin-top: 1.4em;
	margin-bottom: 1.4em;
}

.entry-content h2 {
	margin-top: 2.4em;
	margin-bottom: 0.9em;
	padding: 0.5em 0.7em;
	background: var(--scb-bg-soft);
	border-left: 4px solid var(--scb-accent);
	border-radius: 0 var(--scb-radius) var(--scb-radius) 0;
	font-size: 1.35rem;
}

.entry-content h3 {
	margin-top: 2.1em;
	margin-bottom: 0.8em;
	padding-bottom: 0.35em;
	border-bottom: 1px solid var(--scb-border);
	font-size: 1.15rem;
}

.entry-content h4 {
	margin-top: 1.9em;
	font-size: 1.03rem;
}

.entry-content ul,
.entry-content ol {
	padding-left: 1.4em;
}

.entry-content li + li {
	margin-top: 0.4em;
}

.entry-content img {
	border-radius: var(--scb-radius);
}

.entry-footer {
	margin-top: 40px;
	padding-top: 20px;
	border-top: 1px solid var(--scb-border);
}

.tag-links a {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 3px 10px;
	border: 1px solid var(--scb-border);
	border-radius: 999px;
	color: var(--scb-muted);
	font-size: 0.78rem;
	text-decoration: none;
}

.tag-links a:hover {
	border-color: var(--scb-accent);
	color: var(--scb-accent);
}

/* 著者ボックス */
.author-box {
	display: flex;
	gap: 16px;
	margin-top: 36px;
	padding: 20px;
	background: var(--scb-bg-soft);
	border-radius: var(--scb-radius);
}

.author-box img {
	border-radius: 50%;
	flex-shrink: 0;
}

.author-box__name {
	margin: 0 0 6px;
	font-size: 1rem;
}

.author-box__desc {
	margin: 0;
	color: var(--scb-muted);
	font-size: 0.88rem;
	line-height: 1.7;
}

/* 前後の記事 */
.post-navigation {
	display: grid;
	gap: 12px;
	margin-top: 36px;
}

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

.post-navigation a {
	display: block;
	padding: 14px 16px;
	border: 1px solid var(--scb-border);
	border-radius: var(--scb-radius);
	color: var(--scb-text);
	font-size: 0.9rem;
	text-decoration: none;
}

.post-navigation a:hover {
	border-color: var(--scb-accent);
	color: var(--scb-accent);
}

.post-navigation span {
	display: block;
	color: var(--scb-muted);
	font-size: 0.75rem;
}

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

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

.related-posts__title {
	margin: 0 0 18px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--scb-text);
	font-size: 1.15rem;
}

.related-posts__list {
	display: grid;
	gap: 20px;
	list-style: none;
	margin: 0;
	padding: 0;
}

@media (min-width: 600px) {
	.related-posts__list {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.related-posts__list img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--scb-radius);
	background: var(--scb-bg-soft);
}

.related-posts__list a {
	color: var(--scb-text);
	font-size: 0.9rem;
	line-height: 1.6;
	text-decoration: none;
}

.related-posts__list a:hover {
	color: var(--scb-accent);
}

/* -----------------------------------------------------------------
 * 8. ページネーション
 * ----------------------------------------------------------------- */
.scb-pagination {
	margin-top: 40px;
}

.scb-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.scb-pagination .page-numbers {
	display: inline-block;
	min-width: 40px;
	padding: 8px 12px;
	border: 1px solid var(--scb-border);
	border-radius: var(--scb-radius);
	color: var(--scb-text);
	font-size: 0.9rem;
	text-align: center;
	text-decoration: none;
}

.scb-pagination .page-numbers.current,
.scb-pagination .page-numbers:hover {
	background: var(--scb-accent);
	border-color: var(--scb-accent);
	color: #fff;
}

.scb-pagination .page-numbers.dots {
	border-color: transparent;
}

.scb-pagination .page-numbers.dots:hover {
	background: none;
	color: var(--scb-text);
}

/* -----------------------------------------------------------------
 * 9. サイドバー・ウィジェット
 * ----------------------------------------------------------------- */
.widget-area {
	margin-top: 56px;
}

@media (min-width: 900px) {
	.widget-area {
		margin-top: 0;
		position: sticky;
		top: 24px;
	}
}

.widget {
	margin-bottom: 32px;
	font-size: 0.9rem;
}

.widget-title {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--scb-text);
	font-size: 0.95rem;
}

.widget ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.widget li {
	padding: 7px 0;
	border-bottom: 1px solid var(--scb-border);
}

.widget a {
	color: var(--scb-text);
	text-decoration: none;
}

.widget a:hover {
	color: var(--scb-accent);
	text-decoration: underline;
}

/* -----------------------------------------------------------------
 * 10. 検索フォーム
 * ----------------------------------------------------------------- */
.search-form {
	display: flex;
	gap: 8px;
}

.search-form input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--scb-border);
	border-radius: var(--scb-radius);
	font: inherit;
	font-size: 0.9rem;
}

.search-form input[type="search"]:focus {
	border-color: var(--scb-accent);
	outline: none;
}

/* -----------------------------------------------------------------
 * 11. コメント
 * ----------------------------------------------------------------- */
.comments-area {
	margin-top: 48px;
	padding-top: 24px;
	border-top: 1px solid var(--scb-border);
}

.comments-title,
.comment-reply-title {
	font-size: 1.1rem;
}

.comment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.comment-list ol.children {
	list-style: none;
	padding-left: 20px;
}

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

.comment-meta {
	color: var(--scb-muted);
	font-size: 0.8rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 9px 12px;
	border: 1px solid var(--scb-border);
	border-radius: var(--scb-radius);
	font: inherit;
	font-size: 0.92rem;
}

/* -----------------------------------------------------------------
 * 12. フッター
 * ----------------------------------------------------------------- */
.site-footer {
	background: var(--scb-bg-soft);
	border-top: 1px solid var(--scb-border);
	padding: 40px 0 24px;
	font-size: 0.88rem;
}

.footer-widgets {
	display: grid;
	gap: 28px;
	margin-bottom: 28px;
}

@media (min-width: 700px) {
	.footer-widgets {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

.footer-nav ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	list-style: none;
	margin: 0 0 14px;
	padding: 0;
}

.footer-nav a {
	color: var(--scb-text);
	text-decoration: none;
}

.footer-nav a:hover {
	color: var(--scb-accent);
	text-decoration: underline;
}

.site-info {
	color: var(--scb-muted);
	font-size: 0.8rem;
}

/* -----------------------------------------------------------------
 * 13. WordPress標準クラス
 * ----------------------------------------------------------------- */
.alignleft {
	float: left;
	margin: 0.5em 1.5em 1em 0;
}

.alignright {
	float: right;
	margin: 0.5em 0 1em 1.5em;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignwide,
.alignfull {
	max-width: none;
}

.wp-caption {
	max-width: 100%;
}

.wp-caption-text,
.wp-element-caption {
	margin-top: 0.5em;
	color: var(--scb-muted);
	font-size: 0.82rem;
	text-align: center;
}

.sticky .post-card__title::before {
	content: "★ ";
	color: var(--scb-accent);
}

.entry-content::after,
.site-header__inner::after {
	display: table;
	clear: both;
	content: "";
}
