[hidden] { display: none !important; }
.demo-main { padding-block: 54px 64px; }
.demo-heading { margin-bottom: 36px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.demo-heading h1 { font-size: clamp(28px, 3.3vw, 42px); font-weight: 650; margin-bottom: 18px; }
.demo-main h2 { font-size: 22px; margin: 0 0 16px; }
.demo-main p { margin: 8px 0; }
.demo-heading .eyebrow { margin-bottom: 18px; }
.demo-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-block: 24px 16px; font-size: 13px; }
.demo-nav a { color: var(--accent); text-decoration: none; font-weight: 600; }
.note, caption { color: var(--muted); font-size: 13px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.toolbar, .actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.actions { margin: 16px 0; }
input, select, button, textarea { font: inherit; }
select, button, input[type=text], input[type=number] { padding: 8px; border: 1px solid #a3ad98; border-radius: 4px; background: #fff; color: inherit; }
select { max-width: 100%; }
button { cursor: pointer; padding: 10px 16px; font-size: 14px; font-weight: 600; }
button:hover { background: #eef0e7; }
button.primary { background: var(--accent); color: white; border-color: var(--accent); }
button.primary:hover { background: #2c4022; }
:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 6px; }
input:invalid { border: 2px solid #93411d; }
textarea { display: block; width: 100%; resize: vertical; padding: 10px; border: 1px solid #a3ad98; border-radius: 4px; background: #fffefa; color: var(--ink); font-family: ui-monospace, monospace; font-size: 13px; }
#adapter-demo p { overflow-wrap: anywhere; }
#adapter-demo { margin-bottom: 24px; }
#json-demo { margin-bottom: 24px; }
#json-result { margin-top: 20px; }
#json-output .scroll { max-height: 640px; }
#json-output th[scope=row] { position: sticky; left: 0; background: #fff; z-index: 1; }
#json-output thead th { position: sticky; top: 0; background: #eef0e7; z-index: 2; }
.demo-main .guide { max-width: none; margin: 20px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: #edf0e7; }
.layout { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 32px; }
.layout > div { min-width: 0; }
section { margin-bottom: 26px; }
.scroll { overflow: auto; max-width: 100%; }
table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: center; }
caption { text-align: left; padding-bottom: 8px; }
th, td { padding: 9px 5px; border-bottom: 1px solid var(--line); white-space: nowrap; }
thead { background: #eef0e7; }
th { font-weight: 600; }
input[type=text] { width: 84px; }
input[type=number] { width: 48px; }
input[type=checkbox] { accent-color: var(--accent); width: 18px; height: 18px; }
.kitchen { background: #e3eee8; color: #214c3c; }
.hall { background: #e8eff7; color: #284765; }
.shortage { background: #fff0e7; color: #802d17; font-weight: 600; }
.washing { background: #f9f0db; color: #6b531d; }
#status { font-weight: 700; padding: 10px; background: #edf0e7; border-left: 4px solid var(--accent); }
.comparison { border-top: 1px solid var(--line); padding-top: 18px; }
details { border-top: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12px; }
li { overflow-wrap: anywhere; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 1100px) { .layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .demo-main { padding-block: 32px; }
  .demo-heading { margin-bottom: 24px; }
}
.feature-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; padding: 0; list-style: none; }
.feature-cards li { padding: 20px; border: 1px solid var(--line); border-radius: 5px; background: #fffefa; }
.feature-cards li:hover { border-color: var(--accent); }
.feature-cards a { color: var(--accent); font-weight: 600; }
.feature-cards p { font-size: 13px; }
#feature-fields label { display: block; margin: 12px 0; }
#feature-fields input[type=number] { width: 72px; }
#feature-status { font-weight: 700; }
.feature-overview { margin: 16px 0; }
.feature-overview h3 { margin-bottom: 4px; }
.feature-validity { color: var(--accent); }
.feature-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin: 16px 0; }
.feature-metric { background: var(--paper); padding: 16px; border: 1px solid var(--line); border-radius: 6px; }
.feature-values { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.feature-values small, #feature-output td small, #feature-output td strong { display: block; }
.feature-values strong { font-size: 24px; white-space: nowrap; }
.feature-condition { grid-column: 1 / -1; }
.feature-condition .feature-values { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.feature-condition .feature-values strong { font-size: 16px; white-space: normal; overflow-wrap: anywhere; }
#feature-fields select { max-width: 100%; }
#feature-output .feature-changed th::after { content: " · 変更"; }
.feature-values small, #feature-output td small { font-size: 12px; font-weight: 400; }
.feature-work { background: #e3eee8; }
.feature-off { background: #f5f6f5; color: var(--muted); }
.feature-changed { outline: 2px solid var(--accent); outline-offset: -3px; }
.feature-people { display: block; letter-spacing: 2px; }
#feature-output h3 { font-size: 17px; }
.feature-shortage-locations { padding-left: 20px; color: #802d17; }
#feature-demo .layout { padding: 24px; border: 1px solid var(--line); border-radius: 5px; background: #fffefa; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); }
@media (max-width: 1100px) { #feature-demo .layout { grid-template-columns: 1fr; } }
@media (max-width: 600px) { #feature-demo .layout { padding: 16px; } }
