/* =============================================================
   Tas Quest2D — main.css
   ============================================================= */

/* ---- カスタムプロパティ ---- */
:root {
	--color-text: #1f2328;
	--color-muted: #6b7280;
	--color-bg: #ffffff;
	--color-surface: #f6f7f9;
	--color-border: #e5e7eb;
	--color-accent: #2563eb;
	--color-accent-dark: #1d4ed8;

	--font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
		"Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;

	--container: 1120px;
	--content: 760px;
	--radius: 10px;
	--gap: 1.5rem;
}

/* ---- リセット寄りの基本設定 ---- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

body {
	margin: 0;
	font-family: var(--font-base);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}

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

a {
	color: var(--color-accent);
	text-decoration: none;
}

a:hover,
a:focus {
	text-decoration: underline;
}

h1, h2, h3, h4 {
	line-height: 1.4;
}

/* ---- アクセシビリティ補助 ---- */
.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 {
	position: absolute;
	left: -9999px;
	top: 0;
	background: #fff;
	padding: 0.5rem 1rem;
	z-index: 1000;
}

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

/* ---- レイアウト ---- */
.site-content {
	max-width: var(--container);
	margin: 0 auto;
	padding: 2.5rem 1.25rem;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 300px;
	gap: 2.5rem;
	align-items: start;
}

.site-main {
	min-width: 0;
}

@media (max-width: 860px) {
	.site-content {
		grid-template-columns: 1fr;
	}
}

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

.site-header__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 1rem 1.25rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.site-title {
	margin: 0;
	font-size: 1.4rem;
}

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

.site-description {
	margin: 0.25rem 0 0;
	color: var(--color-muted);
	font-size: 0.85rem;
}

/* ---- ナビ ---- */
.site-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1.25rem;
}

.site-nav__list a {
	color: var(--color-text);
	text-decoration: none;
	font-size: 0.95rem;
}

.site-nav__list a:hover {
	color: var(--color-accent);
}

.site-nav__toggle {
	display: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0.5rem;
}

.site-nav__toggle-bar,
.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
	display: block;
	width: 24px;
	height: 2px;
	background: var(--color-text);
	position: relative;
	transition: transform 0.2s ease;
}

.site-nav__toggle-bar::before,
.site-nav__toggle-bar::after {
	content: "";
	position: absolute;
	left: 0;
}

.site-nav__toggle-bar::before { top: -7px; }
.site-nav__toggle-bar::after { top: 7px; }

@media (max-width: 640px) {
	.site-nav__toggle {
		display: block;
	}

	.site-nav__list {
		display: none;
		position: absolute;
		top: 100%;
		right: 0;
		left: 0;
		flex-direction: column;
		gap: 0;
		background: var(--color-bg);
		border-bottom: 1px solid var(--color-border);
		padding: 0.5rem 1.25rem 1rem;
		z-index: 100;
	}

	.site-nav.is-open .site-nav__list {
		display: flex;
	}

	.site-nav {
		position: static;
	}

	.site-header__inner {
		position: relative;
	}
}

/* ---- 投稿一覧(カード) ---- */
.post-list {
	display: grid;
	gap: 2rem;
}

.entry--card {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 1.25rem;
	padding-bottom: 2rem;
	border-bottom: 1px solid var(--color-border);
}

.entry-card__thumb img {
	border-radius: var(--radius);
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

.entry-card__body {
	min-width: 0;
}

.entry--card .entry-title {
	margin: 0 0 0.5rem;
	font-size: 1.2rem;
}

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

.entry--card .entry-title a:hover {
	color: var(--color-accent);
}

.entry-card__more {
	display: inline-block;
	margin-top: 0.5rem;
	font-size: 0.9rem;
	font-weight: 600;
}

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

/* ---- メタ情報 ---- */
.entry-meta {
	color: var(--color-muted);
	font-size: 0.85rem;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.entry-meta a {
	color: var(--color-muted);
}

/* ---- 個別記事 ---- */
.entry--single .entry-title,
.entry--page .entry-title {
	font-size: 2rem;
	margin: 0 0 0.75rem;
}

.entry-thumbnail {
	margin: 1.5rem 0;
}

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

.entry-content {
	font-size: 1.05rem;
}

.entry-content > * + * {
	margin-top: 1.25rem;
}

.entry-content h2 {
	margin-top: 2.5rem;
	padding-bottom: 0.4rem;
	border-bottom: 2px solid var(--color-border);
}

.entry-content h3 {
	margin-top: 2rem;
}

.entry-footer {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
	font-size: 0.9rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

/* ---- ページヘッダー / タイトル ---- */
.page-header {
	margin-bottom: 2rem;
}

.page-title {
	font-size: 1.6rem;
	margin: 0;
}

/* ---- ナビゲーション(前後・ページ送り) ---- */
.post-navigation,
.pagination {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--color-border);
}

.post-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	gap: 1rem;
}

.nav-subtitle {
	display: block;
	font-size: 0.75rem;
	color: var(--color-muted);
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.pagination .page-numbers {
	display: inline-block;
	padding: 0.4rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	color: var(--color-text);
	text-decoration: none;
}

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

/* ---- サイドバー / ウィジェット ---- */
.widget-area .widget {
	margin-bottom: 2rem;
	background: var(--color-surface);
	border-radius: var(--radius);
	padding: 1.25rem;
}

.widget-title {
	font-size: 1rem;
	margin: 0 0 0.75rem;
}

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

.widget li {
	padding: 0.35rem 0;
	border-bottom: 1px solid var(--color-border);
}

/* ---- 検索フォーム ---- */
.search-form {
	display: flex;
	gap: 0.5rem;
}

.search-field {
	flex: 1;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	font: inherit;
}

.search-submit,
.wp-block-button__link {
	background: var(--color-accent);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: 0.5rem 1rem;
	cursor: pointer;
	font: inherit;
}

.search-submit:hover {
	background: var(--color-accent-dark);
}

/* ---- コメント ---- */
.comments-area {
	margin-top: 3rem;
	padding-top: 2rem;
	border-top: 1px solid var(--color-border);
}

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

.comment-list ol {
	list-style: none;
}

.comment-body {
	padding: 1rem 0;
	border-bottom: 1px solid var(--color-border);
}

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

.site-footer__inner {
	max-width: var(--container);
	margin: 0 auto;
	padding: 2rem 1.25rem;
	text-align: center;
}

.site-footer__menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 1.25rem;
	padding: 0;
	margin: 0 0 1rem;
}

.site-footer__menu a {
	color: var(--color-text);
	font-size: 0.9rem;
}

.site-footer__copyright {
	color: var(--color-muted);
	font-size: 0.85rem;
	margin: 0;
}

/* =============================================================
   LP(ランディングページ)テンプレート
   サイドバーなし・全幅。ブロックエディタの alignfull を活かす。
   ============================================================= */
body.is-lp .site-content {
	display: block;
	max-width: none;
	padding: 0;
}

.site-main--lp {
	width: 100%;
}

.entry-content--lp {
	font-size: 1.05rem;
}

/* 通常のブロックは中央 content 幅に。full/wide ははみ出させる */
.entry-content--lp > * {
	max-width: var(--content);
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.25rem;
	padding-right: 1.25rem;
}

.entry-content--lp > .alignwide {
	max-width: var(--container);
}

.entry-content--lp > .alignfull {
	max-width: none;
	padding-left: 0;
	padding-right: 0;
}
