@charset "UTF-8";
/* =========================================================================
   Chachaby theme — カードグリッド型ブログ（独自実装）
   デザインの方向性は SWELL/tsuzukiblog を参考にしたが、コードは全て独自。
   白基調・角丸カード・やわらかい影・細字（Noto Sans JP）・広めの余白。
   ========================================================================= */

:root {
	--font-body: "Noto Sans JP", "Helvetica Neue", Arial, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", "メイリオ", Meiryo, sans-serif;
	--font-en: "Inter", var(--font-body);

	--accent: #2b9c8f;          /* メインアクセント（ティール寄りの落ち着いた緑青） */
	--accent-dark: #217a70;
	--ink: #333c41;
	--ink-soft: #6b757b;
	--line: #ececec;
	--bg: #f5f7f8;              /* ページ背景（ほんのり寒色グレー） */
	--card-bg: #fff;
	--shadow: 0 2px 12px rgba(30, 50, 60, 0.06);
	--shadow-hover: 0 8px 24px rgba(30, 50, 60, 0.12);
	--radius: 12px;
	--header-h: 68px;
	--container: 1120px;
}

/* -------- reset / base -------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 15px;
	line-height: 1.8;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; vertical-align: bottom; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.4; }
ul, ol { margin: 0; padding: 0; }
a { color: var(--accent-dark); text-decoration: none; transition: color .2s, opacity .2s; }
a:hover { color: var(--accent); }
body.drawer-open { overflow: hidden; }

.container {
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
	padding-inline: 24px;
}

/* =========================================================================
   ヘッダー（固定）
   ========================================================================= */
.siteHeader {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(255,255,255,0.92);
	backdrop-filter: saturate(180%) blur(8px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s;
}
.siteHeader.is-scrolled { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.siteHeader__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-h);
	gap: 24px;
}
.siteHeader__logo { flex-shrink: 0; }
.siteHeader__logo a { display: inline-flex; flex-direction: column; line-height: 1.2; }
.siteHeader__logo img { max-height: 44px; width: auto; }
.siteHeader__title {
	font-family: var(--font-en);
	font-size: 22px;
	font-weight: 700;
	letter-spacing: .01em;
	color: var(--ink);
}
.siteHeader__desc { font-size: 11px; color: var(--ink-soft); margin-top: 2px; }

/* グローバルナビ */
.siteHeader__nav {
	min-width: 0;              /* flex 子の overflow を許可 */
	overflow: hidden;          /* はみ出しをヘッダー内に閉じ込める */
}
.gnav__list {
	display: flex;
	align-items: center;
	gap: 4px;
	list-style: none;
	flex-wrap: nowrap;         /* 折り返さず1行に */
	justify-content: flex-end;
}
.gnav__list li { flex-shrink: 0; }
.gnav__list li a {
	display: block;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ink);
	border-radius: 8px;
	transition: background .2s, color .2s;
}
.gnav__list li a:hover { background: rgba(43,156,143,0.1); color: var(--accent-dark); }
.gnav__list .current-menu-item > a,
.gnav__list .current-cat > a { color: var(--accent-dark); }

