/* 骨組みだけの最小限。見た目は鑿（Codex）が作る */
body { margin: 0; font-family: "Hiragino Kaku Gothic ProN", sans-serif; line-height: 1.8; background: #f6f3eb; color: #292923; }
main, .k-head, .public-main { max-width: 960px; margin: 0 auto; padding: 16px 20px; }
[hidden] { display: none !important; }
.field { margin: 12px 0; } .field label { display: block; font-size: 14px; }
input, textarea, button { font: inherit; } input, textarea { width: 100%; min-height: 44px; box-sizing: border-box; }
button { min-height: 44px; cursor: pointer; }
.error { color: #94462f; } .note { color: #605e55; font-size: 14px; }
.roster { width: 100%; border-collapse: collapse; font-size: 14px; } .roster th, .roster td { border-bottom: 1px solid #c5bfb2; padding: 6px; text-align: left; }
.tabular { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.card { border: 1px dashed #605e55; padding: 12px; }
.recipe-list { list-style: none; padding: 0; } .recipe-list li { border-bottom: 1px solid #c5bfb2; padding: 10px 0; }
.recipe-list button { background: none; border: 0; padding: 0; text-align: left; font-weight: 600; }
.row3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ing-row { display: grid; grid-template-columns: 1fr 80px 64px auto; gap: 6px; margin: 6px 0; }
.allergens { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.check { display: flex; align-items: center; gap: 6px; min-height: 44px; }
.check input { width: auto; min-height: 0; }
fieldset { border: 0; border-top: 1px solid #c5bfb2; padding: 12px 0; margin: 12px 0; } legend { font-weight: 600; }
.ed-actions { display: flex; flex-wrap: wrap; gap: 8px; } .label { font-size: 14px; margin: 8px 0 0; }
select { font: inherit; min-height: 44px; width: 100%; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; } .tab[aria-pressed="true"] { font-weight: 700; text-decoration: underline; }
.table-wrap { overflow-x: auto; } .comments p { border-left: 3px solid #94462f; padding-left: 8px; }
.p-list { list-style: none; padding: 0; } .p-entry { border-bottom: 1px solid #c5bfb2; padding: 16px 0 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p-head { padding: 8px 20px 0; } .p-head a { color: inherit; }
/* 工程6：自分のページ（骨組み） */
.tag { display: inline-block; font-size: 12px; border: 1px solid #605e55; padding: 0 6px; margin-left: 8px; border-radius: 2px; }
.seen-mark { display: inline-block; font-size: 13px; font-weight: 700; color: #94462f; border: 2px solid #94462f; border-radius: 50%; padding: 2px 6px; }
.pg-levels { display: flex; flex-wrap: wrap; gap: 0 16px; } .pg-skill { border-bottom: 1px solid #c5bfb2; padding: 8px 0; }
.pg-made { list-style: none; padding: 0; } .pg-made li { display: grid; grid-template-columns: 120px 1fr; gap: 12px; border-bottom: 1px solid #c5bfb2; padding: 10px 0; }
.pg-made li:not(:has(img)) { grid-template-columns: 1fr; } .pg-photo { width: 120px; height: 120px; object-fit: cover; }
.pg-acts { display: inline-flex; gap: 6px; margin-left: 8px; } .pg-part { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pg-part-in { flex: 1 1 220px; } .pg-records { list-style: none; padding-left: 12px; border-left: 2px solid #c5bfb2; }
.pg-filled { font-weight: 600; }
/* 工程7：印刷。印刷するものだけを #print-root に写して出す */
.print-root { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body[data-print] > *:not(#print-root) { display: none !important; }
  body[data-print] #print-root { display: block; }
  body[data-print] { background: #fff; }
  .paper { border: 0 !important; box-shadow: none !important; padding: 0 !important; }
  .paper section, .paper li, .paper tr, .card { break-inside: avoid; }
}
.paper { background: #fff; border: 1px solid #c5bfb2; padding: 24px; margin-top: 16px; }
.paper h2 { margin-top: 0; } .paper h3 { border-bottom: 1px solid #292923; margin: 18px 0 6px; font-size: 16px; }
.paper .allergen-box { border: 2px solid #94462f; padding: 8px 12px; }
.sh-pick fieldset { border-top: 1px solid #c5bfb2; } .mn-chosen li { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 4px 0; }
.sh-photo { width: 96px; height: 96px; object-fit: cover; float: left; margin: 0 12px 6px 0; } .sh-made li { overflow: hidden; }
