/* 高収入ネット「時給データ室」 — データ報道型。深緑・黒地のカード・金の数字。金は黒地の上だけで使う */
:root {
  --green: #0F3D33; --green-2: #16503F; --ink: #15201C; --ink-2: #3D4A45; --muted: #55625D;
  --paper: #F4F5F2; --card: #FFFFFF; --line: #D6DBD7; --black: #111614; --black-2: #1C2421;
  --gold: #C9A227; --gold-soft: #E3C86A; --on-dark: #EEF2EF; --on-dark-2: #B9C4BF;
  --mono: ui-monospace, "SF Mono", "Roboto Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --r: 6px; --gap: 16px; --max: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.8 var(--sans); }
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: var(--green-2); }
img, svg { max-width: 100%; height: auto; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--green); padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gap); }
.muted { color: var(--muted); }
.note, .src { color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ヘッダー */
.top { background: var(--green); color: var(--on-dark); }
.top__in { max-width: var(--max); margin: 0 auto; padding: 10px var(--gap); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--on-dark); text-decoration: none; min-height: 44px; margin-right: auto; }
.logo__name { font-weight: 800; font-size: 18px; letter-spacing: .02em; }
.logo__sub { font-size: 12px; color: var(--on-dark-2); border-left: 1px solid rgba(255,255,255,.3); padding-left: 10px; }
.menu { display: none; background: transparent; color: var(--on-dark); border: 1px solid rgba(255,255,255,.45); border-radius: var(--r); min-height: 44px; padding: 0 14px; font: inherit; font-size: 14px; cursor: pointer; }
.gnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.gnav a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--on-dark); text-decoration: none; font-size: 14px; border-radius: var(--r); }
.gnav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.ticker { background: var(--black); border-top: 1px solid rgba(255,255,255,.08); }
.ticker__in { max-width: var(--max); margin: 0 auto; padding: 6px var(--gap); display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-2); }
.ticker b { color: var(--gold); font-weight: 700; }
.ticker__date { color: var(--on-dark); }

