@import url("./page-common.css");

/* ============================================================
   Hero (Figma 4:5613): heading & divider span 834px, body 911px
   ============================================================ */
.p-hero__content {
  max-width: 990px;
}

.p-hero__heading,
.p-hero__divider {
  max-width: 834px;
}

.p-hero__title {
  letter-spacing: normal;
}

/* ============================================================
   CASE (Figma 4:5632): 3 outline cards, white section
   ============================================================ */
.p-org__case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.p-org__case-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 174px;
  background-color: var(--color-bg);
  border: 1px solid var(--color-primary);
  border-radius: 12px;
  box-shadow: 0 3px 18px rgba(23, 51, 38, 0.06);
  padding: 24px 22px;
  text-align: center;
}

.p-org__case-card__label {
  display: inline-block;
  padding: 3px 12px;
  background-color: var(--color-bg-card);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: var(--color-primary);
}

.p-org__case-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 1px;
}

.p-org__case-card__text {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 26px;
}

/* ============================================================
   STRENGTHS hub (Figma 4:5653): ivory section, hex hub diagram
   ============================================================ */
.p-org__strengths {
  background-color: var(--color-bg-alt);
  padding-block: 60px;
}

.p-org__strengths-inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
}

.p-org__strengths-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  margin-bottom: 40px;
}

.p-org__strengths-label {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 1.4px;
  color: var(--color-accent);
}

.p-org__strengths-title {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 4px;
}

.p-org__strengths-lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 34px;
}

.p-org__strengths-mark {
  color: var(--color-primary);
  font-weight: 700;
  background: linear-gradient(rgba(189, 143, 69, 0.55), rgba(189, 143, 69, 0.55)) no-repeat;
  background-size: 100% 5px;
  background-position: 0 90%;
}

.p-org__hub-scroll {
  display: flex;
  justify-content: center;
}

/* Figma 原寸 990×596。コンテナ拡幅に合わせて 1.176 倍の 1164px まで伸ばす。
   内部は全て % 指定なので比率を保ったまま追従する（990px 未満は従来どおり横スクロール） */
.p-org__hub {
  position: relative;
  width: 100%;
  min-width: 990px;
  max-width: 1164px;
  aspect-ratio: 990 / 596;
  flex-shrink: 0;
}

.p-org__hub-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: rgba(25, 92, 61, 0.22);
  stroke-width: 1;
}

/* SP のみ使う円内の破線クロス（Figma 5:11160） */
.p-org__hub-cross {
  display: none;
}

/* Figma 中心 491,294 / 円は 409・241・128（すべて 990×596 に対する比率） */
.p-org__hub-ring {
  position: absolute;
  left: 49.596%;
  top: 49.3289%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}

.p-org__hub-ring--outer {
  width: 41.3131%;
  aspect-ratio: 1;
  border: 1px solid rgba(25, 92, 61, 0.10);
  background: rgba(25, 92, 61, 0.02);
}

.p-org__hub-ring--inner {
  width: 24.3434%;
  aspect-ratio: 1;
  background: rgba(25, 92, 61, 0.05);
}

.p-org__hub-center {
  position: absolute;
  left: 49.596%;
  top: 49.3289%;
  transform: translate(-50%, -50%);
  width: 12.9293%;
  aspect-ratio: 1;
  border-radius: 50%;
  background-color: var(--color-primary);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: 1px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(25, 92, 61, 0.35);
  z-index: 2;
}

/* Figma 345×168（990×596 に対する比率） */
.p-org__hub-card {
  position: absolute;
  width: 34.8485%;
  min-height: 28.1879%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-bg);
  border-radius: 7px;
  padding: 14px 12px;
  box-shadow: 0 4px 22px rgba(23, 51, 38, 0.07);
  text-align: center;
  z-index: 1;
}

.p-org__hub-card__title {
  font-size: 21.5px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 33.5px;
}

.p-org__hub-card__dash {
  width: 33px;
  height: 3px;
  border-radius: 2px;
  background-color: var(--color-accent);
}

.p-org__hub-card__text {
  font-size: 17px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 27.5px;
}

