/* 06-howto.css — #howto：使い方（3 ステップ）
 * PC：見出し → 横の線（目盛り）→ 3 列。SP：左端 x=24 の縦の線 → 縦に 3 つ。レイアウト：docs/DESIGN.md 4-6
 */
.howto { overflow: hidden; }
.howto__shade { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0 60%, #000 100%), linear-gradient(180deg, #000 calc(100% - 120px), transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.45) 0 60%, #000 100%), linear-gradient(180deg, #000 calc(100% - 120px), transparent);
  mask-composite: intersect; }   /* 下端 120px を消して、購入の平らな地へつなぐ（2026-10-14 AD） */
.howto__inner { position: relative; z-index: 1; }
.howto__title { margin-top: var(--sp-5); }

/* ---------- SP（既定）：縦の線 ---------- */
.howto__head { margin-bottom: var(--sp-8); }
.howto__track { display: none; }
.howto__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 48px; position: relative; }
.howto__steps::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule-strong); }
.howto__step { position: relative; padding-left: 24px; }
.howto__step::before { content: ""; position: absolute; left: 0; top: 14px; width: 12px; height: 1px; background: var(--rule-strong); }
.howto__num { color: var(--fg); }
.howto__frame { width: 100%; margin-top: var(--sp-4); }
.howto__frame .h-ph { width: 100%; aspect-ratio: 3 / 2 !important; }
.howto__tag { margin-top: var(--sp-5); color: var(--fg-faint); }
.howto__h { margin-top: var(--sp-2); }
.howto__body { margin-top: var(--sp-3); color: var(--fg-sub); }
.howto__note { margin-top: var(--sp-8); padding-block: var(--sp-4); border-block: var(--rule-w) solid var(--rule-c); color: var(--fg-faint); }

/* ---------- PC ---------- */
@media (min-width: 768px) {
  .howto__head { margin-bottom: var(--sp-10); }
  .howto__track { display: block; position: relative; height: 12px; container-type: inline-size; margin-bottom: 24px; }
  .howto__rule { --mk-line-color: var(--rule-strong); }
  .howto__major { top: 0; height: calc(12px * var(--mk-len)); --mk-line-color: var(--rule-strong); }
  /* 大目盛り＝各列の左端。motion-kit.css の .mk-line.at-left { left: 0 }（詳細度 0,2,0）に負けて 3 本とも 0 に重なっていたので .howto__track を前に付ける */
  .howto__track .howto__major--1 { left: 0; }
  .howto__track .howto__major--2 { left: calc((100% + var(--grid-gutter)) / 3); }
  .howto__track .howto__major--3 { left: calc((100% + var(--grid-gutter)) / 3 * 2); }
  /* 小目盛り：線の伸びに合わせて見える（線の幅でクリップ） */
  .howto__rule { clip-path: inset(0 0 -7px 0); }
  .howto__minor {
    position: absolute; left: 0; top: 0; width: 100cqw; height: 6px;
    background: repeating-linear-gradient(90deg, var(--rule-strong) 0 1px, transparent 1px calc(100cqw / 30));
    opacity: .55;
  }
  .howto__steps { grid-template-columns: repeat(3, 1fr); column-gap: var(--grid-gutter); gap: 0 var(--grid-gutter); }
  .howto__steps::before { display: none; }
  .howto__step { padding-left: 0; }
  .howto__step::before { display: none; }
  .howto__frame .h-ph { aspect-ratio: 4 / 3 !important; }
  .howto__note { margin-top: var(--sp-9); }
}

/* 写真（U01〜U03）：枠の縦横比に合わせて切る */
.howto .howto__pic { display: block; width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.howto .howto__pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .howto .howto__pic { aspect-ratio: 4 / 3; } }

/* 動きの無いとき（JS が .is-motion を付けない＝動きを減らす設定・JS の失敗）でも写真は出たまま
 * （motion-kit.css の .mk-frame-media は --mk-img 0 が既定。developImage が動けば .mk-develop の --mk-dv が勝つ） */
.howto:not(.is-motion) .howto__frame > .mk-frame-media { --mk-img: 1; }

/* 和文の改行：括弧と助詞・文節をひとまとまりにして、行頭に助詞や 2 字だけが残らないようにする */
.howto__nw { white-space: nowrap; }
