/* ═══════════════════════════════════════════════════════════════
   Shared security CSS v1.1 (2026-06-07 統一仕様)
   - Anti-copy: prevent text selection except in inputs / contenteditable
   - iOS Safari long-press callout deterrent
   - Drag/save prevention for images, canvas, SVG, video
   - Print: replace with warning banner
   ═══════════════════════════════════════════════════════════════ */

html, body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

input, textarea, [contenteditable], [contenteditable="true"] {
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

img, picture, canvas, svg, video {
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  pointer-events: auto;
}

/* Print prevention: replace body with warning */
@media print {
  body::before {
    content: '⚠ このツールは印刷できません / Print disabled © 2026';
    display: block;
    font-size: 24px;
    color: red;
    text-align: center;
    padding: 40px;
    font-family: sans-serif;
  }
  body > * {
    display: none !important;
    visibility: hidden !important;
  }
}

/* JS-driven no-print fallback */
html.no-print body > * {
  display: none !important;
}