/* ハンバーガー */
.siteHeader__toggle {
	display: none;
	width: 44px; height: 44px;
	border: 0; background: transparent; cursor: pointer;
	flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.siteHeader__toggle span {
	display: block; width: 22px; height: 2px; background: var(--ink);
	transition: transform .25s, opacity .25s;
}

/* モバイルドロワー */
.drawer {
	position: fixed;
	top: 0; right: 0;
	width: 280px; max-width: 80vw; height: 100%;
	background: #fff;
	z-index: 200;
	transform: translateX(100%);
	transition: transform .3s cubic-bezier(0.4,0,0.2,1);
	overflow-y: auto;
	padding: calc(var(--header-h) + 16px) 20px 40px;
	box-shadow: -6px 0 24px rgba(0,0,0,0.12);
}
.drawer.is-open { transform: translateX(0); }
.drawer__list { list-style: none; }
.drawer__list li a {
	display: block;
	padding: 14px 8px;
	font-size: 15px;
	color: var(--ink);
	border-bottom: 1px solid var(--line);
}
.drawer__search { margin-top: 20px; }
.drawer__overlay {
	position: fixed; inset: 0;
	background: rgba(0,0,0,0.4);
	z-index: 150;
	opacity: 0; visibility: hidden;
	transition: opacity .3s, visibility .3s;
}
.drawer__overlay.is-open { opacity: 1; visibility: visible; }

/* =========================================================================
   本文レイアウト（メイン + サイドバー）
   ========================================================================= */
.siteBody {
	display: grid;
	grid-template-columns: minmax(0,1fr) 300px;
	gap: 40px;
	padding-top: 40px;
	padding-bottom: 60px;
	align-items: start;
}
.mainCol { min-width: 0; }

.pageTitle {
	font-size: 24px;
	margin-bottom: 24px;
	padding-bottom: 12px;
	border-bottom: 2px solid var(--accent);
	display: inline-block;
}
.archiveDesc { color: var(--ink-soft); margin-bottom: 24px; }

/* =========================================================================
   カードグリッド
   ========================================================================= */
.cardGrid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 24px;
}
.card {
	background: var(--card-bg);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	overflow: hidden;
	transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__link { display: block; color: inherit; }
.card__link:hover { color: inherit; }
.card__thumb {
	position: relative;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #e9edee;
}
.card__img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .4s ease;
}
.card:hover .card__img { transform: scale(1.05); }
.card__img--noimg { display: block; width: 100%; height: 100%; background: linear-gradient(135deg,#e2e8e8,#eef2f2); }
.card__cat {
	position: absolute;
	left: 10px; bottom: 10px;
	background: rgba(43,156,143,0.92);
	color: #fff;
	font-size: 11px;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 999px;
	backdrop-filter: blur(2px);
}
.card__body { padding: 16px 16px 18px; }
.card__title {
	font-size: 16px;
	line-height: 1.55;
	font-weight: 700;
	color: var(--ink);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card:hover .card__title { color: var(--accent-dark); }
.card__meta { margin-top: 10px; }
.card__date {
	font-family: var(--font-en);
	font-size: 12px;
	color: var(--ink-soft);
	letter-spacing: .03em;
}

/* ページネーション */
.pagination { margin-top: 40px; }
.pagination .nav-links {
	display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 12px;
	background: #fff; border: 1px solid var(--line); border-radius: 8px;
	font-family: var(--font-en); font-size: 14px; color: var(--ink);
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent-dark); }

.noPosts { background: #fff; border-radius: var(--radius); padding: 48px 24px; text-align: center; box-shadow: var(--shadow); }

/* =========================================================================
   サイドバー / ウィジェット
   ========================================================================= */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 20px;
}
.widget__title {
	font-size: 15px;
	font-weight: 700;
	margin-bottom: 14px;
	padding-left: 10px;
	border-left: 4px solid var(--accent);
}
.widget ul { list-style: none; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.widget li:last-child { border-bottom: 0; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--accent-dark); }
.widget__recent li a { display: block; line-height: 1.5; }

/* 検索フォーム */
.search-form { display: flex; gap: 8px; }
.search-form .search-field {
	flex: 1; min-width: 0;
	padding: 9px 12px;
	border: 1px solid var(--line); border-radius: 8px;
	font-size: 14px; font-family: inherit;
}
.search-form .search-submit {
	padding: 9px 16px;
	background: var(--accent); color: #fff; border: 0; border-radius: 8px;
	font-size: 14px; cursor: pointer;
}
.search-form .search-submit:hover { background: var(--accent-dark); }

/* =========================================================================
   個別記事 / 固定ページ
   ========================================================================= */
.single {
	background: #fff;
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	padding: 40px;
}
.single__head { margin-bottom: 24px; }
.single__cat {
	display: inline-block;
	background: rgba(43,156,143,0.1);
	color: var(--accent-dark);
	font-size: 12px; font-weight: 500;
	padding: 3px 12px; border-radius: 999px;
	margin-bottom: 14px;
}
.single__title { font-size: 30px; line-height: 1.5; margin-bottom: 14px; }
.single__meta { display: flex; gap: 16px; font-family: var(--font-en); font-size: 13px; color: var(--ink-soft); }
.single__eyecatch { margin: 0 0 32px; border-radius: var(--radius); overflow: hidden; }
.single__eyecatch img { width: 100%; display: block; }

/* 本文 */
.postContent { font-size: 16px; line-height: 1.95; }
.postContent p { margin: 0 0 1.6em; }
.postContent h2 {
	font-size: 24px; margin: 2em 0 .8em;
	padding: 10px 16px; background: var(--bg);
	border-left: 5px solid var(--accent); border-radius: 4px;
}
.postContent h3 { font-size: 20px; margin: 1.8em 0 .6em; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.postContent h4 { font-size: 17px; margin: 1.6em 0 .5em; }
.postContent img { border-radius: 8px; margin: 1em 0; }
.postContent a { text-decoration: underline; }
.postContent ul, .postContent ol { margin: 0 0 1.6em 1.4em; }
.postContent ul { list-style: disc; }
.postContent ol { list-style: decimal; }
.postContent li { margin-bottom: .4em; }
.postContent blockquote {
	margin: 1.5em 0; padding: 16px 20px;
	background: var(--bg); border-left: 4px solid #cdd6d6; border-radius: 4px;
	color: var(--ink-soft);
}
.postContent code {
	background: #f0f3f3; padding: 2px 6px; border-radius: 4px;
	font-size: .92em;
}
.postContent pre {
	background: #2b3436; color: #e8eded; padding: 18px; border-radius: 8px;
	overflow-x: auto; margin: 1.5em 0;
}
.postContent pre code { background: transparent; padding: 0; color: inherit; }
.pageLinks { margin: 1.5em 0; font-family: var(--font-en); font-size: 14px; }

.single__foot { margin-top: 32px; }
.single__tags a {
	display: inline-block;
	font-size: 12px; color: var(--ink-soft);
	background: var(--bg); padding: 4px 12px; border-radius: 999px;
	margin: 0 6px 6px 0;
}

/* 前後記事ナビ */
.postNav { display: flex; justify-content: space-between; gap: 16px; margin-top: 24px; }
.postNav__prev, .postNav__next { flex: 1; }
.postNav__next { text-align: right; }
.postNav a {
	display: block; background: #fff; border-radius: var(--radius);
	padding: 14px 18px; box-shadow: var(--shadow); font-size: 13px;
	color: var(--ink);
}
.postNav a:hover { color: var(--accent-dark); box-shadow: var(--shadow-hover); }

/* コメント */
.comments-area {
	background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
	padding: 32px; margin-top: 24px;
}
.comments-title { font-size: 18px; margin-bottom: 20px; }
.comment-list { list-style: none; }
.comment-list ul { list-style: none; padding-left: 24px; }

/* =========================================================================
   フッター
   ========================================================================= */
.siteFooter {
	position: relative;
	background: #2b3436;
	color: #cdd6d6;
	padding: 48px 0 40px;
	margin-top: 40px;
}
.siteFooter__inner { text-align: center; }
.siteFooter__brand a { font-family: var(--font-en); font-size: 20px; font-weight: 700; color: #fff; }
.siteFooter__nav {
	list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
	gap: 8px 20px; margin: 20px 0;
}
.siteFooter__nav a { color: #cdd6d6; font-size: 14px; }
.siteFooter__nav a:hover { color: #fff; }
.siteFooter__copy { font-family: var(--font-en); font-size: 12px; color: #8a9698; margin: 16px 0 0; }
.toTop {
	position: fixed;
	right: 20px; bottom: 20px;
	width: 44px; height: 44px;
	display: flex; align-items: center; justify-content: center;
	background: var(--accent); color: #fff;
	border-radius: 50%; box-shadow: var(--shadow-hover);
	font-size: 20px; z-index: 90;
}
.toTop:hover { background: var(--accent-dark); color: #fff; }

/* =========================================================================
   レスポンシブ
   ========================================================================= */
@media (max-width: 1000px) {
	.siteBody { grid-template-columns: 1fr; gap: 32px; }
	.sidebar { max-width: 640px; margin-inline: auto; width: 100%; }
}

@media (max-width: 820px) {
	:root { --header-h: 60px; }
	.gnav { display: none; }
	.siteHeader__toggle { display: flex; }
	.container { padding-inline: 16px; }
	.cardGrid { gap: 16px; }
	.single { padding: 24px 18px; }
	.single__title { font-size: 24px; }
	.postContent { font-size: 15px; }
	.postContent h2 { font-size: 20px; }
}

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