/* ===== Growth Flow Diagram ===== */
.flow-sec {
  padding: 50px 48px;
  max-width: 1320px;
  margin: 0 auto;
}
.flow-head {
  margin-bottom: 100px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.flow-head h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.4;
}
.flow-head p {
  font-size: 15px;
  line-height: 2.1;
  color: #2f2f33;
}

.flow-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* Stage common */
.flow-stage {
  width: 100%;
  text-align: center;
  padding: 56px 32px;
  background: var(--off);
  border: 1px solid var(--mist);
  position: relative;
}
.stage-engine {
  background: var(--off-2);
  border-color: var(--mist);
}
.stage-expansion {
  background: var(--forest);
  color: var(--off);
  border-color: var(--forest);
}

.flow-meta {
  margin-bottom: 40px;
}
.flow-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--orange);
  font-size: 36px;
  line-height: 1;
  margin-bottom: 6px;
}
.flow-en {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 16px;
}
.stage-expansion .flow-en {
  color: rgba(243, 239, 230, 0.6);
}
.flow-meta h3 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Cards row */
.flow-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}
.flow-cards.four {
  grid-template-columns: repeat(4, 1fr);
  max-width: 100%;
  gap: 16px;
}
.flow-card {
  background: var(--off);
  border: 1px solid var(--mist);
  padding: 28px 22px;
  text-align: left;
  position: relative;
  transition: border-color .4s ease, transform .4s ease;
}
.flow-card:hover {
  border-color: var(--orange);
  transform: translateY(-3px);
}
.stage-engine .flow-card {
  background: var(--off);
}
.card-label {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--orange);
  font-size: 22px;
  line-height: 1;
  margin-bottom: 14px;
}
.flow-card h4 {
  font-family: "Noto Serif JP", serif;
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}
.flow-card p {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  line-height: 1.85;
  color: var(--stone);
}

/* Vision row in stage 03 */
.flow-vision {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
}
.vision-text p {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  line-height: 2;
  color: rgba(243, 239, 230, 0.85);
}
.vision-target {
  text-align: center;
  padding: 32px 24px;
  border: 1px solid rgba(243, 239, 230, 0.2);
}
.target-label {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(243, 239, 230, 0.6);
  margin-bottom: 16px;
}
.target-num {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1;
  color: var(--orange);
  margin-bottom: 8px;
  font-weight: 500;
}
.target-num .unit {
  font-size: 0.5em;
  margin-left: 4px;
}
.target-desc {
  display: block;
  font-family: "Noto Serif JP", serif;
  font-size: 13px;
  color: rgba(243, 239, 230, 0.7);
  letter-spacing: 0.06em;
}

/* Arrows between stages */
.flow-arrow {
  position: relative;
  height: 48px;
  width: 1px;
  display: flex;
  justify-content: center;
}
.flow-arrow span {
  display: block;
  width: 1px;
  background: var(--orange);
  height: 100%;
  position: relative;
}
.flow-arrow span::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 8px solid var(--orange);
}

/* Return loop */
.flow-return {
  margin-top: 64px;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 40px 32px;
  border-top: 1px dashed var(--orange);
  border-bottom: 1px dashed var(--orange);
  background: var(--off);
}
.return-arrow {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 1.5px dashed var(--orange);
  position: relative;
}
.return-arrow::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(225deg);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 14px solid var(--orange);
}
.return-text {
  flex: 1;
}
.return-en {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 6px;
}
.return-text h3 {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}
.return-text p {
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  line-height: 1.9;
  color: var(--stone);
}

