@charset "utf-8";

/* =====================================
  Flow Page (flow.html)
===================================== */

.p-flow{
  color: var(--text);
}

.p-flow .u-only-sp{ display:none; }
@media (max-width: 899px){
  .p-flow .u-only-sp{ display:block; }
}

/* ===== flow page guard (崩れ防止) ===== */
main.p-flow{
  /* 既存CSSで main が横並び(flex row)になっても縦積みに戻す */
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}
main.p-flow > section{
  width: 100%;
  flex: 0 0 auto;
  min-width: 0;
}

/* ----------------------
  Hero
---------------------- */
.p-flow .l-container--wide{
  padding: 0;
}
@media (max-width: 1279px){
  .p-flow .l-container--wide{
    padding: 0 var(--container-pad-narrow);
  }
}
@media (max-width: 899px){
  .p-flow .l-container--wide{
    padding: 0 var(--pad-sp);
  }
}

.p-flow .goccha-flow-hero{
  background: var(--orange-footer);
  padding: 10px 0 8px;
  margin-top: 8px;
}
.p-flow .goccha-flow-hero__inner{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}


.p-flow .goccha-flow-hero__tag{
  display: inline-flex;
  align-items: center;
  gap: .35em;
  margin: 0 0 22px;
  padding: 8px 14px;   /* 少しだけコンパクト */
  background: #fff;
  border-radius: 10px;
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1;
}

.p-flow .goccha-flow-hero__tagBrand{
  color: var(--orange);
}

.p-flow .goccha-flow-hero__title{
  margin: 0;
  font-weight: 500;
  line-height: 1.35;   /* 変更前: 1.5 */
  font-size: clamp(26px, 2.8vw, 40px); /* サイズは今のままでOK */
  letter-spacing: .02em;
}

.p-flow .goccha-flow-hero__badges{
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 28px 0 0;
  gap: 10px; /* 変更前: 12px */
}
.p-flow .goccha-flow-hero__badge{
  background: #fff;
  border: 2px solid var(--orange);
  color: var(--orange);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  border-radius: 10px;
  padding: 8px 16px;        /* 変更前: 10px 18px */
}

.p-flow .goccha-flow-hero__media{
  justify-self: end;
  max-width: 640px;
  padding-top: 12px;     /* 上の余白 */
  padding-bottom: 8px;  /* 下の余白 */
}
.p-flow .goccha-flow-hero__media img{
  display: block;
  width: 100%;
  height: auto;
}



/* ----------------------
  Section (common)
---------------------- */
.p-flow .goccha-flow-section{
  padding: clamp(48px, 6vw, 90px) 0;
}
.p-flow .goccha-flow-section--user{
  background: var(--bg-gray);
}

.p-flow .goccha-flow-section__head{
  margin-bottom: clamp(22px, 3vw, 34px);
  text-align: center;
}
.p-flow .goccha-flow-section__label{
  margin: 0 0 14px;
  font-weight: 600;
  letter-spacing: .04em;
  font-size: var(--fs-body);
  color: var(--orange);
}
.p-flow .goccha-flow-section--user .goccha-flow-section__label{
  color: var(--green);
}
.p-flow .goccha-flow-section__title{
  margin: 0;
  font-size: clamp(26px, 3.2vw, var(--fs-h3));
  line-height: var(--lh-tight);
  font-weight: 800;
}
.p-flow .goccha-flow-section__text{
  margin: 12px 0 0;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--muted);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
/* 特徴バッジ */
.p-flow .goccha-flow-badges{
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center; /* 見出しセンターのとき揃う */
}
.p-flow .goccha-flow-badges__item{
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px; /* 999px → 角丸弱め */
  padding: 6px 12px;
  font-size: var(--fs-note);
  font-weight: 700;
}

/* ----------------------
  Grid
---------------------- */
.p-flow .goccha-flow-grid{
  display: grid;
  grid-template-columns: 1fr 1.08fr;
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
}


/* ----------------------
  Illust
---------------------- */
.p-flow .goccha-flow-illust{
	margin:0 auto;
  overflow: hidden;
  position: relative;
}
.p-flow .goccha-flow-illust img{
  display: block;
  width: 100%;
  height: auto;
	
}
.p-flow .goccha-flow-section--owner .goccha-flow-illust img{max-width:616px;}
.p-flow .goccha-flow-section--user .goccha-flow-illust img{max-width:502px;}

