/*
 * 有料お題（賞金つきのお題）の画面の共通 CSS（paid-challenge/DESIGN.md §5）。
 * 使う画面: paid-challenge-{new,thanks,manage,mine,claim,rules}.html（どれも独立した HTML・app-shell に載せない）。
 *
 * 見た目の決め（DESIGN §5 冒頭）:
 *   - 地の色・赤・文字の色は今のお題の画面（public/challenges.html の --ch-*）と同じ。お題の世界の続きに見せる。
 *   - ボタンと「選ぶ枠」は DreamCore の決まり＝**くっきりした枠＋下に落ちる硬い影**
 *     （public/css/make-v8.css の .v8-opt `box-shadow:0 3px 0 var(--lip)`・.v8-primary `0 5px 0 var(--lip-red)`）。
 *     押すと影の分だけ沈む（translateY = 影の厚み）。お金の画面で「押した手応え」をはっきりさせるため。
 *   - モバイルファースト（390 幅で 1 列）。640px から余白を広げ、960px から「入力（左）＋まとめ（右・追従）」の 2 列。
 *
 * ⚠️ すべて .pc-page の下に閉じる（ほかの CSS と混ざらない・クラス名の接頭辞 pc-）。
 * ⚠️ このファイルは public/css/routes/ ではない（split-route-css の対象外）。版は HTML の ?v= で上げる。
 */
.pc-page {
  --pc-red: #E7352B;            /* お題の赤（challenges.html --ch-red と同じ・白い小文字で 3.1:1 を超える一段沈めた赤） */
  --pc-red-ink: #CE2820;        /* 白地の上で 4.5:1 を超える赤（文字用） */
  --pc-red-soft: rgba(255, 59, 48, 0.1);
  --pc-ink: #171717;
  --pc-ink2: #525252;
  --pc-ink3: #8A8A8A;
  --pc-line: #E7E1D9;           /* 枠の色（make-v8 --line より一段濃い＝白地で枠が読める） */
  --pc-lip: #E0D8CE;            /* 白いボタンの下に落ちる影（make-v8 --lip） */
  --pc-lip-red: #B8261D;        /* 赤いボタンの下に落ちる影（make-v8 --lip-red を赤に合わせて沈めた） */
  --pc-bg: #F6F6F8;
  --pc-card: #FFFFFF;
  --pc-ok: #1E8E5A;
  --pc-warn: #B45309;
  --pc-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --pc-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --pc-safe-top: env(safe-area-inset-top, 0px);
  --pc-safe-bottom: env(safe-area-inset-bottom, 0px);
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--pc-bg);
  color: var(--pc-ink);
  /* 字は企業向けの紹介ページ・LP（public/business-lp/lp.css の --font）と同じ組み合わせ。
     2026-10-25 founder「フォントがさ、DreamCoreの他のページと違わない？」: 前は丸ゴシック（M PLUS Rounded 1c は読み込んでおらず、
     Mac ではヒラギノ丸ゴ）で、紹介ページ（ヒラギノ角ゴ）から申し込みに進むと字が丸く変わっていた。DreamCore で丸ゴはこの画面だけだった */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
html:lang(ja) .pc-page { font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, sans-serif; }
.pc-page *, .pc-page *::before, .pc-page *::after { box-sizing: border-box; }
.pc-page [hidden] { display: none !important; }
/* 文の中のリンクだけ赤。ボタンの形のリンク（a.pc-btn）は除く: .pc-page a（0,1,1）が .pc-btn-primary（0,1,0）に勝って
   「お題を出す」が赤の上に赤の文字で読めなかった（通しで見つけた・2026-10-22 fix1）。色はボタン側の決まりに任せる */
.pc-page a:not(.pc-btn) { color: var(--pc-red-ink); }
.pc-page :focus-visible { outline: 3px solid var(--pc-red-ink); outline-offset: 2px; border-radius: 6px; }

/* ---------- 枠 ---------- */
.pc-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 10px;
  min-height: 56px; padding: 8px 12px; padding-top: calc(8px + var(--pc-safe-top));
  background: rgba(246, 246, 248, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
}
.pc-header.is-scrolled { border-bottom-color: rgba(22, 22, 26, 0.08); }
.pc-back {
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--pc-card); color: var(--pc-ink); border: 2px solid var(--pc-line);
  box-shadow: 0 3px 0 var(--pc-lip); cursor: pointer; text-decoration: none;
  transition: transform 0.12s var(--pc-ease), box-shadow 0.12s var(--pc-ease);
}
.pc-back:active { transform: translateY(3px); box-shadow: 0 0 0 var(--pc-lip); }
.pc-header-title { margin: 0; font-size: 1rem; font-weight: 900; letter-spacing: -0.01em; }
.pc-main { width: 100%; max-width: 640px; margin: 0 auto; padding: 8px 16px calc(40px + var(--pc-safe-bottom)); }

