/* My道描く本（AIシート）カスタムスタイル */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* スクロールバーのカスタマイズ */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #FFE5D9;
}

::-webkit-scrollbar-thumb {
  background: #FF6B35;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #FFA500;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.container {
  animation: fadeIn 0.3s ease-out;
}

/* フォーカス時のグロー効果 */
input:focus,
textarea:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

/* チェックボックスのカスタマイズ */
input[type="checkbox"] {
  accent-color: #FF6B35;
  cursor: pointer;
}

/* 数値入力のスピンボタン除去（モバイル向け） */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

/* ボタンのアクティブ状態 */
button:active {
  transform: scale(0.98);
}

/* カードホバー効果 */
.card-orange {
  transition: all 0.3s ease;
}

.card-orange:hover {
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
}

/* レスポンシブ調整 */
@media (max-width: 640px) {
  .container {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  h2 {
    font-size: 1.25rem;
  }
}

/* プリント用スタイル */
@media print {
  .fixed {
    display: none;
  }
  
  body {
    background: white;
  }
}
