/* ==============================================
   お客様の声（sensing/testimonial）
   Figma デザイン準拠
============================================== */

/* ---- カード ---- */
.wp-block-sensing-testimonial {
	position: relative;
	background: #F9FAFB;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	padding: 32px;
	margin: 0 0 32px;
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
	font-family: Helvetica, 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
	text-align: left;
}

/* 引用マーク装飾（テキストに重なる） */
.wp-block-sensing-testimonial::before {
	content: '\201C';
	position: absolute;
	top: 16px;
	left: 16px;
	font-size: 80px;
	line-height: 1;
	color: #CFFF04;
	opacity: 0.3;
	font-family: Georgia, serif;
	pointer-events: none;
}

/* ---- 本文エリア ---- */
.testimonial-body {
	position: relative;
	z-index: 1;
	margin: 0 0 24px;
	padding-top: 32px;
}

/* 本文エリア内の最初の子要素の上マージンを消す */
.testimonial-body > *:first-child,
.testimonial-body .block-editor-block-list__layout > *:first-child {
	margin-top: 0 !important;
}

.testimonial-body p {
	font-size: 18px;
	line-height: 1.6;
	color: #0A1628;
	font-style: italic;
	margin: 0;
}

.testimonial-body p + p {
	margin-top: 12px;
}

/* ---- 区切り線 + 投稿者 ---- */
.testimonial-author {
	display: flex;
	align-items: center;
	gap: 16px;
	border-top: 1px solid #E5E7EB;
	padding-top: 24px;
}

/* ---- アバター ---- */
.testimonial-avatar {
	flex-shrink: 0;
	width: 64px;
	height: 64px;
	background: #E5E7EB;
	border-radius: 50%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}


/* ---- 氏名・肩書き ---- */
.testimonial-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.testimonial-name {
	font-size: 16px;
	font-weight: 700;
	color: #0A1628;
	margin: 0 !important;
}

.testimonial-role {
	font-size: 14px;
	color: #6B7280;
	margin: 0 !important;
}

/* ==============================================
   記事本文スタイル上書き
============================================== */

.column-article__body .wp-block-sensing-testimonial .testimonial-body p {
	font-size: 18px;
	color: #0A1628;
	font-style: italic;
	margin: 0;
}

.column-article__body .wp-block-sensing-testimonial .testimonial-body p + p {
	margin-top: 12px;
}

/* ==============================================
   エディター専用
============================================== */

.wp-block-sensing-testimonial .testimonial-body .block-editor-block-list__layout {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	text-align: left;
}

.wp-block-sensing-testimonial .testimonial-body .block-editor-block-list__layout > *,
.wp-block-sensing-testimonial .testimonial-body h2,
.wp-block-sensing-testimonial .testimonial-body h3,
.wp-block-sensing-testimonial .testimonial-body h4,
.wp-block-sensing-testimonial .testimonial-body p,
.wp-block-sensing-testimonial .testimonial-body [data-type] {
	text-align: left !important;
	max-width: 100%;
}

.wp-block-sensing-testimonial .testimonial-body .block-list-appender {
	position: static;
	margin-top: 8px;
}

/* ---- レスポンシブ ---- */
@media only screen and (max-width: 640px) {
	.wp-block-sensing-testimonial {
		padding: 24px;
	}

	.wp-block-sensing-testimonial::before {
		font-size: 60px;
		top: 12px;
		left: 16px;
	}

	.testimonial-body p {
		font-size: 16px;
	}

	.testimonial-avatar {
		width: 48px;
		height: 48px;
	}
}
