/* =========================================================
  Meishiki balance
  命式の五行バランス
========================================================= */


/* =========================
  Balance: card
========================= */

.natal-five-elements-card {
  max-width: 1080px;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(120, 80, 60, 0.16);
  box-shadow: 0 10px 28px rgba(80, 30, 20, 0.06);
}

.natal-five-elements-card > h3 {
  margin: 0 0 10px;
  color: var(--mikoto-red-dark);
  font-size: 1.18rem;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.natal-five-elements-card > .muted {
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(80, 50, 45, 0.72);
}


/* =========================
  Balance: table wrap
========================= */

.mikoto-table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(120, 80, 60, 0.16);
  background: #fffdfb;
}


/* =========================
  Balance: table
========================= */

.mikoto-balance-table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
  background: #fffdfb;
  font-size: 0.88rem;
}

.mikoto-balance-table th,
.mikoto-balance-table td {
  border-right: 1px solid #eadfd8;
  border-bottom: 1px solid #eadfd8;
  padding: 8px 9px;
  text-align: center;
  vertical-align: middle;
}

.mikoto-balance-table th:last-child,
.mikoto-balance-table td:last-child {
  border-right: none;
}

.mikoto-balance-table tbody tr:last-child th,
.mikoto-balance-table tbody tr:last-child td {
  border-bottom: none;
}

.mikoto-balance-table thead th {
  background: rgba(180, 42, 35, 0.12);
  color: rgb(110, 30, 25);
  font-weight: 800;
  white-space: nowrap;
}

.mikoto-balance-table tbody th {
  font-weight: 800;
}


/* =========================
  Balance: cells
========================= */

.meishiki-element-stem-table .element-cell {
  background: rgba(180, 42, 35, 0.10);
  color: var(--mikoto-red-dark);
  font-size: 1.02rem;
  font-weight: 800;
  white-space: nowrap;
}

.meishiki-element-stem-table .element-total {
  background: rgba(180, 42, 35, 0.045);
  color: #5a4134;
  font-weight: 800;
}

.meishiki-element-stem-table .stem-cell {
  background: rgba(180, 42, 35, 0.055);
  color: #6f4b42;
  font-weight: 800;
  white-space: nowrap;
}

.meishiki-element-stem-table td {
  color: #51463e;
}


/* =========================
  Balance: notes
========================= */

.balance-weight-note {
  display: inline-flex;
  align-items: center;
  margin: 6px 8px 0 0;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(180, 42, 35, 0.07);
  border: 1px solid rgba(120, 80, 60, 0.10);
  color: rgba(80, 50, 45, 0.72);
  font-size: 0.76rem;
  line-height: 1.4;
}

.result-card {
  max-width: 1080px;
  margin: 24px auto;
  padding: 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(120, 80, 60, 0.16);
  box-shadow: 0 10px 28px rgba(80, 30, 20, 0.06);
  border-top: 5px solid rgba(62, 116, 172, 0.95);
}

.result-card > h2,
.result-card > h3 {
  margin: 0 0 10px;
  color: var(--mikoto-red-dark);
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.result-card > .muted {
  margin: 5px 0 14px;
  font-size: 0.78rem;
  line-height: 1.65;
  color: rgba(80, 50, 45, 0.72);
}

.mikoto-table-scroll {
  width: 100%;
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(120, 80, 60, 0.16);
  background: #fffdfb;
}

.result-card > .balance-weight-note {
  margin: 5px 8px 2px 0;
}