/* GS Yuasa Digital Warranty Mock - Common Styles */

:root {
  --color-navy: #0F2A55;
  --color-navy-dark: #061731;
  --color-navy-light: #2A4478;
  --color-red: #D3222A;
  --color-red-dark: #A81A20;
  --color-red-soft: #FCE9EA;
  --color-white: #FFFFFF;
  --color-bg: #F6F7F9;
  --color-bg-alt: #EEF1F5;
  --color-border: #E2E5EA;
  --color-muted: #8A94A6;
  --color-text: #2D3542;
  --color-success: #2E7D57;
  --color-warning: #C97B0F;
  --color-warning-soft: #FBEFDD;

  --font-sans: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", "Segoe UI", sans-serif;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow-card: 0 1px 3px rgba(15, 42, 85, .08), 0 1px 2px rgba(15, 42, 85, .04);
  --shadow-header: 0 1px 0 rgba(15, 42, 85, .08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "palt";
}

a { color: var(--color-navy); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; cursor: pointer; }

/* ============================================================
   USER (MOBILE) LAYOUT
   ============================================================ */

.user-page {
  min-height: 100vh;
  background: var(--color-bg);
  display: flex;
  justify-content: center;
}

.user-shell {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
}

.user-header {
  background: var(--color-navy);
  color: var(--color-white);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.user-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
}

.user-header .brand .brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--color-red);
  border-radius: 4px;
  position: relative;
}
.user-header .brand .brand-mark::after {
  content: "GS";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 800;
  color: var(--color-white);
  letter-spacing: 0;
}

.user-header .sub {
  font-size: 11px;
  color: rgba(255, 255, 255, .7);
  letter-spacing: .05em;
}

/* ステップインジケータ */
.step-indicator {
  display: flex;
  gap: 4px;
  padding: 14px 20px 0;
}
.step-indicator .dot {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--color-border);
}
.step-indicator .dot.active { background: var(--color-red); }
.step-indicator .dot.done { background: var(--color-navy); }

.step-label {
  padding: 10px 20px 0;
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: .05em;
}

.user-body {
  flex: 1;
  padding: 20px 20px 32px;
}

.user-body h1 {
  font-size: 22px;
  margin: 8px 0 12px;
  line-height: 1.4;
  letter-spacing: -.01em;
}
.user-body h2 {
  font-size: 15px;
  margin: 24px 0 10px;
  color: var(--color-navy);
  letter-spacing: .02em;
}
.user-body p {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 12px;
  color: var(--color-text);
}
.user-body .lead {
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.7;
}

.user-footer {
  padding: 16px 20px calc(20px + env(safe-area-inset-bottom));
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: sticky;
  bottom: 0;
}

/* ボタン */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  padding: 14px 20px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .05s ease;
  min-height: 48px;
  letter-spacing: .02em;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--color-red);
  color: var(--color-white);
}
.btn-primary:hover { background: var(--color-red-dark); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-navy);
  border-color: var(--color-border);
}
.btn-ghost {
  background: transparent;
  color: var(--color-navy);
}
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; min-height: 36px; font-size: 13px; }

/* カード */
.card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-card);
}
.card + .card { margin-top: 12px; }
.card h3 {
  font-size: 14px;
  margin: 0 0 10px;
  color: var(--color-navy);
  letter-spacing: .02em;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 13px;
}
.info-row:last-child { border-bottom: 0; }
.info-row .label { color: var(--color-muted); flex-shrink: 0; }
.info-row .value { text-align: right; font-weight: 500; color: var(--color-text); }

