/* ============================================================
   サービス・進め方（/service）専用
   Figma: サービス・進め方（97:137）／ SP: 429:4160
   ============================================================ */

:root {
  --sv-sub: var(--sub);      /* Figma var(--subcolor)：番号・STEP・補足ラベル */
  --sv-gray: #5e6670;     /* 支援領域カードの説明文 */
  --sv-muted: #6c829b;    /* 比較表の他社セル */
  --ff-num: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

.sv-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 0 64px;
}

/* 左寄せの見出し（PC）— SP は共通 .sec-head と同じ中央揃え */
.sv-head { align-items: flex-start; gap: 12px; text-align: left; }
.sv-head .sec-head__en { font-weight: 500; }
.sv-head .sec-head__title { line-height: var(--lh); }

/* ------------------------------------------------------------
   セクションタブ（左端から出るラベル）
   ------------------------------------------------------------ */
.sec-tab {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: -36px;
  padding: 10px 40px;
  border-radius: 0 0 30px 0;
  font-size: 32px;
  font-weight: 500;
  line-height: var(--lh);
}
.sec-tab--service { width: 340px; background: var(--lightblue); color: var(--mainblue); }
.sec-tab--flow { width: 424px; background: var(--mainblue); color: var(--lightblue); }

/* ------------------------------------------------------------
   service（支援領域）
   ------------------------------------------------------------ */
