/* 業務システム開発ページ（views/system-business.php）。ベースは web-services.css の web-* 部品 */
.sys-nw { display: inline-block; }

/* FV右：勤怠ダッシュボードの画面イメージ */
.sys-dash { min-width: 0; align-self: center; background: #fff; border: 1px solid #dfded7; border-radius: 16px; overflow: hidden; box-shadow: 0 18px 42px #1e2a4414; }
.sys-dash__bar { display: flex; align-items: center; gap: 6px; padding: 10px 16px; background: #1e2a44; color: #fff; font-size: 12px; }
.sys-dash__bar i { width: 8px; height: 8px; border-radius: 50%; background: #ffffff55; }
.sys-dash__bar span { margin-left: 8px; font-weight: 700; }
.sys-dash__body { padding: 18px; }
.sys-dash__kpi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.sys-dash__kpi li { padding: 10px 12px; background: #f6f5f1; border-radius: 10px; }
.sys-dash__kpi small { display: block; font-size: 11px; color: #626977; }
.sys-dash__kpi b { font: 700 24px/1.3 Oswald, sans-serif; color: #1e2a44; }
.sys-dash__kpi b span { font-size: 12px; margin-left: 2px; }
.sys-dash__kpi b.is-alert { color: #c2410c; }
.sys-dash__chart { margin-top: 14px; padding: 12px; border: 1px solid #ece8df; border-radius: 10px; }
.sys-dash__chart p { margin: 0 0 8px; font-size: 11px; color: #626977; }
.sys-dash__bars { position: relative; display: flex; align-items: flex-end; gap: 8%; height: 96px; padding: 0 4px; border-bottom: 1px solid #ddd6c8; }
.sys-dash__bars span { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: #8fa1b8; }
.sys-dash__bars span.is-alert { background: #e07b39; }
.sys-dash__line { position: absolute; left: 0; right: 0; bottom: 75%; border-top: 2px dashed #c2410c; }
.sys-dash__line em { position: absolute; right: 0; top: -18px; font-size: 10px; font-style: normal; color: #c2410c; }
.sys-dash__alerts { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.sys-dash__alerts li { display: flex; align-items: center; gap: 8px; padding: 8px 10px; background: #fff4ec; border-radius: 8px; font-size: 12px; font-weight: 700; }
.sys-dash__alerts b { display: grid; place-items: center; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #c2410c; color: #fff; font-size: 11px; }
.sys-dash__export { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 12px 0 0; font-size: 12px; }
.sys-dash__export span { padding: 3px 10px; border: 1px solid #1e2a44; border-radius: 6px; font-weight: 700; }
.sys-dash__note { margin: 0; padding: 0 18px 12px; font-size: 10px; color: #6b7280; text-align: right; }

/* チェックリスト */
.sys-check { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 32px; margin: 0; padding: 0; list-style: none; }
.sys-check li { position: relative; padding: 16px 18px 16px 52px; background: #fff; border-radius: 10px; font-size: 15px; font-weight: 700; line-height: 1.7; }
.sys-check li::before { content: ""; position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border: 2px solid #a95d00; border-radius: 4px; }
.sys-check li::after { content: ""; position: absolute; left: 25px; top: 50%; width: 6px; height: 11px; margin-top: -8px; border: solid #a95d00; border-width: 0 3px 3px 0; transform: rotate(45deg); }
.sys-check__answer { margin: 28px 0 0; font-size: 18px; font-weight: 700; text-align: center; }
.sys-check__answer strong { background: linear-gradient(transparent 62%, #ffe2ad 62%); }

/* 開発事例 */
.sys-work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px 0; border-top: 1px solid #ece8df; }
.sys-work:first-of-type { border-top: 0; padding-top: 8px; }
.sys-work--reverse .sys-work__copy { order: 2; }
.sys-work__tag { display: inline-block; margin: 0 0 12px; padding: 3px 12px; border-radius: 999px; background: #1e2a44; color: #fff; font-size: 12px; font-weight: 700; }
.sys-work h3 { margin: 0 0 14px; font-size: clamp(20px, 2vw, 26px); line-height: 1.6; }
.sys-work__copy > p:not(.sys-work__tag) { font-size: 14px; line-height: 2; }
.sys-work__points { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.sys-work__points li { position: relative; padding-left: 26px; font-size: 14px; font-weight: 700; line-height: 1.7; }
.sys-work__points li::before { content: "✓"; position: absolute; left: 0; color: #a95d00; }
.sys-work--small { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.sys-work__image img { width: 100%; height: auto; border: 1px solid #e3ded3; border-radius: 12px; }
.sys-note { margin: 8px 0 0; font-size: 12px; color: #6b7280; }

/* 帳票の流れ図 */
.sys-docflow { padding: 26px; background: #faf7f0; border-radius: 16px; }
.sys-docflow__base { margin: 0; padding: 12px 16px; background: #1e2a44; color: #fff; border-radius: 10px; font-size: 14px; text-align: center; }
.sys-docflow__base b { color: #ffd27a; }
.sys-docflow ol { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.sys-docflow ol::before { content: ""; position: absolute; left: 12%; right: 12%; top: -22px; height: 22px; border: 2px solid #d9b77a; border-bottom: 0; border-radius: 10px 10px 0 0; }
.sys-docflow li { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; background: #fff; border: 1px solid #e3d3b5; border-radius: 10px; font-size: 13px; font-weight: 700; }
.sys-docflow__compare { display: grid; gap: 8px; margin-top: 20px; }
.sys-docflow__compare p { margin: 0; padding: 10px 14px; background: #fff; border-radius: 8px; font-size: 13px; color: #6b7280; }
.sys-docflow__compare p.is-after { color: #1e2a44; font-weight: 700; border: 2px solid #a95d00; }
.sys-docflow__compare small { display: inline-block; min-width: 4.5em; margin-right: 8px; font-weight: 700; color: #a95d00; }

/* 勤怠一覧の画面イメージ */
.sys-table { padding: 18px 18px 0; background: #fff; border: 1px solid #dfded7; border-radius: 16px; box-shadow: 0 12px 32px #1e2a440d; }
.sys-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sys-table th { padding: 8px; background: #f6f5f1; font-size: 12px; text-align: left; color: #626977; }
.sys-table td { padding: 10px 8px; border-bottom: 1px solid #ece8df; }
.sys-table .sys-dash__note { padding: 8px 0 12px; }
.sys-ok, .sys-warn { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.sys-ok { background: #e7f3ec; color: #2f7a4f; }
.sys-warn { background: #fde8dc; color: #c2410c; }

/* 業種タブ */
.sys-tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.sys-tabs__list button { padding: 10px 18px; background: #fff; border: 1px solid #d4d8de; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; color: #232a3a; cursor: pointer; }
.sys-tabs__list button[aria-selected="true"] { background: #1e2a44; border-color: #1e2a44; color: #fff; }
.sys-tabs__list button:focus-visible { outline: 3px solid #16658f; outline-offset: 3px; }
.sys-tabs:not(.is-ready) .sys-tabs__list { display: none; }
.sys-tabs.is-ready .sys-tabs__panel[hidden] { display: none; }
.sys-tabs__panel { padding: 28px; background: #fff; border-radius: 16px; }
.sys-tabs:not(.is-ready) .sys-tabs__panel + .sys-tabs__panel { margin-top: 16px; }
.sys-tabs.is-ready .sys-tabs__name { display: none; }
.sys-tabs__name { margin: 0 0 14px; font-size: 18px; }
.sys-tabs__compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 20px; align-items: center; }
.sys-tabs__compare > div { height: 100%; padding: 20px; background: #f6f5f1; border-radius: 12px; }
.sys-tabs__compare > div.is-after { background: #fff7ea; border: 2px solid #a95d00; }
.sys-tabs__label { margin: 0 0 10px; font-size: 13px; font-weight: 700; color: #626977; }
.is-after .sys-tabs__label { color: #a95d00; }
.sys-tabs__compare ul { margin: 0; padding-left: 1.2em; font-size: 14px; line-height: 2; }
.sys-tabs__arrow { margin: 0; font-size: 26px; font-weight: 700; color: #a95d00; }

/* 小さく始める */
.sys-scale { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 32px 0 0; padding: 0; list-style: none; align-items: end; }
.sys-scale li { padding: 26px 22px; background: #fff; border: 1px solid #e3ded3; border-radius: 16px; }
.sys-scale li:nth-child(1) { min-height: 230px; }
.sys-scale li:nth-child(2) { min-height: 260px; }
.sys-scale li:nth-child(3) { min-height: 290px; }
.sys-scale li:first-child { border: 2px solid #a95d00; }
.sys-scale__size { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff1dc; color: #a95d00; font: 700 20px Oswald, sans-serif; }
.sys-scale h3 { margin: 14px 0 8px; font-size: 18px; }
.sys-scale p { margin: 0; font-size: 14px; line-height: 1.9; }
.sys-scale .sys-scale__ex { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #ddd6c8; font-size: 12px; color: #626977; }

.system-service-page .web-button { background: #a95d00; color: #fff; }
.system-service-page .web-button:hover { background: #874a00; }

@media (max-width: 960px) {
  .sys-work, .sys-work--small { grid-template-columns: 1fr; gap: 28px; }
  .sys-work--reverse .sys-work__copy { order: 0; }
}
@media (max-width: 768px) {
  .sys-dash__body { padding: 14px; }
  .sys-dash__kpi b { font-size: 20px; }
  .sys-check { grid-template-columns: 1fr; }
  .sys-check li { font-size: 14px; }
  .sys-check__answer { font-size: 16px; text-align: left; }
  .sys-work { padding: 36px 0; }
  .sys-docflow { padding: 18px 14px; }
  .sys-docflow ol { grid-template-columns: 1fr 1fr; }
  .sys-docflow ol::before { display: none; }
  .sys-tabs__list { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .sys-tabs__list button { flex-shrink: 0; padding: 8px 14px; font-size: 13px; }
  .sys-tabs__panel { padding: 18px 14px; }
  .sys-tabs__compare { grid-template-columns: 1fr; gap: 10px; }
  .sys-tabs__arrow { text-align: center; transform: rotate(90deg); }
  .sys-scale { grid-template-columns: 1fr; gap: 14px; }
  .sys-scale li:nth-child(n) { min-height: 0; }
}
