/* =========================
   Services Page Base
   ========================= */

body.services-page {
  background:
    linear-gradient(180deg, #071634 0%, #081b44 18%, #f5f9ff 18%, #eef4ff 100%);
}

.services-page-main {
  position: relative;
  z-index: 1;
  background: transparent;
}

.services-overview-section {
  position: relative;
  padding: 56px 0 34px;
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
}

.services-section {
  padding: 42px 0 48px;
}

.services-section-header {
  text-align: center;
  margin-bottom: 22px;
}

.services-section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: #2563eb;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.services-section-title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #102a5c;
  word-break: keep-all;
}

.services-section-desc {
  margin: 0 auto;
  max-width: 920px;
  color: #5d749d;
  font-size: 1.04rem;
  line-height: 1.9;
  word-break: keep-all;
}

/* =========================
   Service Structure v2
   ========================= */

.service-structure-section {
  padding-top: 84px;
  padding-bottom: 22px;
}

.service-structure-panel {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 54px 44px 48px;
  border-radius: 36px;
  background:
    radial-gradient(circle at 15% 14%, rgba(96,165,250,0.10), transparent 18%),
    radial-gradient(circle at 84% 18%, rgba(147,197,253,0.10), transparent 18%),
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(245,249,255,0.98) 100%);
  border: 1px solid rgba(148,173,220,0.22);
  box-shadow:
    0 24px 54px rgba(8,27,68,0.08),
    0 8px 18px rgba(8,27,68,0.04);
}

.service-structure-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 38px;
  right: 38px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(58,109,255,0.95), rgba(157,190,255,0.75));
}

.service-structure-panel-v2 {
  padding: 42px 38px 45px;
}

.service-structure-diagram {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 8px;
}

.service-structure-diagram-v2 {
  max-width: 1080px;
}

.service-structure-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
  text-align: center;
}

.service-structure-brand-title {
  margin: 0;
  color: #2b427a;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1.18;
  font-weight: 500;
  letter-spacing: -0.05em;
  word-break: keep-all;
}

.service-structure-brand-logo {
  display: block;
  width: clamp(240px, 30vw, 360px);
  height: auto;
  object-fit: contain;
}

.service-structure-top,
.service-structure-core,
.service-structure-badge {
  display: none !important;
}

.structure-connector {
  position: relative;
  width: 100%;
  max-width: 1000px;
  height: 120px;
  margin: -6px auto 26px;
  z-index: 1;
  pointer-events: none;
  display: block;
}

.structure-connector.structure-connector-v2 {
  width: 100%;
  max-width: 940px;
  height: 108px;
  margin: 8px auto 18px;
  display: block;
}

.structure-connector svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.structure-connector.structure-connector-v2 line {
  stroke: rgba(165, 194, 255, 0.60) !important;
  stroke-width: 2px !important;
  stroke-linecap: round;
  opacity: 1;
}

.service-structure-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 30px;
  align-items: stretch;
}

.service-structure-grid.service-structure-grid-v2 {
  gap: 22px;
  margin-bottom: 22px;
}

.service-structure-card {
  position: relative;
  min-height: 0;
  padding: 22px 24px 20px;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(33,53,104,0.95) 0%, rgba(24,44,89,0.98) 100%);
  border: 1px solid rgba(129,156,214,0.18);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
}

.service-structure-card:hover {
  transform: translateY(-8px);
  border-color: rgba(116,155,255,0.34);
  box-shadow:
    0 24px 48px rgba(0,0,0,0.26),
    0 0 0 1px rgba(116,155,255,0.08);
}

.service-structure-grid .service-structure-card:nth-child(2) {
  background: linear-gradient(180deg, #dfe5ef 0%, #cfd6e3 100%);
  border: 1px solid rgba(186, 197, 220, 0.85);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.service-structure-card h4 {
  width: 100%;
  margin: 0 0 14px;
  padding-bottom: 14px;
  font-size: 1.22rem;
  line-height: 1.24;
  font-weight: 800;
  border-bottom: 3px solid rgba(165, 194, 255, 0.60);
  color: #ffffff;
  text-align: center;
}

.service-structure-grid .service-structure-card:nth-child(2) h4 {
  color: #173b84;
  border-bottom-color: rgba(165, 194, 255, 0.60);
}

.service-structure-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgba(227,235,251,0.92);
}

.service-structure-grid .service-structure-card:nth-child(2) p {
  color: #092966;
}

.structure-lines-bottom {
  position: relative;
  height: 20px;
  margin-top: 10px;
  margin-bottom: 26px;
  display: block;
}

.structure-lines-bottom span {
  position: absolute;
  display: block;
  border-radius: 999px;
  box-sizing: border-box;
}

.line-v-bottom-center {
  width: 2px;
  height: 50px;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  background: rgba(165, 194, 255, 0.60);
}

.line-h-bottom-left,
.line-h-bottom-right {
  height: 0;
  border-top: 2px solid rgba(165, 194, 255, 0.60);
  background: transparent;
}

.line-h-bottom-left {
  width: 33.5%;
  left: 16.66%;
  top: 0;
}

.line-h-bottom-right {
  width: 33.5%;
  right: 16.66%;
  top: 0;
}

.service-structure-bottom {
  position: relative;
  display: flex;
  justify-content: center;
}

.service-structure-cowork {
  position: relative;
  max-width: 820px;
  width: 100%;
  padding: 20px 28px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(245,248,253,0.96) 0%, rgba(227,233,243,0.98) 100%);
  border: 1.5px solid rgba(147,173,228,0.42);
  box-shadow:
    0 18px 36px rgba(0,0,0,0.16),
    inset 0 1px 0 rgba(255,255,255,0.72);
}

