/* ========================================
   セクション: S04_悩み共感
   Figma node: 1038:4619 / 393×1092
   ======================================== */

.empathy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 0 40px;
  gap: 30px;
  overflow: hidden;
}

/* ── 背景画像 ── */
.empathy::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../../images/s04_empathy/empathy-bg.webp") center / cover no-repeat;
  z-index: 0;
}

.empathy > * {
  position: relative;
  z-index: 1;
}

/* ── 見出し ── */
.empathy-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 20px;
  gap: 10px;
  background: #333333;
}

.empathy-heading-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  background: #f2f5fb;
  border-radius: 999px;
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  color: #333333;
  white-space: nowrap;
}

.empathy-heading-text {
  font-family: var(--font-jp);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-align: center;
}

.empathy-heading-highlight {
  color: var(--color-yellow);
  border: 1px solid var(--color-yellow);
  padding: 0 3px;
  letter-spacing: 1.5px;
}

/* ── メインコンテンツ ── */
.empathy-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0 15px;
  gap: 0;
}

/* ── カード＋悩みラッパー（Frame 340） ── */
.empathy-cards-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 5px 0;
  gap: 30px;
}

/* ── 症状カードグリッド ── */
.empathy-symptom-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 0 20px 10px;
}

.empathy-symptom-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px 40px;
  background: #ffffff;
  border-radius: 12px;
  border: none;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
  font-family: var(--font-jp);
  line-height: 1.33;
  color: var(--text-body);
  text-align: center;
  position: relative;
}

.empathy-symptom-sub {
  font-size: 14px;
  font-weight: 500;
}

.empathy-symptom-main {
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
  position: relative;
  display: inline;
  background-image: linear-gradient(#FCE173, #FCE173);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 2px);
  background-size: 100% 8px;
  padding-bottom: 2px;
}

/* ── 症状カードイラスト ── */
.empathy-symptom-illust {
  position: absolute;
  width: 50px;
  height: 50px;
  object-fit: contain;
  z-index: 2;
}

.empathy-symptom-illust--left {
  left: -20px;
  top: 24px;
}

.empathy-symptom-illust--right {
  right: -20px;
  top: 24px;
}

.empathy-symptom-illust--sm {
  width: 40px;
  height: 40px;
  top: 30px;
}

/* ── 悩みテキスト ── */
.empathy-concern {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding: 0 9px;
  gap: 0;
}

.empathy-concern-line {
  width: 29px;
  height: 48px;
  flex-shrink: 0;
  margin-right: -10px;
}

.empathy-concern-line--right {
  margin-right: 0;
  margin-left: -10px;
}

.empathy-concern-text {
  font-family: var(--font-jp);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.75;
  color: #333333;
  text-align: center;
}

.empathy-concern-text strong {
  color: var(--color-red-cta);
  font-weight: 700;
}

.empathy-concern-red {
  color: var(--color-red-cta);
  font-weight: 700;
}

/* ── 家族イラスト ── */
.empathy-family {
  width: 300px;
  height: auto;
  display: block;
}

/* ── エラーコードセクション ── */
.empathy-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 20px;
  gap: 20px;
  background: #FFF1A8;
  border-radius: 8px;
}

.empathy-error-heading {
  text-align: center;
  line-height: 1.33;
}

.empathy-error-heading-sub {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 700;
  color: #333333;
}

.empathy-error-heading-main {
  font-family: var(--font-jp);
  font-size: 20px;
  font-weight: 700;
  color: #333333;
}

/* ── エラーコード行 ── */
.empathy-error-list {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 10px;
}

.empathy-error-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 12px;
  gap: 8px;
  background: #ffffff;
  border-radius: 6px;
}

.empathy-error-badges {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 8px;
}

.empathy-error-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  padding: 4px 10px;
  background: #333333;
  border-radius: 3px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #FCE173;
}

.empathy-error-desc {
  font-family: var(--font-jp);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: #333333;
  text-align: center;
}

.empathy-error-desc .red {
  color: #333333;
  font-size: 14px;
}