/* Mobile */
@media (max-width: 900px) {
  .flow-sec { padding: 80px 24px; }
  .flow-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .flow-stage { padding: 40px 20px; }
  .flow-cards { grid-template-columns: 1fr; max-width: 100%; }
  .flow-cards.four { grid-template-columns: 1fr; }
  .flow-vision { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .flow-return { flex-direction: column; gap: 20px; padding: 32px 20px; text-align: center; }
}

/* Service detail */
.svc-detail { padding: 100px 48px; max-width: 1320px; margin: 0 auto; border-top: 1px solid var(--mist); }
.svc-detail.alt { background: var(--off-2); max-width: none; padding: 100px 48px; }
.svc-detail.alt > .svc-inner { max-width: 1320px; margin: 0 auto; }
.svc-inner { display: grid; grid-template-columns: 360px 1fr; gap: 80px; }
.svc-inner .side { position: sticky; top: 120px; align-self: start; }
.svc-inner .side .num { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--orange); font-size: 64px; line-height: 1; margin-bottom: 8px; }
.svc-inner .side .en { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.24em; color: var(--stone); text-transform: uppercase; margin-bottom: 20px; }
.svc-inner .side h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; margin-bottom: 24px; }
.svc-inner .side .tate { writing-mode: vertical-rl; font-family: "Noto Serif JP", serif; font-size: 12px; letter-spacing: 0.3em; color: var(--mist); position: absolute; top: 0; right: 0; height: 160px; }
.svc-body .lead { font-family: "Noto Serif JP", serif; font-size: clamp(18px, 1.5vw, 22px); line-height: 1.95; font-weight: 500; margin-bottom: 48px; max-width: 720px; }
.svc-block h4 { font-family: "Inter", sans-serif; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--orange); margin-bottom: 20px; font-weight: 500; }
.svc-block { margin-bottom: 48px; }
.svc-body ul { list-style: none; padding: 0; }
.svc-body ul li { padding: 16px 0 16px 32px; border-bottom: 1px solid var(--mist); position: relative; font-size: 15px; line-height: 1.8; }
.svc-body ul li::before { content: ""; position: absolute; left: 0; top: 26px; width: 18px; height: 1px; background: var(--orange); }
.svc-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--mist); margin-top: 40px; }
.svc-meta > div { background: var(--off); padding: 28px; }
.svc-detail.alt .svc-meta > div { background: var(--off-2); }
.svc-meta h4 { margin-bottom: 12px; }
.svc-meta p { font-size: 14px; line-height: 1.9; font-family: "Noto Serif JP", serif; }
@media (max-width: 900px) {
  .svc-detail { padding: 80px 24px; }
  .svc-detail.alt { padding: 80px 24px; }
  .svc-inner { grid-template-columns: 1fr; gap: 32px; }
  .svc-inner .side { position: static; }
  .svc-meta { grid-template-columns: 1fr; }
}

/* AI levels */
.ai-levels { margin-top: 32px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.ai-level { background: var(--off); border: 1px solid var(--mist); padding: 20px 16px; text-align: center; }
.svc-detail.alt .ai-level { background: var(--off); }
.ai-level .lv { font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--orange); font-size: 28px; line-height: 1; margin-bottom: 8px; }
.ai-level .t { font-family: "Noto Serif JP", serif; font-size: 12px; font-weight: 500; line-height: 1.5; }
@media (max-width: 700px) { .ai-levels { grid-template-columns: repeat(2, 1fr); } }

/* Related news */
.rel-news { padding: 50px 48px; max-width: 1320px; margin: 0 auto; border-top: 1px solid var(--mist); }
.rel-news h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 40px; }
.rel-news h2 .en { display: block; font-family: "Cormorant Garamond", serif; font-style: italic; color: var(--orange); font-size: 0.5em; margin-bottom: 6px; font-weight: 400; }

/* ============================================
   01 経営コンサル・伴走支援 拡張スタイル
   page-service.css の末尾に追記
   ※ 既存の .svc-detail / .svc-inner / .svc-meta などはそのまま活かす
============================================ */

/* リード文の accent 色 */
#svc-consulting .lead .accent,
#svc-consulting .svc-conclusion .accent {
  color: var(--orange, #E85D2C);
  font-weight: 600;
}

/* ===== 横スクロール共通 ===== */
.hscroll-wrap {
  position: relative;
  margin: 24px 0 0;
}

.hscroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 16px;
  scrollbar-width: thin;
  scrollbar-color: rgba(14, 14, 16, 0.2) transparent;
}

.hscroll::-webkit-scrollbar {
  height: 6px;
}

.hscroll::-webkit-scrollbar-track {
  background: rgba(14, 14, 16, 0.05);
  border-radius: 3px;
}

.hscroll::-webkit-scrollbar-thumb {
  background: rgba(14, 14, 16, 0.2);
  border-radius: 3px;
}

.hscroll::-webkit-scrollbar-thumb:hover {
  background: rgba(14, 14, 16, 0.35);
}

.hscroll-hint {
  display: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: rgba(14, 14, 16, 0.45);
  margin-bottom: 12px;
  align-items: center;
  gap: 6px;
}