/* ----------------------
  Card / Steps
---------------------- */
.p-flow .goccha-flow-card{
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(18px, 2.6vw, 28px);
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.p-flow .goccha-flow-steps{
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0; /* 三角区切りにするのでgapは0 */
}

.p-flow .goccha-flow-step{
  display: block;           /* ← gridをやめる */
  padding: 18px 0 46px;     /* 三角の余白込み */
  position: relative;
}

.p-flow .goccha-flow-step:last-child{
  padding-bottom: 0;
}

/* 1行目（STEPピル + タイトル） */
.p-flow .goccha-flow-step__head{
  display: flex;
  align-items: center;
  gap: 18px;
}

/* STEPピル（今のままでもOK） */
.p-flow .goccha-flow-step__no{
  width: 160px;            /* ピルを横長に（好みで） */
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: .06em;
  color: #fff;
  background: var(--orange);
}
.p-flow .goccha-flow-section--user .goccha-flow-step__no{
  background: var(--green);
}

.p-flow .goccha-flow-step__title{
  margin: 0;
  font-weight: 700; 
  font-size: clamp(18px, 2.0vw, 26px); 
  line-height: 1.25;
  color: var(--orange);
}
.p-flow .goccha-flow-section--user .goccha-flow-step__title{
  color: var(--green);
}

/* 本文：2行目で“カード幅いっぱい” */
.p-flow .goccha-flow-step__text{
  margin: 14px 0 0;
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--text);
}

/* STEP間の下向き三角（あなたの現状仕様のまま） */
.p-flow .goccha-flow-step:not(:last-child)::after{
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 16px solid var(--orange);
}
.p-flow .goccha-flow-section--user .goccha-flow-step:not(:last-child)::after{
  border-top-color: var(--green);
}


/* owner下部 notes：三角の間隔＋下線を文字幅だけ */
.p-flow .goccha-flow-notes{
  margin-top: 50px;
  text-align: center;
}

/* テキスト幅だけの下線にするため inline-block を維持 */
.p-flow .goccha-flow-notes .goccha-flow-notes__item{
  margin: 0 auto;
  display: inline-block;
  max-width: 980px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text);

  position: relative;
  padding-bottom: 14px;      /* 下線との距離 */
  /* ★左右paddingは不要（下線を文字幅にしたいので） */
  padding-left: 0;
  padding-right: 0;
}
.p-flow .goccha-flow-notes .goccha-flow-notes__accent{
  color: var(--orange);
  font-weight: 900;
}
.p-flow .goccha-flow-section--user .goccha-flow-notes .goccha-flow-notes__accent{color: var(--green);}
/* 下線：文字幅(=要素幅)だけ */
.p-flow .goccha-flow-notes .goccha-flow-notes__item::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
}
.p-flow .goccha-flow-section--user .goccha-flow-notes .goccha-flow-notes__item::after{background: var(--green);}

/* 三角：文字の外側に出して、少し間隔を空ける */
.p-flow .goccha-flow-notes .goccha-flow-notes__item::before{
  content: "▶▶▶";
  position: absolute;
  left: 0;
  top: .05em;
  transform: translateX(calc(-100% - 18px)); /* ←間隔ここ */
  color: var(--orange);
  font-weight: 900;
  letter-spacing: -0.06em;
}
.p-flow .goccha-flow-section--user .goccha-flow-notes .goccha-flow-notes__item::before{color: var(--green);}

/* 右三角（spanで表示） */
.p-flow .goccha-flow-notes .goccha-flow-notes__tri::before{
  content: "◀◀◀";
  position: absolute;
  right: 0;
  top: .05em;
  transform: translateX(calc(100% + 18px)); /* ←間隔ここ */
  color: var(--orange);
  font-weight: 900;
  letter-spacing: -0.06em;
}
.p-flow .goccha-flow-section--user .goccha-flow-notes .goccha-flow-notes__tri::before{color: var(--green);}

/* ----------------------
  CTA
---------------------- */
.p-flow .goccha-cta__title {line-height: 1.5;}
.p-flow .goccha-cta__title br{
  display: inline;
}


