/* KSD Clinic column site main styles.
 * 本家サイトのデザインを参考にしたヘッダー／フッター／ハンバーガーのスタイル。
 */

/* 基本レイアウト補助 */
body {
	font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", "游ゴシック体", YuGothic, "Meiryo UI", meiryo, sans-serif;
}

/* ================================
 * コンテナ余白（本家に合わせて左右余白なし）
 * SWELL の --swl-pad_container / --swl-pad_post_content を上書き
 * ================================ */
:root {
	--swl-pad_container: 0;
	--swl-pad_post_content: 16px; /* SP 基準の本文左右余白 */
}
@media (min-width: 960px) {
	:root {
		--swl-pad_container: 0;
		--swl-pad_post_content: 24px; /* PC は少し広めに */
	}
}
@media (min-width: 1200px) {
	:root {
		--swl-pad_container: 0;
		--swl-pad_post_content: 24px;
	}
}
/* 本家同様にコンテナを狭めない（SWELL の width/max-width を上書き） */
.l-container,
#content.l-container {
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
	padding-top: 0;
}

/* id="content" の padding-top（本家掲載画像に合わせる） */
#content {
	padding-top: 50px;
}

/* 本文コンテナ：上下マージン＆内側余白を調整 */
.l-mainContent__inner>.post_content {
	margin: 4rem 0;
	padding: 2rem var(--swl-pad_post_content, 0);
}

/* ================================
 * コラム記事：本文エリアだけ左寄せ（SP/PC共通）
 * ================================ */
.single #main_content,
.single .l-mainContent__inner,
.single .post_content {
	text-align: left;
}
@media screen and (max-width: 1440px) and (min-width: 768px) {
	#content {
		padding-top: 3.47vw;
	}
}
@media (max-width: 767px) {
	#content {
		padding-top: 25px;
	}
}

/* ================================
 * パンくず（本家 .c-breadcrumb に合わせる）
 * ================================ */
.p-breadcrumb,
.p-breadcrumb.-bg-on {
	background: transparent;
	padding: 0;
}
.p-breadcrumb__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	list-style: none;
	width: 90%;
	margin-left: 3%;
	padding: 0;
}
.p-breadcrumb__item {
	display: flex;
	align-items: center;
	margin-right: 25px;
	position: relative;
}
.p-breadcrumb__item:after {
	position: absolute;
	content: ">";
	top: 50%;
	transform: translateY(-50%);
	right: -15px;
	color: #4c4d4d;
	font-size: 1.2rem;
}
.p-breadcrumb__item:last-child:after {
	content: "";
}
/* 記事詳細：最下層の記事タイトルを表示、last の後に > を出さない */
.single .p-breadcrumb__item:last-child .p-breadcrumb__text {
	display: block !important;
}
.single .p-breadcrumb__item:last-child:after {
	content: "" !important;
	display: none !important;
}
.p-breadcrumb__text {
	text-decoration: none;
	color: #4c4d4d;
	font-size: 1.2rem;
	padding: 11px 0;
	display: block;
}
/* TB */
@media screen and (max-width: 1440px) and (min-width: 768px) {
	.p-breadcrumb__item:after {
		font-size: 0.83vw;
	}
	.p-breadcrumb__text {
		font-size: 0.83vw;
	}
}
/* SP：改行せず横スクロール */
@media (max-width: 767px) {
	.p-breadcrumb__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
	.p-breadcrumb__item {
		flex-shrink: 0;
	}
	.p-breadcrumb__text {
		font-size: 1rem;
	}
}

/* ================================
 * 見出し（本家 .c-title3 に合わせる）
 * ================================ */
.c-pageTitle {
	display: block;  /* h1 { display: none } のオーバーライド */
	position: static; /* h1 { position: absolute } のオーバーライド */
	border-top: 1px solid #dac8ae;
	border-bottom: 1px solid #dac8ae;
	background-color: #fffdfa;
	font-size: 3.4rem;
	padding: 40px 0 40px 35px;
	font-weight: bold;
	font-family: "游明朝", "YuMincho", "Hiragino Mincho Pro", "MS PMincho", "ヒラギノ明朝 Pro W6", serif;
	margin: 0;
}
@media screen and (max-width: 1440px) and (min-width: 768px) {
	.c-pageTitle {
		font-size: 2.36vw;
		padding: 2.78vw 0 2.78vw 2.43vw;
	}
}
@media (max-width: 767px) {
	.c-pageTitle {
		font-size: 2.2rem;
		padding: 20px 0 20px 14px;
	}
}
/* SWELL 親テーマ home.css のオーバーライド */
.c-pageTitle[data-style="b_bottom"] {
	border-bottom: 1px solid #dac8ae; /* var(--color_border) を上書き */
}
.c-pageTitle__inner,
.c-pageTitle[data-style="b_bottom"] .c-pageTitle__inner {
	border-bottom: none;
	float: none;
	margin-bottom: 0;
	padding: 0;
}

