/* roi-sim.css */
/* Tailwind CDN を使わず、このページ専用に必要分だけ抜き出した軽量CSS */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    background-color: transparent;
    color: #1e293b;
    line-height: 1.5;
}

/* ===== utility ===== */

.text-slate-800 { color: #1e293b; }
.text-slate-700 { color: #334155; }
.text-slate-600 { color: #475569; }
.text-slate-500 { color: #64748b; }
.text-slate-400 { color: #94a3b8; }
.text-slate-300 { color: #cbd5e1; }

.text-blue-900 { color: #1e3a8a; }
.text-blue-800 { color: #1e40af; }
.text-blue-700 { color: #1d4ed8; }

.text-white { color: #ffffff; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }

.leading-none { line-height: 1; }
.leading-relaxed { line-height: 1.625; }

.text-center { text-align: center; }
.whitespace-nowrap { white-space: nowrap; }

.bg-white { background-color: #ffffff; }
.bg-slate-50 { background-color: #f8fafc; }
.bg-blue-50 { background-color: #eff6ff; }

.bg-accent { background-color: #d97706; }
.bg-dark { background-color: #1e293b; }
.accent-color { color: #d97706; }

.border { border: 1px solid #e2e8f0; }
.border-b { border-bottom: 1px solid #e2e8f0; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-blue-100 { border-color: #dbeafe; }
.border-blue-200 { border-color: #bfdbfe; }
.border-dashed { border-style: dashed; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

.shadow-md {
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -2px rgba(15, 23, 42, 0.1);
}
.shadow-lg {
    box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.1);
}

.hidden { display: none !important; }
.block { display: block; }
.flex { display: flex; }
.grid { display: grid; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }

.flex-grow { flex-grow: 1; }

.relative { position: relative; }
.absolute { position: absolute; }
.overflow-hidden { overflow: hidden; }

.top-0 { top: 0; }
.right-0 { right: 0; }

.w-full { width: 100%; }
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }

.max-w-5xl { max-width: 64rem; }
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}
.pb-2 { padding-bottom: 0.5rem; }
.pt-2 { padding-top: 0.5rem; }

.mr-1 { margin-right: 0.25rem; }
.mr-4 { margin-right: 1rem; }
.ml-2 { margin-left: 0.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.-mt-4 { margin-top: -1rem; }
.-mr-4 { margin-right: -1rem; }

.opacity-20 { opacity: 0.2; }

.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.gap-8 { gap: 2rem; }

/* ===== responsive ===== */

@media (min-width: 768px) {
    .md\:p-8 { padding: 2rem; }
    .md\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
    .md\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
    .lg\:col-span-5 { grid-column: span 5 / span 5; }
    .lg\:col-span-7 { grid-column: span 7 / span 7; }
}

/* ===== form ===== */

input[type="number"] {
    text-align: right;
    border: 1px solid #cbd5e1;
    border-radius: 0.25rem;
    padding: 0.5rem;
    width: 100%;
    font-size: 1.125rem;
    background: #ffffff;
    color: #1e293b;
}

input[type="number"]:focus {
    outline: none;
    border-color: #d97706;
    box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2);
}

/* 数字入力のスピンボタンの見た目を少し整える */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    margin: 0;
}

/* canvas親の見た目補助 */
#chart_container,
#no_chart_msg {
    min-height: 300px;
}

canvas {
    display: block;
    max-width: 100%;
}