/* CG subpage system */
.cg-subpage {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 3%, rgba(255, 255, 255, 0.95), transparent 30%),
    radial-gradient(circle at 92% 14%, rgba(50, 145, 255, 0.18), transparent 28%),
    linear-gradient(180deg, #eef8ff 0%, #f6fbff 58%, #edf7ff 100%);
}

.cg-subpage .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

.subpage-main {
  overflow: hidden;
}

.sub-hero {
  position: relative;
  min-height: 620px;
  padding: 120px 0 76px;
  isolation: isolate;
  border-bottom: 1px solid rgba(169, 202, 239, 0.7);
}

.sub-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  filter: saturate(1.06) contrast(1.02);
}

.sub-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(244, 250, 255, 0.95) 0%, rgba(244, 250, 255, 0.78) 38%, rgba(244, 250, 255, 0.2) 78%),
    linear-gradient(180deg, rgba(244, 250, 255, 0.08) 0%, rgba(238, 248, 255, 0.72) 100%);
}

.sub-hero-inner,
.subpage-section,
.subpage-footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.sub-hero-card {
  width: min(720px, 100%);
  padding: 34px 38px;
  border: 1px solid rgba(177, 210, 246, 0.82);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(242, 250, 255, 0.54));
  box-shadow: 0 26px 76px rgba(18, 70, 132, 0.14);
  backdrop-filter: blur(10px);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 22px;
  color: #5f7594;
  font-size: 14px;
}

.breadcrumb a {
  color: #145ed3;
  font-weight: 800;
  text-decoration: none;
}

.breadcrumb span {
  color: #8aa1bc;
}

.sub-kicker {
  margin: 0 0 14px;
  color: #1b73f0;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sub-hero h1,
.subpage-heading h2 {
  margin: 0;
  color: #071a36;
  letter-spacing: 0;
}

.sub-hero h1 {
  max-width: 640px;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1.08;
}

.sub-hero p {
  max-width: 620px;
  margin: 22px 0 0;
  color: #28415f;
  font-size: 18px;
  line-height: 1.75;
}

.sub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.sub-anchor-bar {
  position: sticky;
  top: 74px;
  z-index: 20;
  border-bottom: 1px solid rgba(178, 209, 243, 0.72);
  background: rgba(244, 250, 255, 0.86);
  box-shadow: 0 12px 36px rgba(16, 68, 128, 0.08);
  backdrop-filter: blur(14px);
}

.sub-anchor-scroll {
  display: flex;
  gap: 12px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 13px 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.sub-anchor-scroll::-webkit-scrollbar {
  display: none;
}

.sub-anchor-scroll a {
  flex: 0 0 auto;
  padding: 9px 15px;
  border: 1px solid rgba(181, 211, 246, 0.82);
  border-radius: 999px;
  color: #12365f;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  text-decoration: none;
}

.subpage-section {
  padding: 86px 0;
}

.subpage-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(280px, 0.55fr);
  gap: 44px;
  align-items: end;
  margin-bottom: 34px;
}

.subpage-heading h2 {
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.14;
}

.subpage-heading p {
  margin: 0;
  color: #546984;
  font-size: 16px;
  line-height: 1.75;
}

.subpage-grid,
.subpage-card-grid,
.case-grid {
  display: grid;
  gap: 18px;
}

.subpage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subpage-card-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.case-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sub-card,
.product-card,
.case-card,
.process-card,
.metric-card {
  position: relative;
  border: 1px solid rgba(180, 213, 248, 0.78);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(239, 248, 255, 0.58));
  box-shadow: 0 22px 58px rgba(22, 74, 136, 0.12);
  backdrop-filter: blur(14px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sub-card:hover,
.product-card:hover,
.case-card:hover,
.process-card:hover,
.metric-card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 148, 255, 0.82);
  box-shadow: 0 28px 72px rgba(22, 74, 136, 0.18);
}

