/* =========================================================================
   Fuku-Biz Renewal Site / flow.css
   ---------------------------------------------------------------------
   下層ページ「相談の流れ」専用スタイル。
   主治医モデル（初回担当アドバイザーが継続）の世界観を表現。

   セクション目次:
     01. .p-flow-intro      ─ イントロ（主治医モデル）
     02. .p-flow-formats    ─ 相談形式（対面/オンライン）
     03. .p-flow-steps      ─ 4 STEP
     04. .p-flow-care       ─ ケアエリア（よくある不安に応える）
     05. .p-flow-faq-pickup ─ FAQ ピックアップ
     ※ レスポンシブは各セクション末尾に併記（旧「06. Responsive」集約は廃止）
   ========================================================================= */


/* =========================================================================
   00. Common section / head
   ========================================================================= */
.p-flow-section {
  padding: 88px 0;
}
.p-flow-section--soft {
  background: var(--cream-100);
}
.p-flow-section + .p-flow-section {
  border-top: 1px solid var(--ink-10);
}
/* REAL STORIES（.p-stories）の直後に来る .p-flow-section（FORMATS）にも上ボーダー */
.p-stories + .p-flow-section {
  border-top: 1px solid var(--ink-10);
}

.p-flow-section-head {
  margin-bottom: 40px;
  max-width: 760px;
}
.p-flow-section-head .eyebrow {
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--rose-500);
  font-weight: 700;
  margin-bottom: 10px;
}
.p-flow-section-head h2 {
  font-weight: 900;
  font-size: 32px;
  line-height: 1.45;
  margin: 0 0 12px;
}
.p-flow-section-head h2 .is-rose {
  color: var(--rose-500);
}
.p-flow-section-head__lead {
  font-size: 15px;
  line-height: 1.85;
  color: var(--ink-80);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .p-flow-section { padding: 64px 0; }
  .p-flow-section-head h2 { font-size: 26px; }
}
@media (max-width: 640px) {
  .p-flow-section { padding: 48px 0; }
  .p-flow-section-head { margin-bottom: 28px; }
  .p-flow-section-head h2 { font-size: 22px; }
  .p-flow-section-head__lead { font-size: 14px; }
}


/* =========================================================================
   00b. PAGE HERO — group-main-wrapper（index.php の画像コラージュを流用）
   ─ 設計は common.css「SECTION 5」と同一。flow の hero だけに効くよう
     .l-page-hero 配下にスコープ。中央列は縦書きテキスト。
   ─ .wrap の外（.l-page-hero 直下）に置くことで最大 1400px まで拡張。
   ========================================================================= */

/* PAGE HERO 内の .wrap（eyebrow / h1 / lead）を中央揃え */
.l-page-hero .wrap {
  text-align: center;
}
.l-page-hero .wrap .l-page-hero__eyebrow {
  justify-content: center;
}

.l-page-hero .group-img-slot {
  background-color: #f3f4f6;
  border-radius: 1.5rem;
  overflow: hidden;
}
.l-page-hero .group-img-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 縦書きテキストボックス */
.l-page-hero .group-vertical-text-box {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 0 1rem;
  margin: 0;
  font-weight: 900;
  color: var(--ink-100);
}
.l-page-hero .group-text-line {
  display: block;
  line-height: 1.5;
  white-space: nowrap;
  font-size: 36px;
}