.service-structure-cowork strong {
  display: block;
  margin: 0;
  color: #082a67;
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.42;
  word-break: keep-all;
}

/* =========================
   Bridge
   ========================= */

.services-bridge-band {
  position: relative;
  height: 180px;
  margin: 0;
  background: transparent;
  overflow: visible;
}

.services-bridge-band::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 18px;
  bottom: 18px;
  width: 1px;
  transform: translateX(-50%);
  background: linear-gradient(
    180deg,
    rgba(159, 184, 236, 0) 0%,
    rgba(159, 184, 236, 0.22) 18%,
    rgba(159, 184, 236, 0.42) 50%,
    rgba(159, 184, 236, 0.18) 82%,
    rgba(159, 184, 236, 0) 100%
  );
  box-shadow: 0 0 14px rgba(159, 184, 236, 0.12);
  pointer-events: none;
}

.services-bridge-band::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -34px;
  width: min(760px, 72vw);
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(
    ellipse at center,
    rgba(255,255,255,0.42) 0%,
    rgba(255,255,255,0.18) 28%,
    rgba(255,255,255,0.05) 52%,
    rgba(255,255,255,0) 72%
  );
  filter: blur(18px);
  pointer-events: none;
}

.services-bridge-orb {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #dce8ff 45%, #9dbdff 78%, rgba(157,189,255,0) 100%);
  box-shadow:
    0 0 10px rgba(157,189,255,0.22),
    0 0 18px rgba(157,189,255,0.12);
  pointer-events: none;
}

/* =========================
   Core / Flow / Detail
   ========================= */

.services-core-section,
.services-flow-section {
  padding-top: 42px;
  padding-bottom: 48px;
}

.services-core-section .services-section-header,
.services-flow-section .services-section-header {
  text-align: center;
  margin-bottom: 22px;
}

.services-highlight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.service-highlight-card,
.service-detail-card,
.service-flow-step {
  background:
    linear-gradient(180deg, rgba(30,48,94,0.96) 0%, rgba(20,38,80,0.98) 100%);
  border: 1px solid rgba(129,156,214,0.18);
  box-shadow:
    0 18px 40px rgba(0,0,0,0.22),
    inset 0 1px 0 rgba(255,255,255,0.04);
}

.service-highlight-card {
  position: relative;
  overflow: hidden;
  padding: 34px 30px 30px;
  border-radius: 30px;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.service-highlight-card:hover,
.service-detail-card:hover {
  transform: translateY(-8px);
  border-color: rgba(116,155,255,0.34);
  box-shadow:
    0 24px 50px rgba(0,0,0,0.26),
    0 0 0 1px rgba(116,155,255,0.08);
}

.service-highlight-card::before,
.service-detail-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  right: -30px;
  top: -32px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96,165,250,0.10), transparent 68%);
  pointer-events: none;
}

.service-highlight-card::after,
.service-flow-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  right: 30px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(58,109,255,0.96), rgba(157,190,255,0.72));
  pointer-events: none;
}