/* カメラ / 画像 プレビュー */
.preview-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, #0a1a33 0%, #1a3868 100%);
  border-radius: var(--radius);
  overflow: hidden;
  display: grid;
  place-items: center;
  color: var(--color-white);
  margin: 8px 0 16px;
}
.preview-frame .corner {
  position: absolute;
  width: 24px;
  height: 24px;
  border: 2px solid var(--color-red);
}
.preview-frame .corner.tl { top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.preview-frame .corner.tr { top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.preview-frame .corner.bl { bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.preview-frame .corner.br { bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

.preview-frame .scanline {
  position: absolute;
  left: 12%; right: 12%; top: 50%;
  height: 2px;
  background: var(--color-red);
  opacity: .8;
  box-shadow: 0 0 12px var(--color-red);
}

.preview-frame .center-label {
  text-align: center;
  padding: 0 24px;
}
.preview-frame .center-label .type {
  font-size: 11px;
  letter-spacing: .2em;
  color: rgba(255,255,255,.6);
  margin-bottom: 6px;
}
.preview-frame .center-label .product {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: .04em;
}

.receipt-mock {
  background: #FEFBF3;
  color: #333;
  padding: 18px 16px;
  border-radius: 6px;
  width: 76%;
  font-family: "Courier New", monospace;
  font-size: 11px;
  line-height: 1.7;
  transform: rotate(-2deg);
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
}
.receipt-mock .r-store { font-weight: 700; font-size: 13px; margin-bottom: 8px; text-align: center; }
.receipt-mock .r-sep { border-top: 1px dashed #999; margin: 6px 0; }
.receipt-mock .r-row { display: flex; justify-content: space-between; }
.receipt-mock .r-total { font-weight: 700; }

/* 入力欄（見た目のみ） */
.field {
  display: block;
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 6px;
  font-weight: 600;
  letter-spacing: .04em;
}
.field label .req {
  color: var(--color-red);
  margin-left: 4px;
  font-size: 10px;
  vertical-align: 2px;
}
.field label .opt {
  color: var(--color-muted);
  margin-left: 4px;
  font-size: 10px;
  vertical-align: 2px;
}
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 15px;
  background: var(--color-white);
  color: var(--color-text);
  font-family: inherit;
}
.field input:focus, .field select:focus {
  outline: 2px solid var(--color-navy);
  outline-offset: -1px;
  border-color: var(--color-navy);
}
.field input[readonly] {
  background: var(--color-bg-alt);
  color: var(--color-text);
}
.field .hint {
  font-size: 11px;
  color: var(--color-muted);
  margin-top: 6px;
  line-height: 1.5;
}

.check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 0;
  font-size: 13px;
  line-height: 1.6;
  border-bottom: 1px solid var(--color-border);
}
.check:last-of-type { border-bottom: 0; }
.check input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--color-red);
  flex-shrink: 0;
}
.check .desc { color: var(--color-muted); font-size: 12px; margin-top: 2px; }

/* バッジ */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
}
.badge-navy { background: var(--color-navy); color: var(--color-white); }
.badge-red { background: var(--color-red-soft); color: var(--color-red-dark); }
.badge-warn { background: var(--color-warning-soft); color: var(--color-warning); }
.badge-success { background: #E7F3EC; color: var(--color-success); }
.badge-muted { background: var(--color-bg-alt); color: var(--color-muted); }

/* 保証書カード（完了画面） */
.warranty-card {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-light) 100%);
  color: var(--color-white);
  border-radius: 16px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  margin: 20px 0;
}
.warranty-card::before {
  content: "";
  position: absolute;
  top: -40px; right: -40px;
  width: 140px; height: 140px;
  background: rgba(211, 34, 42, .3);
  border-radius: 50%;
}
.warranty-card .wc-brand {
  font-size: 11px;
  opacity: .7;
  letter-spacing: .2em;
  margin-bottom: 8px;
}
.warranty-card .wc-title { font-size: 18px; font-weight: 700; margin-bottom: 20px; }
.warranty-card .wc-number-label { font-size: 11px; opacity: .7; letter-spacing: .15em; margin-bottom: 4px; }
.warranty-card .wc-number { font-size: 28px; font-weight: 800; letter-spacing: .1em; margin-bottom: 20px; font-family: "SF Mono", "Menlo", monospace; }
.warranty-card .wc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.warranty-card .wc-grid .k { font-size: 10px; opacity: .7; letter-spacing: .05em; margin-bottom: 2px; }
.warranty-card .wc-grid .v { font-size: 13px; font-weight: 600; }

/* 通知/アラート */
.notice {
  background: var(--color-bg-alt);
  border-left: 3px solid var(--color-navy);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--color-text);
  margin: 12px 0;
}
.notice.warn { border-left-color: var(--color-warning); background: var(--color-warning-soft); }
.notice strong { color: var(--color-navy); }

/* 完了画面のヒーロー */
.complete-hero {
  text-align: center;
  padding: 24px 0 8px;
}
.complete-hero .check-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--color-red);
  display: inline-grid;
  place-items: center;
  color: var(--color-white);
  font-size: 32px;
  margin-bottom: 12px;
}
.complete-hero h1 { margin: 0 0 4px; font-size: 22px; }
.complete-hero p { color: var(--color-muted); font-size: 13px; margin: 0; }

/* サポート項目 */
.support-list { list-style: none; padding: 0; margin: 12px 0; }
.support-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border);
  align-items: flex-start;
}
.support-list li:last-child { border-bottom: 0; }
.support-list .icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--color-red-soft);
  color: var(--color-red);
  display: grid;
  place-items: center;
  font-size: 16px;
  flex-shrink: 0;
}
.support-list .txt strong { display: block; font-size: 13px; margin-bottom: 2px; color: var(--color-navy); }
.support-list .txt span { font-size: 12px; color: var(--color-muted); line-height: 1.6; }

