/* 看護師年収データ：新聞・統計の紙面のような作り。白地に黒、細い罫線、色は深い緑ひとつ。角は丸めない */
:root {
  --ink: #1c1c1c; --sub: #555; --muted: #8a8a8a; --rule: #d8d4cc; --rule-d: #1c1c1c;
  --accent: #1d5c4f; --accent-l: #eef3f1; --minus: #a3423a; --paper: #fff; --bg: #faf9f6;
  --mincho: "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", "BIZ UDPMincho", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Noto Sans JP", Meiryo, sans-serif; line-height: 1.85; font-size: 15px; }
a { color: var(--accent); }
.inner { max-width: 1000px; margin: 0 auto; padding: 0 20px; }

/* 見出し部分 */
.site-header { background: var(--paper); border-top: 4px solid var(--accent); border-bottom: 1px solid var(--rule-d); }
.site-header .inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 10px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.logo-mark { width: 40px; height: 40px; display: grid; place-items: center; background: var(--accent); color: #fff; font-family: var(--mincho); font-weight: 700; font-size: 1.55rem; line-height: 1; }
.logo-name { font-family: var(--mincho); font-weight: 700; font-size: 1.4rem; letter-spacing: .04em; line-height: 1.2; }
.logo-name small { display: block; font-family: inherit; font-weight: 400; font-size: .72rem; letter-spacing: .02em; color: var(--sub); margin-top: 3px; }
.hnav { display: flex; font-size: .85rem; }
.hnav a { color: var(--ink); text-decoration: none; padding: 2px 14px; border-left: 1px solid var(--rule); }
.hnav a:first-child { border-left: 0; }
.hnav a:hover { color: var(--accent); text-decoration: underline; }

/* トップ */
.hero { background: var(--paper); border-bottom: 1px solid var(--rule); }
.hero .inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.eyebrow { margin: 0 0 8px; font-size: .78rem; color: var(--accent); letter-spacing: .04em; }
.hero h1 { font-family: var(--mincho); font-size: 2.1rem; line-height: 1.5; margin: 0 0 14px; letter-spacing: .02em; }
.hero-lead { color: var(--sub); margin: 0 0 20px; }
.hero-photo { margin: 0; }
.hero-photo img { display: block; width: 100%; height: 300px; object-fit: cover; }
.search { display: flex; border: 1px solid var(--rule-d); background: #fff; max-width: 520px; }
.search input { flex: 1; min-width: 0; border: 0; padding: 11px 14px; font: inherit; outline: none; }
.search button { border: 0; border-left: 1px solid var(--rule-d); background: var(--accent); color: #fff; font: inherit; font-weight: 700; padding: 0 22px; cursor: pointer; }
.search-page { margin-top: 18px; }

/* ページ見出し */
.page-head { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 14px 0 20px; }
.page-head h1 { font-family: var(--mincho); font-size: 1.75rem; line-height: 1.45; margin: 8px 0 6px; letter-spacing: .02em; }
.page-head .lead { margin: 0; color: var(--sub); font-size: .92rem; }
.breadcrumb { font-size: .76rem; color: var(--muted); }
.breadcrumb a { color: var(--sub); }
.pr-note { font-size: .72rem; color: var(--muted); margin: 10px 0 0; }

/* 数字の並び（罫線で区切る） */
.stats { display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin-top: 16px; border-top: 2px solid var(--rule-d); border-bottom: 1px solid var(--rule-d); }
.stat { padding: 12px 16px; border-left: 1px solid var(--rule); display: flex; flex-direction: column; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat span { font-size: .78rem; color: var(--sub); }
.stat strong { font-family: var(--mincho); font-size: 1.75rem; line-height: 1.35; font-variant-numeric: tabular-nums; }
.stat small { font-size: .76rem; color: var(--muted); }
.stat-main strong { color: var(--accent); font-size: 2.2rem; }

main { padding-bottom: 50px; }
.block { margin-top: 36px; }
.sec { font-family: var(--mincho); font-size: 1.2rem; margin: 0 0 10px; letter-spacing: .02em; }
.note { font-size: .8rem; color: var(--sub); }
.more, .back { font-size: .9rem; }

/* 表 */
.table-wrap { overflow-x: auto; background: var(--paper); border-top: 2px solid var(--rule-d); border-bottom: 1px solid var(--rule-d); }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th, td { padding: 9px 12px; border-bottom: 1px solid var(--rule); text-align: left; white-space: nowrap; vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: #fbfaf7; }
thead th { font-size: .76rem; font-weight: 700; color: var(--sub); border-bottom: 1px solid var(--rule-d); }
td small { display: block; color: var(--muted); font-size: .74rem; white-space: normal; }
td a { text-decoration: none; font-weight: 700; }
td a:hover { text-decoration: underline; }
td.r { color: var(--sub); width: 3em; font-family: var(--mincho); font-weight: 700; }
td.v { text-align: right; }
td.v b { font-family: var(--mincho); font-size: 1.05rem; }
th:last-child { text-align: right; }
.rank-table td:nth-child(2) { white-space: normal; min-width: 190px; }

/* 都道府県の索引 */
.pref-index { margin: 0; border-top: 2px solid var(--rule-d); background: var(--paper); }
.pref-index dt { float: left; clear: left; width: 8.5em; padding: 10px 0; font-weight: 700; font-size: .86rem; }
.pref-index dd { margin: 0 0 0 8.5em; padding: 8px 0; border-bottom: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 2px 18px; }
.pref-index a { text-decoration: none; color: var(--ink); font-size: .95rem; }
.pref-index a:hover { color: var(--accent); text-decoration: underline; }
.pref-index small { margin-left: 4px; font-size: .72rem; color: var(--muted); }

/* 比較 */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-top: 2px solid var(--rule-d); border-bottom: 1px solid var(--rule-d); background: var(--paper); }
.compare div { padding: 12px 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; border-left: 1px solid var(--rule); }
.compare div:first-child { border-left: 0; padding-left: 0; }
.compare span { width: 100%; font-size: .8rem; color: var(--sub); }
.compare b { font-family: var(--mincho); font-size: 1.3rem; }
.compare em { font-style: normal; font-weight: 700; font-size: .9rem; }
.up { color: var(--accent); } .down { color: var(--minus); }

/* 給与の内訳 */
.bars { background: var(--paper); border-top: 2px solid var(--rule-d); border-bottom: 1px solid var(--rule-d); }
.bar { display: grid; grid-template-columns: 15em 1fr 7em; align-items: center; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-variant-numeric: tabular-nums; }
.bar:last-child { border-bottom: 0; }
.bar-l { font-size: .86rem; }
.bar-t { height: 8px; background: #efece6; }
.bar-t i { display: block; height: 100%; background: var(--accent); }
.bar b { text-align: right; font-weight: 400; }
.bar-total b, .bar-total .bar-l { font-weight: 700; }

/* 一覧（病院のリスト） */
.list { list-style: none; padding: 0; margin: 0; border-top: 2px solid var(--rule-d); background: var(--paper); columns: 2; column-gap: 32px; }
.list li { break-inside: avoid; border-bottom: 1px solid var(--rule); }
.list a { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; text-decoration: none; color: var(--ink); }
.list a:hover b { color: var(--accent); text-decoration: underline; }
.list small { color: var(--muted); font-size: .74rem; }
.list em { margin-left: auto; font-style: normal; font-family: var(--mincho); font-weight: 700; white-space: nowrap; }

.promo { border: 1px solid var(--rule-d); background: var(--paper); padding: 12px 18px; }
.faq { border-top: 2px solid var(--rule-d); background: var(--paper); }
.faq details { border-bottom: 1px solid var(--rule); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::before { content: "問　"; color: var(--accent); font-family: var(--mincho); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 6px 0 0 2em; color: var(--sub); font-size: .9rem; }
.static { background: var(--paper); border-top: 2px solid var(--rule-d); padding: 4px 0 16px; margin-top: 24px; }
.static h2 { font-family: var(--mincho); font-size: 1.08rem; }

.site-footer { background: var(--paper); border-top: 1px solid var(--rule-d); font-size: .78rem; color: var(--sub); padding: 18px 0; margin-top: 30px; }
.site-footer nav { display: flex; gap: 16px; }

@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .hero .inner { grid-template-columns: 1fr; gap: 18px; padding-top: 22px; }
  .hero-photo { order: -1; margin: 0 -20px; }
  .hero-photo img { height: 200px; }
  .hero h1 { font-size: 1.55rem; }
  .hnav a { padding: 2px 8px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat-main { grid-column: 1 / 3; border-bottom: 1px solid var(--rule); }
  .stat:nth-child(2) { border-left: 0; padding-left: 0; }
  .compare { grid-template-columns: 1fr; }
  .compare div { border-left: 0; padding-left: 0; border-top: 1px solid var(--rule); }
  .bar { grid-template-columns: 1fr auto; }
  .bar-t { grid-column: 1 / 3; grid-row: 2; }
  .list { columns: 1; }
  .pref-index dt { float: none; width: auto; padding-bottom: 0; }
  .pref-index dd { margin-left: 0; }
  th, td { padding: 8px; }
}

/* スマホ：横にはみ出さないようにする。表は「順位・病院・年収」の3列だけにする */
html, body { overflow-x: hidden; }
.inner > * { min-width: 0; }
@media (max-width: 720px) {
  .hero .inner { grid-template-columns: minmax(0, 1fr); }
  .page-head h1 { font-size: 1.4rem; }
  .table-wrap { overflow-x: visible; }
  .rank-table th, .rank-table td { white-space: normal; }
  .rank-table th:not(:first-child):not(:nth-child(2)):not(:last-child),
  .rank-table td:not(.r):not(:nth-child(2)):not(.v) { display: none; }
  .rank-table td:nth-child(2) { min-width: 0; }
  .rank-table td.v { white-space: nowrap; }
  .rank-table td.v b { font-size: 1rem; }
  .pref-index dd { gap: 4px 14px; }
  .pref-index a { font-size: .92rem; }
  .bar { grid-template-columns: 1fr auto; gap: 4px 10px; }
  .stat strong { font-size: 1.45rem; }
  .stat-main strong { font-size: 1.9rem; }
  .search button { padding: 0 16px; }
  .hnav { width: 100%; }
  .hnav a { flex: 1; text-align: center; padding: 4px 4px; font-size: .8rem; }
}
