@charset "utf-8";
/* =========================================================
   ブログ記事・記事一覧・検索結果・404ページ（新デザイン／1カラム）用CSS
   2026-11 株式会社リヒトス
   blog-single.php / blog-archive.php / blog-404.php で読み込まれます。
   色・幅・文字の大きさは、新デザインの固定ページ（.eh-fixed-page）に合わせています。
   ========================================================= */

.eh-blog{
	--eh-green:#164b39;
	--eh-ink:#172d39;
	--eh-line:#d5e4dc;
	--eh-pale:#f3f7f2;
	--eh-orange:#ff941f;
	display:block;
	font-family:"Noto Sans JP",-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Hiragino Sans","Yu Gothic",Meiryo,sans-serif;
	color:var(--eh-ink);
	font-size:16px;
	line-height:1.9;
	letter-spacing:.015em;
	background:#fff;
	overflow-wrap:anywhere;
}
.eh-blog *,.eh-blog *::before,.eh-blog *::after{box-sizing:border-box}
.eh-blog-wrap{
	width:min(100% - 40px,780px);
	margin:0 auto;
	padding:28px 0 56px;
}
.eh-blog a{color:var(--eh-green);text-decoration:underline;text-underline-offset:4px}
.eh-blog a:hover{color:var(--eh-green);opacity:.75}
.eh-blog :focus-visible{outline:3px solid var(--eh-orange);outline-offset:4px}
.eh-blog img{max-width:100%;height:auto}