/* ================================
 * 記事詳細：タイトル（本家 .c-title3 に合わせる）
 * ================================ */
#main_content .p-articleHead {
	border-top: 1px solid #dac8ae;
	border-bottom: 1px solid #dac8ae;
	background-color: #fffdfa;
	font-size: 3.4rem;
	padding: 40px 0 40px 35px;
	font-weight: bold;
	font-family: "游明朝", "YuMincho", "Hiragino Mincho Pro", "MS PMincho", "ヒラギノ明朝 Pro W6", serif;
	margin: 0;
}
#main_content .p-articleHead .c-postTitle__ttl {
	font-size: inherit;
	font-weight: inherit;
	font-family: inherit;
	margin: 0;
	border: none;
	background: none;
}
/* 記事詳細の h1 を表示（style_top.css の h1 { display: none } を上書き） */
#main_content .p-articleHead h1,
#main_content h1.c-postTitle__ttl {
	display: block !important;
	position: static !important;
	top: auto;
	left: auto;
}
#main_content .p-articleHead .c-postTitle__date {
	display: none;
}
@media screen and (max-width: 1440px) and (min-width: 768px) {
	#main_content .p-articleHead {
		font-size: 2.36vw;
		padding: 2.78vw 0 2.78vw 2.43vw;
	}
}
@media (max-width: 767px) {
	#main_content .p-articleHead {
		font-size: 2.2rem;
		padding: 20px 0 20px 14px;
	}
}

/* 記事詳細：アイキャッチ右下に更新日（figure 内配置）、タイトルとの間 2rem */
#main_content .p-articleThumb {
	margin-top: 2rem;
}
.single .p-articleThumb {
	position: relative;
}
.ksd-thumb-date {
	position: absolute;
	bottom: -30px;
	right: 12px;
	z-index: 1;
	color: #000000;
	font-size: 14px;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* ================================
 * 記事詳細：目次ボックス（本家デザイン準拠）
 * ================================ */
#main_content .p-toc {
	background-color: #F4EEE3;  /* 目次ボックスのベージュ */
	border-radius: 0;
	border: none;
	padding: 1.5em 2em;
	margin: 2em auto;
}
#main_content .p-toc .p-toc__ttl {
	display: block;
	margin: 0 0 1em;
	font-weight: bold;
	font-size: 1.4rem;
	color: #b54a82;
	text-align: left;
	padding-left: 0;
	border: none;
}
/* SWELL デフォルトのアイコン・記号を打ち消し、ピンクのバーに差し替え */
#main_content .p-toc .p-toc__ttl::before {
	content: "";
	display: inline-block;
	width: 16px;
	height: 3px;
	margin-right: .5em;
	vertical-align: middle;
	background-color: #b54a82;
}
#main_content .p-toc .p-toc__list {
	margin: 0;
	padding-left: 1.5em;
}
#main_content .p-toc .p-toc__list li {
	margin-bottom: .5em;
	line-height: 1.6;
}

/* 記事詳細：目次以下の本文背景を白に */
.single .post_content,
body.single .l-mainContent__inner .post_content {
	background: #fff;
}

/* ================================
 * 記事詳細：テーブル（目次とトーン統一／tr・th・tdを明確に区別）
 * ================================ */
.post_content table {
	border-radius: 8px;
	overflow: hidden;
	border-collapse: collapse;
	border: 1px solid #DDC8AE;
}
.post_content table thead tr {
	background-color: #be9963;
	color: #fff;
}
.post_content table thead th {
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-bottom: 2px solid #8b6914;
	padding: 0.5em 1em;
	font-weight: bold;
}
.post_content table tbody tr:nth-child(odd) td {
	background-color: #FAF7EF;
	border: 1px solid #DDC8AE;
	padding: 0.5em 1em;
}
.post_content table tbody tr:nth-child(even) td {
	background-color: #F5F0E8;
	border: 1px solid #DDC8AE;
	padding: 0.5em 1em;
}

