/* ════════════════════════════════════════════════════════════════
   MediVoX  shared/css/base.css
   リセット・フォント・ボディ・レイアウト基盤
   ════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@300;400;700&family=Outfit:wght@400;700;900&family=Space+Mono:wght@400;700&display=swap');

/* ── リセット ── */
*, *::before, *::after {
  margin: 0; padding: 0; box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

/* ── 横スクロール完全禁止（html + body 両方に必要） ── */
html {
  overflow-x: hidden;
  width: 100%;
}

/* ── ボディ ── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans JP', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* グリッドパターン背景（dark時のみ）*/
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    linear-gradient(rgba(var(--accent-rgb), .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--accent-rgb), .025) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  z-index: 0;
}
[data-theme="light"] body::before { background-image: none; }

/* ── アプリラッパー ── */
.app {
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
