:root {
  --motion-blue: #2457d6;
  --motion-mint: #35b98a;
  --motion-ink: #17233b;
  --motion-muted: #60718d;
  --motion-line: #d8e2f1;
  --motion-paper: #f5f8fd;
  --motion-dark: #0d1726;
}

.site-scroll-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 10000;
  width: 100%;
  height: 3px;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--motion-blue);
}

html.motion-ready .motion-enter {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 640ms cubic-bezier(.2, .7, .2, 1),
    transform 640ms cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--motion-index, 0) * 70ms);
}

html.motion-ready .motion-enter.is-inview {
  opacity: 1;
  transform: translateY(0);
}

.motion-lift {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .motion-lift:hover {
    transform: translateY(-4px);
    border-color: #b7c8e2;
    box-shadow: 0 16px 36px rgba(38, 64, 104, .11);
  }
}

.motion-section-head {
  position: relative;
}

.motion-section-head::after {
  content: "";
  display: block;
  width: 52px;
  height: 3px;
  margin-top: 18px;
  background: var(--motion-mint);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 720ms 160ms cubic-bezier(.2, .7, .2, 1);
}

.motion-section-head.is-inview::after {
  transform: scaleX(1);
}

.cobs-visual-section {
  padding: clamp(72px, 8vw, 112px) 24px;
  color: var(--motion-ink);
  background: var(--motion-paper);
  border-top: 1px solid #e1e9f4;
  border-bottom: 1px solid #e1e9f4;
}

.cobs-visual-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.cobs-visual-head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .7fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.cobs-visual-head small {
  display: block;
  margin-bottom: 14px;
  color: var(--motion-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cobs-visual-head h2 {
  margin: 0;
  color: var(--motion-ink);
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.15;
  letter-spacing: 0;
}

.cobs-visual-head p {
  margin: 0;
  color: var(--motion-muted);
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.75;
}

.cobs-capability-flow {
  background: #f7f9fd;
}

.cobs-flow-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cobs-flow-rail::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 7%;
  left: 7%;
  height: 1px;
  background: #cad6e8;
}

.cobs-flow-node {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 186px;
  padding: 24px;
  flex-direction: column;
  justify-content: space-between;
  color: var(--motion-ink);
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--motion-line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(37, 72, 120, .07);
}

.cobs-flow-node__mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  color: var(--motion-blue);
  font-size: 15px;
  font-weight: 900;
  background: #edf3ff;
  border: 1px solid #d5e1f7;
  border-radius: 8px;
}

.cobs-flow-node b {
  display: block;
  margin: 24px 0 7px;
  font-size: 20px;
}

.cobs-flow-node span:last-child {
  color: var(--motion-muted);
  font-size: 14px;
  line-height: 1.55;
}

.cobs-flow-node.is-active {
  border-color: var(--motion-mint);
  box-shadow: 0 18px 42px rgba(26, 120, 91, .13);
}

.cobs-flow-node.is-active .cobs-flow-node__mark {
  color: #fff;
  background: var(--motion-blue);
  border-color: var(--motion-blue);
}

.cobs-flow-caption {
  display: flex;
  margin-top: 22px;
  align-items: center;
  gap: 12px;
  color: var(--motion-muted);
  font-size: 14px;
}

.cobs-flow-caption::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--motion-mint);
}

.cobs-edu-output {
  background: #eef4fb;
}

.cobs-output-layout {
  display: grid;
  grid-template-columns: minmax(220px, .58fr) minmax(0, 1.42fr);
  min-height: 470px;
  overflow: hidden;
  background: var(--motion-dark);
  border: 1px solid #25344a;
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(20, 38, 65, .18);
}

.cobs-output-nav {
  padding: clamp(26px, 4vw, 42px);
  color: #fff;
  background: #111e30;
  border-right: 1px solid #2a3a50;
}

.cobs-output-nav small {
  display: block;
  margin-bottom: 34px;
  color: #89a0bd;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
}

.cobs-output-nav ol {
  display: grid;
  padding: 0;
  margin: 0;
  gap: 12px;
  list-style: none;
}

.cobs-output-nav li {
  display: flex;
  padding: 14px 15px;
  align-items: center;
  gap: 12px;
  color: #9badc4;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease;
}

.cobs-output-nav li::before {
  content: attr(data-number);
  color: #607693;
  font-size: 12px;
  font-weight: 800;
}

.cobs-output-nav li.is-active {
  color: #fff;
  background: #1b2a40;
  border-color: #36516f;
}

.cobs-output-screen {
  padding: clamp(28px, 5vw, 56px);
  color: #dce6f4;
  background: #0c1625;
}

.cobs-window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8396b0;
  font-size: 12px;
}

.cobs-window-bar i {
  display: block;
  width: 8px;
  height: 8px;
  background: #435b79;
  border-radius: 50%;
}

.cobs-window-bar span {
  margin-left: auto;
}

.cobs-output-screen h3 {
  margin: 46px 0 10px;
  color: #fff !important;
  font-size: clamp(25px, 3vw, 38px);
  letter-spacing: 0;
}

.cobs-output-screen > p {
  margin: 0 0 28px;
  color: #90a1b9 !important;
}

.cobs-prompt-line {
  display: flex;
  padding: 16px 18px;
  align-items: center;
  gap: 12px;
  color: #b9c7d9;
  background: #142236;
  border: 1px solid #2e425d;
  border-radius: 7px;
}

.cobs-prompt-line b {
  color: #5cd1a7;
  font-size: 12px;
}

