/* ==========================================
   SERVICE CONSULTING PAGE
========================================== */

/* HERO
========================================== */
.sc-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.sc-hero-bg {
  position: absolute;
  inset: 0;
  background-color: #0d1117;
  background-image:
    linear-gradient(135deg, rgba(10,10,20,0.68) 0%, rgba(5,12,28,0.55) 100%),
    url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?w=1920&q=80&fit=crop');
  background-size: cover;
  background-position: center;
}

.sc-hero-bg--sales {
  background-color: #150a00;
  background-image:
    linear-gradient(135deg, rgba(15,8,0,0.65) 0%, rgba(35,16,0,0.52) 100%),
    url('https://images.unsplash.com/photo-1551836022-deb4988cc6c0?w=1920&q=80&fit=crop');
  background-size: cover;
  background-position: center;
}

.sc-hero-content {
  position: relative;
  z-index: 1;
  padding-top: var(--header-h);
}

.sc-hero-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.4em;
  color: var(--accent);
  margin-bottom: 24px;
}

.sc-hero-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(32px, 5.5vw, 68px);
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 24px;
  letter-spacing: 0.04em;
}

.sc-hero-sub {
  font-size: clamp(14px, 1.6vw, 18px);
  color: rgba(255,255,255,0.65);
  margin-bottom: 44px;
  letter-spacing: 0.05em;
}

.sc-hero-btn {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  border-radius: var(--radius);
  transition: background var(--ease), transform var(--ease);
}

.sc-hero-btn:hover {
  background: var(--accent-dark);
  transform: translateY(-3px);
}

.sc-hero-scroll {
  position: absolute;
  bottom: 40px;
  right: 10%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  z-index: 10;
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

.sc-hero-scroll-line {
  width: 1px;
  height: 64px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
  animation: scrollPulse 2s ease infinite;
}

/* BREADCRUMB
========================================== */
.sc-breadcrumb {
  background: var(--bg-light);
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}

.sc-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
}

.sc-breadcrumb a {
  color: var(--text-light);
  transition: color var(--ease);
}

.sc-breadcrumb a:hover { color: var(--accent); }

.sc-bc-sep { color: #ccc; }

/* INTRO
========================================== */
.sc-intro { background: #fff; }

.sc-intro-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.sc-intro-lead {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 24px;
  letter-spacing: 0.05em;
}

.sc-intro-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3.2vw, 36px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 32px;
}

.sc-heading-accent {
  color: var(--accent);
}

.sc-intro-text {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2.1;
}

/* PROBLEMS
========================================== */
.sc-problems {
  background: var(--bg-light);
  padding: 100px 0;
}

.sc-problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sc-problem-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 36px;
  box-shadow: var(--shadow);
  position: relative;
  transition: box-shadow var(--ease), transform var(--ease);
  text-align: center;
}

.sc-problem-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.sc-problem-num {
  position: absolute;
  top: 24px;
  left: 28px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent);
  opacity: 0.8;
}

.sc-problem-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 28px;
  color: var(--primary);
  opacity: 0.75;
}

.sc-problem-icon svg { width: 100%; height: 100%; }

.sc-problem-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.65;
  margin-bottom: 16px;
}

.sc-problem-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
}

/* SOLUTION
========================================== */
.sc-solution { background: #fff; }

.sc-solution-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 80px;
  align-items: center;
}

.sc-solution-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.65;
  margin-bottom: 24px;
}

.sc-solution-text p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
  margin-bottom: 28px;
}

.sc-solution-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sc-solution-list li {
  font-size: 15px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sc-list-check {
  color: var(--accent);
  font-weight: 700;
  font-size: 16px;
  flex-shrink: 0;
}

.sc-solution-visual {
  display: flex;
  justify-content: center;
}

.sc-solution-frame {
  width: 100%;
  max-width: 360px;
  background: var(--primary);
  border-radius: 8px;
  padding: 48px 40px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.sc-solution-num-big {
  font-size: clamp(44px, 5vw, 60px);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -2px;
}

.sc-solution-num-big span {
  font-size: 0.45em;
  letter-spacing: 0;
  font-weight: 700;
}

.sc-solution-num-label {
  font-size: 12px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.sc-solution-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  margin: 24px auto;
}

/* CHART SECTION
========================================== */
.sc-chart-section {
  background: var(--bg-light);
  padding: 100px 0;
}

.sc-case-box {
  max-width: 800px;
  margin: 0 auto 72px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  padding: 52px 64px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--accent);
}

.sc-case-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 4px 16px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.sc-case-company {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.sc-case-heading {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 2.8vw, 30px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sc-case-accent { color: var(--accent); }

.sc-case-desc {
  font-size: 15px;
  color: var(--text-light);
  line-height: 2;
}

/* Bar Chart
========================================== */
.sc-chart {
  max-width: 800px;
  margin: 0 auto 64px;
  background: #fff;
  border-radius: var(--radius);
  padding: 48px 48px 32px;
  box-shadow: var(--shadow);
}

.sc-chart-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 32px;
  letter-spacing: 0.05em;
}

.sc-chart-body {
  display: flex;
  gap: 0;
  align-items: flex-end;
  height: 280px;
}

.sc-chart-y-axis {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-end;
  padding-right: 16px;
  padding-bottom: 32px;
  height: 100%;
}

.sc-chart-y-axis span {
  font-size: 11px;
  color: var(--text-light);
  min-width: 30px;
  text-align: right;
}

.sc-chart-bars {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 20px;
  padding-bottom: 0;
  position: relative;
}

.sc-chart-bars::before {
  content: '';
  position: absolute;
  inset: 0 0 32px 0;
  background: repeating-linear-gradient(
    to top,
    #f5f5f5 0px, #f5f5f5 1px,
    transparent 1px, transparent calc(100% / 6)
  );
  pointer-events: none;
}

.sc-bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
  justify-content: flex-end;
}

.sc-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
}

