/* ═══════════════════════════════════════════════════════════════
   Sotatek Japan — Service-page shared styles
   Used by: dx-agile, offshore-dx, web-mobile
   Notes:
   • Icons are SOLID blue (no gradients) per design correction
   • Card hover: soft blue wash + 1px inner border + 3px bottom rule
   ═══════════════════════════════════════════════════════════════ */

html, body { margin:0; padding:0; background:#fff; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ═══ HERO ═══ */
.odx-hero {
  position: relative;
  color: #fff;
  padding: 170px 40px 90px;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(13,30,78,.95) 0%, rgba(30,64,175,.85) 50%, rgba(30,64,175,.5) 100%),
    url("../images/services-ai/hero-bg.jpg") center/cover no-repeat,
    linear-gradient(135deg, #0B1A3A 0%, #1E40AF 100%);
}
.odx-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(90deg, black 0%, black 45%, transparent 80%);
  -webkit-mask-image: linear-gradient(90deg, black 0%, black 45%, transparent 80%);
  pointer-events: none;
}
.odx-hero-inner { position: relative; max-width: 1280px; margin: 0 auto; z-index: 2; }

.c-breadcrumb {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--sjp-font-latin, 'Inter', sans-serif);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: .04em;
  color: rgba(255,255,255,.72);
  margin-bottom: 28px;
}
.c-breadcrumb a {
  color: rgba(255,255,255,.72);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: color .2s ease;
}
.c-breadcrumb a:hover { color: #fff; }
.c-breadcrumb .sep { opacity: .5; display: inline-flex; }
.c-breadcrumb .current { color: #fff; font-weight: 600; }

.odx-hero h1 {
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif); font-weight: 700;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0 0 26px;
}
.odx-hero p {
  font-family: var(--sjp-font-jp, 'Noto Sans JP', sans-serif);
  font-size: 17px; line-height: 1.9;
  color: rgba(255,255,255,.85);
  max-width: 620px;
  margin: 0;
}
.odx-hero .sjp-hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.odx-hero .sjp-hero__btn {
  font-family: var(--sjp-font-jp); font-size: 14px; font-weight: 700;
  text-decoration: none; padding: 13px 26px; border-radius: 999px;
  display: inline-flex; align-items: center; gap: 10px; transition: all .25s ease;
}
.odx-hero .sjp-hero__btn--primary { background: #fff; color: var(--sjp-ink-hi); box-shadow: 0 8px 22px rgba(0,0,0,.22); }
.odx-hero .sjp-hero__btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.30); }
.odx-hero .sjp-hero__btn--ghost {
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
}
.odx-hero .sjp-hero__btn--ghost:hover { background: #fff; color: var(--sjp-ink-hi); border-color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0,0,0,.30); }
.odx-hero .sjp-hero__btn svg { transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.odx-hero .sjp-hero__btn:hover svg { transform: translateX(4px); }

/* ═══ CORE SERVICES ═══ */
.core-services-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex; flex-direction: column; align-items: center;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}
.services-column {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.service-card {
  flex: 1;
  min-height: 190px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 20px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #ffffff;
  color: #0F172A;
  transition: all .3s ease;
}
.service-card:hover {
  background: #1E40AF;
  color: #ffffff;
  border-color: #1E40AF;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  transform: translateY(-4px);
}
.service-number {
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  opacity: 0.6;
}
.service-content {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.service-content h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.15;
  color: inherit;
}
.service-content p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #3F5069;
}
.service-card:hover .service-content p {
  color: #ffffff;
}
.services-image-card {
  position: relative;
  min-height: 396px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: 8px;
  transition: all .4s ease;
}
.services-image-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}
.services-image-card:hover .services-image {
  transform: scale(1.05);
}
.services-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  transition: transform .4s ease;
}
.image-card-content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-radius: 8px;
  background: rgba(30, 64, 175, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  color: #ffffff;
}
.image-card-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  color: #ffffff;
}
.image-card-content p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.35;
  color: #ffffff;
}
.service-button {
  width: fit-content;
  padding: 14px 20px 14px 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #1E40AF;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 20px;
}
.service-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