/* ============================================================
   SERVICE FLOW (Figma 4:5694): phase chevrons + step diagram
   ============================================================ */
.p-org__flow {
  background-color: var(--color-bg);
  padding-block: 60px;
}

.p-org__flow-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-inline: 24px;
}

.p-org__flow-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
}

.p-org__flow-lead {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 24px;
  text-align: center;
}

.p-org__flow-scroll {
  display: flex;
  justify-content: center;
  width: 100%;
  overflow-x: auto;
}

.p-org__flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 1116px;
  flex-shrink: 0;
}

/* phase chevron banners */
.p-org__phase-row {
  display: flex;
  align-items: center;
}

.p-org__phase {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 40px;
  color: #ffffff;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.p-org__phase--1 {
  width: 397px;
  padding-left: 51px;
  margin-right: -13px;
  background-image: url("/assets/images/org-phase-1.svg");
  z-index: 3;
}

.p-org__phase--2 {
  width: 404px;
  padding-left: 96px;
  margin-right: -13px;
  background-image: url("/assets/images/org-phase-2.svg");
  z-index: 2;
}

.p-org__phase--3 {
  width: 324px;
  padding-left: 41px;
  background-image: url("/assets/images/org-phase-3.svg");
  z-index: 1;
}

.p-org__phase-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 21px;
  padding-inline: 12px;
  border: 1px solid #ffffff;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 1px;
  white-space: nowrap;
}

.p-org__phase-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* step diagram */
.p-org__flow-steps {
  display: flex;
  align-items: center;
  gap: 5.5px;
}

.p-org__flow-group {
  display: flex;
  align-items: center;
}

.p-org__flow-col2 {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.p-org__flow-col3,
.p-org__flow-col4 {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.p-org__step {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 172px;
  background-color: var(--color-bg);
  border: 1px solid;
  border-radius: 10px;
  padding: 30px 14px 22px;
  text-align: center;
}

.p-org__step-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.p-org__step-ico img {
  display: block;
  width: 100%;
  height: 100%;
}

.p-org__step-label {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
}

.p-org__step--green {
  border-color: #358562;
}

.p-org__step--green .p-org__step-label {
  color: #358562;
}

.p-org__step--dark {
  border-color: var(--color-primary);
}

.p-org__step--dark .p-org__step-label {
  color: var(--color-primary);
}

.p-org__step--gold {
  border-color: var(--color-accent);
}

.p-org__step--gold .p-org__step-label {
  color: var(--color-accent);
}

/* compact 3-card column (株価算定 / 株主対応 / 契約対応) */
.p-org__step--sm {
  gap: 6px;
  height: 73px;
  padding: 10px 8px;
}

/* card with bullet sub-lines (統合全体像策定) */
.p-org__step--bullets {
  padding: 20px 14px;
}

.p-org__step-sub {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 24px;
  text-align: left;
}

/* wide row cards (gold column) */
.p-org__step--wide {
  flex-direction: row;
  justify-content: center;
  width: 286px;
  height: 51px;
  gap: 12px;
  padding: 0 30px;
}

/* connectors */
.p-org__flow-merge,
.p-org__flow-branch {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 60px;
  flex-shrink: 0;
}

.p-org__flow-merge img,
.p-org__flow-branch img {
  width: 60px;
  height: 30px;
}

.p-org__flow-merge img {
  transform: rotate(90deg);
}

.p-org__flow-branch img {
  transform: rotate(-90deg);
}

.p-org__flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  flex-shrink: 0;
}

.p-org__flow-arrow img {
  width: 40px;
  height: 16px;
  transform: rotate(90deg);
}

.p-org__flow-tail {
  flex-shrink: 0;
  font-size: 16px;
  color: var(--color-text);
}

/* ============================================================
   SERVICE FLOW SP (Figma 5:11203): vertical diagram
   ============================================================ */
.p-org__flow-sp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.p-org__phase-sp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  border-radius: 4px;
  color: #ffffff;
  padding-inline: 16px;
}