/* ---- PC レイアウト（1024px以上）: 左グリッド / 中央テキスト / 右グリッド ---- */
@media (min-width: 1024px) {
  .l-page-hero .group-main-wrapper {
    --gg: clamp(12px, 1.875vw, 24px);
    --gs: clamp(140px, calc((100vw - 4rem - 3 * var(--gg) * 3) * 468 / 1232 / 2), 222px);
    --gl: calc(var(--gs) * 2 + var(--gg));

    display: grid;
    grid-template-columns: var(--gl) 1fr var(--gl);
    gap: var(--gg);
    width: 100%;
    max-width: 1400px;
    height: calc(var(--gl) + var(--gs) + var(--gg));
    margin: 0 auto 40px;
    padding-inline: 2rem;
    align-items: stretch;
  }
  .l-page-hero .group-text-section {
    order: 2;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .l-page-hero .group-left-grid {
    order: 1;
    display: grid;
    grid-template-columns: var(--gs) var(--gs);
    grid-template-rows: var(--gs) var(--gl);
    gap: var(--gg);
    width: var(--gl);
  }
  .l-page-hero .group-right-grid {
    order: 3;
    display: grid;
    grid-template-columns: var(--gs) var(--gs);
    grid-template-rows: var(--gs) var(--gs) var(--gs);
    gap: var(--gg);
    width: var(--gl);
  }
  .l-page-hero .group-slot-1 { width: var(--gs); height: var(--gs); }
  .l-page-hero .group-slot-2 { width: var(--gs); height: var(--gs); }
  .l-page-hero .group-slot-3 { grid-column: span 2; width: var(--gl); height: var(--gl); }
  .l-page-hero .group-slot-4 { width: var(--gs); height: var(--gs); grid-column: 1; grid-row: 1; }
  .l-page-hero .group-slot-5 { width: var(--gs); height: var(--gs); grid-column: 1; grid-row: 2; }
  .l-page-hero .group-slot-6 { width: var(--gs); height: var(--gl); grid-column: 2; grid-row: 1 / span 2; }
  .l-page-hero .group-slot-7 { grid-column: span 2; width: var(--gl); height: var(--gs); grid-row: 3; }
}

/* ---- モバイルレイアウト（1023px以下）: 上にテキスト、下に3列モザイク ---- */
@media (max-width: 1023px) {
  .l-page-hero .group-main-wrapper {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 4rem;
    /* スマホ/タブレット時の左右余白 */
    padding-inline: 16px;
  }
  .l-page-hero .group-text-section {
    grid-column: span 3;
    order: -1;
  }
  .l-page-hero .group-vertical-text-box {
    align-items: center;
    writing-mode: horizontal-tb;
    padding: 0 0 1.5rem;
    text-align: center;
  }
  .l-page-hero .group-text-line {
    font-size: 20px;
    white-space: normal;
  }
  .l-page-hero .group-left-grid,
  .l-page-hero .group-right-grid {
    display: contents;
  }
  .l-page-hero .group-img-slot {
    border-radius: 1rem;
    aspect-ratio: 1 / 1;
  }
  .l-page-hero .group-slot-1 { order: 1; }
  .l-page-hero .group-slot-2 { order: 2; }
  .l-page-hero .group-slot-6 {
    order: 3;
    grid-column: 3;
    grid-row: span 2;
    aspect-ratio: auto;
    height: 100%;
  }
  .l-page-hero .group-slot-3 {
    order: 4;
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: 1 / 1;
  }
  .l-page-hero .group-slot-4 { order: 5; grid-column: 3; }
  .l-page-hero .group-slot-7 { order: 6; grid-column: span 2; aspect-ratio: 2 / 1; }
  .l-page-hero .group-slot-5 { order: 7; grid-column: 3; }
  .l-page-hero .wrap .l-page-hero__eyebrow {
    font-size: 12px;
    margin-bottom: 10px;
  }
  .l-page-hero .wrap h1 {
    font-size: 22px;
    line-height: 1.45;
    margin-bottom: 12px;
  }
  .l-page-hero .wrap .l-page-hero__lead {
    font-size: 14px;
  }
}


/* =========================================================================
   01. Intro — 主治医モデル
   ========================================================================= */
.p-flow-intro {
  background: linear-gradient(135deg, var(--rose-50), #fff 60%);
}
.p-flow-intro__card {
  background: #fff;
  border: 1px solid var(--rose-100);
  border-radius: 16px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  box-shadow: 0 10px 30px rgba(232, 90, 122, 0.06);
}
.p-flow-intro__label {
  display: inline-block;
  background: var(--rose-500);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.p-flow-intro__title {
  font-weight: 900;
  font-size: 28px;
  line-height: 1.4;
  margin: 0 0 14px;
  color: var(--ink-100);
}
.p-flow-intro__title .is-rose {
  color: var(--rose-500);
}
.p-flow-intro__desc {
  font-size: 17px;
  line-height: 1.95;
  color: var(--ink-80);
  margin: 0;
}
.p-flow-intro__icon {
  width: 360px;
  height: 280px;
  aspect-ratio: 4 / 3;
  border-radius: 16px;
  background:
    linear-gradient(135deg, #d8d8d8 0%, #8a8a8a 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 8px, transparent 8px 16px);
  background-blend-mode: overlay;
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.p-flow-intro__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.18), transparent 60%);
  display: block;
}
.p-flow-intro__icon::before {
  display: none;
}
.p-flow-intro__icon::after {
  display: none;
}
.p-flow-intro__photo-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  font-family: var(--font-num);
  font-size: 11px;
  letter-spacing: 0.1em;
  font-weight: 700;
  text-align: center;
  padding: 12px;
  z-index: 1;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .p-flow-intro__card {
    grid-template-columns: 1fr;
    padding: 32px 32px;
    text-align: left;
  }
  .p-flow-intro__icon {
    order: -1;
    width: 100%;
    max-width: 480px;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 auto;
  }
  .p-flow-intro__photo-label {
    font-size: 10px;
  }
}
@media (max-width: 640px) {
  .p-flow-intro__card {
    padding: 24px 22px;
  }
  .p-flow-intro__title {
    font-size: 22px;
  }
  .p-flow-intro__desc {
    font-size: 17px;
  }
}


/* =========================================================================
   02. Format (対面 / オンライン)
   ========================================================================= */
.p-flow-formats__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.p-flow-format-card {
  background: #fff;
  border: 1px solid var(--ink-10);
  border-radius: 14px;
  padding: 32px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.p-flow-format-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--rose-50);
  color: var(--rose-500);
  display: flex;
  align-items: center;
  justify-content: center;
}
.p-flow-format-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.p-flow-format-card__title {
  font-weight: 900;
  font-size: 22px;
  margin: 0;
  color: var(--ink-100);
}
.p-flow-format-card__desc {
  font-size: 15px;
  line-height: 1.85;
  text-align: justify;
  color: var(--ink-80);
  margin: 0;
}
.p-flow-format-card__meta {
  font-size: 12px;
  color: var(--ink-60);
  font-family: var(--font-num);
  letter-spacing: 0.08em;
  padding-top: 12px;
  border-top: 1px dashed var(--ink-10);
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .p-flow-formats__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .p-flow-format-card {
    padding: 22px 22px 20px;
  }
  .p-flow-format-card__title { font-size: 18px; }
  .p-flow-format-card__desc { font-size: 14px; }
}


