/* =========================================================
   企業向けの紹介ページ「スタクラの採用機能」（company_features/show）専用スタイル。
   ・すべて .cfp の中に限定する（クラスは cfp- で始める。Tailwind の CDN のクラス名と重ならない名前にする）
   ・サイトのルートの文字サイズは 62.5%（1rem = 10px）
   ・黄・濃い文字・白が軸。白地と余白で画面を見せ、黄は主な操作とリンクの強調に使う。企業画面の青はキャプチャの中だけ
   ・ボタンは参考ページ /forcompanies/ と同じ丸い形。動きは下端の資料ダウンロードの出し入れだけ（動きを減らす設定では動かさない）
   ========================================================= */

.cfp {
  --cfp-ink: #221614;
  --cfp-ink-sub: #574b46;
  --cfp-yellow: #ffcc00;
  --cfp-yellow-hover: #f2c200;
  --cfp-mustard: #d4b200;
  --cfp-warm: #faf8f2;
  --cfp-line: #e7e1d6;
  --cfp-line-strong: #cfc6b6;
  --cfp-navy: #2c4198;
  --cfp-header-h: 5.2rem;
  --cfp-process-h: 6.4rem;
  --cfp-gutter: 2.4rem;

  display: block;
  color: var(--cfp-ink);
  font-size: 1.6rem;
  line-height: 1.85;
  font-weight: 500;
  background: #fff;
  font-variant-numeric: tabular-nums;
}

@media screen and (max-width: 768px) {
  .cfp {
    --cfp-header-h: 4.8rem;
    --cfp-process-h: 5.6rem;
    --cfp-gutter: 1.6rem;
    line-height: 1.8;
  }
}

.cfp *,
.cfp *::before,
.cfp *::after {
  box-sizing: border-box;
}

/* 要素の初期化は詳細度を 0,1,0 に抑え、後に書く部品のクラスが勝つようにする */
.cfp :where(h1, h2, h3, p, ul, ol, dl, dd, figure) {
  margin: 0;
  padding: 0;
}

.cfp :where(ul, ol) {
  list-style: none;
}

.cfp :where(h1, h2, h3) {
  font-weight: 700;
  text-wrap: balance;
  word-break: auto-phrase;
}

.cfp :where(p, li, dd, figcaption) {
  text-wrap: pretty;
}

.cfp :where(a) {
  color: inherit;
}

/* サイト共通の a:hover（透過・赤い文字）をこのページでは使わない。色は各部品の指定か、親の文字色のまま */
.cfp a:hover {
  opacity: 1;
}

.cfp :where(a):hover {
  color: inherit;
}

.cfp a:focus-visible,
.cfp button:focus-visible {
  outline: 3px solid var(--cfp-navy);
  outline-offset: 3px;
  border-radius: 4px;
}

.cfp-wrap {
  width: 100%;
  max-width: calc(112rem + var(--cfp-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--cfp-gutter);
}

.cfp-phrase {
  display: inline-block;
}

.cfp-srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 以前の共有リンクの行き先として残す空の目印 */
.cfp-anchor {
  display: block;
  height: 0;
}

/* ページ内リンクで移った先が、ヘッダーと工程ナビに隠れないようにする */
.cfp [id] {
  scroll-margin-top: calc(var(--cfp-header-h) + var(--cfp-process-h) + 2.4rem);
}

/* ---------- 共通の部品 ---------- */

.cfp-eyebrow {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.5;
  padding-bottom: .4rem;
  border-bottom: .3rem solid var(--cfp-yellow);
}

.cfp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5.6rem;
  padding: 1.2rem 3.6rem;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  background: var(--cfp-yellow);
  border: .2rem solid var(--cfp-yellow);
  border-radius: 99rem;
}

.cfp a.cfp-button {
  color: var(--cfp-ink);
}

.cfp a.cfp-button:hover {
  color: var(--cfp-ink);
  background: var(--cfp-yellow-hover);
  border-color: var(--cfp-yellow-hover);
}

.cfp a.cfp-button--sub {
  background: #fff;
  border-color: var(--cfp-ink);
}

.cfp a.cfp-button--sub:hover {
  background: var(--cfp-warm);
  border-color: var(--cfp-ink);
}

.cfp a.cfp-button--onDark {
  color: #fff;
  background: transparent;
  border-color: #fff;
}