.hscroll-hint::after {
  content: "→";
  font-family: "Inter", sans-serif;
  animation: hint-slide 1.6s ease-in-out infinite;
}

@keyframes hint-slide {
  0%, 100% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(4px); opacity: 1; }
}

/* ===== フェーズカード ===== */
.phase {
  background: #fff;
  border: 1px solid var(--mist, rgba(14, 14, 16, 0.08));
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  min-width: 0;
  scroll-snap-align: start;
}

.phase-num {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 16px;
  letter-spacing: 0.12em;
  color: var(--orange, #E85D2C);
  margin-bottom: 4px;
}

.phase-period {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--stone, rgba(14, 14, 16, 0.5));
  margin-bottom: 20px;
}

.phase-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mist, rgba(14, 14, 16, 0.1));
  color: var(--ink, #0E0E10);
}

.phase-desc {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(14, 14, 16, 0.75);
  margin: 0 0 18px;
}

.phase-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 12.5px;
  line-height: 1.8;
  color: rgba(14, 14, 16, 0.85);
  flex: 1;
}

.phase-list li {
  position: relative;
  padding: 0 0 0 16px;
  margin-bottom: 6px;
  border-bottom: none;
}

.phase-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 1px;
  background: var(--orange, #E85D2C);
}

.phase-foot {
  background: #1a1a2e;
  color: #f3efe6;
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  padding: 10px 8px;
  margin-top: auto;
}

/* ===== 統合メッセージ(中間結論) ===== */
#svc-consulting .svc-conclusion {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 2;
  text-align: center;
  margin: 56px 0 56px;
  padding: 32px 24px;
  background: rgba(232, 93, 44, 0.04);
  border-top: 1px solid rgba(232, 93, 44, 0.2);
  border-bottom: 1px solid rgba(232, 93, 44, 0.2);
}

