/* ═══════════════════════════════
   APS PARTNERS — SERVICES CSS
   ═══════════════════════════════ */

.page-hero .hero-em {
  color: var(--amber);
  font-style: normal;
}

/* ── Sticky Tab Bar ── */
.svc-tabs-wrap {
  position: sticky;
  top: var(--nav-h);
  z-index: 90;
  background: var(--canvas);
  border-bottom: 0.5px solid var(--border-md);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.svc-tabs {
  display: flex;
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.svc-tabs::-webkit-scrollbar { display: none; }

.svc-tab {
  flex-shrink: 0;
  padding: 14px 22px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.svc-tab:hover { color: var(--teal); }
.svc-tab.active {
  color: var(--teal);
  font-weight: 500;
  border-bottom-color: var(--teal);
}

/* ── Service Index ── */
.svc-index { padding: 40px 0; }
.svc-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 900px) {
  .svc-index-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .svc-index-grid { grid-template-columns: 1fr; }
}

.svc-index-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  border-left: 3px solid var(--teal);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, transform 0.15s;
}
.svc-index-card:hover {
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  transform: translateY(-1px);
}
.svc-index-num {
  font-size: 13px;
  font-weight: 600;
  color: var(--teal);
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.08em;
}
.svc-index-card strong { font-size: 15px; font-weight: 500; }
.svc-index-card span  { font-size: 13px; color: var(--text-muted); }

/* ── Service Detail ── */
.svc-detail { padding: 50px 0; }
.svc-detail-inner {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 768px) {
  .svc-detail-inner { grid-template-columns: 1fr; }
  .svc-num-col { display: flex; align-items: center; gap: 16px; }
}

.svc-num-col { display: flex; flex-direction: column; align-items: flex-start; }
.svc-big-num {
  font-size: 80px;
  font-weight: 700;
  color: var(--teal);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  letter-spacing: -0.03em;
}
.svc-accent-bar {
  width: 36px;
  height: 3px;
  background: var(--amber);
  margin-top: 8px;
  border-radius: 2px;
}

.svc-content { max-width: 740px; }

.svc-label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.svc-content h2 {
  font-size: clamp(24px, 3vw, 34px);
  margin-bottom: 10px;
  font-family: 'Noto Sans JP', sans-serif;
}
.svc-tagline {
  font-size: 18px;
  color: var(--teal);
  font-weight: 500;
  margin-bottom: 16px;
  font-family: 'Noto Sans JP', sans-serif;
}
.svc-content .body-text { margin-bottom: 24px; }

/* ── Qualifier Box ── */
.qualifier-box {
  background: var(--teal-light);
  border: 0.5px solid rgba(15,110,86,0.25);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 28px;
}
.qualifier-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--teal);
  margin-bottom: 10px;
  letter-spacing: 0.05em;
}
.qualifier-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.qualifier-list li {
  font-size: 15px;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.5;
}
.qualifier-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-size: 12px;
  font-weight: 600;
}

/* ── Service Areas ── */
.svc-area-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 10px;
  letter-spacing: 0.08em;
}
.svc-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}
.svc-areas-2col { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 640px) {
  .svc-areas, .svc-areas-2col { grid-template-columns: 1fr; }
}

.svc-area-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 0.5px solid var(--border);
}
.section-white .svc-area-card,
.section-canvas .svc-area-card { background: #EAF6F8; border-color: rgba(0,115,131,0.15); }

.svc-area-card strong { font-size: 15px; font-weight: 500; }
.svc-area-card span   { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

/* ── Case Card ── */
.case-card {
  background: var(--teal-dark);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-top: 4px;
}
.case-label {
  font-size: 14px;
  color: var(--teal-pale);
  font-weight: 500;
  letter-spacing: 0.15em;
  margin-bottom: 6px;
  font-family: 'Inter', sans-serif;
}
.case-text {
  font-size: 15px;
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 16px;
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  border-top: 0.5px solid rgba(255,255,255,0.1);
  padding-top: 14px;
}
.case-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.case-metric-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--amber);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  letter-spacing: -0.02em;
}
.case-metric-num small {
  font-size: 0.55em;
  font-weight: 500;
  vertical-align: baseline;
}
.case-metric-label {
  font-size: 11px;
  color: var(--teal-pale);
  text-align: center;
  line-height: 1.3;
}