.cfp a.cfp-button--onDark:hover {
  color: var(--cfp-ink);
  background: #fff;
  border-color: #fff;
}

.cfp-arrowLink {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-decoration-color: var(--cfp-yellow);
  text-decoration-thickness: .3rem;
  text-underline-offset: .5rem;
}

.cfp-arrowLink::after {
  content: "→";
  display: inline-block;
  margin-left: .6rem;
}

.cfp-arrowLink:hover {
  text-decoration-color: var(--cfp-ink);
}

/* 機能名に添える小さな文字のラベル（NEW・ベータ・AI） */
.cfp-label {
  display: inline-block;
  margin-left: .8rem;
  padding: 0 .6rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.8rem;
  color: var(--cfp-ink-sub);
  white-space: nowrap;
  vertical-align: .2em;
  border: .1rem solid var(--cfp-line-strong);
  border-radius: .3rem;
  background: #fff;
}

.cfp-label--new {
  color: #fff;
  background: var(--cfp-navy);
  border-color: var(--cfp-navy);
}

.cfp-label--ai {
  color: var(--cfp-navy);
  border-color: var(--cfp-navy);
}

/* 画面のキャプチャを入れる「窓」: 細い枠と控えめな影 */
.cfp-window {
  position: relative;
  display: block;
  overflow: hidden;
  background: #fff;
  border: .1rem solid var(--cfp-line-strong);
  border-radius: .8rem;
  box-shadow: 0 .1rem .2rem rgba(34, 22, 20, .06), 0 1.2rem 3.2rem rgba(34, 22, 20, .08);
}

.cfp-window picture,
.cfp-window img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

/* 画像のファイルがまだ無いときの空の枠（縦横比は style で与える） */
.cfp-shot__placeholder {
  display: block;
  width: 100%;
  background-color: #f3eee4;
}

/* 押すと拡大できるキャプチャ */
.cfp-shot__zoom {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  cursor: zoom-in;
  background: none;
  border: 0;
  border-radius: .8rem;
}

.cfp-shot__hint {
  position: absolute;
  right: 1.2rem;
  bottom: 1.2rem;
  padding: .2rem 1rem .2rem 2.6rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 2rem;
  color: #fff;
  background: rgba(34, 22, 20, .82);
  border-radius: 99rem;
}

/* 虫眼鏡の印（丸と柄） */
.cfp-shot__hint::before {
  content: "";
  position: absolute;
  top: .6rem;
  left: 1rem;
  width: .9rem;
  height: .9rem;
  border: .2rem solid #fff;
  border-radius: 50%;
}

.cfp-shot__hint::after {
  content: "";
  position: absolute;
  top: 1.45rem;
  left: 1.75rem;
  width: .5rem;
  height: .2rem;
  background: #fff;
  transform: rotate(45deg);
}

.cfp-shot__zoom:hover .cfp-shot__hint {
  background: var(--cfp-ink);
}

.cfp-shot__caption {
  margin-top: 1.2rem;
  font-size: 1.4rem;
  line-height: 1.75;
  color: var(--cfp-ink-sub);
}

.cfp-checks {
  margin-top: 2rem;
  border-top: .1rem solid var(--cfp-line);
}

.cfp-checks li {
  position: relative;
  padding: 1.1rem 0 1.1rem 3.2rem;
  font-size: 1.6rem;
  line-height: 1.75;
  border-bottom: .1rem solid var(--cfp-line);
}

/* 簡素なチェックの印（線 2 本） */
.cfp-checks li::before {
  content: "";
  position: absolute;
  top: 1.1rem;
  left: .4rem;
  width: .8rem;
  height: 1.4rem;
  margin-top: .5rem;
  border-right: .25rem solid var(--cfp-ink);
  border-bottom: .25rem solid var(--cfp-ink);
  transform: rotate(45deg);
}

.cfp-note {
  margin-top: 2rem;
  padding-left: 1.6rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.8;
  border-left: .3rem solid var(--cfp-yellow);
}

/* 利用条件・ベータの注意（関係する機能のすぐ近くに置く） */
.cfp-terms {
  margin-top: 1.6rem;
  font-size: 1.3rem;
  line-height: 1.75;
  color: var(--cfp-ink-sub);
}

/* ---------- 冒頭 ---------- */