/* ============================================================
   ADMIN LAYOUT
   ============================================================ */

.admin-page {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--color-navy-dark);
  color: var(--color-white);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
}

.admin-sidebar .side-brand {
  padding: 4px 20px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: 12px;
}
.admin-sidebar .side-brand .logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .04em;
}
.admin-sidebar .side-brand .logo .mark {
  width: 26px; height: 26px;
  background: var(--color-red);
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
}
.admin-sidebar .side-brand .subtitle {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin-top: 4px;
  letter-spacing: .1em;
}

.admin-sidebar nav a {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 20px;
  color: rgba(255,255,255,.75);
  font-size: 13px;
  border-left: 3px solid transparent;
}
.admin-sidebar nav a:hover {
  background: rgba(255,255,255,.04);
  color: var(--color-white);
  text-decoration: none;
}
.admin-sidebar nav a.active {
  color: var(--color-white);
  background: rgba(211,34,42,.12);
  border-left-color: var(--color-red);
  font-weight: 600;
}
.admin-sidebar nav .section {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  padding: 16px 20px 8px;
  letter-spacing: .15em;
}

.admin-sidebar .side-footer {
  margin-top: auto;
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 11px;
  color: rgba(255,255,255,.5);
}
.admin-sidebar .side-footer .user {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85);
  font-size: 12px;
}
.admin-sidebar .side-footer .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-navy-light);
  display: grid; place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.admin-main {
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.admin-header {
  background: var(--color-white);
  padding: 16px 32px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-header);
}
.admin-header h1 {
  font-size: 18px;
  margin: 0;
  color: var(--color-navy);
  letter-spacing: .02em;
}
.admin-header .breadcrumb {
  font-size: 12px;
  color: var(--color-muted);
  margin-bottom: 4px;
}
.admin-header .breadcrumb a { color: var(--color-muted); }

.admin-header .actions {
  display: flex;
  gap: 8px;
}

.admin-content {
  padding: 24px 32px 40px;
  overflow-y: auto;
}

/* KPI カード */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}
.kpi-card .kpi-label {
  font-size: 11px;
  color: var(--color-muted);
  letter-spacing: .05em;
  margin-bottom: 8px;
  font-weight: 600;
}
.kpi-card .kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
}
.kpi-card .kpi-unit {
  font-size: 12px;
  color: var(--color-muted);
  margin-left: 4px;
  font-weight: 500;
}
.kpi-card .kpi-delta {
  font-size: 11px;
  margin-top: 8px;
  color: var(--color-success);
  font-weight: 600;
}
.kpi-card .kpi-delta.down { color: var(--color-red); }

/* パネル */
.panel {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin-bottom: 20px;
}
.panel-head {
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-head h2 {
  font-size: 14px;
  margin: 0;
  color: var(--color-navy);
  letter-spacing: .02em;
}
.panel-body { padding: 16px 20px; }
.panel-body.flush { padding: 0; }

/* テーブル */
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
table.data-table th {
  background: var(--color-bg-alt);
  padding: 10px 16px;
  text-align: left;
  font-weight: 600;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--color-border);
}
table.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
}
table.data-table tr:last-child td { border-bottom: 0; }
table.data-table tr:hover td { background: var(--color-bg); }
table.data-table td.mono { font-family: "SF Mono", "Menlo", monospace; font-size: 12px; color: var(--color-navy); font-weight: 600; }
table.data-table td .row-action { color: var(--color-navy); font-weight: 600; font-size: 12px; }

/* フィルタバー */
.filter-bar {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  align-items: end;
  flex-wrap: wrap;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
}
.filter-bar .field { margin-bottom: 0; flex: 1; min-width: 160px; }
.filter-bar .field label { margin-bottom: 4px; font-size: 10px; }
.filter-bar .field input, .filter-bar .field select { padding: 8px 12px; font-size: 13px; }
.filter-bar .search-input { flex: 2; }
.filter-bar .filter-actions { display: flex; gap: 8px; }

/* 2カラム */
.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 20px;
}
.two-col.detail { grid-template-columns: 1fr 1fr; }

/* バー（統計） */
.bar-row {
  display: grid;
  grid-template-columns: 220px 1fr 80px;
  gap: 12px;
  align-items: center;
  padding: 10px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 13px;
}
.bar-row:last-child { border-bottom: 0; }
.bar-row .bar-label { font-weight: 500; color: var(--color-text); }
.bar-row .bar-track { background: var(--color-bg-alt); height: 10px; border-radius: 5px; overflow: hidden; }
.bar-row .bar-fill { height: 100%; background: var(--color-navy); border-radius: 5px; }
.bar-row .bar-fill.accent { background: var(--color-red); }
.bar-row .bar-value { font-weight: 700; color: var(--color-navy); text-align: right; font-size: 13px; }