.p-org__phase-sp--1 {
  background: linear-gradient(90deg, rgba(25, 92, 61, 0.5) 0%, #195c3d 100%);
}

.p-org__phase-sp--2 {
  background: linear-gradient(90deg, #195c3d 0%, rgba(189, 143, 69, 0.5) 100%);
}

.p-org__phase-sp--3 {
  background: linear-gradient(90deg, rgba(189, 143, 69, 0.5) 0%, #bd8f45 100%);
}

.p-org__flow-sp-arrow {
  font-size: 14px;
  line-height: 1;
  color: var(--color-primary);
}

.p-org__flow-sp-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
}

.p-org__flow-sp .p-org__step {
  width: 100%;
  padding: 20px 12px;
  gap: 8px;
}

.p-org__flow-sp .p-org__step--sp-mid {
  max-width: 258px;
}

.p-org__flow-sp .p-org__step--sp-bullets {
  padding: 16px 12px;
}

.p-org__flow-sp .p-org__step--sp-bullets .p-org__step-sub {
  text-align: center;
  font-size: 13px;
  line-height: 20px;
}

.p-org__flow-sp-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.p-org__flow-sp-stack--line {
  position: relative;
  padding-block: 16px;
}

.p-org__flow-sp-stack--line::before {
  content: "";
  position: absolute;
  top: -14px;
  bottom: -14px;
  left: 50%;
  width: 1.5px;
  background-color: var(--color-primary);
}

.p-org__flow-sp-stack--line .p-org__step {
  position: relative;
  z-index: 1;
  max-width: 172px;
  height: auto;
  padding: 12px 8px;
  gap: 6px;
}

.p-org__flow-sp-stack .p-org__step--wide {
  max-width: 286px;
  height: 51px;
  padding: 0 20px;
}

/* ============================================================
   CASE STUDIES v2 (Figma 4:5774): 2 stacked cards
   ============================================================ */
.p-org__cases {
  background-color: var(--color-bg-card);
  padding-block: 80px;
}

.p-org__cases .p-section__header {
  margin-bottom: 24px;
}

.p-org__cases .p-section__lead {
  margin-bottom: 24px;
}

.p-org__cs {
  background-color: var(--color-bg);
  border-radius: 14px;
  box-shadow: 0 3px 18px rgba(23, 51, 38, 0.08);
  padding: 20px 40px;
  margin-bottom: 24px;
}

.p-org__cs:last-child {
  margin-bottom: 0;
}

.p-org__cs-head {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 50px;
  border-bottom: 1px solid var(--color-primary);
  margin-bottom: 19px;
}

.p-org__cs-badge {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding-inline: 13px;
  background-color: var(--color-primary);
  border-radius: 999px;
  color: #ffffff;
  font-size: 13px;
  letter-spacing: 1px;
}

.p-org__cs-title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--color-primary);
}

.p-org__cs-block {
  margin-bottom: 19px;
}

.p-org__cs-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.39px;
  margin-bottom: 10px;
}

.p-org__cs-label img {
  display: block;
  flex-shrink: 0;
}

.p-org__cs-label--green {
  color: var(--color-primary);
}

.p-org__cs-label--gold {
  color: var(--color-accent);
}

.p-org__cs-consult {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 28px;
}

.p-org__cs-steps {
  display: flex;
  align-items: stretch;
  gap: 3px;
}

.p-org__cs-step {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--color-bg);
  border: 1px solid;
  border-radius: 10px;
  box-shadow: 0 3px 12px rgba(23, 51, 38, 0.06);
  padding: 16px 12px;
}

.p-org__cs-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.p-org__cs-step-text {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 17px;
  text-align: center;
}

.p-org__cs-step--01 {
  border-color: #2e7d58;
}
.p-org__cs-step--01 .p-org__cs-step-num {
  background-color: #51a47d;
}
.p-org__cs-step--02 {
  border-color: var(--color-primary);
}
.p-org__cs-step--02 .p-org__cs-step-num {
  background-color: var(--color-primary);
}
.p-org__cs-step--03 {
  border-color: #e3b975;
}
.p-org__cs-step--03 .p-org__cs-step-num {
  background-color: #e3b975;
}
.p-org__cs-step--04 {
  border-color: #c59d5c;
}
.p-org__cs-step--04 .p-org__cs-step-num {
  background-color: #c59d5c;
}

