/* ほうち勘定 2026-12-01 作り直し: トップのカテゴリ・カテゴリの頁・新しい計算ツールの共通の見た目。
   色・書体は main.css の変数(--navy ほか)に合わせる。12px 未満は使わない。 */
.masthead-tag { font-weight: 400; }

/* ---- トップ: 調べたいことから選ぶ ---- */
.cats { margin: 0; padding: 20px 0 8px; }
.cats-h { margin: 0 0 14px; padding-left: 12px; border-left: 4px solid var(--navy); font-size: 20px; line-height: 30px; font-weight: 700; color: #000; letter-spacing: .02em; }
.cats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cat { padding: 18px 20px 14px; border: 1px solid #d6d1c4; background: #fff; }
.cat-h { margin: 0 0 4px; font-size: 20px; line-height: 30px; font-weight: 700; letter-spacing: .02em; }
.cat-h a { color: var(--navy); text-decoration: none; }
.cat-h a::after { content: " ›"; }
.cat-h a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cat-d { margin: 0 0 10px; font-size: 14px; line-height: 23px; color: var(--ink-muted); }
.cat-l { list-style: none; margin: 0; padding: 0; }
.cat-l li { border-top: 1px solid #e6e6e6; }
.cat-l a { display: block; padding: 10px 24px 10px 0; position: relative; font-size: 16px; line-height: 24px; color: var(--ink-strong); text-decoration: none; }
.cat-l a::after { content: "›"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--navy); }
.cat-l a:hover { text-decoration: underline; text-underline-offset: 4px; }
.cat-wide { grid-column: 1 / -1; padding-bottom: 16px; }
.cat-wide .cat-d { margin-bottom: 0; }
@media (max-width: 767px) {
  .cats { padding: 16px 0 0; }
  .cats-h { font-size: 18px; line-height: 28px; }
  .cats-grid { grid-template-columns: 1fr; gap: 12px; }
  .cat { padding: 16px 16px 6px; }
  .cat-wide { padding-bottom: 14px; }
}

/* ---- カテゴリの頁(/bukka/ /kyuyo/ /nenkin-zei/) ---- */
.hub-lead { margin: 0 0 22px; font-size: 16px; line-height: 27px; color: var(--ink-strong); }
.hub-first { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 8px; padding: 0; list-style: none; }
.hub-first a { display: block; height: 100%; padding: 14px 16px; border: 1px solid #d6d1c4; background: #fff; color: var(--ink-strong); text-decoration: none; }
.hub-first a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.hub-first b { display: block; margin: 0 0 4px; font-size: 17px; line-height: 26px; color: var(--navy); }
.hub-first span { display: block; font-size: 14px; line-height: 22px; color: var(--ink); }
.hub-sec { margin: 32px 0 0; }
.hub-sec h2 { margin: 0 0 10px; padding-left: 12px; border-left: 4px solid var(--navy); font-size: 20px; line-height: 31px; font-weight: 700; color: #000; }
.hub-rows { list-style: none; margin: 0; padding: 0; }
.hub-rows li { border-top: 1px solid #e6e6e6; }
.hub-rows li:last-child { border-bottom: 1px solid #e6e6e6; }
.hub-rows a { display: block; position: relative; padding: 12px 28px 12px 0; color: var(--ink-strong); text-decoration: none; }
.hub-rows a::after { content: "›"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--navy); }
.hub-rows a:hover b { text-decoration: underline; text-underline-offset: 4px; }
.hub-rows b { display: block; font-size: 16px; line-height: 25px; font-weight: 700; }
.hub-rows span { display: block; margin-top: 2px; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.hub-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.hub-chips a { display: block; padding: 9px 14px; border: 1px solid #d6d1c4; background: #fff; font-size: 15px; line-height: 22px; color: var(--ink-strong); text-decoration: none; }
.hub-chips a:hover { background: #f6f4ef; text-decoration: underline; text-underline-offset: 4px; }
.hub-more { margin: 10px 0 0; font-size: 14px; }
@media (max-width: 767px) { .hub-first { grid-template-columns: 1fr; } .hub-sec { margin-top: 28px; } }

/* 末尾の「ほかのページ」は 4 つ(2 列) */
.next-see ul { grid-template-columns: 1fr 1fr; }
@media (max-width: 767px) { .next-see ul { grid-template-columns: 1fr; } }

/* ---- 新しい計算ツール(/tools/jikyu-gekkyu/ /tools/bukka-kansan/) ---- */
.tl { margin: 0 0 8px; }
.tl-title { margin: 0 0 8px; font-size: 24px; line-height: 36px; font-weight: 700; color: #000; }
.tl-lead { margin: 0 0 18px; font-size: 16px; line-height: 27px; }
.tl-box { margin: 0 0 18px; padding: 16px 16px 12px; border: 1px solid #d6d1c4; background: #fbfaf6; }
.tl-box h2 { margin: 0 0 10px; padding: 0; border: 0; font-size: 18px; line-height: 28px; font-weight: 700; color: #000; }
.tl-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; margin: 0 0 10px; }
.tl-row label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 20px; color: var(--ink-muted); }
.tl-row input, .tl-row select { width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid #aaa; border-radius: 4px; background: #fff; font: inherit; font-size: 17px; color: #000; }
.tl-row input:focus, .tl-row select:focus { outline: 2px solid var(--navy); outline-offset: 1px; }
.tl-out { margin: 12px 0 0; padding: 12px 14px; background: #fff; border-left: 4px solid var(--navy); font-size: 16px; line-height: 27px; }
.tl-out b { font-size: 22px; font-variant-numeric: tabular-nums; color: #000; }
.tl-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px 14px; margin: 0; }
.tl-big div { padding: 0; }
.tl-big dt { margin: 0; font-size: 13px; line-height: 20px; color: var(--ink-muted); }
.tl-big dd { margin: 0; font-size: 24px; line-height: 32px; font-weight: 700; color: #000; font-variant-numeric: tabular-nums; }
.tl-big dd small { font-size: 14px; font-weight: 400; }
.tl-note { margin: 8px 0 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.tl-tabs { display: flex; gap: 0; margin: 0 0 12px; border: 1px solid #aaa; border-radius: 4px; overflow: hidden; }
.tl-tabs button { flex: 1; min-height: 44px; padding: 8px 6px; border: 0; border-right: 1px solid #aaa; background: #fff; font: inherit; font-size: 15px; color: var(--ink-strong); cursor: pointer; }
.tl-tabs button:last-child { border-right: 0; }
.tl-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; font-weight: 700; }
.tl-table { width: 100%; border-collapse: collapse; margin: 8px 0 0; font-size: 14px; line-height: 22px; font-variant-numeric: tabular-nums; }
.tl-table th, .tl-table td { padding: 7px 8px; border-bottom: 1px solid #e6e6e6; text-align: right; white-space: nowrap; }
.tl-table th:first-child, .tl-table td:first-child { text-align: left; }
.tl-table thead th { border-bottom: 2px solid #999; font-weight: 700; background: #f6f4ef; }
.tl-wrap { overflow-x: auto; }
.tl-src { margin: 8px 0 0; font-size: 13px; line-height: 21px; color: var(--ink-muted); }
.tl-ok { color: #1c6b3a; font-weight: 700; }
.tl-ng { color: #a02020; font-weight: 700; }

.tl-h2 { margin: 28px 0 10px; padding-left: 12px; border-left: 4px solid var(--navy); font-size: 20px; line-height: 31px; font-weight: 700; color: #000; }
.tl-list { margin: 0 0 12px; padding-left: 1.3em; font-size: 15px; line-height: 25px; }
.tl-list li { margin: 0 0 4px; }
.tl-swap { min-height: 40px; padding: 6px 14px; border: 1px solid #aaa; border-radius: 4px; background: #fff; font: inherit; font-size: 14px; color: var(--ink-strong); cursor: pointer; }
.tl-details { margin: 20px 0 0; }
.tl-details summary { cursor: pointer; font-size: 15px; line-height: 26px; color: var(--navy); }
.tl p { font-size: 15px; line-height: 26px; }
.tl .tl-note, .tl .tl-src { font-size: 13px; line-height: 21px; }
.tl-out { word-break: auto-phrase; }
@media (max-width: 767px) { .tl-title { font-size: 22px; line-height: 34px; } .tl-big dd { font-size: 22px; } }

.tl-tabs button.tl-tab { background: #fff; color: var(--ink-strong); }
.tl-tabs button.tl-tab[aria-pressed="true"] { background: var(--navy); color: #fff; }
.tl-table td:first-child, .tl-table th:first-child { white-space: normal; }
.post-title + .hub-lead { margin-top: 12px; }
.cats { margin-bottom: 28px; }
@media (max-width: 767px) { .tl-table { font-size: 13px; } .tl-table th, .tl-table td { padding: 7px 6px; } }
/* 品目の値段の頁の下の案内(2026-12-05): 道具と最低賃金の頁へ */
.nd-go { display: block; margin: 12px 0; padding: 12px 14px; border: 1px solid #d6d1c4; background: #fbfaf6; color: inherit; text-decoration: none; }
.nd-go b { display: block; font-size: 16px; line-height: 26px; color: #000; }
.nd-go span { display: block; font-size: 14px; line-height: 22px; color: var(--ink-muted); }
.nd-go:hover b { text-decoration: underline; text-underline-offset: 3px; }