/* ヒーロー（黒地のカード） */
.hero { background: linear-gradient(180deg, var(--green) 0, var(--green) 40%, var(--paper) 40%); padding: 24px 0 8px; }
.hero .wrap { background: var(--black); color: var(--on-dark); border-radius: 10px; padding: 28px 24px 24px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.hero__title { font-size: 15px; font-weight: 600; color: var(--on-dark-2); margin: 0 0 14px; line-height: 1.5; }
.hero__label { margin: 0; font-size: 14px; color: var(--on-dark); }
.hero__value { margin: 0; line-height: 1.1; }
.hero__value .num { font-size: clamp(56px, 13vw, 112px); font-weight: 700; color: var(--gold); }
.hero__value small { font-size: 22px; color: var(--gold-soft); margin-left: 6px; }
.hero__src { margin: 8px 0 0; font-size: 13px; color: var(--on-dark-2); }
.hero__answer { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: 15px; color: var(--on-dark); }
.figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
.fig { background: var(--black-2); border-radius: var(--r); padding: 12px; margin: 0; }
.fig__label { font-size: 12px; color: var(--on-dark-2); }
.fig__value { margin: 2px 0 0; }
.fig__value .num { font-size: 26px; font-weight: 700; color: var(--gold); }
.fig__value small { font-size: 13px; color: var(--gold-soft); margin-left: 2px; }
.fig__note { margin: 0; font-size: 12px; color: var(--on-dark-2); }
.figs--light { margin: 8px 0 24px; }

/* 本文ブロック */
.page { padding: 8px var(--gap) 48px; }
.page--narrow { max-width: 820px; }
.block { margin: 40px 0 0; }
.block > h2, .prose h2 { font-size: 22px; line-height: 1.45; margin: 0 0 14px; padding-left: 12px; border-left: 6px solid var(--green); }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose thead th { background: #E7ECE9; }
.prose blockquote { margin: 16px 0; padding: 12px 16px; background: var(--card); border-left: 4px solid var(--line); }
.head { margin: 24px 0 8px; }
.head h1 { font-size: clamp(24px, 4.5vw, 32px); line-height: 1.4; margin: 0 0 8px; }
.head__cat { margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--green); }
.lead { font-size: 16px; margin: 0 0 6px; }
.updated { margin-top: 40px; color: var(--muted); font-size: 13px; }
.more { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.more::after { content: "→"; margin-left: 6px; }

/* グラフ */
.chart { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 12px 10px; }
.chart svg { display: block; width: 100%; }
.chart .grid { stroke: #E3E7E4; stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 12px var(--mono); }
.chart .val { fill: var(--ink); font: 700 12px var(--mono); }
.chart .bar { fill: var(--green); }
.chart .bar--med { fill: var(--gold); stroke: #8A6D12; stroke-width: 1; }
.chart .line { fill: none; stroke: var(--green); stroke-width: 3; stroke-linejoin: round; }
.chart .dot { fill: var(--gold); stroke: var(--green); stroke-width: 2; }
.chart figcaption { font-size: 13px; color: var(--muted); margin-top: 6px; }
.chart__data { margin-top: 8px; font-size: 14px; }
.chart__data summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--green); font-weight: 700; }
.chart__data table { border-collapse: collapse; width: 100%; max-width: 420px; }
.chart__data td, .chart__data th { border-bottom: 1px solid var(--line); padding: 6px 8px; text-align: left; }

/* 表 */
.tablewrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
table.jobs, table.matrix { border-collapse: collapse; width: 100%; font-size: 15px; }
table.jobs caption, table.matrix caption { text-align: left; padding: 10px 12px; font-size: 13px; color: var(--muted); }
table.jobs th, table.matrix th { background: #E7ECE9; text-align: left; font-size: 13px; padding: 8px 12px; white-space: nowrap; }
table.jobs td, table.matrix td, table.matrix tbody th { border-top: 1px solid var(--line); padding: 12px; vertical-align: top; }
table.matrix tbody th { background: transparent; font-size: 15px; }
table.matrix td.num { text-align: right; }
.jobs__pay { font-weight: 700; color: var(--green); white-space: nowrap; font-size: 16px; }
.jobs__title { display: block; font-weight: 700; }
.jobs__comp, .jobs__tags, .jobs__place-sm { display: block; font-size: 13px; color: var(--muted); }
.jobs__place-sm { display: none; }
.jobs__go a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 64px; padding: 0 12px; background: var(--green); color: #fff; border-radius: var(--r); text-decoration: none; font-weight: 700; font-size: 14px; white-space: nowrap; }
.jobs__go a::after { content: "↗"; margin-left: 4px; }
.jobs__go a:hover { background: var(--green-2); color: #fff; }

/* カード・一覧 */
.cards { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cards a { display: flex; flex-direction: column; gap: 4px; padding: 16px; background: var(--black); color: var(--on-dark); border-radius: var(--r); text-decoration: none; min-height: 44px; }
.cards__name { font-weight: 700; }
.cards__num .num { font-size: 28px; color: var(--gold); font-weight: 700; }
.cards__num { color: var(--gold-soft); }
.cards__num small { color: var(--on-dark-2); margin-left: 6px; font-size: 12px; }
.cards__more { font-size: 13px; color: var(--on-dark-2); }
.posts { list-style: none; padding: 0; margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.posts li + li { border-top: 1px solid var(--line); }
.posts a { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 14px 16px; color: var(--ink); text-decoration: none; min-height: 44px; }
.posts a:hover .posts__title { text-decoration: underline; color: var(--green); }
.posts__cat { font-size: 12px; font-weight: 700; color: var(--green); background: #E3ECE7; border-radius: 3px; padding: 1px 6px; white-space: nowrap; }
.posts__title { font-weight: 700; }
.posts time { font: 13px var(--mono); color: var(--muted); }
.posts__ex { grid-column: 2 / 4; font-size: 14px; color: var(--muted); }
.links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }
.crumbs ol { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.crumbs li + li::before { content: "／"; margin: 0 6px; }
.qa__item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin: 0 0 8px; }
.qa__item summary { cursor: pointer; padding: 12px 16px; font-weight: 700; min-height: 44px; }
.qa__a { padding: 0 16px 8px; }
.side-fig { float: right; width: 190px; margin: 0 0 16px 20px; background: var(--black); color: var(--on-dark); border-radius: var(--r); padding: 12px 14px; font-size: 13px; }
.side-fig p { margin: 0; }
.side-fig__v .num { font-size: 30px; font-weight: 700; color: var(--gold); }
.side-fig__s { color: var(--on-dark-2); }
.byline { clear: both; margin-top: 32px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.referral { margin-top: 20px; }
.referral img { border-radius: var(--r); }
.pages { margin-top: 20px; }
.pages .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pages a, .pages span { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; }

/* フッター */
.foot { background: var(--black); color: var(--on-dark-2); margin-top: 56px; font-size: 14px; }
.foot__in { max-width: var(--max); margin: 0 auto; padding: 32px var(--gap) 40px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.foot a { color: var(--on-dark); display: inline-flex; align-items: center; min-height: 44px; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot__name { color: var(--gold); font-weight: 800; font-size: 18px; margin: 0 0 6px; }
.foot__head { color: var(--on-dark); font-weight: 700; margin: 0 0 4px; }

@media (max-width: 760px) {
  .menu { display: inline-flex; align-items: center; }
  .logo__sub { display: none; }
  .gnav { display: none; width: 100%; }
  .gnav.is-open { display: block; }
  .gnav ul { flex-direction: column; }
  .figs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap { margin: 0 12px; padding: 22px 16px 18px; }
  .hide-sm { display: none; }
  .jobs__place-sm { display: block; }
  .posts a { grid-template-columns: 1fr; }
  .posts__ex { grid-column: auto; }
  .side-fig { float: none; width: auto; margin: 0 0 16px; }
  .foot__in { grid-template-columns: 1fr; }
}

/* 分布（HTML の棒グラフ） */
.hist { position: relative; }
.hist__y, .hist__x { margin: 0; font-size: 12px; color: var(--muted); }
.hist__x { text-align: right; margin-top: 2px; }
.hist__plot { display: flex; align-items: stretch; gap: 4px; height: 220px; padding-top: 22px; border-bottom: 1px solid var(--line); }
.hist__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.hist__bar { display: block; width: 100%; max-width: 72px; background: var(--green); border-radius: 3px 3px 0 0; }
.hist__col.is-med .hist__bar { background: var(--gold); box-shadow: inset 0 0 0 1px #8A6D12; }
.hist__val { font-size: 13px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.hist__lab { position: absolute; bottom: -22px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.hist__plot + .hist__x { margin-top: 26px; }
.trend__axis { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.chart svg { max-height: 240px; }
table.matrix tbody th a { display: inline-flex; align-items: center; min-height: 44px; }
table.matrix tbody th, table.matrix td { padding-top: 0; padding-bottom: 0; vertical-align: middle; }
.gnav a { min-width: 44px; justify-content: center; }
@media (max-width: 760px) {
  .jobs__go a { min-width: 48px; padding: 0 8px; }
  table.jobs th, table.jobs td { padding-left: 8px; padding-right: 8px; }
  .jobs__pay { font-size: 15px; }
  .hist__plot { height: 180px; gap: 2px; }
}
.foot a { min-width: 44px; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs ol { margin-top: 4px; }
.crumbs a { min-width: 44px; justify-content: center; }
.byline a { display: inline-flex; align-items: center; min-height: 44px; }
