/*
Theme Name: Yoshida-Dental
Theme URI: https://yoshidadc-nakayama.com/
Description: よしだ歯科診療室 オリジナルテーマ
Version: 1.0 / 2026.09.5~
Author: デザイン事務所 Chiffote
Author URI: https://chiffote.jp/
*/





/*==================================================================

	ページ送り　＊　お知らせ・ブログ

==================================================================*/
.pagenum {
	margin: 40px 0;
}
.pagenum ul.page-numbers {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	list-style: none;
	padding: 0;
	margin: 0;
}
.pagenum ul.page-numbers li {
	margin: 0;
}
.pagenum a.page-numbers,
.pagenum span.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 10px;
	border: 1px solid #D5CBC5;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1;
	text-decoration: none;
	color: #333;
	background: #fff;
	transition: 0.2s;
}

/* 現在のページ */
.pagenum span.page-numbers.current {
	background: #C68724;
	color: #fff;
	border-color: #C68724;
	font-weight: bold;
}

/* リンクのホバー */
.pagenum a.page-numbers:hover {
	background: #D5CBC5;
}

/* 「次へ」「前へ」だけ幅を可変に */
.pagenum a.next.page-numbers, .pagenum a.prev.page-numbers {
	width: auto;
	padding: 0 16px;
}

/* ページ数が多いときの「…」表記 */
.pagenum span.page-numbers.dots {
	border: none;
	background: none;
}

/* スマホ幅で少し詰める */
@media screen and (max-width: 480px) {
	.pagenum a.page-numbers,
	.pagenum span.page-numbers {
		min-width: 34px;
		height: 34px;
		padding: 0 8px;
		font-size: 13px;
	}
}