/* ================================
 * 記事詳細：本文見出し h2, h3, h4（デザイン画像準拠）
 * 参照: assets/img/design-ref/h2-design.png, h3-design.png, h4-design.png
 * ================================ */
.post_content h2 {
	font-size: 2.4rem;
	font-weight: bold;
	position: relative;
	margin: 1em 0;
	padding: 12px 16px 12px 55px;
	background-color: #6A3A6A;
	border: 1px solid #FBF0CC;
	color: #fff;
}
.post_content h2::before {
	position: absolute;
	content: "";
	left: 5px;
	top: -3px;
	width: 50px;
	height: 100%;
	background-color: #FBF0CC;
	clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 60%, 0 100%);
	border: none;
}
@media screen and (max-width: 1440px) and (min-width: 768px) {
	.post_content h2 {
		font-size: 1.68vw;
	}
}
@media (max-width: 767px) {
	.post_content h2 {
		font-size: 1.8rem;
		padding: 10px 14px 10px 50px;
	}
	.post_content h2::before {
		width: 35px;
	}
}
.post_content h3 {
	font-size: 1.8rem;
	font-weight: 600;
	margin: 1em 0;
	padding: 15px 20px;
	background-color: #FAF7EF;
	border: 2px dashed #DDC8AE;
	border-radius: 0;
	color: #333;
}
/* 親テーマの .post_content h3:before を打ち消す */
.post_content h3::before {
	content: none !important;
	display: none !important;
}
@media screen and (max-width: 1440px) and (min-width: 768px) {
	.post_content h3 {
		font-size: 1.5vw;
	}
}
@media (max-width: 767px) {
	.post_content h3 {
		font-size: 1.5rem;
		padding: 12px 15px;
	}
}
.post_content h4 {
	font-size: 1.6rem;
	font-weight: bold;
	position: relative;
	margin: 1em 0;
	padding: 10px 12px 10px 22px;
	background-color: #F2E6ED;
	color: #000;
}
.post_content h4::before {
	position: absolute;
	content: "";
	left: 0;
	top: 0;
	width: 10px;
	height: 100%;
	background-color: #6F5466;
}
@media screen and (max-width: 1440px) and (min-width: 768px) {
	.post_content h4 {
		font-size: 1.4vw;
	}
}
@media (max-width: 767px) {
	.post_content h4 {
		font-size: 1.4rem;
		padding: 8px 10px 8px 20px;
	}
	.post_content h4::before {
		width: 8px;
	}
}

/* ================================
 * ポイント（is-style-big_icon_point）紫デザイン
 * 左：ひし形（45度回転の正方形）に「Point」、右：薄ピンク背景＋上下 border
 * ================================ */
.post_content .is-style-big_icon_point {
	position: relative;
	display: flex;
	align-items: center;
	margin: 2em 0 2em 2em;
	padding: 15px 15px 15px 60px;
	background-color: #FDF7FD;
	border: none;
	border-top: 2px solid #6A3A6A;
	border-bottom: 2px solid #6A3A6A;
	color: #333;
	font-weight: bold;
}
.post_content .is-style-big_icon_point::before {
	content: "";
	position: absolute;
	left: -20px;
	top: 50%;
	width: 54px;
	height: 54px;
	background-color: #C38EB2;
	transform: translateY(-50%) rotate(45deg);
	z-index: 1;
	box-sizing: border-box;
	border-radius: 0 !important; /* SWELL の border-radius:50% を上書きしてひし形を維持 */
}
.post_content .is-style-big_icon_point::after {
	content: "Point";
	position: absolute;
	left: -20px;
	top: 50%;
	width: 54px;
	height: 54px;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	border-radius: 0 !important; /* SWELL の border-radius を上書き */
}
/* wp-block-group の場合 */
.post_content .wp-block-group.is-style-big_icon_point {
	position: relative;
	display: flex;
	align-items: center;
	margin: 2em 0 2em 2em;
	padding: 0;
	background-color: #FDF7FD;
	border: none;
	border-top: 2px solid #6A3A6A;
	border-bottom: 2px solid #6A3A6A;
	color: #333;
}
.post_content .wp-block-group.is-style-big_icon_point > * {
	flex: 1;
	padding: 15px 15px 15px 60px;
	font-weight: bold;
}
.post_content .wp-block-group.is-style-big_icon_point::before {
	content: "";
	position: absolute;
	left: -20px;
	top: 50%;
	width: 54px;
	height: 54px;
	background-color: #C38EB2;
	transform: translateY(-50%) rotate(45deg);
	z-index: 1;
	box-sizing: border-box;
	border-radius: 0 !important; /* SWELL の border-radius:50% を上書きしてひし形を維持 */
}
.post_content .wp-block-group.is-style-big_icon_point::after {
	content: "Point";
	position: absolute;
	left: -20px;
	top: 50%;
	width: 54px;
	height: 54px;
	transform: translateY(-50%);
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	border-radius: 0 !important; /* SWELL の border-radius を上書き */
}

