/* P07 作る人の入口・P08 作り方・P09 応募（熾の面＋灰白）。3.7。群 C の持ちもの */
@layer page {
  /* ============ P07 ① 熾の面と白い手（G-3・E-7・E-8）。高さは最低 520（訳が長く見出しが 4 行になっても切らない） ============ */
  .cr-forge { position: relative; display: grid; min-height: 520px; overflow: clip; background: var(--es-color-oki); color: var(--es-color-hakunetsu); }
  .cr-forge__hand { position: absolute; left: 76%; top: -34px; height: 650px; width: auto; aspect-ratio: 62.6 / 87.7; transform: translateX(-50%); fill: var(--es-color-hakunetsu); pointer-events: none; }
  .cr-forge__body { position: relative; padding-top: var(--es-space-55); padding-bottom: var(--es-space-55); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: 60%; }
  .cr-forge .label { color: var(--es-color-hakunetsu); font-weight: var(--es-fw-bold); margin-bottom: var(--es-space-8); }
  .cr-forge__h { font-size: var(--es-text-89); line-height: var(--es-lh-89); color: var(--es-color-hakunetsu); text-wrap: initial; }
  .cr-forge__h .kw { display: block; white-space: normal; } /* 行は分けたまま、行の中は句読点の塊（.w）・欧文の空白で折り返す（長い訳がはみ出さない） */
  .cr-forge__lead { margin-top: var(--es-space-21); max-width: 600px; font-size: var(--es-text-21); line-height: var(--es-lh-21); color: var(--es-color-hakunetsu); }
  .cr-forge__act { margin-top: var(--es-space-34); display: flex; flex-wrap: wrap; gap: var(--es-space-13); }
  .cr-forge .btn--line { color: var(--es-color-hakunetsu); }
  .cr-forge :focus-visible { outline-color: var(--es-color-sumi); }
  @media (hover: hover) and (pointer: fine) { .cr-forge .btn--line:hover { background: color-mix(in srgb, var(--es-color-hakunetsu) 14%, transparent); } }
  @media (min-width: 987px) and (max-width: 1279px) { .cr-forge__h { font-size: var(--es-text-68); line-height: var(--es-lh-68); } .cr-forge__body { max-width: 52%; } } /* 52%：長い訳の見出しが白い手の指にかからない幅 */

  /* ② 公開すると、起きること */
  .cr-h2 { font-size: var(--es-text-42); line-height: var(--es-lh-42); }
  .cr-hap__list { border-top: var(--es-line-1) solid var(--es-rule); }
  .cr-hap__i { padding: var(--es-space-21) 0; border-bottom: var(--es-line-1) solid var(--es-rule); }
  .cr-hap__t { font-size: var(--es-text-26); line-height: var(--es-lh-26); }
  .cr-hap__t .badge { display: inline-block; margin-left: var(--es-space-8); vertical-align: -4px; }
  .cr-hap__d { margin-top: var(--es-space-8); font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); }
  @media (min-width: 1280px) {
    .cr-hap__i { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); column-gap: var(--es-space-34); align-items: baseline; }
    .cr-hap__d { margin-top: 0; }
  }

  /* ②' 実物の見本（G-C 2.7）：EXTRASTAGE 自身の作品 1 本のポスターと看板。上の区画と続けて読むので、上の余白は 0 */
  .cr-ex { padding-top: 0; }
  .cr-ex__head { max-width: var(--es-measure); margin-bottom: var(--es-space-34); }
  .cr-ex__lead { margin-top: var(--es-space-13); font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); }
  .cr-ex__grid { display: grid; grid-template-columns: 233px minmax(0, 1fr); column-gap: var(--es-gutter); row-gap: var(--es-space-34); align-items: start; }
  .cr-ex__fig { min-width: 0; margin: 0; }
  .cr-ex__poster .pcard { width: 100%; }
  .cr-ex__cap { margin-top: var(--es-space-13); padding-top: var(--es-space-8); border-top: var(--es-line-1) solid var(--es-rule); font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  /* 看板の見本：高さは中身に合わせる（訳が長くても字が看板の外へ出ない）。最低 420 */
  .cr-ex__bb .bb { height: auto; min-height: 420px; display: flex; align-items: flex-end; }
  .cr-ex__bb .bb__info { position: relative; left: auto; right: auto; bottom: auto; width: auto; max-width: 420px; margin: var(--es-space-89) var(--es-space-34) var(--es-space-34); }
  .cr-ex__bb .bb__title { width: 300px; }
  .cr-ex__bb .bb__logo { max-height: 110px; }
  .cr-ex__bb .bb__tag { margin-top: var(--es-space-13); font-size: var(--es-text-16); line-height: var(--es-lh-16); }
  .cr-ex__bb .bb__act { margin-top: var(--es-space-21); }

  /* ②'' 『つくる』の部屋の書きこみの見本（2〜3 件・見本の札つき） */
  .cr-voices { padding-top: 0; }
  .cr-voices__lead { margin-top: var(--es-space-13); font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text-sub); }
  .cr-voices__list { border-top: var(--es-line-1) solid var(--es-rule); }
  .cr-voice { padding: var(--es-space-21) 0; border-bottom: var(--es-line-1) solid var(--es-rule); }
  .cr-voice__who { display: flex; flex-wrap: wrap; align-items: center; gap: var(--es-space-8); font-size: var(--es-text-13); line-height: var(--es-lh-13); }
  .cr-voice__name { font-weight: var(--es-fw-bold); color: var(--es-text-strong); min-width: 0; overflow-wrap: anywhere; }
  .cr-voice__q { margin: var(--es-space-8) 0 0; padding: 0; font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); }
  .cr-voices__more { margin-top: var(--es-space-21); }
  .cr-voice__nt { display: inline-flex; align-items: center; gap: var(--es-space-8); min-width: 0; }
  /* 運営の書きこみ（16 の 2.3・3 章）：墨の板・角 13・余白 21。しるし 34・白熱の名前・熾の札（G-11） */
  .cr-voice--staff { padding: var(--es-space-13) 0; }
  .cr-voice--staff .cr-voice__in { padding: var(--es-space-21); border-radius: var(--es-radius-l); }
  .cr-voice--staff .cr-voice__name { font-size: var(--es-text-16); line-height: var(--es-lh-16); letter-spacing: var(--es-ls-caps); }
  .cr-voice--staff .mark--staff { width: 34px; height: 34px; }
  .cr-voice .tag.tag--staff { background: var(--es-mark); color: var(--es-color-sumi); box-shadow: none; font-weight: var(--es-fw-bold); line-height: 21px; }
  @media (max-width: 609px) { .cr-voice--staff .cr-voice__in { padding: var(--es-space-21) var(--es-space-13); } }
  @media (max-width: 986px) {
    .cr-ex__grid { grid-template-columns: minmax(0, 1fr); }
    .cr-ex__fig--poster { width: 189px; }
  }
  @media (max-width: 609px) {
    .cr-ex__fig--poster { width: 144px; }
    .cr-ex__bb .bb__info { margin: var(--es-space-89) var(--es-space-21) var(--es-space-21); }
    .cr-ex__bb .bb__title { width: 233px; }
    .cr-ex__bb .bb__logo { max-height: 89px; }
    .cr-ex__bb .bb__meta span { white-space: normal; }
  }

  /* ③ 応募から公開まで（白熱の面・画面の幅いっぱい） */
  .cr-flowsec { background: var(--es-color-hakunetsu); }
  .cr-flow__h { font-size: var(--es-text-34); line-height: var(--es-lh-34); margin-bottom: var(--es-space-34); }
  .cflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--es-gutter); row-gap: var(--es-space-34); }
  .cflow__i { display: flex; flex-direction: column; min-width: 0; border-top: var(--es-line-1) solid var(--es-rule); padding-top: var(--es-space-13); }
  .cflow__n { font-size: var(--es-text-55); line-height: var(--es-lh-55); font-weight: var(--es-fw-bold); color: var(--es-text-sub); }
  .cflow__t { margin-top: var(--es-space-8); font-size: var(--es-text-26); line-height: var(--es-lh-26); }
  .cflow__d { margin-top: var(--es-space-8); font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); }
  .cr-flow__note { margin-top: var(--es-space-34); font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }

  /* ④ 先に、ひとつだけ */
  .cr-rule__h { font-size: var(--es-text-26); line-height: var(--es-lh-26); }
  .cr-rule__big { font-size: var(--es-text-55); line-height: var(--es-lh-55); font-weight: var(--es-fw-bold); color: var(--es-text-strong); text-wrap: balance; }
  .cr-rule__d { margin-top: var(--es-space-21); max-width: var(--es-measure); font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); }
  .cr-rule { padding-bottom: var(--es-space-89); }

  /* ⑤ 終わりの行 */
  .cr-end { padding-bottom: var(--es-space-144); display: flex; flex-wrap: wrap; align-items: center; column-gap: var(--es-space-34); row-gap: var(--es-space-21); }
  .cr-end__act { display: flex; flex-wrap: wrap; gap: var(--es-space-13); }
  .cr-end__extra { min-width: 0; }

  @media (max-width: 986px) {
    .cr-forge { height: auto; min-height: 520px; }
    .cr-forge__body { max-width: none; justify-content: flex-start; padding-top: var(--es-space-55); padding-bottom: 233px; }
    .cr-forge__h { font-size: var(--es-text-42); line-height: var(--es-lh-42); }
    .cr-forge__lead { font-size: var(--es-text-16); line-height: var(--es-lh-16); max-width: 26em; }
    .cr-forge__hand { left: auto; right: -13px; top: auto; bottom: -55px; height: 280px; transform: none; }
    .cflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cr-h2 { font-size: var(--es-text-34); line-height: var(--es-lh-34); }
    .cr-rule__big { font-size: var(--es-text-34); line-height: var(--es-lh-34); }
  }
  @media (max-width: 609px) {
    .cr-forge__act { flex-direction: column; align-items: stretch; width: 100%; max-width: 233px; }
    .cr-forge__act .btn { width: 100%; }
    .cflow { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .cflow__i { display: grid; grid-template-columns: 55px minmax(0, 1fr); column-gap: var(--es-space-13); padding: var(--es-space-21) 0; }
    .cflow__n { grid-row: 1 / span 2; font-size: var(--es-text-42); line-height: var(--es-lh-42); }
    .cflow__t { margin-top: 0; font-size: var(--es-text-21); line-height: var(--es-lh-21); }
    .cr-h2 { font-size: var(--es-text-26); line-height: var(--es-lh-26); }
    .cr-hap__t { font-size: var(--es-text-21); line-height: var(--es-lh-21); }
    .cr-rule__big { font-size: var(--es-text-26); line-height: var(--es-lh-26); }
    .cr-end__act, .cr-end__act .btn { width: 100%; }
  }

  /* ============ P08 作り方（文書の型） ============ */
  .cg .doc__h { font-size: var(--es-text-55); line-height: var(--es-lh-55); }
  .cg .doc__body section + section > h2 { margin-top: var(--es-space-55); }
  .cg .doc__body > section:first-child > h2 { margin-top: 0; }
  .c-table { overflow-x: auto; max-width: 100%; }
  /* 表は 5 列の幅いっぱいに。文は 1 行の長さ（34 字）まで */
  .cg .doc__body { max-width: none; }
  .cg .doc__body > section > :not(.c-table), .cg .cg-undecided { max-width: var(--es-measure); }
  .cg .doc__body > section > * + * { margin-top: var(--es-space-21); }
  .cg .doc__body .btn { text-decoration: none; }
  .cg-art th, .cg-art td { padding-right: var(--es-space-21); }
  .cg-art { width: 100%; }
  .cg-art th[scope="row"] { font-size: var(--es-text-16); line-height: var(--es-lh-16); font-weight: var(--es-fw-bold); color: var(--es-text-strong); }
  /* サイズの列は nowrap にしない（訳で長くなると表が入れ物より広がり、右の列が切れる）。日本語は句読点の塊（.w）で、欧文は空白で折れる */
  .cg-act { margin-top: var(--es-space-21); }
  .cg-undecided { margin-top: var(--es-space-55); padding-top: var(--es-space-21); border-top: var(--es-line-1) solid var(--es-rule); font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  @media (max-width: 609px) {
    .cg .doc__h { font-size: var(--es-text-42); line-height: var(--es-lh-42); }
    /* 表は行ごとの塊にする（横に流さない） */
    .cg-art thead { display: none; }
    .cg-art, .cg-art tbody, .cg-art tr, .cg-art th, .cg-art td { display: block; width: 100%; }
    .cg-art tr { padding: var(--es-space-13) 0; border-bottom: var(--es-line-1) solid var(--es-rule); }
    .cg-art th, .cg-art td { border-bottom: 0; padding: var(--es-space-3) 0; }
    .cg-art td::before { content: attr(data-k); display: block; font-size: var(--es-text-13); line-height: var(--es-lh-13); color: var(--es-text-sub); }
  }

  /* ============ P09 応募の左：応募から公開まで（小さく縦に） ============ */
  .cflow-s { margin-top: var(--es-space-34); margin-bottom: var(--es-space-21); border-top: var(--es-line-1) solid var(--es-rule); }
  .cflow-s__i { display: grid; grid-template-columns: 21px minmax(0, 1fr); column-gap: var(--es-space-8); padding: var(--es-space-8) 0; border-bottom: var(--es-line-1) solid var(--es-rule); font-size: var(--es-text-13); line-height: var(--es-lh-13); }
  .cflow-s__n { grid-row: 1 / span 2; color: var(--es-text-sub); font-weight: var(--es-fw-bold); }
  .cflow-s__t { font-size: var(--es-text-13); line-height: var(--es-lh-13); }
  .cflow-s__d { color: var(--es-text); }
  .ap-done { background: var(--es-surface); border-radius: var(--es-radius-l); padding: var(--es-space-34); outline: none; }
  .ap-done__t { font-size: var(--es-text-26); line-height: var(--es-lh-26); font-weight: var(--es-fw-bold); color: var(--es-text-strong); }
  .ap-done__d { margin-top: var(--es-space-8); font-size: var(--es-text-16); line-height: var(--es-lh-16); color: var(--es-text); }
  .ap-done__act { margin-top: var(--es-space-21); }
  .ap .ac-card:has(> form[hidden]) { padding: 0; background: none; }
}