/*==================================================================

		$投稿一覧ページ(blog.php)

==================================================================*/
.blog_list_page {
	position: relative;
	z-index: 5;
	padding-top: 80px;
}
.blog_list_page .inner {
	width: 90%;
	max-width: 1300px;
	margin: 0 auto 100px;
}
.blog_list_page ul {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px 40px;
}
.blog_list_page figure {
	margin-bottom: 20px;
	border: 1px solid #eae4da;
	box-sizing: border-box;
}
.blog_list_page figure img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
.blog_list_page .meta {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
	flex-wrap: wrap;
}
.blog_list_page time {
	font-family: "Lato", sans-serif;
	font-size: 14px;
	color: #666;
	margin-right: 7px;
}
.blog_list_page .category {
	padding: 3px 16px 1px;
	text-align: center;
	font-size: 13px;
	background: #e5ddd0;
	border-radius: 20px;
	color: #222;
}
.blog_list_page dt {
	margin-bottom: 10px;
	font-size: 18px;
	font-weight: bold;
	line-height: 1.5;
	color: #222;
}
.blog_list_page dd {
	font-size: 14px;
	line-height: 1.8;
	color: #555;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}
.blog_list_page li:hover dt {
	color: #008846;
}
.blog_list_page li:hover dd {
	color: #795C43;
}
@media screen and (max-width: 640px) {
	.blog_list_page {
		padding-top: 40px;
	}
	.blog_list_page .inner {
		width: 90%;
		margin: 0 auto 50px;
	}
	.blog_list_page ul {
		grid-template-columns: repeat(1, 1fr);
		gap: 30px 15px;
	}
	.blog_list_page figure {
		margin-bottom: 12px;
	}
	.blog_list_page .meta {
		gap: 8px;
		margin-bottom: 8px;
	}
	.blog_list_page time {
		font-size: 14px;
	}
	.blog_list_page .category {
		padding: 3px 15px 0px;
		font-size: 13px;
	}
	.blog_list_page dt {
		margin-bottom: 6px;
	}
	.blog_list_page dd {
	}
}





/*==================================================================

		$投稿ページ(single.php)

==================================================================*/
.single_post {
	position: relative;
	z-index: 5;
	padding-top: 60px;
}
.single_post .inner {
	width: 90%;
	max-width: 900px;
	margin: 0 auto 100px;
}
@media screen and (max-width: 640px) {
	.single_post {
		padding-top: 30px;
	}
	.single_post .inner {
		margin: 0 auto 60px;
	}
}


/*------------------------------ ヘッダー ------------------------------*/
.single_post .post_header {
	margin-bottom: 40px;
}
.single_post .meta {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-bottom: 30px;
}
.single_post time {
	font-family: "Lato", sans-serif;
	font-size: 15px;
	color: #666;
	margin-right: 10px;
}
.single_post .category {
	padding: 0px 18px;
	text-align: center;
	font-size: 14px;
	background: #e5ddd0;
	border-radius: 20px;
	color: #222;
}
.single_post h1 {
	font-size: 30px;
	font-weight: 700;
	line-height: 1.6;
}
.single_post .eyecatch {
	margin-bottom: 50px;
	border: 1px solid #eae4da;
	box-sizing: border-box;
}
.single_post .eyecatch img {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}
@media screen and (max-width: 640px) {
	.single_post .post_header {
		margin-bottom: 25px;
	}
	.single_post .meta {
		flex-wrap: wrap;
		gap: 12px;
		margin-bottom: 20px;
	}
	.single_post time {
		font-size: 13px;
	}
	.single_post .category {
		padding: 2px 14px;
		font-size: 12px;
	}
	.single_post h1 {
		font-size: 21px;
	}
	.single_post .eyecatch {
		margin-bottom: 30px;
	}
}


/*------------------------------ 記事本文 ------------------------------*/
.single_post .post_body {
	margin-bottom: 60px;
	line-height: 2;
	word-break: break-all;
}
.single_post .post_body p {
	letter-spacing: 0.03em;
	line-height: 2;
	word-break: break-all;
}
.single_post .post_body figure {
	margin: 2em 0;
}
.single_post .post_body figure img {
	width: 100%;
	border-radius: 20px 0 20px 0;
}
.single_post .post_body ul,
.single_post .post_body ol {
	margin: 0 0 1.5em;
	padding-left: 1.5em;
}
.single_post .post_body ul li {
	list-style: disc;
	margin-bottom: 0.5em;
}
.single_post .post_body ol li {
	list-style: decimal;
	margin-bottom: 0.5em;
}
.single_post .post_body a {
	text-decoration: underline;
  	text-underline-offset: 5px;
}

.single_post .post_body h2 {
	margin: 3em 0 1.2em;
	padding-bottom: 8px;
	border-bottom: 3px solid #008846;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.6;
}
.single_post .post_body h2::after {
	display: none;
}
.single_post .post_body h3 {
	margin: 2.5em 0 1em;
	padding-left: 18px;
	border-left: 4px solid #cfb185;
	font-size: 22px;
	font-weight: 700;
}
.single_post .post_body h4 {
	position: relative;
	margin: 2em 0 0.8em;
	padding-left: 22px;
	font-size: 18px;
	font-weight: 700;
}
.single_post .post_body h4::before {
	position: absolute;
	content: "";
	top: 14px;
	left: 0;
	width: 10px;
	height: 10px;
	background: #008846;
}
@media screen and (max-width: 640px) {
	.single_post .post_body {
		margin-bottom: 40px;
		font-size: 15px;
	}
	
	.single_post .post_body h2 {
		margin: 2em 0 1em;
		font-size: 19px;
	}
	.single_post .post_body h3 {
		margin: 1.8em 0 0.8em;
		padding-left: 14px;
		font-size: 17px;
	}
	.single_post .post_body h4 {
		margin: 1.5em 0 0.6em;
		padding-left: 18px;
		font-size: 15px;
	}
	.single_post .post_body h4::before {
		top: 6px;
		width: 8px;
		height: 8px;
	}
}


/*------------------------------ 前後記事ナビ ------------------------------*/
.single_post .post_nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 40px;
	border-top: 1px solid #ddd;
}
.single_post .post_nav a {
	flex: 1;
	color: #222;
}
.single_post .post_nav .prev,
.single_post .post_nav .next {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.single_post .post_nav .next {
	text-align: right;
}
.single_post .post_nav .label {
	font-size: 12px;
	color: #999;
}
.single_post .post_nav .title {
	font-size: 14px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	transition: 0.3s ease-out;
}
.single_post .post_nav .title:hover {
	color: #008846;
}
.single_post .post_nav .to_list {
	flex-shrink: 0;
	flex: none;
	padding: 10px 30px;
	border: 1px solid #555;
	border-radius: 30px;
	font-size: 14px;
	text-align: center;
	white-space: nowrap;
	box-sizing: border-box;
	transition: 0.3s ease-out;
}
.single_post .post_nav .to_list:hover {
	background: #008846;
	color: #FFF;
}

@media screen and (max-width: 640px) {
	.single_post .post_nav {
		flex-wrap: wrap;
		padding-top: 25px;
	}
	.single_post .post_nav .prev,
	.single_post .post_nav .next {
		width: 100%;
		order: 2;
	}
	.single_post .post_nav .next {
		text-align: left;
	}
	.single_post .post_nav .to_list {
		order: 1;
		width: 100%;
	}
}
.single_post .post_nav .is-disabled {
	flex: 1;
	visibility: hidden;
}




