@charset "UTF-8";
/* =======================================================
   中津まさデンタルクリニック 記事詳細ページ（single.php）
   一覧ページ（blog-archive.css）と同じデザイン言語で統一
   ======================================================= */

@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@700;900&display=swap');

:root{
	--mc-teal:      #01939B;
	--mc-teal-light:#52C2D0;
	--mc-navy:      #03162F;
	--mc-gold:      #C8960C;
	--mc-rose:      #D97CA0;
	--mc-bg:        #F5F9FA;
	--mc-card-bg:   #FFFFFF;
	--mc-text:      #33454C;
	--mc-text-muted:#7C8D93;
}

/* -------------------------------------------------------
   スマホでの横はみ出し（横スクロール）防止の安全策
   サイト全体（html/body）に対してかけることで、原因が
   ヘッダーなど他の場所にあっても強制的に食い止める
   ------------------------------------------------------- */
html, body{
	max-width: 100%;
	overflow-x: hidden;
}
.post-page,
.post-page *{
	box-sizing: border-box;
}
.post-hero__title,
.post-content,
.post-content *{
	overflow-wrap: break-word !important;
	word-break: break-word !important;
	white-space: normal !important;
}
.post-page{
	max-width: 100vw;
	overflow-x: hidden;
}
.post-content img,
.post-content table,
.post-content iframe,
.post-content video{
	max-width: 100%;
	height: auto;
}
.post-content table{
	display: block;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}

/* 本文中に固定px幅で組まれたブロック（columnレイアウトの
   カードなど）が入っていても、親の幅を超えないように強制する */
.post-content *{
	max-width: 100%;
}

.post-page{
	background: var(--mc-bg);
	padding: 40px 0 64px;
}

.post-wrap{
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: flex-start;
	gap: 32px;
}

@media (max-width: 900px){
	.post-wrap{
		flex-direction: column;
		align-items: stretch;
	}
}

/* -------------------------------------------------------
   記事カード本体
   ------------------------------------------------------- */

.post-card{
	flex: 1;
	min-width: 0;
	background: var(--mc-card-bg);
	border-radius: 20px;
	padding: 36px 40px 44px;
	box-shadow: 0 4px 18px rgba(3,22,47,0.08);
}
@media (max-width: 600px){
	.post-card{ padding: 24px 18px 32px; }
}

/* パンくず的な「一覧に戻る」リンク */
.post-back{
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	color: var(--mc-text-muted);
	text-decoration: none;
	margin-bottom: 18px;
}
.post-back:hover{ color: var(--mc-teal); }
.post-back svg{ width: 14px; height: 14px; }

/* -------------------------------------------------------
   ヒーター（カテゴリー・日付・著者・タイトル）
   ------------------------------------------------------- */

.post-hero__meta{
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.cat-pill{
	display: inline-block;
	padding: 4px 14px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	color: #fff;
	letter-spacing: .03em;
}
.cat-pill--0{ background: var(--mc-teal); }
.cat-pill--1{ background: var(--mc-gold); }
.cat-pill--2{ background: var(--mc-navy); }
.cat-pill--3{ background: var(--mc-rose); }

.post-hero__date,
.post-hero__author{
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--mc-text-muted);
}
.post-hero__date svg,
.post-hero__author svg{ width: 13px; height: 13px; flex: none; }

.post-hero__title{
	font-family: "Zen Maru Gothic", "ヒラギノ角ゴ Pro W3", sans-serif;
	font-weight: 900;
	font-size: 28px;
	line-height: 1.5;
	color: var(--mc-navy);
	margin: 0 0 26px;
}
@media (max-width: 600px){
	.post-hero__title{ font-size: 22px; }
}

.post-hero__thumb{
	margin: 0 0 32px;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 20px rgba(3,22,47,0.12);
}
.post-hero__thumb img{
	display: block !important;
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
}
.post-content img:not(.emoji):not(.wp-smiley){
	width: 100% !important;
	max-width: 100% !important;
	height: auto !important;
	border-radius: 12px;
	box-shadow: 0 3px 12px rgba(3,22,47,0.08);
}
.post-content img.emoji,
.post-content img.wp-smiley{
	width: 1em !important;
	height: 1em !important;
	display: inline !important;
	margin: 0 .07em !important;
	vertical-align: -0.1em !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}


/* -------------------------------------------------------
   本文（the_content）
   ------------------------------------------------------- */

.post-content p,
.post-content b,
.post-content table,
.post-content ul,
.post-content ol{
	font-size: 1rem;
	line-height: 1.9;
	letter-spacing: .03em;
	color: var(--mc-text);
}
.post-content p,
.post-content img,
.post-content table,
.post-content ul,
.post-content ol{
	margin-bottom: 1.8rem;
}