/* =========================================================================
   03. 4 STEP
   ========================================================================= */
.p-flow-steps {
  background: var(--cream-100);
}
.p-flow-steps__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
}
.p-flow-step {
  background: #fff;
  border-radius: 14px;
  padding: 32px 36px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: flex-start;
  position: relative;
  border: 1px solid var(--ink-10);
}
.p-flow-step::after {
  content: "";
  position: absolute;
  bottom: -16px;
  left: 76px;
  width: 2px;
  height: 16px;
  background: var(--rose-300);
}
.p-flow-step:last-child::after {
  display: none;
}
.p-flow-step__num-block {
  width: 96px;
  text-align: center;
}
.p-flow-step__num-label {
  font-family: var(--font-num);
  font-size: 11px;
  color: var(--rose-500);
  font-weight: 700;
  letter-spacing: 0.18em;
  margin-bottom: 4px;
}
.p-flow-step__num-big {
  font-family: var(--font-num);
  font-size: 56px;
  font-weight: 900;
  color: var(--rose-500);
  line-height: 1;
}
.p-flow-step__body {
  padding-top: 8px;
}
.p-flow-step__title {
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 12px;
  color: var(--ink-100);
}
.p-flow-step__desc {
  font-size: 15px;
  line-height: 1.95;
  text-align: justify;
  color: var(--ink-80);
  margin: 0 0 12px;
}
.p-flow-step__desc:last-child {
  margin-bottom: 0;
}
.p-flow-step__note {
  font-size: 14px;
  text-align: justify;
  color: var(--ink-60);
  background: var(--cream-100);
  border-left: 3px solid var(--rose-300);
  padding: 10px 14px;
  border-radius: 0 6px 6px 0;
  line-height: 1.75;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .p-flow-step {
    grid-template-columns: 1fr;
    padding: 22px 22px;
    gap: 14px;
  }
  .p-flow-step::after { display: none; }
  .p-flow-step__num-block {
    width: 100%;
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 8px;
  }
  .p-flow-step__num-label { margin-bottom: 0; }
  .p-flow-step__num-big {
    font-size: 36px;
  }
  .p-flow-step__title { font-size: 18px; }
  .p-flow-step__desc { font-size: 14px; }
  .p-flow-step__note {
    font-size: 12px;
    line-height: 1.5;
    padding: 16px 20px;
  }
}


