@import url('https://fonts.googleapis.com/css2?family=Concert+One&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=Noto+Sans+JP:wght@400;500;600;700;800;900&display=swap');

:root {
  /* Money Square (https://money-square.net) Design Tokens */
  --ms-brand-primary: #f66264;
  --ms-brand-primary-hover: #e55c5e;
  --ms-brand-primary-dark: #d14345;
  --ms-brand-tint: #ffe6e9;
  --ms-brand-light: #fff1f2;
  --ms-brand-border: #ffbfc5;
  --ms-accent-cyan: #0ea3c9;
  --ms-accent-cyan-light: #d4f3ff;
  --ms-accent-green: #39cd75;
  --ms-accent-yellow: #f7cf2e;
  --ms-text-dark: #333333;
  --ms-text-body: #3e3e3e;
  --ms-text-muted: #8b8e97;
  --ms-bg-base: #fefefe;
}

html {
  font-size: 16px;
  background-color: var(--ms-bg-base);
}

@media (min-width: 768px) {
  html {
    font-size: 17.5px;
  }
}

@media (min-width: 1280px) {
  html {
    font-size: 18px;
  }
}

body {
  font-family: SegoeUI, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック体", "Yu Gothic", YuGothic, "ヒラギノ角ゴシック Pro", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif;
  color: var(--ms-text-body);
  background-color: var(--ms-bg-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.75;
}

.font-heading {
  font-family: 'Concert One', SegoeUI, '游ゴシック Medium', sans-serif;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Hide scrollbar for clean horizontal tabs */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Smooth Transitions & Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn {
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slideDown {
  animation: slideDown 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slideUp {
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.transition-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.transition-card:hover {
  transform: translateY(-2px);
}

/* Range Slider custom styling matching Money Square Coral */
input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  height: 24px;
  width: 24px;
  border-radius: 50%;
  background: #f66264;
  cursor: pointer;
  box-shadow: 0 0 12px rgba(246, 98, 100, 0.5);
  border: 3px solid #ffffff;
  transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  background: #e55c5e;
}

/* Google AdSense Helper */
ins.adsbygoogle {
  position: relative !important;
  z-index: 1 !important;
}

ins.adsbygoogle[data-ad-status="unfilled"] {
  display: none !important;
}

/* Print Optimization */
@media print {
  html {
    font-size: 13.5px !important;
  }

  body {
    background: white !important;
    color: #1e293b !important;
    line-height: 1.35 !important;
  }

  .no-print {
    display: none !important;
  }

  .print-only {
    display: block !important;
  }

  .print-page-break {
    page-break-before: always;
  }

  .print-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
  }

  .print-card {
    page-break-inside: avoid;
    break-inside: avoid;
    box-shadow: none !important;
    border: 1px solid #e2e8f0 !important;
  }

  canvas {
    max-width: 100% !important;
    height: auto !important;
  }
}

