/* ======================================================
   Service ページ固有スタイル
====================================================== */

/* ---- Hero ---- */
.service-hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.service-hero-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.sh-text {}
.sh-en {
  font-family: var(--font-en-heading);
  font-size: clamp(52px, 6.5vw, 88px);
  font-weight: 300;
  line-height: 1.05;
  color: var(--charcoal);
  opacity: 0;
  animation: fadeUp 0.9s ease 0.3s forwards;
}
.sh-en em { font-style: italic; color: var(--teal); }
.sh-ja {
  font-family: var(--font-ja-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  color: var(--mid-gray);
  margin: 14px 0 32px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.48s forwards;
}
.sh-desc {
  font-size: 17px;
  color: var(--charcoal);
  line-height: 1.85;
  max-width: 520px;
  opacity: 0;
  animation: fadeUp 0.9s ease 0.62s forwards;
}
.sh-visual {
  opacity: 0;
  animation: fadeIn 1.2s ease 0.5s forwards;
}
.sh-visual img {
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 24px 64px rgba(0,104,130,0.16);
}

/* ---- 課題共感 ---- */
.pain-section {
  padding: var(--section-gap) 0;
  background: var(--light-gray);
}
.pain-title {
  font-family: var(--font-ja-heading);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 500;
  color: var(--charcoal);
  text-align: center;
  margin-bottom: 12px;
}
.pain-subtitle {
  font-size: 17px;
  color: var(--mid-gray);
  line-height: 1.8;
  text-align: center;
  margin-bottom: 64px;
}

/* 三層グリッド */
.pain-layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pain-layer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
  display: flex;
  flex-direction: column;
}
.plc-img-wrap {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  flex-shrink: 0;
  /* ダミー時のグレー背景 */
  background: #e8eaec;
  position: relative;
}
/* ダミー表示用プレースホルダー */
.plc-img-dummy {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, #dde1e4 0%, #c8cdd2 100%);
  color: #9aa0a6;
  font-size: 15px;
  font-family: var(--font-ui);
  letter-spacing: 0.08em;
  user-select: none;
}
.plc-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.plc-img-dummy svg {
  width: 32px;
  height: 32px;
  stroke: #b0b8bf;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pain-layer-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}
.plc-header {
  padding: 20px 28px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}
.plc-badge {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: var(--white);
}
.badge-top    { background: var(--deep-teal); }
.badge-mid    { background: var(--teal); }
.badge-bottom { background: var(--mint); color: var(--deep-teal); }

.plc-layer-name {
  font-family: var(--font-ja-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--charcoal);
}
.plc-keyword {
  padding: 12px 28px;
  background: rgba(134,202,182,0.08);
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
}
.plc-body {
  padding: 20px 28px 28px;
}
.plc-quote {
  font-family: var(--font-ja-heading);
  font-size: 14px;
  color: var(--charcoal);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--mint);
}
.plc-voices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.plc-voice {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.8;
  padding-left: 14px;
  position: relative;
}
.plc-voice::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--border);
}

/* ======================================================
   原因パート — 図解
====================================================== */
.cause-section {
  padding: var(--section-gap) 0;
  background: var(--white);
}
.cause-lead {
  text-align: center;
  margin-bottom: 20px;
}
.cause-lead-title {
  font-family: var(--font-ja-heading);
  font-size: clamp(23px, 2.8vw, 34px);
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 12px;
}
.cause-lead-sub {
  font-size: 17px;
  color: var(--mid-gray);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.85;
}

.cause-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 64px;
  align-items: start;
}

.cause-figure {
  background: var(--light-gray);
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 40px;
  transition: border-color 0.25s;
}
.cause-figure:hover { border-color: var(--teal); }

.cf-num {
  font-family: var(--font-en-heading);
  font-size: 17px;
  letter-spacing: 0.18em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.cf-title {
  font-family: var(--font-ja-heading);
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 8px;
}
.cf-keyword-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(134,202,182,0.2);
  color: var(--teal);
  padding: 3px 10px;
  border-radius: 2px;
  margin-bottom: 28px;
}
.cf-desc {
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 32px;
}

/* --- 原因図解：画像プレースホルダー --- */
.cause-img-placeholder {
  width: 100%;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--light-gray);
  min-height: 260px;
}

/* 画像が正常に読み込まれた場合 */
.cause-diagram-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
}