/* =========================================================================
   04. Care area — よくある不安に応える
   ========================================================================= */
.p-flow-care__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.p-flow-care-card {
  background: #fff;
  border: 1px solid var(--ink-10);
  border-radius: 12px;
  padding: 28px 26px 24px;
}
.p-flow-care-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--rose-50);
  color: var(--rose-500);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.p-flow-care-card__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.p-flow-care-card__title {
  font-weight: 900;
  font-size: 22px;
  line-height: 1.5;
  margin: 0 0 8px;
  color: var(--ink-100);
}
.p-flow-care-card__desc {
  font-size: 15px;
  line-height: 1.85;
  text-align: justify;
  color: var(--ink-80);
  margin: 0;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .p-flow-care__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .p-flow-care__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .p-flow-care-card {
    padding: 22px 22px 20px;
  }
  .p-flow-care-card__title {
    font-size: 18px;
  }
  .p-flow-care-card__desc {
    font-size: 14px;
  }
}


/* =========================================================================
   05. FAQ pickup
   ========================================================================= */
.p-flow-faq-pickup__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 880px;
  margin: 0 auto;
}
.p-flow-faq-pickup-item {
  background: #fff;
  border: 1px solid var(--ink-10);
  border-radius: 10px;
  padding: 22px 28px;
}
.p-flow-faq-pickup-item__q {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-weight: 900;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-100);
  margin-bottom: 10px;
}
.p-flow-faq-pickup-item__q-tag {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--rose-500);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-weight: 900;
  font-size: 13px;
}
.p-flow-faq-pickup-item__a {
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-80);
  padding-left: 42px;
}
.p-flow-faq-pickup__more {
  margin-top: 32px;
  text-align: center;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .p-flow-faq-pickup-item { padding: 18px 20px; }
  .p-flow-faq-pickup-item__q { font-size: 14px; }
  .p-flow-faq-pickup-item__a {
    font-size: 13px;
    padding-left: 0;
  }
}


/* =========================================================================
   Format Card Photo Placeholder (v6 addition)
   ========================================================================= */
.p-flow-format-card__photo {
  aspect-ratio: 16/9;
  background:
    linear-gradient(135deg, #d8d8d8 0%, #9a9a9a 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 8px, transparent 8px 16px);
  background-blend-mode: overlay;
  border-radius: 8px;
  position: relative;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.p-flow-format-card__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-flow-format-card__photo-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-num);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,.85);
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(0,0,0,.45);
  padding: 6px 14px;
  border-radius: 4px;
}

@media (max-width: 640px) {
  .p-flow-format-card__photo {
    margin-bottom: 14px;
  }
  .p-flow-format-card__photo-label {
    font-size: 11px;
    padding: 5px 10px;
  }
}


/* =========================================================================
   07. Real Stories（相談例・page-top.php より移設）
   ------------------------------------------------------------------------- */
.p-stories {
  padding: 120px 0;
}

.p-stories__stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.p-stories__card {
  background: #fff;
  border: 1px solid var(--ink-10);
  border-radius: 14px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 0;
}

/* .photo が display:none で隠されている場合は本文を全幅で表示 */
.p-stories__card:has(.photo[style*="display:none"]),
.p-stories__card:has(.photo[style*="display: none"]) {
  grid-template-columns: 1fr;
}

