/* このみちゃんゲーム - 共通スタイル */

/* ========== CSS変数 ========== */
:root {
  /* カラーパレット */
  --primary-pink: #FF9EC8;
  --primary-blue: #A8D8FF;
  --primary-yellow: #FFF4A8;
  --primary-green: #B8F0B8;
  
  --bg-gradient-1: linear-gradient(135deg, #FFE5F1 0%, #D4E4FF 100%);
  --bg-gradient-2: linear-gradient(135deg, #FFF4E8 0%, #FFE8F5 100%);
  --bg-gradient-3: linear-gradient(135deg, #E8F4FF 0%, #F4E8FF 100%);
  
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-muted: #999999;
  --text-white: #FFFFFF;
  
  /* フォント */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-xs: 12px;
  --font-sm: 14px;
  --font-md: 16px;
  --font-lg: 20px;
  --font-xl: 24px;
  --font-2xl: 32px;
  
  /* スペーシング */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  
  /* 角丸 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;
  
  /* シャドウ */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
  
  /* セーフエリア (iPhone) */
  --safe-top: env(safe-area-inset-top, 20px);
  --safe-bottom: env(safe-area-inset-bottom, 34px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  
  /* タッチターゲット */
  --touch-min: 48px;
}

/* ========== リセット ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

html, body {
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  font-family: var(--font-family);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg-gradient-1);
  color: var(--text-primary);
  font-size: var(--font-md);
  line-height: 1.6;
  user-select: none;
  -webkit-user-select: none;
}

/* ========== ユーティリティクラス ========== */
.no-select {
  user-select: none;
  -webkit-user-select: none;
}

.text-center {
  text-align: center;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
