/* Kashi SEO Enhance — 記事装飾・CTA・内部リンク */
:root {
	--kashi-green: #007563;
	--kashi-green-soft: #e9f5f2;
	--kashi-green-line: #b9ddd5;
	--kashi-cta: #e8731a;
	--kashi-cta-hover: #cf6210;
	--kashi-text: #332424;
	--kashi-muted: #6b6461;
	--kashi-radius: 10px;
}

/* ---------- 本文の装飾 ---------- */
.post_content h3:not(.kashi-ref-ttl) {
	position: relative;
	margin-top: 2.6em;
	padding: .5em 0 .5em .9em;
	border-left: 5px solid var(--kashi-green);
	background: linear-gradient(90deg, var(--kashi-green-soft), transparent 85%);
	font-size: 1.15em;
	line-height: 1.5;
}
.post_content h4 {
	margin-top: 2em;
	padding-bottom: .3em;
	border-bottom: 2px dotted var(--kashi-green-line);
	font-size: 1.05em;
}
.post_content h4::before {
	content: "";
	display: inline-block;
	width: .55em;
	height: .55em;
	margin-right: .5em;
	border-radius: 50%;
	background: var(--kashi-green);
	vertical-align: .1em;
}
.post_content ul:not([class]),
.post_content ol:not([class]) {
	padding: 1.1em 1.2em 1.1em 2.4em;
	border: 1px solid var(--kashi-green-line);
	border-radius: var(--kashi-radius);
	background: #fbfdfc;
}
.post_content ul:not([class]) > li::marker { color: var(--kashi-green); }
.post_content ol:not([class]) > li::marker { color: var(--kashi-green); font-weight: 700; }
.post_content li + li { margin-top: .45em; }

.post_content table:not(.clinic-table) {
	border-collapse: collapse;
	width: 100%;
	font-size: .92em;
}
.post_content table:not(.clinic-table) th {
	background: var(--kashi-green-soft);
	color: var(--kashi-text);
	font-weight: 700;
}
.post_content table:not(.clinic-table) th,
.post_content table:not(.clinic-table) td {
	border: 1px solid var(--kashi-green-line);
	padding: .7em .8em;
}
.post_content blockquote {
	border-left: 4px solid var(--kashi-green-line);
	background: #f7f8f8;
	padding: 1em 1.2em;
	color: var(--kashi-muted);
}

/* 参考文献 */
.post_content .kashi-ref-ttl {
	margin-top: 2.5em;
	padding: .4em .8em;
	border: 0;
	border-radius: 6px 6px 0 0;
	background: #f1f3f3;
	font-size: 1em;
	color: var(--kashi-muted);
}
.post_content .kashi-ref-ttl + ul,
.post_content .kashi-ref-ttl + p + ul {
	margin-top: 0;
	border-radius: 0 0 var(--kashi-radius) var(--kashi-radius);
	font-size: .85em;
	word-break: break-all;
}

/* ---------- 執筆・監修ボックス ---------- */
.kashi-author {
	margin: 0 0 2em;
	padding: 1em 1.2em;
	border: 1px solid var(--kashi-green-line);
	border-radius: var(--kashi-radius);
	background: #fff;
	font-size: .88em;
	line-height: 1.7;
}
.kashi-author__row { display: flex; align-items: center; gap: .8em; }
.kashi-author__row + .kashi-author__row { margin-top: .5em; }
.kashi-author__img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.kashi-author__label {
	display: inline-block;
	margin-right: .6em;
	padding: 0 .6em;
	border-radius: 3px;
	background: var(--kashi-green);
	color: #fff;
	font-size: .85em;
	font-weight: 700;
}
.kashi-author__title,
.kashi-author__cred { display: block; color: var(--kashi-muted); font-size: .92em; }
.kashi-author__meta { margin: .6em 0 0 !important; color: var(--kashi-muted); }
.kashi-author__policy { margin: .2em 0 0 !important; color: var(--kashi-muted); font-size: .92em; }

