/* デモシステム共通。色は theme/ranoblog/assets/css/main.css の :root と同じ */
:root {
	--bg: #F6F9F8; --surface: #FFF; --tint: #EEF5F3; --ink: #122128; --ink-2: #33434A; --muted: #5E6E74; --line: #DFE7E5;
	--accent: #0C7366; --accent-2: #0A5C52; --accent-ink: #FFF; --accent-soft: #E1F1ED; --mark: #F2BE45; --coral: #E77A60; --sky: #5B9BD5;
	--danger: #B23A22; --danger-soft: #FBE7E2; --warn: #7A5500; --warn-soft: #FCF1D6; --sky-ink: #285F94; --sky-soft: #E4EFF9;
	--f: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
	--num: "Inter", "Helvetica Neue", Arial, sans-serif;
	--r-sm: 8px; --r: 14px;
	--sh: 0 16px 40px rgba(18, 33, 40, .14);
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0E171A; --surface: #152227; --tint: #122025; --ink: #E7EFED; --ink-2: #C6D3D0; --muted: #97AAA6; --line: #2A3D42;
		--accent: #3EC3AF; --accent-2: #5BD3C0; --accent-ink: #05201B; --accent-soft: #163430; --mark: #E8B84A; --coral: #EA8B73; --sky: #82B4E4;
		--danger: #F2A08B; --danger-soft: #3A211C; --warn: #F0CB72; --warn-soft: #362B14; --sky-ink: #A5CBF0; --sky-soft: #1A2F42;
		--sh: 0 16px 40px rgba(0, 0, 0, .5);
		color-scheme: dark;
	}
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.65 var(--f); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.demo-note { padding: 8px 16px; background: var(--mark); color: #122128; font-size: .82rem; font-weight: 700; text-align: center; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 16px 24px; border-bottom: 1px solid var(--line); background: var(--surface); }
.bar__title { font-size: 1.2rem; font-weight: 900; line-height: 1.4; }
.bar__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.page { max-width: 1320px; margin: 0 auto; padding: 24px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-weight: 700; line-height: 1.3; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn--sm { min-height: 36px; padding: 5px 12px; font-size: .86rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--r-sm); background: var(--tint); }
.seg button { min-height: 36px; padding: 4px 16px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(18, 33, 40, .16); }

.field { display: grid; gap: 4px; }
.field > span, label.field > span { color: var(--muted); font-size: .8rem; font-weight: 700; }
.in { width: 100%; min-height: 42px; padding: 7px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); }
.in--num { text-align: right; font-family: var(--num); font-variant-numeric: tabular-nums; }
.panel { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.panel__head h2 { font-size: 1.02rem; font-weight: 900; }
.panel__body { padding: 20px; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--tint); color: var(--ink-2); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.tag--ok { background: var(--accent-soft); color: var(--accent); }
.tag--warn { background: var(--warn-soft); color: var(--warn); }
.tag--bad { background: var(--danger-soft); color: var(--danger); }
.tag--info { background: var(--sky-soft); color: var(--sky-ink); }
.muted { color: var(--muted); font-size: .86rem; }

dialog { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 0; border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--sh); }
dialog::backdrop { background: rgba(9, 18, 22, .55); }
dialog h2 { margin-bottom: 16px; font-size: 1.1rem; }
dialog form { display: grid; gap: 14px; }
.acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.toast { position: fixed; bottom: 24px; left: 50%; z-index: 20; max-width: calc(100vw - 32px); padding: 11px 20px; border-radius: 99px; background: #122128; color: #EAF2F0; font-weight: 700; box-shadow: var(--sh); transform: translate(-50%, 90px); transition: transform .25s; pointer-events: none; }
.toast.is-on { transform: translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 640px) {
	.page { padding: 16px; }
	.bar { padding: 14px 16px; }
	.bar__acts { width: 100%; margin-left: 0; }
	.bar__acts .btn { flex: 1; }
	.in { font-size: 16px; }
}
