/* 自治体情報×SOS-0006（/sos0006/jichitai/）P1 2026-11-22 */

.jt-ico { vertical-align: -3px; flex: none; }

/* ---- 検索ボックス ---- */
.jt-search { position: relative; max-width: 560px; margin: 18px 0 0; }
.jt-search-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #1a6fb5; border-radius: 10px; padding: 10px 14px; }
.jt-search-row .jt-ico { color: #1a6fb5; }
.jt-search-row input { flex: 1; border: 0; outline: none; font-size: 16px; background: transparent; min-width: 0; }
.jt-search-results { position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid #d4dbe3; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.12); list-style: none; margin: 0; padding: 6px; max-height: 340px; overflow-y: auto; }
.jt-search-results li { margin: 0; }
.jt-search-results a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; text-decoration: none; color: #1c2b39; }
.jt-search-results a:hover, .jt-search-results a:focus { background: #eef5fb; }
.jt-sr-city { font-weight: 700; }
.jt-sr-pref { color: #5a6b7a; font-size: 12px; }
.jt-sr-meta { margin-left: auto; display: flex; gap: 6px; font-size: 11px; color: #1a6fb5; white-space: nowrap; }
.jt-sr-empty { padding: 10px 12px; color: #5a6b7a; font-size: 13px; }

/* ---- 共通 ---- */
.jt-intro { padding: 26px 0 8px; }
.jt-intro p { max-width: 860px; line-height: 1.9; }
.jt-section { padding: 26px 0; }
.jt-section h2 { display: flex; align-items: center; gap: 8px; font-size: 22px; margin: 0 0 14px; color: #143a5c; }
.jt-note { color: #5a6b7a; font-size: 13px; line-height: 1.8; margin-top: 14px; }
.jt-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.jt-badge-install { background: #e7f3ec; color: #1c7c45; }
.jt-badge-prog { background: #e8f1fa; color: #1a6fb5; }
.jt-badge-works { background: #fdf0e3; color: #c0691a; }

/* ---- 都道府県グリッド ---- */
.jt-prefs { padding: 26px 0 40px; }
.jt-prefs h2 { font-size: 22px; color: #143a5c; }
.jt-pref-grid, .jt-muni-grid { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.jt-pref-card, .jt-muni-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #d4dbe3; border-radius: 10px; padding: 12px 14px; text-decoration: none; color: #1c2b39; transition: border-color .15s, box-shadow .15s; min-height: 58px; }
.jt-pref-card:hover, .jt-muni-card:hover { border-color: #1a6fb5; box-shadow: 0 4px 14px rgba(26,111,181,.12); }
.jt-pref-name, .jt-muni-name { font-weight: 700; }
.jt-pref-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.jt-muni-grid-plain .jt-muni-card { background: #f7f9fb; }
.jt-munis { padding: 10px 0 40px; }
.jt-munis h2 { font-size: 20px; color: #143a5c; margin: 26px 0 0; }

/* ---- 導入実績 ---- */
.jt-install-total { font-size: 17px; }
.jt-install-total strong { font-size: 24px; color: #1c7c45; }
.jt-pref-total { color: #5a6b7a; font-size: 13px; margin-left: 8px; }
.jt-install-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; max-width: 760px; }
.jt-install-list li { display: flex; justify-content: space-between; align-items: center; background: #f2f8f4; border: 1px solid #cde5d6; border-radius: 8px; padding: 9px 14px; }
.jt-install-type { font-weight: 600; font-size: 14px; }
.jt-install-count { font-weight: 700; color: #1c7c45; }

/* ---- 制度カード ---- */
.jt-program { background: #fff; border: 1px solid #d4dbe3; border-left: 4px solid #1a6fb5; border-radius: 10px; padding: 16px 18px; margin: 0 0 14px; max-width: 860px; }
.jt-program.is-expired { border-left-color: #b5b5b5; background: #fafafa; }
.jt-program-head h3 { margin: 8px 0 0; font-size: 17px; }
.jt-ptype { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #e8f1fa; color: #1a6fb5; margin-right: 8px; }
.jt-ptype-mandate { background: #fdeef0; color: #c22f45; }
.jt-ptype-other { background: #f0f0f0; color: #555; }
.jt-expired-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #a05252; background: #f8ecec; padding: 2px 10px; border-radius: 999px; }
.jt-active-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; color: #1c7c45; background: #e7f3ec; padding: 2px 10px; border-radius: 999px; }
.jt-program-summary { line-height: 1.85; margin: 10px 0 0; }
.jt-program-dl { display: grid; grid-template-columns: 72px 1fr; gap: 4px 12px; margin: 12px 0 0; font-size: 14px; }
.jt-program-dl dt { font-weight: 700; color: #5a6b7a; }
.jt-program-dl dd { margin: 0; }
.jt-expired-note { background: #fdf6ec; border: 1px solid #ecd9b8; border-radius: 8px; padding: 10px 14px; font-size: 13px; line-height: 1.8; margin: 12px 0 0; }
.jt-source { font-size: 12px; color: #5a6b7a; margin: 12px 0 0; word-break: break-all; }
.jt-checked { margin-left: 6px; }
.jt-empty { background: #f5f8fa; border: 1px dashed #c3cfd9; border-radius: 10px; padding: 16px 18px; max-width: 860px; line-height: 1.85; }
.jt-mandate-common { background: #eef5fb; border-radius: 10px; padding: 18px 20px; margin: 22px 0 0; max-width: 860px; }
.jt-mandate-common h3 { margin: 0 0 8px; font-size: 16px; color: #143a5c; }
.jt-mandate-common p { line-height: 1.85; margin: 0 0 8px; font-size: 14px; }

/* ---- 取付事例 ---- */
.jt-works-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.jt-works-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #d4dbe3; border-radius: 10px; padding: 12px 14px; text-decoration: none; color: #1c2b39; }
.jt-works-card:hover { border-color: #c0691a; box-shadow: 0 4px 14px rgba(192,105,26,.12); }
.jt-works-title { font-weight: 700; font-size: 14px; line-height: 1.6; }
.jt-works-meta { font-size: 12px; color: #5a6b7a; }

/* ---- CTA ---- */
.jt-cta { background: #143a5c; color: #fff; padding: 34px 0; margin-top: 10px; }
.jt-cta h2 { color: #fff; font-size: 21px; margin: 0 0 10px; }
.jt-cta p { line-height: 1.85; max-width: 760px; }
.jt-cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.jt-cta .button-outline { border: 2px solid #fff; color: #fff; background: transparent; }

/* テキストリンクのボタン化 */
.jt-link-row { margin: 14px 0 0; }
.jt-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: #fff;
  color: #1a5c96;
  border: 2px solid #1a5c96;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.4;
  transition: background .15s, color .15s, transform .15s;
}
.jt-link-btn:hover {
  background: #1a5c96;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}
.jt-link-btn .jt-ico-arrow { flex-shrink: 0; transition: transform .15s; }
.jt-link-btn:hover .jt-ico-arrow { transform: translateX(2px); }

@media (max-width: 640px) {
  .jt-pref-grid, .jt-muni-grid { grid-template-columns: repeat(2, 1fr); }
  .jt-install-list, .jt-works-list { grid-template-columns: 1fr; }
  .jt-link-btn { width: 100%; justify-content: center; padding: 12px 16px; }
}
