/**
 * style.css (v1.5.0 - 極限最適化デザインシステム)
 * 同人即売会 頒布価格＆お釣り・損益最適化シミュレーター Pro
 */

@charset "UTF-8";

/* Base Typography & Reset */
:root {
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --color-primary: #6366f1;
  --color-primary-dark: #4f46e5;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-danger: #ef4444;
}

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Touch & Interaction */
button, input, select, textarea, a {
  touch-action: manipulation;
}

.touch-target {
  min-height: 44px;
}

/* Custom Shadows & Cards */
.custom-shadow {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
}

.dark .custom-shadow {
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.4), 0 2px 6px -1px rgba(0, 0, 0, 0.3);
}

.active-card {
  box-shadow: 0 0 0 2px var(--color-primary), 0 10px 25px -5px rgba(99, 102, 241, 0.25);
}

/* iOS Safari Zoom Prevention */
@media screen and (max-width: 768px) {
  input[type="text"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Toast Animation */
#toast-container {
  pointer-events: none;
}

.toast-message {
  pointer-events: auto;
  animation: toast-in 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.2s ease;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Print Optimization */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }

  header, footer, #toast-container, .preset-btn, #btn-print-page, #btn-reset-all, #btn-theme-toggle,
  .sm\\:hidden, #section-counter, #supplies-grid-container, #faq-accordion-container, [data-lucide="moon"],
  .fixed.bottom-0 {
    display: none !important;
  }

  #print-header {
    display: block !important;
    border-bottom: 2px solid #000;
    padding-bottom: 8px;
    margin-bottom: 16px;
  }

  .custom-shadow, .price-card, .active-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
  }

  main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .grid {
    display: grid !important;
  }
}
