/* ============================================================
   くまなん院 TOPページ：悩み→未来像 Before/After カード
   （tp-worries-group チェックリストを置き換え／松橋院 gen-result-ba 系と同コンセプト）
   ============================================================ */
.tp-result-ba-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tp-result-ba-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  align-items: stretch;
}

.tp-result-ba-before,
.tp-result-ba-after {
  box-sizing: border-box;
  min-width: 0;
  padding: 16px 18px;
  border-radius: 10px;
  overflow-wrap: break-word;
  word-break: break-word;
}

.tp-result-ba-before {
  background: #fff4f4;
  border: 1px solid #f3b8b8;
}

.tp-result-ba-before p {
  margin: 8px 0 0;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.tp-result-ba-after {
  background: #eef8ff;
  border: 1px solid #a9d6ff;
}

.tp-result-ba-after p {
  margin: 8px 0 0;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
}

.tp-result-ba-after p strong {
  color: #005bac;
  font-weight: 900;
}

.tp-result-ba-tag {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 999px;
  background: #e53935;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.tp-result-ba-tag--after {
  background: linear-gradient(to right, #43cbff, #089ad3);
}

.tp-result-ba-arrow {
  display: block;
  width: 100%;
  height: 20px;
  margin: 0 auto;
  position: relative;
}

.tp-result-ba-arrow::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 12px solid #089ad3;
}

@media screen and (min-width: 769px) {
  .tp-result-ba-card {
    grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr);
    align-items: center;
  }

  .tp-result-ba-arrow {
    height: 100%;
  }

  .tp-result-ba-arrow::before {
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    border-left: 12px solid #089ad3;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-right: none;
  }
}

/* ============================================================
   くまなん院 TOPページ：その他症状（カテゴリ分けタグ）
   （another_menu フラットリストを置き換え／松橋院 gen-symptom 系と同コンセプト）
   ============================================================ */
.tp-symptom-other-title {
  margin: 0 0 8px;
  color: #272727;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.5;
  border-bottom: 2px solid #009ad1;
  padding-bottom: 8px;
}

.tp-symptom-other-lead {
  margin: 0 0 18px;
  color: #555;
  font-size: 14px;
  line-height: 1.7;
}

.tp-symptom-tags-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

@media screen and (min-width: 769px) {
  .tp-symptom-tags-wrap {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 24px;
  }
}

.tp-symptom-group {
  min-width: 0;
}

.tp-symptom-group-title {
  margin: 0 0 10px;
  padding-left: 10px;
  border-left: 4px solid #009ad1;
  color: #272727;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
}

.tp-symptom-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

a.tp-symptom-tag,
a.tp-symptom-tag:link,
a.tp-symptom-tag:visited {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  background: #eaf6fc;
  border: 1px solid #bfe3f4;
  color: #009ad1 !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none !important;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a.tp-symptom-tag:hover {
  background: #009ad1;
  color: #fff !important;
}