/* ---------- 見出し・文 ---------- */
.pc-hero {
  position: relative; overflow: hidden; margin: 8px 0 16px;
  background: var(--pc-red); color: #FFFFFF; border-radius: 22px; padding: 18px 18px 16px;
  box-shadow: 0 10px 28px -12px rgba(231, 53, 43, 0.55);
}
/* 跳ねる白い四角（お題の印・challenges.html .ch-hero::after と同じ飾り） */
.pc-hero::after {
  content: ""; position: absolute; right: 18px; top: 18px; width: 11px; height: 11px; border-radius: 3.5px;
  background: #FFFFFF; animation: pcJump 4.2s ease-in-out 0.8s infinite;
}
@keyframes pcJump {
  0%, 86%, 100% { transform: none; }
  88% { transform: translateY(1px) scale(1.1, 0.85); }
  92% { transform: translateY(-9px); }
  96% { transform: translateY(0) scale(1.06, 0.92); }
  98% { transform: none; }
}
.pc-hero-kicker {
  display: inline-flex; align-items: center; background: #FFFFFF; color: var(--pc-red-ink);
  border-radius: 999px; padding: 4px 10px; font-size: 0.75rem; font-weight: 900;
}
.pc-hero h1 { margin: 10px 30px 4px 0; font-size: 1.5rem; font-weight: 900; line-height: 1.25; letter-spacing: -0.01em; text-wrap: balance; }
.pc-hero p { margin: 0; font-size: 0.875rem; font-weight: 700; line-height: 1.6; color: rgba(255, 255, 255, 0.92); }
.pc-lead { margin: 0 0 12px; font-size: 0.9375rem; font-weight: 700; line-height: 1.7; color: var(--pc-ink2); }
.pc-muted { color: var(--pc-ink3); }
/* 文のあとに続けるリンク・補足。間は余白で空ける（日本語の文に半角スペースを入れない決まり・challenge.js の .prize-icon と同じ考え） */
.pc-inline-link { margin-left: 0.4em; }
.pc-small { font-size: 0.8125rem; line-height: 1.6; }

/* ---------- カード（区切り） ---------- */
.pc-card {
  background: var(--pc-card); border: 2px solid var(--pc-line); border-radius: 18px;
  padding: 16px; margin: 0 0 14px;
}
.pc-card h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 1rem; font-weight: 900; }
.pc-step {
  flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--pc-red); color: #FFFFFF;
  display: inline-grid; place-items: center; font-size: 0.75rem; font-weight: 900;
}
.pc-card p { margin: 0 0 8px; font-size: 0.875rem; line-height: 1.65; }
.pc-card p:last-child { margin-bottom: 0; }

/* ---------- 入力 ---------- */
.pc-field { display: block; margin: 0 0 14px; }
.pc-field:last-child { margin-bottom: 0; }
.pc-label { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin: 0 0 6px; font-size: 0.875rem; font-weight: 800; }
.pc-label small { font-size: 0.75rem; font-weight: 700; color: var(--pc-ink3); font-variant-numeric: tabular-nums; }
.pc-input, .pc-textarea, .pc-select {
  display: block; width: 100%; min-height: 48px; padding: 12px 14px;
  border: 2px solid var(--pc-line); border-radius: 14px; background: #FFFFFF; color: var(--pc-ink);
  font: inherit; font-size: 1rem; font-weight: 700; line-height: 1.5;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.pc-textarea { min-height: 132px; resize: vertical; }
.pc-input:focus, .pc-textarea:focus, .pc-select:focus { outline: none; border-color: var(--pc-red); box-shadow: 0 0 0 3px var(--pc-red-soft); }
.pc-input[aria-invalid="true"], .pc-textarea[aria-invalid="true"] { border-color: var(--pc-red); }
.pc-hint { margin: 6px 0 0; font-size: 0.75rem; font-weight: 700; color: var(--pc-ink3); line-height: 1.5; }
.pc-error { margin: 6px 0 0; font-size: 0.8125rem; font-weight: 800; color: var(--pc-red-ink); line-height: 1.5; }
.pc-amount { position: relative; }
.pc-amount .pc-input { padding-left: 40px; font-size: 1.375rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.pc-amount-yen { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-weight: 900; font-size: 1.25rem; color: var(--pc-ink2); }

/* ---------- 選ぶ枠（地域・期間・役割）＝ make-v8 .v8-opt / .v8-chip と同じ手応え ---------- */
.pc-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-choices.is-2 { grid-template-columns: 1fr 1fr; }
.pc-choice {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 64px; padding: 12px 14px 13px; text-align: left; cursor: pointer;
  background: #FFFFFF; color: var(--pc-ink); border: 2px solid var(--pc-line); border-radius: 16px;
  box-shadow: 0 3px 0 var(--pc-lip); font: inherit;
  transition: transform 0.12s var(--pc-ease), box-shadow 0.12s var(--pc-ease), border-color 0.12s ease, background-color 0.12s ease;
}
.pc-choice input { position: absolute; opacity: 0; pointer-events: none; }
.pc-choice b { font-size: 0.9375rem; font-weight: 900; line-height: 1.3; }
.pc-choice small { font-size: 0.71875rem; font-weight: 700; color: var(--pc-ink3); line-height: 1.4; }
.pc-choice:active { transform: translateY(3px); box-shadow: 0 0 0 var(--pc-lip); }
.pc-choice.is-selected, .pc-choice:has(input:checked) {
  border-color: var(--pc-red); background: #FFF6F5; box-shadow: 0 3px 0 var(--pc-lip-red);
}
.pc-choice.is-selected small, .pc-choice:has(input:checked) small { color: var(--pc-red-ink); }
.pc-choice:has(input:focus-visible) { outline: 3px solid var(--pc-red-ink); outline-offset: 2px; }

/* ---------- 同意 ---------- */
.pc-check {
  display: flex; align-items: flex-start; gap: 10px; padding: 12px; margin: 0 0 8px; cursor: pointer;
  border: 2px solid var(--pc-line); border-radius: 14px; background: #FFFFFF;
  font-size: 0.875rem; font-weight: 700; line-height: 1.55;
}
.pc-check:last-child { margin-bottom: 0; }
.pc-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--pc-red); }
.pc-check:has(input:checked) { border-color: var(--pc-red); background: #FFF6F5; }

/* ---------- ボタン ---------- */
.pc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border-radius: 16px; cursor: pointer; text-decoration: none;
  font: inherit; font-size: 0.9375rem; font-weight: 900; white-space: nowrap;
  border: 2px solid var(--pc-line); background: #FFFFFF; color: var(--pc-ink); box-shadow: 0 4px 0 var(--pc-lip);
  transition: transform 0.12s var(--pc-ease), box-shadow 0.12s var(--pc-ease), opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.pc-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--pc-lip); }
