/* BF2026 販売者向け 参加申請フォーム（#entry 内）
   style.css のトークン（--ink, --yellow, --line など）を使用 */
.af{
  --af-err:#c81e1e; --af-err-bg:#fff5f5; --af-ok:#1d7a3e; --af-field:#8a8a82; --af-soft:#fffbe0;
  max-width:760px;margin:34px auto 0;text-align:left;background:#fff;border:1.5px solid var(--ink);border-radius:10px;box-shadow:0 8px 0 var(--ink);letter-spacing:.01em;line-height:1.7
}
.af p{max-width:none;margin:0}
.af [hidden]{display:none !important}
.af button,.af input,.af textarea,.af output{font-family:inherit}
.af a{color:inherit}

/* 見出し・ステップ */
.af-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 20px;background:var(--ink);color:#fff;padding:20px 28px;border-radius:8px 8px 0 0}
.af-title{margin:0;font-size:20px;font-weight:900;letter-spacing:.03em}
.af-steps{display:flex;gap:6px;list-style:none;margin:0;padding:0;font-size:13px;font-weight:700;color:var(--muted-dark)}
.af-steps li{display:flex;align-items:center;gap:6px;padding:4px 12px 4px 5px;border-radius:999px;border:1px solid #3a3a3a}
.af-steps li span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:50%;background:#2c2c2c;font-family:var(--display);font-size:12px;color:#fff}
.af-steps li[aria-current="step"]{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}
.af-steps li[aria-current="step"] span{background:var(--ink);color:var(--yellow)}
.af-steps li.is-past{color:#fff}

/* お知らせ帯 */
.af-demo{display:flex;flex-wrap:wrap;gap:4px 12px;align-items:baseline;margin:20px 28px 0;padding:12px 16px;border:2px dashed var(--ink);border-radius:var(--radius);background:repeating-linear-gradient(-45deg,#fff 0 10px,#fffbe0 10px 20px);font-size:13.5px}
.af-demo b{font-size:15px;font-weight:900;background:var(--ink);color:var(--yellow);padding:1px 10px;border-radius:3px}
.af-locked{display:block;margin:28px;padding:26px 24px;border-radius:var(--radius);background:var(--gray);text-align:center;outline:none}
.af-locked b{display:block;font-size:20px;font-weight:900;margin-bottom:6px}
.af-locked span{font-size:14.5px;color:#3d3d38}
.af-draft{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 14px;margin:20px 28px 0;padding:12px 16px;border-radius:var(--radius);background:#eef6ff;border:1px solid #b9d2f0;font-size:14px;font-weight:600}
.af-msg{display:block;margin:20px 28px 0;padding:14px 16px;border-radius:var(--radius);font-size:14px}
.af-msg.is-warn{background:var(--af-soft);border:1px solid var(--ink)}
.af-msg.is-error{margin:22px 0 0;background:var(--af-err-bg);border:1.5px solid var(--af-err)}
.af-msg.is-error b{display:block;color:var(--af-err);font-size:15.5px;font-weight:900}
.af-msg span{display:block}
.af-fallback{margin-top:8px;padding-top:8px;border-top:1px solid #f0caca}
.af-fallback a{font-weight:800}

/* エラーのまとめ */
.af-summary{margin:0 0 8px;padding:16px 18px;border:2px solid var(--af-err);border-radius:var(--radius);background:var(--af-err-bg);outline:none}
.af-summary:focus-visible{box-shadow:0 0 0 3px var(--focus)}
.af-summary>b{display:block;color:var(--af-err);font-weight:900;font-size:16px;margin-bottom:6px}
.af-summary ul{margin:0;padding:0 0 0 1.2em;font-size:14px}
.af-summary li{margin:4px 0}
.af-summary a{color:var(--af-err);text-decoration:none}
.af-summary a:hover b,.af-summary a:focus b{text-decoration-thickness:2px}
.af-summary a b{font-weight:800;margin-right:.5em;text-decoration:underline;text-underline-offset:2px}

/* セクション */
.af-form,.af-review,.af-done{padding:24px 28px 32px}
.af-sec+.af-sec{margin-top:34px;padding-top:28px;border-top:1.5px solid var(--line)}
.af-sec-title{display:flex;align-items:center;gap:10px;margin:0 0 14px;font-size:18px;font-weight:900;line-height:1.4;outline:none}
.af-sec-no{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:var(--yellow);border:1.5px solid var(--ink);font-family:var(--display);font-size:14px;flex-shrink:0}
.af-sec-lead{font-size:14px;color:var(--muted);margin:-4px 0 14px}

/* 入力欄 */
.af-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px}
.af-pair{display:grid;grid-template-columns:1fr 1fr;gap:18px 20px;margin-top:18px}
.af-f{min-width:0;margin:0;padding:0;border:0}
.af-card-body>.af-f,.af-card-body>.af-fs{margin-top:18px}
.af-label{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:14.5px;font-weight:800;margin-bottom:4px;padding:0;color:var(--ink)}
.af-req,.af-opt,.af-auto{display:inline-block;font-size:11px;font-weight:800;line-height:1.5;padding:0 7px;border-radius:3px;letter-spacing:.04em}
.af-req{background:var(--ink);color:#fff}
.af-opt{background:#fff;color:var(--muted);border:1px solid var(--line)}
.af-auto{background:var(--yellow);color:var(--ink)}
.af-check .af-req{margin-left:8px;vertical-align:1px}
.af-hint{font-size:12.5px;color:var(--muted);line-height:1.65;margin:0 0 6px}
.af-hint .af-linkbtn{margin-left:6px;font-size:12.5px}
.af-input{display:block;width:100%;min-width:0;font-size:16px;line-height:1.5;padding:11px 12px;border:1.5px solid var(--af-field);border-radius:var(--radius);background:#fff;color:var(--ink);transition:border-color .12s,box-shadow .12s;-webkit-appearance:none;appearance:none}
.af-input[type="date"]{min-height:48px}
.af-input:hover{border-color:var(--ink)}
.af-input:focus{outline:none;border-color:var(--ink);box-shadow:0 0 0 3px var(--focus)}
.af-input::placeholder{color:#9a9a92}
.af-input-id{font-family:var(--display);font-weight:700;letter-spacing:.06em;max-width:220px}
.af-textarea{resize:vertical;min-height:112px}
.af-money{display:flex;align-items:center;gap:8px}
.af-money .af-input{text-align:right;font-weight:800;font-size:18px;font-variant-numeric:tabular-nums}
.af-unit{font-weight:800;color:var(--muted);flex-shrink:0}
.af-f.is-err .af-input{border-color:var(--af-err);background:var(--af-err-bg)}
.af-err{display:flex;gap:6px;align-items:flex-start;margin-top:6px;font-size:13.5px;font-weight:700;color:var(--af-err);line-height:1.6}
.af-err::before{content:"!";flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;margin-top:2px;border-radius:50%;background:var(--af-err);color:#fff;font-size:12px;font-weight:900;font-family:var(--display)}
.af-err-block{margin-top:14px}
.af-live{font-size:13px;font-weight:700;margin-top:6px;color:var(--muted);line-height:1.6}
.af-live.is-ok{color:var(--af-ok)}
.af-live.is-ok::before{content:"✓ "}
.af-live.is-ng{color:#9a5b00}
.af-live:empty{display:none}

/* セグメント（ラジオ） */
.af-fs>legend{float:left;width:100%}
.af-fs>legend+*{clear:both}
.af-seg{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.af-seg label{position:relative;display:block;cursor:pointer}
.af-seg input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.af-seg span{display:flex;flex-direction:column;justify-content:center;height:100%;min-height:48px;padding:9px 12px 9px 38px;border:1.5px solid var(--af-field);border-radius:var(--radius);background:#fff;line-height:1.4;transition:background .12s,border-color .12s;position:relative}
.af-seg span::before{content:"";position:absolute;left:12px;top:50%;width:18px;height:18px;margin-top:-9px;border-radius:50%;border:1.5px solid var(--af-field);background:#fff;box-sizing:border-box}
.af-seg b{font-size:15px;font-weight:800}
.af-seg small{font-size:12px;color:var(--muted);font-weight:600;margin-top:2px}
.af-seg label:hover span{border-color:var(--ink)}
.af-seg input:checked+span{border:2px solid var(--ink);background:var(--af-soft);padding:8px 11px 8px 37px}
.af-seg input:checked+span::before{border:5.5px solid var(--ink);left:11px}
.af-seg input:focus-visible+span{box-shadow:0 0 0 3px var(--focus)}
.af-f.is-err .af-seg span{border-color:var(--af-err)}

/* チェックボックス */
.af-check{display:flex;gap:10px;align-items:flex-start;margin-top:18px;font-size:14.5px;font-weight:700;cursor:pointer;line-height:1.6}
.af-check input{width:20px;height:20px;margin:2px 0 0;flex-shrink:0;accent-color:var(--ink)}
.af-check input:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.af-hint-indent{margin:4px 0 0 30px}
.af-check-strong{margin-top:0;padding:14px 16px;border:1.5px solid var(--ink);border-radius:var(--radius);background:var(--af-soft);font-size:15px}
.af-check-strong a{font-weight:800;text-underline-offset:2px}
.af-agree .af-hint{margin:8px 0 0}
.af-agree-set{margin-bottom:18px}
.af-setnote{margin-bottom:10px;padding:12px 16px;border:1px solid var(--line);border-left:4px solid var(--yellow);border-radius:0 var(--radius) var(--radius) 0;background:#fff}
.af-setnote-title{display:block;font-size:14px;font-weight:900;margin-bottom:6px}
.af-setnote ul{margin:0;padding:0 0 0 1.2em;font-size:13.5px;line-height:1.75;color:#3d3d38}
.af-setnote li+li{margin-top:4px}
.af-agree.is-err .af-check-strong{border-color:var(--af-err);background:var(--af-err-bg)}
.af-agree.is-err .af-check-strong{border-color:var(--af-err);background:var(--af-err-bg)}

/* 商品カード */
.af-ptools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.af-pcount{font-weight:900;font-size:14px}
.af-cards{display:grid;gap:14px}
.af-card{border:1.5px solid var(--ink);border-radius:8px;background:#fff;scroll-margin-top:90px}
.af-card.is-err{border-color:var(--af-err);box-shadow:0 0 0 1px var(--af-err)}
.af-card-head{display:flex;align-items:stretch;background:var(--gray);border-radius:6px 6px 0 0;border-bottom:1.5px solid var(--ink)}
.af-card.is-closed .af-card-head{border-bottom:0;border-radius:6px}
.af-card-toggle{flex:1;min-width:0;display:grid;grid-template-columns:auto 1fr auto;grid-template-areas:"chev title flag" "chev meta meta";align-items:center;gap:0 10px;padding:12px 8px 12px 14px;background:none;border:0;text-align:left;cursor:pointer;color:var(--ink);border-radius:6px 0 0 6px}
.af-card-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:-3px}
.af-chev{grid-area:chev;width:9px;height:9px;border-right:2.5px solid var(--ink);border-bottom:2.5px solid var(--ink);transform:rotate(45deg);margin:0 4px 4px 2px;transition:transform .15s}
.af-card.is-closed .af-chev{transform:rotate(-45deg);margin:0 4px 0 0}
.af-card-title{grid-area:title;font-size:15.5px;font-weight:900;line-height:1.45;overflow-wrap:anywhere}
.af-card-title span{font-weight:800}
.af-card-meta{grid-area:meta;font-size:12.5px;color:var(--muted);font-weight:600;line-height:1.5;display:none}
.af-card.is-closed .af-card-meta{display:block}
.af-card-flag{grid-area:flag;font-size:11.5px;font-weight:900;color:#fff;background:var(--af-err);padding:1px 8px;border-radius:3px;white-space:nowrap}
.af-card-tools{display:flex;align-items:center;gap:6px;padding:8px 10px 8px 0}
.af-tool{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:6px 10px;border:1.5px solid var(--ink);border-radius:999px;background:#fff;font-size:13px;font-weight:800;color:var(--ink);cursor:pointer;white-space:nowrap}
.af-tool svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.af-tool:hover:not(:disabled){background:var(--ink);color:#fff}
.af-tool:disabled{opacity:.35;cursor:not-allowed}
.af-tool[data-act="del"]:hover:not(:disabled){background:var(--af-err);border-color:var(--af-err)}
.af-card-body{padding:18px 18px 22px}
.af-blk{margin-top:18px;padding:16px;border-radius:var(--radius);background:#fafaf6;border:1px solid var(--line)}
.af-blk>.af-pair:first-of-type{margin-top:0}
.af-blk-note{font-size:13px;line-height:1.7;padding:8px 12px;border-left:4px solid var(--yellow);background:#fff;margin-bottom:14px;border-radius:0 4px 4px 0}
.af-calc .af-calc-v{display:flex;align-items:center;min-height:0;padding:11px 14px;border:1.5px solid var(--ink);line-height:27px;border-radius:var(--radius);background:var(--ink);color:var(--yellow);font-family:var(--display);font-weight:800;font-size:22px;font-variant-numeric:tabular-nums}
.af-calc .af-hint{margin:6px 0 0}
.af-sub{margin-top:12px !important;padding:14px 16px;border-left:4px solid var(--ink);background:#fafaf6;border-radius:0 var(--radius) var(--radius) 0}
.af-sub .af-input{max-width:240px}
.af-pair .af-input[type="date"]{max-width:none}
.af-counter{text-align:right;font-size:12.5px;font-weight:700;color:var(--muted);margin-top:4px;font-variant-numeric:tabular-nums}
.af-counter.is-over{color:var(--af-err)}

.af-undo{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;margin:0 0 12px;padding:10px 14px;border-radius:var(--radius);background:var(--ink);color:#fff;font-size:13.5px;font-weight:700}
.af-undo .af-linkbtn{color:var(--yellow)}
.af-add{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;margin-top:14px;padding:14px;border:2px dashed var(--ink);border-radius:8px;background:#fff;font-size:15.5px;font-weight:900;color:var(--ink);cursor:pointer}
.af-add span{font-size:20px;line-height:1}
.af-add small{font-size:12.5px;font-weight:700;color:var(--muted)}
.af-add:hover:not(:disabled){background:var(--af-soft);border-style:solid}
.af-add:disabled{opacity:.45;cursor:not-allowed}
.af-limit{margin-top:8px;font-size:13px;color:var(--muted)}

.af-linkbtn{display:inline;padding:0;border:0;background:none;font:inherit;font-size:13.5px;font-weight:800;color:inherit;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.af-linkbtn:hover{text-decoration-thickness:2px}

/* ハニーポット（人には見えない） */
.af-hp{position:absolute !important;left:-10000px;top:auto;width:1px;height:1px;overflow:hidden}

/* 送信エリア */
.af-actions{margin-top:22px;text-align:center}
.af-actions .cta{margin-top:0;font-family:inherit;cursor:pointer}
.af-note{font-size:12.5px;color:var(--muted);margin-top:16px;line-height:1.7;text-align:left}
.af-actions-row{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:14px}
.af-actions-row .cta{min-width:min(340px,100%)}
.af-btn-sub{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 22px;border:1.5px solid var(--ink);border-radius:var(--radius);background:#fff;font-size:15px;font-weight:800;color:var(--ink);cursor:pointer}
.af-btn-sub:hover:not(:disabled){background:var(--gray)}
.af-btn-sub:disabled{opacity:.45;cursor:not-allowed}
.af .cta:disabled{opacity:.7;cursor:progress;transform:none}
.af-spin{display:none;width:18px;height:18px;border:2.5px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:af-spin .8s linear infinite}
.af-send.is-loading .af-spin{display:inline-block}
.af-send.is-loading::after{display:none}
@keyframes af-spin{to{transform:rotate(360deg)}}

/* 確認・完了 */
.af-rv{margin-top:18px;border:1.5px solid var(--ink);border-radius:8px;overflow:hidden}
.af-rv-head{display:flex;align-items:center;justify-content:space-between;gap:10px;background:var(--gray);border-bottom:1.5px solid var(--ink);padding-right:14px}
.af-rv-head .af-rv-title{border-bottom:0}
.af-rv-title{margin:0;padding:10px 14px;font-size:15.5px;font-weight:900;background:var(--gray);border-bottom:1.5px solid var(--ink)}
.af-rv-count{margin-top:22px;font-weight:700}
.af-rv-table{width:100%;border-collapse:collapse;font-size:14px;line-height:1.65}
.af-rv-table th,.af-rv-table td{padding:10px 14px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top}
.af-rv-table tr:last-child th,.af-rv-table tr:last-child td{border-bottom:0}
.af-rv-table th{width:38%;font-weight:700;color:var(--muted);background:#fcfcf9}
.af-rv-table td{overflow-wrap:anywhere}
.af-muted{color:var(--muted);font-size:.93em}
.af-pre{white-space:pre-wrap}
.af-done{text-align:center}
.af-done-mark{width:64px;height:64px;margin:4px auto 10px;border-radius:50%;background:var(--yellow);border:2px solid var(--ink);position:relative}
.af-done-mark::after{content:"";position:absolute;left:21px;top:12px;width:16px;height:28px;border-right:4px solid var(--ink);border-bottom:4px solid var(--ink);transform:rotate(45deg)}
.af-done-title{margin:0 0 10px;font-size:22px;font-weight:900;outline:none}
.af-done-demo{display:inline-block;margin-bottom:12px;font-size:13px;font-weight:800;background:var(--ink);color:var(--yellow);padding:2px 12px;border-radius:3px}
.af-appno{display:inline-flex;flex-direction:column;align-items:center;margin:4px 0 16px;padding:12px 26px;border:2px solid var(--ink);border-radius:8px;background:var(--af-soft)}
.af-appno span{font-size:12.5px;font-weight:800;color:var(--muted)}
.af-appno b{font-family:var(--display);font-size:26px;font-weight:800;letter-spacing:.04em;line-height:1.3;overflow-wrap:anywhere}
.af-done .af-sec-lead{text-align:left;margin:0 0 14px}
.af-done-table{text-align:left;border:1.5px solid var(--ink);border-radius:8px;border-collapse:separate;border-spacing:0;overflow:hidden}
.af-done-table thead th{background:var(--ink);color:#fff;width:auto;font-size:13px}
.af-done-table td{font-size:13.5px}
.af-status{display:inline-block;white-space:nowrap;font-size:12px;font-weight:800;padding:1px 8px;border-radius:3px;background:var(--yellow);border:1px solid var(--ink)}
.af-done-meta{margin-top:12px;font-size:12.5px;color:var(--muted);text-align:left}

/* 商品タイプ（最初の質問） */
.af-typeq .af-seg span{min-height:60px}
.af-typeq .af-seg b{font-size:16px}
.af-typehint{margin-top:10px;font-size:13px;color:var(--muted);padding:10px 12px;border:1.5px dashed var(--line);border-radius:var(--radius);text-align:center}
.af-typed>.af-f,.af-typed>.af-fs{margin-top:18px}
.af-card.is-new .af-seg-type input[value="new"]:checked+span,.af-card .af-seg-type input:checked+span{background:var(--af-soft)}

/* 販売者区分（API.md 7。登録済み／これから登録） */
.af-sellerq,.af-sellertype{margin-bottom:22px}
.af-seg-seller span{min-height:72px}
.af-seg-seller b{font-size:16px}
.af-seg input:disabled+span{opacity:.5;cursor:not-allowed;background:#f3f3ef}
.af-seg label:has(input:disabled){cursor:not-allowed}
.af-seg label:hover input:disabled+span{border-color:var(--af-field)}
.af-typelock{margin-top:8px;font-size:13px;font-weight:700;line-height:1.6;padding:7px 12px;border-left:4px solid var(--yellow);background:#fff;border-radius:0 4px 4px 0}
.af-typelock[hidden]{display:none}
.af-newinfo{margin-top:12px;padding:14px 16px;border:1.5px solid var(--ink);border-radius:var(--radius);background:#fffbe6}
.af-newinfo[hidden]{display:none}
.af-newinfo-title{display:block;font-size:14.5px;font-weight:900;margin-bottom:8px}
.af-newinfo p{margin:10px 0 0;font-size:13px;line-height:1.7;color:#3d3d38}
.af-newinfo p b{font-weight:800;color:var(--ink)}
.af-flow{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;margin:0;padding:0;list-style:none;font-size:13px;font-weight:800}
.af-flow li{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;background:#fff;border:1.5px solid var(--ink);border-radius:999px;line-height:1.4}
.af-flow li+li{margin-left:22px;position:relative}
.af-flow li+li::before{content:"";position:absolute;left:-17px;top:50%;width:8px;height:8px;margin-top:-4px;border-top:2px solid var(--ink);border-right:2px solid var(--ink);transform:rotate(45deg)}
.af-flow span{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;border-radius:50%;background:var(--yellow);font-family:var(--display);font-size:11px;flex-shrink:0}
.af-sellerq>.af-live{margin-top:10px}
.af-lk-sync{margin:12px 0 0 !important;font-size:13px;line-height:1.7;padding:8px 12px;border-left:4px solid var(--yellow);background:#fff;border-radius:0 4px 4px 0}
.af-done-new{margin-top:12px;font-size:13px;line-height:1.7;text-align:left;padding:10px 14px;border:1.5px solid var(--ink);border-radius:var(--radius);background:#fffbe6}
.af-rv-new{display:inline-block;font-size:12px;font-weight:800;padding:1px 8px;border-radius:3px;background:var(--yellow);border:1px solid var(--ink);margin-right:6px}

/* 登録情報から自動入力（API.md 6-3） */
.af-lk{margin-top:10px}
.af-lkbtn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 16px 8px 12px;border:1.5px solid var(--ink);border-radius:var(--radius);background:var(--af-soft);font:inherit;font-size:14.5px;font-weight:800;color:var(--ink);cursor:pointer;text-align:left;line-height:1.4}
.af-lkbtn:hover:not([aria-disabled="true"]){background:var(--yellow)}
.af-lkbtn:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus)}
.af-lkbtn[aria-disabled="true"]{cursor:progress;opacity:.8}
.af-lkbtn-ic{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:50%;background:var(--ink);flex-shrink:0}
.af-lkbtn-ic svg{width:14px;height:14px;fill:none;stroke:var(--yellow);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.af-lkbtn-spin{display:none;width:20px;height:20px;margin:2px;border:2.5px solid rgba(17,17,17,.2);border-top-color:var(--ink);border-radius:50%;animation:af-spin .8s linear infinite;flex-shrink:0}
.af-lkbtn.is-loading .af-lkbtn-ic{display:none}
.af-lkbtn.is-loading .af-lkbtn-spin{display:inline-block}
.af-lk-hint{margin:6px 0 0}
.af-lookup{font-size:13px;margin-top:8px;color:var(--muted);line-height:1.6}
.af-lookup:empty{display:none}
.af-lookup.is-busy{margin:0}
.af-lookup.is-warn{display:flex;gap:6px;align-items:flex-start;font-weight:700;color:#8a4b00;background:#fff6e5;border-left:3px solid #e0a030;padding:6px 10px;border-radius:0 4px 4px 0}
.af-chip{display:inline-flex;align-items:center;gap:6px;max-width:100%;padding:3px 10px 3px 8px;border-radius:999px;background:#eaf6ee;border:1px solid #a8d5b6;color:#14532d;font-size:12.5px;font-weight:700;line-height:1.5}
.af-chip b{font-weight:800;overflow-wrap:anywhere}
.af-chip svg{width:14px;height:14px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.af-pending{display:flex;gap:8px;align-items:flex-start;margin-top:8px;padding:8px 12px;border:1.5px solid #e0a030;border-radius:var(--radius);background:#fff6e5;color:#6b3a00;font-size:13.5px;font-weight:800;line-height:1.6}
.af-pending[hidden]{display:none}
.af-pending svg{width:18px;height:18px;margin-top:2px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.af-pending small{display:block;font-size:12.5px;font-weight:600}
.af-rv-pending{display:inline-block;font-size:12px;font-weight:800;padding:0 8px;border-radius:3px;background:#fff6e5;border:1px solid #e0a030;color:#6b3a00}
.af-demo-lk{flex-basis:100%}
.af-demo code{font-family:var(--display);font-weight:800;background:#fff;border:1px solid var(--ink);border-radius:3px;padding:0 5px;overflow-wrap:anywhere}

/* 自動入力の結果モーダル */
.af-dialog-s{width:min(540px,calc(100vw - 32px))}
.af-dialog-s.is-ng .af-dialog-head{background:#3a2a10}
.af-lk-res{display:flex;gap:12px;align-items:flex-start}
.af-lk-res p{margin:0 !important;font-weight:700}
.af-lk-ic{position:relative;width:32px;height:32px;border-radius:50%;flex-shrink:0;border:2px solid var(--ink);background:#eaf6ee}
.af-lk-res.is-ok .af-lk-ic::after{content:"";position:absolute;left:9px;top:4px;width:7px;height:14px;border-right:3px solid var(--ink);border-bottom:3px solid var(--ink);transform:rotate(45deg)}
.af-lk-res.is-ng .af-lk-ic{background:#fff6e5}
.af-lk-res.is-ng .af-lk-ic::after{content:"!";position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-family:var(--display);font-weight:900;font-size:17px}
.af-lk-prod{margin-top:14px;padding:10px 14px;border:1.5px solid var(--ink);border-radius:var(--radius);background:#fafaf6;line-height:1.5}
.af-lk-prod small{display:block;font-size:12px;font-weight:700;color:var(--muted);font-family:var(--display);letter-spacing:.03em}
.af-lk-prod b{font-size:15.5px;font-weight:900;overflow-wrap:anywhere}
.af-lk-dl{margin:10px 0 0}
.af-lk-dl div{display:flex;justify-content:space-between;gap:12px;padding:7px 2px;border-bottom:1px solid var(--line)}
.af-lk-dl dt{font-weight:700;color:var(--muted)}
.af-lk-dl dd{margin:0;font-weight:800;font-variant-numeric:tabular-nums;text-align:right}
.af-pending-dlg{margin-top:14px}
.af-lk-check{list-style:none;margin:12px 0 0;padding:0;counter-reset:lk}
.af-lk-check li{position:relative;padding:8px 0 8px 32px;border-bottom:1px solid var(--line);counter-increment:lk;line-height:1.6}
.af-lk-check li::before{content:counter(lk);position:absolute;left:0;top:9px;width:22px;height:22px;border-radius:50%;background:var(--yellow);border:1.5px solid var(--ink);display:flex;align-items:center;justify-content:center;font-family:var(--display);font-size:12px;font-weight:800;box-sizing:border-box}
.af-lk-check b{display:block;font-weight:900}
.af-lk-note{margin:14px 0 0 !important;font-size:13px;color:#3d3d38;padding:8px 12px;background:#fafaf6;border-radius:var(--radius)}
.af-btn-main{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding:10px 22px;border:1.5px solid var(--ink);border-radius:var(--radius);background:var(--ink);font:inherit;font-size:15px;font-weight:800;color:#fff;cursor:pointer}
.af-btn-main:hover{background:#333}
.af-btn-main:focus-visible,.af-dialog-foot .af-btn-sub:focus-visible{outline:none;box-shadow:0 0 0 3px var(--focus)}
.af-dialog-s .af-dialog-foot{justify-content:flex-end}
.af-dialog-s .af-dialog-foot>span:empty{display:none}
.af-mdiff{margin-top:6px;font-size:12.5px;font-weight:700;color:#8a4b00;background:#fff6e5;border-left:3px solid #e0a030;padding:4px 10px;border-radius:0 4px 4px 0;line-height:1.6}
.af-seg-bill{max-width:420px}

/* 販売ページ（新商品） */
.af-blk-page>.af-f+.af-f{margin-top:16px}
.af-seg-4 span{min-height:56px}
.af-pagenote{margin-top:14px;font-size:12.5px;line-height:1.7;padding:8px 12px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);color:#3d3d38}
.af-pagenote b{font-weight:800;color:var(--ink);background:var(--yellow);padding:0 4px;border-radius:2px}

/* サムネイル */
.af-drop{position:relative;border:2px dashed var(--af-field);border-radius:8px;background:#fafaf6;transition:border-color .12s,background .12s}
.af-drop.has-img{border-style:solid;border-color:var(--line);background:#fff}
.af-drop.is-over{border-color:var(--ink);border-style:solid;background:var(--af-soft)}
.af-drop:focus-within{box-shadow:0 0 0 3px var(--focus);border-color:var(--ink)}
.af-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip:rect(0 0 0 0)}
.af-drop-in{display:flex;align-items:center;justify-content:center;gap:12px;min-height:96px;padding:16px;cursor:pointer;text-align:left}
.af-drop-in svg{width:34px;height:34px;flex-shrink:0;fill:none;stroke:var(--ink);stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.af-drop-in span{display:flex;flex-direction:column;line-height:1.5}
.af-drop-in b{font-size:15px;font-weight:900;text-decoration:underline;text-underline-offset:3px}
.af-drop-in small{font-size:12.5px;color:var(--muted);font-weight:600}
.af-drop-in:hover b{text-decoration-thickness:2px}
.af-thumb{display:flex;gap:14px;align-items:center;padding:10px}
.af-thumb img{width:200px;max-width:45%;aspect-ratio:1200/630;object-fit:cover;border-radius:4px;border:1px solid var(--line);background:#fff;flex-shrink:0}
.af-thumb-meta{display:flex;flex-direction:column;gap:2px;min-width:0;font-size:13px;line-height:1.5}
.af-thumb-meta b{font-weight:800;overflow-wrap:anywhere}
.af-thumb-meta>span:not(.af-thumb-acts){color:var(--muted);font-size:12.5px}
.af-thumb-acts{display:flex;flex-wrap:wrap;gap:4px 16px;margin-top:6px}
.af-thumb-acts .af-linkbtn{font-size:13px;cursor:pointer}
.af-linkbtn-del{color:var(--af-err)}
.af-thumb-busy{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,255,255,.88);font-size:13px;font-weight:800;border-radius:6px}
.af-f.is-err .af-drop{border-color:var(--af-err)}
.af-thumbf .af-live{color:#8a4b00}

/* ひとこと */
.af-textarea-s{min-height:72px}
.af-hint b{font-weight:800;color:var(--ink)}

/* 確認画面 */
.af-rv-title small{display:block;font-size:12.5px;font-weight:700;color:var(--muted)}
.af-rv-thumb{display:flex;flex-direction:column;gap:4px;align-items:flex-start}
.af-rv-thumb img{width:240px;max-width:100%;aspect-ratio:1200/630;object-fit:cover;border:1px solid var(--line);border-radius:4px}
.af-url{overflow-wrap:anywhere;word-break:break-all}

/* 参加条件ボタン（ENTRY） */
.ending .af-cond-cta{margin:-4px auto 0}
.af-cond-btn{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:8px 18px;border:1.5px solid var(--ink);border-radius:999px;background:#fff;font:inherit;font-size:14.5px;font-weight:800;color:var(--ink);cursor:pointer}
.af-cond-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.af-cond-btn:hover{background:var(--ink);color:#fff}
.af-cond-btn:focus-visible{outline:3px solid var(--focus);outline-offset:2px}

/* 参加条件のモーダル */
html.af-modal-open{overflow:hidden}
.af-dialog{padding:0;border:0;background:transparent;width:min(720px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;color:var(--ink);text-align:left;overflow:visible}
.af-dialog::backdrop{background:rgba(17,17,17,.62)}
.af-dialog.is-fallback{position:fixed;inset:0;z-index:1000;box-shadow:0 0 0 100vmax rgba(17,17,17,.62)}
.af-dialog-panel{display:flex;flex-direction:column;max-height:calc(100dvh - 48px);background:#fff;border:2px solid var(--ink);border-radius:10px;box-shadow:0 8px 0 var(--ink);overflow:hidden}
.af-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 14px 14px 22px;background:var(--ink);color:#fff;flex-shrink:0}
.af-dialog-title{margin:0;font-size:18px;font-weight:900;outline:none}
.af-dialog-x{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;border:1.5px solid #555;background:transparent;color:#fff;cursor:pointer;flex-shrink:0}
.af-dialog-x svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round}
.af-dialog-x:hover{background:#fff;color:var(--ink)}
.af-dialog-x:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.af-dialog-body{overflow-y:auto;overscroll-behavior:contain;padding:18px 22px 22px;font-size:14px;line-height:1.75;-webkit-overflow-scrolling:touch}
.af-dialog-body h5{margin:18px 0 8px;font-size:15px;font-weight:900}
.af-dialog-body h5:first-child{margin-top:0}
.af-dialog-body p{margin:6px 0 0;max-width:none}
.af-cond-list{list-style:none;margin:0;padding:0}
.af-cond-list li{position:relative;padding:7px 0 7px 30px;border-bottom:1px solid var(--line);font-weight:700}
.af-cond-list li::before{content:"";position:absolute;left:0;top:9px;width:20px;height:20px;border-radius:50%;background:var(--yellow);border:1.5px solid var(--ink);box-sizing:border-box}
.af-cond-list li::after{content:"";position:absolute;left:7px;top:13px;width:5px;height:9px;border-right:2px solid var(--ink);border-bottom:2px solid var(--ink);transform:rotate(45deg)}
.af-cond-list .li-note{display:block;font-size:12.5px;font-weight:600;color:var(--muted)}
.af-cond-2{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.af-cond-box{padding:12px 14px;border:1.5px solid var(--ink);border-radius:var(--radius);background:#fafaf6}
.af-cond-box>b{display:block;font-size:15px;font-weight:900;margin-top:6px;line-height:1.5}
.af-cond-box p{font-size:13px}
.af-cond-tag{display:inline-block;font-size:11.5px;font-weight:900;padding:1px 9px;border-radius:3px;background:var(--ink);color:#fff}
.af-cond-tag.is-y{background:var(--yellow);color:var(--ink);border:1px solid var(--ink)}
.af-cond-dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:0}
.af-cond-dl dt,.af-cond-dl dd{margin:0;padding:8px 0;border-bottom:1px solid var(--line)}
.af-cond-dl dt{font-weight:800;padding-right:16px;white-space:nowrap}
.af-dialog-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 16px;padding:12px 22px;border-top:1.5px solid var(--line);background:#fcfcf9;flex-shrink:0}
.af-dialog-foot .af-btn-sub{min-width:120px}

/* スマホ下部の固定ボタンは、フォームを表示している間は隠す */
body.af-entry-visible .fixed-cta{display:none}

@media (max-width:760px){
  .af-seg-seller{grid-template-columns:1fr}
  .af-seg-seller span{min-height:60px}
  .af-flow{flex-direction:column;align-items:flex-start;gap:0}
  .af-flow li+li{margin:14px 0 0}
  .af-flow li+li::before{left:16px;top:-12px;margin:0;transform:rotate(135deg)}
  .af{margin-top:28px;border-radius:8px;box-shadow:0 6px 0 var(--ink)}
  .af-top{padding:16px 16px;border-radius:6px 6px 0 0}
  .af-title{font-size:18px}
  .af-steps{width:100%;font-size:12px;gap:4px}
  .af-steps li{flex:1;justify-content:center;padding:3px 6px 3px 3px;gap:4px;white-space:nowrap}
  .af-steps li span{width:19px;height:19px;font-size:11px}
  .af-demo,.af-draft{margin:16px 16px 0}
  .af-locked{margin:16px}
  .af-form,.af-review,.af-done{padding:20px 16px 26px}
  .af-grid,.af-pair{grid-template-columns:1fr;gap:16px}
  .af-grid,.af-pair{row-gap:0}
  .af-card-body{padding:14px 12px 18px}
  .af-blk{padding:12px}
  .af-card-toggle{padding:10px 4px 10px 12px;gap:0 8px}
  .af-card-tools{padding:6px 8px 6px 0;gap:4px}
  .af-tool{padding:6px 8px;min-width:36px;justify-content:center}
  .af-tool span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  .af-input-id{max-width:none}
  .af-sub .af-input{max-width:none}
  .af-actions .cta{width:100%}
  .af-btn-sub{width:100%}
  .af-rv-table th,.af-rv-table td{padding:9px 10px}
  .af-rv-table th{width:40%}
  .af-done-table th:nth-child(2),.af-done-table td:nth-child(2){display:none}
  .af-appno b{font-size:21px}
  .af-seg-4{grid-template-columns:1fr}
  .af-seg-bill{max-width:none}
  .af-thumb{flex-direction:column;align-items:stretch}
  .af-thumb img{width:100%;max-width:none}
  .af-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .af-dialog-panel{max-height:calc(100dvh - 16px);box-shadow:none}
  .af-dialog-head{padding:10px 10px 10px 16px}
  .af-dialog-title{font-size:16.5px}
  .af-dialog-body{padding:14px 16px 18px}
  .af-cond-2{grid-template-columns:1fr}
  .af-cond-dl{grid-template-columns:1fr}
  .af-cond-dl dt{border-bottom:0;padding-bottom:0;white-space:normal}
  .af-dialog-foot{padding:10px 16px}
  .af-dialog-foot .af-btn-sub,.af-dialog-foot .af-btn-main{width:auto;flex:1}
  .af-dialog-s .af-dialog-foot{flex-direction:column-reverse;align-items:stretch}
  .af-lkbtn{width:100%}
}
/* 2列の欄をそろえる：ラベル／説明／入力欄／入力欄の後ろ（下限・エラーなど）を行ごとに合わせる */
.af-after:empty{display:none}
@supports (grid-template-rows:subgrid){
  .af-grid,.af-pair{row-gap:0}
  .af-grid>.af-f,.af-pair>.af-f{display:grid;grid-row:span 4;grid-template-rows:subgrid;row-gap:0;align-content:start;padding-bottom:18px}
  .af-pair{margin-bottom:-18px}
  .af-grid{margin-bottom:-18px}
  .af-grid>.af-f>.af-label,.af-pair>.af-f>.af-label{grid-row:1;align-self:end}
  .af-grid>.af-f>.af-hint,.af-pair>.af-f>.af-hint{grid-row:2;align-self:start}
  .af-grid>.af-f>.af-input,.af-pair>.af-f>.af-input,.af-pair>.af-f>.af-money,.af-pair>.af-f>.af-calc-v{grid-row:3;align-self:stretch}
  .af-grid>.af-f>.af-after,.af-pair>.af-f>.af-after{grid-row:4;display:block}
  .af-money{align-items:stretch}
  .af-unit{display:flex;align-items:center}
}
@supports not (grid-template-rows:subgrid){
  .af-pair>.af-f>.af-hint,.af-grid>.af-f>.af-hint{min-height:3.3em}
}

/* 商品ID：「まずここから」 */
.af-start{display:inline-flex;align-items:center;gap:4px;font-size:11.5px;font-weight:900;line-height:1.5;padding:1px 9px;border-radius:999px;background:var(--yellow);color:var(--ink);border:1.5px solid var(--ink);animation:af-start-pulse 1.6s ease-in-out 3}
.af-start::before{content:"";width:0;height:0;border-left:5px solid currentColor;border-top:4px solid transparent;border-bottom:4px solid transparent}
.af-f.is-start{border-radius:2px;background:#fffbe6;box-shadow:0 0 0 8px #fffbe6,0 0 0 10px var(--ink),5px 5px 0 10px var(--yellow)}
.af-f.is-start .af-input-id{border-color:var(--ink)}
@keyframes af-start-pulse{50%{transform:scale(1.08)}}
@media (prefers-reduced-motion:reduce){.af-start{animation:none}}
@media (max-width:760px){.af-f.is-start{box-shadow:0 0 0 6px #fffbe6,0 0 0 8px var(--ink),4px 4px 0 8px var(--yellow)}}

/* 期間中の報酬の自動計算 */
.af-rwnote{margin-top:6px;font-size:12.5px;line-height:1.65;color:#3d3d38;background:#fffbe6;border-left:3px solid var(--yellow);padding:5px 10px;border-radius:0 4px 4px 0}
.af-rwreset{display:inline-block;margin-top:6px;font-size:12.5px}
.af-gap{margin-top:14px;padding:12px 14px;border:1.5px solid var(--af-err);border-radius:var(--radius);background:#fff;font-size:13px;line-height:1.7}
.af-gap-title{display:block;color:var(--af-err);font-weight:900;font-size:14px;margin-bottom:4px}
.af-gap p{margin:0}
.af-gap-num{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 8px;margin:8px 0 !important;padding:8px 12px;background:#fafaf6;border-radius:4px;font-weight:700}
.af-gap-num b{font-size:15px;font-variant-numeric:tabular-nums}
.af-gap-arrow{color:var(--muted)}
.af-gap-diff b{color:var(--af-err);font-size:16px}
.af-gap-sub{font-size:12.5px;color:#3d3d38}

/* 掲載イメージ */
.af-pv{margin-top:20px;border-top:1.5px dashed var(--line);padding-top:14px}
.af-pv-toggle{display:inline-flex;align-items:center;gap:8px;font:inherit;font-size:14px;font-weight:800;color:var(--ink);background:#fff;border:1.5px solid var(--ink);border-radius:999px;padding:7px 14px;cursor:pointer}
.af-pv-toggle svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6}
.af-pv-toggle:hover{background:var(--af-soft)}
.af-pv-toggle:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.af-pv-toggle .af-chev{margin-left:2px}
.af-pv-toggle[aria-expanded="true"] .af-chev{transform:rotate(225deg);margin-bottom:-3px}
.af-pv-body{margin-top:12px}
.af-pv-tabs{display:flex;gap:0;border-bottom:1.5px solid var(--ink)}
.af-pv-tabs button{font:inherit;font-size:13.5px;font-weight:800;padding:8px 14px;background:#f3f3ef;color:var(--muted);border:1.5px solid var(--line);border-bottom:0;border-radius:6px 6px 0 0;margin-right:4px;cursor:pointer}
.af-pv-tabs button[aria-selected="true"]{background:var(--ink);color:#fff;border-color:var(--ink)}
.af-pv-tabs button:focus-visible{outline:3px solid var(--focus);outline-offset:2px}
.af-pv-panel{border:1.5px solid var(--ink);border-top:0;border-radius:0 0 var(--radius) var(--radius);background:#f6f6f1;overflow:hidden}
.af-pv-frame{display:block;width:100%;height:240px;border:0;background:#f6f6f1}
.af-pv-msg{margin:0;padding:10px 12px;font-size:13px;font-weight:700;color:#6b3a00;background:#fff6e5;border-top:1px solid var(--line)}
.af-pv-noimg{margin:0;padding:8px 12px;font-size:12.5px;line-height:1.65;color:#3d3d38;background:#fffbe6;border-top:1px solid var(--line)}
.af-pv-cap{margin:0;padding:6px 12px 8px;font-size:11.5px;color:var(--muted);background:#fff;border-top:1px solid var(--line)}

/* ===== 確認画面（confirm.html） ===== */
.cf-sec{padding:40px 16px 64px}
.cf-sec .af{margin-top:0}
.cf-loading{margin:0;padding:28px;text-align:center;font-weight:700;color:var(--muted)}
.cf-empty{padding:28px;text-align:center;outline:none}
.cf-empty b{display:block;font-size:18px;font-weight:900;margin-bottom:8px}
.cf-empty p{font-size:14px;line-height:1.75;text-align:left;margin:0 auto 18px !important;max-width:560px !important}
.cf-empty .cta{margin-top:0}
.cf-review{padding:18px 24px 0;line-height:1.5}
.cf-h{margin:0;font-size:18px;font-weight:900;outline:none}
.cf-lead{font-size:13px;color:var(--muted);margin:2px 0 12px !important}
.cf-block{border:1.5px solid var(--ink);border-radius:8px;overflow:hidden}
.cf-block+.cf-block{margin-top:14px}
.cf-block-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 12px;background:var(--gray);border-bottom:1.5px solid var(--ink)}
.cf-block-head h3{margin:0;font-size:14.5px;font-weight:900}
.cf-count{margin-left:8px;font-size:13px;font-weight:800;color:var(--muted)}
.cf-dl{display:grid;grid-template-columns:1fr 1fr;margin:0;font-size:13px}
.cf-dl>div{display:grid;grid-template-columns:7.5em minmax(0,1fr);gap:8px;padding:6px 12px;border-bottom:1px solid var(--line)}
.cf-dl>div:nth-child(odd){border-right:1px solid var(--line)}
.cf-dl>div:nth-last-child(-n+2){border-bottom:0}
.cf-dl dt{color:var(--muted);font-weight:700}
.cf-dl dd{margin:0;font-weight:700;overflow-wrap:anywhere}
.cf-muted{color:var(--muted);font-weight:500}
.cf-break{word-break:break-all}
.cf-chip{display:inline-block;font-size:11px;font-weight:800;line-height:1.5;padding:0 6px;border-radius:3px;border:1px solid var(--line);background:#fff;white-space:nowrap;margin-right:4px}
.cf-chip.is-ex{background:var(--ink);color:#fff;border-color:var(--ink)}
.cf-chip.is-new{background:var(--yellow);border-color:var(--ink)}
.cf-chip.is-warn{background:#fff6e5;border-color:#e0a030;color:#6b3a00}
.cf-list{list-style:none;margin:0;padding:0;counter-reset:none}
.cf-item{display:grid;grid-template-columns:52px minmax(0,1fr) 148px 132px;grid-template-areas:"thumb main price reward" "thumb cmts cmts cmts";column-gap:12px;padding:8px 12px;border-top:1px solid var(--line);font-size:13px}
.cf-item:first-child{border-top:0}
.cf-item:nth-child(even){background:#fcfcf9}
.cf-thumb{grid-area:thumb;width:52px;height:52px;border-radius:4px;overflow:hidden;border:1px solid var(--line);background:var(--gray);display:flex;align-items:center;justify-content:center}
.cf-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cf-noimg{font-size:10px;line-height:1.25;color:var(--muted);text-align:center;font-weight:700}
.cf-main{grid-area:main;min-width:0}
.cf-line1{display:flex;align-items:center;flex-wrap:wrap;gap:2px 0}
.cf-no{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 4px;margin-right:6px;border-radius:10px;background:var(--ink);color:#fff;font-family:var(--display);font-size:11px;font-weight:800}
.cf-edit{margin-left:auto;font-size:12px}
.cf-name{display:flex;gap:6px;align-items:baseline;min-width:0;margin:2px 0 0 !important;font-weight:800}
.cf-id{flex-shrink:0;font-variant-numeric:tabular-nums}
.cf-pname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;color:#3d3d38}
.cf-sub{margin:1px 0 0 !important;font-size:11.5px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cf-sep{margin:0 3px;color:#c4c4bb}
.cf-num{display:flex;flex-direction:column;justify-content:center;min-width:0}
.cf-price{grid-area:price}
.cf-reward{grid-area:reward}
.cf-k{font-size:11px;color:var(--muted);font-weight:700}
.cf-v{font-variant-numeric:tabular-nums;white-space:nowrap;font-weight:700}
.cf-v b{font-size:14.5px;font-weight:900}
.cf-s{font-size:11px;color:var(--muted)}
.cf-cmts{grid-area:cmts;margin-top:4px;display:grid;gap:2px}
.cf-cmt{display:flex;align-items:baseline;gap:6px;min-width:0;font-size:12px}
.cf-cmt-k{flex-shrink:0;font-size:11px;font-weight:800;color:var(--muted)}
.cf-cmt-t{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#3d3d38}
.cf-cmt.is-open .cf-cmt-t{white-space:pre-wrap;overflow:visible}
.cf-cmt-more{flex-shrink:0;font-size:12px}
.cf-bar{position:sticky;bottom:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:10px 16px;margin:16px -24px 0;padding:10px 24px;background:#fff;border-top:2px solid var(--ink);box-shadow:0 -8px 18px rgba(17,17,17,.08);border-radius:0 0 8px 8px}
.cf-bar-sum{display:flex;flex-direction:column;min-width:0;font-size:12.5px;line-height:1.45}
.cf-sum-n{font-size:14px;font-weight:800}
.cf-sum-n b{font-family:var(--display);font-size:20px}
.cf-sum-d{color:var(--muted);font-weight:700}
.cf-sum-w{color:#8a4b00;font-weight:800}
.cf-bar-btns{display:flex;gap:10px;flex-shrink:0}
.cf-bar .cta{margin:0;min-height:48px;padding:10px 22px;font-family:inherit;font-size:15px;cursor:pointer;box-shadow:none}
.cf-review .af-msg.is-error{margin-top:14px}
.cf-page .af-done-table{width:100%}
@media (max-width:760px){
  .cf-sec{padding:20px 0 40px}
  .cf-sec .af{border-left:0;border-right:0;border-radius:0;box-shadow:none}
  .cf-sec .af-top{border-radius:0}
  .cf-review{padding:14px 12px 0}
  .cf-dl{grid-template-columns:1fr}
  .cf-dl>div{border-right:0 !important;border-bottom:1px solid var(--line) !important;grid-template-columns:6.5em minmax(0,1fr);padding:5px 10px}
  .cf-dl>div:last-child{border-bottom:0 !important}
  .cf-item{grid-template-columns:44px minmax(0,1fr) minmax(0,1fr);grid-template-areas:"thumb main main" "thumb price reward" "cmts cmts cmts";column-gap:10px;row-gap:4px;padding:8px 10px}
  .cf-thumb{width:44px;height:44px}
  .cf-v b{font-size:14px}
  .cf-bar{margin:12px -12px 0;padding:8px 12px calc(8px + env(safe-area-inset-bottom));border-radius:0;flex-wrap:wrap}
  .cf-bar-sum{flex:1 1 100%;flex-direction:row;flex-wrap:wrap;gap:0 10px;align-items:baseline}
  .cf-bar-btns{flex:1 1 100%}
  .cf-bar-btns .af-btn-sub{flex:0 0 auto;padding:8px 14px;min-height:44px}
  .cf-bar .cta{flex:1;min-height:44px;padding:8px 12px;font-size:14.5px}
}
@media print{.cf-bar,.site-header,.site-footer{display:none !important}}

@media (max-width:380px){
  .af-seg b{font-size:14px}
  .af-seg span{padding-left:34px}
  .af-seg input:checked+span{padding-left:33px}
  .af-seg span::before{left:10px}
  .af-seg input:checked+span::before{left:9px}
}
@media (prefers-reduced-motion:reduce){.af-chev,.af-input,.af-drop{transition:none}.af-spin,.af-lkbtn-spin{animation-duration:2s}}

/* 控えを印刷 */
@media print{
  body{padding:0 !important}
  .site-header,.site-footer,.fixed-cta,.fv,main>section:not(#entry){display:none !important}
  #entry{background:#fff !important;padding:0 !important}
  #entry::before,#entry>:not(.af){display:none !important}
  .af{box-shadow:none;border:0;max-width:none;margin:0}
  .af-top .af-steps,.af-demo,.af-done .af-actions,.af-dialog{display:none !important}
  .af-rv-thumb img{width:160px}
  .af-top{background:#fff;color:#000;border-bottom:2px solid #000;padding:0 0 8px}
  .af-done-table td:nth-child(2),.af-done-table th:nth-child(2){display:table-cell !important}
  .af-done-table thead th{background:#eee;color:#000}
}
@media (max-width:760px){
  .af-pv-tabs button{flex:1 1 0;min-width:0;white-space:nowrap;padding:8px 4px;font-size:12px;letter-spacing:0;text-align:center;margin-right:3px}
  .af-pv-tabs button:last-child{margin-right:0}
}
.cf-bar .cta{min-width:0;width:auto}
.cf-sec .cf-h{font-size:18px;line-height:1.4;margin:0;letter-spacing:.02em}
.cf-sec .cf-block-head h3{font-size:14.5px;line-height:1.4;margin:0}
.cf-sec .af-title{font-size:20px;line-height:1.4}
.cf-sec .af-done-title{font-size:22px;line-height:1.4}
/* 下部の送信バーを sticky にするため、.ending の overflow:hidden（スクロール領域になる）を clip にする */
.cf-sec.ending{overflow:visible;overflow:clip}
.cf-bar-btns .af-btn-sub{width:auto}

/* ===== 申請後の修正（?edit=） ===== */
.af-edit{margin:20px 28px 0;padding:14px 16px;border:2px solid var(--ink);border-radius:var(--radius);background:#eef4ff;line-height:1.6}
.af-edit-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px}
.af-edit-title{font-size:17px;font-weight:900}
.af-edit-deadline{font-size:13px;font-weight:800;color:#1a4fa0}
.af-edit-lead{margin:6px 0 0 !important;font-size:13px;color:#3d3d38}
.af-edit-rules{margin:8px 0 0;padding:8px 12px 8px 28px;background:#fff;border-radius:4px;font-size:13px}
.af-edit-rules li+li{margin-top:3px}
.af-edit-login{margin-top:12px;padding:12px;background:#fff;border:1px solid var(--line);border-radius:4px}
.af-edit-login-lead{font-size:13px;margin:0 0 8px !important}
.af-edit-login-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px 14px;margin-bottom:10px}
.af-edit-demo{font-size:12.5px;margin:0 0 8px !important;color:var(--muted)}
.af-edit-msg{margin-top:10px;padding:8px 12px;border-radius:4px;font-size:13.5px;font-weight:700;background:#fff}
.af-edit-msg.is-ng{color:var(--af-err);border:1.5px solid var(--af-err);background:var(--af-err-bg)}
.af-edit-msg.is-ro{border:1.5px solid var(--ink);background:var(--af-soft)}
.af-edit-msg.is-info{color:var(--muted)}
.af-edit-back{display:inline-block;margin-top:10px;font-size:13px}
.af-input.is-readonly{background:#f3f3ef;color:#55554f;border-style:dashed}
.af-minrw{margin-top:6px;font-size:12.5px;font-weight:700;color:#1a4fa0;background:#eef4ff;border-left:3px solid #1a4fa0;padding:4px 10px;border-radius:0 4px 4px 0}
.af-locknote{margin-bottom:10px;padding:8px 12px;font-size:13px;font-weight:700;background:#f3f3ef;border:1px dashed var(--af-field);border-radius:4px}
.af-card.is-locked .af-card-body{opacity:.75}
.af-editnote{margin:16px 0 0;padding:10px 14px;border:1.5px solid #1a4fa0;border-radius:var(--radius);background:#eef4ff;font-size:13px;line-height:1.7}
.af-editnote ul{margin:4px 0 0;padding-left:1.2em}
@media (max-width:760px){
  .af-edit{margin:16px 16px 0;padding:12px}
  .af-edit-login-grid{grid-template-columns:1fr}
}
/* 確認画面：修正の差分 */
.cf-kind{display:inline-block;font-size:11px;font-weight:800;line-height:1.5;padding:0 7px;border-radius:3px;border:1px solid var(--ink);margin-right:4px;white-space:nowrap}
.cf-kind.is-review{background:var(--ink);color:#fff}
.cf-kind.is-comment{background:#e6f4ea;border-color:#1d7a3e;color:#155c2e}
.cf-kind.is-none,.cf-kind.is-locked{background:#f3f3ef;border-color:var(--line);color:var(--muted)}
.cf-kind.is-add{background:var(--yellow)}
.cf-kind.is-withdraw{background:var(--af-err-bg);border-color:var(--af-err);color:var(--af-err)}
.cf-ed{padding:8px 12px;border-top:1px solid var(--line);font-size:13px}
.cf-ed:first-child{border-top:0}
.cf-ed.is-none,.cf-ed.is-locked{color:var(--muted)}
.cf-ed-head{display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
.cf-ed-label{font-weight:800;min-width:0;overflow-wrap:anywhere}
.cf-ed-st{font-size:11.5px;color:var(--muted)}
.cf-ed .cf-edit{margin-left:auto}
.cf-diff{width:100%;margin-top:4px;border-collapse:collapse;font-size:12.5px;table-layout:fixed}
.cf-diff th{width:9.5em;text-align:left;font-weight:700;color:var(--muted);padding:3px 8px 3px 0;vertical-align:top}
.cf-diff td{padding:3px 0;vertical-align:top;overflow-wrap:anywhere}
.cf-diff del{color:var(--muted);text-decoration:line-through}
.cf-diff ins{text-decoration:none;font-weight:800;background:#fff6c2;padding:0 3px;border-radius:2px}
.cf-diff .cf-arrow{color:var(--muted);margin:0 4px}
.cf-ed-note{font-size:12px;color:#8a4b00;font-weight:700;margin-top:2px}
.cf-editrules{margin:0 0 12px;padding:8px 12px 8px 28px;background:#eef4ff;border:1px solid #1a4fa0;border-radius:4px;font-size:12.5px;line-height:1.6}
.cf-nochange{color:var(--af-err);font-weight:800}
.cf-bar .cta:disabled{opacity:.45;cursor:not-allowed}
@media (max-width:760px){.cf-diff th{width:7.5em}}
.af-card.is-locked [data-lk-wrap],.af-card.is-locked [data-pv]{display:none}

/* 新商品：価格の出し方・販売実績 */
.af-basisq{margin-top:18px}
.af-hf{margin-top:16px}
.af-hagree .af-check-strong{font-size:13.5px;line-height:1.7}
.history-note{margin-top:16px;padding:12px 14px;border:1.5px dashed var(--ink);border-radius:var(--radius);background:#fffbe0;text-align:left}
.history-note b{display:block;font-weight:900;margin-bottom:4px}
.history-note p{margin:0 0 4px;font-size:14px;line-height:1.75}
.af-cond-exc{margin-top:6px !important;padding:6px 10px;background:#fffbe0;border-left:3px solid var(--yellow);font-size:13px}
.af-cond-exc b{margin-right:6px}
