.site-tabs{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));overflow:visible;gap:8px}
.site-tab{min-width:0;white-space:normal;overflow-wrap:anywhere;border-radius:9px;text-align:center;display:flex;align-items:center;justify-content:center}
.container,.card,.two-col>*,.form-grid>*,.stack,.stack label,.hierarchy-level,.hierarchy-department>div{min-width:0}
input,select,textarea{min-width:0;max-width:100%}
.two-col{grid-template-columns:repeat(auto-fit,minmax(min(100%,400px),1fr))}
.form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.page-head,.section-head,.site-master-head,.title-with-handle{flex-wrap:wrap;gap:12px;min-width:0}
.page-head h1,.section-head h2,.site-master h3,.hierarchy-board h2{overflow-wrap:anywhere;min-width:0}
.topbar{height:auto;min-height:64px;gap:16px;flex-wrap:wrap;padding-top:12px;padding-bottom:12px}
.topbar nav{flex-wrap:wrap;min-width:0}
.department-filter{flex-wrap:wrap}.department-filter label{min-width:0;flex:1 1 260px}
.settings-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.cutoff-form{grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr))}
.csv-guide div{grid-template-columns:minmax(0,150px) minmax(0,1fr)}.csv-guide dd{overflow-wrap:anywhere}
.hierarchy-level-heading label{min-width:0;flex:1 1 220px}
.hierarchy-department{flex-wrap:wrap}.hierarchy-department label{min-width:0;flex:1 1 180px}
.master-table{min-width:0;table-layout:fixed}.master-table td,.master-table th{overflow-wrap:anywhere}
.master-table .compact{min-width:0}
@media(max-width:900px){
 .master-table,.master-table tbody,.master-table tr,.master-table td{display:block;width:100%}
 .master-table thead{display:none}
 .master-table tr{padding:12px 0;border-bottom:1px solid #dce7e3}
 .master-table td{padding:6px 0;border:0}
 .master-table td::before{display:inline-block;width:6em;font-weight:700}
 .master-table td:nth-child(1)::before{content:'順番'}
 .master-table td:nth-child(2)::before{content:'部署名'}
 .master-table td:nth-child(3)::before{content:'部署コード'}
 .master-table td:nth-child(4)::before{content:'状態'}
 .master-table td:nth-child(5)::before{content:'操作'}
}
@media(max-width:480px){.csv-guide{grid-template-columns:1fr}.csv-guide div{grid-template-columns:minmax(0,1fr)}.site-master{padding:12px}}
.stack label[hidden],.form-grid label[hidden]{display:none!important}
.department-editor{flex-basis:100%;min-width:0}.department-editor .stack{margin:12px 0}
