@charset "UTF-8";
/* =============================================
   case.css — 草加クレイン歯科 症例専用
   テーマ /css/case.css に配置
============================================= */

/* ----- カテゴリ一覧（archive-case_study.php）----- */
.case-cat-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.case-cat-card {
	display: block;
	width: calc((100% - 20px) / 2);
	border: 1px solid #ccc;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: #333;
}
.case-cat-card__img {
	position: relative;
	overflow: hidden;
	aspect-ratio: 4 / 3;
	background: #f5f5f5;
}
.case-cat-card__img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.case-cat-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #999;
	font-size: 14px;
}
.case-cat-card__body {
	padding: 12px 14px;
}
.case-cat-card__name {
	font-size: 15px;
	font-weight: bold;
	margin-bottom: 4px;
}
.case-cat-card__count {
	font-size: 13px;
	color: #888;
}

/* ----- カテゴリタブ（taxonomy-case_category.php）----- */
.case-tab-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.case-tab {
	display: inline-block;
	padding: 6px 14px;
	border: 1px solid #63c293;
	border-radius: 20px;
	font-size: 13px;
	color: #63c293;
	text-decoration: none;
	white-space: nowrap;
}
.case-tab.is-active,
.case-tab:hover {
	background: #63c293;
	color: #fff;
}

/* ----- 症例カード（taxonomy-case_category.php）----- */
.case-card-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}
.case-card {
	display: block;
	width: calc((100% - 20px) / 2);
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	text-decoration: none;
	color: #333;
	padding-bottom: 10px;
}
.case-card__ba {
	display: flex;
	gap: 2px;
	background: #f5f5f5;
}
.case-card__photo {
	flex: 1;
	position: relative;
}
.case-card__photo img {
	width: 100%;
	height: auto;
	display: block;
}
.case-card__label {
	position: absolute;
	top: 0;
	left: 0;
	font-size: 10px;
	color: #fff;
	padding: 2px 8px;
	line-height: 1.4;
}
.case-card__label--before { background: #2f9cd1; }
.case-card__label--after  { background: #e85298; }
.case-card__complaint {
	padding: 8px 10px 0;
	font-size: 13px;
	line-height: 1.5;
}
.case-card__more {
	padding: 4px 10px 0;
	font-size: 12px;
	color: #63c293;
	text-align: right;
}

/* ----- 症例詳細 ビフォーアフター（single-case_study.php）----- */
.case-ba {
	display: flex;
	gap: 10px;
}
.case-ba__col {
	flex: 1;
	position: relative;
}
.case-ba__col img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid #ccc;
}
.case-ba__label {
	position: absolute;
	top: 0;
	left: 0;
	font-size: 11px;
	color: #fff;
	padding: 3px 10px;
	line-height: 1.4;
}
.case-ba__label--before { background: #2f9cd1; }
.case-ba__label--after  { background: #e85298; }

/* ----- データ表 ----- */
.case-data-table {
	width: 100%;
}
.case-data-table th {
	width: 160px;
	text-align: left;
	white-space: nowrap;
}
.case-data-table td {
	text-align: left;
}

/* ----- リスク・副作用 ----- */
.case-risk-sec {
	background: #fafafa;
	border-radius: 4px;
	padding: 16px;
}
.case-risk-ttl {
	font-size: 15px;
	font-weight: bold;
	color: #e85298;
	margin-bottom: 8px;
	padding-left: 10px;
	border-left: 3px solid #e85298;
}
.case-risk-box {
	font-size: 13px;
	line-height: 1.7;
	color: #555;
}

/* ----- 戻るボタン ----- */
.case-back {
	text-align: center;
}
.case-back__btn {
	display: inline-block;
	padding: 10px 30px;
	border: 1px solid #63c293;
	border-radius: 4px;
	color: #63c293;
	font-size: 14px;
	text-decoration: none;
}
.case-back__btn:hover {
	background: #63c293;
	color: #fff;
}

/* =============================================
   SP（モバイル）
============================================= */

/* ----- archive SP ----- */
@media screen and (max-width: 768px) {
	.case-cat-card {
		width: 100%;
		display: flex;
		border: 1px solid #ddd;
		margin-bottom: 10px;
	}
	.case-cat-card__img {
		width: 120px;
		min-height: 90px;
		aspect-ratio: auto;
		flex-shrink: 0;
	}
	.case-cat-card__body {
		display: flex;
		flex-direction: column;
		justify-content: center;
		padding: 10px 12px;
	}

	/* ----- taxonomy SP ----- */
	.case-tab-wrap {
		gap: 5px;
	}
	.case-tab {
		padding: 5px 10px;
		font-size: 12px;
	}
	.case-card {
		width: 100%;
		margin-bottom: 10px;
	}

	/* ----- single SP ----- */
	.case-ba {
		gap: 6px;
	}
	.case-data-table th {
		width: auto;
		display: block;
		background: #63c293;
		color: #fff;
		padding: 4px 8px;
		border-bottom: none;
	}
	.case-data-table td {
		display: block;
		padding: 6px 8px 10px;
		border-top: none;
	}
	.case-risk-sec {
		padding: 12px;
	}
}


/* =============================================
   症例CTA [case_cta] — case.css に追記
============================================= */

/* 埋め込み症例 */
.case-embed {
	margin-bottom: 20px;
}

/* CTAバナー */
.case-cta {
	display: flex;
	align-items: center;
	gap: 16px;
	box-sizing: border-box;
	width: 100%;
	margin: 0 auto 30px;
	padding: 18px 20px;
	background: #fff;
	border: 1px solid #bdd9ed;
	border-left: 5px solid #2F9CD1;
	border-radius: 8px;
	color: #333;
	text-decoration: none;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.case-cta:hover {
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
	transform: translateY(-2px);
	text-decoration: none;
}
.case-cta__body {
	display: flex;
	flex-direction: column;
	gap: 2px;
	flex: 1 1 auto;
	min-width: 0;
}
.case-cta__label {
	display: block;
	font-size: 10px;
	letter-spacing: 0.08em;
	font-weight: bold;
	color: #6bb8dc;
	text-transform: uppercase;
}
.case-cta__title {
	display: block;
	font-size: 16px;
	font-weight: bold;
	color: #1a6d9c;
	line-height: 1.4;
}
.case-cta__btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	flex: 0 0 auto;
	padding: 8px 16px;
	background: #2F9CD1;
	color: #fff;
	font-size: 13px;
	font-weight: bold;
	white-space: nowrap;
	border-radius: 999px;
}
.case-cta__arrow {
	font-size: 14px;
	line-height: 1;
	transition: transform 0.25s ease;
}
.case-cta:hover .case-cta__arrow {
	transform: translateX(3px);
}

/* SP */
@media screen and (max-width: 768px) {
	.case-cta {
		flex-direction: column;
		text-align: center;
		gap: 10px;
		padding: 16px 14px;
	}
	.case-cta__body {
		align-items: center;
	}
	.case-cta__btn {
		width: 100%;
		justify-content: center;
		padding: 10px 16px;
	}
}