/* ================================
 * Header
 * ================================ */

/* ヘッダーナビ＋メニューボタンをオーバーレイより前面に */
.c-header__nav {
	position: relative;
	z-index: 10;
}

#header.l-header {
	background: linear-gradient(120deg, #f7d3e1 0%, #f5d9f2 35%, #e4e5ff 100%);
	color: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.l-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 24px;
}

.l-header__logo img {
	max-height: 52px;
	height: auto;
}

.l-header__gnav {
	flex: 1;
	margin-left: 40px;
}

.l-header__gnav .c-gnavWrap,
.l-header__gnav .c-gnav {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 32px;
}

.l-header__gnav a {
	color: #fff;
	font-size: 14px;
	letter-spacing: 0.08em;
	text-decoration: none;
}

.l-header__gnav a:hover {
	opacity: 0.8;
}

/* SP ヘッダー調整 */
@media (max-width: 959px) {
	.l-header__inner {
		padding: 10px 16px;
	}

	.l-header__gnav {
		display: none;
	}
}

@media screen and (max-width: 767px) {
	.c-header__des p {
		padding: 45px 0;
	}
}

/* ================================
 * SP ハンバーガーメニュー
 * ================================ */

.p-spMenu {
	background: rgba(255, 255, 255, 0.98);
}

.p-spMenu__inner {
	background: linear-gradient(150deg, #f7d3e1 0%, #fbe5f3 40%, #e8ecff 100%);
	color: #3b2b2b;
}

.p-spMenu__nav .c-spnav a {
	color: #3b2b2b;
	font-size: 15px;
	padding: 10px 0;
	text-decoration: none;
}

.p-spMenu__overlay {
	background: rgba(0, 0, 0, 0.35);
}

/* ================================
 * メイン＋左サイドバー（c-left-side）
 * ================================ */

.ksd-content-with-sidebar {
	display: flex;
	flex-wrap: wrap;
}

.ksd-content-with-sidebar .c-left-side {
	width: 23%;
}

.ksd-content-with-sidebar #main_content {
	flex: 1;
	min-width: 0;
	max-width: 100%;
	background-color: #fffbf4;
}

/* SP: 本家同様にメイン上・サイド下（下部表示）に切り替え（flex order で入れ替え） */
@media (max-width: 767px) {
	.ksd-content-with-sidebar .c-left-side {
		width: 100%;
		order: 1;
	}
	.ksd-content-with-sidebar #main_content {
		order: 0;
	}
}

/* ================================
 * Footer area（診療時間・お問い合わせ）
 * ================================ */

.ksd-footer-area {
	display: flex;
	flex-wrap: wrap;
}

.ksd-footer-area__contact {
	flex: 1;
	min-width: 0;
}

@media (max-width: 767px) {
	.ksd-footer-area__contact {
		width: 100%;
	}
}

/* ================================
 * サイドナビ（c-left-side）本家合わせ
 * ================================ */

/* PC: 当院についての開閉ボディは常に表示 */
@media (min-width: 768px) {
	.sidebar-hospital__body {
		display: block !important;
	}
}

/* SP: 当院についての chevron 開閉連動（開＝上向き） */
@media (max-width: 767px) {
	.sidebar-hospital .tit.on:after {
		transform: rotate(180deg);
		transition: transform 0.3s;
	}
}

/* SP: タイトル上の before 線を非表示（本家に合わせる） */
@media (max-width: 767px) {
	.sidebar-hospital .tit:before {
		height: 0;
	}
	.c-left-side .content-tile:before {
		height: 0;
	}
	.c-left-side .content-tile {
		padding: 15px 0;
	}
}