.pc-btn-primary { border-color: var(--pc-red); background: var(--pc-red); color: #FFFFFF; box-shadow: 0 5px 0 var(--pc-lip-red), 0 16px 26px -14px rgba(231, 53, 43, 0.55); }
.pc-btn-primary:active { transform: translateY(5px); box-shadow: 0 0 0 var(--pc-lip-red); }
.pc-btn-block { display: flex; width: 100%; min-height: 56px; font-size: 1.0625rem; }
.pc-btn-small { min-height: 38px; padding: 0 14px; font-size: 0.8125rem; border-radius: 12px; box-shadow: 0 3px 0 var(--pc-lip); }
.pc-btn-small:active { transform: translateY(3px); }
.pc-btn-danger { color: var(--pc-red-ink); }
.pc-btn[disabled], .pc-btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: 0 4px 0 var(--pc-lip); }
.pc-btn-primary[disabled] { box-shadow: 0 5px 0 var(--pc-lip-red); }
.pc-btn[aria-busy="true"] { opacity: 0.7; pointer-events: none; }
.pc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
@media (hover: hover) and (pointer: fine) {
  .pc-btn:hover { background: #FFFAF9; }
  .pc-btn-primary:hover { background: #F0453B; }
  .pc-choice:hover { border-color: #D9CFC4; }
  .pc-choice.is-selected:hover { border-color: var(--pc-red); }
}

/* ---------- 金額のまとめ ---------- */
.pc-sum { display: grid; gap: 8px; margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #FBF7F3; }
.pc-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.875rem; font-weight: 800; }
.pc-sum-row b { font-size: 1.0625rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.pc-sum-row.is-total b { color: var(--pc-red-ink); font-size: 1.375rem; }
.pc-split { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-split span { padding: 4px 9px; border-radius: 999px; background: #FFFFFF; border: 1.5px solid var(--pc-line); font-size: 0.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------- 素材 ---------- */
.pc-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 112px; padding: 16px; border: 2.5px dashed var(--pc-line); border-radius: 16px; background: #FFFFFF;
  font-size: 0.8125rem; font-weight: 800; color: var(--pc-ink2);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.pc-drop.is-over { border-color: var(--pc-red); background: #FFF6F5; }
.pc-mats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 10px; }
.pc-mat { position: relative; border: 2px solid var(--pc-line); border-radius: 14px; overflow: hidden; background: #FFFFFF; }
.pc-mat img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: contain; background: repeating-conic-gradient(#F3F0EC 0 25%, #FFFFFF 0 50%) 0 0 / 16px 16px; }
.pc-mat-body { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px; }
.pc-mat-role { display: flex; gap: 4px; flex: 1 1 auto; }
.pc-mat-role button {
  flex: 1 1 0; min-height: 34px; border-radius: 10px; border: 2px solid var(--pc-line); background: #FFFFFF;
  font: inherit; font-size: 0.71875rem; font-weight: 900; cursor: pointer; box-shadow: 0 2px 0 var(--pc-lip); color: var(--pc-ink2);
}
.pc-mat-role button[aria-pressed="true"] { border-color: var(--pc-red); color: var(--pc-red-ink); background: #FFF6F5; box-shadow: 0 2px 0 var(--pc-lip-red); }
.pc-mat-remove {
  position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--pc-line); background: rgba(255, 255, 255, 0.95); cursor: pointer; font: inherit; font-weight: 900;
  display: grid; place-items: center; color: var(--pc-ink);
}
.pc-mat.is-uploading img { opacity: 0.45; }
/* 自作のバナー（2026-10-25・横 3：縦 1）。表示の枠と同じ比率で見せる（ずれた比率は上げる前に止める） */
.pc-banner-slot { position: relative; margin: 0 0 10px; border: 2px solid var(--pc-line); border-radius: 14px; overflow: hidden; background: #FFFFFF; }
.pc-banner-slot img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; object-fit: cover; }
.pc-banner-slot.is-uploading img { opacity: 0.45; }

/* ---------- 状態のピル ---------- */
.pc-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 0.75rem; font-weight: 900; background: #F0F0F3; color: var(--pc-ink2); white-space: nowrap;
}
.pc-pill.is-live { background: var(--pc-red-soft); color: var(--pc-red-ink); }
.pc-pill.is-ok { background: rgba(30, 142, 90, 0.12); color: var(--pc-ok); }
.pc-pill.is-warn { background: rgba(180, 83, 9, 0.12); color: var(--pc-warn); }

/* ---------- 一覧（自分のお題・応募作品） ---------- */
.pc-list { display: grid; gap: 10px; }
.pc-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; text-decoration: none; color: inherit;
  background: #FFFFFF; border: 2px solid var(--pc-line); border-radius: 16px; box-shadow: 0 3px 0 var(--pc-lip);
  transition: transform 0.12s var(--pc-ease), box-shadow 0.12s var(--pc-ease);
}
.pc-row:active { transform: translateY(3px); box-shadow: 0 0 0 var(--pc-lip); }
.pc-row-main { flex: 1 1 auto; min-width: 0; }
.pc-row-main b { display: block; font-size: 0.9375rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-row-main small { display: block; margin-top: 2px; font-size: 0.75rem; font-weight: 700; color: var(--pc-ink3); }
.pc-entries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pc-entry {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  background: #FFFFFF; border: 2px solid var(--pc-line); border-radius: 16px; box-shadow: 0 3px 0 var(--pc-lip);
}
.pc-entry.is-picked { border-color: var(--pc-red); box-shadow: 0 3px 0 var(--pc-lip-red); }
.pc-entry-thumb { display: block; aspect-ratio: 3 / 4; background: #EFEFF3; overflow: hidden; }
.pc-entry-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pc-entry-body { padding: 8px 10px 10px; display: grid; gap: 6px; }
.pc-entry-body b { font-size: 0.8125rem; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-entry-body small { font-size: 0.6875rem; font-weight: 700; color: var(--pc-ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-pick-order {
  position: absolute; left: 8px; top: 8px; min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px;
  display: inline-grid; place-items: center; background: var(--pc-red); color: #FFFFFF; font-weight: 900; font-size: 0.875rem;
  box-shadow: 0 2px 0 var(--pc-lip-red);
}

/* ---------- 下に追従するバー（選考の確定・お支払いへ） ---------- */
.pc-dock {
  position: sticky; bottom: 0; z-index: 10; margin: 16px -16px 0; padding: 12px 16px calc(12px + var(--pc-safe-bottom));
  background: linear-gradient(180deg, rgba(246, 246, 248, 0) 0%, var(--pc-bg) 16px, var(--pc-bg) 100%);
}

/* ---------- 知らせ ---------- */
.pc-notice { margin: 0 0 14px; padding: 12px 14px; border-radius: 14px; border: 2px solid var(--pc-line); background: #FFFFFF; font-size: 0.875rem; font-weight: 800; line-height: 1.6; }
.pc-notice.is-warn { border-color: #F2C79B; background: #FFF8F0; color: #7A3E06; }
.pc-notice.is-error { border-color: #F4B4AE; background: #FFF4F3; color: var(--pc-red-ink); }
.pc-notice.is-ok { border-color: #A9DCC3; background: #F2FBF6; color: #145C3B; }
.pc-toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--pc-safe-bottom)); transform: translateX(-50%); z-index: 50;
  padding: 10px 16px; border-radius: 999px; background: #171717; color: #FFFFFF; font-size: 0.8125rem; font-weight: 800;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); animation: pcToast 2.4s var(--pc-ease) forwards;
}
@keyframes pcToast { 0% { opacity: 0; transform: translate(-50%, 8px); } 10%, 85% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }

/* ---------- 確認のダイアログ（<dialog>） ---------- */
.pc-dialog {
  width: min(92vw, 440px); padding: 0; border: 2px solid var(--pc-line); border-radius: 22px; background: #FFFFFF; color: var(--pc-ink);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.pc-dialog::backdrop { background: rgba(20, 16, 14, 0.45); }
.pc-dialog-body { padding: 20px 18px 18px; }
.pc-dialog h2 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 900; }
.pc-dialog p { margin: 0 0 12px; font-size: 0.875rem; line-height: 1.65; }

/* ---------- 読み込み中 ---------- */
.pc-skel { height: 120px; border-radius: 18px; background: #ECECF0; position: relative; overflow: hidden; margin: 0 0 14px; }
.pc-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, 0.7) 50%, transparent 80%); transform: translateX(-100%); animation: pcShine 1.3s ease-in-out infinite; }
@keyframes pcShine { to { transform: translateX(100%); } }
.pc-spinner { width: 44px; height: 44px; margin: 8px auto 14px; border-radius: 50%; border: 5px solid #F2D9D6; border-top-color: var(--pc-red); animation: pcSpin 0.9s linear infinite; }
@keyframes pcSpin { to { transform: rotate(360deg); } }

/* ---------- 公式ルール ---------- */
.pc-rules h2 { margin: 18px 0 6px; font-size: 1rem; font-weight: 900; }
.pc-rules h2:first-child { margin-top: 0; }
.pc-rules p, .pc-rules li { font-size: 0.875rem; line-height: 1.75; }
.pc-rules ul { margin: 0 0 8px; padding-left: 1.2em; }
.pc-fill { padding: 0 4px; border-radius: 6px; background: #FFF1D6; font-weight: 900; font-variant-numeric: tabular-nums; }

/* ---------- ギフトの番号 ---------- */
.pc-code {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 14px;
  border: 2px solid var(--pc-ink); background: #FFFFFF; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.125rem; font-weight: 800; letter-spacing: 0.06em; word-break: break-all;
}

/* ---------- 広い画面 ---------- */
@media (min-width: 640px) {
  .pc-main { padding: 16px 24px calc(48px + var(--pc-safe-bottom)); }
  .pc-hero { padding: 24px 26px 22px; }
  .pc-hero h1 { font-size: 1.875rem; }
  .pc-card { padding: 20px; }
  .pc-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pc-choices.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pc-mats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pc-entries { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pc-dock { margin: 20px 0 0; padding-left: 0; padding-right: 0; }
}
/* PC: 入力（左）とまとめ（右・追従）の 2 列。金額と同意を見ながら入れられる */
@media (min-width: 960px) {
  .pc-main.is-wide { max-width: 1040px; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .pc-main.is-wide .pc-side { position: sticky; top: 72px; }
  .pc-main.is-wide .pc-hero { grid-column: 1 / -1; }
  .pc-main.is-wide .pc-dock { position: static; background: none; margin: 0; padding: 0; }
  .pc-entries { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* MOBILE-ONLY（html.native-app）: アプリでは「お題を出す」・支払い・ホストの管理を出さない（DESIGN §10-2 の 2）。
   JS（paid-challenge-common.js の PAID_CHALLENGE_NATIVE_GUARD）が先に中身ごと差し替えるが、JS が読めない時の最後の止め */
/* 印は main（案内を入れる箱）には付けない。main に付けると JS の案内ごと消えて真っ白になる（fix1） */
html.native-app .pc-host-only { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .pc-page *, .pc-page *::before, .pc-page *::after { animation: none !important; transition: none !important; }
}

/* 「この先の流れ」（お題を出す画面の確認・thanks。paid-challenge-common.js の renderFlow・2026-10-22 zhu-review の 2）。
   読むだけの文なので同意の箱と見分けがつくよう、枠の無い淡い面＋番号つきの縦の列にする。返金の 1 行は緑で「安心の材料」に見せる */
.pc-flow { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #F6F6F8; text-align: left; }
.pc-flow-title { margin: 0 0 8px; font-size: 0.8125rem; font-weight: 900; color: var(--pc-ink); }
.pc-flow-list { margin: 0; padding: 0; list-style: none; counter-reset: pcflow; display: grid; gap: 6px; }
.pc-flow-list li {
  counter-increment: pcflow; position: relative; padding-left: 26px;
  font-size: 0.8125rem; font-weight: 700; line-height: 1.55; color: var(--pc-ink2);
}
.pc-flow-list li::before {
  content: counter(pcflow); position: absolute; left: 0; top: 0.1em; width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: #FFFFFF; border: 2px solid var(--pc-line); color: var(--pc-ink); font-size: 0.625rem; font-weight: 900;
}
.pc-flow-refund { margin: 10px 0 0; font-size: 0.8125rem; font-weight: 800; line-height: 1.55; color: var(--pc-ok); }

/* 管理画面の作品カード: 「遊べる」と読めるように、サムネに ▶ と「遊ぶ」ボタン（2026-10-22 zhu-review の 3） */
.pc-entry-thumb { position: relative; }
.pc-entry-play-mark {
  position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  background: rgba(23, 23, 23, 0.55); color: #FFFFFF; font-size: 0.875rem; line-height: 1;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
/* 「遊ぶ」と「選ぶ」を横に並べる。選べない理由（「自分の作品」「同じ人は1本まで」）は長いので、幅が足りない時は
   はみ出させずに 2 段目へ折り返す（min-width を 0 にしない＝文字の幅より縮めない） */
.pc-entry-buttons { display: flex; gap: 6px; flex-wrap: wrap; }
.pc-entry-buttons .pc-btn { flex: 1 1 auto; }
.pc-hero .pc-actions .pc-btn { flex: 0 1 auto; }

/* スポンサーお題（賞金なし）と賞金ありのお題の出し分け（2026-10-22 sponsor2）。
   .pc-page の data-mode を JS が config（新しく作る時）か下書き（続きを書く時）から決める。既定は sponsor（HTML に書いてある）。
   賞金ありの部品は消さずに残す（スイッチ PAID_CHALLENGE_PRIZES_ENABLED を入れれば今の形に戻る） */
.pc-page[data-mode="sponsor"] .pc-prize-only { display: none !important; }
.pc-page[data-mode="prize"] .pc-sponsor-only { display: none !important; }
/* 値段（運営が決めた 1 つ）。入れる欄ではなく読む数字なので、まとめの合計と同じ太さで大きく */
.pc-price { margin: 10px 0 2px; font-size: 1.5rem; font-weight: 900; line-height: 1.25; font-variant-numeric: tabular-nums; color: var(--pc-ink); }
.pc-price small { margin-left: 4px; font-size: 0.875rem; font-weight: 800; color: var(--pc-ink2); }
/* 「協賛：◯◯」（manage・mine の見出しの下） */
.pc-sponsor-line { margin: 4px 0 0; font-size: 0.8125rem; font-weight: 800; color: var(--pc-ink2); overflow-wrap: anywhere; }

/* ---------- スポンサーお題のオプション（2026-10-22 options・public/js/paid-challenge-options.js）----------
   1 つのオプション = 1 枚の枠。押せる所は今の「選ぶ枠」と同じ手応え（枠＋下に落ちる硬い影）。選んだら赤の枠。
   延長は X のブーストのように「つまみ＋早押し」で 1 日単位（founder 決定 2026-10-22）。 */
.pc-opt-base { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 2px; font-size: 0.9375rem; font-weight: 900; }
.pc-opt-base b { font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; }
.pc-opt-base small { margin-left: 4px; font-size: 0.8125rem; font-weight: 800; color: var(--pc-ink2); }
.pc-opts { display: grid; gap: 10px; margin: 14px 0 0; }
.pc-opt {
  padding: 12px 14px; border: 2px solid var(--pc-line); border-radius: 16px; background: #FFFFFF;
  box-shadow: 0 3px 0 var(--pc-lip);
  transition: border-color 0.12s ease, background-color 0.12s ease;
}
.pc-opt.is-on { border-color: var(--pc-red); background: #FFF6F5; box-shadow: 0 3px 0 var(--pc-lip-red); }
.pc-opt-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 4px 10px; cursor: pointer; }
.pc-opt-head.is-static { cursor: default; }
.pc-opt-head input[type="checkbox"] { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--pc-red); }
/* 狭い画面では値段が説明の下に回る（説明を細い 1 列で縦に伸ばさない・390 幅で見つけた） */
.pc-opt-copy { flex: 1 1 200px; min-width: 0; display: grid; gap: 2px; }
.pc-opt-copy b { font-size: 0.9375rem; font-weight: 900; line-height: 1.35; }
.pc-opt-copy small { font-size: 0.75rem; font-weight: 700; line-height: 1.5; color: var(--pc-ink2); }
.pc-opt-price { flex: none; margin-left: auto; font-size: 0.875rem; font-weight: 900; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--pc-ink); }
.pc-opt.is-on .pc-opt-price { color: var(--pc-red-ink); }
.pc-opt-when { margin: 8px 0 0 32px; font-size: 0.75rem; font-weight: 800; color: var(--pc-ink3); line-height: 1.5; }
.pc-boost .pc-opt-when { margin-left: 0; }
.pc-opt-extra { margin: 10px 0 0 32px; }
.pc-opt-extra .pc-field { margin: 0; }
.pc-opt-taken { color: var(--pc-warn); }
.pc-boost-range { display: block; width: 100%; margin: 12px 0 6px; accent-color: var(--pc-red); }
.pc-boost-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pc-boost-chip {
  min-width: 48px; min-height: 36px; padding: 0 12px; border-radius: 12px; cursor: pointer; font: inherit;
  font-size: 0.8125rem; font-weight: 900; font-variant-numeric: tabular-nums;
  border: 2px solid var(--pc-line); background: #FFFFFF; color: var(--pc-ink); box-shadow: 0 3px 0 var(--pc-lip);
  transition: transform 0.12s var(--pc-ease), box-shadow 0.12s var(--pc-ease);
}
.pc-boost-chip:active { transform: translateY(3px); box-shadow: 0 0 0 var(--pc-lip); }
.pc-boost-chip.is-selected { border-color: var(--pc-red); color: var(--pc-red-ink); background: #FFF6F5; box-shadow: 0 3px 0 var(--pc-lip-red); }
/* 特別バナーの追加の日（−／＋）。上限は延長の日数まで（fix3・founder 決定「基本の 3 日間＋追加 1 日」） */
.pc-banner-days { margin-top: 10px !important; }
.pc-stepper { display: flex; align-items: center; gap: 10px; margin: 4px 0; }
.pc-stepper-value { min-width: 56px; text-align: center; font-weight: 900; font-variant-numeric: tabular-nums; }
.pc-stepper .pc-boost-chip:disabled { opacity: 0.4; cursor: default; box-shadow: none; }
.pc-guarantee { display: grid; gap: 4px; margin: 4px 0 0; }
.pc-guarantee b { font-weight: 900; }
/* 合計の表（ベース・オプション・小計・消費税・お支払い） */
.pc-lines { display: grid; gap: 6px; margin: 14px 0 6px; padding: 12px 14px; border-radius: 14px; background: #FBF7F3; }
.pc-lines-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 0.8125rem; font-weight: 800; color: var(--pc-ink2); }
.pc-lines-row b { font-weight: 900; color: var(--pc-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pc-lines-row.is-sub { padding-top: 6px; border-top: 1px dashed var(--pc-line); color: var(--pc-ink); }
.pc-lines-row.is-total { font-size: 0.9375rem; color: var(--pc-ink); }
.pc-lines-row.is-total b { font-size: 1.25rem; color: var(--pc-red-ink); }
/* この先の流れの「オプションの届き方」 */
.pc-flow-sub { margin-top: 12px; }
.pc-flow-opts { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.pc-flow-opts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; font-size: 0.8125rem; font-weight: 700; line-height: 1.5; color: var(--pc-ink2); }
/* 名前は 1 行のまま（「特別バナー」を 1 字ずつ折らない）。届き方は残りの幅で折り返す */
.pc-flow-opts li b { flex: 0 0 auto; font-weight: 900; color: var(--pc-ink); white-space: nowrap; }
.pc-flow-opts li span { flex: 1 1 160px; text-align: right; }

/* ---------- 申し込みの画面だけ平らにする（2026-10-24 founder「申込ページは影とかついててゴチャゴチャ感がある」） ----------
   アプリの部品の「押せる厚み」（下に 3〜5px の色の影＝lip）・赤い表紙の影・2px の枠が、カードの中のカード（地域・オプション・
   同意の行）まで全部に付いていて、企業が読む書類の画面としては線と影が多すぎた。ここだけ影を消し、枠は 1px、同意の行は枠なし。
   アプリ利用者が見るほかの有料お題の画面（ダッシュボード・受け取り等）は今の見た目のまま（.pc-page--apply は new.html だけ）。
   入力欄の focus の輪（box-shadow 0 0 0 3px）は操作の手がかりなので残す。
   前は :not(:focus) も付けていたが、押した（focus の付いた）ボタンだけ元の lip の影が戻っていた（2026-10-24 PR #1030 レビュー）。
   :not(:focus) を外しても、入力欄の輪は下の .pc-page--apply .pc-input:focus 等（同じ詳細度 0,3,0・後に書いた !important）が勝つので残る
   ただし「こう表示されます」の枠（.pv-screen）の中は除く（2026-10-25 sponsor-card）: そこはアプリの本物の画面の写しで、
   スポンサーのカードの硬い影（DreamCore の見た目）も本物どおりに見せる約束（企業の書類の線ではない）。
   「ここに表示されます」の見本の画面（.pl-mock・2026-10-25 step3・paid-challenge-places.css）の中も同じ理由で除く。 */
.pc-page--apply *:not(.pc-toast):not(.pc-dialog):not(.pv-screen *):not(.pl-mock *) { box-shadow: none !important; }
.pc-page--apply .pc-hero { box-shadow: none; }
.pc-page--apply .pc-hero::after { display: none; }
/* .pl-device（見本と下書きのページを縮めて見せる器・transform: scale）は除く: 押している間だけ縮みが外れて画面が跳ねる（2026-10-25 step3） */
.pc-page--apply *:not(.pl-device):active { transform: none !important; }
.pc-page--apply .pc-card,
.pc-page--apply .pc-choice,
.pc-page--apply .pc-opt,
.pc-page--apply .pc-boost-chip,
.pc-page--apply .pc-input,
.pc-page--apply .pc-textarea,
.pc-page--apply .pc-select { border-width: 1px; }
.pc-page--apply .pc-input:focus,
.pc-page--apply .pc-textarea:focus,
.pc-page--apply .pc-select:focus { box-shadow: 0 0 0 3px var(--pc-red-soft) !important; }
/* 同意の 4 行: 箱をやめて行だけ（チェックが付いたら字を赤くするだけ） */
.pc-page--apply .pc-check { border: 0; background: transparent; padding: 8px 2px; margin: 0; }
.pc-page--apply .pc-check:has(input:checked) { background: transparent; color: var(--pc-red-ink); }


/* ---------- 申し込みの 3 段（2026-10-25 apply-wizard・public/paid-challenge-new.html・paid-challenge-new.js）----------
   founder「よくある広告入稿っぽくしてね。まずは自分たちの表示を作ってから、最後にお金払って入稿させますよね」。
   1 表示を作る（入力＋「こう表示されます」）→ 2 設定 → 3 確認して支払う。段は .pc-page の data-step（JS）。
   値段（合計）は 1・2 段目は段の終わりの帯（.pc-wiz-bar）、3 段目は箱（.pc-paybox・paid-challenge-places.css）。見える所に 1 つだけ。
   上の「申し込みの画面だけ平らにする」（影なし・枠 1px）はこの部品にも効く（.pc-page--apply の下にある）。 */
.pc-page--apply .pc-main.pc-wiz { max-width: 1120px; padding-bottom: 0; }
/* 段の目次（押すと戻れる）。スマホ 390 幅でも 3 つが 1 行に入る大きさ */
.pc-steps { margin: 4px 0 14px; }
.pc-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.pc-steps-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 6px 10px; cursor: pointer;
  border: 1px solid var(--pc-line); border-radius: 12px; background: #FFFFFF; color: var(--pc-ink2);
  font: inherit; font-size: 0.8125rem; font-weight: 800; line-height: 1.3; text-align: left;
}
.pc-steps-n {
  flex: none; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center;
  background: #F0F0F3; color: var(--pc-ink2); font-size: 0.75rem; font-weight: 900;
}
.pc-steps-btn.is-current { border-color: var(--pc-red); color: var(--pc-ink); background: #FFF6F5; }
.pc-steps-btn.is-current .pc-steps-n { background: var(--pc-red); color: #FFFFFF; }
.pc-steps-btn.is-done .pc-steps-n { background: var(--pc-ink); color: #FFFFFF; }
/* 狭い画面: 番号の下に字（3 つを 1 行に入れたまま字を折らない） */
@media (max-width: 479px) {
  .pc-steps-btn { flex-direction: column; justify-content: center; gap: 3px; padding: 6px 4px; text-align: center; font-size: 0.71875rem; }
}
/* 「公開までは何度でも直せます」（入力欄の上の 1 行） */
.pc-wiz-note {
  display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 0.8125rem; font-weight: 800; color: var(--pc-ok);
}
.pc-wiz-note::before {
  content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--pc-ok);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.7 5.8-4.3 4.6a.8.8 0 0 1-1.2 0L4.3 8.4a.8.8 0 1 1 1.2-1.1l1.3 1.4 3.7-4a.8.8 0 1 1 1.2 1.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0Zm3.7 5.8-4.3 4.6a.8.8 0 0 1-1.2 0L4.3 8.4a.8.8 0 1 1 1.2-1.1l1.3 1.4 3.7-4a.8.8 0 1 1 1.2 1.1Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
/* 1 段目: スマホは「こう表示されます」が入力の上、PC は右に追従 */
.pc-wiz-look { display: flex; flex-direction: column; gap: 14px; }
.pc-wiz-look .pc-wiz-preview { order: -1; }
.pc-link-btn {
  margin-left: auto; padding: 4px 2px; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 0.8125rem; font-weight: 800; color: var(--pc-red-ink);
}
.pc-link-btn[hidden] { display: none; }
.pc-flow-wrap { margin: 12px 0 0; }
.pc-flow-wrap summary { cursor: pointer; font-size: 0.8125rem; font-weight: 900; color: var(--pc-ink2); }
.pc-flow-wrap .pc-flow { margin-top: 8px; }
.pc-flow-wrap .pc-flow-title:first-child { display: none; } /* 見出しは summary が持つ（同じ字を 2 回出さない） */
/* 段の終わりのボタンの帯（1・2 段目だけ）: 合計・戻る／次へ。3 段目は出さない（合計とお支払いは 3 段目の箱・2026-10-25 step3）。
   2026-10-25 founder「フォーム入力していて、次へが右下なので目線誘導がおかしい。右下をみない」: 前は画面の下に貼り付いた帯（sticky）の
   右端に「次へ」があり、左の列を上から書いてきた目線の先に無かった。いまはフォームの続き（左の列の一番下）に普通に置き、
   「次へ」は左から広く取る */
.pc-wiz-bar { margin: 16px 0 0; padding: 0 0 calc(12px + var(--pc-safe-bottom)); }
.pc-wiz-bar[hidden] { display: none; }
.pc-wiz-bar-in { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.pc-wiz-total { display: flex; flex-direction: row; align-items: baseline; gap: 8px; min-width: 0; line-height: 1.2; }
.pc-wiz-total-label { font-size: 0.8125rem; font-weight: 800; color: var(--pc-ink3); }
.pc-wiz-total b { font-size: 1.25rem; font-weight: 900; font-variant-numeric: tabular-nums; color: var(--pc-ink); white-space: nowrap; }
.pc-wiz-total small { font-size: 0.6875rem; font-weight: 800; color: var(--pc-ink3); }
.pc-wiz-nav { display: flex; gap: 8px; }
.pc-wiz-nav .pc-btn { min-height: 52px; padding: 0 18px; }
.pc-wiz-nav #nextBtn { flex: 1 1 auto; }
.pc-wiz-consent, .pc-wiz-save { margin: 0; font-size: 0.75rem; font-weight: 700; line-height: 1.5; color: var(--pc-ink2); text-align: left; }
.pc-wiz-save { color: var(--pc-ink3); }
.pc-wiz-save:empty { display: none; }
@media (min-width: 960px) {
  /* 1 段目: 入力の列（右の「こう表示されます」380px と間 24px を除いた幅）の下にそろえる */
  .pc-page[data-step="1"] .pc-wiz-bar { max-width: calc(100% - 404px); }
  /* 2 段目: フォームの幅（1 列）のまま */
}
@media (min-width: 960px) {
  .pc-wiz-look { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
  .pc-wiz-look .pc-wiz-preview { order: 0; position: sticky; top: 72px; }
}
/* 段の出し入れ（hidden で十分だが、JS が読めない時に 1 段目だけを見せる） */
.pc-page--apply .pc-wiz-step[hidden] { display: none !important; }

/* ---------- 「ここに表示されます」のカード（public/js/paid-challenge-preview.js）----------
   本物の部品（public/challenges.html の .ch-hero）の色・丸み・字の太さを写す。
   2026-10-25 step3: キャンペーンのページの似せた面（.pv-shelf・.pv-mats・.pv-band・.pv-about）は外した＝3 段目が本物のページの下書きを出す。
   入力のたびに描き直すので入場や鼓動の動きは付けない（跳ねる白い四角だけ本物と同じ）。 */
.pc-wiz-preview { min-width: 0; }
.pv-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; }
.pv-head-title { font-size: 0.9375rem; font-weight: 900; }
.pv-tabs { display: inline-flex; padding: 3px; border-radius: 12px; background: #ECECF0; }
.pv-tab {
  min-height: 34px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; cursor: pointer;
  font: inherit; font-size: 0.75rem; font-weight: 800; color: var(--pc-ink2); white-space: nowrap;
}
.pv-tab.is-on { background: #FFFFFF; color: var(--pc-ink); }
.pv-screen { padding: 12px; border-radius: 18px; background: #F6F6F8; border: 1px solid var(--pc-line); overflow: hidden; }
/* 灰色の棒（まだ入っていない所） */
.pv-bars { display: grid; gap: 6px; margin: 6px 0; }
.pv-bars.is-title { margin: 10px 0 8px; }
.pv-line { display: block; height: 0.7em; border-radius: 999px; background: #DCDCE2; }
.pv-bars.is-title .pv-line { height: 1.1em; }
.pv-bars.is-light .pv-line { background: rgba(255, 255, 255, 0.4); }
/* カード（.ch-hero） */
.pv-hero {
  position: relative; overflow: hidden; border-radius: 20px; padding: 14px 14px 12px;
  background: var(--pc-red); color: #FFFFFF;
}
.pv-hero::after {
  content: ""; position: absolute; right: 16px; top: 16px; width: 10px; height: 10px; border-radius: 3px;
  background: #FFFFFF; animation: pcJump 4.2s ease-in-out 0.8s infinite;
}
.pv-hero-head { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; padding-right: 26px; }
.pv-badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px; background: #FFFFFF; color: var(--pc-red-ink);
  font-size: 0.6875rem; font-weight: 900; line-height: 1.2; white-space: nowrap;
}
.pv-chip {
  display: inline-flex; max-width: 100%; padding: 3px 9px; border-radius: 999px; background: #F1F0EC; color: var(--pc-ink2);
  font-size: 0.6875rem; font-weight: 900; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pv-chip.is-prize { background: #FFE9A8; color: #6B4500; }
.pv-cd {
  display: inline-flex; padding: 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.2);
  font-size: 0.625rem; font-weight: 800; line-height: 1.2; white-space: nowrap;
}
.pv-hero-title {
  display: block; margin: 9px 0 2px; font-size: 1.25rem; font-weight: 900; line-height: 1.25; letter-spacing: -0.01em;
  overflow-wrap: anywhere; text-wrap: balance;
}
.pv-hero-tag { margin: 0; font-size: 0.75rem; font-weight: 600; line-height: 1.5; color: rgba(255, 255, 255, 0.9); overflow-wrap: anywhere; }
.pv-cta { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.pv-btn {
  display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 12px; border-radius: 10px;
  font-size: 0.75rem; font-weight: 800; white-space: nowrap;
}
.pv-btn-white { flex: 1 1 auto; background: #FFFFFF; color: var(--pc-red-ink); }
.pv-btn-ghost { flex: none; background: rgba(255, 255, 255, 0.18); color: #FFFFFF; }
/* カードの方は部品の見た目そのまま。プレビューは入力のたびに描き直すので押した動きだけ止める */
.pv-screen .dc-sbtn { cursor: default; }
/* 素材の役の 2 つのボタン: 「主役のキャラ」を 1 字ずつ折らない（4 列の狭いカードでは 2 段に積む・2026-10-25 apply-wizard で撮って見つけた） */
.pc-page--apply .pc-mat-role { flex-wrap: wrap; }
.pc-page--apply .pc-mat-role button { flex: 1 1 auto; padding: 0 6px; white-space: nowrap; }
