/* お金のシミュレーション：配置と使いやすさのための最小限の見た目（色はサイト全体の変数を使う） */
.sim-nav { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.sim-nav a {
  font-size: 14px; text-decoration: none; color: var(--accent);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--surface);
}
.sim-nav a[aria-current=page] { background: var(--accent); color: #fff; border-color: var(--accent); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; margin: -8px 0 14px; align-items: center; }
.quick .k { font-size: 13px; color: var(--muted); }
.numtable td:not(:first-child), .numtable th:not(:first-child) { text-align: right; white-space: nowrap; }
.table-scroll { overflow-x: auto; }
.schedule { max-height: 480px; overflow-y: auto; }
.schedule thead th { position: sticky; top: 0; background: var(--surface); }
.sentence { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; margin: 10px 0 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.result .big { overflow-wrap: anywhere; }
details.box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 14px; margin: 0 0 12px; }
.line-row { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin: 0 0 8px; }
.line-row .field { flex: 1 1 110px; margin: 0; }
.line-row .btn { margin-bottom: 4px; }
h2.sub { font-size: 18px; margin: 24px 0 8px; }
@media print { .sim-nav, .quick { display: none !important; } .schedule { max-height: none; overflow: visible; } }
/* 年月の入力欄（base.css にないので、ほかの入力欄と同じ見た目にする） */
input[type=month] { width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.numtable th, .numtable td:first-child { white-space: nowrap; }
/* ペアローン：2人分の入力を、広い画面では横に並べる */
.pair-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 0 0 12px; }
.pair-box { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px 0; margin: 0; min-width: 0; }
.pair-box legend { font-weight: 700; padding: 0 4px; }
