.tf-deck {
  --tf-ink:#202a45;
  --tf-muted:#48546b;
  --tf-line:#dcd4c2;
  --tf-yellow:#fac640;
  color:var(--tf-ink);
  font:400 14px/1.65 "Hiragino Sans","Yu Gothic","Noto Sans JP",sans-serif;
  overflow-wrap:anywhere;
}
.tf-deck,.tf-deck * {box-sizing:border-box}
.tf-deck-sheet {
  width:min(100%,210mm);
  min-height:235mm;
  margin:18px auto;
  padding:28px clamp(16px,4vw,42px) 20px;
  background:#fffdf7;
  border:1px solid var(--tf-line);
  border-radius:8px;
  box-shadow:0 14px 34px #202a4512;
}
.tf-deck-mast,.tf-deck-footer {
  display:flex;justify-content:space-between;align-items:center;gap:12px;
  color:var(--tf-muted);border-bottom:1px solid var(--tf-line);padding-bottom:7px;font-size:.87em;
}
.tf-deck-mast span:first-child {color:var(--tf-ink);font-size:1.16em;font-weight:850}
.tf-deck-mast span:first-child::before {content:"";display:inline-block;width:.6em;height:.6em;background:var(--tf-yellow);border-radius:2px;margin-right:.4em}
.tf-deck-content {padding:15px 0}
.tf-deck :where(h1,h2,h3,p,ol,ul,dl,dd,figure) {margin:0}
.tf-deck h1,.tf-deck h2,.tf-deck h3 {font-weight:800;line-height:1.3;letter-spacing:-.015em}
.tf-deck h1 {font-size:clamp(1.55rem,4.5vw,2.55rem);margin:5px 0 8px}
.tf-deck h2 {font-size:clamp(1.25rem,3.3vw,1.9rem);margin:0 0 14px}
.tf-deck h3 {font-size:1.02em;margin-bottom:5px}
.tf-deck p {white-space:pre-wrap}
.tf-deck-banner {
  background:#1d2743;color:#fffdf6;border-radius:7px;
  border-left:5px solid var(--tf-yellow);
  padding:23px 24px;margin:0 0 16px;
}
.tf-deck-kicker {font-size:.84em;font-weight:800;color:#ffda77;letter-spacing:.12em}
.tf-deck-issue {font-size:.86em;margin-top:8px!important;color:#e8e6dc}
.tf-deck-block {margin:0 0 11px}
.tf-deck-block p,.tf-deck-note {color:var(--tf-muted)}
.tf-deck-message {margin:13px 0;padding:11px 14px;color:#203455;background:#eaf0f9;border:1px solid #d6dff0;border-radius:6px}
.tf-deck-highlight {background:#fef1c8;border-left:3px solid #d89614;padding:9px 11px;border-radius:0 4px 4px 0}
.tf-deck-meta {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px 13px;margin:0 0 11px!important}
.tf-deck-meta>div {padding:5px 0;border-top:1px solid var(--tf-line)}
.tf-deck-meta dt {color:#6c4c13;font-size:.86em;font-weight:800}
.tf-deck-meta dd {color:var(--tf-muted)}
.tf-deck-table {width:100%;table-layout:fixed;border-collapse:collapse;margin:6px 0 12px;font-size:.92em}
.tf-deck-table th,.tf-deck-table td {padding:6px 8px;border:1px solid var(--tf-line);text-align:left;vertical-align:top;overflow-wrap:anywhere}
.tf-deck-table th {color:var(--tf-ink);background:#fbe7a5}
.tf-deck-table th:first-child {width:29%}
.tf-deck-direction {margin:10px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.tf-deck-direction .tf-deck-block {margin:0;background:#f5f0e5;padding:7px 9px;border-radius:5px}
.tf-deck-scenes {list-style:none;padding:0;display:grid;gap:8px;margin-top:13px!important}
.tf-deck-scenes li {padding:9px 11px;border:1px solid var(--tf-line);border-left:3px solid #d59b25;border-radius:4px}
.tf-deck-scenes h3 {margin-top:5px}
.tf-deck-scenes .tf-deck-meta {margin:5px 0 0!important}
.tf-deck-time {display:inline-block;border-radius:4px;background:#fce8a7;color:#4c350b;padding:0 7px;font-weight:800}
.tf-deck-checks {padding-left:1.2em;margin-bottom:8px!important}
.tf-deck-checks + .tf-deck-note {margin-bottom:10px}
.tf-deck-cover {display:flex;align-items:center;gap:10px;margin-bottom:10px!important}
.tf-deck-cover img {display:block;max-width:100%;max-height:155px;width:auto;height:auto;border:1px solid var(--tf-line);border-radius:5px}
.tf-deck-cover figcaption {color:var(--tf-muted);font-size:.87em}
.tf-deck-footer {border-bottom:0;border-top:1px solid var(--tf-line);padding-top:6px;padding-bottom:0}
.tf-deck-footer span:last-child {color:#6c4c13;font-weight:800}
.tf-deck-editor {margin:.65rem 0;padding:.55rem .75rem;border:1px solid #d9cba9;border-radius:8px;background:#fff7dd;font-size:.91rem}
.tf-deck-editor summary {font-weight:800;cursor:pointer}
.tf-deck-editor label {display:block;margin-top:7px;font-weight:700}
.tf-deck-editor textarea {display:block;width:100%;padding:.35rem .5rem;border:1px solid #a7aab7;border-radius:5px;background:white;color:#202a45;font:inherit;font-weight:400}
.tf-deck-dialog {width:min(94vw,920px);max-height:93dvh;padding:0;border:1px solid #e0dacc;border-radius:12px;background:#ede9df}
.tf-deck-dialog::backdrop {background:#1d2743bf}
.tf-deck-toolbar {padding:14px 19px;background:#fffdf7;border-bottom:1px solid #ded4be}
.tf-deck-toolbar h2 {font-size:1.35rem;margin:0 0 5px}
.tf-deck-toolbar .actions {margin-top:8px}
.tf-deck-print-root {display:none}
@media(max-width:520px) {
  .tf-deck-sheet {min-height:0;padding:15px 12px}
  .tf-deck-banner {padding:14px}
  .tf-deck-direction,.tf-deck-meta {grid-template-columns:minmax(0,1fr)}
}
@page tf-proposal {size:A4;margin:13mm}
@media print {
  body.tf-deck-printing {margin:0!important;background:white!important;display:block!important}
  body.tf-deck-printing>:not(.tf-deck-print-root) {display:none!important}
  body.tf-deck-printing>.tf-deck-print-root {display:block!important;page:tf-proposal}
  .tf-deck-print-root .tf-deck {font-size:10.5pt;line-height:1.55;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .tf-deck-print-root .tf-deck-sheet {
    width:auto;min-height:0;margin:0;padding:0;
    border:0;border-radius:0;box-shadow:none;background:white;
  }
  .tf-deck-print-root .tf-deck-sheet + .tf-deck-sheet {break-before:page}
  .tf-deck-print-root .tf-deck-banner {padding:17px 20px;break-inside:avoid}
  .tf-deck-print-root .tf-deck h1 {font-size:23pt}
  .tf-deck-print-root .tf-deck h2 {font-size:17pt}
  .tf-deck-print-root .tf-deck :is(h1,h2,h3) {break-after:avoid-page}
  .tf-deck-print-root .tf-deck :is(.tf-deck-block,.tf-deck-scenes li,.tf-deck-meta>div,tr,figure) {break-inside:avoid-page}
  .tf-deck-print-root .tf-deck-direction,.tf-deck-print-root .tf-deck-meta {grid-template-columns:repeat(2,minmax(0,1fr))}
  .tf-deck-print-root .tf-deck-cover img {max-height:35mm}
}