/* ===== 選ばれる理由カード ===== */
.diff-item {
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--mist, rgba(14, 14, 16, 0.08));
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
  flex: 1 0 0;
  min-width: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.diff-item:hover {
  transform: translateY(-3px);
  border-color: var(--orange, #E85D2C);
  box-shadow: 0 8px 24px rgba(14, 14, 16, 0.06);
}

.diff-num {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 28px;
  color: var(--orange, #E85D2C);
  line-height: 1;
  margin-bottom: 12px;
}

.diff-item h5 {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: var(--ink, #0E0E10);
}

.diff-item p {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(14, 14, 16, 0.75);
  margin: 0;
}

/* ============================================
   レスポンシブ - タブレット以下で横スクロール化
   ※ デスクトップは flex: 1 0 0 で3カードが均等に並ぶ
============================================ */

@media (max-width: 1100px) {
  .hscroll-hint {
    display: inline-flex;
  }
  .phase {
    flex: 0 0 78%;
    max-width: 320px;
  }
  .diff-item {
    flex: 0 0 78%;
    max-width: 320px;
  }
}

@media (max-width: 700px) {
  .phase {
    flex: 0 0 85%;
    max-width: 300px;
    padding: 24px 20px 20px;
  }

  .diff-item {
    flex: 0 0 85%;
    max-width: 300px;
    padding: 24px 20px;
  }

  .phase-title {
    font-size: 19px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  #svc-consulting .svc-conclusion {
    padding: 24px 16px;
    margin: 40px 0;
    line-height: 1.9;
  }
}

/* ============================================
   02 AIシフト研修 拡張スタイル
   page-service.css の末尾に追記
   ※ 01で追加した .hscroll / .diff-item / .svc-conclusion を流用
============================================ */

/* リード文 accent */
#ai .lead .accent {
  color: var(--orange, #E85D2C);
  font-weight: 600;
}

/* ブロックタイトル横の注釈 */
.block-note {
  display: inline-block;
  margin-left: 12px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(14, 14, 16, 0.45);
  font-weight: normal;
  text-transform: none;
}

/* ===== 4機能カード ===== */
.func {
  background: #fff;
  border: 1px solid var(--mist, rgba(14, 14, 16, 0.08));
  padding: 28px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  min-width: 0;
  scroll-snap-align: start;
}

.func-core {
  background: #1a1a2e;
  border-color: #1a1a2e;
  color: #f3efe6;
}

.func-num {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--orange, #E85D2C);
  margin-bottom: 12px;
}

.func-core .func-num {
  color: #ffd166;
}

.func-title {
  font-family: "Noto Serif JP", serif;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 600;
  margin: 0 0 6px;
  line-height: 1.3;
}

.func-core .func-title {
  color: #f3efe6;
}

.func-en {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--stone, rgba(14, 14, 16, 0.5));
  margin: 0 0 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mist, rgba(14, 14, 16, 0.1));
}

.func-core .func-en {
  color: rgba(243, 239, 230, 0.5);
  border-bottom-color: rgba(243, 239, 230, 0.15);
}

.func-desc {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(14, 14, 16, 0.75);
  margin: 0 0 24px;
  flex: 1;
}

.func-core .func-desc {
  color: rgba(243, 239, 230, 0.85);
}

.func-desc .accent-soft {
  color: var(--orange, #E85D2C);
  font-weight: 600;
}

.func-foot {
  background: rgba(232, 93, 44, 0.08);
  color: var(--orange, #E85D2C);
  text-align: center;
  font-family: "Noto Serif JP", serif;
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 600;
  padding: 10px 8px;
  margin-top: auto;
}

.func-core .func-foot {
  background: rgba(255, 209, 102, 0.15);
  color: #ffd166;
}

/* ===== 実績(数値訴求)グリッド ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat {
  background: #fff;
  border: 1px solid var(--mist, rgba(14, 14, 16, 0.08));
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 500;
  color: var(--orange, #E85D2C);
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.stat-num .stat-unit {
  font-family: "Noto Sans JP", sans-serif;
  font-style: normal;
  font-size: 0.4em;
  margin: 0 2px;
  color: rgba(232, 93, 44, 0.85);
  font-weight: 600;
  letter-spacing: 0.05em;
}

.stat-label {
  font-family: "Noto Serif JP", serif;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #0E0E10);
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--mist, rgba(14, 14, 16, 0.1));
}

.stat-desc {
  font-size: 12px;
  line-height: 1.8;
  color: rgba(14, 14, 16, 0.7);
  margin: 0;
  text-align: left;
}

/* ===== 研修セッションカード ===== */
.session {
  background: #fff;
  border: 1px solid var(--mist, rgba(14, 14, 16, 0.08));
  padding: 22px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1 0 0;
  min-width: 0;
  scroll-snap-align: start;
  border-left: 3px solid var(--orange, #E85D2C);
}

.session-no {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--orange, #E85D2C);
  margin-bottom: 10px;
}

.session h5 {
  font-family: "Noto Serif JP", serif;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 10px;
  color: var(--ink, #0E0E10);
}

.session p {
  font-size: 12px;
  line-height: 1.75;
  color: rgba(14, 14, 16, 0.7);
  margin: 0;
}

/* ===== meta内のaccent ===== */
#ai .svc-meta .accent {
  color: var(--orange, #E85D2C);
  font-weight: 600;
}

#ai .svc-meta small {
  font-size: 11px;
  color: rgba(14, 14, 16, 0.55);
  display: inline-block;
  margin-top: 4px;
}

/* ============================================
   レスポンシブ
============================================ */

/* タブレット以下:横スクロール化 */
@media (max-width: 1100px) {
  .func {
    flex: 0 0 78%;
    max-width: 320px;
  }
  .session {
    flex: 0 0 60%;
    max-width: 260px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stat {
    text-align: left;
  }
  .stat-desc {
    text-align: left;
  }
}

/* スマホ */
@media (max-width: 700px) {
  .func {
    flex: 0 0 85%;
    max-width: 300px;
    padding: 24px 20px 20px;
  }
  .func-title {
    font-size: 22px;
  }
  .session {
    flex: 0 0 70%;
    max-width: 240px;
    padding: 20px 18px 18px;
  }
  .stat {
    padding: 24px 20px;
  }
  .stat-num {
    font-size: 36px;
  }
  .block-note {
    display: block;
    margin-left: 0;
    margin-top: 4px;
  }
}

/* ============================================
   横スクロールがレイアウト破壊するのを防ぐ
============================================ */
.svc-detail .svc-inner {
  min-width: 0;
}
.svc-detail .svc-body {
  min-width: 0;
  overflow: hidden;
}
.hscroll-wrap {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.hscroll {
  min-width: 0;
}