@media (max-width: 899px){

  /* =========================
    HERO
  ========================= */
  .p-flow .goccha-flow-hero{
    padding: 18px 0 12px; /* ほぼコンテンツ幅に寄せる */
    margin-top: 0px;
  }

  .p-flow .goccha-flow-hero__inner{
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .p-flow .goccha-flow-hero__content{
    order: 1;
  }

  .p-flow .goccha-flow-hero__media{
    order: 2;
    justify-self: center;
    width: 100%;
    max-width: 520px;
    padding-top: 6px;
    padding-bottom: 6px;
  }

  .p-flow .goccha-flow-hero__tag{
    margin: 0 0 12px;
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 10px;
  }

  .p-flow .goccha-flow-hero__title{
    font-size: clamp(18px, 7vw, 34px);
    line-height: 1.35;
    letter-spacing: .01em;
  }

  .p-flow .goccha-flow-hero__badges{
    margin: 14px 0 0;
    gap: 8px;
  }

  .p-flow .goccha-flow-hero__badge{
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.2;
    border-radius: 10px;
  }

  /* =========================
    SECTION 共通
  ========================= */
  .p-flow .goccha-flow-section{
    padding: 34px 0 42px;
  }

  .p-flow .goccha-flow-section__head{
    margin-bottom: 16px;
  }

  .p-flow .goccha-flow-section__label{
    margin-bottom: 8px;
    font-size: 14px;
  }

  .p-flow .goccha-flow-section__title{
    font-size: clamp(22px, 6.4vw, 30px);
    line-height: 1.25;
  }

  .p-flow .goccha-flow-section__text{
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.7;
  }

  /* =========================
    GRID / 画像
  ========================= */
  .p-flow .goccha-flow-grid{
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .p-flow .goccha-flow-illust{
    margin: 0 auto;
    width: 100%;
  }

  .p-flow .goccha-flow-section--owner .goccha-flow-illust img,
  .p-flow .goccha-flow-section--user .goccha-flow-illust img{
    max-width: 100%;
    margin: 0 auto;
  }

  /* =========================
    CARD / STEP
  ========================= */
  .p-flow .goccha-flow-card{
    border-radius: 16px;
    padding: 14px 14px 16px;
    box-shadow: 0 6px 18px rgba(0,0,0,.06);
  }

  .p-flow .goccha-flow-step{
    padding: 12px 0 30px;
  }

  .p-flow .goccha-flow-step:last-child{
    padding-bottom: 0;
  }

  .p-flow .goccha-flow-step__head{
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap; /* タイトル短いので基本は横並び */
  }

  .p-flow .goccha-flow-step__no{
    width: 96px;
    min-width: 96px;
    height: 30px;
    font-size: 14px;
    border-radius: 999px;
    letter-spacing: .04em;
  }

  .p-flow .goccha-flow-step__title{
    font-size: 15px;
    line-height: 1.3;
    font-weight: 700;
  }

  .p-flow .goccha-flow-step__text{
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.75;
  }

  /* STEP間の三角を少し小さく */
  .p-flow .goccha-flow-step:not(:last-child)::after{
    bottom: 8px;
    border-left-width: 10px;
    border-right-width: 10px;
    border-top-width: 10px;
  }

  /* =========================
    NOTES（下部の強調文）
  ========================= */
  .p-flow .goccha-flow-notes{
    margin-top: 16px;
	padding-inline: 7px;
  }

  .p-flow .goccha-flow-notes .goccha-flow-notes__item{
    display: inline-block;
    max-width: calc(100% - 108px); /* 三角のぶん余白 */
    font-size: 16px;
    line-height: 1.45;
    font-weight: 800;
    padding-bottom: 8px;
  }

  .p-flow .goccha-flow-notes .goccha-flow-notes__item::after{
    height: 1.5px;
  }

  .p-flow .goccha-flow-notes .goccha-flow-notes__item::before{
    transform: translateX(calc(-100% - 10px));
    top: .08em;
    font-size: 14px;
    letter-spacing: -0.08em;
  }

  .p-flow .goccha-flow-notes .goccha-flow-notes__tri::before{
    transform: translateX(calc(100% + 10px));
    top: .08em;
    font-size: 14px;
    letter-spacing: -0.08em;
  }

  /* =========================
    CTA（トップの goccha-cta を流用してる版）
  ========================= */
  .p-flow .goccha-cta{
    padding: 34px 0;
  }

  .p-flow .goccha-cta__title{
    font-size: clamp(22px, 6.8vw, 30px);
    line-height: 1.35;
  }

  .p-flow .goccha-cta__title br{
    display: none; /* SPで不自然なら消す */
  }

  .p-flow .goccha-cta__lead{
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.7;
  }

  .p-flow .goccha-cta__lead br{
    display: none;
  }

  .p-flow .goccha-cta__actions{
    margin-top: 14px;
    justify-content: center;
  }

  .p-flow .goccha-cta__btn{
    min-width: 220px;
  }
}