.cfp-hero {
  padding: 4rem 0 7.2rem;
  overflow: hidden;
}

.cfp-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 6.4rem;
  align-items: center;
}

.cfp-crumb__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0 .8rem;
  font-size: 1.3rem;
  line-height: 1.6;
  color: var(--cfp-ink-sub);
}

.cfp-crumb__list li + li::before {
  content: "/";
  margin-right: .8rem;
  color: var(--cfp-line-strong);
}

.cfp-crumb__list a {
  text-decoration: underline;
  text-underline-offset: .3rem;
}

.cfp-crumb + .cfp-eyebrow {
  margin-top: 4rem;
}

.cfp-hero__title {
  margin-top: 2rem;
  font-size: 4.8rem;
  line-height: 1.35;
}

.cfp-hero__lead {
  margin-top: 2.4rem;
  font-size: 1.7rem;
  line-height: 1.95;
}

.cfp-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem 1.6rem;
  margin-top: 3.2rem;
}

.cfp-hero__note {
  margin-top: 1.6rem;
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--cfp-ink-sub);
}

.cfp-heroShot__frame {
  position: relative;
}

/* 画像の中の注目する所に置く番号（注釈の番号と対応） */
.cfp-pin {
  position: absolute;
  left: -1.6rem;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--cfp-ink);
  background: var(--cfp-yellow);
  border: .2rem solid #fff;
  border-radius: 50%;
}

.cfp-pin--1 {
  top: 3%;
}

.cfp-pin--2 {
  top: 57.5%;
}

.cfp-heroShot__caption {
  margin-top: 1.6rem;
}

.cfp-heroShot__title {
  font-size: 1.5rem;
  font-weight: 700;
}

.cfp-heroShot__notes {
  margin-top: .8rem;
}

.cfp-heroShot__notes li {
  display: flex;
  gap: 1rem;
  align-items: baseline;
  font-size: 1.4rem;
  line-height: 1.7;
}

.cfp-heroShot__notes li + li {
  margin-top: .4rem;
}

.cfp-pinNum {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--cfp-yellow);
  border-radius: 50%;
  transform: translateY(.3rem);
}

.cfp-heroShot__caption .cfp-arrowLink {
  margin-top: 1.2rem;
  font-size: 1.4rem;
}

/* ---------- 採用の工程ナビ ---------- */

.cfp-process {
  background: #fff;
  border-top: .1rem solid var(--cfp-line);
  border-bottom: .1rem solid var(--cfp-line);
}

.cfp-process__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cfp-process__list li + li {
  border-left: .1rem solid var(--cfp-line);
}

.cfp .cfp-process__link {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: var(--cfp-process-h);
  padding: .3rem 1.6rem 0;
  color: var(--cfp-ink);
  text-decoration: none;
  border-bottom: .3rem solid transparent;
}

.cfp .cfp-process__link:hover,
.cfp .cfp-process__link:focus,
.cfp .cfp-process__link:active {
  color: var(--cfp-ink);
  border-bottom-color: var(--cfp-yellow);
}

.cfp-process__link:focus-visible {
  outline-offset: -3px;
}

.cfp-process__no {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--cfp-ink-sub);
}

.cfp-process__name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.4;
}

/* ---------- 節の共通 ---------- */

.cfp-section {
  padding: 9.6rem 0;
}

.cfp-section__title {
  font-size: 3.6rem;
  line-height: 1.4;
}

/* ---------- 最近追加された機能 ---------- */

.cfp-new {
  padding: 7.2rem 0;
  background: var(--cfp-warm);
}

.cfp-new .cfp-section__title {
  font-size: 2.8rem;
}

.cfp-new__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 4rem;
  margin-top: 3.2rem;
}

.cfp-new__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 2rem;
  border-top: .3rem solid var(--cfp-ink);
}

.cfp-new__name {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.5;
}

.cfp-new__text {
  flex: 1;
  margin-top: 1rem;
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--cfp-ink-sub);
}

.cfp-new__item .cfp-arrowLink {
  margin-top: 1.6rem;
}

.cfp-new__note {
  margin-top: 3.2rem;
  font-size: 1.4rem;
  color: var(--cfp-ink-sub);
}

/* ---------- 工程ごとの節 ---------- */

.cfp-step {
  padding: 8rem 0 0;
}

