/* ===== セクションヘッダー(吹き出し + アイコン) ===== */

.empathy-header {
	max-width: 720px;
	margin: 0 auto 2rem;  /* 下のカードとの距離を詰める(4rem→2rem) */
	padding: 0 1.5rem;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
}

/* 吹き出し本体 ─ 横長で大きめに */
.header-bubble {
	position: relative;
	display: inline-block;
	background: rgba(250, 250, 250);
	border: 3px solid rgba(220, 220, 220);
	border-radius: 36px;
	padding: 1.5rem 4rem;
	min-width: 380px;
}

.bubble-text {
	font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
	font-size: clamp(30px, 3.2vw, 42px);
	font-weight: 700;
	color: #394868;
	line-height: 1.3;
	letter-spacing: 0.02em;
}

/* 吹き出しの尖り(中央下を指す) */
.header-bubble::before {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -16px;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 14px solid transparent;
	border-right: 14px solid transparent;
	border-top: 16px solid rgba(220, 220, 220);
}

.header-bubble::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: -12px;
	transform: translateX(-50%);
	width: 0;
	height: 0;
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 14px solid rgba(250, 250, 250);
}

/* アイコン2つ並び ─ 見出しとの距離を広く取る */
.header-avatars {
	display: flex;
	gap: 1.5rem;
	margin-bottom: 3rem;  /* 見出しとの距離を広げる(1.75rem→3rem) */
}

.avatar-circle {
	width: 90px;
	height: 90px;
	border-radius: 50%;
	overflow: hidden;
	background: #fff;
	border: 3px solid rgba(225, 152, 166, 0.4);
	box-shadow: 0 4px 12px rgba(57, 72, 104, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
}

.avatar-circle img {
	width: 110%;
	height: 110%;
	object-fit: cover;
	object-position: center 30%;
}

/* メイン見出し */
.empathy-header .empathy-headline {
	font-family: 'Zen Maru Gothic', 'Noto Sans JP', sans-serif;
	font-size: clamp(28px, 3.2vw, 36px);
	font-weight: 700;
	color: #394868;
	line-height: 1.5;
	margin: 0;
}

/* レスポンシブ ─ ヘッダー部分はSPでもできるだけ大きく表示 */
@media (max-width: 640px) {
	.header-bubble {
		min-width: auto;
		width: 100%;          /* 画面幅いっぱいに */
		padding: 1.25rem 1.5rem;
	}
	.avatar-circle {
		width: 84px;          /* 72px → 84px */
		height: 84px;
	}
	.header-avatars {
		gap: 1rem;
		margin-bottom: 2.25rem;
	}
}

/* ヘッダー要素のフェードイン順 */
#empathy .header-bubble.fade-in   { transition-delay: 0.1s; }
#empathy .header-avatars.fade-in  { transition-delay: 0.5s; }
#empathy .empathy-header .empathy-headline.fade-in { transition-delay: 0.9s; }

#empathy .empathy-card.fade-in:nth-of-type(1) { transition-delay: 1.0s; }
#empathy .empathy-card.fade-in:nth-of-type(2) { transition-delay: 1.1s; }
#empathy .empathy-card.fade-in:nth-of-type(3) { transition-delay: 1.2s; }
#empathy .empathy-card.fade-in:nth-of-type(4) { transition-delay: 1.3s; }

.empathy-card {
	display: flex;
	flex-direction: column;
	border-radius: 24px;
	overflow: hidden;
	padding: 1.75rem 1.75rem 2rem;
}

.card-pink     { background-color: rgba(225, 152, 166, 0.22); }
.card-turquoise{ background-color: rgba(162, 215, 221, 0.22); }
.card-turquoise-light { background-color: rgba(162, 215, 221, 0.12); }
.card-gradient {
	background:
		radial-gradient(circle at bottom right, rgba(162, 215, 221, 0.45) 0%, rgba(162, 215, 221, 0) 35%),
		rgba(225, 152, 166, 0.22);
}

/* SIZE B(中)で確定、タイトルとのスペースを少し開ける */
.empathy-card .handwritten-label {
	font-family: 'Caveat', cursive;
	font-weight: 600;
	font-size: clamp(22px, 1.7vw, 28px);
	color: #e198a6;
	line-height: 1;
	margin-bottom: 0.3rem;
	letter-spacing: 0.02em;
	display: inline-block;
	transform: rotate(-2deg);
}

.empathy-card h3 {
	font-size: clamp(20px, 1.7vw, 24px);
	font-weight: 700;
	line-height: 1.5;
	color: #394868;
	text-align: left;
	margin-bottom: 1rem;
	min-height: 2.6em;
}

.empathy-illustration {
	aspect-ratio: 3 / 4;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 1.25rem;
	border-radius: 12px;
	overflow: hidden;
}

.empathy-illustration img,
.empathy-illustration video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.illustration-placeholder {
	width: 100%;
	height: 100%;
	border: 2px dashed rgba(57, 72, 104, 0.25);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: rgba(57, 72, 104, 0.5);
	font-size: 13px;
	gap: 8px;
	padding: 1rem;
}

.illustration-placeholder svg {
	width: 48px;
	height: 48px;
	opacity: 0.4;
}

.illustration-placeholder.placeholder-video {
	border-color: rgba(57, 72, 104, 0.4);
	background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, rgba(255,255,255,0) 100%);
	position: relative;
	overflow: hidden;
}

