/* Topic-specific numerical examples: keep labels and amounts readable on small screens. */
#cashflow .visual-flow-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
#cashflow .visual-flow-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  padding: 18px;
  text-align: left;
}
#cashflow .visual-flow-step > span {
  display: inline-block;
  width: auto;
  height: auto;
  min-width: 0;
  margin: 0;
  padding: 4px 10px;
  border-radius: 6px;
  line-height: 1.5;
  font-size: 13px;
  white-space: nowrap;
}
#cashflow .visual-flow-step strong {
  width: auto;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
}
#cashflow .visual-flow-step p {
  width: auto;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}
#cashflow .visual-flow-step::after { content: none; }
.comparison-table-wrap { overflow-x: auto; }
.comparison-table-wrap .comparison-table { min-width: 560px; }
.comparison-table-wrap:focus-visible { outline: 3px solid #165c85; outline-offset: 3px; }
.comparison-table caption {
  padding: 12px 4px;
  color: #19384f;
  font-size: 14px;
  line-height: 1.8;
  text-align: left;
  caption-side: top;
}
@media (max-width: 720px) {
  .comparison-table-wrap::before {
    content: "表は横にスクロールして確認できます";
    display: block;
    padding: 8px 0;
    color: #425b6e;
    font-size: 12px;
    line-height: 1.7;
  }
  #cashflow .visual-flow-overview { grid-template-columns: minmax(0, 1fr); }
  #cashflow .visual-flow-step { padding: 18px 20px; }
}
