/* いくらナビ 共通。外のフォントや CDN は読まない */
:root {
  --bg: #f7f7f4;
  --card: #ffffff;
  --text: #1f2328;
  --muted: #5b6168;
  --line: #dcdcd6;
  --accent: #1b6e5a;
  --accent-soft: #e5f2ee;
  --accent-2: #8cc4b4;
  --warn-soft: #fff6dc;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
a { color: var(--accent); }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px 48px; }
.site-head { padding: 14px 0; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.site-head a { color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
h1 { font-size: 24px; line-height: 1.4; margin: 8px 0 12px; }
h2 { font-size: 20px; line-height: 1.4; margin: 36px 0 10px; }
h3 { font-size: 17px; margin: 20px 0 6px; }
p { margin: 0 0 12px; }
.lead { color: var(--muted); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 16px 0; }
label { display: block; font-weight: 700; margin: 12px 0 4px; }
.field { display: flex; align-items: center; gap: 8px; }
.field input {
  width: 100%; max-width: 220px; font-size: 20px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text);
}
.field input:focus { outline: 3px solid var(--accent-soft); border-color: var(--accent); }
.hint { font-size: 14px; color: var(--muted); margin: 4px 0 0; }
.fixed { font-size: 14px; background: var(--bg); border-radius: 8px; padding: 8px 12px; margin-top: 14px; }
.result { border-color: var(--accent); }
.result .label { font-weight: 700; margin: 0; }
.result .big { font-size: 34px; font-weight: 800; color: var(--accent); line-height: 1.3; margin: 2px 0 6px; }
.result .sub { font-size: 15px; color: var(--muted); }
.result + .result { margin-top: 12px; }
.parts { list-style: none; margin: 0 0 10px; padding: 0; font-size: 15px; }
.parts li { margin: 4px 0; display: flex; gap: 8px; align-items: baseline; }
.dot { flex: none; width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.dot.reform, .seg.reform { background: var(--accent); }
.dot.table, .seg.table { background: var(--accent-2); }
.bar { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: var(--line); margin: 10px 0 6px; }
.bar[hidden] { display: none; }
.seg { display: block; height: 100%; }
.hitokoto { font-size: 15px; margin: 0 0 8px; }
.small { font-size: 13px; }
h1 .h1-main, h1 .h1-sub { display: block; word-break: keep-all; overflow-wrap: anywhere; }
h1 .h1-sub { font-size: 0.72em; color: var(--muted); margin-top: 4px; }
details.mini { margin-top: 10px; font-size: 14px; }
details.mini summary { font-weight: 400; color: var(--accent); padding: 2px 0; }
details.mini label { font-size: 15px; }
.explain { margin-top: 32px; }
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--line); margin: 8px 0 12px; }
.tabs [role="tab"] {
  flex: 1; font: inherit; font-weight: 700; padding: 10px 8px; min-height: 44px; cursor: pointer;
  background: none; border: none; border-bottom: 3px solid transparent; margin-bottom: -2px; color: var(--muted);
}
.tabs [role="tab"][aria-selected="true"] { color: var(--accent); border-bottom-color: var(--accent); }
.tabs [role="tab"]:focus-visible, [role="tabpanel"]:focus-visible { outline: 3px solid var(--accent-soft); }
.easy dt { font-weight: 700; margin-top: 12px; }
.easy dd { margin: 2px 0 0; }
h4 { font-size: 16px; margin: 18px 0 6px; }
details.qa { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; margin: 8px 0; }
details.qa summary { padding: 8px 0; }
details.qa p { margin-top: 4px; }
.sources-box { margin-top: 24px; }
.note { background: var(--warn-soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0; }
th, td { border-bottom: 1px solid var(--line); padding: 6px 4px; text-align: right; vertical-align: top; }
td { white-space: nowrap; }
th { font-size: 13px; }
th:first-child, td:first-child { text-align: left; white-space: normal; }
.faq h3 { margin-top: 18px; }
.sources { font-size: 14px; padding-left: 20px; }
.sources li { margin: 4px 0; word-break: break-all; }
.tools { list-style: none; padding: 0; }
.tools a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; text-decoration: none; color: var(--text); }
.tools a strong { color: var(--accent); }
.site-foot { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 12px; font-size: 13px; color: var(--muted); }
@media (min-width: 600px) {
  h1 { font-size: 28px; }
}
fieldset.opt { border: none; border-top: 1px solid var(--line); margin: 12px 0 0; padding: 10px 0 0; min-width: 0; }
fieldset.opt legend { font-weight: 700; font-size: 15px; padding: 0; }
.choices { display: flex; gap: 20px; margin: 6px 0; }
.choices label, label.check { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; margin: 0; min-height: 44px; }
.sub-fields[hidden] { display: none; }
.sub-fields .field { flex-wrap: wrap; }
.sub-fields .field select { flex: 1 1 100%; }
.field select { font: inherit; font-size: 15px; padding: 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
#opts .field input { max-width: 140px; font-size: 18px; }
.counts { display: grid; gap: 6px; margin: 6px 0; }
.counts label { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 6px; font-weight: 400; margin: 0; }
.counts input { width: 72px; font-size: 18px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; text-align: right; }
.opt-summary { display: inline-block; font-size: 14px; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; margin: 0 0 8px; }
.opt-summary[hidden] { display: none; }
.note + .note { margin-top: 8px; }
.sub-legend { font-weight: 700; font-size: 15px; margin: 14px 0 4px; }
