/* ==========================================================================
   CROCO ID portal — modern service list skin (scoped to the top page)
   Loaded only on public/index.html, after style.css. Restyles the #primary
   service grid; shares the CROCO ID design language used by id.biz-samurai.com.
   ========================================================================== */

:root {
  --c-brand-500: #02a0c1;
  --c-brand-600: #0b7c93;
  --c-brand-700: #075e70;
  --c-brand-100: #c2e9f0;
  --c-ink:    #1a2b32;
  --c-body:   #38484f;
  --c-muted:  #6b7a82;
  --c-border: #e2e8ea;
  --c-surface:  #f7f9fa;
  --c-surface-2:#ffffff;
  --c-radius: 12px;
  --c-shadow: 0 1px 3px rgba(16,40,48,.07), 0 1px 2px rgba(16,40,48,.04);
  --c-font: -apple-system, BlinkMacSystemFont, "Segoe UI",
            "Hiragino Kaku Gothic ProN", "Hiragino Sans",
            "Yu Gothic Medium", "Noto Sans JP", Meiryo, sans-serif;
}

#primary { font-family: var(--c-font); color: var(--c-body); }

/* section heading (replaces ttl_service_*.png) */
.svc-section {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 28px 20px 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
}
.svc-section .jp { font-size: 20px; font-weight: 700; color: var(--c-ink); }
.svc-section .en {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-brand-600);
}

/* card grid */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin: 0 20px 8px;
  padding: 0;
  list-style: none;
}
.svc-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--c-radius);
  box-shadow: var(--c-shadow);
  padding: 18px 18px 16px;
  transition: border-color .15s, box-shadow .15s;
}
.svc-card:hover {
  border-color: var(--c-brand-100);
  box-shadow: 0 4px 14px rgba(16,40,48,.10);
  text-decoration: none;
}
.svc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  margin-bottom: 10px;
}
.svc-brand .svc-icon {
  width: 46px;
  height: 46px;
  object-fit: contain;
  flex: none;
  border-radius: 8px;
}
.svc-brand .svc-logo {
  height: 28px;
  width: auto;
  max-width: 100%;
  display: block;
}
.svc-brand .svc-name { font-size: 16px; font-weight: 700; color: var(--c-ink); line-height: 1.35; }
.svc-desc { margin: 0; font-size: 13px; line-height: 1.7; color: var(--c-muted); }
.svc-badge {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--c-brand-700);
  background: var(--c-surface);
  border: 1px solid var(--c-brand-100);
  border-radius: 999px;
  padding: 1px 8px;
  vertical-align: middle;
}

@media (max-width: 600px) {
  .svc-grid { grid-template-columns: 1fr; margin: 0 12px 8px; }
  .svc-section { margin: 24px 12px 14px; }
}
