
        .jihs-wrapper {
          font-family: 'Segoe UI', 'Meiryo', 'Yu Gothic', sans-serif;
          color: #1e293b;
          max-width: 1240px;
          margin: 0 auto;
          box-sizing: border-box;
        }
        
        /* Main Banner Header */
        .jihs-header-banner {
          background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0369a1 100%);
          border-radius: 14px;
          padding: 20px 24px;
          color: #ffffff;
          display: flex;
          align-items: center;
          justify-content: space-between;
          flex-wrap: wrap;
          gap: 16px;
          box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
          margin-bottom: 22px;
        }

        .jihs-header-title {
          font-size: 20px;
          font-weight: 800;
          margin: 0;
          display: flex;
          align-items: center;
          gap: 10px;
        }

        .jihs-header-sub {
          font-size: 13px;
          color: #bae6fd;
          margin-top: 6px;
          line-height: 1.5;
        }

        .jihs-btn-header {
          background: #ffffff;
          color: #0f172a;
          border: none;
          padding: 10px 18px;
          font-size: 13px;
          font-weight: 800;
          border-radius: 8px;
          cursor: pointer;
          transition: all 0.2s;
          box-shadow: 0 2px 6px rgba(0,0,0,0.15);
        }
        .jihs-btn-header:hover {
          background: #f0fdf4;
          transform: translateY(-1px);
        }

        /* Sort & Filter Control Bar */
        .jihs-control-bar {
          background: #ffffff;
          border: 1px solid #e2e8f0;
          border-radius: 12px;
          padding: 14px 18px;
          margin-bottom: 24px;
          display: flex;
          align-items: center;
          justify-content: space-between;
          flex-wrap: wrap;
          gap: 12px;
          box-shadow: 0 2px 8px rgba(0,0,0,0.03);
        }

        .jihs-filter-group {
          display: flex;
          align-items: center;
          gap: 8px;
          flex-wrap: wrap;
        }

        .jihs-control-label {
          font-size: 13px;
          font-weight: 800;
          color: #475569;
          margin-right: 4px;
        }

        .jihs-tab-btn {
          background: #f1f5f9;
          border: 1px solid #cbd5e1;
          color: #334155;
          font-size: 12px;
          font-weight: 700;
          padding: 7px 14px;
          border-radius: 20px;
          cursor: pointer;
          transition: all 0.2s;
        }
        .jihs-tab-btn:hover {
          background: #e2e8f0;
        }
        .jihs-tab-btn.active {
          background: #0284c7;
          border-color: #0284c7;
          color: #ffffff;
          box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
        }

        /* Card Grid */
        .jihs-card-grid {
          display: grid;
          grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
          gap: 24px;
        }

        /* Card Layout */
        .jihs-hybrid-card {
          background: #ffffff;
          border-radius: 16px;
          border: 1px solid #e2e8f0;
          overflow: hidden;
          box-shadow: 0 4px 16px rgba(0,0,0,0.06);
          display: flex;
          flex-direction: column;
          justify-content: space-between;
          transition: transform 0.2s, box-shadow 0.2s;
        }
        .jihs-hybrid-card:hover {
          transform: translateY(-3px);
          box-shadow: 0 10px 24px rgba(0,0,0,0.1);
        }

        /* Theme Color Header Bars */
        .jihs-card-header-bar {
          padding: 14px 18px;
          font-size: 18px;
          font-weight: 800;
          display: flex;
          justify-content: space-between;
          align-items: center;
          color: #ffffff;
        }
        .theme-exceeded .jihs-card-header-bar {
          background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
          border-bottom: 2px solid #991b1b;
        }
        .theme-warning .jihs-card-header-bar {
          background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
          border-bottom: 2px solid #9a3412;
        }
        .theme-caution .jihs-card-header-bar {
          background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
          border-bottom: 2px solid #92400e;
        }
        .theme-history .jihs-card-header-bar {
          background: linear-gradient(135deg, #475569 0%, #334155 100%);
          border-bottom: 2px solid #1e293b;
        }
        .theme-normal .jihs-card-header-bar {
          background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
          border-bottom: 2px solid #1e40af;
        }

        .jihs-status-pill {
          font-size: 11px;
          font-weight: 800;
          padding: 5px 12px;
          border-radius: 20px;
          background: rgba(255, 255, 255, 0.28);
          color: #ffffff;
          backdrop-filter: blur(4px);
          box-shadow: 0 1px 4px rgba(0,0,0,0.15);
        }

        .jihs-card-body {
          padding: 18px;
          flex: 1;
          display: flex;
          flex-direction: column;
        }

        /* 警戒原因のハイライト枠線 (1秒判定) */
        .highlight-alert-box {
          border: 2px solid #ea580c !important;
          background: #fff7ed !important;
          box-shadow: 0 0 10px rgba(234, 88, 12, 0.15);
          position: relative;
        }
        .highlight-alert-badge {
          position: absolute;
          top: -10px;
          right: 12px;
          background: #ea580c;
          color: #ffffff;
          font-size: 10px;
          font-weight: 800;
          padding: 2px 8px;
          border-radius: 10px;
        }

        /* ===== 上下2段 独立セクション ===== */
        
        /* 上段：東京都ブロック */
        .section-tokyo {
          background: #eff6ff;
          border: 1.5px solid #bfdbfe;
          border-radius: 12px;
          padding: 14px;
          margin-bottom: 16px;
        }

        .section-header-tokyo {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 8px;
          border-bottom: 1px solid #dbeafe;
          padding-bottom: 6px;
        }
        .section-title-tokyo {
          font-size: 13px;
          font-weight: 800;
          color: #1e40af;
          display: flex;
          align-items: center;
          gap: 5px;
        }
        .section-stat-tokyo {
          font-size: 16px;
          font-weight: 900;
          color: #1e3a8a;
        }

        /* 東京都 流行到達度メーター */
        .tokyo-meter-box {
          background: #ffffff;
          border: 1px solid #cbd5e1;
          border-radius: 8px;
          padding: 8px 12px;
          margin-bottom: 8px;
        }
        .tokyo-meter-header {
          display: flex;
          justify-content: space-between;
          font-size: 11px;
          font-weight: 700;
          color: #475569;
          margin-bottom: 4px;
        }
        .tokyo-meter-track {
          width: 100%;
          height: 10px;
          background: #e2e8f0;
          border-radius: 5px;
          overflow: hidden;
          position: relative;
        }
        .tokyo-meter-bar {
          height: 100%;
          border-radius: 5px;
          transition: width 0.3s ease;
        }

        /* グラフ vs マップ 切り替えサブバー */
        .tokyo-view-switch {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-bottom: 6px;
        }
        .tokyo-view-tabs {
          display: flex;
          gap: 4px;
        }
        .tokyo-view-btn {
          background: #e0f2fe;
          border: 1px solid #bae6fd;
          color: #0369a1;
          font-size: 11px;
          font-weight: 700;
          padding: 4px 10px;
          border-radius: 6px;
          cursor: pointer;
          transition: all 0.2s;
        }
        .tokyo-view-btn:hover {
          background: #bae6fd;
        }
        .tokyo-view-btn.active {
          background: #0284c7;
          border-color: #0284c7;
          color: #ffffff;
        }
        .tokyo-update-note {
          font-size: 10px;
          color: #0369a1;
          font-weight: 600;
        }

        .chart-box-tokyo {
          position: relative;
          height: 140px;
          width: 100%;
          background: #ffffff;
          border-radius: 8px;
          border: 1px solid #cbd5e1;
          padding: 6px;
          box-sizing: border-box;
          margin-bottom: 6px;
        }

        .map-box-tokyo {
          width: 100%;
          background: #ffffff;
          border-radius: 8px;
          border: 1px solid #cbd5e1;
          overflow: hidden;
          text-align: center;
          margin-bottom: 6px;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
        }
        .tokyo-map-img {
          width: 100%;
          max-height: 200px;
          object-fit: contain;
          display: block;
        }

        .section-sub-tokyo {
          font-size: 10.5px;
          color: #64748b;
          display: flex;
          justify-content: space-between;
          margin-top: 4px;
        }

        /* 下段：全国JIHS 過去5年上限・下限比較ブロック */
        .section-national {
          background: #f8fafc;
          border: 1.5px solid #e2e8f0;
          border-radius: 12px;
          padding: 14px;
          margin-bottom: 16px;
        }

        .section-header-national {
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin-bottom: 8px;
          border-bottom: 1px solid #e2e8f0;
          padding-bottom: 6px;
        }
        .section-title-national {
          font-size: 13px;
          font-weight: 800;
          color: #334155;
          display: flex;
          align-items: center;
          gap: 5px;
        }
        .section-stat-national {
          font-size: 16px;
          font-weight: 900;
          color: #0f172a;
        }

        .chart-box-national {
          position: relative;
          height: 140px;
          width: 100%;
          background: #ffffff;
          border-radius: 8px;
          border: 1px solid #e2e8f0;
          padding: 6px;
          box-sizing: border-box;
          margin-bottom: 6px;
        }

        .jihs-chart-legend {
          display: flex;
          justify-content: center;
          gap: 12px;
          font-size: 10.5px;
          font-weight: 700;
          color: #475569;
          margin-bottom: 4px;
        }
        .legend-item { display: flex; align-items: center; gap: 4px; }
        .legend-color-tokyo { width: 12px; height: 3px; background: #dc2626; border-radius: 2px; }
        .legend-color-threshold { width: 12px; height: 2px; border-top: 2px dashed #b91c1c; }
        .legend-color-line-national { width: 12px; height: 3px; background: #2563eb; border-radius: 2px; }
        .legend-color-range { width: 10px; height: 10px; background: #cbd5e1; border: 1px solid #94a3b8; border-radius: 2px; }

        /* ===== 📰 日本最新ニュース・自治体速報 セクション ===== */
        .section-news-accordion {
          background: #f8fafc;
          border: 1px solid #e2e8f0;
          border-radius: 10px;
          margin-bottom: 14px;
          overflow: hidden;
        }
        .news-header-toggle {
          background: #f1f5f9;
          padding: 9px 14px;
          font-size: 12px;
          font-weight: 800;
          color: #334155;
          display: flex;
          align-items: center;
          justify-content: space-between;
          cursor: pointer;
          user-select: none;
          transition: background 0.2s;
        }
        .news-header-toggle:hover {
          background: #e2e8f0;
        }
        .news-badge-count {
          background: #0284c7;
          color: #ffffff;
          font-size: 10px;
          padding: 2px 7px;
          border-radius: 10px;
        }
        .news-body-content {
          padding: 10px 14px;
          display: none;
        }
        .news-body-content.open {
          display: block;
        }
        /* ニュース種別バッジ */
        .news-tag {
          display: inline-block;
          font-size: 9.5px;
          font-weight: 800;
          padding: 1px 6px;
          border-radius: 4px;
          margin-right: 5px;
          vertical-align: 1px;
        }
        .news-tag-alert {
          background: #fee2e2;
          color: #b91c1c;
          border: 1px solid #fca5a5;
        }
        .news-tag-gov {
          background: #e0f2fe;
          color: #0369a1;
          border: 1px solid #bae6fd;
        }
        .news-tag-media {
          background: #f1f5f9;
          color: #475569;
          border: 1px solid #cbd5e1;
        }

        .news-item {
          padding: 8px 0;
          border-bottom: 1px dashed #cbd5e1;
          font-size: 12px;
          line-height: 1.45;
        }
        .news-item:last-child {
          border-bottom: none;
          padding-bottom: 2px;
        }
        .news-item-title {
          font-weight: 700;
          color: #1e3a8a;
          text-decoration: none;
          display: inline;
        }
        .news-item-title:hover {
          text-decoration: underline;
          color: #2563eb;
        }
        .news-item-meta {
          font-size: 10.5px;
          color: #64748b;
          display: flex;
          gap: 8px;
          margin-top: 3px;
        }

        /* Medical Comment & Action Area */
        .jihs-card-notice {
          font-size: 12.5px;
          line-height: 1.6;
          color: #334155;
          margin: 0 0 10px 0;
        }

        .jihs-action-badge {
          background: #f8fafc;
          border: 1px dashed #94a3b8;
          border-radius: 8px;
          padding: 9px 12px;
          font-size: 12px;
          font-weight: 700;
          color: #1e293b;
          margin-bottom: 12px;
        }

        .jihs-source-footer {
          font-size: 10.5px;
          color: #64748b;
          margin-bottom: 14px;
          padding-top: 8px;
          border-top: 1px dotted #e2e8f0;
        }

        /* 3-Button Stack */
        .jihs-card-buttons {
          display: flex;
          flex-direction: column;
          gap: 6px;
        }

        .jihs-btn {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          gap: 6px;
          padding: 9px 14px;
          font-size: 12.5px;
          font-weight: 700;
          border-radius: 8px;
          border: none;
          cursor: pointer;
          transition: all 0.2s ease;
          text-decoration: none;
          box-sizing: border-box;
        }

        .btn-burgundy { background-color: #881337; color: #fff; }
        .btn-burgundy:hover { background-color: #4c0519; }
        .btn-amber { background-color: #d97706; color: #fff; }
        .btn-amber:hover { background-color: #92400e; }
        .btn-blue { background-color: #0284c7; color: #fff; }
        .btn-blue:hover { background-color: #0369a1; }
        .btn-tokyo { background-color: #1e3a8a; color: #fff; }
        .btn-tokyo:hover { background-color: #0f172a; }
        .btn-outline { background: #ffffff; color: #334155; border: 1px solid #cbd5e1; }
        .btn-outline:hover { background: #f1f5f9; }

        /* Modal Table */
        .jihs-modal-overlay {
          position: fixed;
          top: 0; left: 0; right: 0; bottom: 0;
          background: rgba(15, 23, 42, 0.6);
          backdrop-filter: blur(3px);
          z-index: 99999;
          display: flex;
          align-items: center;
          justify-content: center;
          opacity: 0;
          pointer-events: none;
          transition: opacity 0.25s ease;
        }
        .jihs-modal-overlay.active { opacity: 1; pointer-events: auto; }
        .jihs-modal-container {
          background: #ffffff;
          width: 94%;
          max-width: 960px;
          max-height: 88vh;
          border-radius: 12px;
          overflow: hidden;
          box-shadow: 0 20px 40px rgba(0,0,0,0.25);
          display: flex;
          flex-direction: column;
        }
        .jihs-modal-header {
          background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
          color: #ffffff;
          padding: 16px 20px;
          display: flex;
          justify-content: space-between;
          align-items: center;
        }
        .jihs-modal-title { font-size: 17px; font-weight: 700; margin: 0; }
        .jihs-modal-close {
          background: rgba(255,255,255,0.2);
          border: none;
          color: #fff;
          font-size: 20px;
          width: 32px; height: 32px;
          border-radius: 50%;
          cursor: pointer;
        }
        .jihs-modal-body { padding: 20px; overflow-y: auto; }
        .jihs-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
        .jihs-table th { background: #f1f5f9; padding: 10px; border-bottom: 2px solid #cbd5e1; }
        .jihs-table td { padding: 10px 12px; border-bottom: 1px solid #e2e8f0; }
        .jihs-table tr:nth-child(even) { background-color: #f8fafc; }
        .text-center { text-align: center; }
        .text-right { text-align: right; }
        .font-bold { font-weight: 700; }
      


/* === Layout Modes === */
.mini-card {
  border-left: 4px solid #3b82f6;
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-bottom: 8px;
}
.mini-card.theme-exceeded { border-left-color: #dc2626; }
.mini-card.theme-warning { border-left-color: #ea580c; }
.mini-card.theme-caution { border-left-color: #d97706; }
.mini-card.theme-history { border-left-color: #eab308; }
.mini-card.theme-normal { border-left-color: #16a34a; }

.mini-card .mini-card-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
}