.post-content h2{
	font-family: "Zen Maru Gothic", "ヒラギノ角ゴ Pro W3", sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--mc-navy);
	margin: 3rem 0 1.6rem;
	padding-bottom: .6rem;
	border-bottom: 3px solid var(--mc-teal-light);
}

.post-content h3{
	font-family: "Zen Maru Gothic", "ヒラギノ角ゴ Pro W3", sans-serif;
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--mc-navy);
	margin: 2.4rem 0 1.4rem;
	padding: .55rem 1rem;
	background: rgba(82,194,208,0.10);
	border-left: 6px solid var(--mc-teal);
	border-radius: 0 8px 8px 0;
}

.post-content h4{
	font-size: 1.05rem;
	font-weight: 700;
	color: var(--mc-navy);
	margin: 1.8rem 0 .9rem;
}

.post-content ul{ margin-left: 1.6rem; list-style: disc; }
.post-content ol{ margin-left: 1.6rem; list-style: decimal; }

.post-content img{
	border-radius: 12px;
	max-width: 100%;
	height: auto;
	box-shadow: 0 3px 12px rgba(3,22,47,0.08);
}
.post-content figure{ max-width: 100%; }

.post-content table{
	border-collapse: collapse;
	width: 100%;
	overflow: hidden;
	border-radius: 10px;
}
.post-content th,
.post-content td{
	padding: .7rem .9rem;
	vertical-align: middle;
	border: 1px solid #e2e8ea;
}
.post-content th{
	background: var(--mc-teal);
	color: #fff;
}

.post-content blockquote{
	margin: 0 0 1.8rem;
	padding: 1rem 1.4rem;
	background: #f7f8f9;
	border-left: 6px solid var(--mc-navy);
	border-radius: 0 8px 8px 0;
	color: var(--mc-text-muted);
}


/* -------------------------------------------------------
   タグ
   ------------------------------------------------------- */

.post-tags{
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 2rem;
	padding-top: 1.6rem;
	border-top: 1px dashed #e2e8ea;
}
.post-tags a{
	display: inline-block;
	padding: 5px 14px;
	border-radius: 999px;
	border: 1.5px solid var(--mc-teal);
	color: var(--mc-teal);
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
	transition: background .2s ease, color .2s ease;
}
.post-tags a:hover{
	background: var(--mc-teal);
	color: #fff;
}


/* -------------------------------------------------------
   前後の記事ナビゲーション
   ------------------------------------------------------- */

.post-pn{
	display: flex;
	justify-content: space-between;
	gap: 16px;
	margin-top: 2.5rem;
}
.post-pn > div{
	flex: 1;
	min-width: 0;
}
.post-pn a{
	display: block;
	padding: 14px 18px;
	background: var(--mc-bg);
	border-radius: 12px;
	color: var(--mc-navy);
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	transition: background .2s ease;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.post-pn a:hover{
	background: var(--mc-teal-light);
	color: #fff;
}
.post-pn .post-pn__next{ text-align: right; }


/* -------------------------------------------------------
   サイドバー（記事詳細ページ用・縦積み）
   ------------------------------------------------------- */

.post-sidebar{
	width: 320px;
	flex: none;
	display: flex;
	flex-direction: column;
	gap: 20px;
}
@media (max-width: 900px){
	.post-sidebar{ width: 100%; }
}

.post-sidebar .sidebar-wrapper{
	background: var(--mc-card-bg);
	border-radius: 16px;
	padding: 20px 22px;
	box-shadow: 0 2px 10px rgba(3,22,47,0.06);
}
.post-sidebar .sidebar-title{
	font-family: "Zen Maru Gothic", "ヒラギノ角ゴ Pro W3", sans-serif;
	font-size: 15px;
	font-weight: 700;
	color: var(--mc-navy);
	margin: 0 0 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--mc-teal-light);
}
.post-sidebar ul{ list-style: none; margin: 0; padding: 0; }
.post-sidebar ul li{ list-style: none; border-bottom: 1px dashed #e2e8ea; }
.post-sidebar ul li:last-child{ border-bottom: none; }
.post-sidebar ul li a{
	display: block;
	padding: 9px 2px;
	font-size: 13px;
	color: var(--mc-text);
	text-decoration: none;
	transition: color .2s ease, padding-left .2s ease;
}
.post-sidebar ul li a:hover{ color: var(--mc-teal); padding-left: 6px; }
.post-sidebar img{
	display: block;
	width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 4px 0;
}
.post-sidebar input[type="search"],
.post-sidebar input[type="text"]{
	width: 100%;
	border: 1px solid #dbe4e6;
	border-radius: 999px;
	padding: 8px 14px;
	font-size: 13px;
	margin-bottom: 8px;
}
.post-sidebar input[type="submit"]{
	border: none;
	background: var(--mc-teal);
	color: #fff;
	border-radius: 999px;
	padding: 8px 16px;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}