.services-highlight-grid .service-highlight-card:nth-child(2) {
  background: linear-gradient(180deg, #dfe5ef 0%, #cfd6e3 100%);
  border: 1px solid rgba(186, 197, 220, 0.85);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.services-highlight-grid .service-highlight-card:nth-child(2) h3,
.services-highlight-grid .service-highlight-card:nth-child(2) p {
  color: #092966;
}

.service-badge,
.service-flow-step .step-num {
  background: linear-gradient(180deg, #dfe7f5 0%, #cad5ea 100%);
  color: #1750df;
  box-shadow:
    inset 0 0 0 1px rgba(130,154,211,0.22),
    0 8px 18px rgba(13,30,69,0.14);
}

.service-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  margin: 0 auto 22px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
}

.service-highlight-card h3 {
  margin: 0 0 14px;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: keep-all;
  text-align: center;
  color: #ffffff;
}

.service-highlight-card p {
  margin: 0;
  line-height: 1.9;
  word-break: keep-all;
  text-align: center;
  color: rgba(227,235,251,0.82);
}

.service-flow-panel {
  position: relative;
  overflow: hidden;
  margin-top: 12px;
  padding: 48px 36px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 16% 18%, rgba(96,165,250,0.05), transparent 18%),
    radial-gradient(circle at 86% 20%, rgba(147,197,253,0.05), transparent 18%),
    linear-gradient(180deg, #f7f9fc 0%, #eef2f7 100%);
  border: 1px solid #dde4ee;
  box-shadow:
    0 20px 46px rgba(44, 62, 100, 0.08),
    inset 0 1px 0 rgba(255,255,255,0.5);
}

.service-flow-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.service-flow-step {
  position: relative;
  text-align: center;
  border-radius: 24px;
  padding: 26px 16px 22px;
}

.service-flow-step .step-num {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  font-size: 0.98rem;
  font-weight: 800;
}

.service-flow-step h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  word-break: keep-all;
  color: #ffffff;
}

.service-flow-step p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.7;
  word-break: keep-all;
  color: rgba(227,235,251,0.82);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.service-detail-card {
  position: relative;
  overflow: hidden;
  min-height: 250px;
  padding: 34px 30px 30px;
  border-radius: 30px;
  transition:
    transform 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.service-detail-card h3 {
  margin: 0 0 16px;
  font-size: 1.4rem;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.03em;
  word-break: keep-all;
  color: #ffffff;
}

.service-detail-card p,
.service-detail-list li {
  color: rgba(227,235,251,0.82);
}

.service-detail-card p {
  margin: 0;
  line-height: 1.9;
  word-break: keep-all;
}

.service-detail-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.service-detail-list li {
  position: relative;
  padding-left: 18px;
  font-size: 0.96rem;
  line-height: 1.8;
  word-break: keep-all;
}

.service-detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(180deg, #4f8dff 0%, #a8c7ff 100%);
}

.fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-up.show {
  opacity: 1;
  transform: translateY(0);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 991px) {
  body.services-page {
    background:
      radial-gradient(circle at 12% 10%, rgba(49,87,162,0.20), transparent 22%),
      radial-gradient(circle at 92% 8%, rgba(79,121,214,0.16), transparent 18%),
      linear-gradient(180deg, #021844 0%, #02133a 42%, #011233 100%);
  }

  .services-overview-section {
    background: linear-gradient(180deg, #021844 0%, #01173f 100%);
    padding: 68px 0 24px;
  }

  .service-structure-section {
    padding-top: 68px;
    padding-bottom: 72px;
  }

  .service-structure-panel {
    padding: 38px 22px 34px;
    border-radius: 28px;
  }

  .service-structure-panel::before {
    left: 22px;
    right: 22px;
  }

  .structure-connector,
  .structure-lines-bottom {
    display: none;
  }

  .service-structure-grid,
  .services-highlight-grid,
  .service-detail-grid,
  .service-flow-grid {
    grid-template-columns: 1fr;
  }

  .service-structure-grid {
    gap: 18px;
    margin-bottom: 26px;
  }

  .services-bridge-band {
    height: 130px;
  }

  .services-bridge-band::after {
    width: 86vw;
    height: 120px;
    top: -20px;
    filter: blur(14px);
  }

  .services-core-section,
  .services-flow-section {
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .service-structure-card,
  .service-highlight-card,
  .service-detail-card {
    min-height: auto;
    padding: 28px 24px;
    border-radius: 24px;
  }

  .service-highlight-card::after,
  .service-flow-panel::after {
    left: 24px;
    right: 24px;
  }

  .service-structure-card h4 {
    font-size: 1.08rem;
  }

  .service-structure-cowork {
    border-radius: 24px;
    padding: 18px 16px;
  }

  .service-structure-cowork strong {
    font-size: 1rem;
  }

  .service-flow-panel {
    padding: 34px 22px;
    border-radius: 26px;
  }

  .service-flow-panel::after {
    left: 22px;
    right: 22px;
  }
}

@media (max-width: 640px) {
  .services-section-title {
    font-size: 1.8rem;
  }

  .services-section-desc,
  .service-highlight-card p,
  .service-detail-card p,
  .service-structure-card p {
    font-size: 0.96rem;
    line-height: 1.8;
  }

  .service-highlight-card h3,
  .service-detail-card h3 {
    font-size: 1.24rem;
  }

  .services-bridge-band {
    height: 100px;
  }

  .service-structure-brand-logo {
    width: 210px;
  }

  .service-structure-cowork strong {
    font-size: 0.92rem;
  }
}

.service-flow-grid .service-flow-step:nth-child(2),
.service-flow-grid .service-flow-step:nth-child(4) {
  background: linear-gradient(180deg, #dfe5ef 0%, #cfd6e3 100%);
  border: 1px solid rgba(186, 197, 220, 0.85);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.service-flow-grid .service-flow-step:nth-child(2) h4,
.service-flow-grid .service-flow-step:nth-child(4) h4 {
  color: #173b84;
}

.service-flow-grid .service-flow-step:nth-child(2) p,
.service-flow-grid .service-flow-step:nth-child(4) p {
  color: #092966;
}

.service-flow-grid .service-flow-step:nth-child(2) .step-num,
.service-flow-grid .service-flow-step:nth-child(4) .step-num {
  background: linear-gradient(180deg, #edf2fb 0%, #dbe4f3 100%);
  color: #1750df;
  box-shadow:
    inset 0 0 0 1px rgba(130,154,211,0.22),
    0 8px 18px rgba(13,30,69,0.10);
}