.sub-card {
  min-height: 210px;
  padding: 24px;
}

.sub-card b,
.product-card b,
.process-card b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 32px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #0b55d8;
  background: rgba(28, 115, 255, 0.12);
  font-size: 13px;
  font-weight: 900;
}

.sub-card h3,
.product-card h3,
.case-card h3,
.process-card h3 {
  margin: 0 0 10px;
  color: #071a36;
  font-size: 22px;
  line-height: 1.28;
}

.sub-card p,
.product-card p,
.case-card p,
.process-card p,
.metric-card p {
  margin: 0;
  color: #536985;
  line-height: 1.7;
}

.visual-split {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(340px, 0.74fr);
  gap: 28px;
  align-items: stretch;
}

.visual-panel,
.feature-image {
  overflow: hidden;
  border: 1px solid rgba(180, 213, 248, 0.78);
  border-radius: 8px;
  background: #ddecfb;
  box-shadow: 0 24px 68px rgba(21, 74, 139, 0.14);
}

.visual-panel img,
.feature-image img,
.case-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.visual-panel {
  min-height: 420px;
}

.process-list {
  display: grid;
  gap: 14px;
}

.process-card {
  padding: 22px;
}

.product-card {
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.product-card-content {
  padding: 20px;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 22px;
}

.metric-card strong {
  display: block;
  margin-bottom: 6px;
  color: #0c4fb4;
  font-size: 30px;
  line-height: 1;
}

.case-card {
  overflow: hidden;
}

.case-card img {
  aspect-ratio: 3 / 2;
}

.case-card div {
  padding: 22px;
}

.subpage-cta {
  padding: 70px 0;
}

.subpage-cta-box {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 38px;
  border: 1px solid rgba(179, 213, 248, 0.84);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.86), rgba(237, 248, 255, 0.54)),
    url("assets/cg/pages/case-network.png") right center / auto 100% no-repeat;
  box-shadow: 0 26px 70px rgba(20, 61, 114, 0.14);
}

.subpage-cta-box h2 {
  max-width: 620px;
  margin: 0;
  color: #071a36;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.16;
}

.subpage-cta-box p {
  max-width: 560px;
  margin: 16px 0 0;
  color: #526982;
  line-height: 1.7;
}

.subpage-footer {
  padding: 42px 0;
  color: #c7d7ee;
  background: linear-gradient(180deg, #09224b, #061832);
}

.subpage-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.subpage-footer a {
  color: #e9f4ff;
  text-decoration: none;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
}

@media (max-width: 1024px) {
  .subpage-grid,
  .case-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .subpage-card-grid,
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-split,
  .subpage-heading {
    grid-template-columns: 1fr;
  }

  .sub-anchor-bar {
    top: 64px;
  }
}

@media (max-width: 680px) {
  .sub-hero {
    min-height: auto;
    padding: 96px 0 46px;
  }

  .sub-hero::after {
    background: linear-gradient(180deg, rgba(244, 250, 255, 0.84), rgba(238, 248, 255, 0.64));
  }

  .sub-hero-inner,
  .subpage-section,
  .subpage-footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .sub-hero-card {
    padding: 22px;
  }

  .sub-hero h1 {
    font-size: clamp(32px, 9.5vw, 42px);
  }

  .sub-hero p {
    font-size: 16px;
  }

  .sub-hero-actions {
    flex-direction: column;
  }

  .sub-hero-actions a {
    width: 100%;
    justify-content: center;
  }

  .sub-anchor-scroll {
    width: calc(100% - 24px);
  }

  .subpage-section {
    padding: 58px 0;
  }

  .subpage-grid,
  .subpage-card-grid,
  .case-grid,
  .metric-row {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 280px;
  }

  .subpage-cta-box {
    width: calc(100% - 24px);
    padding: 26px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(237, 248, 255, 0.74));
  }

  .subpage-footer-inner {
    flex-direction: column;
  }
}