.cobs-result-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 14px;
  margin-top: 14px;
}

.cobs-result-panel {
  min-height: 146px;
  padding: 20px;
  background: #111f32;
  border: 1px solid #263a54;
  border-radius: 7px;
}

.cobs-result-panel small {
  color: #6e85a2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
}

.cobs-result-panel b {
  display: block;
  margin: 14px 0 16px;
  color: #fff;
  font-size: 17px;
}

.cobs-result-panel span {
  display: block;
  height: 6px;
  margin-top: 9px;
  background: #2b405b;
  border-radius: 4px;
}

.cobs-result-panel span:nth-of-type(2) { width: 86%; }
.cobs-result-panel span:nth-of-type(3) { width: 68%; }

.cobs-check-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.cobs-check-list li {
  color: #adbbcd;
  font-size: 13px;
}

.cobs-check-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  background: var(--motion-mint);
  border-radius: 50%;
}

.cobs-service-map {
  background: #f4f7fc;
}

.cobs-map-board {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 1.4fr .8fr;
  min-height: 430px;
  align-items: stretch;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--motion-line);
  border-radius: 8px;
  box-shadow: 0 22px 54px rgba(31, 63, 110, .1);
}

.cobs-map-column {
  display: flex;
  padding: clamp(28px, 4vw, 48px);
  flex-direction: column;
  justify-content: center;
}

.cobs-map-column + .cobs-map-column {
  border-left: 1px solid #dfe7f2;
}

.cobs-map-column small {
  margin-bottom: 22px;
  color: #7b8da7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.cobs-map-list {
  display: grid;
  gap: 12px;
}

.cobs-map-item {
  padding: 14px 16px;
  color: var(--motion-muted);
  background: #f8fafd;
  border: 1px solid #e0e8f3;
  border-radius: 6px;
}

.cobs-map-routes {
  display: grid;
  gap: 14px;
}

.cobs-map-route {
  position: relative;
  padding: 20px;
  color: var(--motion-ink);
  background: #fff;
  border: 1px solid #ccd9ea;
  border-radius: 7px;
  transition: border-color 220ms ease, background 220ms ease, transform 220ms ease;
}

.cobs-map-route b {
  display: block;
  margin-bottom: 5px;
  font-size: 18px;
}

.cobs-map-route span {
  color: var(--motion-muted);
  font-size: 13px;
}

.cobs-map-route.is-active {
  transform: translateX(6px);
  background: #edf4ff;
  border-color: var(--motion-blue);
}

.cobs-map-route.is-active::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: -1px;
  width: 3px;
  background: var(--motion-mint);
}

.cobs-vision-band {
  padding: clamp(72px, 8vw, 112px) 24px;
  color: #fff;
  background: var(--motion-dark);
  border-top: 1px solid #24344a;
  border-bottom: 1px solid #24344a;
}

.cobs-vision-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(38px, 7vw, 90px);
  align-items: center;
}

.cobs-vision-copy small {
  color: #57d1aa;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
}

.cobs-vision-copy h2 {
  margin: 18px 0 24px;
  color: #fff !important;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.08;
  letter-spacing: 0;
}

.cobs-vision-copy p {
  max-width: 530px;
  margin: 0;
  color: #9fb0c6 !important;
  font-size: 18px;
  line-height: 1.75;
}

.cobs-vision-marks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #304159;
  border-left: 1px solid #304159;
}

.cobs-vision-mark {
  min-height: 160px;
  padding: 26px;
  color: #7186a2;
  background: #101c2d;
  border-right: 1px solid #304159;
  border-bottom: 1px solid #304159;
  transition: color 240ms ease, background 240ms ease;
}

.cobs-vision-mark b {
  display: block;
  margin-bottom: 44px;
  color: inherit;
  font-size: clamp(25px, 3vw, 40px);
  letter-spacing: 0;
}

.cobs-vision-mark span {
  font-size: 13px;
}

.cobs-vision-mark.is-active {
  color: #fff;
  background: #1a2a40;
}

.cobs-vision-mark.is-active span {
  color: #6ad8b5;
}

@media (max-width: 820px) {
  .cobs-visual-head,
  .cobs-vision-grid {
    grid-template-columns: 1fr;
  }

  .cobs-flow-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cobs-flow-rail::before {
    display: none;
  }

  .cobs-output-layout,
  .cobs-map-board {
    grid-template-columns: 1fr;
  }

  .cobs-output-nav {
    border-right: 0;
    border-bottom: 1px solid #2a3a50;
  }

  .cobs-output-nav ol {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cobs-output-nav li {
    justify-content: center;
    text-align: center;
  }

  .cobs-map-column + .cobs-map-column {
    border-top: 1px solid #dfe7f2;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .cobs-visual-section,
  .cobs-vision-band {
    padding-right: 18px;
    padding-left: 18px;
  }

  .cobs-flow-rail,
  .cobs-result-grid,
  .cobs-vision-marks {
    grid-template-columns: 1fr;
  }

  .cobs-flow-node {
    min-height: 150px;
  }

  .cobs-output-nav ol {
    grid-template-columns: 1fr;
  }

  .cobs-output-screen {
    padding: 26px 20px 32px;
  }

  .cobs-window-bar span {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-scroll-progress {
    display: none;
  }

  html.motion-ready .motion-enter,
  html.motion-ready .motion-enter.is-inview,
  .motion-lift,
  .motion-section-head::after,
  [data-motion-step] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