/* 工程と工程の間の区切り線 */
.cfp-step + .cfp-step > .cfp-wrap::before {
  content: "";
  display: block;
  margin-bottom: 6.4rem;
  border-top: .1rem solid var(--cfp-line);
}

.cfp-step__head {
  max-width: 76rem;
}

.cfp-step__no {
  display: inline-block;
  padding: 0 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 2.8rem;
  background: var(--cfp-yellow);
  border-radius: 99rem;
}

.cfp-step__title {
  margin-top: 1.6rem;
  font-size: 3.6rem;
  line-height: 1.4;
}

.cfp-step__lead {
  margin-top: 1.6rem;
  font-size: 1.7rem;
  line-height: 1.9;
}

.cfp-step__main {
  margin-top: 4.8rem;
}

/* 機能の詳しい説明（文と画面を左右に並べる） */
.cfp-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 5.6rem;
  align-items: start;
  margin-top: 8rem;
}

.cfp-step__head + .cfp-detail {
  margin-top: 4.8rem;
}

.cfp-detail--reverse .cfp-detail__text {
  order: 2;
}

.cfp-detail__text {
  padding-top: .8rem;
}

.cfp-detail__title {
  font-size: 2.6rem;
  line-height: 1.45;
}

.cfp-detail__desc {
  margin-top: 1.6rem;
  font-size: 1.6rem;
  line-height: 1.85;
}

.cfp-detail__desc + .cfp-detail__desc {
  margin-top: 1rem;
}

/* AIスカウトアシスト（STEP 3 の主役）: 見出し → 画面 2 枚 → できること・注意 → 動画 */
.cfp-feature {
  margin-top: 4.8rem;
}

.cfp-feature__head {
  max-width: 76rem;
}

.cfp-feature__lead {
  margin-top: 3.2rem;
}

/* 一人の下書きの画面（左）と、できること・注意（右） */
.cfp-feature__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3.2rem 5.6rem;
  align-items: start;
  margin-top: 4.8rem;
}

.cfp-feature__body .cfp-checks {
  margin-top: 0;
}

.cfp-video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.6rem 5.6rem;
  align-items: center;
  margin-top: 4.8rem;
}

.cfp-video__frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--cfp-ink);
  border: .1rem solid var(--cfp-line-strong);
  border-radius: .8rem;
}

.cfp-video__player {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cfp-video__play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  color: #fff;
  cursor: pointer;
  background: rgba(34, 22, 20, .32);
  border: 0;
}

.cfp-video__play[hidden] {
  display: none;
}

.cfp-video__play:focus-visible {
  outline: 3px solid var(--cfp-yellow);
  outline-offset: -6px;
}

.cfp-video__icon {
  position: relative;
  display: block;
  width: 6.4rem;
  height: 6.4rem;
  background: var(--cfp-yellow);
  border-radius: 50%;
}

.cfp-video__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 54%;
  border-style: solid;
  border-width: 1rem 0 1rem 1.6rem;
  border-color: transparent transparent transparent var(--cfp-ink);
  transform: translate(-50%, -50%);
}

.cfp-video__label {
  display: flex;
  gap: .8rem;
  align-items: baseline;
  padding: .4rem 1.6rem;
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.6;
  background: rgba(34, 22, 20, .86);
  border-radius: 99rem;
}

.cfp-video__label small {
  font-size: 1.2rem;
  font-weight: 500;
}

.cfp .cfp-video__fallback {
  position: absolute;
  inset: auto 1.6rem 1.6rem;
  color: #fff;
}

.cfp-video__caption {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--cfp-ink-sub);
}

/* 関連する機能の短い一覧 */
.cfp-related {
  margin-top: 6.4rem;
}

.cfp-related__title {
  font-size: 1.8rem;
  line-height: 1.5;
}

.cfp-defs {
  margin-top: 1.6rem;
  border-top: .1rem solid var(--cfp-line-strong);
}

.cfp-defs__row {
  display: grid;
  grid-template-columns: minmax(0, 30rem) minmax(0, 1fr);
  gap: .4rem 3.2rem;
  padding: 1.6rem 0;
  border-bottom: .1rem solid var(--cfp-line);
}

.cfp-defs dt {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.75;
}

.cfp-defs dt .cfp-label {
  margin-left: .6rem;
}