/* ── Phase Flow (Service 03) ── */
.phase-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 6px;
  align-items: stretch;
  margin-bottom: 24px;
}
@media (max-width: 640px) {
  .phase-flow,
  .phase-flow-4 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
  }
  .phase-arrow {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 6px 0;
    line-height: 1;
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
  }
  .phase-arrow::after {
    content: "↓";
    text-indent: 0;
    font-size: 22px;
    color: var(--teal);
    position: absolute;
  }
}
.phase-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 4px;
  padding: 16px 12px;
  border-radius: var(--radius);
  background: var(--teal-light);
  min-height: 120px;
}
.phase-card-active { background: var(--teal-light); }
.phase-card-active .phase-label { color: var(--teal); }
.phase-card-active strong { color: var(--teal-dark); }
.phase-card-active span { color: var(--text-muted); }

.phase-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.12em;
  font-family: 'Inter', sans-serif;
}
.phase-card strong { font-size: 15px; color: var(--teal-dark); }
.phase-card span   { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
.phase-arrow { font-size: 20px; color: var(--teal); text-align: center; display: flex; align-items: center; }

/* ── Why APS ── */
.why-aps { padding: 50px 0; }
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 768px) {
  .why-grid { grid-template-columns: 1fr; }
}
.why-card {
  background: var(--canvas);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.why-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--teal);
  font-family: 'Inter', sans-serif;
  line-height: 1;
  letter-spacing: -0.02em;
}
.why-num small {
  font-size: 0.45em;
  font-weight: 500;
  vertical-align: super;
}
.why-icon {
  width: 40px; height: 40px;
  background: var(--teal-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-card h3 { font-size: 16px; }
.why-card p  { font-size: 13px; color: var(--text-muted); line-height: 1.65; }

/* ── Service Photos ── */
.svc-photo {
  width: 100%;
  height: 200px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}
.svc-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}

/* ── Larger metric numbers (accessibility fix) ── */
.case-metric-num {
  font-size: 32px !important;
  font-weight: 700 !important;
}
.case-metric-num small {
  font-size: 0.52em !important;
}
.case-metric-label {
  font-size: 13px !important;
}

/* ── Larger Why APS numbers ── */
.why-num {
  font-size: 44px !important;
}

/* ── Phase card larger text ── */
.phase-card strong { font-size: 18px !important; }
.phase-card span   { font-size: 13px !important; }
.phase-label       { font-size: 11px !important; }

/* ── 4-phase flow (Service 03) ── */
.phase-flow-4 {
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: stretch;
}
@media (max-width: 640px) {
  .phase-flow-4 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* WHY APS - v2.3 cards: equal size, no icons */
.why-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
.why-card .why-icon { display: none !important; }
.why-num {
  font-size: 40px !important;
  font-weight: 700;
  color: var(--teal);
  font-family: 'Inter', sans-serif;
  line-height: 1;
}
.why-card h3 { font-size: 17px !important; font-weight: 600; }
.why-card p  { font-size: 14px !important; flex: 1; }
.why-tag-row {
  font-size: 12px;
  color: var(--teal);
  font-weight: 500;
  padding: 6px 0;
  border-top: 0.5px solid var(--teal-light);
  margin-top: auto;
}
.why-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
}

/* Services HERO h1 line breaks */
.page-hero h1 {
  white-space: pre-line;
  word-break: keep-all;
}

/* ── Why APS — mobile: horizontal scroll row ── */
@media (max-width: 768px) {
  .why-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    overflow-x: visible !important;
  }
  .why-card {
    padding: 22px 18px !important;
  }
  .why-num  { font-size: 36px !important; }
  .why-card h3 { font-size: 16px !important; }
  .why-card p  { font-size: 14px !important; }
  .why-tag-row { font-size: 12px !important; }
}