.sv-service { background: var(--mainblue); color: #fff; padding: 83px 0 88px; }
.sv-service .sv-inner { margin-top: 48px; }
.sv-service .sec-head__title { line-height: 1.4; } /* Figma の行ボックス 56px */
.sv-service .sv-head,
.sv-compare .sv-head { color: #fff; }

.sv-areas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1293px;
  margin-top: 67px;
}
.sv-area {
  min-height: 200px;
  background: var(--lightblue);
  border-radius: 0 50px 0 50px;
  padding: 24px 23px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
}
.sv-area__title {
  padding-right: 8px;
  border-bottom: 2px solid var(--darktext);
  font-size: 24px;
  font-weight: 500;
  line-height: var(--lh);
  color: var(--darktext);
}
.sv-area__text { max-width: 331px; font-size: 12px; color: var(--sv-gray); }

/* ------------------------------------------------------------
   comparison（比較表）
   ------------------------------------------------------------ */
.sv-compare { background: var(--mainblue); padding: 66px 0 73px; }
.sv-compare .sv-inner { padding-right: 56px; }
.sv-compare .sv-head { gap: 16px; }

.cmp--sp { display: none; }
.cmp--pc {
  max-width: 1320px;
  margin-top: 32px;
  border-radius: 24px;
  overflow: hidden;
  background: var(--sv-sub);
}
.cmp__table {
  border-collapse: separate;
  border-spacing: 2px;
  margin: -2px;
  width: calc(100% + 4px);
  table-layout: fixed;
  text-align: center;
  line-height: var(--lh);
}
.cmp--pc .cmp__table th,
.cmp--pc .cmp__table td {
  height: 96px;
  padding: 16px 12px;
  background: var(--lightblue);
  color: var(--sv-muted);
  font-size: 20px;
  font-weight: 700;
  vertical-align: middle;
}
.cmp--pc .cmp__table thead th { background: var(--darktext); color: #fff; }
.cmp--pc thead th:first-child { width: 26.67%; } /* 352 / 1320 */
.cmp--pc .cmp__table .cmp__mark { font-size: 32px; font-weight: 400; }
.cmp--pc .cmp__table .cmp__mark--bold { font-weight: 700; }
.cmp--pc .cmp__ours th,
.cmp--pc .cmp__ours td { height: 190px; background: #fff; color: var(--darktext); }
.cmp--pc .cmp__ours img { width: 200px; margin: 0 auto; }
.cmp__ok,
.cmp__note { display: block; }
.cmp--pc .cmp__ok { font-size: 40px; line-height: var(--lh); }
.cmp--pc .cmp__note { margin-top: 8px; font-size: 20px; }

/* ------------------------------------------------------------
   how we work（支援の進め方）
   ------------------------------------------------------------ */
.sv-flow { background: var(--lightblue); padding: 83px 0 114px; }
.sv-flow .sv-inner { margin-top: 50px; }
.sv-flow .sv-head { color: var(--darktext); }

.sv-flow__panel { max-width: var(--container); margin: 54px auto 0; padding: 0 24px 0 var(--gutter); }
.flow-list {
  width: min(926px, 100%);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.flow-item { display: flex; align-items: center; gap: 39px; }
.flow-item__num {
  flex: none;
  width: 121px;
  font-family: var(--ff-num);
  font-weight: 100;
  font-size: 116px;
  line-height: var(--lh);
  text-align: center;
  color: var(--sv-sub);
  opacity: .6;
}
.flow-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; color: var(--mainblue); }
.flow-item__title { font-size: 32px; font-weight: 500; line-height: var(--lh); }
.flow-item__text { font-size: 16px; }
.flow-item__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.flow-item__tags li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 12px;
  color: var(--sv-sub);
}
.flow-item__tags li:not(:last-child)::after {
  content: "";
  width: 1px;
  height: 16px;
  background: var(--sv-sub);
}

/* ------------------------------------------------------------
   process（ご相談からの流れ）
   ------------------------------------------------------------ */
.sv-process { background: var(--lightblue); padding: 72px 0 60px; }
.sv-process .sv-inner > * { max-width: 1299px; }
.sv-process .sv-head { gap: 16px; }

.steps-flow { display: flex; align-items: stretch; gap: 12px; margin-top: 48px; }
.step-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  background: var(--mainblue);
  border-radius: 30px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 40px;
}
.step-card + .step-card { margin-left: 33.75px; }
.step-card + .step-card::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -12px;
  width: 21.75px;
  height: 35.5px;
  transform: translate(-100%, -50%);
  background: url(/assets/service/step-arrow-right.svg) center / contain no-repeat;
}
.step-card__num { font-family: var(--ff-num); font-weight: 350; font-size: 36px; line-height: var(--lh); color: var(--sv-sub); }
.step-card__body { display: flex; flex-direction: column; gap: 12px; }
.step-card__title { font-size: 20px; font-weight: 700; line-height: 32px; color: #fff; }
.step-card__time { font-size: 12px; color: var(--sv-sub); }
.step-card__text { font-size: 14px; font-weight: 400; color: #fff; }

.sv-worries { margin-top: 104px; display: flex; flex-direction: column; gap: 16px; }
.sv-worries__title { font-size: 24px; font-weight: 500; line-height: var(--lh); color: var(--darktext); }
.check-list {
  background: #fff;
  border-radius: 0 20px 20px 20px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.check-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--mainblue);
}
.check-list li::before {
  content: "";
  flex: none;
  width: 24px;
  height: 24px;
  background: url(/assets/service/check.svg) center / 22px no-repeat;
}
.sv-worries__cta { display: flex; justify-content: flex-end; }

/* ------------------------------------------------------------
   AI協働
   ------------------------------------------------------------ */
.sv-ai { background: var(--lightblue); padding: 68px 0 128px; }
.sv-ai__inner { padding-left: 80px; }
.sv-ai .sv-head { gap: 16px; color: var(--darktext); }

.ai-figure {
  width: min(1038px, calc(100% - 2 * var(--gutter)));
  margin: 64px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 31px;
}
.ai-board {
  width: 100%;
  min-height: 551px;
  background: #fff;
  border-radius: 80px;
  padding: 40px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
}
.ai-col { flex: none; width: 212px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ai-col__circle {
  position: relative;
  width: 212px;
  height: 212px;
  border-radius: 50%;
  background: var(--mainblue);
}
.ai-col__label {
  position: absolute;
  top: 32px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  line-height: var(--lh);
  color: #fff;
}
.ai-col__icon { position: absolute; top: 70px; left: 50%; width: 100px; height: 100px; transform: translateX(-50%); }
.ai-col__icon--ai { top: 72px; }
.ai-col__pills { width: 180px; display: flex; flex-direction: column; align-items: stretch; gap: 9px; }
.ai-col__pills li {
  background: var(--lightblue);
  border-radius: 40px;
  padding: 4px 12px;
  text-align: center;
  font-size: 16px;
  color: var(--darktext);
}
.ai-col__pills li:first-child { align-self: center; padding: 4px 20px; }

.ai-arrows { flex: none; width: 330px; display: flex; flex-direction: column; gap: 7px; }
.ai-arrow { position: relative; width: 298px; height: 117px; }
.ai-arrow img { width: 100%; height: 100%; }
.ai-arrow--right { margin-left: 32px; }
.ai-arrow span {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 91%;
  font-size: 24px;
  line-height: var(--lh);
  color: var(--lightblue);
  white-space: nowrap;
}
.ai-arrow--right span { left: 0; }
.ai-arrow--left span { left: 11%; width: 90%; }

.ai-figure__down { width: 94px; height: 59px; margin: 2px 0; }
.ai-figure__result {
  width: min(902px, 100%);
  border-bottom: 5px solid var(--mainblue);
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  line-height: var(--lh);
  color: var(--darktext);
}

/* ============================================================
   tablet
   ============================================================ */
@media (max-width: 1360px) {
  .sv-areas { grid-template-columns: repeat(2, 1fr); }
  .steps-flow { flex-wrap: wrap; row-gap: 24px; }
  .step-card { flex: 1 1 calc(50% - 40px); }
  .step-card:nth-child(3) { margin-left: 0; }
  .step-card:nth-child(3)::before { display: none; }
}
@media (max-width: 1100px) {
  .sv-inner,
  .sv-ai__inner { padding-left: 40px; padding-right: 40px; }
  .sv-compare .sv-inner { padding-right: 40px; }
  .cmp--pc .cmp__table th,
  .cmp--pc .cmp__table td { font-size: 16px; }
  .cmp--pc .cmp__note { font-size: 16px; }
  .cmp--pc .cmp__ours img { width: 160px; }
  .sv-flow__panel { padding: 0 40px; }
  .flow-list { width: 100%; }
}

/* AI図：横並びが入らない幅では SP 版の小さい図に切り替える */
@media (max-width: 900px) {
  .ai-figure { width: min(365px, calc(100% - 20px)); margin-top: 34px; gap: 18px; }
  .ai-board {
    flex-direction: row;
    min-height: 298px;
    border-radius: 30px;
    padding: 24px 9px 24px 10px;
    align-items: flex-start;
    gap: 2px;
  }
  .ai-col { width: 120px; gap: 11px; }
  .ai-col__circle { width: 120px; height: 120px; }
  .ai-col__label { top: 19.5px; font-size: 16px; }
  .ai-col__icon { top: 48.5px; width: 57px; height: 57px; }
  .ai-col__icon--ai { top: 48px; width: 58px; height: 58px; }
  .ai-col__pills { width: auto; align-items: center; }
  .ai-col__pills li,
  .ai-col__pills li:first-child { padding: 2px 12px; font-size: 12px; white-space: nowrap; }
  .ai-col:last-child .ai-col__pills li { padding: 2px 6px; } /* AI側は文言が長いので左右余白を詰める */
  .ai-arrows { width: 102px; gap: 0; margin: 25px 0 0; }
  .ai-arrow { width: 94px; height: 42px; }
  .ai-arrow--right { margin-left: 8px; }
  .ai-arrow span { font-size: 12px; }
  .ai-arrow--right span { width: 84%; }
  .ai-arrow--left span { left: 16%; width: 84%; }
  .ai-figure__down { width: 38.5px; height: 24px; margin: 0; }
  .ai-figure__result {
    width: 310px;
    padding-bottom: 5px;
    border-bottom-width: 2px;
    font-size: 18px;
    font-weight: 500;
  }
}

@media (min-width: 768px) and (max-width: 900px) {
  .ai-figure__result { width: auto; padding: 0 8px 5px; white-space: nowrap; }
}

/* ============================================================
   SP（Figma: 429:4160 393px）
   ============================================================ */
@media (max-width: 767px) {
  .sv-inner,
  .sv-ai__inner { padding: 0 var(--gutter); }
  .sv-head { align-items: center; gap: 6px; text-align: center; }
  .sv-head .sec-head__en { font-weight: 700; }

  .sec-tab {
    display: inline-flex;
    width: auto;
    margin-left: 0;
    padding: 10px 20px 10px 16px;
    background: #fff;
    color: var(--mainblue);
    font-size: 16px;
  }

  /* service */
  .sv-service { padding: 0 0 72px; }
  .sv-service .sv-inner { margin-top: 27px; padding: 0 15px; }
  .sv-areas { grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 40px; }
  .sv-area {
    min-height: 0;
    justify-content: flex-start;
    border-radius: 0 20px 0 20px;
    padding: 20px 16px;
  }
  .sv-area__title { font-size: 16px; }
  .sv-service .sec-head__title { line-height: var(--lh); }
  .sv-service .sv-head,
  .sv-compare .sv-head,
  .sv-flow .sv-head { gap: 6px; }
  .sv-service .sec-head__title,
  .sv-compare .sec-head__title { max-width: 320px; }

  /* comparison */
  .sv-compare { padding: 0 0 23px; }
  .sv-compare .sv-inner { padding: 0 var(--gutter); }
  .cmp--pc { display: none; }
  .cmp--sp {
    display: block;
    margin-top: 24px;
    background: var(--lightblue);
    padding: 25px 0 26px;
  }
  .cmp__hint {
    display: flex;
    align-items: center;
    gap: 11px;
    padding-left: 26px;
    font-size: 16px;
    color: var(--darktext);
  }
  .cmp__hint-arrow { position: relative; width: 20px; height: 1.5px; background: var(--darktext); }
  .cmp__hint-arrow::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    border-top: 1.5px solid var(--darktext);
    border-right: 1.5px solid var(--darktext);
    transform: translateY(-50%) rotate(45deg);
  }
  .cmp__scroll { margin-top: 9px; overflow-x: auto; padding: 0 26px; -webkit-overflow-scrolling: touch; }
  .cmp__scroll .cmp__table {
    width: 820px;
    margin: 0;
    border-spacing: 1.4px;
    border: 1px solid var(--sv-sub);
    border-radius: 17px;
    background: var(--sv-sub);
    overflow: hidden;
  }
  .cmp__scroll th,
  .cmp__scroll td {
    height: 85px;
    padding: 11px 8px;
    background: var(--lightblue);
    color: var(--sv-muted);
    font-size: 14px;
    font-weight: 700;
    vertical-align: middle;
  }
  .cmp__scroll tr > :first-child { width: 104px; }
  .cmp__scroll .cmp__ours-col { width: 218px; background: #fff; }
  .cmp__scroll thead > tr > * { height: 69px; background: var(--darktext); color: #fff; font-size: 13px; }
  .cmp__scroll thead .cmp__ours-col { background: #fff; }
  .cmp__scroll thead img { width: 143px; margin: 0 auto; }
  .cmp__scroll tbody td.cmp__ours-col { padding: 4px 8px; }
  .cmp__scroll .cmp__mark { font-size: 23px; }
  .cmp__scroll .cmp__ok { font-size: 26px; line-height: var(--lh); color: var(--mainblue); }
  .cmp__scroll .cmp__note { font-size: 12px; color: #000; }

  /* how we work */
  .sv-flow { padding: 0 0 56px; }
  .sv-flow .sv-inner { margin-top: 35px; }
  .sv-flow__panel { margin-top: 33px; padding: 24px var(--gutter); background: #fff; }
  .flow-list { gap: 32px; }
  .flow-item { align-items: flex-start; gap: 21px; }
  .flow-item__num { width: 51px; font-weight: 350; font-size: 40px; line-height: 38px; }
  .flow-item__body { gap: 8px; }
  .flow-item__title { font-size: 16px; }
  .flow-item__text { font-size: 12px; }
  .flow-item__tags { flex-direction: column; align-items: flex-start; }
  .flow-item__tags li { padding: 2px 0; line-height: 19px; }
  .flow-item__tags li::after { display: none; }

  /* process */
  .sv-process { padding: 0 0 84px; }
  .sv-process .sv-head { gap: 8px; }
  .sv-process .sec-head__lead { font-weight: 400; }
  .steps-flow { flex-direction: column; gap: 12px; margin-top: 24px; }
  .step-card { flex: none; padding: 20px 24px; gap: 12px; }
  .step-card + .step-card { margin: 33.75px 0 0; }
  .step-card:nth-child(3)::before { display: block; }
  .step-card + .step-card::before {
    top: -12px;
    left: 50%;
    width: 35.5px;
    height: 21.75px;
    transform: translate(-50%, -100%);
    background-image: url(/assets/service/step-arrow-down.svg);
  }
  .step-card__num { font-weight: 500; font-size: 24px; }
  .step-card__body { gap: 4px; }
  .step-card__title { font-size: 16px; line-height: 32px; }
  .sv-worries { margin-top: 24px; gap: 4px; }
  .sv-worries__title { font-size: 16px; }
  .check-list li { font-size: 12px; font-weight: 500; }
  .sv-worries__cta { justify-content: center; margin-top: 20px; }

  /* AI */
  .sv-ai { padding: 0 0 106px; }
  .sv-ai .sv-head { gap: 12px; }
  .sv-ai .sec-head__lead { font-weight: 400; }
}
