/* コメントセクションブロック */

/* メインコンテナ */
.comments-section,
section.comments-section {
	display: flex;
	align-items: flex-start;
	gap: 14px;
	margin: 40px auto;
	padding: 0;
	background: transparent;
	max-width: 1200px !important;
	width: 100% !important;
	box-sizing: border-box !important;
}

/* 吹き出しの配置 */
.comments-section-left,
section.comments-section-left {
	flex-direction: row;
}

.comments-section-right,
section.comments-section-right {
	flex-direction: row-reverse;
}

/* ── アバターエリア */
.doctor-profile {
	width: 100px;
	flex-shrink: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
}

/* ── アバター（丸） */
.doctor-avatar {
	width: 80px !important;
	height: 80px !important;
	border-radius: 50% !important;
	border: 2px solid var(--main-color-light, #9FE1CB);
	overflow: hidden;
	background-color: #f5f5f5;
}

.doctor-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* ── 名前 */
.doctor-name {
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	margin-top: 6px;
	margin-bottom: 0;
}

/* ── 役職 */
.doctor-title {
	font-size: 12px;
	color: #aaa;
	text-align: center;
	width: 100%;
	overflow: hidden;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* ── 吹き出し */
.comment-content {
	flex: 1;
	border: 1px solid var(--main-color, #0C7A5E);
	background: #fff;
	padding: 14px 18px;
	border-radius: 12px;
	position: relative;
}

/* 左向き矢印 */
.comments-section-left .comment-content::before,
section.comments-section-left .comment-content::before {
	content: '';
	position: absolute;
	top: 18px;
	left: -9px;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-right-color: var(--main-color, #0C7A5E);
	border-left: none;
	z-index: 1;
}

.comments-section-left .comment-content::after,
section.comments-section-left .comment-content::after {
	content: '';
	position: absolute;
	top: 19px;
	left: -7px;
	width: 0;
	height: 0;
	border: 7px solid transparent;
	border-right-color: #fff;
	border-left: none;
	z-index: 2;
}

/* 右向き矢印 */
.comments-section-right .comment-content::before,
section.comments-section-right .comment-content::before {
	content: '';
	position: absolute;
	top: 18px;
	right: -9px;
	width: 0;
	height: 0;
	border: 8px solid transparent;
	border-left-color: var(--main-color, #0C7A5E);
	border-right: none;
	z-index: 1;
}

.comments-section-right .comment-content::after,
section.comments-section-right .comment-content::after {
	content: '';
	position: absolute;
	top: 19px;
	right: -7px;
	width: 0;
	height: 0;
	border: 7px solid transparent;
	border-left-color: #fff;
	border-right: none;
	z-index: 2;
}

/* ── タイトル */
.comment-header {
	margin-bottom: 8px;
}

.comment-title {
	font-size: 1.125rem !important;
	font-weight: 500 !important;
	color: var(--main-color-dark, #0A5446) !important;
}

/* ── 本文 */
.comment-text {
	font-size: 1rem !important;
	color: #666 !important;
	line-height: 1.75 !important;
}

/* 太字 */
.comments-section strong,
section.comments-section strong {
	font-weight: 700 !important;
}

/* マーカー */
.comments-section mark.medical-marker {
	background-color: rgba(122, 154, 158, 0.3);
	padding: 0.1em 0.2em;
	border-radius: 2px;
}

/* ── レスポンシブ */
@media (max-width: 480px) {
	.comments-section,
	section.comments-section {
		margin: 20px 0;
	}

	.doctor-profile {
		width: 72px;
	}

	.doctor-avatar {
		width: 65px !important;
		height: 65px !important;
	}
}