/* パンくず */
.eh-blog-breadcrumbs{margin:0 0 20px;font-size:12px;line-height:1.7;color:#4a5d55}
.eh-blog-breadcrumbs a{color:#4a5d55}
/* 2026-11-16 調整：最後の項目（記事名）に付く class="post" に旧テーマの白い背景・上下の余白が効き、
   1行目が隠れて右寄りに見えていたため打ち消し */
.eh-blog-breadcrumbs .post{margin:0;padding:0;background:none}
.eh-blog-breadcrumbs .post::after{content:none}

/* ページ・記事のタイトル */
.eh-blog-title{
	margin:0 0 24px;
	font-size:28px;
	font-weight:700;
	line-height:1.5;
	color:var(--eh-green);
}
.eh-blog-title small{display:inline-block;margin-left:.6em;font-size:14px;font-weight:500;color:#4a5d55}
.eh-blog-single .eh-blog-title{margin:4px 0 14px}

/* 記事：日付・カテゴリー */
.eh-blog-meta{margin:0;font-size:13px;line-height:1.7;color:#4a5d55}
.eh-blog-meta time{font-size:inherit;margin:0}
.eh-blog-updated{margin-left:1em!important}
.eh-blog-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 28px;padding:0;list-style:none}
.eh-blog-tags a{
	display:inline-block;padding:3px 12px;font-size:12px;line-height:1.7;text-decoration:none;
	color:var(--eh-green);background:var(--eh-pale);border:1px solid var(--eh-line);border-radius:999px;
}
.eh-blog-article-header{padding-bottom:4px;border-bottom:1px solid var(--eh-line);margin-bottom:28px}
.eh-blog-article-header .eh-blog-tags{margin-bottom:20px}

/* 記事本文 */
.eh-blog-body > :first-child{margin-top:0}
.eh-blog-body p{margin:0 0 1.4em}
.eh-blog-body h2{
	margin:2.2em 0 1em;padding:0 0 10px;
	font-size:23px;font-weight:700;line-height:1.55;color:var(--eh-green);
	border-bottom:2px solid var(--eh-green);
}
.eh-blog-body h3{
	margin:2em 0 .9em;padding:2px 0 2px 14px;
	font-size:20px;font-weight:700;line-height:1.55;color:var(--eh-green);
	border-left:5px solid var(--eh-green);
}
.eh-blog-body h4{margin:1.8em 0 .8em;font-size:18px;font-weight:700;line-height:1.6;color:var(--eh-green)}
.eh-blog-body h5,.eh-blog-body h6{margin:1.6em 0 .6em;font-size:16px;font-weight:700;line-height:1.6}
.eh-blog-body ul,.eh-blog-body ol{margin:0 0 1.4em;padding-left:1.6em}
.eh-blog-body ul{list-style:disc}
.eh-blog-body ol{list-style:decimal}
.eh-blog-body li{margin:0 0 .4em}
.eh-blog-body li > ul,.eh-blog-body li > ol{margin:.4em 0 0}
.eh-blog-body em{font-style:italic}
.eh-blog-body blockquote{margin:0 0 1.4em;padding:16px 20px;background:var(--eh-pale);border-left:4px solid var(--eh-line);border-radius:0 4px 4px 0}
.eh-blog-body blockquote > :last-child{margin-bottom:0}
.eh-blog-body table{width:100%;max-width:100%;margin:0 0 1.4em;border-collapse:collapse;font-size:15px;line-height:1.7}
.eh-blog-body th,.eh-blog-body td{padding:8px 10px;border:1px solid var(--eh-line);vertical-align:top}
.eh-blog-body th{background:var(--eh-pale)}
.eh-blog-body figure{margin:0 0 1.4em}
.eh-blog-body figcaption{margin-top:6px;font-size:13px;color:#4a5d55;text-align:center}
.eh-blog-body iframe,.eh-blog-body video{max-width:100%}
.eh-blog-body hr{margin:2em 0;border:0;border-top:1px solid var(--eh-line)}

/* 2026-11-16 調整：キャプション付き画像（クラシックエディター）は style="width: 810px" のように
   幅が直接書き込まれるため、本文幅を超えないようにする */
.eh-blog-body .wp-caption{max-width:100%;height:auto;margin-bottom:1.4em}
.eh-blog-body .wp-caption img{display:block;width:100%;max-width:100%;height:auto;margin:0 auto}
.eh-blog-body .wp-caption-text{margin:6px 0 0;padding:0;font-size:13px;line-height:1.6;color:#4a5d55;text-align:center}
.eh-blog-body figure{max-width:100%}
.eh-blog-body figure img{display:block;margin-left:auto;margin-right:auto}

/* 画像の配置（旧テーマの指定を1カラム用に） */
.eh-blog-body .aligncenter{display:block;margin-left:auto;margin-right:auto;float:none}
.eh-blog-body img.aligncenter{margin-bottom:1.4em}
.eh-blog-body .alignleft{float:left;margin:4px 20px 12px 0}
.eh-blog-body .alignright{float:right;margin:4px 0 12px 20px}
.eh-blog-body .alignnone{margin-bottom:1.4em}
.eh-blog-body::after{content:"";display:table;clear:both}
@media (max-width:600px){
	.eh-blog-body .alignleft,.eh-blog-body .alignright{float:none;display:block;margin:0 auto 1.4em}
}

/* 記事内のページ分割・前後の記事・一覧へ */
.eh-blog-pagelinks{margin:0 0 2em;font-size:14px}
.eh-blog-postnav{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:40px 0 0}
.eh-blog-postnav a{
	display:block;padding:14px 16px;font-size:14px;line-height:1.6;text-decoration:none;
	border:1px solid var(--eh-line);border-radius:6px;background:#fff;
}
.eh-blog-postnav a span{display:block;margin-bottom:2px;font-size:12px;color:#4a5d55}
.eh-blog-postnav-next{grid-column:2;text-align:right}
.eh-blog-back{margin:28px 0 0;text-align:center;font-size:15px}
@media (max-width:600px){
	.eh-blog-postnav{grid-template-columns:1fr}
	.eh-blog-postnav-next{grid-column:auto}
}

/* 記事一覧 */
.eh-blog-desc{margin:-8px 0 20px;font-size:15px}
.eh-blog-list{margin:0;padding:0;list-style:none;border-top:1px solid var(--eh-line)}
.eh-blog-item{
	display:grid;grid-template-columns:180px minmax(0,1fr);grid-template-rows:auto auto 1fr;
	column-gap:24px;row-gap:4px;padding:22px 0;margin:0;border-bottom:1px solid var(--eh-line);
}
.eh-blog .eh-blog-thumb{
	grid-column:1;grid-row:1 / span 3;display:block;width:180px;height:120px;
	overflow:hidden;border-radius:5px;background:var(--eh-pale);text-decoration:none;
}
.eh-blog-thumb img{display:block;width:100%;height:100%;object-fit:cover}
.eh-blog-noimage{display:flex;align-items:center;justify-content:center;width:100%;height:100%;font-size:13px;font-weight:700;color:#8aa597;letter-spacing:.1em}
.eh-blog-date{grid-column:2;margin:0;font-size:13px;line-height:1.5;color:#4a5d55}
.eh-blog-date time{font-size:inherit;margin:0}
.eh-blog-item-title{grid-column:2;margin:0;font-size:18px;font-weight:700;line-height:1.55}
.eh-blog-item-title a{text-decoration:none}
.eh-blog-item-title a:hover{text-decoration:underline}
.eh-blog-excerpt{
	grid-column:2;margin:2px 0 0;font-size:14px;line-height:1.7;color:#3d4f48;
	display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
@media (max-width:600px){
	.eh-blog-wrap{padding-top:20px}
	.eh-blog-title{font-size:24px}
	.eh-blog-body h2{font-size:21px}
	.eh-blog-body h3{font-size:18px}
	.eh-blog-item{grid-template-columns:104px minmax(0,1fr);column-gap:14px;padding:16px 0}
	.eh-blog-thumb{width:104px;height:78px;grid-row:1 / span 2}
	.eh-blog-item-title{font-size:15px}
	.eh-blog-excerpt{grid-column:1 / -1;margin-top:6px;font-size:13px}
}
.eh-blog-empty{margin:0 0 20px}

/* ページ送り */
.eh-blog-pagination{margin:32px 0 0}
.eh-blog-pagination .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.eh-blog-pagination .nav-links{display:flex;flex-wrap:wrap;justify-content:center;gap:6px}
.eh-blog-pagination .page-numbers{
	display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0 12px;
	font-size:15px;text-decoration:none;color:var(--eh-green);border:1px solid var(--eh-line);border-radius:5px;background:#fff;
}
.eh-blog-pagination .page-numbers.current{background:var(--eh-green);border-color:var(--eh-green);color:#fff}
.eh-blog-pagination .page-numbers.dots{border:0;min-width:24px;padding:0}

/* カテゴリーから探す */
.eh-blog-cats{margin:44px 0 0;padding:20px;background:var(--eh-pale);border-radius:6px}
.eh-blog-cats-title{margin:0 0 10px;font-size:15px;font-weight:700;color:var(--eh-green)}
.eh-blog-cats ul{display:flex;flex-wrap:wrap;gap:8px;margin:0;padding:0;list-style:none}
.eh-blog-cats li{margin:0}
.eh-blog-cats a{
	display:inline-block;padding:6px 14px;font-size:13px;line-height:1.6;text-decoration:none;
	color:var(--eh-green);background:#fff;border:1px solid var(--eh-line);border-radius:999px;
}
.eh-blog-cats .current-cat a{background:var(--eh-green);border-color:var(--eh-green);color:#fff}

/* 検索フォーム（404・検索結果0件のとき） */
.eh-blog .search-form,.eh-blog #searchform{display:flex;gap:8px;margin:24px 0 0}
.eh-blog .search-form label,.eh-blog #searchform > div{display:flex;gap:8px;flex:1}
.eh-blog input[type="search"],.eh-blog input[type="text"],.eh-blog #searchform input[type="text"]{flex:1;max-width:none;height:44px;line-height:1.5;padding:8px 12px;font-size:16px;border:1px solid var(--eh-line);border-radius:5px;background:#fff}
.eh-blog input[type="submit"]{height:44px;padding:0 18px;font-size:15px;font-weight:700;color:#fff;background:var(--eh-green);border:0;border-radius:5px;cursor:pointer}
.eh-blog .screen-reader-text{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