/* 当院について: ご挨拶ラベル＋リストのレイアウト（本家に合わせる） */
.sidebar-hospital__body {
	text-align: center;
}
.sidebar-hospital__label {
	margin: 0 0 0.5em;
	padding: 0;
	font-size: inherit;
	font-weight: 500;
}
.sidebar-hospital__body ul {
	list-style: none;
	margin: 0 auto;
	padding: 0 0 20px;
	text-align: left;
	width: 46%;
}
.sidebar-hospital__body ul li {
	display: block;
	width: 100%;
	margin-bottom: 0.25em;
	height: auto;
	float: none;
	background: none;
}
.sidebar-hospital__body ul li a {
	padding: 0.25em 0;
	display: block;
}
@media (max-width: 767px) {
	/* SP時、SWELL側で display:none にされる ul を表示させつつ、幅だけ38%に調整 */
	.sidebar-hospital__body ul {
		display: block !important; /* .c-left-side ul { display:none } の上書き */
	}
	.sidebar-hospital ul {
		width: 38%;
	}
	.c-left-side__content ul {
		display: none;
	}
}

/* 施術内容別: 開閉アイコンを本家と一致（閉＝下・開＝上）※逆だった場合の反転 */
@media (max-width: 767px) {
	.c-left-side__bg2 .content-tile:after {
		transform: rotate(180deg);
		transition: transform 0.3s;
	}
	.c-left-side__bg2 .content-tile.on:after {
		transform: rotate(0deg);
	}
}

/* ================================
 * 記事一覧カードデザイン（添付画像に合わせる）
 * ================================ */

.p-homeContent .p-postList__link,
.p-archiveContent .p-postList__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: transparent;
	border-radius: 0;
	overflow: hidden;
	color: inherit;
}

.p-homeContent .p-postList__thumb,
.p-archiveContent .p-postList__thumb {
	border-radius: 0;
	overflow: hidden;
	box-shadow: none;
}

/* カテゴリラベル非表示 */
.p-homeContent .c-postThumb__cat,
.p-archiveContent .c-postThumb__cat {
	display: none;
}

.p-homeContent .p-postList__body,
.p-archiveContent .p-postList__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	padding: 16px 18px 18px;
}

.p-homeContent .p-postList__title,
.p-archiveContent .p-postList__title {
	margin: 0 0 auto;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: #333;
}

.p-homeContent .p-postList__excerpt,
.p-archiveContent .p-postList__excerpt {
	display: none;
}

.p-homeContent .p-postList__meta,
.p-archiveContent .p-postList__meta {
	margin-top: 12px;
	display: flex;
	justify-content: flex-end;
}

.p-homeContent .p-postList__times,
.p-archiveContent .p-postList__times {
	font-size: 13px;
	color: #777;
}

/* 一覧エリア左右余白 */
.p-homeContent,
.p-archiveContent {
	margin-left: 1rem;
	margin-right: 1rem;
}

/* SP: 一覧エリア背景（本家掲載画像に合わせる） */
@media (max-width: 767px) {
	.p-homeContent,
	.p-archiveContent {
		background-color: #fbf9f6;
	}
}

/* ================================
 * ページャデザイン（本家掲載画像に合わせる：ゴールドアクティブ・円形）
 * ================================ */
.p-homeContent .c-pagination,
.p-archiveContent .c-pagination {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 2em;
}
.p-homeContent .c-pagination .page-numbers,
.p-archiveContent .c-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0;
	border-radius: 50%;
	border: 1px solid #be9963;
	background: #fff;
	color: #be9963;
	text-decoration: none;
	font-size: 14px;
	box-shadow: none;
	transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.p-homeContent .c-pagination .page-numbers:hover,
.p-archiveContent .c-pagination .page-numbers:hover {
	background: #f5f0e8;
	color: #be9963;
}
.p-homeContent .c-pagination .page-numbers.current,
.p-archiveContent .c-pagination .page-numbers.current {
	background: #be9963;
	color: #fff;
	border-color: #be9963;
	cursor: default;
}
.p-homeContent .c-pagination .c-pagination__dot,
.p-archiveContent .c-pagination .c-pagination__dot {
	padding: 0 4px;
}

/* ================================
 * Footer（本家同様の footer は style.css / style_top.css の footer スタイルを利用）
 * ================================ */

