/* =====================================================================
   入札情報ポータル stylesheet (one file; 2026-11-21 site.css + v2.css merged)
   Part 1: the original base. Part 2 (below): the refresh that refines it.
   Overridden declarations were removed, so each value here is the one in effect.
   Add new styles at the end of the matching section in Part 2; to avoid class-name
   clashes between pages, prefix page-only classes (e.g. .insight-*, .mp-*, .src-*).
   ===================================================================== */
:root { --accent-ink: #fff; --ink: #1f2933; --muted: #66727f; --line: #dde3ea; --card: #fff; --c-construction: #b4541d; --c-goods: #1d7a4f; --c-service: #2d5fa8; --c-consulting: #7a3fa0; --c-other: #5b6670; --radius: 8px; --brand: #0f3557; --brand-2: #1c5d99; --accent: #f0731e; --ok: #1f8a4c; --warn: #d23c2a; --bg: #f2f4f7; --shadow: 0 1px 2px rgba(16, 40, 70, .06), 0 2px 8px rgba(16, 40, 70, .05); }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", Meiryo, sans-serif; font-size: 15px; line-height: 1.7; letter-spacing: .02em; }
a { color: var(--brand-2); }
a:hover { color: var(--accent); }
h1 { font-size: 1.5rem; line-height: 1.4; margin: .2em 0 .6em; }
h2 { font-size: 1.15rem; margin: 0 0 .6em; border-left: 4px solid var(--brand); padding-left: .5em; }
.wrap { margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.inline { display: inline; }
.sp { display: none; }
/* header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; flex-wrap: wrap; }
.logo { font-weight: 700; color: var(--brand); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.logo-mark { display: inline-grid; place-items: center; color: #fff; font-size: .95rem; }
.header-search { flex: 1 1 280px; display: flex; }
.header-search input { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius) 0 0 var(--radius); font-size: 15px; }
.header-search button, .big-search button { border: 0; background: var(--accent); color: var(--accent-ink); padding: 0 18px; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 700; cursor: pointer; }
.header-nav { display: flex; gap: 12px; align-items: center; }
.subnav { background: var(--brand); }
.subnav .wrap { display: flex; overflow-x: auto; white-space: nowrap; }
.subnav a { color: #fff; text-decoration: none; font-weight: 600; }
.subnav a:hover { color: #ffd9bd; }
.link-button { background: none; border: 0; color: var(--brand-2); cursor: pointer; font: inherit; padding: 0; }
/* buttons */
.btn { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-decoration: none; font-weight: 600; cursor: pointer; font-size: .95rem; }
.btn-primary { color: #fff; }
.btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn:hover { opacity: .9; color: inherit; }
.btn-primary:hover, .btn-accent:hover { color: #fff; }
.main { padding-top: 20px; padding-bottom: 48px; }
.section { margin: 28px 0; }
.flash { background: #e8f5ee; border: 1px solid #b7dfc8; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 16px; }
/* hero */
.hero { background: linear-gradient(135deg, #e9eef4, #f8fafc); border: 1px solid var(--line); border-radius: 12px; padding: 32px; }
.hero h1 { font-size: 2rem; color: var(--brand); margin: 0 0 .3em; }
.lead { margin: 0 0 16px; }
.stats { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 18px; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--accent); margin-right: 4px; }
.stat-label { font-weight: 600; }
.big-search { display: flex; flex-wrap: wrap; gap: 8px 0; }
.big-search input[type=search] { flex: 1 1 260px; min-width: 0; padding: 12px 14px; font-size: 16px; border: 2px solid var(--brand); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.big-search .check { flex-basis: 100%; }
.check { display: flex; gap: 6px; align-items: center; font-size: .9rem; }
/* grids */
.pref-grid { display: grid; gap: 12px; }
.pref-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pref-card:hover { border-color: var(--brand-2); }
.pref-name { font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-decoration: none; color: var(--ink); font-size: .9rem; }
/* notice cards */
.notice-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; }
.notice-meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.notice-title { font-size: 1.05rem; margin: 4px 0 6px; line-height: 1.5; }
.notice-title a { text-decoration: none; }
.notice-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; font-size: .88rem; }
.notice-facts div { display: flex; gap: 6px; }
.notice-facts dt { color: var(--muted); }
.notice-facts dd { margin: 0; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 4px; color: #fff; background: var(--c-other); }
.tag-construction { background: var(--c-construction); }
.tag-goods { background: var(--c-goods); }
.tag-service { background: var(--c-service); }
.tag-consulting { background: var(--c-consulting); }
.tag-plain { background: transparent; color: var(--muted); border: 1px solid var(--line); font-weight: 600; }
/* search layout */
.search-layout { display: grid; align-items: start; }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; position: sticky; top: 12px; }
.filters label, .stack label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.filters label.check, .stack label.check { flex-direction: row; font-weight: 400; }
.filters input:not([type=checkbox]), .filters select, .stack input:not([type=checkbox]), .stack textarea, .stack select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 400; width: 100%; background: #fff; }
.hint { display: block; font-size: .78rem; color: var(--muted); margin: -8px 0 12px; font-weight: 400; }
.empty { background: var(--card); border: 1px dashed var(--line); padding: 24px; border-radius: var(--radius); }
/* detail */
.breadcrumb { margin-bottom: 8px; color: var(--muted); }
.detail { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.detail-title { font-size: 1.45rem; margin-top: 8px; }
table.kv { width: 100%; border-collapse: collapse; }
table.kv th, table.kv td { border-top: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
table.kv th { width: 180px; background: #f4f6f9; font-weight: 600; white-space: nowrap; }
table.grid { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.grid th, table.grid td { border: 1px solid var(--line); padding: 6px 8px; text-align: left; }
table.grid th { background: #f4f6f9; }
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.doc-type { font-size: .75rem; background: #eef2f7; color: var(--brand); padding: 1px 8px; border-radius: 4px; font-weight: 700; }
.cta { margin-top: 16px; background: #fff6ee; border: 1px solid #f5cfae; border-radius: var(--radius); padding: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cta p { margin: 0; font-weight: 700; flex-basis: 100%; }
.narrow { max-width: 560px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.req { color: #fff; background: #c0392b; font-size: .7rem; padding: 0 6px; border-radius: 3px; margin-left: 4px; }
.errorlist { color: #c0392b; margin: -6px 0 10px; padding-left: 18px; font-size: .85rem; }
/* footer */
.site-footer { background: #0f2a43; color: #d7e0ea; padding: 28px 0; }
.site-footer a { color: #fff; }
.site-footer .muted { color: #a9b8c8; }
.footer-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-links { list-style: none; padding: 0; margin: 0; }
@media (max-width: 760px) {
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .hero { padding: 20px; }
  .hero h1 { font-size: 1.5rem; }
  .sp { display: inline; }
  table.kv th { width: 110px; white-space: normal; }
  .detail { padding: 16px; }
}
/* plans / account */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 20px 0; }
.plan-card h2 { border: 0; padding: 0; }
.plan-card ul { padding-left: 18px; margin: 0 0 8px; flex: 1; }
.plan-featured { border: 2px solid var(--accent); }
.plan-price { font-size: 1.8rem; font-weight: 800; color: var(--brand); margin: 0; }
.plan-price span { font-size: .85rem; font-weight: 600; color: var(--muted); margin-left: 4px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-small { padding: 4px 12px; font-size: .85rem; }
.save-search { margin: -6px 0 14px; }
.draft-note { background: #fff4d6; border: 1px solid #f0d68a; padding: 8px 12px; border-radius: 6px; font-size: .85rem; }
.legal h2 { margin-top: 1.4em; }
.award-box { background: #f3f8f4; border: 1px solid #cfe5d6; border-radius: var(--radius); padding: 12px 16px; }
.award-box h2 { border-left-color: var(--c-goods); }
.ai-summary { background: #f4f6fd; border: 1px solid #d5dcf3; border-radius: var(--radius); padding: 12px 16px; }
.ai-summary h2 { border-left-color: var(--c-service); }
.ai-summary ul { margin: 4px 0 10px; padding-left: 20px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
/* pricing (single plan + payment methods) */
.pricing-hero { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; }
.plan-single { display: grid; grid-template-columns: 1fr 1.6fr; gap: 24px; align-items: center; margin: 12px 0 20px; }
.plan-name { color: var(--brand); }
.plan-features { margin: 0; padding-left: 20px; }
.trial-cta { text-align: center; margin: 8px 0 4px; }
.center, .center-heading { text-align: center; }
.center-heading { border: 0; font-size: 1.5rem; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pay-card { background: var(--card); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.pay-card h3 { margin: 0; background: #2f3a48; color: #fff; text-align: center; padding: 12px; font-size: 1.1rem; }
.pay-card > ul { padding: 12px 16px 0 34px; margin: 0; font-size: .92rem; }
.option-list { padding: 12px 16px; display: grid; gap: 10px; }
.option-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.schedule { padding: 0 16px 16px; }
.timeline { list-style: none; display: flex; gap: 8px; padding: 0; margin: 0; }
.timeline li { flex: 1; background: #dbe5f3; border-radius: 6px; padding: 8px; font-size: .8rem; text-align: center; }
.timeline b { display: block; color: var(--brand); font-size: .95rem; }
.trial-bar { background: #fff6ee; border-bottom: 1px solid #f5cfae; font-size: .88rem; }
.trial-bar .wrap { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 760px) {
  .plan-single, .pay-grid { grid-template-columns: 1fr; }
  .timeline { flex-direction: column; }
}
/* search page */
.mode-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--brand); margin-bottom: 14px; }
.mode-tabs a { text-decoration: none; color: var(--ink); font-weight: 700; border-radius: 6px 6px 0 0; }
.mode-tabs a.active { background: var(--brand); color: #fff; }
.search-bar { display: flex; gap: 0; }
.search-bar input { flex: 1; min-width: 0; font-size: 16px; border: 2px solid var(--brand); border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
.search-bar .btn { border-radius: 0 var(--radius) var(--radius) 0; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.fbtn { border: 1px solid var(--brand-2); color: var(--brand-2); font: inherit; font-size: .9rem; cursor: pointer; }
.result-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.result-controls { display: flex; gap: 8px; }
.result-controls select { padding: 6px; border: 1px solid var(--line); border-radius: 6px; }
.active-chips .chip-on { background: #e6eef8; border-color: #b9cde6; }
.inline-search { display: flex; gap: 8px; margin-bottom: 8px; }
.inline-search input { flex: 1; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; }
.tag-award { background: var(--c-goods); }
.award-card { border-left: 4px solid var(--c-goods); }
/* 絞り込み条件の編集 panel */
body.noscroll { overflow: hidden; }
.panel { display: none; position: fixed; inset: 0; z-index: 50; background: #fff; flex-direction: column; }
.panel.open { display: flex; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.panel-head h2 { border: 0; padding: 0; margin: 0; font-size: 1.3rem; }
.panel-close { background: #222; color: #fff; border: 0; border-radius: 4px; padding: 6px 12px; cursor: pointer; font: inherit; }
.panel-body { flex: 1; display: grid; grid-template-columns: 240px 1fr; min-height: 0; }
.panel-nav { background: #f1f3f6; padding: 16px 0; overflow-y: auto; }
.panel-nav a { display: block; padding: 14px 20px; color: var(--ink); text-decoration: none; border-bottom: 1px solid #e3e7ec; }
.panel-nav a.on { background: var(--brand); color: #fff; font-weight: 700; }
.panel-main { overflow-y: auto; padding: 18px 24px 40px; }
.psec { display: none; }
.psec.on { display: block; }
.psec h3 { font-size: 1.15rem; margin: 0 0 12px; }
.psec label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.psec label.check { flex-direction: row; align-items: center; font-weight: 400; margin: 0; }
.psec input[type=text], .psec input[type=search], .psec input[type=number], .psec input[type=date], .psec select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; max-width: 520px; }
.hint-inline { font-size: .85rem; font-weight: 400; color: var(--muted); margin-left: 8px; }
.row2 { display: flex; gap: 12px; flex-wrap: wrap; }
.n { color: var(--muted); font-size: .78rem; }
.tree { width: 100%; border-collapse: collapse; }
.tree th { width: 280px; background: #f1f3f6; text-align: left; vertical-align: top; padding: 12px; border-bottom: 1px solid var(--line); font-weight: 700; }
.tree td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.tree-children, .opt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 14px; }
.opt-table th { width: 180px; }
.agency-filter { margin-bottom: 10px; width: 100%; }
.agency-group { margin-bottom: 8px; }
.agency-group summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.panel-foot { border-top: 1px solid var(--line); padding: 12px 24px; display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; }
.panel-foot strong { font-size: 2rem; color: var(--brand); }
@media (max-width: 760px) {
  .panel-body { grid-template-columns: 1fr; }
  .panel-nav { display: flex; overflow-x: auto; padding: 0; }
  .panel-nav a { white-space: nowrap; border-bottom: 0; }
  .tree th { width: auto; display: block; }
  .tree td { display: block; }
  .opt-table th { width: 100px; }
}
/* zero-count options are dimmed, active filter buttons highlighted */
.check.zero { opacity: .45; }
.fbtn.on { border-color: var(--accent, #e8772e); color: var(--accent, #e8772e); }
.fbtn b { display:inline-block; min-width:1.4em; padding:0 .35em; border-radius:9px; background: var(--accent, #e8772e); color:#fff; font-size:.75em; }
.opt-grid-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
/* =====================================================================
   Part 2: layout & components refresh (refines Part 1)
   ===================================================================== */
.wrap { max-width: 1240px; }
h2 { border-left-color: var(--accent); }
.btn { border-radius: 6px; }
.btn-sm { padding: 4px 10px; font-size: .82rem; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-primary { background: var(--brand-2); border-color: var(--brand-2); }
/* header */
.header-inner { padding-top: 12px; padding-bottom: 12px; gap: 20px; }
.logo { font-size: 1.2rem; }
.logo-mark { width: 34px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.header-search input { padding: 10px 14px; background: #eef1f5; border-color: transparent; }
.header-search button { padding: 0 20px; }
.header-nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .92rem; }
.header-nav a:not(.btn):hover { color: var(--accent); }
.header-nav .link-button { color: var(--muted); font-size: .85rem; }
.header-nav .btn-accent { padding: 9px 18px; box-shadow: 0 2px 0 #c75a12; }
.subnav .wrap { gap: 28px; }
.subnav a { padding: 11px 0; font-size: .95rem; border-bottom: 3px solid transparent; }
.subnav a:hover, .subnav a.on { border-bottom-color: var(--accent); color: #fff; }
/* common blocks */
.breadcrumb { font-size: .8rem; margin: 0 0 10px; }
.breadcrumb a { color: var(--muted); }
.page-head h1 { margin-bottom: .2em; }
.card-box, .side-box { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 16px; }
.card-box h2 { margin-top: 0; }
.num { font-variant-numeric: tabular-nums; }
.pre { white-space: pre-wrap; }
/* search: results + right sidebar */
.search-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
.search-side { align-self: start; }
.side-box { padding: 0; overflow: hidden; }
.side-title { margin: 0; padding: 12px 16px; font-size: 1rem; border: 0; background: var(--brand); color: #fff; }
.side-alert .side-title { background: #fff4eb; color: var(--ink); border-bottom: 1px solid #f6d6bd; }
.side-alert p, .side-alert form, .side-alert > .btn { margin: 12px 16px; }
.side-alert > .btn-block { width: calc(100% - 32px); }
.side-row { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.side-row-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .9rem; }
.side-vals { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.side-vals li { background: #e8f0fa; border-radius: 4px; padding: 1px 4px 1px 8px; font-size: .8rem; }
.side-vals .x { color: var(--muted); text-decoration: none; margin-left: 2px; }
.side-none { margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.search-side > .side-box > .btn-block { width: calc(100% - 32px); margin: 14px 16px; }
.mode-tabs { border-bottom-width: 3px; }
.mode-tabs a { padding: 10px 22px; }
.search-bar input { padding: 12px 14px; }
.search-bar .btn { padding: 0 26px; font-size: 1rem; }
.filter-buttons { margin: 12px 0 4px; }
.fbtn { border-radius: 999px; padding: 6px 14px; background: #fff; }
.fbtn-main { background: var(--brand-2); color: #fff; }
.result-head { margin: 18px 0 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.results-title { margin: 0; display: flex; align-items: baseline; gap: 4px; font-size: 1.15rem; }
.results-title .count { font-size: 1.6rem; color: var(--brand); font-weight: 800; margin-left: 10px; }
.results-title .unit { font-size: .9rem; }
.chip-on span { margin-left: 6px; color: var(--muted); }
/* notice card */
.ncard { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; box-shadow: var(--shadow); transition: border-color .15s; }
.ncard:hover { border-color: #b9cbe0; }
.ncard-status { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-top: 2px; text-align: center; }
.st { display: inline-block; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; line-height: 1.3; }
.st-open { background: #e3f4ea; color: var(--ok); }
.st-closed { background: #eceff3; color: var(--muted); }
.st-unknown { background: #f4f5f7; color: var(--muted); font-weight: 600; font-size: .7rem; border-radius: 6px; }
.st-days { font-size: .78rem; color: var(--muted); }
.st-days b { font-size: 1.2rem; color: var(--ink); margin: 0 1px; }
.st-days.urgent, .st-days.urgent b { color: var(--warn); }
.ncard-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .8rem; }
.method { border: 1px solid #b8c3d0; color: #45525f; border-radius: 4px; padding: 0 8px; font-weight: 600; }
.ncard-title { line-height: 1.5; }
.ncard-title a { color: #0d4f8f; text-decoration: none; }
.ncard-title a:hover { text-decoration: underline; color: var(--accent); }
.ncard-org { font-size: .88rem; }
.ncard-org a { color: var(--ink); }
.ncard-facts { display: flex; flex-wrap: wrap; margin: 0; font-size: .86rem; }
.ncard-facts div { display: flex; gap: 6px; }
.ncard-facts dt { color: var(--muted); }
.ncard-facts dd { margin: 0; font-weight: 600; }
.ncard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.itag { background: var(--brand); color: #fff; font-size: .76rem; padding: 2px 10px; border-radius: 3px; }
.itag-doc { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
.ncard-side { display: flex; align-items: flex-start; }
.watch { font: inherit; }
.watch .star { color: var(--accent); font-size: 1.05rem; line-height: 1; }
.watch.on, .watch-btn.on { background: #fff4eb; border-color: var(--accent); }
.award-card { border-radius: 10px; box-shadow: var(--shadow); padding: 16px 18px; margin-bottom: 12px; }
.acard { grid-template-columns: 84px minmax(0, 1fr); border-left: 4px solid var(--ok); }
.st-award { background: var(--ok); color: #fff; }
.award-line { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: baseline; background: #f5faf7; border-radius: 6px; padding: 8px 12px; margin-top: 4px; font-size: .88rem; }
.award-line span { color: var(--muted); margin-right: 6px; font-size: .8rem; }
.award-line a { font-weight: 700; }
.aw-amount b { font-size: 1.15rem; color: var(--ink); }
.rate { font-style: normal; font-size: .78rem; color: var(--ok); font-weight: 700; margin-left: 4px; }
/* home */
.home-hero { position: relative; background: linear-gradient(120deg, #0f3557 0%, #1c5d99 60%, #2a77bd 100%); color: #fff; border-radius: 14px; padding: 44px 48px 120px; overflow: hidden; }
.home-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.06); }
.home-hero h1 { font-size: 2.3rem; margin: 0 0 8px; color: #fff; letter-spacing: .04em; }
.home-hero .lead { font-size: 1.05rem; opacity: .92; }
.hero-stats { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.hero-stat { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; padding: 10px 18px; }
.hero-stat b { font-size: 1.8rem; color: #ffb47a; margin-right: 4px; font-variant-numeric: tabular-nums; }
.hero-stat span { font-size: .85rem; }
.hero-cta { margin-top: 22px; position: relative; z-index: 1; }
.hero-cta .btn-accent { font-size: 1.05rem; padding: 12px 28px; box-shadow: 0 3px 0 #c75a12; }
.hero-cta .note { font-size: .82rem; opacity: .85; margin-left: 10px; }
.search-card { position: relative; z-index: 2; margin: -84px 32px 0; background: #fff; border-radius: 12px; box-shadow: 0 8px 28px rgba(15, 53, 87, .14); padding: 24px 28px; }
.search-card h2 { border: 0; padding: 0; text-align: center; color: var(--brand); font-size: 1.35rem; margin: 0 0 14px; }
.scope-tabs { display: flex; }
.scope-tabs label { cursor: pointer; padding: 8px 16px; background: #e9eef4; font-weight: 700; font-size: .9rem; color: var(--muted); }
.scope-tabs label:first-child { border-radius: 8px 0 0 0; }
.scope-tabs label:last-child { border-radius: 0 8px 0 0; }
.scope-tabs input { display: none; }
.scope-tabs label:has(input:checked) { background: var(--brand); color: #fff; }
.home-search { display: flex; }
.home-search input[type=search] { flex: 1; min-width: 0; font-size: 17px; padding: 14px 16px; border: 2px solid var(--brand); border-right: 0; border-radius: 0 0 0 8px; }
.home-search button { border: 0; background: var(--accent); color: #fff; font-weight: 800; font-size: 1.05rem; padding: 0 30px; border-radius: 0 8px 8px 0; cursor: pointer; }
.quick-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; font-size: .85rem; }
.quick-row > span { color: var(--muted); font-weight: 700; min-width: 7.5em; }
.pill { display: inline-block; border: 1px solid var(--line); border-radius: 999px; padding: 3px 14px; text-decoration: none; color: var(--ink); background: #fff; font-size: .85rem; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill-dark { background: var(--brand); color: #fff; border-color: var(--brand); }
.pill-dark:hover { color: #fff; opacity: .9; }
.pill small { opacity: .7; margin-left: 4px; }
.home-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 36px; align-items: start; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 10px; }
.sec-head h2 { margin: 0; }
.sec-head a { font-size: .88rem; font-weight: 700; }
.side-box .sec-head { margin: 0; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.side-box .sec-head h2 { font-size: 1rem; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.mini-list li:last-child { border-bottom: 0; }
.mini-list a { text-decoration: none; font-weight: 600; font-size: .9rem; line-height: 1.45; display: block; }
.mini-list .sub { font-size: .78rem; color: var(--muted); }
.mini-list .amt { color: var(--ink); font-weight: 700; }
.pref-grid { grid-template-columns: repeat(3, 1fr); }
.pref-card { border-radius: 10px; box-shadow: var(--shadow); padding: 16px 18px; }
.pref-card .big { font-size: 1.5rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 44px 0 8px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: var(--shadow); }
.feature .ico { font-size: 1.6rem; }
.feature h3 { margin: 8px 0 6px; font-size: 1.02rem; color: var(--brand); }
.feature p { margin: 0; font-size: .86rem; color: #4a5562; }
.cta-band { margin: 40px 0 0; background: linear-gradient(90deg, #fff4eb, #ffe6d3); border: 1px solid #f6d6bd; border-radius: 14px; padding: 28px 32px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { border: 0; padding: 0; margin: 0 0 4px; font-size: 1.35rem; }
.cta-band p { margin: 0; }
/* grants (same look as the notice list: .ncard / .search-layout / .panel) */
.st-soon { background: #e8f0fb; color: var(--brand-2); }
.tag-grant { background: #2e8b57; }
.detail-text { font-size: .92rem; line-height: 1.85; }
/* detail */
.detail { box-shadow: var(--shadow); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.detail-side { position: sticky; top: 12px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 10px; margin: 6px 0 22px; overflow: hidden; }
.keyfacts > div { padding: 12px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.keyfacts > div:last-child { border-right: 0; }
.keyfacts span { font-size: .78rem; color: var(--muted); font-weight: 700; }
.keyfacts strong { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.keyfacts em { font-style: normal; font-size: .8rem; font-weight: 700; color: var(--ok); }
.keyfacts em.warn { color: var(--warn); }
.steps { list-style: none; display: flex; padding: 0; margin: 4px 0 18px; }
.steps li { flex: 1; position: relative; text-align: center; padding-top: 26px; font-size: .82rem; font-variant-numeric: tabular-nums; }
.steps li::before { content: ""; position: absolute; top: 7px; left: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: #c8d3df; z-index: 1; }
.steps li::after { content: ""; position: absolute; top: 13px; left: -50%; width: 100%; height: 2px; background: #c8d3df; }
.steps li:first-child::after { display: none; }
.steps li.done::before, .steps li.done::after { background: var(--brand-2); }
.steps li.next::before { background: var(--accent); box-shadow: 0 0 0 4px #ffe1cb; }
.steps b { display: block; font-size: .78rem; color: var(--muted); }
.doc-icon { display: inline-grid; place-items: center; min-width: 38px; height: 22px; padding: 0 4px; border-radius: 4px; font-size: .64rem; font-weight: 800; color: #fff; background: #7b8794; text-transform: uppercase; }
.doc-icon.pdf { background: #d6453d; }
.doc-icon.xls, .doc-icon.xlsx { background: #1f7a45; }
.doc-icon.doc, .doc-icon.docx { background: #2b5797; }
.doc-icon.zip, .doc-icon.lzh { background: #8a6d1d; }
.doc-list li { align-items: center; }
.doc-list .grow { flex: 1; min-width: 0; }
.cta-box { margin: 12px 0; background: #fff4eb; border: 1px solid #f6d6bd; border-radius: 8px; padding: 12px 16px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.link-list { margin: 0; padding-left: 18px; }
/* mypage / settings */
.page-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.page-tabs a { padding: 10px 18px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.page-tabs a.active { color: var(--brand); border-bottom-color: var(--accent); }
table.list-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.list-table th { text-align: left; font-size: .78rem; color: var(--muted); border-bottom: 2px solid var(--line); padding: 6px 8px; }
.list-table td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
.list-table td.actions { white-space: nowrap; text-align: right; }
.list-table td.actions form { display: inline-block; margin-left: 4px; }
.ch-badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 10px; border-radius: 4px; color: #fff; background: #5b6670; }
.ch-email { background: #1c5d99; }
.ch-slack { background: #4a154b; }
.ch-teams { background: #4b53bc; }
.ok { color: var(--ok); font-weight: 700; }
.ng { color: var(--warn); font-weight: 700; }
.row3 { display: grid; grid-template-columns: 180px 1fr 200px; gap: 12px; }
.channel-form label { display: flex; flex-direction: column; gap: 4px; font-size: .85rem; font-weight: 700; }
.channel-form input, .channel-form select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font: inherit; font-weight: 400; }
.channel-form .btn { margin-top: 12px; }
.howto { margin-top: 12px; font-size: .88rem; }
.howto summary { cursor: pointer; color: var(--brand-2); font-weight: 700; }
.switch { border: 1px solid var(--line); background: #eceff3; color: var(--muted); border-radius: 999px; padding: 3px 12px; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; }
.switch.on { background: #e3f4ea; color: var(--ok); border-color: #b9e0c8; }
.flash-warn { background: #fff4d6; border-color: #f0d68a; }
@media (max-width: 1000px) {
  .search-layout, .home-cols, .detail-layout { grid-template-columns: minmax(0, 1fr); }
  .search-side, .detail-side { position: static; max-height: none; }
  .search-side .side-row { display: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .header-inner { gap: 10px 12px; flex-wrap: wrap; }
  .logo { font-size: 1rem; }
  .logo-mark { width: 28px; height: 28px; }
  .header-nav a:not(.btn) { font-size: .8rem; }
  .header-nav .link-button { display: none; }
  .mode-tabs a { white-space: nowrap; padding: 8px 12px; font-size: .9rem; }
  .filter-buttons { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; margin-right: -16px; }
  .fbtn { white-space: nowrap; flex: none; }
  .fbtn-main { order: -1; }
  .search-bar input { font-size: 15px; }
  .header-search { order: 3; flex-basis: 100%; }
  .header-nav { margin-left: auto; gap: 10px; }
  .header-nav .btn-accent { padding: 6px 12px; font-size: .85rem; }
  .subnav .wrap { gap: 18px; }
  .ncard { grid-template-columns: 1fr; gap: 6px; padding: 14px; position: relative; }
  .ncard-status { flex-direction: row; justify-content: flex-start; }
  .ncard-side { position: absolute; right: 12px; top: 12px; }
  .watch .wl { display: none; }
  .watch { padding: 6px 9px; }
  .ncard-title { font-size: 1.02rem; }
  .home-hero { padding: 28px 22px 100px; border-radius: 0; margin: -20px -16px 0; }
  .home-hero h1 { font-size: 1.6rem; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-stat { padding: 6px 10px; display: flex; flex-direction: column; }
  .hero-stat span { font-size: .75rem; }
  .hero-cta .note { display: block; margin: 8px 0 0; }
  .home-hero .lead { font-size: .92rem; }
  .hero-stat b { font-size: 1.3rem; }
  .search-card { margin: -76px 0 0; padding: 18px 16px; }
  .search-card h2 { font-size: 1.1rem; }
  .home-search button { padding: 0 18px; }
  .quick-row > span { min-width: 100%; }
  .pref-grid, .feature-grid { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .keyfacts > div:nth-child(2) { border-right: 0; }
  .keyfacts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .row3 { grid-template-columns: 1fr; }
  .list-table thead { display: none; }
  .list-table tr { display: block; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .list-table td { display: block; border: 0; padding: 3px 4px; }
  .steps li { font-size: .72rem; }
  .cta-band { padding: 20px; }
}
/* company analysis */
.chart-wrap { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 12px 6px; }
.bar-chart { width: 100%; height: auto; display: block; }
.bar-chart .axis { stroke: var(--line); }
.bar-chart .bar { fill: var(--brand-2); }
.bar-chart g:hover .bar { fill: var(--accent); }
.bar-chart .bar-val { font-size: 11px; font-weight: 700; fill: var(--ink); text-anchor: middle; }
.bar-chart .bar-label { font-size: 11px; fill: var(--muted); text-anchor: middle; }
.chart-wrap.locked .bar-chart { filter: blur(5px); opacity: .6; }
.lock-cta { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; }
.lock-cta p { margin: 0; font-weight: 700; }
.masked { color: var(--muted); letter-spacing: .1em; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.rank-list { margin: 0; padding: 0; list-style: none; counter-reset: r; }
.rank-list li { counter-increment: r; display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.rank-list li::before { content: counter(r); flex: none; width: 22px; height: 22px; border-radius: 50%; background: #eef1f5; color: var(--brand); font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rank-list li:nth-child(-n+3)::before { background: var(--brand); color: #fff; }
.rank-list .sub { margin-left: auto; color: var(--muted); font-size: .85rem; white-space: nowrap; }
@media (max-width: 760px) {
  .two-col { grid-template-columns: minmax(0, 1fr); }
}
/* welcome (onboarding) */
.welcome { max-width: 920px; margin: 8px auto 40px; }
.welcome-head { text-align: center; margin-bottom: 24px; }
.welcome-head h1 { font-size: 1.7rem; margin: 4px 0 8px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: .9rem; margin: 0; }
.wstep { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px 20px; margin-bottom: 16px; box-shadow: var(--shadow); }
.wstep h2 { border: 0; padding: 0; margin: 0 0 14px; font-size: 1.1rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.wnum { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .9rem; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.choice-grid.compact { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin-top: 10px; }
.choice { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.choice:hover { border-color: var(--brand-2); }
.choice:has(input:checked) { border-color: var(--brand-2); background: #eef5fc; }
.choice:has(input:disabled) { opacity: .45; cursor: default; }
.choice.zero { opacity: .55; }
.choice-name { flex: 1; font-size: .92rem; line-height: 1.35; }
.choice-n { color: var(--muted); font-size: .82rem; font-variant-numeric: tabular-nums; }
.pref-block + .pref-block { margin-top: 12px; }
.choice-pref { font-weight: 700; }
.agency-pick summary { cursor: pointer; color: var(--brand-2); font-size: .88rem; margin: 8px 0 0 4px; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row input { margin-top: 4px; width: 18px; height: 18px; }
.welcome-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 22px; }
.btn-lg { padding: 14px 40px; font-size: 1.05rem; }
@media (max-width: 760px) {
  .choice-grid { grid-template-columns: minmax(0, 1fr); }
  .welcome-head h1 { font-size: 1.35rem; }
}
/* auth pages (login / signup / password reset) */
.auth-wrap { display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 420px); gap: 32px; justify-content: center; align-items: start; margin: 24px auto 48px; }
.auth-wrap.single { grid-template-columns: minmax(0, 460px); }
.auth-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 30px 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.45rem; margin: 2px 0 10px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.field label { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .9rem; margin-bottom: 6px; }
.field .req { font-size: .68rem; font-weight: 700; color: #fff; background: var(--warn); border-radius: 3px; padding: 1px 5px; }
.field input { width: 100%; padding: 11px 12px; border: 1px solid #cdd5df; border-radius: 7px; font-size: 1rem; background: #fff; box-sizing: border-box; }
.field input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(28, 93, 153, .15); }
.field.has-error input { border-color: var(--warn); }
.field .hint { color: var(--muted); font-size: .78rem; line-height: 1.55; margin-top: 6px; }
.field .hint ul { margin: 4px 0 0; padding-left: 18px; }
.field-error, .form-alert { color: var(--warn); font-size: .85rem; margin-top: 6px; }
.form-alert { background: #fdecea; border-radius: 6px; padding: 10px 12px; margin: 0; }
.auth-links { text-align: center; font-size: .9rem; margin: 16px 0 0; }
.auth-alt { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); text-align: center; }
.auth-alt span { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 8px; }
.auth-done { width: 56px; height: 56px; border-radius: 50%; background: #e7f4ec; color: var(--ok); font-size: 1.6rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.auth-side { padding: 26px 8px 0; }
.auth-side h2 { border: 0; padding: 0; font-size: 1.1rem; margin: 0 0 14px; }
.auth-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.auth-points li { position: relative; padding-left: 30px; display: flex; flex-direction: column; gap: 2px; }
.auth-points li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff; font-size: .72rem; display: flex; align-items: center; justify-content: center; }
.auth-points span { color: var(--muted); font-size: .86rem; }
.auth-note { margin-top: 20px; font-size: .85rem; background: #fff7ef; border: 1px solid #f7d7bb; border-radius: 8px; padding: 12px 14px; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 8px; }
  .auth-card { padding: 22px 18px; }
  .auth-side { padding: 8px 4px 0; }
}
/* mypage */
.mp-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 14px; }
.mp-user { display: flex; align-items: center; gap: 14px; }
.mp-user h1 { margin: 0; font-size: 1.5rem; }
.mp-user p { margin: 2px 0 0; }
.mp-avatar { width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; font-size: 1.25rem; display: flex; align-items: center; justify-content: center; }
.mp-lead { margin-top: 0; }
.mp-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: stretch; margin-bottom: 16px; }
.mp-grid > .card-box { margin: 0; }
.plan-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.plan-label { color: var(--muted); font-size: .85rem; font-weight: 700; }
.pill-status { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill-status.ok { background: #e7f4ec; color: var(--ok); }
.pill-status.trial { background: #fff1e6; color: #b85410; }
.pill-status.free { background: #eef1f5; color: var(--muted); }
.plan-name { font-size: 1.3rem; font-weight: 700; margin: 10px 0 12px; }
.plan-name .days { color: var(--accent); font-size: 1.5rem; margin: 0 2px; }
.trial-progress { height: 8px; background: #eef1f5; border-radius: 999px; overflow: hidden; margin-bottom: 10px; }
.trial-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--accent)); border-radius: 999px; }
.plan-dl { margin: 0 0 14px; }
.plan-dl > div { display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.plan-dl dt { color: var(--muted); font-size: .88rem; }
.plan-dl dd { margin: 0; }
.stat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; gap: 4px; color: var(--ink); text-decoration: none; }
a.stat-tile:hover { border-color: var(--brand-2); }
.stat-tile b { font-size: 1.7rem; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-tile span { color: var(--muted); font-size: .85rem; font-weight: 700; }
.mp-lists > .card-box { margin-bottom: 16px; }
.mp-lists .mini-list { margin: 0; }
.empty-box { text-align: center; background: var(--card); border: 1px dashed #cdd5df; border-radius: 10px; padding: 32px 16px; }
@media (max-width: 860px) {
  .mp-grid { grid-template-columns: minmax(0, 1fr); }
  .plan-dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.mp-lists .mini-list li { padding-left: 0; padding-right: 0; }
/* pricing: comparison & FAQ */
.table-scroll { -webkit-overflow-scrolling: touch; }
.compare { width: 100%; max-width: 860px; margin: 0 auto; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.compare th, .compare td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: center; font-size: .92rem; }
.compare tbody th { text-align: left; font-weight: 600; }
.compare thead th { background: #f6f8fb; font-size: .95rem; }
.compare thead th span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); }
.compare .hl { background: #fff7ef; font-weight: 700; color: var(--brand); }
.compare thead .hl { background: var(--brand); color: #fff; }
.compare thead .hl span { color: #d6e2ef; }
.compare td.no { color: #b0b8c3; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.faq { max-width: 860px; margin-left: auto; margin-right: auto; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; list-style: none; position: relative; padding-right: 40px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 12px; font-size: 1.2rem; color: var(--brand-2); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 18px 16px; color: #374151; }
.sec-head { gap: 12px; }
.sec-head a { white-space: nowrap; }
.option-row .btn { white-space: nowrap; flex: none; }
@media (max-width: 600px) {
  .option-row { flex-direction: column; align-items: stretch; }
  .option-row .btn { width: 100%; }
  .compare th, .compare td { padding: 10px 8px; font-size: .84rem; }
  .compare thead th span { display: none; }
  .compare tbody th { width: 52%; }
}
/* values hidden from viewers without paid access */
.locked-val { display: inline-flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.locked-text { color: #9aa4b2; letter-spacing: .06em; font-weight: 700; }
.locked-note { font-size: .72rem; font-weight: 700; color: #b85410; background: #fff1e6; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.locked-link { font-size: .8rem; font-weight: 700; white-space: nowrap; }
.aw-lock { margin-left: auto; }
.aw-lock .locked-text { display: none; }
.locked-panel { font-size: .85rem; background: #fff7ef; border: 1px solid #f7d7bb; border-radius: 8px; padding: 10px 12px; margin: 6px 0; }
/* 収集元一覧 */
.lead-sm { font-size: 1.02rem; margin: 6px 0 4px; }
.src-region { border-left: 4px solid var(--brand-2); padding-left: 10px; }
.src-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.src-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.src-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.src-card h3 { font-size: 1rem; margin: 0; line-height: 1.4; }
.src-meta { margin: 0; font-size: .88rem; color: var(--muted); }
.src-meta .tag { display: inline-block; background: var(--bg, #f3f4f6); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; font-size: .78rem; margin-right: 4px; color: var(--ink); }
.src-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 0; padding-top: 8px; border-top: 1px dashed var(--line); }
.src-stats div { text-align: center; }
.src-stats dt { font-size: .74rem; color: var(--muted); }
.src-stats dd { margin: 0; font-weight: 700; }
.badge { display: inline-block; font-size: .74rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; white-space: nowrap; background: #eef2f7; color: #374151; }
.badge-ok { background: #dcfce7; color: #166534; }
.badge-warn { background: #fef3c7; color: #92400e; }
.src-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.src-list li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; }
/* 商機分析（insights / renewals） */
.subnav .nav-new { display: inline-block; margin-left: 4px; font-size: .62rem; font-weight: 800; background: var(--accent); color: #fff; border-radius: 4px; padding: 1px 4px; vertical-align: 2px; }
.insight-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 4px 0 18px; }
.insight-tabs a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); text-decoration: none; }
.insight-tabs a b { font-size: 1rem; }
.insight-tabs a span { font-size: .8rem; color: var(--muted); }
.insight-tabs a:hover { border-color: var(--brand-2); }
.insight-tabs a.on { border: 2px solid var(--brand-2); background: #eef5fc; }
.insight-tabs a.on b { color: var(--brand-2); }
.page-title { margin: 0 0 4px; display: flex; flex-direction: column; gap: 2px; }
.page-title small { font-size: .9rem; font-weight: 600; color: var(--muted); }
.page-note { margin-top: 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 10px 0 14px; }
.filter-bar label { display: flex; flex-direction: column; gap: 4px; font-size: .76rem; font-weight: 700; color: var(--muted); min-width: 130px; }
.filter-bar label.fb-wide { flex: 1 1 220px; }
.filter-bar select { height: 38px; padding: 0 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .9rem; color: var(--ink); width: 100%; }
.filter-bar .fb-check { flex-direction: row; align-items: center; gap: 6px; min-width: 0; height: 38px; font-size: .86rem; color: var(--ink); }
.filter-bar .fb-actions { display: flex; gap: 8px; margin-left: auto; }
.filter-bar .btn { height: 38px; display: inline-flex; align-items: center; }
.btn-ghost { background: #fff; border: 1px solid var(--brand-2); color: var(--brand-2); }
.kpi-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 14px; }
.kpi { flex: 1 1 160px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.kpi span { display: block; font-size: .76rem; font-weight: 700; color: var(--muted); }
.kpi strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; color: var(--brand); }
.kpi em { font-style: normal; font-size: .8rem; color: var(--muted); margin-left: 4px; }
.kpi .masked { color: var(--muted); letter-spacing: .1em; }
.table-scroll { overflow-x: auto; border-radius: 8px; }
.data-table { min-width: 720px; background: var(--card); }
.data-table th { background: #f6f8fb; font-size: .8rem; white-space: nowrap; }
.data-table td.num, .data-table th.num { text-align: right; white-space: nowrap; }
.data-table tbody tr:hover { background: #f8fbff; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-chips span { background: #eef2f7; border-radius: 999px; padding: 1px 8px; font-size: .76rem; white-space: nowrap; }
.when { display: inline-block; font-weight: 700; color: var(--brand); }
.when-next { color: var(--accent); }
@media (max-width: 640px) {
  .insight-tabs { grid-template-columns: 1fr; }
  .filter-bar label, .filter-bar label.fb-wide { flex: 1 1 100%; }
  .filter-bar .fb-actions { margin-left: 0; width: 100%; }
  .filter-bar .fb-actions .btn { flex: 1; justify-content: center; }
  .keyfacts { grid-template-columns: 1fr 1fr; }
  .keyfacts > div:nth-child(2) { border-right: 0; }
  .keyfacts > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
.data-table td:first-child { white-space: nowrap; }
.kpi .masked { font-size: 1.1rem; }
/* トップ：商機分析の入口 */
.insight-entry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ie-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.ie-card:hover { border-color: var(--brand-2); transform: translateY(-1px); }
.ie-ico { font-size: 1.5rem; }
.ie-card b { font-size: 1.05rem; color: var(--brand); }
.ie-card span:not(.ie-ico) { font-size: .86rem; color: var(--muted); line-height: 1.6; }
.ie-card em { font-style: normal; font-weight: 700; font-size: .86rem; color: var(--brand-2); margin-top: auto; }
@media (max-width: 860px) {
  .insight-entry { grid-template-columns: 1fr; }
}
.home-insights { margin-top: 8px; }
/* 自治体から探す */
.pref-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; }
.pref-chips a { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: .86rem; font-weight: 600; }
.pref-chips a small { margin-left: 4px; color: var(--muted); font-weight: 500; }
.pref-chips a:hover { border-color: var(--brand-2); }
.pref-chips a.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pref-chips a.on small { color: #cbd5e1; }
.filter-bar input[type=search] { height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font-size: .9rem; width: 100%; }
.bar-cell { height: 4px; background: #eef2f7; border-radius: 2px; margin-top: 4px; min-width: 80px; }
.bar-cell i { display: block; height: 100%; background: var(--brand-2); border-radius: 2px; }
.open-pill { display: inline-block; background: #dcfce7; color: #166534; font-weight: 700; border-radius: 999px; padding: 1px 9px; font-size: .84rem; }
.agency-table td:first-child { white-space: normal; min-width: 180px; }
.more-prefs { flex-basis: 100%; }
.more-prefs summary { cursor: pointer; font-size: .86rem; font-weight: 700; color: var(--brand-2); padding: 4px 2px; }
.th-sub { font-size: .7rem; font-weight: 500; color: var(--muted); }
/* 案件カード（密度を上げる・期限なしはステータス欄なし） */
.ncard { padding: 14px 16px; gap: 14px; }
.ncard.ncard-nodl { grid-template-columns: minmax(0, 1fr) auto; }
.ncard-title { font-size: 1.05rem; margin: 4px 0 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard-org { margin: 0 0 4px; }
.ncard-facts { gap: 2px 18px; }
.ncard-tags { margin-top: 6px; }
.ncard-note { margin: 6px 0 0; font-size: .78rem; color: var(--muted); }
.watch { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; background: #fff; font-weight: 700; font-size: .82rem; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; text-decoration: none; color: var(--ink); white-space: nowrap; }
.watch:hover { border-color: var(--accent); color: var(--accent); }
.watch.on { background: #fff4eb; border-color: var(--accent); color: var(--accent); }
@media (max-width: 640px) {
  .ncard.ncard-nodl { grid-template-columns: 1fr; }
}
.empty-note { background: #f6f8fb; border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; font-size: .88rem; color: var(--muted); }
.empty-note p { margin: 0 0 4px; }
/* 料金プラン */
.notice-banner { background: #fff4eb; border: 1px solid #f6d6bd; border-radius: 10px; padding: 12px 16px; margin: 4px 0 16px; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .92rem; }
.cycle-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: #fff; margin: 4px auto 16px; }
.pricing-hero { text-align: center; }
.cycle-toggle button { border: 0; background: transparent; padding: 7px 16px; border-radius: 999px; font-weight: 700; cursor: pointer; color: var(--muted); }
.cycle-toggle button span { margin-left: 6px; font-size: .72rem; color: var(--accent); }
.cycle-toggle button.on { background: var(--brand); color: #fff; }
.cycle-toggle button.on span { color: #ffd2b0; }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; text-align: left; max-width: 860px; margin: 0 auto 10px; }
.plan-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.plan-card-main { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.plan-badge { position: absolute; top: -12px; left: 20px; margin: 0; background: var(--accent); color: #fff; font-size: .74rem; font-weight: 800; border-radius: 999px; padding: 2px 10px; }
.plan-card .plan-name { margin: 0; font-weight: 800; font-size: 1.05rem; }
.plan-card .plan-price { margin: 0; font-size: 2rem; font-weight: 800; color: var(--brand); font-variant-numeric: tabular-nums; }
.plan-card .plan-price span { font-size: .9rem; font-weight: 600; color: var(--muted); margin-left: 2px; }
.plan-card .plan-features { margin: 8px 0 12px; padding-left: 1.2em; font-size: .9rem; flex: 1; }
.plan-card .plan-features li { margin: 4px 0; }
@media (max-width: 720px) {
  .plan-cards { grid-template-columns: 1fr; }
}
.insight-tabs { overflow: visible; }
.insight-tabs a { box-shadow: none; }
.side-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 10px 14px 14px; }
.side-add > span { flex-basis: 100%; }
.add-chip { border: 1px dashed #b9cbe0; background: #fff; color: var(--brand-2); border-radius: 999px; padding: 3px 10px; font-size: .8rem; font-weight: 700; cursor: pointer; }
.add-chip:hover { border-style: solid; }
/* ページ送り */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin: 18px 0; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; font-weight: 700; font-size: .9rem; text-decoration: none; }
.pagination .pg-num, .pagination .pg-nav { border: 1px solid var(--line); background: #fff; color: var(--ink); }
.pagination a:hover { border-color: var(--brand-2); color: var(--brand-2); }
.pagination .current { background: var(--brand); color: #fff; border: 1px solid var(--brand); }
.pagination .disabled { color: #c0c7d0; background: #f6f8fb; }
.pagination .pg-gap { color: var(--muted); min-width: 20px; }
.region-row { display: grid; grid-template-columns: 110px 1fr; gap: 8px; align-items: start; padding: 6px 0; border-top: 1px dashed var(--line); }
.region-name { font-size: .8rem; font-weight: 700; color: var(--muted); padding-top: 7px; }
.region-row .pref-chips { margin: 0; }
@media (max-width: 640px) {
  .region-row { grid-template-columns: 1fr; }
  .region-name { padding-top: 0; }
}
.header-spacer { flex: 1; }
.more-prefs.inline { flex-basis: 100%; margin-top: 4px; }
.more-prefs.inline .pill { margin: 0 4px 4px 0; }
.hero-fresh { margin: 10px 0 0; font-size: .82rem; color: #dbe7f5; }
.hero-fresh b { color: #fff; }
/* スマホのヘッダー：1行目にロゴ・ログイン・ボタン、2行目に検索 */
@media (max-width: 640px) {
  .header-inner { padding-top: 8px; padding-bottom: 8px; gap: 8px; }
  .logo { order: 1; flex: 1 1 auto; font-size: .95rem; white-space: nowrap; }
  .header-nav { order: 2; gap: 8px; }
  .header-nav .btn-accent { padding: 6px 10px; font-size: .78rem; box-shadow: none; }
  .header-search { order: 3; flex: 1 1 100%; }
  .header-search input { padding: 8px 12px; }
  .header-spacer { display: none; }
  .plan-card-main { order: -1; }
}