.sc-bar {
  width: 100%;
  height: 0;
  background: #ddd;
  border-radius: 3px 3px 0 0;
  transition: height 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
}

.sc-bar.animated { height: calc(var(--bar-h) * 1px); }

.sc-bar--accent { background: linear-gradient(to top, #c9a84c, #e8c96a); }
.sc-bar--gold   { background: linear-gradient(to top, #a8873a, #c9a84c); }

.sc-bar::after {
  content: attr(data-val);
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.5s ease 1s;
}

.sc-bar.animated::after { opacity: 1; }

.sc-bar-label {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  padding-top: 8px;
  border-top: 1px solid #eee;
  width: 100%;
  white-space: nowrap;
}

.sc-chart-note {
  font-size: 11px;
  color: #aaa;
  margin-top: 20px;
  text-align: right;
}

/* KPI Grid
========================================== */
.sc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.sc-kpi-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border-bottom: 3px solid var(--accent);
}

.sc-kpi-icon {
  font-size: 28px;
  margin-bottom: 14px;
  line-height: 1;
}

.sc-kpi-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -1px;
}

.sc-kpi-num span {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-light);
  letter-spacing: 0;
}

.sc-kpi-label {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* PROCESS
========================================== */
.sc-process { background: #fff; }

.sc-process-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.sc-process-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 40px;
  align-items: start;
  padding: 44px 0;
  border-bottom: 1px solid #eee;
  position: relative;
}

.sc-process-step:first-child { border-top: 1px solid #eee; }

.sc-process-step::before {
  content: '';
  position: absolute;
  left: 59px;
  top: 0;
  bottom: -1px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  z-index: 0;
}

.sc-process-step:last-child::before { display: none; }

.sc-step-num {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 12px;
  border-radius: 2px;
  text-align: center;
  background: #fff;
  position: relative;
  z-index: 1;
  align-self: start;
  margin-top: 4px;
}

.sc-step-body h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.5;
}

.sc-step-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 2;
}

/* OTHER SERVICES
========================================== */
.sc-other { background: var(--bg-light); }

.sc-other-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.sc-other-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--ease), transform var(--ease);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.sc-other-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.sc-other-icon {
  width: 48px;
  height: 48px;
  color: var(--accent);
  margin-bottom: 20px;
}

.sc-other-icon svg { width: 100%; height: 100%; }

.sc-other-card h3 {
  font-family: 'Noto Serif JP', serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.sc-other-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.9;
  flex: 1;
  margin-bottom: 20px;
}

.sc-other-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

/* CTA
========================================== */
.sc-cta {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}

.sc-cta-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #111 0%, #1a1a2e 50%, #0d0d0d 100%);
}

.sc-cta-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent 0px, transparent 40px,
    rgba(201,168,76,0.03) 40px, rgba(201,168,76,0.03) 41px
  );
}

.sc-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.sc-cta-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(22px, 3.5vw, 38px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.55;
}

.sc-cta-text {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 2;
  margin-bottom: 44px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================
   RESPONSIVE
========================================== */
@media (max-width: 1024px) {
  .sc-solution-inner { grid-template-columns: 1fr; }
  .sc-solution-visual { order: -1; }
  .sc-solution-frame { max-width: 480px; }
  .sc-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .sc-hero-scroll { display: none; }

  .sc-problem-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sc-chart { padding: 32px 20px 24px; }
  .sc-chart-body { height: 200px; }
  .sc-chart-bars { gap: 10px; }
  .sc-bar-label { font-size: 10px; }

  .sc-case-box { padding: 36px 28px; }

  .sc-other-grid { grid-template-columns: 1fr; gap: 20px; }

  .sc-process-step {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sc-process-step::before { display: none; }

  .sc-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .sc-kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sc-kpi-card { padding: 24px 16px; }

  /* Hero */
  .sc-hero-title { font-size: clamp(26px, 8vw, 42px); }
  .sc-hero-sub   { font-size: 13px; margin-bottom: 32px; }
  .sc-hero-btn   { padding: 14px 32px; }

  /* Solution frame */
  .sc-solution-frame { padding: 36px 24px; }
  .sc-solution-num-big { font-size: clamp(36px, 9vw, 52px); }

  /* Chart */
  .sc-chart { padding: 24px 16px 20px; }
  .sc-chart-body { height: 160px; }
  .sc-chart-bars { gap: 6px; }
  .sc-bar-label  { font-size: 9px; white-space: normal; text-align: center; }
  .sc-chart-y-axis span { font-size: 9px; }

  /* Case box */
  .sc-case-box { padding: 28px 20px; }

  /* Process */
  .sc-step-body h3 { font-size: 16px; }
  .sc-step-body p  { font-size: 13px; }

  /* CTA */
  .sc-cta { padding: 80px 0; }
  .sc-cta-title { font-size: clamp(20px, 6vw, 28px); }
}