.p-stories__card .photo {
  background: linear-gradient(135deg, #b9bcb3 0%, #5d6058 100%);
  position: relative;
  min-height: 280px;
}

.p-stories__card.c1 .photo { background: linear-gradient(135deg, #e0c8b8, #8a6a52); }
.p-stories__card.c2 .photo { background: linear-gradient(135deg, #b8c4c8, #4a5560); }
.p-stories__card.c3 .photo { background: linear-gradient(135deg, #c8d3b8, #62744a); }

.p-stories__card .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 255, 255, .2), transparent 55%);
}

.p-stories__card .case-num {
  position: absolute;
  top: 20px;
  left: 20px;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #fff;
  background: rgba(0, 0, 0, .4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
}

.p-stories__card .tag-floats {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.p-stories__card .tg {
  background: rgba(255, 255, 255, .95);
  color: var(--ink-100);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}

.p-stories__card .body {
  padding: 32px 36px;
}

.p-stories__card .title {
  font-weight: 900;
  font-size: 22px;
  margin: 0 0 24px;
  line-height: 1.5;
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.p-stories__card .title::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 24px;
  background: var(--rose-400);
  border-radius: 2px;
}

.p-stories__card .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  position: relative;
}

.p-stories__card .steps::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--ink-20) 0 4px, transparent 4px 8px);
  z-index: 0;
}

.p-stories__card .step {
  position: relative;
  z-index: 1;
}

.p-stories__card .step .head {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding-right: 10px;
  margin-bottom: 10px;
}

.p-stories__card .step .marker {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose-400);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-num);
  font-weight: 700;
  font-size: 15px;
}

.p-stories__card .step h4 {
  font-weight: 900;
  font-size: 18px;
  margin: 0;
  line-height: 1.4;
}

.p-stories__card .step p {
  font-size: 14px;
  line-height: 1.9;
  text-align: justify;
  color: var(--ink-80);
  margin: 0;
  white-space: pre-line;
}

.p-stories__end {
  text-align: center;
  margin-top: 56px;
  background: var(--cream-100);
  border-radius: 16px;
  padding: 36px 32px;
}

.p-stories__end p {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px;
  line-height: 1.85;
}

@media (max-width: 1024px) {
  /* ----- 04. Real Stories (ケーススタディ) ----- */
  .p-stories {
    padding: 80px 0;
  }

  .p-stories__card {
    grid-template-columns: 280px 1fr;
  }

  .p-stories__card:has(.photo[style*="display:none"]),
  .p-stories__card:has(.photo[style*="display: none"]) {
    grid-template-columns: 1fr;
  }

  .p-stories__card .photo {
    min-height: 240px;
  }

  .p-stories__card .body {
    padding: 28px 28px;
  }

  .p-stories__card .title {
    margin-bottom: 20px;
    gap: 10px;
  }

  .p-stories__card .title::before {
    height: 20px;
  }

  .p-stories__card .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .p-stories__end {
    margin-top: 40px;
    padding: 28px 24px;
  }
}

@media (max-width: 640px) {
  /* ----- 04. Real Stories ----- */
  .p-stories {
    padding: 60px 0;
  }

  .p-stories__card {
    grid-template-columns: 1fr;
    border-radius: 10px;
  }

  .p-stories__card .photo {
    min-height: 200px;
    aspect-ratio: 16 / 10;
  }

  .p-stories__card .body {
    padding: 20px 18px;
  }

  .p-stories__card .title {
    font-size: 18px;
    margin-bottom: 16px;
    gap: 8px;
  }

  .p-stories__card .title::before {
    width: 6px;
    height: 18px;
  }

  .p-stories__card .steps {
    grid-template-columns: 1fr;
    gap: 16px;
    position: relative;
  }

  .p-stories__card .steps::after {
    display: none;
  }

  .p-stories__card .step {
    position: relative;
    padding-left: 44px;
  }

  .p-stories__card .step .head {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    padding-right: 0;
    margin-bottom: 4px;
  }

  .p-stories__card .step .marker {
    position: absolute;
    left: 0;
    top: 0;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }

  .p-stories__card .step h4 {
    font-size: 16px;
    line-height: 1.4;
    margin-bottom: 4px;
  }

  .p-stories__card .step p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 12px;
  }

  .p-stories__end {
    margin-top: 32px;
    padding: 20px 18px;
  }

  .p-stories__end p {
    font-size: 15px;
  }
}
