/* せたがや 契約まる見え
   色の役割: --bar はグラフの大きさ、--accent は「いま見ているもの」と入口、--sky と --sun は絵の塗りだけ。
   グラフは1色で大きさだけを表し、色で種類を分けない。 */
:root {
  --bg: #dbe6ec; --bg-2: #cddbe3; --surface: #fff; --surface-2: #f3f7f9;
  --ink: #12213a; --ink-2: #44546b; --muted: #6b7a8f; --line: #c4d2db; --line-2: #e2eaef;
  --accent: #e2462c; --accent-ink: #b9321c; --sky: #86c9ec; --sun: #ffd447;
  --bar: #23508f; --bar-soft: #a9c2e0; --hot: #e2462c;
  --radius: 14px; --shadow: 0 1px 0 rgba(18, 33, 58, .06), 0 8px 24px -14px rgba(18, 33, 58, .35);
  --round: "Hiragino Maru Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  --body: "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  --cond: "Avenir Next Condensed", "Helvetica Neue Condensed", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1824; --bg-2: #142233; --surface: #182739; --surface-2: #1e3046;
    --ink: #e9f0f6; --ink-2: #b8c6d6; --muted: #8fa1b5; --line: #2f445b; --line-2: #25384d;
    --accent: #ff7a5c; --accent-ink: #ff9a82; --sky: #4e9fca; --sun: #e9bd3a;
    --bar: #7fb0ea; --bar-soft: #3b5f8b; --hot: #ff7a5c;
    --shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 10px 26px -16px rgba(0, 0, 0, .8);
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.75 var(--body); font-feature-settings: "palt"; }
a { color: inherit; text-underline-offset: .2em; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--round); line-height: 1.35; margin: 0; }
p { margin: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
small { font-size: .8em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--surface); padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }
.muted { color: var(--muted); }
.loading, .empty { color: var(--ink-2); padding: 28px 0; }
.ic { width: 1.1em; height: 1.1em; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
a .ic:last-child { margin-left: .2em; }

/* 絵の塗り */
.pict { width: 64px; height: 64px; stroke: var(--ink); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.pict .a, .brand-mark .a { fill: var(--accent); }
.pict .b { fill: var(--sky); }
.pict .y { fill: var(--sun); }
.pict .w, .brand-mark .w { fill: var(--surface); }
.pict .n, .brand-mark .n { fill: none; }
.pict .w2 { stroke-width: 3.4; }

/* ---- ヘッダー: 白い丸みのある帯 ---- */
.site-header { position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap; max-width: 1160px; margin: 10px auto 0; padding: 8px 14px 8px 18px; background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); width: calc(100% - 24px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; font-family: var(--round); font-weight: 700; }
.brand-small { font-size: 11px; letter-spacing: .2em; color: var(--ink-2); }
.brand-main { font-size: 17px; letter-spacing: .04em; }
.year-switch { display: flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 3px; margin-left: auto; }
.year-switch a { display: flex; align-items: baseline; gap: 2px; padding: 4px 11px; border-radius: 999px; text-decoration: none; font-family: var(--round); font-weight: 700; font-size: 14px; white-space: nowrap; color: var(--ink-2); }
.year-switch a small { font-size: 10px; font-weight: 400; }
.year-switch a[aria-current] { background: var(--ink); color: var(--surface); }
.year-switch a:hover:not([aria-current]) { background: var(--line-2); }
.site-nav { display: flex; gap: 2px; }
.site-nav a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-family: var(--round); font-weight: 700; font-size: 14px; white-space: nowrap; }
.site-nav a:hover { background: var(--surface-2); }
.site-nav a[aria-current] { color: var(--accent-ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 0; }
.nav-toggle { display: none; border: 0; background: var(--ink); color: var(--surface); border-radius: 999px; padding: 7px 14px; font: 700 13px var(--round); cursor: pointer; }
@media (max-width: 1080px) {
  .site-header { border-radius: 22px; }
  .nav-toggle { display: block; }
  .site-nav { display: none; flex-basis: 100%; flex-wrap: wrap; padding: 4px 0 6px; }
  .site-nav.open { display: flex; }
}
@media (max-width: 640px) {
  .year-switch { order: 3; flex-basis: 100%; justify-content: space-between; margin-left: 0; overflow-x: auto; }
  .nav-toggle { margin-left: auto; }
  .year-switch { scrollbar-width: none; }
  .year-switch a { padding: 4px 8px; font-size: 13px; }
  .year-switch a small:not(.part) { display: none; }
}

.page { max-width: 1120px; margin: 0 auto; padding: 28px 20px 72px; }
.block { margin-top: 56px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 36px; }
.two > div > .sec-head:first-child { margin-top: 0; }
@media (max-width: 860px) { .two { grid-template-columns: minmax(0, 1fr); } }

/* 章の見出し: ● 英字 ＋ 日本語 */
.sec-head { margin: 0 0 18px; }
.sec-en { font: 700 13px/1 var(--cond); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-ink); display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.sec-en::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.sec-head h2 { font-size: clamp(22px, 3.2vw, 30px); letter-spacing: .02em; }
.sec-lead { margin-top: 6px; color: var(--ink-2); font-size: 15px; max-width: 46em; }
.h3 { font-size: 18px; margin: 30px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.h3 small { font: 400 13px var(--body); color: var(--muted); }
.block > .h3:first-child, .two > div > .h3:first-child { margin-top: 0; }

/* ---- ホームの最初の画面 ---- */
.hero { position: relative; padding: 46px 0 8px; }
.hero-deco { position: absolute; inset: 0; pointer-events: none; }
.deco { position: absolute; animation: float 7s ease-in-out infinite; }
.deco .pict { width: 100%; height: 100%; }
.d1 { right: 4%; top: 6px; width: 92px; height: 92px; rotate: 8deg; }
.d2 { right: 22%; top: 34px; width: 64px; height: 64px; rotate: -10deg; animation-delay: -2s; }
.d3 { right: 9%; top: 150px; width: 104px; height: 104px; rotate: -6deg; animation-delay: -4s; }
.d4 { right: 29%; top: 170px; width: 58px; height: 58px; rotate: 12deg; animation-delay: -1s; }
.d5 { right: 1%; top: 290px; width: 66px; height: 66px; rotate: -12deg; animation-delay: -3s; }
.d6 { right: 19%; top: 270px; width: 78px; height: 78px; rotate: 6deg; animation-delay: -5s; }
.d7 { right: 36%; top: 40px; width: 48px; height: 48px; rotate: -4deg; animation-delay: -6s; }
.d8 { right: 38%; top: 290px; width: 54px; height: 54px; rotate: 9deg; animation-delay: -2.5s; }
@keyframes float { 50% { translate: 0 -9px; } }
@media (prefers-reduced-motion: reduce) { .deco { animation: none; } }
@media (max-width: 900px) { .d2, .d4, .d5, .d6, .d7, .d8 { display: none; } .d1 { width: 60px; height: 60px; } .d3 { top: 96px; width: 66px; height: 66px; right: 2%; } }
@media (max-width: 640px) { .hero { padding-top: 64px; } .d1 { top: 0; right: 4%; width: 58px; height: 58px; } .d3 { top: 4px; right: 26%; width: 50px; height: 50px; } }
.hero-eyebrow { position: relative; font: 700 14px var(--round); color: var(--ink-2); letter-spacing: .06em; display: flex; flex-wrap: wrap; gap: 0 1em; }
.hero-title { position: relative; margin: 14px 0 26px; font-size: clamp(27px, 5.2vw, 52px); letter-spacing: .03em; line-height: 1; }
.hero-title span { display: table; background: var(--surface); padding: .26em .42em .22em; margin-bottom: .2em; border-radius: 4px; }
.search { position: relative; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 6px 4px 16px; }
.search .ic { width: 22px; height: 22px; color: var(--ink-2); }
.search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; color: inherit; padding: 9px 4px; outline: none; }
.search:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.search.big { max-width: 640px; padding: 6px 6px 6px 20px; box-shadow: var(--shadow); }
.search.big input { font-size: 17px; padding: 11px 4px; }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 18px; font: 700 14px var(--round); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--ink); color: var(--surface); }
.btn.primary { background: var(--ink); color: var(--surface); padding: 11px 24px; font-size: 15px; }
.btn.primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.small { padding: 5px 13px; font-size: 13px; border-width: 1.5px; }
.more { margin-top: 18px; text-align: center; }
.more.left { text-align: left; margin: 0 0 14px; }

