/* subsidy-db の最小スタイル(フレームワーク無し・モバイルで崩れないこと) */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; font-family: system-ui, -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif; line-height: 1.7; color: #1f1f1f; background: #fff; }
a { color: #0b57a4; }
.site-header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: 12px 20px; background: #f3f6f9; border-bottom: 1px solid #dde3ea; }
.site-header .brand { color: inherit; font-weight: bold; font-size: 1.1rem; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.95rem; }
/* ステマ規制: 冒頭の表示は本文と同じ文字サイズ・十分なコントラスト */
.pr-notice { padding: 8px 20px; background: #fff4d6; border-bottom: 1px solid #e3c878; color: #1f1f1f; }
.pr-notice p { margin: 0; font-size: 1rem; }
.pr-notice .pr-notice-main { font-weight: bold; }
main { max-width: 960px; margin: 0 auto; padding: 20px 20px 48px; }
h1 { font-size: 1.5rem; line-height: 1.4; margin: 0.5em 0; }
h2 { font-size: 1.2rem; margin: 1.8em 0 0.6em; border-left: 4px solid #0b57a4; padding-left: 8px; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 0.9rem; color: #555; }
.breadcrumbs li + li::before { content: "›"; margin-right: 4px; color: #999; }
.stats { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.stats strong { font-size: 1.4rem; }
.lead { margin-top: 0; }
.note { color: #555; font-size: 0.9rem; }
.empty { padding: 16px; background: #f6f6f6; border-radius: 4px; }
.notice { padding: 10px 12px; background: #eef4fb; border-left: 4px solid #0b57a4; }
.table-wrap { width: 100%; }
table.subsidies { width: 100%; border-collapse: collapse; }
table.subsidies th, table.subsidies td { padding: 8px 6px; border-bottom: 1px solid #e3e3e3; text-align: left; vertical-align: top; }
table.subsidies th { background: #f3f6f9; font-size: 0.9rem; white-space: nowrap; }
table.subsidies td.name small { display: block; color: #666; font-size: 0.85rem; }
table.subsidies td.deadline, table.subsidies td.amount { white-space: nowrap; }
table.subsidies tr.soon td { background: #fff1f0; }
table.subsidies tr.soon .days, .days.soon { color: #b3261e; font-weight: bold; }
.days { font-size: 0.9rem; }
@media (max-width: 640px) {
  table.subsidies thead { display: none; }
  table.subsidies tr { display: block; padding: 8px 0; border-bottom: 1px solid #e3e3e3; }
  table.subsidies td { display: block; border: 0; padding: 2px 0; white-space: normal !important; }
  table.subsidies td:not(.name)::before { content: attr(data-label) ": "; color: #666; font-size: 0.85rem; }
}
.links { list-style: none; padding: 0; margin: 0; }
.links li { padding: 3px 0; }
.links.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 16px; }
.count { color: #666; font-size: 0.85rem; }
.count::before { content: "("; }
.count::after { content: ")"; }
/* 紹介リンクの枠。先頭に PR ラベル */
.cta { margin: 24px 0; padding: 14px 16px; border: 1px solid #d9cfa8; border-radius: 6px; background: #fffdf5; }
.cta .pr-label { margin: 0 0 6px; font-size: 1rem; font-weight: bold; color: #1f1f1f; }
.cta h3 { margin: 0 0 6px; font-size: 1.05rem; }
.cta p { margin: 6px 0; }
.button, button, .cta-link { display: inline-block; padding: 8px 16px; border-radius: 4px; background: #0b57a4; color: #fff; text-decoration: none; border: 0; font-size: 1rem; cursor: pointer; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 0.9rem; font-weight: bold; }
.badge.open { background: #e3f4e6; color: #1b6b2c; }
.badge.before { background: #e6eefb; color: #0b57a4; }
.badge.closed { background: #eee; color: #555; }
.closed-note { padding: 10px 12px; background: #f6f6f6; }
.catch { font-weight: bold; }
table.facts { width: 100%; border-collapse: collapse; margin: 12px 0; }
table.facts th, table.facts td { padding: 8px; border-bottom: 1px solid #e3e3e3; text-align: left; vertical-align: top; }
table.facts th { width: 9em; background: #f3f6f9; font-weight: normal; white-space: nowrap; }
.excerpt p { white-space: normal; }
.form input[type=email], .form select { width: 100%; max-width: 420px; padding: 8px; font-size: 1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.errors { padding: 10px 14px; background: #fff1f0; border: 1px solid #f1b6b1; }
.newsletter-box { margin-top: 32px; padding: 16px; background: #f3f6f9; border-radius: 6px; }
.site-footer { padding: 20px; background: #f3f6f9; border-top: 1px solid #dde3ea; font-size: 0.9rem; color: #444; }
.site-footer .attribution p { margin: 4px 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 8px 0; }
pre { overflow-x: auto; background: #f8f8f8; padding: 12px; }