/* タブ */
.tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid var(--color-border);
  padding: 0 20px;
  background: var(--color-white);
}
.tabs a {
  padding: 12px 16px;
  font-size: 13px;
  color: var(--color-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  font-weight: 600;
}
.tabs a:hover { color: var(--color-navy); text-decoration: none; }
.tabs a.active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}
.tabs .count {
  display: inline-block;
  background: var(--color-bg-alt);
  color: var(--color-muted);
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  margin-left: 6px;
  font-weight: 700;
}
.tabs a.active .count { background: var(--color-red-soft); color: var(--color-red-dark); }

/* 詳細ページ */
.detail-header {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--shadow-card);
}
.detail-header .warranty-no {
  font-family: "SF Mono", "Menlo", monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: .05em;
}
.detail-header .meta { font-size: 12px; color: var(--color-muted); margin-top: 4px; }
.detail-header .actions { margin-left: auto; display: flex; gap: 8px; }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.detail-grid .panel { margin-bottom: 0; }
.detail-grid .info-row .label { font-size: 12px; }

.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li {
  padding: 12px 0 12px 24px;
  position: relative;
  border-left: 2px solid var(--color-border);
  margin-left: 6px;
}
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px; top: 16px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-white);
  border: 2px solid var(--color-navy);
}
.timeline li.event-primary::before { border-color: var(--color-red); background: var(--color-red); }
.timeline li .t-time { font-size: 11px; color: var(--color-muted); }
.timeline li .t-title { font-size: 13px; font-weight: 600; color: var(--color-text); margin: 2px 0; }
.timeline li .t-desc { font-size: 12px; color: var(--color-muted); }

/* 検索結果カード */
.result-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: 140px 1fr 120px;
  gap: 20px;
  align-items: center;
  box-shadow: var(--shadow-card);
}
.result-card .r-no { font-family: "SF Mono", "Menlo", monospace; font-weight: 700; color: var(--color-navy); }
.result-card .r-name { font-weight: 600; font-size: 14px; }
.result-card .r-meta { font-size: 12px; color: var(--color-muted); margin-top: 2px; }

/* エントリページ */
.entry-hero {
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
}
.entry-hero .kicker {
  font-size: 11px;
  color: var(--color-red);
  letter-spacing: .2em;
  font-weight: 700;
  margin-bottom: 12px;
}
.entry-hero h1 {
  font-size: 32px;
  margin: 0 0 12px;
  color: var(--color-navy);
  letter-spacing: -.01em;
}
.entry-hero .lead {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-muted);
  max-width: 640px;
}
.entry-cards {
  max-width: 960px;
  margin: 24px auto 40px;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.entry-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
}
.entry-card .role-tag {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-red-soft);
  color: var(--color-red-dark);
  font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 14px;
  align-self: flex-start;
}
.entry-card h2 {
  font-size: 20px;
  margin: 0 0 8px;
  color: var(--color-navy);
}
.entry-card p { font-size: 13px; line-height: 1.7; color: var(--color-muted); margin: 0 0 16px; flex: 1; }
.entry-card .screens {
  list-style: none;
  padding: 12px 14px;
  margin: 0 0 20px;
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--color-text);
  line-height: 1.8;
}
.entry-card .screens li { display: flex; justify-content: space-between; gap: 8px; }
.entry-card .screens li .num { color: var(--color-muted); font-family: "SF Mono", monospace; font-size: 11px; }

.entry-note {
  max-width: 960px;
  margin: 0 auto 60px;
  padding: 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.8;
}
.entry-note strong { color: var(--color-navy); }

/* ユーティリティ */
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mono { font-family: "SF Mono", "Menlo", monospace; letter-spacing: .02em; }
.text-muted { color: var(--color-muted); }
.text-red { color: var(--color-red); }
.text-navy { color: var(--color-navy); }
.text-center { text-align: center; }
.text-right { text-align: right; }
.small { font-size: 12px; }
.divider { height: 1px; background: var(--color-border); margin: 16px 0; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; gap: 8px; align-items: center; }
.row.gap-16 { gap: 16px; }
.row.between { justify-content: space-between; }

/* レスポンシブ (管理画面もモバイル閲覧は最低限) */
@media (max-width: 900px) {
  .admin-page { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .two-col, .two-col.detail, .detail-grid, .entry-cards { grid-template-columns: 1fr; }
}