.p-org__cs-arrow {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--color-primary);
  font-size: 16px;
  line-height: 1;
}

.p-org__cs-outcome {
  background-color: #fffae9;
  border: 1px solid var(--color-accent);
  border-radius: 9px;
  padding: 20px 40px;
}

.p-org__cs-outcome-lead {
  font-size: 16px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 27px;
  margin-bottom: 12px;
}

.p-org__cs-outcome-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.p-org__cs-outcome-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 20px;
}

.p-org__cs-outcome-list li::before {
  content: "";
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  background: url("/assets/images/icon-check-gold.svg") no-repeat center / contain;
}

/* ============================================================
   FAQ answer body (multi-paragraph inside shared .p-faq-item)
   ============================================================ */
.p-faq-item__text {
  flex: 1;
  min-width: 0;
}

/* Figma は 1つのテキストを改行しただけなので段落間の余白は持たない */
.p-faq-item__text p + p {
  margin-top: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .p-org__case-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .p-org__strengths-inner {
    overflow: hidden;
  }

  .p-org__hub-scroll {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .p-org__flow-scroll {
    justify-content: flex-start;
  }

  .p-org__cs {
    padding: 20px;
  }

  .p-org__cs-steps {
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .p-org__cs-step {
    flex: 0 0 200px;
  }

  .p-org__cs-outcome {
    padding: 20px;
  }
}

@media (max-width: 768px) {
  /* Figma SP 5:11130: 本文ブロックは y267 開始、下 42px、ラベルは 12px */
  .p-hero__inner {
    padding-top: 267px;
    padding-bottom: 42px;
  }

  .p-hero__label {
    font-size: 14px;
    line-height: 19px;
  }

  /* --- CASE cards --- */
  .p-org__case-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Figma 5:11141: このセクションだけ見出しは 22px */
  .p-org__case-section .c-section-title {
    font-size: 24px;
    line-height: 34px;
  }

  /* Figma 5:11141: 342幅・pad24/20・gap10・角丸4・枠線 #d9d9d4 */
  /* Figma 5:11xxx: 枠 342×178 に 1px の内側線。上下パディングは 24-1 */
  .p-org__case-card {
    min-height: 0;
    gap: 10px;
    padding: 23px 20px;
    border-color: #d9d9d4;
    border-radius: 4px;
    box-shadow: none;
  }

  /* Figma 87×20（線は中央揃えなので枠込みで20px） */
  .p-org__case-card__label {
    padding: 3px 9px;
    border: 1px solid var(--color-primary);
    border-radius: 10px;
    background-color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: normal;
    line-height: 14px;
  }

  .p-org__case-card__title {
    font-size: 19px;
    letter-spacing: normal;
    line-height: 26px;
  }

  /* 文字が+2pxされたぶん、自然折り返しだと行末に1〜2文字残るため PC の改行位置をそのまま使う */
  .p-org__case-card__text {
    width: 280px;
    font-size: 15px;
    line-height: 24px;
  }

  /* Figma 5:11xxx: このページの FAQ 見出しはラベルと見出しの間が 7px */
  .p-faq__head {
    gap: 7px;
  }

  /* --- Strengths (SP: circle on top + stacked cards) --- */
  .p-org__strengths {
    padding-block: 56px;
  }

  .p-org__strengths-head {
    margin-bottom: 24px;
  }

  .p-org__strengths-title {
    font-size: 26px;
    letter-spacing: 2px;
  }

  .p-org__strengths-lead {
    font-size: 16px;
    line-height: 28px;
    text-align: left;
  }

  /* --- Strengths（Figma 5:11160 / 図は 390×1059 の全幅） --- */
  .p-org__strengths {
    padding-bottom: 0;
  }

  .p-org__strengths-head {
    margin-bottom: 20px;
  }

  .p-org__hub-scroll {
    display: block;
    overflow: visible;
    padding-bottom: 0;
    margin-inline: -24px;
  }

  .p-org__hub {
    width: 100%;
    min-width: 0;
    max-width: none;
    aspect-ratio: auto;
    height: auto;
    padding: 281px 24px 36px;
  }

  .p-org__hub-lines {
    display: none;
  }

  /* Figma Vector: 円の上端から最終カードの上端まで伸びる 2/2 の破線 */
  .p-org__hub::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 12px;
    height: 907px;
    width: 1px;
    background-color: transparent;
    background-image: repeating-linear-gradient(to bottom, #195c3d 0 2px, transparent 2px 4px);
  }

  /* Figma Vector: 円の中心を通る水平の破線 */
  .p-org__hub::after {
    content: "";
    position: absolute;
    left: 5.13%;
    top: 187px;
    width: 89.74%;
    height: 1px;
    background-image: repeating-linear-gradient(to right, #195c3d 0 2px, transparent 2px 4px);
  }

  .p-org__hub-cross {
    display: block;
    position: absolute;
    left: 5.13%;
    top: 14px;
    width: 89.74%;
    aspect-ratio: 1;
  }

  .p-org__hub-cross path {
    stroke: #195c3d;
    stroke-width: 1;
    stroke-dasharray: 2 2;
    vector-effect: non-scaling-stroke;
  }

  /* Figma Group 8038: 350 / 241.92 / 128.52 の同心円（中心 y=189） */
  .p-org__hub-ring--outer {
    left: 50%;
    top: 189px;
    width: 350px;
    height: 350px;
    max-width: calc(100vw - 40px);
    max-height: calc(100vw - 40px);
    background: #dbe8de;
    border: 1px solid #195c3d;
  }

  .p-org__hub-ring--inner {
    left: 50%;
    top: 189px;
    width: 241.92px;
    height: 240.84px;
    background: #cce0d4;
  }

  .p-org__hub-center {
    left: 50%;
    top: 189px;
    width: 128.52px;
    height: 128.52px;
    font-size: 21.13px;
  }

  /* Figma Frame 8070: 342×(122/104) のカードを 20px 間隔で縦積み */
  .p-org__hub-card {
    position: relative;
    left: auto !important;
    top: auto !important;
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    gap: 8px;
    padding: 20px 18px;
    border-radius: 4px;
    box-shadow: none;
  }

  .p-org__hub-card + .p-org__hub-card {
    margin-top: 20px;
  }

  .p-org__hub-card__title {
    font-size: 17px;
    line-height: 20px;
  }

  /* Figma 5:11179: 2行になる先頭カードだけ行高 22px・下パディング 12px */
  .p-org__hub-card:first-of-type {
    padding-bottom: 12px;
  }

  .p-org__hub-card:first-of-type .p-org__hub-card__title {
    line-height: 24px;
  }

  .p-org__hub-card__dash {
    display: none;
  }

  .p-org__hub-card__text {
    font-size: 14px;
    line-height: 21px;
  }

  .p-org__hub-card__text br:not(.u-sp) {
    display: none;
  }

  /* --- Flow（Figma 5:11203: 図は 342 幅・y=271 から 1383 まで） --- */
  .p-org__flow {
    padding-block: 56px 6px;
  }

  .p-org__flow-lead {
    text-align: left;
  }

  .p-org__flow-lead br:not(.u-sp) {
    display: none;
  }

  /* 各要素は Figma の y 座標どおりに margin で配置する */
  .p-org__flow-sp {
    gap: 0;
    padding-top: 30px;
  }

  /* Figma Vector 342×44: PHASE 01 は単色、02/03 はグラデーション */
  .p-org__phase-sp {
    gap: 18px;
    min-height: 44px;
    padding-inline: 0;
    border-radius: 0;
  }

  .p-org__phase-sp--1 {
    background: #2e6b4d;
  }

  .p-org__phase-sp--2 {
    background: linear-gradient(90deg, #467858 0%, #b4a77c 100%);
  }

  .p-org__phase-sp--3 {
    background: linear-gradient(90deg, #c6b78a 0%, #be8d3b 100%);
  }

  /* Figma 66×22 の白枠バッジ＋14px の見出し */
  .p-org__flow-sp .p-org__phase-badge {
    width: 66px;
    height: 22px;
    padding-inline: 0;
    font-size: 10px;
    letter-spacing: 0.5px;
  }

  .p-org__flow-sp .p-org__phase-title {
    font-size: 16px;
    line-height: 19px;
    letter-spacing: normal;
  }

  /* Figma Vector: 帯の直下などに置かれる三角（サイズと色は箇所ごとに異なる） */
  .p-org__flow-sp-arrow {
    font-size: 0;
    line-height: 0;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }

  .p-org__flow-sp > span:nth-of-type(1) {
    width: 16px;
    height: 9px;
    background-color: #2e6b4d;
  }

  .p-org__flow-sp > span:nth-of-type(2) {
    width: 12px;
    height: 8px;
    margin-top: 34px;
    background-color: #458f72;
  }

  .p-org__flow-sp > span:nth-of-type(3) {
    width: 16px;
    height: 10px;
    margin-top: 20px;
    background-color: #2e6b4d;
  }

  .p-org__flow-sp > span:nth-of-type(4) {
    width: 16px;
    height: 9px;
    background-color: #708263;
  }

  .p-org__flow-sp > span:nth-of-type(5) {
    width: 16px;
    height: 10px;
    margin-top: 27px;
    background-color: #9c8a5e;
  }

  .p-org__flow-sp > span:nth-of-type(6) {
    width: 16px;
    height: 9px;
    background-color: #be8d3b;
  }

  /* Figma: 158×82 のカードを 18px 間隔で 2枚（コンテンツ幅より 4px ずつ外側） */
  .p-org__flow-sp-pair {
    width: calc(100% + 8px);
    max-width: 334px;
    gap: 18px;
    margin-top: 21px;
    margin-inline: auto;
  }

  .p-org__flow-sp .p-org__step {
    gap: 10px;
    padding: 0 12px;
  }

  .p-org__flow-sp-pair .p-org__step {
    height: 82px;
  }

  .p-org__flow-sp .p-org__step--sp-mid {
    width: 100%;
    max-width: 258px;
    height: 92px;
  }

  .p-org__flow-sp .p-org__step--sp-bullets {
    width: 100%;
    max-width: 306px;
    height: 110px;
    gap: 6px;
    padding: 0 12px;
  }

  .p-org__flow-sp .p-org__step--sp-bullets .p-org__step-sub {
    text-align: center;
    font-size: 14px;
    line-height: 17px;
  }

  /* Figma Frame 8035: 172×73 を 6px 間隔で 3枚、背後に縦線 */
  .p-org__flow-sp-stack {
    gap: 6px;
  }

  .p-org__flow-sp-stack--line {
    margin-top: 14px;
    padding-block: 0;
  }

  .p-org__flow-sp-stack--line::before {
    top: -10px;
    bottom: -3px;
    width: 1px;
    background-color: #4c8a73;
  }

  .p-org__flow-sp-stack--line .p-org__step {
    height: 73px;
    padding: 0 8px;
    gap: 6px;
  }

  /* Figma Frame 8036: 286×52 を 4枚、枠は 229px なので間隔は 7px */
  .p-org__flow-sp-stack:not(.p-org__flow-sp-stack--line) {
    position: relative;
    gap: 7px;
    margin-top: 26px;
  }

  .p-org__flow-sp-stack:not(.p-org__flow-sp-stack--line)::before {
    content: "";
    position: absolute;
    top: -26px;
    bottom: -1px;
    left: 50%;
    width: 1px;
    background-color: #d1a254;
  }

  .p-org__flow-sp-stack .p-org__step--wide {
    position: relative;
    z-index: 1;
    max-width: 286px;
    height: 52px;
    padding: 0 30px;
  }

  /* 帯とカードの間隔（Figma の y 座標に合わせる） */
  .p-org__flow-sp > .p-org__step--sp-mid {
    margin-top: 0;
  }

  .p-org__flow-sp > .p-org__phase-sp--2 {
    margin-top: 8px;
  }

  .p-org__flow-sp > .p-org__step--sp-bullets {
    margin-top: 23px;
  }

  .p-org__flow-sp > .p-org__phase-sp--3 {
    margin-top: 8px;
  }

  /* --- Case studies（Figma 5:11294: 白背景に #f4f2ec のカード） --- */
  .p-org__cases {
    background-color: #ffffff;
    padding-block: 56px;
  }

  .p-org__cases .p-section__header {
    margin-bottom: 20px;
  }

  /* Figma: 12px・行送り14px の2行 */
  .p-org__cases .p-section__lead {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 16px;
  }

  /* Figma 5:11299: 342×988・padding 24/20・子要素の間隔は一律 20px */
  .p-org__cs {
    background-color: var(--color-bg-alt);
    border-radius: 8px;
    padding: 24px 20px;
    margin-bottom: 0;
    box-shadow: none;
  }

  .p-org__cs + .p-org__cs {
    margin-top: 20px;
  }

  /* Figma: 見出し25px＋20px の余白で 1px の区切り線、その下も 20px */
  .p-org__cs-head {
    gap: 10px;
    height: 25px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    box-sizing: content-box;
  }

  /* Figma 5:11301: 64×25（左右10px）・角丸4px。
     PC は DIN Medium＋字間1px だが SP は Noto Sans JP Bold・字間なし */
  .p-org__cs-badge {
    padding-inline: 10px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0;
  }

  .p-org__cs-title {
    font-size: 18px;
    line-height: 25px;
    letter-spacing: 0;
  }

  .p-org__cs-block {
    margin-bottom: 20px;
  }

  /* Figma 5:11326: 最終ブロック自体が金枠ボックス。
     枠線が高さを増やさないよう border ではなく内側シャドウで描く */
  .p-org__cs-block:last-child {
    margin-bottom: 0;
    background-color: #fffae9;
    border: 0;
    border-radius: 8px;
    padding: 14px 16px;
    box-shadow: inset 0 0 0 1px var(--color-accent);
  }

  /* Figma: ラベルは13px・行高16px。絵文字相当のアイコン13px＋空白3px で計16px */
  .p-org__cs-label {
    gap: 3px;
    margin-bottom: 8px;
    line-height: 18px;
    letter-spacing: 0;
  }

  .p-org__cs-label img {
    width: 13px;
    height: 13px;
  }

  /* Figma 5:11327: SP は「実現したこと」も緑 */
  .p-org__cs-label--gold {
    color: var(--color-primary);
  }

  .p-org__cs-label:has(+ .p-org__cs-steps) {
    margin-bottom: 10px;
  }

  .p-org__cs-consult,
  .p-org__cs-outcome-lead {
    font-size: 14px;
    line-height: 22px;
  }

  .p-org__cs-outcome-lead br:not(.u-sp) {
    display: none;
  }

  .p-org__cs-steps {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    overflow: visible;
    padding-bottom: 0;
  }

  /* Figma 5:11310: 番号が上、本文が下の縦積み・角丸4px。
     枠線は内側描画なので padding 13px＋border 1px で内寸14px・高さ98px に合わせる */
  .p-org__cs-step {
    flex: none;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    padding: 13px;
    border-radius: 4px;
    box-shadow: none;
  }

  .p-org__cs-step--01 {
    border-color: #51a47d;
  }

  .p-org__cs-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    font-size: 13px;
  }

  .p-org__cs-step-text {
    text-align: left;
    font-size: 14px;
    line-height: 22px;
  }

  .p-org__cs-arrow {
    display: none;
  }

  .p-org__cs-outcome {
    background-color: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
  }

  .p-org__cs-outcome-lead {
    margin-bottom: 8px;
  }

  .p-org__cs-outcome-list {
    gap: 4px;
  }

  /* Figma 5:11329: チェックは本文中の「✓ 」。折り返しは字下げしない */
  .p-org__cs-outcome-list li {
    display: block;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    color: var(--color-primary);
  }

  .p-org__cs-outcome-list li::before {
    content: "✓ ";
    width: auto;
    height: auto;
    margin-top: 0;
    background: none;
  }
}