/* ---------- 文中の関連記事 ---------- */
.kashi-rel {
	position: relative;
	margin: 2.4em 0;
	padding: 1.3em 1em 1em;
	border: 2px solid var(--kashi-green-line);
	border-radius: var(--kashi-radius);
}
.kashi-rel__label {
	position: absolute;
	top: -.8em;
	left: 1em;
	padding: 0 .7em;
	background: #fff;
	color: var(--kashi-green);
	font-size: .82em;
	font-weight: 700;
}
.kashi-rel__link {
	display: flex;
	align-items: center;
	gap: .9em;
	color: var(--kashi-text) !important;
	text-decoration: none !important;
	font-weight: 700;
	line-height: 1.5;
}
.kashi-rel__link:hover .kashi-rel__title { color: var(--kashi-green); text-decoration: underline; }
.kashi-rel__img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.kashi-rel__title::after { content: " ›"; color: var(--kashi-green); }

/* ---------- 記事末の関連記事リスト ---------- */
.kashi-relList {
	margin: 2.5em 0 1em;
	padding: 1.2em 1.3em;
	border-radius: var(--kashi-radius);
	background: var(--kashi-green-soft);
}
.kashi-relList__ttl { margin: 0 0 .6em !important; font-weight: 700; color: var(--kashi-green); }
.post_content .kashi-relList ul { margin: 0; padding: 0; border: 0; background: none; list-style: none; }
.kashi-relList li { padding: .55em 0; border-bottom: 1px dashed var(--kashi-green-line); }
.kashi-relList li:last-child { border-bottom: 0; }
.kashi-relList a { color: var(--kashi-text) !important; text-decoration: none !important; }
.kashi-relList a::before { content: "›"; margin-right: .5em; color: var(--kashi-green); font-weight: 700; }
.kashi-relList a:hover { color: var(--kashi-green) !important; text-decoration: underline !important; }

/* ---------- メンクリCTA ---------- */
.kashi-cta {
	position: relative;
	margin: 2.5em 0;
	padding: 1.3em 1.2em;
	border: 2px solid var(--kashi-green);
	border-radius: var(--kashi-radius);
	background: #fff;
	text-align: center;
}
.kashi-cta__pr {
	position: absolute;
	top: .5em;
	right: .6em;
	padding: 0 .4em;
	border: 1px solid #bbb;
	border-radius: 3px;
	color: #888;
	font-size: .7em;
}
.kashi-cta__eyebrow { margin: 0 0 .2em !important; color: var(--kashi-green); font-size: .85em; font-weight: 700; }
.kashi-cta__ttl { margin: 0 0 .6em !important; font-size: 1.15em; font-weight: 700; line-height: 1.5; }
.kashi-cta__lead { margin: 0 0 1em !important; color: var(--kashi-muted); font-size: .92em; text-align: left; }
.kashi-cta__body { display: flex; align-items: center; gap: 1em; text-align: left; }
.kashi-cta__imgwrap { flex: 0 0 34%; }
.kashi-cta__img { width: 100%; height: auto; border-radius: 6px; }
.post_content .kashi-cta__points {
	flex: 1;
	margin: 0 0 1em;
	padding: 0;
	border: 0;
	background: none;
	list-style: none;
	text-align: left;
	font-size: .92em;
}
.kashi-cta__points li { position: relative; padding-left: 1.6em; font-weight: 700; }
.kashi-cta__points li::before {
	content: "✓";
	position: absolute;
	left: 0;
	top: 0;
	width: 1.2em;
	height: 1.2em;
	border-radius: 50%;
	background: var(--kashi-green);
	color: #fff;
	font-size: .85em;
	line-height: 1.2em;
	text-align: center;
	margin-top: .25em;
}
.kashi-cta__btn {
	display: block;
	max-width: 420px;
	margin: 0 auto;
	padding: .95em 1em;
	border-radius: 999px;
	background: var(--kashi-cta);
	box-shadow: 0 4px 0 var(--kashi-cta-hover);
	color: #fff !important;
	font-weight: 700;
	text-decoration: none !important;
	transition: transform .15s, box-shadow .15s;
}
.kashi-cta__btn::after { content: " ›"; }
.kashi-cta__btn:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--kashi-cta-hover); }
.kashi-cta__btn--lg { font-size: 1.05em; padding: 1.1em 1em; animation: kashi-pulse 2.4s ease-in-out infinite; }
.kashi-cta__note { margin: .9em 0 0 !important; color: var(--kashi-muted); font-size: .75em; text-align: left; }
.kashi-cta--end { background: linear-gradient(180deg, var(--kashi-green-soft), #fff 60%); }

@keyframes kashi-pulse {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.025); }
}
@media (prefers-reduced-motion: reduce) {
	.kashi-cta__btn--lg { animation: none; }
}