.cfp-defs dd {
  font-size: 1.5rem;
  line-height: 1.8;
  color: var(--cfp-ink-sub);
}

/* ---------- スカウト代行 ---------- */

.cfp-proxy {
  margin-top: 10.4rem;
  background: var(--cfp-warm);
}

.cfp-proxy__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 3.2rem 6.4rem;
  align-items: start;
}

.cfp-proxy .cfp-section__title {
  font-size: 3.2rem;
}

.cfp-proxy__body {
  font-size: 1.6rem;
}

.cfp-proxy__body p + p {
  margin-top: 1.6rem;
}

/* ---------- ご利用の案内 ---------- */

.cfp-guide {
  padding: 9.6rem 0 8rem;
  color: #fff;
  background: var(--cfp-ink);
}

.cfp-guide__title {
  font-size: 3.2rem;
  line-height: 1.4;
}

.cfp-guide__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4rem 6.4rem;
  margin-top: 4rem;
}

.cfp-guide__col {
  padding-top: 2.4rem;
  border-top: .1rem solid rgba(255, 255, 255, .3);
}

.cfp-guide__heading {
  font-size: 2rem;
  line-height: 1.5;
}

.cfp-guide__col p {
  margin-top: 1.2rem;
  font-size: 1.5rem;
  color: #ece6e2;
}

.cfp-guide__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 2.4rem;
}

.cfp-guide__links {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem 2.8rem;
  margin-top: 2.4rem;
}

.cfp .cfp-guide__links a,
.cfp .cfp-guide__back a {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--cfp-yellow);
  text-decoration-thickness: .2rem;
  text-underline-offset: .5rem;
}

.cfp-guide__notes {
  margin-top: 5.6rem;
  font-size: 1.3rem;
  line-height: 1.8;
  color: #d9d1cc;
}

.cfp-guide__back {
  margin-top: 2.4rem;
}

.cfp-guide a:focus-visible,
.cfp-guide button:focus-visible {
  outline-color: var(--cfp-yellow);
}

/* ---------- 画像の拡大（<dialog>） ---------- */

.cfp-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  color: #fff;
  background: rgba(20, 14, 12, .94);
  border: 0;
}

.cfp-lightbox::backdrop {
  background: rgba(20, 14, 12, .6);
}

.cfp-lightbox[open] {
  display: flex;
  flex-direction: column;
}

.cfp-lightbox__bar {
  display: flex;
  flex: none;
  gap: 1.6rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem var(--cfp-gutter);
  padding-top: calc(1.2rem + env(safe-area-inset-top));
}

.cfp-lightbox__caption {
  font-size: 1.4rem;
  line-height: 1.6;
}

.cfp-lightbox__close {
  flex: none;
  min-height: 4.4rem;
  padding: 0 2rem;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cfp-ink);
  cursor: pointer;
  background: var(--cfp-yellow);
  border: 0;
  border-radius: 99rem;
}

.cfp-lightbox__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* 中身はこの枠の中でスクロールする（スマートフォンでは画像を大きく出し、指で動かして見る） */
.cfp-lightbox__body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0 var(--cfp-gutter) calc(var(--cfp-gutter) + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.cfp-lightbox__img {
  display: block;
  width: 100%;
  max-width: 160rem;
  height: auto;
  margin: 0 auto;
  border-radius: .6rem;
  background: #fff;
}

/* ---------- 下端の資料ダウンロード（冒頭を過ぎたら出す。末尾の案内とフッターが見えているあいだは隠す） ---------- */

.cfp-dock {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 14;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--cfp-mustard);
  box-shadow: 0 -.2rem 1.2rem rgba(34, 22, 20, .12);
  transition: opacity 180ms ease-out, transform 180ms ease-out;
}

.cfp-dock:not(.is-shown) {
  opacity: 0;
  transform: translateY(100%);
  pointer-events: none;
}

.cfp-dock__inner {
  display: flex;
  gap: 1.6rem 3.2rem;
  align-items: center;
  justify-content: center;
  padding-top: 1.2rem;
  padding-bottom: 1.2rem;
}

.cfp-dock__text {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.5;
  color: var(--cfp-ink);
}

.cfp-dock .cfp-button {
  min-height: 4.8rem;
  padding: .8rem 3.2rem;
}