/* 画像がない場合のフォールバック（onerrorで .no-image クラスが付与される） */
.cause-img-placeholder .cause-img-fallback {
  display: none; /* 通常は非表示 */
}
.cause-img-placeholder.no-image .cause-img-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 40px 32px;
  text-align: center;
  min-height: 260px;
}
.cause-img-placeholder.no-image .cause-diagram-img {
  display: none;
}
.cause-img-fallback svg {
  width: 40px; height: 40px;
  stroke: var(--mint);
  opacity: 0.7;
}
.cause-img-fallback .cfi-title {
  font-family: var(--font-ja-heading);
  font-size: 15px;
  color: var(--mid-gray);
  margin: 0;
}
.cause-img-fallback .cfi-hint {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.8;
  margin: 0;
}
.cause-img-fallback code {
  font-family: 'Courier New', monospace;
  font-size: 15px;
  background: rgba(0,128,128,0.08);
  color: var(--teal);
  padding: 1px 6px;
  border-radius: 2px;
}

/* Spark Nova解消パート */
.cause-resolution {
  margin-top: 64px;
  padding: 48px;
  background: linear-gradient(135deg, rgba(0,128,128,0.05) 0%, rgba(134,202,182,0.08) 100%);
  border: 1px solid rgba(0,128,128,0.2);
  border-radius: 4px;
  text-align: center;
}
.cause-resolution p {
  font-family: var(--font-ja-heading);
  font-size: clamp(19px, 2.2vw, 25px);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.7;
}
.cause-resolution em {
  font-style: normal;
  color: var(--teal);
}

/* ======================================================
   アプローチ
====================================================== */
.approach-section {
  padding: var(--section-gap) 0;
  background: var(--light-gray);
}
.approach-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 48px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.pillar-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}
.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--mint) 100%);
}
.pillar-num {
  font-family: var(--font-en-heading);
  font-size: 80px;
  font-weight: 300;
  color: rgba(0,128,128,0.08);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.pillar-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: rgba(0,128,128,0.1);
  color: var(--teal);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 20px;
}
.pillar-title {
  font-family: var(--font-ja-heading);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  color: var(--charcoal);
  line-height: 1.5;
  margin-bottom: 16px;
}
.pillar-body {
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.8;
  margin-bottom: 24px;
}
.pillar-points {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pillar-point {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--charcoal);
}
.pillar-point::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal);
  margin-top: 6px;
  flex-shrink: 0;
}

/* ======================================================
   SPN らしさ
====================================================== */
.spn-section {
  padding: var(--section-gap) 0;
  background: var(--white);
}
.spn-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.spn-card {
  background: var(--light-gray);
  border-radius: 4px;
  border: 1px solid var(--border);
  padding: 36px;
  transition: border-color 0.25s;
}
.spn-card:hover { border-color: var(--teal); }

