/* Dayseize 全体の色、文字、初期化、静的問題データ向け互換スタイルを定義する。 */
:root {
    color-scheme: light;
    --color-primary: #e86f18;
    --color-primary-strong: #b9470c;
    --color-primary-soft: #fff1df;
    --color-ink: #213044;
    --color-muted: #647184;
    --color-surface: #ffffff;
    --color-surface-alt: #f6f7f9;
    --color-border: #d9dee7;
    --color-success: #147a42;
    --color-success-soft: #e8f7ee;
    --color-danger: #b42318;
    --color-danger-soft: #fff0ee;
    --color-warning: #805d05;
    --color-warning-soft: #fff8d9;
    --shadow-sm: 0 2px 8px rgba(31, 45, 61, 0.08);
    --shadow-md: 0 14px 32px rgba(31, 45, 61, 0.14);
    --radius-sm: 8px;
    --radius-md: 16px;
    --content-width: 1120px;
    font-family: "Noto Sans JP", "Yu Gothic UI", "Meiryo", system-ui, sans-serif;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

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

html {
    min-width: 320px;
    background: var(--color-surface-alt);
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--color-ink);
    background:
        radial-gradient(circle at 10% -10%, rgba(232, 111, 24, 0.08), transparent 30rem),
        var(--color-surface-alt);
    line-height: 1.7;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--color-primary-strong);
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 3px solid #126bc5;
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

/* 問題JSON内の既存HTMLが使用する表示用クラスを最小限引き継ぐ。 */
.w-full { width: 100%; }
.max-w-2rem { max-width: 2rem; }
.max-h-1rem { max-height: 1rem; }
.max-h-20rem { max-height: 20rem; }
.pt-1 { padding-top: 0.25rem; }
.border-1 { border-style: solid; border-width: 1px; }
.border-gray-500 { border-color: #6b7280; }

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
