/* 管理画面 */
.admin-page { background: #f1f5f9; }
.admin-shell { min-height: 100vh; display: flex; flex-direction: column; }

.admin-top {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(16px, 3vw, 36px);
  height: 68px;
  background: var(--navy);
  color: #dbe6f3;
}
.admin-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; line-height: 1.25; }
.admin-brand .logo { width: 32px; height: 32px; }
.admin-brand small { display: block; font-size: 10px; font-weight: 500; color: #93a6bd; letter-spacing: 0.1em; }
.admin-brand.dark { color: var(--ink); margin-bottom: 26px; }
.admin-brand.dark small { color: var(--muted); }

.admin-nav { display: flex; gap: 4px; margin-right: auto; flex-wrap: wrap; }
.admin-nav a {
  padding: 8px 14px;
  border-radius: 9px;
  font-size: 13px;
  color: #b9c7d8;
}
.admin-nav a:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.admin-nav a.active { background: rgba(14, 165, 164, 0.2); color: #7ee7e5; }

.admin-user { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #9fb1c6; }
.admin-user form { margin: 0; }
.admin-user .link-btn { color: #dbe6f3; border-color: rgba(255, 255, 255, 0.25); }

.admin-main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 34px 0 64px; flex: 1; }
.admin-foot { padding: 22px; text-align: center; font-size: 11px; color: #94a3b8; }

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.admin-head h1 { font-size: 26px; margin-bottom: 8px; }
.admin-head p { max-width: 62em; font-size: 13px; }
.admin-head .btn-primary.small { margin-top: 4px; white-space: nowrap; }

.btn-primary.small { font-size: 14px; padding: 11px 18px; border-radius: 10px; }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.badge.ok { background: #dcfce7; color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; }
.badge.off { background: #e2e8f0; color: #475569; }
.badge.expired { background: #fef3c7; color: #92400e; }
.badge.ng { background: #fee2e2; color: #b91c1c; }

.flash {
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  border-radius: 12px;
  font-size: 13px;
}
.notice {
  margin-top: 18px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13px;
}

.one-time {
  margin-bottom: 22px;
  padding: 20px 22px;
  border-radius: 16px;
  background: #0b1524;
  color: #e8eff8;
  border: 1px solid #1e3a5f;
}
.one-time strong { display: block; font-size: 15px; margin-bottom: 6px; }
.one-time p { font-size: 12px; color: #a9b8ca; margin-bottom: 12px; }
.one-time code {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: #7ee7e5;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
}
.stat span { display: block; font-size: 11px; color: var(--muted); letter-spacing: 0.06em; margin-bottom: 4px; }
.stat strong { font-size: 28px; line-height: 1.1; }

.table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 900px; }
.admin-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 700;
  padding: 13px 16px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
  white-space: nowrap;
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid #eef2f7; vertical-align: top; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table td.num, .admin-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table code { background: #f1f5f9; padding: 2px 7px; border-radius: 6px; font-size: 12px; }
.row-note { display: block; font-size: 11px; color: var(--muted); font-weight: 400; margin-top: 3px; }
.empty-row { text-align: center; color: var(--muted); padding: 34px !important; }

.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.actions form { margin: 0; display: inline; }
.mini {
  display: inline-block;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 11px;
  color: #334155;
  cursor: pointer;
  white-space: nowrap;
}
.mini:hover { border-color: #94a3b8; color: var(--ink); }
.mini.danger { color: #b91c1c; border-color: #fecaca; }
.mini.danger:hover { background: #fef2f2; }

.admin-form {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 26px;
  max-width: 680px;
  display: grid;
  gap: 8px;
}
.admin-form label { font-size: 13px; font-weight: 700; color: #334155; margin-top: 10px; }
.admin-form input[type="text"], .admin-form input[type="password"], .admin-form input[type="date"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}
.admin-form input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.16); }
.admin-form .check { display: flex; align-items: center; gap: 8px; font-weight: 500; margin-top: 14px; }
.admin-form .check input { width: 18px; height: 18px; }
.req { color: #b91c1c; font-size: 11px; font-weight: 700; margin-left: 4px; }
.hint { font-size: 11px; color: var(--muted); }
.form-foot { display: flex; align-items: center; gap: 16px; margin-top: 22px; }
.form-foot .btn-primary { margin-top: 0; font-size: 15px; padding: 13px 24px; }
.btn-danger {
  background: #dc2626;
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 13px 22px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
}
.btn-danger:hover { background: #b91c1c; }

.danger-box {
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 20px;
  max-width: 680px;
}
.danger-box strong { font-size: 17px; }
.danger-box p { font-size: 13px; color: #475569; margin-top: 6px; }

.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.admin-login-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.admin-login-card h1 { font-size: 22px; margin-bottom: 6px; }
.admin-login-card form { display: grid; gap: 8px; margin-top: 20px; }
.admin-login-card label { font-size: 13px; font-weight: 700; color: #334155; margin-top: 10px; }
.admin-login-card input {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
}
.admin-login-card input:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 165, 164, 0.16); }
.admin-login-card .btn-primary { width: 100%; margin-top: 18px; }
.admin-login-card .fine { margin-top: 20px; }

@media (max-width: 820px) {
  .admin-top { flex-wrap: wrap; height: auto; padding: 12px 16px; gap: 10px; }
  .admin-nav { order: 3; width: 100%; margin-right: 0; overflow-x: auto; }
  .admin-user { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .admin-head { flex-direction: column; gap: 12px; }
  .admin-main { padding-top: 24px; }
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 16px;
  width: fit-content;
}
.filter-bar label { font-size: 12px; color: var(--muted); }
.filter-bar select {
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 13px;
  background: #fff;
}


/* v3.1 カテゴリ・動画の並び替え */
.section-title { font-size: 16px; margin: 26px 0 10px; }

.cat-sort-list {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 6px 10px;
  margin-bottom: 14px;
}
.cat-sort-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 6px;
  border-bottom: 1px solid #eef2f7;
  border-radius: 8px;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
}
.cat-sort-item:last-child { border-bottom: 0; }
.cat-sort-item:hover { background: #f8fafc; }
.cat-sort-item.dragging, .video-sort-item.dragging {
  opacity: 0.5;
  background: #eff6ff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.1);
}
.drag-handle {
  flex: none;
  width: 28px;
  height: 32px;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 7px;
  cursor: grab;
  user-select: none;
  touch-action: none;
}
.drag-handle:hover { background: #e2e8f0; color: #475569; }
.cat-sort-main { min-width: 0; flex: 1; }
.cat-sort-main strong { display: block; font-size: 14px; }
.cat-sort-main small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.cat-sort-count { flex: none; font-size: 11px; color: var(--muted); }
.admin-cat-group { margin-bottom: 18px; }
.admin-cat-group > header { display: flex; align-items: baseline; gap: 10px; margin: 0 0 8px 2px; }
.admin-cat-group > header h3 { font-size: 13px; }
.admin-cat-group > header span { font-size: 11px; color: var(--muted); }

.admin-video-groups { display: block; }
.admin-video-group {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px 20px;
  margin-bottom: 18px;
}
.admin-video-group > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eef2f7;
}
.admin-video-group > header h2 { font-size: 18px; margin: 0 0 2px; }
.admin-video-group > header p { font-size: 11px; color: var(--muted); margin: 0; }
.admin-video-group > header h2::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: 2px; }
.count-pill { background: #f1f5f9; color: #64748b; border-radius: 999px; padding: 4px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sort-guide { margin: -4px 0 16px; padding: 10px 14px; border-radius: 10px; background: #f8fafc; border: 1px solid #e2e8f0; color: #475569; font-size: 12px; }
.sort-hint { font-size: 11px; color: #64748b; white-space: nowrap; }
.video-sort-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  min-height: 60px;
}
.video-sort-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e8edf3;
  border-radius: 12px;
  overflow: hidden;
  padding: 0;
  cursor: grab;
  user-select: none;
  touch-action: pan-y;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.video-sort-item:hover { border-color: #cbd5e1; box-shadow: 0 6px 18px rgba(15, 23, 42, 0.07); }
.video-sort-item.dragging, .cat-sort-item.dragging {
  opacity: 0.6;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.16);
}
.video-sort-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #0b1524;
  overflow: hidden;
}
.video-mini {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.video-duration {
  position: absolute;
  right: 9px;
  bottom: 9px;
  z-index: 2;
  background: rgba(11, 21, 36, 0.8);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 5px;
}
.video-sort-thumb .drag-handle {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  width: 27px;
  height: 27px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(11, 21, 36, 0.68);
  border-radius: 7px;
  font-size: 14px;
  opacity: 0.9;
}
.video-sort-thumb .drag-handle:hover { background: rgba(11, 21, 36, 0.9); color: #fff; }
.video-sort-body { display: flex; flex-direction: column; gap: 6px; padding: 11px 12px 12px; min-width: 0; }
.video-title {
  font-size: 13.5px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-file {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.video-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.video-card-meta .badge { font-size: 10px; padding: 2px 7px; }
.video-card-meta .actions { display: flex; align-items: center; gap: 4px; }
.video-card-meta .actions .mini { min-height: 28px; padding: 3px 8px; font-size: 10.5px; }
body.is-sorting, body.is-sorting * { cursor: grabbing !important; }
body.is-sorting { user-select: none; }
.drop-target { outline: 2px dashed var(--teal); outline-offset: 3px; background: #f0fdfa; }

/* 企業一覧 統計 */
.company-stats { gap: 16px; }
.company-stats .stat {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 16px;
  min-height: 96px;
  padding: 18px 22px;
  border-radius: 16px;
}
.company-stats .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #cbd5e1;
}
.company-stats .stat.is-total::before { background: var(--navy); }
.company-stats .stat.is-active::before { background: var(--teal); }
.company-stats .stat.is-expired::before { background: var(--amber); }
.company-stats .stat.is-active { background: linear-gradient(180deg, #fff, #f7fdfc); border-color: #cceceb; }
.company-stats .stat.is-expired { background: linear-gradient(180deg, #fff, #fffbf2); border-color: #fde8c6; }
.company-stats .stat span { grid-column: 1; grid-row: 1; margin: 0; }
.company-stats .stat small { grid-column: 1; grid-row: 2; margin: 0; }
.company-stats .stat strong {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.company-stats .stat.is-active strong { color: var(--teal-d); }
.company-stats .stat.is-active small { color: #0f766e; font-weight: 700; }
.company-stats .stat.is-expired strong { color: #b45309; }
.company-stats .stat.is-expired small { color: #b45309; font-weight: 700; }

/* 企業詳細 */
.company-page .admin-main { width: min(1120px, calc(100% - 32px)); }
.company-page .admin-head { align-items: flex-end; margin-bottom: 26px; }
.company-page .admin-head h1 { font-size: 30px; letter-spacing: -0.01em; }
.company-page .admin-head .head-actions { display: flex; align-items: center; gap: 8px; padding-bottom: 2px; }
.company-page .admin-head .head-actions .mini { min-height: 46px; padding: 0 18px; font-size: 14px; }
.company-page .admin-head .btn-primary.small { margin-top: 0; }

.company-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid #dfe7ee;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.05);
}
.company-overview-main {
  padding: 26px 30px 28px;
  background:
    radial-gradient(620px 180px at 100% 0, rgba(14, 165, 164, 0.08), transparent 70%),
    #fff;
}
.company-label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted);
}
.company-code-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.company-code-line code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: clamp(24px, 3.1vw, 34px);
  line-height: 1.2;
  letter-spacing: 0.07em;
  font-weight: 700;
  color: var(--navy);
}
.company-code-line .code-copy { margin: 0; min-height: 38px; padding: 0 14px; font-size: 12px; }
.company-code-line .code-reissue { margin: 0; }
.link-action {
  border: 0;
  background: transparent;
  padding: 4px 2px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-action:hover { color: #b91c1c; }
.company-code-help { margin-top: 10px; font-size: 12px; color: var(--muted); }
.company-status {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border-left: 1px solid #edf2f7;
  background: #f8fafc;
}
.company-status .company-label { margin-bottom: 12px; }
.company-status-line { display: flex; align-items: center; gap: 10px; }
.company-status-line .badge { font-size: 13px; padding: 5px 12px; }
.company-status-note { margin-top: 10px; font-size: 12px; color: #475569; }
.company-status.is-ok { background: linear-gradient(160deg, #f7fdfc, #eefaf9); }
.company-status.is-warn { background: linear-gradient(160deg, #fffdf8, #fff7e8); }
.company-status.is-off { background: linear-gradient(160deg, #fafbfc, #f2f5f8); }

.company-body-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
  align-items: stretch;
}
.company-body-grid .panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  margin: 0;
  padding: 24px 26px;
  border-radius: 18px;
}
.company-body-grid .panel > h2 { font-size: 16px; margin-bottom: 16px; }
.company-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 0;
  border-top: 1px solid #eef2f7;
}
.company-facts > div {
  padding: 14px 0;
  border-bottom: 1px solid #eef2f7;
}
.company-facts > div:nth-child(odd) { padding-right: 20px; }
.company-facts > div:nth-child(even) { padding-left: 20px; border-left: 1px solid #eef2f7; }
.company-facts > div.wide { grid-column: 1 / -1; padding-right: 0; padding-left: 0; border-left: 0; }
.company-facts dt { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.company-facts dd { margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; }
.company-facts > div.wide dd { font-weight: 500; white-space: pre-wrap; }
.company-panel-note {
  margin-top: auto;
  padding-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

.login-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.login-steps li { display: flex; align-items: flex-start; gap: 11px; }
.login-steps li > span {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: #e6f7f6;
  color: var(--teal-d);
  font-size: 12px;
  font-weight: 700;
}
.login-steps strong { display: block; font-size: 13px; line-height: 1.5; }
.login-steps p { margin-top: 1px; font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.login-note {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid #eef2f7;
  font-size: 11px;
  line-height: 1.6;
  color: #64748b;
}

.company-action-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 20px 24px;
  border-color: #fee2e2;
  background: linear-gradient(90deg, #fff, #fffafa);
}
.company-action-panel h2 { font-size: 15px; margin-bottom: 2px; }
.company-action-panel p { margin: 0; font-size: 12px; }
.panel-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mini.danger { color: #b91c1c; border-color: #fecaca; background: #fff5f5; }
.mini.danger:hover { background: #fee2e2; }

.filter-note {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  margin: -6px 0 16px;
  border-radius: 10px;
  background: #effcfb;
  border: 1px solid #b6ecea;
  font-size: 12px;
}
.filter-note strong { color: #0f766e; }
.filter-note a { font-size: 12px; color: #0f766e; text-decoration: underline; }

.current-video-inner { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.current-video-inner img { width: 180px; max-width: 42%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.current-video video { width: 100%; max-width: 520px; border-radius: 10px; background: #000; display: block; margin-bottom: 8px; }

@media (max-width: 1100px) {
  .video-sort-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .company-overview { grid-template-columns: 1fr; }
  .company-status { border-left: 0; border-top: 1px solid #edf2f7; }
  .company-body-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .company-page .admin-head { align-items: flex-start; flex-direction: column; gap: 14px; }
  .company-page .admin-head .head-actions { padding-bottom: 0; }
  .company-action-panel { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .cat-sort-item { gap: 6px; }
  .cat-sort-count { display: none; }
  .sort-hint { display: none; }
  .video-sort-list { grid-template-columns: 1fr; }
  .admin-video-group { padding: 14px 14px 16px; }
  .admin-video-group > header { align-items: flex-start; }
  .company-overview-main, .company-status { padding: 20px; }
  .company-code-line code { font-size: 21px; word-break: break-all; }
  .company-body-grid .panel { padding: 20px; }
  .company-facts { grid-template-columns: 1fr; }
  .company-facts > div:nth-child(odd), .company-facts > div:nth-child(even) { padding: 12px 0; border-left: 0; }
  .company-facts > div.wide { grid-column: auto; }
  .company-action-panel { padding: 18px 20px; }
  .filter-bar { width: 100%; flex-wrap: wrap; }
  .filter-bar input[type="search"] { flex: 1 1 100%; }
}

/* v3.1 動画一覧：0本カテゴリを残し、1列で表示 */
.video-sort-list {
  grid-template-columns: 1fr;
  gap: 10px;
}
.video-sort-item {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  align-items: stretch;
}
.video-sort-thumb { align-self: center; }
.video-sort-body { justify-content: center; padding: 12px 16px; }
.video-file { margin-top: 2px; }
.video-sort-list.empty {
  display: grid;
  place-items: center;
  min-height: 88px;
  background: #fbfdff;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
}
.video-empty {
  padding: 18px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
@media (max-width: 720px) {
  .video-sort-item { grid-template-columns: 136px minmax(0, 1fr); }
  .video-sort-body { padding: 10px 12px; }
  .video-title { font-size: 12.5px; }
  .video-file { margin-top: 2px; }
  .video-card-meta { gap: 6px; }
  .video-card-meta .actions .mini { padding: 3px 6px; }
}