.spn-icon {
  width: 44px; height: 44px;
  background: rgba(134,202,182,0.15);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.spn-icon svg {
  width: 22px; height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spn-title {
  font-family: var(--font-ja-heading);
  font-size: 20px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.spn-body {
  font-size: 16px;
  color: var(--mid-gray);
  line-height: 1.8;
}

/* ======================================================
   支援プロセス
====================================================== */
.process-section {
  padding: var(--section-gap) 0;
  background: rgba(134,202,182,0.07);
}
.process-steps {
  display: flex;
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.process-steps::before {
  content: '';
  position: absolute;
  top: 28px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mint), var(--teal), var(--deep-teal));
  z-index: 0;
}
.process-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}
.ps-circle {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}
.process-step:hover .ps-circle {
  background: var(--teal);
}
.ps-circle svg {
  width: 22px; height: 22px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s;
}
.process-step:hover .ps-circle svg { stroke: var(--white); }
.ps-num {
  position: absolute;
  top: -6px; right: -6px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-ui);
  font-size: 9px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.ps-title {
  font-family: var(--font-ja-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.5;
}
.ps-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ps-item {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.6;
  text-align: left;
}

/* 業界 */
.industry-section {
  padding: 80px 0;
  background: var(--light-gray);
}
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}
.industry-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px 24px;
  text-align: center;
  transition: border-color 0.25s, transform 0.25s;
}
.industry-card:hover {
  border-color: var(--teal);
  transform: translateY(-3px);
}
.ind-icon {
  width: 40px; height: 40px;
  margin: 0 auto 14px;
  background: rgba(134,202,182,0.15);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
}
.ind-icon svg {
  width: 20px; height: 20px;
  stroke: var(--teal);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ind-name {
  font-family: var(--font-ja-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 6px;
}
.ind-en {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.ind-desc {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.8;
}

/* 事例 */
.case-section {
  padding: var(--section-gap) 0;
  background: var(--white);
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.case-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s;
}
.case-card:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
}
.cc-img {
  width: 100%; height: 180px;
  object-fit: cover;
  background: linear-gradient(135deg, rgba(0,128,128,0.1) 0%, rgba(134,202,182,0.15) 100%);
  display: flex; align-items: center; justify-content: center;
}
.cc-img-placeholder {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, rgba(0,128,128,0.08) 0%, rgba(134,202,182,0.12) 100%);
  display: flex; align-items: center; justify-content: center;
}
.cc-img-placeholder svg {
  width: 48px; height: 48px;
  stroke: rgba(0,128,128,0.3);
  fill: none;
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cc-body { padding: 28px; }
.cc-tag { margin-bottom: 12px; }
.cc-company {
  font-size: 15px;
  color: var(--mid-gray);
  margin-bottom: 6px;
}
.cc-title {
  font-family: var(--font-ja-heading);
  font-size: 19px;
  font-weight: 500;
  color: var(--charcoal);
  margin-bottom: 12px;
  line-height: 1.5;
}
.cc-desc {
  font-size: 15px;
  color: var(--mid-gray);
  line-height: 1.78;
  margin-bottom: 20px;
}
.cc-link {
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.1em;
  color: var(--teal);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
  text-decoration: none;
  transition: gap 0.2s;
}
.cc-link:hover { gap: 10px; }
.cc-link svg {
  width: 12px; height: 12px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* CTA */
.service-cta {
  padding: var(--section-gap) 0;
  background: var(--teal);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.service-cta .container {
  text-align: center;
}
.service-cta .section-label {
  justify-content: center;
  color: rgba(255,255,255,0.6);
}
.service-cta .section-label::before {
  background: rgba(255,255,255,0.4);
}
.service-cta .section-label::after {
  content: '';
  display: block;
  width: 32px;
  height: 1px;
  background: rgba(255,255,255,0.4);
}

.service-cta .section-title {
  font-size: clamp(24px, 3.5vw, 42px);
}
.service-cta .cta-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.service-cta::before {
  content: 'TRANSFORM';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  font-family: var(--font-en-heading);
  font-size: 140px;
  font-weight: 300;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.1em;
}

/* アニメーション */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* レスポンシブ */
@media (max-width: 1024px) {
  .service-hero-inner { grid-template-columns: 1fr; }
  .sh-visual { display: none; }
  .cause-figures { grid-template-columns: 1fr; }
  .approach-pillars { grid-template-columns: 1fr; }
  .spn-grid { grid-template-columns: 1fr; }
  /* タブレット: 横並び維持（5列）*/
  .process-steps { flex-wrap: nowrap; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .process-step { flex: 1 0 160px; padding: 0 12px; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .pain-layers { grid-template-columns: 1fr; }

  /* ここを修正：2列 → 1列 */
  .industry-grid { grid-template-columns: 1fr; }

  /* カードを横並びレイアウトに変更してスペースを有効活用 */
  .industry-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    text-align: left;
    padding: 20px 24px;
  }
  .ind-icon {
    grid-column: 1;
    grid-row: 1 / 3;
    margin: 0;
    align-self: center;
  }
  .ind-name {
    grid-column: 2;
    grid-row: 1;
    margin-bottom: 2px;
  }
  .ind-en {
    grid-column: 2;
    grid-row: 2;
    margin-bottom: 0;
    font-size: 11px;
  }
  .ind-desc {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 10px;
    font-size: 14px;
  }

  /* スマホ: 縦並び一列 */
  .process-steps {
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 32px;
    overflow-x: visible;
    margin-top: 36px;
  }
  .process-steps::before { display: none; }
  .process-step {
    flex: none;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 16px;
  }
  .ps-circle { flex-shrink: 0; margin-bottom: 0; }
  .ps-items { text-align: left; }
  .case-grid { grid-template-columns: 1fr; }
}

