/*
Theme Name: Lamcana Blog
Theme URI: https://toolai.jp/blog/
Author: らむかな
Description: toolai.jp（Lamcana）本体サイトのデザインを踏襲したブログ用WordPressテーマ。ヘッダー・フッター・共通CSS/JSは本体サイトのファイルをそのまま読み込んでいます。
Version: 1.3
*/

/* ==========================================
   ブログ専用の追加スタイル
   本体サイトの style.css（/assets/css/style.css）にある
   変数・パーツをそのまま利用しています。
   （--text-main / --text-muted / --accent-color / --border-color など）
=========================================== */

/* --- ヘッダーナビ：現在地表示 --- */
.header-nav a.nav-current {
	color: var(--accent-color);
	font-weight: 700;
}

/* --- 記事一覧：カードグリッド ---
     本体サイトの .service-grid / .service-card と同じ構造・見た目 */
.blog-section {
	padding: 0 0 100px;
	margin-top: 2em;
}

.blog-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
}

.blog-card {
	display: block;
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 16px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
	border-color: #ccc;
}

.blog-card-img {
	width: 100%;
	aspect-ratio: 1200 / 630;
	background-color: #f0f0f0;
	position: relative;
}

.blog-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card-body {
	padding: 24px;
}

.blog-card-date {
	display: block;
	font-size: 13px;
	color: var(--text-muted);
	margin-bottom: 8px;
}

.blog-card-title {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 12px;
	color: var(--text-main);
	line-height: 1.5;
}

.blog-card-desc {
	font-size: 13.5px;
	color: var(--text-muted);
	line-height: 1.6;
}

/* --- ページネーション --- */
.blog-pagination {
	margin-top: 56px;
	text-align: center;
}

.blog-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	margin: 0 4px;
	border: 1px solid var(--border-color);
	border-radius: 20px;
	color: var(--text-main);
	font-size: 14px;
}

.blog-pagination .page-numbers.current {
	background: var(--text-main);
	color: #ffffff;
	border-color: var(--text-main);
}

.blog-pagination .page-numbers:hover:not(.current) {
	border-color: #cccccc;
	background: #f8f9fa;
}

/* --- 記事詳細ページ --- */
.single-post-date {
	display: block;
	font-size: 13px;
	color: var(--text-muted);
	margin-top: 12px;
}

.single-post-wrap {
	padding: 0 0 100px;
	margin-top: 2em;
}

.single-post-inner {
	max-width: 760px;
}

.single-post-thumb {
	margin: 40px 0;
}

.single-post-thumb img {
	width: 100%;
	height: auto;
	aspect-ratio: auto;
	object-fit: contain;
	border-radius: 16px
}

.single-post-content {
	font-size: 16px;
	line-height: 1.9;
	color: var(--text-main);
}

.single-post-content p {
	margin-bottom: 1.6em;
}

.single-post-content h2 {
	font-size: 24px;
	font-weight: 700;
	margin: 2em 0 1em;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--border-color);
}

.single-post-content h3 {
	font-size: 20px;
	font-weight: 700;
	margin: 1.8em 0 0.8em;
}

.single-post-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 1.6em 0;
}

.single-post-content a {
	color: var(--accent-color);
	text-decoration: underline;
}

.single-post-content blockquote {
	border-left: 4px solid var(--border-color);
	padding-left: 16px;
	color: var(--text-muted);
	margin: 1.6em 0;
}

.single-post-content ul,
.single-post-content ol {
	padding-left: 24px;
	margin-bottom: 1.6em;
}

.single-post-content li {
	margin-bottom: 0.5em;
}

/* ==================================================
   レスポンシブ（本体サイトと同じブレークポイント）
================================================== */
@media (max-width: 992px) {
	.blog-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.blog-grid {
		grid-template-columns: 1fr;
	}
	.blog-section {
		padding: 0 0 60px;
	}
	.single-post-wrap {
		padding: 0 0 60px;
	}
}