.illustration-placeholder.placeholder-video::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
	animation: video-shimmer 2.4s ease-in-out infinite;
}

@keyframes video-shimmer {
	0%   { left: -50%; }
	100% { left: 150%; }
}

.placeholder-tag {
	display: inline-block;
	margin-top: 6px;
	padding: 2px 8px;
	border-radius: 10px;
	background: rgba(57, 72, 104, 0.15);
	font-family: 'DM Mono', monospace;
	font-size: 10px;
	letter-spacing: 0.1em;
}

.empathy-card p {
	font-size: clamp(16px, 1.4vw, 20px);
	line-height: 1.75;
	color: rgba(57, 72, 104, 0.85);
	text-align: left;
	flex-grow: 1;  /* 説明文と more の間の余白を伸ばし、more をカードの底に張り付かせる */
}

/* ★ボタン:矢印のみ・グレー
	上のラベル(ピンク)とのコントラストで落ち着きを出す */
.empathy-card .more-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	margin-top: 1.25rem;
	align-self: flex-end;
	color: rgba(57, 72, 104, 0.5);
	font-size: 22px;
	line-height: 1;
	text-decoration: none;
	border-radius: 50%;
	transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
}

.empathy-card .more-link:hover {
	color: #394868;
	background-color: rgba(57, 72, 104, 0.06);
	transform: translateX(2px);
}

/* カード4のように more がないカードでも、他のカードと高さを揃える
	more-link と同じ高さの不可視スペースを確保 */
.empathy-card .more-link-spacer {
	display: inline-block;
	margin-top: 1.25rem;
	width: 36px;
	height: 36px;
	visibility: hidden;
	align-self: flex-end;
}

/* カードグリッド ─ PC・SP 共通でスライダー型(横スクロール)
	画面サイズごとにカード幅を調整、3.2枚程度見切れる設計
	※ 親の .container で左右余白を取っているので、paddingは最小限 */
.empathy-grid {
	display: flex;
	gap: 20px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding: 0 0 1rem;
	scrollbar-width: thin;
	scrollbar-color: rgba(57, 72, 104, 0.2) transparent;
}

/* PC(1024px以上):500px固定幅、約2.8枚表示 */
.empathy-card {
	flex: 0 0 500px;
	scroll-snap-align: start;
}

/* タブレット(640〜1024px):400px・約1.8枚表示 */
@media (max-width: 1024px) {
	.empathy-card {
		flex: 0 0 400px;
	}
}

/* SP(640px以下):270px・約1.3枚表示 */
@media (max-width: 640px) {
	.empathy-card {
		flex: 0 0 270px;
	}
}

.preview-dummy {
	background: linear-gradient(180deg, #f8f8f8, #ffffff);
	min-height: 50vh;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #999;
	font-size: 14px;
	letter-spacing: 0.2em;
}