.cfp-dock a:focus-visible {
  outline-color: var(--cfp-ink);
}

/* 下端の導線が出ているあいだ、キーボードで移った先がその下に隠れないようにする */
html:has(.cfp-dock.is-shown) {
  scroll-padding-bottom: 9.6rem;
}

@media (prefers-reduced-motion: reduce) {
  .cfp-dock {
    transition: none;
  }
}

/* ---------- 幅ごとの調整 ---------- */

/* 広い幅（769px 以上）: 工程ナビを上端（ヘッダーの下）に貼り付ける */
@media screen and (min-width: 769px) {
  .cfp-process {
    position: sticky;
    top: var(--cfp-header-h);
    z-index: 10;
  }
}

@media screen and (max-width: 1023px) {
  .cfp-hero__inner,
  .cfp-detail,
  .cfp-feature__grid,
  .cfp-video,
  .cfp-proxy__inner,
  .cfp-guide__cols {
    grid-template-columns: minmax(0, 1fr);
  }

  .cfp-hero__inner {
    gap: 4rem;
  }

  .cfp-hero__text {
    max-width: 64rem;
  }

  .cfp-detail {
    gap: 2.8rem;
  }

  .cfp-detail--reverse .cfp-detail__text {
    order: 0;
  }

  .cfp-new__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.8rem;
  }
}

@media screen and (max-width: 768px) {
  .cfp [id] {
    scroll-margin-top: calc(var(--cfp-header-h) + 1.6rem);
  }

  .cfp-hero {
    padding: 2.4rem 0 5.6rem;
  }

  .cfp-crumb + .cfp-eyebrow {
    margin-top: 2.8rem;
  }

  .cfp-hero__title {
    margin-top: 1.6rem;
    font-size: 3.2rem;
  }

  .cfp-hero__lead {
    margin-top: 2rem;
    font-size: 1.6rem;
  }

  .cfp-hero__actions {
    flex-direction: column;
    margin-top: 2.4rem;
  }

  .cfp-pin {
    left: -1.2rem;
    width: 2.6rem;
    height: 2.6rem;
    font-size: 1.3rem;
  }

  .cfp-process__list li + li {
    border-left: 0;
  }

  .cfp .cfp-process__link {
    align-items: center;
    padding: .3rem .2rem 0;
    text-align: center;
  }

  .cfp-process__no {
    font-size: 1rem;
  }

  .cfp-process__name {
    font-size: 1.2rem;
    line-height: 1.3;
  }

  .cfp-section {
    padding: 7.2rem 0;
  }

  .cfp-section__title,
  .cfp-step__title {
    font-size: 2.6rem;
  }

  .cfp-new {
    padding: 5.6rem 0;
  }

  .cfp-new .cfp-section__title {
    font-size: 2.4rem;
  }

  .cfp-new__name {
    font-size: 1.8rem;
  }

  .cfp-step {
    padding-top: 5.6rem;
  }

  .cfp-step + .cfp-step > .cfp-wrap::before {
    margin-bottom: 4.8rem;
  }

  .cfp-step__lead {
    font-size: 1.6rem;
  }

  .cfp-step__main,
  .cfp-step__head + .cfp-detail,
  .cfp-feature {
    margin-top: 3.2rem;
  }

  .cfp-detail {
    margin-top: 5.6rem;
  }

  .cfp-detail__title {
    font-size: 2.2rem;
  }

  .cfp-shot__caption {
    font-size: 1.4rem;
  }

  .cfp-related {
    margin-top: 4.8rem;
  }

  .cfp-defs__row {
    grid-template-columns: minmax(0, 1fr);
    padding: 1.4rem 0;
  }

  .cfp-proxy {
    margin-top: 7.2rem;
  }

  .cfp-proxy .cfp-section__title,
  .cfp-guide__title {
    font-size: 2.6rem;
  }

  .cfp-guide {
    padding: 7.2rem 0 6.4rem;
  }

  .cfp-guide__actions {
    flex-direction: column;
  }

  /* スマートフォンの拡大では画像を画面の幅より大きく出し、指で動かして見る */
  .cfp-lightbox__img {
    width: 180%;
    max-width: none;
  }

  .cfp-dock__text {
    display: none;
  }

  .cfp-dock .cfp-button {
    width: 100%;
  }
}