.entry { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 30px; }
.entry a { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0 10px; background: var(--surface); border-radius: var(--radius); padding: 14px 16px 14px 20px; text-decoration: none; box-shadow: var(--shadow); transition: translate .15s; }
.entry a:hover { translate: 0 -3px; }
.entry small { grid-column: 1; color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
.entry b { grid-column: 1; font: 700 26px/1.25 var(--round); letter-spacing: .05em; }
.go { grid-column: 2; grid-row: 1 / span 2; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.go .ic { margin: 0; }
@media (max-width: 720px) { .entry { grid-template-columns: 1fr; } }

.notice { margin-top: 22px; background: color-mix(in srgb, var(--sun) 28%, var(--surface)); border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; }
.notice b { font-family: var(--round); }
.notice ul { list-style: disc; padding-left: 1.3em; margin-top: 2px; }
.notice.plain { background: var(--surface); margin-top: 36px; }
.notice p { margin-top: 6px; }
.notice .flags { list-style: none; padding: 0; }
.notice .flags li { margin-top: 8px; }
.notice .flags b { display: inline-block; margin-right: .6em; border: 1.5px solid var(--ink); border-radius: 4px; padding: 0 6px; font-size: 13px; }
.words { display: flex; flex-wrap: wrap; gap: 6px; list-style: none !important; padding: 0 !important; margin-top: 10px !important; }
.words li { background: var(--surface-2); border-radius: 6px; padding: 1px 9px; font-size: 13.5px; }
.words small { margin-left: 5px; color: var(--muted); }

/* 数字のタイル */
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; }
.tiles li { background: var(--surface); border-radius: var(--radius); padding: 16px 16px 14px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.tiles li.accent { background: var(--ink); color: var(--surface); }
.tiles li.accent > small { color: color-mix(in srgb, var(--surface) 78%, var(--ink)); }
.tiles p { font: 700 13.5px var(--round); }
.tiles li > small { color: var(--ink-2); font-size: 12px; line-height: 1.5; margin-top: auto; padding-top: 6px; }
.bignum { display: inline-flex; align-items: baseline; gap: 3px; white-space: nowrap; }
.bignum b { font: 700 40px/1.15 var(--cond); letter-spacing: .01em; }
.bignum small { font: 700 14px var(--round); }
.bignum.xl b { font-size: clamp(44px, 8vw, 68px); }
.bignum.xl small { font-size: 20px; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tiles, .tiles.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .bignum b { font-size: 32px; } .tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---- 分野の図鑑カード ---- */
.zukan { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 14px; }
.zcard { position: relative; display: flex; flex-direction: column; align-items: center; height: 100%; background: var(--surface); border-radius: 10px; padding: 14px 14px 14px; text-decoration: none; text-align: center; box-shadow: var(--shadow); transition: translate .15s, box-shadow .15s; }
.zcard:hover { translate: 0 -4px; box-shadow: 0 0 0 2px var(--ink), var(--shadow); }
.z-no { align-self: flex-start; font: 700 12px/1 var(--cond); letter-spacing: .04em; color: var(--ink-2); }
.z-no b { font-size: 22px; color: var(--ink); margin-left: 1px; }
.z-side { position: absolute; right: 9px; top: 14px; writing-mode: vertical-rl; font: 600 10px/1 var(--cond); letter-spacing: .14em; color: var(--muted); }
.zcard .pict { width: 86px; height: 86px; margin: 2px 0 6px; }
.z-en { font: 700 27px/1 var(--cond); letter-spacing: .02em; }
.z-name { font: 700 15px/1.4 var(--round); margin-top: 3px; }
.z-lead { font-size: 12px; line-height: 1.5; color: var(--ink-2); margin-top: 4px; min-height: 3em; }
.z-bar { width: 100%; height: 6px; background: var(--line-2); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.z-bar i { display: block; height: 100%; width: max(3px, calc(var(--v) * 100%)); background: var(--bar); border-radius: 0 3px 3px 0; }
.z-num { display: flex; justify-content: space-between; align-items: baseline; width: 100%; margin-top: 5px; }
.z-num b { font: 700 19px/1.2 var(--cond); }
.z-num small { color: var(--ink-2); font-size: 12px; }
@media (max-width: 480px) { .zukan { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .zcard .pict { width: 64px; height: 64px; } .z-en { font-size: 21px; } }

/* ---- よこの棒 ---- */
.bars li + li { margin-top: 2px; }
.bar-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 4.6em; grid-template-areas: "no name val" "no track track"; gap: 2px 10px; align-items: baseline; padding: 7px 10px; border-radius: 10px; text-decoration: none; }
.bar-row:hover { background: var(--surface); }
.bar-no { grid-area: no; align-self: center; width: 1.5em; font: 700 20px/1 var(--cond); color: var(--muted); text-align: right; }
.bar-name { grid-area: name; font-weight: 700; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.bar-name small { font-weight: 400; color: var(--ink-2); margin-left: 8px; white-space: nowrap; }
.bar-val { grid-area: val; text-align: right; font: 700 17px/1.2 var(--cond); white-space: nowrap; }
.bar-track { grid-area: track; height: 9px; background: var(--line-2); border-radius: 0 4px 4px 0; }
.bar-track i { display: block; height: 100%; width: max(2px, calc(var(--v) * 100%)); background: var(--bar); border-radius: 0 4px 4px 0; }
.bar-row:hover .bar-track i { background: var(--hot); }
.bars.wide .bar-row { background: var(--surface); margin-bottom: 4px; padding: 10px 14px; }
.bars.wide .bar-row:hover { box-shadow: 0 0 0 2px var(--ink); }

/* ---- たての棒 ---- */
.cols { position: relative; padding: 22px 0 0 0; }
.cols-grid { position: absolute; left: 0; right: 0; top: 22px; height: var(--h); }
.cols-grid span { position: absolute; left: 0; right: 0; bottom: calc(var(--t) * 100%); border-top: 1px solid var(--line); }
.cols-grid span:last-child { border-color: var(--ink-2); }
.cols-grid i { position: absolute; right: 0; bottom: 2px; font: 400 11px/1 var(--body); color: var(--muted); font-style: normal; }
.cols-bars { position: relative; display: flex; gap: 2px; padding-right: 3.2em; }
.col { flex: 1; min-width: 0; display: grid; grid-template-rows: var(--h) auto; text-decoration: none; border-radius: 6px; position: relative; }
.col-stack { grid-row: 1; height: var(--h); display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.col-bar { width: min(62%, 54px); height: max(calc(var(--v) * var(--h)), 2px); background: var(--bar); border-radius: 4px 4px 0 0; flex: none; }
.col-val { font: 700 14px/1 var(--cond); white-space: nowrap; padding-bottom: 4px; display: none; }
.cols.few .col-val { display: block; }
.col.hot .col-bar { background: var(--hot); }
.col.hatch .col-bar { background: repeating-linear-gradient(135deg, var(--bar) 0 5px, var(--bar-soft) 5px 9px); }
.col.hatch.hot .col-bar { background: repeating-linear-gradient(135deg, var(--hot) 0 5px, color-mix(in srgb, var(--hot) 45%, var(--surface)) 5px 9px); }
.col:hover .col-bar, .col:focus-visible .col-bar { filter: brightness(1.15); }
.col-label { grid-row: 2; text-align: center; font: 700 12.5px/1.3 var(--round); padding-top: 6px; overflow-wrap: anywhere; }
.col-label small { display: block; font: 400 10.5px/1.3 var(--body); color: var(--muted); }
.col.hot .col-label { color: var(--accent-ink); }
.fig-note { font-size: 13px; color: var(--ink-2); margin-top: 10px; }
.hatch-key { display: inline-block; width: 22px; height: 11px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; background: repeating-linear-gradient(135deg, var(--bar) 0 5px, var(--bar-soft) 5px 9px); }

.twin { margin-top: 10px; font-size: 14px; }
.twin summary { cursor: pointer; color: var(--ink-2); font-weight: 700; width: fit-content; }
.table-wrap { overflow-x: auto; margin-top: 8px; background: var(--surface); border-radius: 10px; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
thead th { font: 700 12.5px var(--round); color: var(--ink-2); white-space: nowrap; background: var(--surface-2); }
tbody th { font-weight: 700; white-space: nowrap; }
.r { text-align: right; white-space: nowrap; }
tr.me { background: color-mix(in srgb, var(--sun) 24%, var(--surface)); }

/* ---- 契約の一覧 ---- */
.clist li + li { margin-top: 6px; }
.crow { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main amt" "meta amt"; gap: 4px 16px; align-items: center; background: var(--surface); border-radius: 10px; padding: 12px 16px; text-decoration: none; border-left: 5px solid transparent; }
.crow:hover { border-left-color: var(--accent); box-shadow: var(--shadow); }
.crow-main { grid-area: main; min-width: 0; }
.crow-main b { display: block; font: 700 15.5px/1.5 var(--round); overflow-wrap: anywhere; }
.crow-v { display: block; font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.crow-meta { grid-area: meta; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12.5px; color: var(--ink-2); }
.crow-amt { grid-area: amt; text-align: right; white-space: nowrap; }
.crow-amt b { font: 700 25px/1 var(--cond); }
.crow-amt small { font: 700 12px var(--round); margin-left: 2px; }
.crow-amt.delta b { font-size: 20px; }
.clist.compact .crow { padding: 9px 14px; }
.clist.compact .crow-main b { font-size: 14.5px; }
.clist.compact .crow-amt b { font-size: 21px; }
.chip { font-style: normal; font: 700 11.5px/1.5 var(--round); background: var(--ink); color: var(--surface); border-radius: 4px; padding: 1px 7px; white-space: nowrap; }
.tag { font-style: normal; font-size: 11.5px; line-height: 1.5; border: 1px solid var(--ink-2); color: var(--ink-2); border-radius: 4px; padding: 0 6px; white-space: nowrap; }
@media (max-width: 560px) { .crow { grid-template-columns: 1fr; grid-template-areas: "main" "meta" "amt"; } .crow-amt { text-align: left; margin-top: 2px; } }

/* さがす */
.filters { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; background: var(--surface); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.filters .search { flex: 1 1 320px; }
.filters label { display: flex; flex-direction: column; font: 700 12px var(--round); color: var(--ink-2); gap: 3px; }
.filters select { font: 14px var(--body); color: var(--ink); background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 8px; max-width: 13em; }
.result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 20px 0 10px; font-size: 15px; }
.result-head b { font: 700 22px/1 var(--cond); }
.active-filter { margin-top: 12px; font-size: 14.5px; }
.active-filter a { margin-left: 10px; font-size: 13px; }

/* パンくず・分野と会社の見出し */
.crumb { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13px; color: var(--ink-2); margin-bottom: 14px; }
.crumb a::after { content: "›"; margin: 0 6px; display: inline-block; text-decoration: none; }
.fhead { display: flex; align-items: center; gap: 20px; background: var(--surface); border-radius: 18px; padding: 20px 26px; box-shadow: var(--shadow); }
.fhead-pict { flex: none; background: var(--bg); border-radius: 50%; padding: 12px; display: grid; }
.fhead-pict .pict { width: 96px; height: 96px; }
.fhead-en { font: 700 15px/1 var(--cond); letter-spacing: .16em; color: var(--accent-ink); text-transform: uppercase; }
.fhead h1, .chead h1 { font-size: clamp(26px, 4.4vw, 40px); margin: 4px 0; overflow-wrap: anywhere; }
.lead { color: var(--ink-2); font-size: 15px; }
.chead { background: var(--surface); border-radius: 18px; padding: 22px 26px; box-shadow: var(--shadow); }
@media (max-width: 560px) { .fhead { flex-direction: column; align-items: flex-start; gap: 10px; } .fhead-pict .pict { width: 64px; height: 64px; } }

/* ---- 契約1件 ---- */
.contract { background: var(--surface); border-radius: 18px; padding: 26px 28px 22px; box-shadow: var(--shadow); }
.khead-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.khead h1 { font-size: clamp(20px, 3.2vw, 30px); margin: 10px 0 8px; overflow-wrap: anywhere; }
.khead-v { font: 700 17px var(--round); }
.khead-v small { display: block; font: 400 13px var(--body); color: var(--muted); }
.khead-amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; }
.raw { color: var(--muted); font-size: 14px; }
.period { margin-top: 20px; }
.period-track { position: relative; display: grid; grid-template-columns: repeat(var(--n), 1fr); height: 44px; }
.period-track span { border-left: 1.5px solid var(--line); position: relative; }
.period-track span:last-of-type { border-right: 1.5px solid var(--line); }
.period-track small { position: absolute; left: 6px; top: 0; font-size: 11px; color: var(--muted); white-space: nowrap; }
.period-bar { position: absolute; left: var(--l); right: var(--r); bottom: 4px; height: 14px; min-width: 6px; background: var(--bar); border-radius: 7px; }
.period-text { margin-top: 6px; font-size: 14.5px; }
.period-text span { color: var(--ink-2); margin-left: 6px; }
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; margin: 18px 0 0; }
.kv div { display: grid; grid-template-columns: 6.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.kv dt { font: 700 13px var(--round); color: var(--ink-2); padding-top: 2px; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv dd small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
@media (max-width: 720px) { .kv { grid-template-columns: 1fr; } .contract { padding: 20px 18px; } }
.contract .notice.plain { background: var(--surface-2); margin-top: 18px; }
.source { display: flex; gap: 10px; margin-top: 18px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 12px; font-weight: 700; }
.source .ic { width: 24px; height: 24px; margin-top: 2px; }
.source small { display: block; font-weight: 400; color: var(--ink-2); font-size: 12.5px; }
.changes { margin: 16px 0 6px; display: grid; gap: 6px; }
.changes li { background: var(--surface); border-radius: 10px; padding: 9px 14px; font-size: 14.5px; }
.changes b { font-family: var(--round); margin-right: .8em; }
table.hist td, table.hist th { vertical-align: middle; }
table.hist .tag { margin-left: 8px; }

/* 分野ごとの小さなグラフ */
.minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.minis a { display: grid; gap: 4px; background: var(--surface); border-radius: 12px; padding: 12px 14px; text-decoration: none; }
.minis a:hover { box-shadow: 0 0 0 2px var(--ink); }
.mini-name { display: flex; align-items: center; gap: 6px; font: 700 14px var(--round); }
.mini-name .pict { width: 28px; height: 28px; stroke-width: 3; }
.mini-bars { display: flex; align-items: flex-end; gap: 2px; height: 64px; border-bottom: 1.5px solid var(--ink-2); margin-top: 4px; }
.mini-bars i { flex: 1; height: max(2px, calc(var(--v) * 100%)); background: var(--bar); border-radius: 3px 3px 0 0; }
.mini-bars i.hatch { background: repeating-linear-gradient(135deg, var(--bar) 0 4px, var(--bar-soft) 4px 7px); }
.mini-bars i.hot { background: var(--hot); }
.mini-bars i.hot.hatch { background: repeating-linear-gradient(135deg, var(--hot) 0 4px, color-mix(in srgb, var(--hot) 45%, var(--surface)) 4px 7px); }
.mini-x { display: flex; gap: 2px; }
.mini-x small { flex: 1; text-align: center; font-size: 10.5px; color: var(--muted); }
.mini-val { font: 700 18px/1.2 var(--cond); }
.mini-val small { font: 400 11px var(--body); color: var(--muted); margin-left: 5px; }

/* のっている範囲の図 */
.scope { font-size: 14px; }
.scope-all, .scope-zui { border: 2px dashed var(--ink-2); border-radius: 16px; padding: 30px 14px 14px; position: relative; display: grid; gap: 10px; }
.scope-zui { border-style: solid; border-color: var(--ink); background: color-mix(in srgb, var(--surface) 55%, transparent); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.scope-cap { position: absolute; left: 14px; top: 5px; font: 700 13px var(--round); }
.scope-out, .scope-in { border-radius: 10px; padding: 10px 14px; display: grid; }
.scope-out { background: var(--bg-2); color: var(--ink-2); }
.scope-out small, .scope-in small { font-size: 12.5px; }
.scope-in { background: var(--accent); color: #fff; }
.scope-in b { font: 700 17px var(--round); }
@media (prefers-color-scheme: dark) { .scope-in { color: #1a0d09; } }
@media (max-width: 720px) { .scope-zui { grid-template-columns: 1fr; } }

.about .plain, ul.plain { list-style: disc; padding-left: 1.4em; display: grid; gap: 6px; max-width: 58em; }
.about .block { margin-top: 40px; }
.about .block > p { max-width: 58em; }
.gloss { display: grid; gap: 0; margin: 0; max-width: 58em; }
.gloss div { display: grid; grid-template-columns: 11em 1fr; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); }
.gloss dt { font: 700 15px var(--round); }
.gloss dd { margin: 0; }
@media (max-width: 620px) { .gloss div { grid-template-columns: 1fr; gap: 0; } }

.site-footer { background: var(--ink); color: color-mix(in srgb, var(--surface) 86%, var(--ink)); padding: 30px 20px 40px; font-size: 13.5px; }
.site-footer p { max-width: 1080px; margin: 0 auto 6px; }
.site-footer .muted { color: color-mix(in srgb, var(--surface) 62%, var(--ink)); }
@media (prefers-color-scheme: dark) { .site-footer { background: #070d14; color: var(--ink-2); } .site-footer .muted { color: var(--muted); } }

.tooltip { position: fixed; z-index: 60; max-width: 300px; background: var(--ink); color: var(--surface); border-radius: 8px; padding: 8px 12px; font-size: 13px; line-height: 1.5; pointer-events: none; box-shadow: var(--shadow); }
.tooltip strong, .tooltip span { display: block; }
.tooltip[hidden] { display: none; }

/* ---- 決め方の札・金額の記載がない契約 ---- */
.tag.how { font-weight: 700; color: var(--ink); border-color: var(--ink); }
.tag.how-z { font-weight: 400; color: var(--ink-2); border-color: var(--line); }
.tag.won { background: var(--hot); border-color: var(--hot); color: #fff; font-weight: 700; margin-left: 8px; }
.crow-amt .na { font: 700 13px/1.3 var(--round); color: var(--ink-2); }
.crow-amt .est { display: block; font: 400 12px/1.4 var(--body); color: var(--ink-2); margin: 0; }
.khead-amt.none { align-items: center; }
.na-big { font: 700 22px/1.3 var(--round); color: var(--ink-2); border: 2px dashed var(--line); border-radius: 10px; padding: 6px 14px; }
.na-big small { margin-left: 8px; font-size: 13px; font-weight: 400; }
.khead-amt.none .raw b { color: var(--ink); font: 700 18px var(--round); }
.result-head small { color: var(--ink-2); margin-left: 6px; }

/* ---- 年度の棒: あとから公表がはじまった資料の分（白ぬき） ---- */
.col-bar.late { background: var(--surface); border: 2px solid var(--bar); margin-bottom: 2px; border-radius: 4px 4px 0 0; min-height: 5px; }
.col-bar.late + .col-bar { border-radius: 0; }
.col.hot .col-bar.late, .col.hatch.hot .col-bar.late { background: var(--surface); border-color: var(--hot); }
.col.hatch .col-bar.late { background: var(--surface); }
.late-key { display: inline-block; width: 22px; height: 11px; margin-right: 6px; vertical-align: -1px; border-radius: 2px; border: 2px solid var(--bar); background: var(--surface); }

/* ---- のっている範囲の図（決め方ごと） ---- */
.cover { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 14px; }
.cover section { border: 2px solid var(--ink); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: color-mix(in srgb, var(--surface) 55%, transparent); }
.cover h3 { display: grid; gap: 1px; }
.cover h3 b { font: 700 20px var(--round); }
.cover h3 small { font: 400 12.5px/1.5 var(--body); color: var(--ink-2); }
.cover .scope-in { text-decoration: none; transition: translate .15s; }
.cover .scope-in:hover { translate: 0 -2px; box-shadow: var(--shadow); }
.cover .scope-in b { font-size: 16px; line-height: 1.4; }
.cover .scope-out.wide { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.cover .scope-out a { color: inherit; }
@media (max-width: 760px) { .cover { grid-template-columns: 1fr; } }

/* ---- 契約のページ: 理由・落札率・見積の比較 ---- */
.reason { margin-top: 18px; }
.reason h2 { font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.reason h2 small { font: 400 12.5px var(--body); color: var(--muted); }
.reason blockquote { margin: 8px 0 0; padding: 12px 16px; border-left: 5px solid var(--accent); background: var(--surface-2); border-radius: 0 10px 10px 0; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.meter { display: inline-block; vertical-align: middle; width: 120px; height: 9px; margin-left: 12px; background: var(--line-2); border-radius: 5px; overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 100%); background: var(--bar); }
.bids { display: grid; gap: 4px; }
.bids li { display: grid; grid-template-columns: 1.8em minmax(0, 1fr) 5.2em; grid-template-areas: "no name val" "no track track"; gap: 2px 10px; align-items: baseline; background: var(--surface); border-radius: 10px; padding: 8px 14px; }
.bid-no { grid-area: no; align-self: center; font: 700 20px/1 var(--cond); color: var(--muted); text-align: right; }
.bid-name { grid-area: name; font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; }
.bids .bar-track { grid-area: track; }
.bids .bar-val { grid-area: val; }
.bids li.won { box-shadow: inset 0 0 0 2px var(--ink); }
.bids li.won .bar-track i { background: var(--hot); }
.bids li.won .bid-no { color: var(--ink); }
ol.plain.num { list-style: decimal; padding-left: 1.6em; display: grid; gap: 6px; max-width: 58em; margin-top: 10px; }
.about .block > p + .table-wrap, .about .cover + .table-wrap { margin-top: 14px; }
.about .table-wrap + ul.plain { margin-top: 14px; }

/* ==== 2026-10-02 レビュー21件への対応 ==== */
mark { background: color-mix(in srgb, var(--sun) 70%, transparent); color: inherit; border-radius: 2px; padding: 0 1px; }
code { font: 13px ui-monospace, Menlo, monospace; background: var(--surface-2); border-radius: 4px; padding: 0 4px; }
.why { font-size: 12.5px; font-weight: 700; color: var(--accent-ink); white-space: nowrap; margin-left: 4px; }
.split { font-weight: 700; color: var(--ink); display: block; }
.bignum.na b { color: var(--muted); }

/* 年度の切りかえ: 契約のページで、同じ件名の契約が無い年度 */
.year-switch .off { display: flex; align-items: baseline; gap: 2px; padding: 4px 11px; border-radius: 999px; font: 700 14px var(--round); white-space: nowrap; color: var(--muted); opacity: .65; cursor: default; }
.year-switch .off small { font-size: 10px; font-weight: 400; }

/* 一覧の行: 金額が何の期間の額か、どこに一致したか */
.crow-amt .basis { display: block; margin: 3px 0 0; font: 400 11.5px/1.4 var(--body); color: var(--ink-2); }
.crow-amt .basis.long, .basis-big.long { color: var(--accent-ink); font-weight: 700; }
.basis-big { margin-left: 10px; font: 700 13px var(--round); color: var(--ink-2); border: 1.5px solid currentColor; border-radius: 4px; padding: 0 7px; white-space: nowrap; }
.crow-hit { display: block; margin-top: 3px; font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.tag.warn { border-color: var(--accent-ink); color: var(--accent-ink); font-weight: 700; }
.tag.link { background: var(--bar); border-color: var(--bar); color: var(--surface); font-weight: 700; }
.cond { display: block; margin-top: 3px; font-size: 13.5px; color: var(--accent-ink); font-weight: 700; }

/* 場所・対象の札 */
.pchips { display: flex; flex-wrap: wrap; gap: 8px; }
.pchips a, .pchip { display: inline-flex; align-items: baseline; gap: 6px; background: var(--surface); border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 14px; font: 700 14px var(--round); text-decoration: none; }
.pchips a:hover, .pchip:hover { background: var(--ink); color: var(--surface); }
.pchips small { font: 400 12px var(--body); }
.pchip { padding: 1px 10px; font-size: 13px; margin: 0 6px 4px 0; }

/* ホーム: 疑問から入る入口 */
.near { display: flex; gap: 16px; align-items: center; background: var(--surface); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.near > .pict { flex: none; width: 72px; height: 72px; }
.near form { flex: 1; min-width: 0; display: grid; gap: 8px; }
.near label b { display: block; font: 700 19px var(--round); }
.near label small { color: var(--ink-2); font-size: 12.5px; }
.near .search { max-width: 560px; }
.asks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.asks a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; height: 100%; background: var(--surface); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; transition: translate .15s; }
.asks a:hover { translate: 0 -3px; box-shadow: var(--shadow); }
.asks .pict { width: 44px; height: 44px; stroke-width: 2.6; }
.asks b { display: block; font: 700 15px/1.45 var(--round); }
.asks small { color: var(--ink-2); font-size: 12.5px; }
.asks .go { grid-column: auto; grid-row: auto; width: 30px; height: 30px; }
@media (max-width: 900px) { .asks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .asks { grid-template-columns: 1fr; } .near { flex-direction: column; align-items: flex-start; } .near > .pict { width: 48px; height: 48px; } }

/* さがす: いまの条件と、0件のとき */
.active { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 13.5px; color: var(--ink-2); }
.active:empty { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 3px 6px 3px 12px; font: 700 13px var(--round); cursor: pointer; }
.fchip i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-size: 12px; line-height: 1; }
.fchip:hover { background: var(--ink); color: var(--surface); }
.fchip:hover i { background: var(--surface); color: var(--ink); }
.fchip.all { padding: 3px 12px; border-style: dashed; }
.empty-box { background: var(--surface); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px; }
.empty-box ul { display: grid; gap: 8px; }

/* お知らせの箱の種類 */
.notice.unknown { background: var(--surface); border: 2px dashed var(--ink-2); margin: 18px 0 0; }
.notice.rel { background: var(--surface); border-left: 5px solid var(--bar); }
.notice.rel ul { list-style: none; padding: 0; display: grid; gap: 6px; }
.notice.rel small { display: block; color: var(--ink-2); }
.notice.tight { margin-top: 0; margin-bottom: 14px; }
.chg-key { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); vertical-align: 0; }

/* もっとくわしく知りたいとき */
.ask-box { background: var(--surface); border-radius: 18px; padding: 22px 26px; box-shadow: var(--shadow); }
.ask-box h2 { font-size: 20px; }
.ask-box > p { margin-top: 6px; color: var(--ink-2); font-size: 15px; }
.ask-box ol { list-style: decimal; padding-left: 1.5em; margin-top: 12px; display: grid; gap: 10px; font-size: 14.5px; }
.ask-box li b { display: block; font: 700 15.5px var(--round); }
.tell { margin-top: 16px; background: var(--surface-2); border-radius: 12px; padding: 14px 16px; }
.tell b { font: 700 14px var(--round); }
.tell pre { margin: 8px 0 10px; white-space: pre-wrap; overflow-wrap: anywhere; font: 13.5px/1.7 var(--body); background: var(--surface); border-radius: 8px; padding: 10px 12px; }
.copied { margin-left: 10px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 720px) { .ask-box { padding: 18px; } }

/* 契約の履歴の表: 変わったところの印と、せまい画面でのカード */
table.hist td.chg { box-shadow: inset 4px 0 0 var(--accent); font-weight: 700; }
table.hist th .tag { display: inline-block; margin: 0 0 0 8px; }
table.spell th { white-space: normal; font-weight: 400; overflow-wrap: anywhere; }
@media (max-width: 700px) {
  table.cards, table.cards tbody { display: block; }
  table.cards thead { display: none; }
  table.cards tr { display: block; padding: 12px 14px; border-bottom: 8px solid var(--bg); }
  table.cards tr:last-child { border-bottom: 0; }
  table.cards th[scope="row"] { display: block; border: 0; padding: 0 0 6px; font: 700 17px var(--round); white-space: normal; }
  table.cards td, table.cards td.r { display: grid; grid-template-columns: 7.2em minmax(0, 1fr); gap: 10px; border: 0; padding: 3px 0; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  table.cards td::before { content: attr(data-l); font: 700 12px/1.9 var(--round); color: var(--ink-2); }
  table.hist td.chg { box-shadow: none; }
  table.hist td.chg::before { content: "● " attr(data-l); color: var(--accent-ink); }
}

/* 年度でくらべる: 章へのジャンプ、まとめ、分野の小さなグラフ */
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; position: sticky; top: 66px; z-index: 5; background: color-mix(in srgb, var(--bg) 92%, transparent); padding: 8px 0; backdrop-filter: blur(4px); }
.jump a { border: 1.5px solid var(--ink); background: var(--surface); border-radius: 999px; padding: 4px 12px; font: 700 13px var(--round); text-decoration: none; white-space: nowrap; }
.jump a:hover { background: var(--ink); color: var(--surface); }
@media (max-width: 640px) { .jump { top: 104px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -20px; padding-right: 20px; } }
.summary { background: var(--ink); color: var(--surface); border-radius: var(--radius); padding: 16px 20px; font-size: 15px; }
.summary > b { font: 700 16px var(--round); }
.summary ul { list-style: disc; padding-left: 1.3em; margin-top: 6px; display: grid; gap: 4px; }
.summary li b { font: 700 20px var(--cond); margin: 0 2px; }
.summary a { color: inherit; }
@media (prefers-color-scheme: dark) { .summary { background: var(--surface); color: var(--ink); } }
[id^="t-"]:focus, .about [id]:focus, #app:focus, #zukan:focus, #askbox:focus { outline: none; }
[id^="t-"], .about .h3[id], #askbox, #zukan, #ask { scroll-margin-top: 130px; }
.minis { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.minis li { display: grid; gap: 8px; align-content: start; background: var(--surface); border-radius: 12px; padding: 12px 14px; }
.minis a { display: inline; background: none; border-radius: 0; padding: 0; }
.minis a:hover { box-shadow: none; }
.minis a.mini-name { display: flex; align-items: center; gap: 6px; font: 700 14.5px var(--round); text-decoration: none; }
.minis a.mini-name:hover { text-decoration: underline; }
.mini-bars { height: auto; border-bottom: 0; gap: 4px; margin-top: 0; }
.mini-col { flex: 1; min-width: 0; display: grid; grid-template-rows: 64px auto auto; justify-items: center; border-radius: 6px; cursor: default; }
.mini-col i { align-self: end; width: 100%; height: max(2px, calc(var(--v) * 64px)); flex: none; }
.mini-col b { width: 100%; text-align: center; border-top: 1.5px solid var(--ink-2); padding-top: 3px; font: 700 12.5px/1.2 var(--cond); white-space: nowrap; }
.mini-col small { font-size: 10px; color: var(--muted); white-space: nowrap; }
.mini-col:hover i, .mini-col:focus-visible i { filter: brightness(1.2); }
.mini-late { font-size: 12px; line-height: 1.5; color: var(--ink-2); border-top: 1px dashed var(--line); padding-top: 6px; }
.minis-more { margin-top: 12px; }
.minis-more > summary { cursor: pointer; font: 700 14px var(--round); width: fit-content; border: 1.5px solid var(--ink); border-radius: 999px; padding: 5px 14px; background: var(--surface); list-style: none; }
.minis-more > summary::-webkit-details-marker { display: none; }
.minis-more[open] > summary { margin-bottom: 12px; }

/* サイトについて: 目次 */
.toc { background: var(--surface); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.toc > b { font: 700 15px var(--round); }
.toc ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: 10px; }
.toc a { display: grid; height: 100%; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 12px; text-decoration: none; }
.toc a:hover { border-color: var(--ink); }
.toc a span { font: 700 14.5px var(--round); }
.toc a small { color: var(--ink-2); font-size: 12px; }
