/* =========================================
   会話形式 吹き出しブロック（フロント+エディタ共通）
   ========================================= */

.kyoto-conv {
	margin: 16px 0;
	max-width: 100%;
	clear: both;
}

.kyoto-conv__inner {
	display: flex;
	align-items: flex-start;
	gap: 14px;
}

/* === 左吹き出し === */
.kyoto-conv--left .kyoto-conv__inner {
	flex-direction: row;
	justify-content: flex-start;
}

/* === 右吹き出し === */
.kyoto-conv--right .kyoto-conv__inner {
	flex-direction: row-reverse;
	justify-content: flex-start;
}

/* === アイコン === */
.kyoto-conv__icon-wrap {
	flex: 0 0 auto;
	width: 80px;
	text-align: center;
}

.kyoto-conv__icon {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	overflow: hidden;
	background: #f5f5f5;
	margin: 0 auto;
}

.kyoto-conv__icon img {
	width: 80px;
	height: 80px;
	object-fit: cover;       /* 楕円化防止：縦横同値固定＋coverトリミング */
	object-position: center;
	display: block;
	border-radius: 50%;
}

.kyoto-conv__name {
	margin-top: 6px;
	font-size: 12px;
	line-height: 1.3;
	color: #525252;
	word-break: break-all;
	font-weight: bold;
}

/* === 吹き出し本体 === */
.kyoto-conv__bubble {
	position: relative;
	flex: 1 1 auto;
	max-width: 60%;
	background: #ffffff;
	border: 1px solid #d8d8d8;
	border-radius: 14px;
	padding: 14px 18px;
	margin-top: 10px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.kyoto-conv__body {
	margin: 0;
	color: #333333;
	font-size: 15px;
	line-height: 1.7;
	word-wrap: break-word;
}

.kyoto-conv__body a {
	color: #1565c0;
	text-decoration: underline;
}

/* === 吹き出しの三角（しっぽ） === */
.kyoto-conv__bubble::before,
.kyoto-conv__bubble::after {
	content: "";
	position: absolute;
	top: 22px;
	width: 0;
	height: 0;
	border-style: solid;
}

.kyoto-conv--left .kyoto-conv__bubble::before {
	left: -10px;
	border-width: 8px 10px 8px 0;
	border-color: transparent #d8d8d8 transparent transparent;
}

.kyoto-conv--left .kyoto-conv__bubble::after {
	left: -9px;
	border-width: 8px 10px 8px 0;
	border-color: transparent #ffffff transparent transparent;
}

.kyoto-conv--right .kyoto-conv__bubble::before {
	right: -10px;
	border-width: 8px 0 8px 10px;
	border-color: transparent transparent transparent #d8d8d8;
}

.kyoto-conv--right .kyoto-conv__bubble::after {
	right: -9px;
	border-width: 8px 0 8px 10px;
	border-color: transparent transparent transparent #ffffff;
}

/* =========================================
   マーカー（蛍光ペン風ハイライト）
   ========================================= */

.kyoto-conv-marker {
	background: transparent;
	background-image: linear-gradient(transparent 60%, #ffe97f 60%);
	padding: 0 2px;
	border-radius: 2px;
	color: inherit;
}

.kyoto-conv-marker--yellow {
	background-image: linear-gradient(transparent 60%, #ffe97f 60%);
}
.kyoto-conv-marker--pink {
	background-image: linear-gradient(transparent 60%, #ffb7c5 60%);
}
.kyoto-conv-marker--blue {
	background-image: linear-gradient(transparent 60%, #b3e5fc 60%);
}
.kyoto-conv-marker--green {
	background-image: linear-gradient(transparent 60%, #c5e1a5 60%);
}

/* === スマホ用 === */
@media screen and (max-width: 767px) {
	.kyoto-conv__inner {
		gap: 10px;
	}
	.kyoto-conv__icon-wrap {
		width: 60px;
	}
	.kyoto-conv__icon,
	.kyoto-conv__icon img {
		width: 60px;
		height: 60px;
	}
	.kyoto-conv__bubble {
		max-width: 85%;
		padding: 10px 14px;
		border-radius: 12px;
	}
	.kyoto-conv__body {
		font-size: 14px;
		line-height: 1.6;
	}
	.kyoto-conv__name {
		font-size: 11px;
	}
}