/* ---------- 追従CTA ---------- */
.kashi-sticky {
	position: fixed;
	z-index: 90;
	display: flex;
	align-items: center;
	gap: .7em;
	background: #fff;
	box-shadow: 0 -2px 14px rgba(0, 0, 0, .15);
	transition: transform .3s ease, opacity .3s ease;
}
.kashi-sticky[hidden] { display: none; }
.kashi-sticky.is-hide { opacity: 0; pointer-events: none; }
.kashi-sticky__img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex-shrink: 0; }
.kashi-sticky__txt { flex: 1; min-width: 0; }
.kashi-sticky__ttl { margin: 0; font-size: 13px; font-weight: 700; line-height: 1.4; }
.kashi-sticky__sub { margin: 0; color: var(--kashi-muted); font-size: 11px; line-height: 1.4; }
.kashi-sticky__btn {
	flex-shrink: 0;
	padding: .75em 1.1em;
	border-radius: 999px;
	background: var(--kashi-cta);
	color: #fff !important;
	font-size: 13px;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}
.kashi-sticky__btn:hover { background: var(--kashi-cta-hover); }
.kashi-sticky__close {
	position: absolute;
	top: -12px;
	right: 8px;
	width: 24px;
	height: 24px;
	border: 0;
	border-radius: 50%;
	background: #555;
	color: #fff;
	font-size: 14px;
	line-height: 24px;
	cursor: pointer;
}

/* SP：画面下バー */
@media (max-width: 959px) {
	.kashi-sticky {
		left: 0;
		right: 0;
		bottom: 0;
		padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
	}
	.kashi-sticky.is-hide { transform: translateY(110%); }
	.kashi-sticky__ttl { font-size: 12px; }
	body.kashi-sticky-on .p-fixBtnWrap { bottom: 86px; }
	.kashi-cta__body { flex-direction: column; }
	.kashi-cta__imgwrap { flex-basis: auto; width: 60%; }
}
@media (max-width: 374px) {
	.kashi-sticky__img, .kashi-sticky__sub { display: none; }
}

/* PC：右下カード */
@media (min-width: 960px) {
	.kashi-sticky {
		right: 24px;
		bottom: 90px;
		width: 340px;
		padding: 14px 16px;
		flex-wrap: wrap;
		border-top: 4px solid var(--kashi-green);
		border-radius: var(--kashi-radius);
	}
	.kashi-sticky.is-hide { transform: translateY(20px); }
	.kashi-sticky__btn { width: 100%; text-align: center; }
	.kashi-sticky__img { width: 52px; height: 52px; }
}

