:root{--bg:#0f172a;--panel:#111827;--accent:#22d3ee;--muted:#94a3b8;--text:#e5e7eb;--good:#10b981;--bad:#ef4444;--warn:#f59e0b}
    *{box-sizing:border-box}body{margin:0;background:linear-gradient(180deg,#0b1223,#0f172a);color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,"Hiragino Kaku Gothic ProN","Hiragino Sans",Meiryo,sans-serif}
    .wrap{max-width:1100px;margin:auto;padding:16px}
    header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px; padding: 0 8px;}
    .title{font-size:clamp(20px,3vw,28px);font-weight:700;letter-spacing:.3px}
    .card{background:rgba(17,24,39,.7);backdrop-filter:blur(6px);border:1px solid rgba(255,255,255,.06);border-radius:16px;padding:16px}
    .controls{display:grid;grid-template-columns:repeat(12,1fr);gap:16px;align-items:end}
    .controls .field{grid-column:span 12;}
    .controls .field.wide{grid-column:span 12;}
    .controls .field.full{grid-column:1/-1}
    label{display:block;font-size:12px;color:var(--muted);margin-bottom:6px}
    input[type=number],select{width:100%;padding:10px 12px;border-radius:12px;border:1px solid #2a3347;background:#0b1222;color:var(--text);font-size:16px}
    input[type=checkbox]{transform:translateY(1px)}
    button{appearance:none;border:none;border-radius:12px;padding:12px 16px;background:#19233a;color:var(--text);cursor:pointer;font-weight:600;transition:.15s;box-shadow:inset 0 0 0 1px #2a3347;width:100%;}
    button:hover{transform:translateY(-1px);box-shadow:inset 0 0 0 1px var(--accent),0 6px 18px rgba(34,211,238,.12)}
    button.primary{background:linear-gradient(135deg,#0ea5e9,#22d3ee);color:#06121a}
    button.danger{background:linear-gradient(135deg,#f87171,#ef4444)}
    button:disabled{opacity:.5;cursor:not-allowed;transform:none;box-shadow:inset 0 0 0 1px #2a3347}
    .row{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
    .grid{display:grid;grid-template-columns:1fr;gap:16px;margin-top:16px}
    video{width:100%;aspect-ratio:16/9;background:#000;border-radius:14px;border:1px solid #1e293b}
    canvas{display:none}
    .gallery-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;padding:0 4px;}
    .gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;max-height: 400px; overflow-y: auto; padding-right: 8px;}
    .shot{background:#0b1222;border:1px solid #1e293b;border-radius:14px;overflow:hidden}
    .shot img{display:block;width:100%;height:100px;object-fit:cover;background:#000}
    .shot .meta{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;font-size:11px;color:#cbd5e1; flex-wrap: wrap; gap: 4px;}
    .shot .btns{display:flex;gap:8px;padding:0 10px 10px; align-items: center;}
    .shot .btns label { margin-bottom: 0; }
    .shot .btns button { font-size: 12px; padding: 4px 8px; width: auto; }
    .mini{font-size:12px;opacity:.8}
    .foot{margin-top:16px;display:flex;gap:10px;flex-wrap:wrap}
    .kicker{font-variant-numeric:tabular-nums}
    .toast{position:fixed;right:16px;bottom:16px;background:#111827;border:1px solid #374151;color:#e5e7eb;padding:12px 14px;border-radius:12px;max-width:360px;box-shadow:0 8px 24px rgba(0,0,0,.3);display:none; z-index: 100;}
    .toast.show{display:block}

    @media (min-width:961px) {
        .wrap{padding:24px}
        .grid{grid-template-columns:1.1fr .9fr;}
        .controls .field.wide { grid-column: span 6; }
        .gallery{grid-template-columns:repeat(auto-fill,minmax(170px,1fr)); max-height: none;}
        .shot img{height:140px;}
    }

 /* ▼ フッターの文字色を青へ */
    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 { margin-top: 16px; }
.html-style-002 { visibility:hidden; }
