/*
  安全設定と表示切替だけを担当するファイル。
  KV生成後の意匠は styles.css に実装する。
*/

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; line-height: 1.7; overflow-wrap: anywhere; }
img, picture, video, canvas { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin-top: 0; }

.skip-link { position: fixed; z-index: 9999; top: 8px; left: 8px; transform: translateY(-180%); padding: 10px 16px; color: #fff; background: #111; }
.skip-link:focus { transform: translateY(0); }

body[data-site-mode="kv"] .site-body,
body[data-site-mode="kv"] .site-footer,
body[data-site-mode="kv"] .sticky-action { display: none !important; }

[data-internal-note], [data-design-audit] { margin: 16px; padding: 16px; border: 2px solid currentColor; }
[data-design-audit] { color: #7a1515; background: #fff0f0; }
[data-design-audit][hidden], [data-internal-note][hidden] { display: none; }

:focus-visible { outline: 3px solid currentColor; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