/* ---------- 目次上メインCTA ---------- */
.kashi-hero {
	position: relative;
	margin: 1.5em 0 2.2em;
	padding: 0 0 1.2em;
	border: 3px solid var(--kashi-green);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(0, 117, 99, .12);
	overflow: hidden;
	text-align: center;
}
.kashi-hero .kashi-cta__pr { z-index: 1; background: #fff; }
.kashi-hero__ribbon {
	margin: 0 !important;
	padding: .45em 1em;
	background: var(--kashi-green);
	color: #fff;
	font-size: .85em;
	font-weight: 700;
	letter-spacing: .08em;
}
.kashi-hero__ttl {
	margin: 0 !important;
	padding: .9em 1em .2em;
	color: var(--kashi-text);
	font-size: 1.22em;
	font-weight: 800;
	line-height: 1.45;
}
.kashi-hero__body {
	display: flex;
	align-items: center;
	gap: 1em;
	padding: .8em 1.2em .4em;
	text-align: left;
}
.kashi-hero__imgwrap { flex: 0 0 34%; max-width: 230px; }
.kashi-hero__img { width: 100%; height: auto; border-radius: 10px; }
.kashi-hero__main { flex: 1; min-width: 0; }
.kashi-hero__name { margin: 0 0 .5em !important; font-weight: 700; font-size: .95em; }
.post_content .kashi-hero__badges {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: .45em;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	list-style: none;
}
.kashi-hero__badges li {
	display: flex;
	align-items: center;
	gap: .45em;
	margin: 0 !important;
	padding: .55em .7em;
	border-radius: 8px;
	background: var(--kashi-green-soft);
	line-height: 1.3;
}
.kashi-hero__badges li::before {
	content: "✓";
	flex-shrink: 0;
	width: 1.4em;
	height: 1.4em;
	border-radius: 50%;
	background: var(--kashi-green);
	color: #fff;
	font-size: .8em;
	line-height: 1.4em;
	text-align: center;
}
.kashi-hero__bsm { font-size: .78em; color: var(--kashi-green); font-weight: 700; white-space: nowrap; }
.kashi-hero__blg { font-size: .95em; font-weight: 800; color: var(--kashi-text); white-space: nowrap; }
.kashi-hero__blg small { font-size: .7em; font-weight: 400; }
.kashi-hero__trust {
	margin: .4em 1em .8em !important;
	font-size: .9em;
	font-weight: 700;
	color: var(--kashi-green);
}
.kashi-hero__trust::before,
.kashi-hero__trust::after { content: "★"; margin: 0 .4em; color: #f2b600; }
.kashi-hero__trust small { font-weight: 400; color: var(--kashi-muted); font-size: .75em; }
.kashi-hero__btn { width: calc(100% - 2em); max-width: 460px; margin: 0 auto !important; line-height: 1.35; }
.kashi-hero__btnsub { display: block; font-size: .72em; font-weight: 500; opacity: .95; }
.kashi-hero .kashi-cta__note { padding: 0 1.2em; }

@media (max-width: 599px) {
	.kashi-hero__ttl { font-size: 1.08em; }
	.kashi-hero__body { flex-direction: column; padding-top: .6em; }
	.kashi-hero__imgwrap { flex-basis: auto; width: 46%; }
	.kashi-hero__main { width: 100%; }
	.kashi-hero__name { text-align: center; }
	.kashi-hero__btn { width: calc(100% - 1.6em); }
	.kashi-hero__badges li {
		display: grid;
		grid-template-columns: auto 1fr;
		column-gap: .4em;
		padding: .45em .5em;
	}
	.kashi-hero__badges li::before { grid-row: span 2; align-self: center; }
	.kashi-hero__bsm { font-size: .68em; line-height: 1.2; }
	.kashi-hero__blg { font-size: .88em; white-space: normal; }
}

/* ---------- 導入文上のスリムCTA ---------- */
.kashi-top {
	position: relative;
	display: flex;
	align-items: center;
	gap: .8em 1em;
	margin: 0 0 1.8em;
	padding: .7em .9em;
	border: 2px solid var(--kashi-green);
	border-radius: var(--kashi-radius);
	background: var(--kashi-green-soft);
}
.kashi-top__row { display: flex; align-items: center; gap: .7em; flex: 1; min-width: 0; }
.kashi-top__img { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.kashi-top__ttl { margin: 0 !important; font-size: .95em; font-weight: 800; line-height: 1.4; color: var(--kashi-text); }
.kashi-top__sub { margin: .1em 0 0 !important; font-size: .78em; color: var(--kashi-muted); line-height: 1.4; }
.kashi-top__btn {
	flex-shrink: 0;
	padding: .7em 1.2em;
	border-radius: 999px;
	background: var(--kashi-cta);
	box-shadow: 0 3px 0 var(--kashi-cta-hover);
	color: #fff !important;
	font-size: .85em;
	font-weight: 700;
	text-decoration: none !important;
	white-space: nowrap;
}
.kashi-top__btn::after { content: " ›"; }
.kashi-top__btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 var(--kashi-cta-hover); }

@media (max-width: 599px) {
	.kashi-top { flex-direction: column; align-items: stretch; padding: .7em .8em .8em; }
	.kashi-top__ttl { font-size: .9em; }
	.kashi-top__btn { text-align: center; padding: .65em 1em; }
}
