:root{--bg:#0b0c10;--panel:#12141a;--muted:#8a8f98;--acc:#3b82f6;--text:#e7eaee;--ok:#10b981}
    *{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#0b0c10, #0e1116);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Noto Sans JP","Hiragino Kaku Gothic ProN","Yu Gothic UI",sans-serif}
    h1{font-size:clamp(20px,2.4vw,28px);margin:0 0 12px}
    .container{max-width:1100px;margin:0 auto;padding:20px}
    .row{display:grid;gap:16px}
    @media(min-width:900px){.row{grid-template-columns:1.2fr 1fr}}
    .card{background:var(--panel);border:1px solid #1f2430;border-radius:16px;box-shadow:0 10px 30px rgba(0,0,0,.25);}
    .card .hd{padding:18px 20px;border-bottom:1px solid #1c2230}
    .card .bd{padding:18px 20px}
    label{display:block;font-size:12px;color:var(--muted);margin:6px 0}
    input, select{width:100%;padding:10px 12px;border:1px solid #2a3142;border-radius:12px;background:#0e1219;color:var(--text);outline:none}
    input:focus, select:focus{border-color:var(--acc)}
    .grid{display:grid;gap:14px}
    @media(min-width:700px){.grid.two{grid-template-columns:1fr 1fr}}
    .muted{color:var(--muted)}
    .kv{display:flex;justify-content:space-between;align-items:center;border-bottom:1px dashed #232a3a;padding:8px 0}
    .kv b{font-size:18px}
    .pill{display:inline-block;padding:4px 10px;border-radius:999px;background:#0f1625;border:1px solid #1e2740;color:var(--muted);font-size:12px}
    .btn{appearance:none;border:0;background:var(--acc);color:white;padding:10px 14px;border-radius:12px;cursor:pointer;font-weight:600}
    .btn.secondary{background:#1a2234;color:#c6cbd5;border:1px solid #2b3346}
    .btn:disabled{opacity:.6;cursor:not-allowed}
    table{width:100%;border-collapse:collapse}
    th,td{padding:10px 8px;border-bottom:1px solid #1e2533;text-align:right;font-variant-numeric:tabular-nums}
    th:first-child,td:first-child{text-align:center}
    .table-wrap{max-height:420px;overflow:auto;border:1px solid #1e2533;border-radius:12px}
    .note{font-size:12px;color:var(--muted);margin-top:6px}
    .toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
    .legend{display:flex;gap:10px;flex-wrap:wrap}
    .legend .item{display:flex;gap:6px;align-items:center}
    .dot{width:10px;height:10px;border-radius:50%}
    canvas{width:100%;height:320px}

 /* ▼ フッターの文字色を青へ */
    footer {
      text-align: center;
      padding: 10px 0 20px;
      font-size: 0.95rem;
      color: #1565c0;
    }

    footer a {
      color: #1565c0;
      text-decoration: none;
      font-weight: bold;
    }

    footer a:hover {
      color: #0d47a1;
    }

/* ===== 共通固定フッター ===== */
:root {
  --sakurayama-footer-height: 56px;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: calc(var(--sakurayama-footer-height) + 14px) !important;
  box-sizing: border-box;
}

.site-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 2147483000 !important;
  width: 100% !important;
  min-height: var(--sakurayama-footer-height) !important;
  margin: 0 !important;
  padding: 6px 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  text-align: center !important;
  background: rgba(248, 251, 255, 0.97) !important;
  border-top: 1px solid rgba(21, 101, 192, 0.28) !important;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.10) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.site-footer .sakurayama-copyright {
  margin: 0 !important;
  color: #1565c0 !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.site-footer .sakurayama-copyright a {
  color: #1565c0 !important;
  text-decoration: none !important;
  font-weight: 700 !important;
}

.site-footer .sakurayama-copyright a:hover,
.site-footer .sakurayama-copyright a:focus-visible {
  color: #0d47a1 !important;
  text-decoration: underline !important;
}

@media (max-width: 480px) {
  :root {
    --sakurayama-footer-height: 52px;
  }
  .site-footer .sakurayama-copyright {
    font-size: 0.94rem !important;
  }
}

@media print {
  body {
    padding-bottom: 0 !important;
  }
  .site-footer {
    display: none !important;
  }
}

/* HTMLから外部化した要素別スタイル */
.html-style-001 { display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px; }
.html-style-002 { display:flex;align-items:end;gap:10px; }
.html-style-003 { margin-top:16px; }
.html-style-004 { margin-bottom:8px; }
.html-style-005 { background:#60a5fa; }
.html-style-006 { background:#34d399; }
.html-style-007 { background:#f59e0b; }
.html-style-008 { margin-top:16px; }
.html-style-009 { margin-top:16px; }