/* ═══ SECTIONS ═══ */
.sect { padding: 90px 40px; }
.sect.tint { background: var(--sjp-bg-gray, #F8FAFC); }
.sect.dark {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
  color: #fff;
}
.sect-inner-wide { max-width: 1180px; margin: 0 auto; }

.sect-head {
  text-align: center;
  margin-bottom: 48px;
  display: flex; flex-direction: column; align-items: center;
}
.sect-eye {
  font-family: 'Inter', sans-serif;
  font-size: 12.5px; font-weight: 700;
  letter-spacing: .24em;
  color: var(--sjp-accent-blue, #3B82F6);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.sect.dark .sect-eye { color: #93C5FD; }
.sect-title {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.25; letter-spacing: -.005em;
  color: var(--sjp-ink-hi, #0B1220); margin: 0 0 14px;
}
.sect.dark .sect-title { color: #fff; }
.sect-lead {
  font-family: 'Noto Sans JP', sans-serif; font-size: 14px; line-height: 1.85;
  color: var(--sjp-text-body, #3F5069); max-width: 720px;
  margin: 18px auto 0; text-align: center;
}
.sect.dark .sect-lead { color: rgba(255,255,255,.78); }

/* ═══ DS card grid base (flat card) ═══ */
.ds-grid {
  display: grid;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--sjp-border-default, #E2E8F0);
  border-bottom: 1px solid var(--sjp-border-default, #E2E8F0);
}
.ds-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 28px 26px 30px;
  transition: background-color .25s ease, box-shadow .25s ease;
  position: relative;
  display: flex; flex-direction: column;
}
.ds-card::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--sjp-primary-blue, #1E40AF);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.ds-card:hover {
  background: #EFF6FF;
  box-shadow: inset 0 0 0 1px #BFDBFE;
}
.ds-card:hover::after { transform: scaleX(1); }
.ds-card:hover .ds-title { color: var(--sjp-primary-blue, #1E40AF); }

/* SOLID-color icon box (no gradient) */
.ds-ico {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #EFF6FF;
  color: var(--sjp-primary-blue, #1E40AF);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  border: 1px solid #DBEAFE;
}
.ds-ico svg { width: 22px; height: 22px; }

.ds-title {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: 16px; line-height: 1.45;
  color: var(--sjp-ink-hi, #0B1220);
  margin: 0 0 10px; letter-spacing: -.005em;
  transition: color .25s ease;
}
.ds-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; line-height: 1.85;
  color: var(--sjp-text-body, #3F5069); margin: 0;
}

/* Common grid columns */
.col-3 { grid-template-columns: repeat(3, 1fr); }
.col-4 { grid-template-columns: repeat(4, 1fr); }
.col-2 { grid-template-columns: repeat(2, 1fr); }
.col-6 { grid-template-columns: repeat(6, 1fr); }

/* ═══ CTA SECTION ═══ */
.cta-sect {
  position: relative; overflow: hidden;
  padding: 72px 40px;
  background: linear-gradient(120deg, #1E40AF 0%, #1E3A8A 60%, #0F172A 100%);
  color: #fff;
}
.cta-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black 0%, transparent 80%);
  pointer-events: none;
}
.cta-inner {
  max-width: 1180px; margin: 0 auto; position: relative; z-index: 2;
  text-align: center;
}
.cta-eye {
  font-family: 'Inter', sans-serif; font-size: 11.5px; font-weight: 700;
  letter-spacing: .24em; color: rgba(255,255,255,.85);
  margin-bottom: 16px;
}
.cta-inner h2 {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: clamp(24px, 2.4vw, 32px);
  line-height: 1.3; margin: 0 0 12px; letter-spacing: -.012em;
}
.cta-inner p {
  font-family: 'Noto Sans JP', sans-serif; font-size: 14.5px; line-height: 1.75;
  color: rgba(255,255,255,.85); margin: 0 auto 28px; max-width: 600px;
}
.cta-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.btn-primary-w {
  font-family: 'Noto Sans JP', sans-serif; font-size: 14px; font-weight: 700;
  background: #fff; color: var(--sjp-ink-hi, #0B1220);
  text-decoration: none; padding: 13px 30px; border-radius: 8px;
  min-width: 200px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .25s ease;
}
.btn-primary-w:hover {
  background: var(--sjp-ink-hi, #0B1220); color: #fff; transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0,0,0,.3);
}
.btn-ghost-w {
  font-family: 'Noto Sans JP', sans-serif; font-size: 14px; font-weight: 700;
  background: transparent; color: #fff;
  text-decoration: none; padding: 12px 29px; border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.6);
  min-width: 200px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: all .25s ease;
}
.btn-ghost-w:hover {
  background: #fff; color: var(--sjp-ink-hi, #0B1220); border-color: #fff;
  transform: translateY(-2px);
}

/* ═══ CASE STUDIES ═══ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--sjp-border-default, #E2E8F0);
  border-bottom: 1px solid var(--sjp-border-default, #E2E8F0);
}
.case-card {
  background: transparent;
  border: none;
  border-radius: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex; flex-direction: column;
  transition: background-color .25s ease, box-shadow .25s ease;
  position: relative;
}
.case-card::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--sjp-primary-blue, #1E40AF);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  z-index: 2;
}
.case-card:hover {
  background: #EFF6FF;
  box-shadow: inset 0 0 0 1px #BFDBFE;
}
.case-card:hover::after { transform: scaleX(1); }
.case-card:hover .case-title { color: var(--sjp-primary-blue, #1E40AF); }
.case-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
  background-size: cover; background-position: center;
}
.case-img-pat {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  transition: transform .6s ease-out;
}
.case-card:hover .case-img-pat {
  transform: scale(1.08);
  transition-duration: 3s;
}
.case-img-lbl {
  position: absolute; bottom: 14px; left: 16px;
  font-family: 'Inter', sans-serif;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .2em;
  background: rgba(0,0,0,.28);
  border: 1px solid rgba(255,255,255,.2);
  padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(4px);
  z-index: 1;
}
.case-body { padding: 18px 22px 22px; }
.case-ind {
  display: inline-block;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--sjp-primary-blue, #1E40AF);
  background: #EFF6FF; border: 1px solid #DBEAFE;
  padding: 3px 10px; border-radius: 999px;
  margin-bottom: 12px;
}
.case-title {
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700;
  font-size: 16px; line-height: 1.55;
  color: var(--sjp-ink-hi, #0B1220);
  margin: 0 0 10px; letter-spacing: -.005em;
  transition: color .25s ease;
}
.case-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px; line-height: 1.85;
  color: var(--sjp-text-body, #3F5069); margin: 0;
}
.case-all {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 14px; font-weight: 700;
  background: var(--sjp-primary-blue, #1E40AF); color: #fff;
  text-decoration: none;
  padding: 13px 36px; border-radius: 8px;
  box-shadow: 0 4px 14px rgba(30,64,175,.28);
  transition: all .25s ease;
}
.case-all:hover {
  background: #1E3A8A;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(30,64,175,.4);
}

/* ═══ CERTIFICATIONS ═══ */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.cert-card {
  background: #fff;
  border: 1px solid var(--sjp-border-default, #E2E8F0);
  border-radius: 12px;
  padding: 32px 24px 26px;
  text-align: center;
  transition: border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.cert-card:hover {
  border-color: #BFDBFE;
  box-shadow: 0 10px 24px rgba(30,64,175,.10);
  transform: translateY(-3px);
}
.cert-badge {
  height: 84px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--sjp-primary-blue, #1E40AF);
}
.cert-badge svg { max-height: 84px; max-width: 100%; }
.cert-badge img { height: 100%; width: 100%; object-fit: contain; }
.cert-name {
  font-family: 'Inter', sans-serif; font-weight: 700;
  font-size: 15px; letter-spacing: -.005em;
  color: var(--sjp-ink-hi, #0B1220);
  margin: 0 0 16px;
}
.cert-desc {
  margin: 0;
  color: #3F5069;
  text-align: center;
  font-family: "Noto Sans JP";
  font-size: 12.5px;
  font-style: normal;
  font-weight: 400;
  line-height: 25.5px;
  letter-spacing: -0.075px;
}

/* ═══ PAGE-SPECIFIC: PHASE RAIL ═══ */
.phase-rail {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr;
  align-items: stretch;
  gap: 0;
}
.phase-card {
  background: #fff;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  transition: all .25s ease;
}
.phase-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(30,64,175,.10);
}
.phase-card__badge {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 10.5px;
  letter-spacing: .18em;
  color: #1E40AF;
  background: #EFF6FF;
  border: 1px solid #DBEAFE;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}
.phase-card__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 17px;
  color: #0B1220;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid #E2E8F0;
  letter-spacing: -.005em;
}
.phase-card__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.phase-card__item {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 12.5px;
  color: #3F5069;
  line-height: 1.6;
}
.phase-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ═══ PAGE-SPECIFIC: STATS ROW (dark sect) ═══ */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 28px 0;
  margin-bottom: 28px;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.stat-item {
  text-align: center;
  position: relative;
}
.stat-value {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 3.4vw, 44px);
  color: #fff;
  line-height: 1;
  letter-spacing: -.02em;
  margin-bottom: 6px;
}
.stat-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: rgba(255,255,255,.72);
}
.stat-divider {
  position: absolute;
  right: -8px;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 42px;
  background: rgba(255,255,255,.12);
}

/* ═══ PAGE-SPECIFIC: REASON GRID (dark sect) ═══ */
.reason-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.reason-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 12px;
  padding: 28px 28px 26px;
  transition: all .25s ease;
}
.reason-card:hover {
  background: rgba(59,130,246,.10);
  border-color: rgba(147,197,253,.35);
}
.reason-num {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #93C5FD;
  margin-bottom: 12px;
  letter-spacing: -.02em;
}
.reason-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -.005em;
}
.reason-desc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255,255,255,.74);
  margin: 0;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1080px) {
  .col-4 { grid-template-columns: repeat(2, 1fr); }
  .col-6 { grid-template-columns: repeat(3, 1fr); }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .phase-rail { grid-template-columns: 1fr 24px 1fr 24px 1fr 24px 1fr; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-image-card { grid-column: span 2; min-height: 420px; }
}
@media (max-width: 900px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-divider { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .services-image-card { grid-column: span 1; }
}
@media (max-width: 700px) {
  .col-3, .col-4, .col-2, .col-6 { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .sect { padding: 64px 24px; }
  .odx-hero { padding: 130px 24px 64px; }
  .odx-hero .sjp-hero__ctas { flex-direction: column; gap: 12px; }
  .odx-hero .sjp-hero__btn { font-size: 15px; padding: 14px 22px; border-radius: 10px; justify-content: center; }
  .services-image-card { min-height: 420px; order: -1; }
  .service-content h3 { font-size: 20px; }
  .phase-rail { grid-template-columns: 1fr; gap: 24px; }
  .phase-arrow { display: none; }
  .phase-card { padding: 18px 14px; }
  .reason-grid { grid-template-columns: 1fr; }
  .stats-row { padding: 20px 16px; }
}
@media (max-width: 560px) {
  .btn-primary-w, .btn-ghost-w { min-width: 100%; }
}
