/* 生産管理アシスタント：添付のデザイン（淡いピンクとラベンダーの面、白い半透明のカード、黒い丸いボタン）
   色や大きさは下の変数（トークン）で決め、画面ごとに新しい色を足さない。 */
:root {
  --bg-pink: #f6e4ea;
  --bg-lav: #decff7;
  --bg-mid: #f7f2f9;
  --bg-bot: #fafafa;
  --hero-a: #eec5d1;
  --hero-b: #e5cfe7;
  --hero-c: #d6cef7;
  --ink: #1c1a1f;
  --ink-2: #4a4650;
  --ink-3: #8e8a93;
  --line: rgba(28, 26, 31, 0.08);
  --black: #18151c;
  --white: #fff;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(255, 255, 255, 0.9);
  --glass-line: rgba(255, 255, 255, 0.95);
  --rose: #d9718f;
  --rose-tint: #f7dde5;
  --rose-ink: #b4536f;
  --lav: #8f80c8;
  --lav-tint: #e7e0fb;
  --lav-ink: #6e5fb0;
  --ok: #5e9479;
  --ok-tint: #ddefe5;
  --ok-ink: #3f7259;
  --gray-tint: #eeebf0;
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 13px;
  --shadow: 0 10px 28px rgba(126, 96, 146, 0.1), 0 2px 6px rgba(126, 96, 146, 0.06);
  --shadow-soft: 0 6px 18px rgba(126, 96, 146, 0.08);
  --font: 'Outfit', 'Noto Sans JP', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.65;
  background:
    radial-gradient(110% 55% at 0% 0%, var(--bg-pink) 0%, rgba(246, 228, 234, 0) 62%),
    radial-gradient(110% 55% at 100% 0%, var(--bg-lav) 0%, rgba(222, 207, 247, 0) 62%),
    linear-gradient(180deg, var(--bg-mid) 0%, var(--bg-bot) 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* 全体の枠：スマホは1列、PC は広げる */
.app { max-width: 480px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) calc(18px + env(safe-area-inset-right)) calc(128px + env(safe-area-inset-bottom)) calc(18px + env(safe-area-inset-left)); min-height: 100vh; position: relative; }
@media (min-width: 1024px) {
  .app { max-width: 1180px; padding: 28px 36px 132px; }
  .app.narrow { max-width: 860px; }
}
.view { animation: viewIn 0.42s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 上：あいさつ */
.top { display: flex; align-items: center; gap: 14px; margin: 6px 0 20px; }
.avatar { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 19px; color: var(--white); background: linear-gradient(135deg, #c98aa0, #9b8ad0); flex: none; box-shadow: var(--shadow-soft); }
.hello { flex: 1; min-width: 0; }
.hello small { display: block; color: var(--ink-3); font-size: 14px; line-height: 1.3; }
.hello b { display: block; font-size: 21px; font-weight: 600; letter-spacing: 0.01em; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.round { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--glass-2); display: grid; place-items: center; box-shadow: var(--shadow-soft); cursor: pointer; position: relative; transition: transform 0.18s var(--ease), background 0.2s; flex: none; }
.round:active { transform: scale(0.94); }
.round.dark { background: var(--black); color: var(--white); box-shadow: none; }
.round.sm { width: 40px; height: 40px; }
.round.sm svg.i { width: 18px; height: 18px; }
.dot-badge { position: absolute; top: 9px; right: 10px; min-width: 9px; height: 9px; border-radius: 9px; background: var(--rose); border: 2px solid var(--white); }

/* いちばん大きなカード（ヒーロー） */
.hero { position: relative; border-radius: var(--r-xl); padding: 22px 22px 18px; overflow: hidden; background: linear-gradient(118deg, var(--hero-a) 0%, var(--hero-b) 48%, var(--hero-c) 100%); color: var(--ink); }
.hero::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0)); pointer-events: none; }
.hero > * { position: relative; }
.hero .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.72); font-size: 13.5px; font-weight: 500; }
.pill .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(94, 148, 121, 0.5); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(94, 148, 121, 0.45); } 70% { box-shadow: 0 0 0 7px rgba(94, 148, 121, 0); } 100% { box-shadow: 0 0 0 0 rgba(94, 148, 121, 0); } }
.hero .label { margin-top: 18px; color: var(--ink-2); font-size: 15px; }
.hero .main { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.big { font-size: 84px; line-height: 0.95; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.side { text-align: left; padding-bottom: 8px; min-width: 120px; }
.side small { display: block; color: var(--ink-3); font-size: 13.5px; }
.side .v { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.side .v span { font-size: 15px; font-weight: 500; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
.side .note { color: var(--rose-ink); font-size: 13.5px; font-weight: 500; }
.segs { display: flex; gap: 6px; margin: 16px 0 14px; }
.segs i { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.75); transform-origin: left; }
.segs i.on { background: var(--black); animation: segIn 0.5s var(--ease) both; animation-delay: calc(var(--k, 0) * 45ms); }
@keyframes segIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero .foot { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-2); }
.hero .foot b { color: var(--ink); font-weight: 600; }
.hero .foot .t { display: inline-flex; align-items: center; gap: 7px; }
.hero .foot svg.i { width: 18px; height: 18px; }

/* 情報のカード（次の予定など） */
.info { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 15px 16px; border-radius: var(--r-lg); background: var(--glass); border: 1px solid var(--glass-line); cursor: pointer; transition: transform 0.2s var(--ease); }
.info:active { transform: scale(0.985); }
.ico { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; flex: none; background: var(--rose-tint); color: var(--rose-ink); }
.ico.lav { background: var(--lav-tint); color: var(--lav-ink); }
.ico.ok { background: var(--ok-tint); color: var(--ok-ink); }
.info .txt { flex: 1; min-width: 0; }
.info small { display: block; color: var(--ink-3); font-size: 13px; }
.info b { display: block; font-size: 16.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 横に流れるボタン（チップ） */
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 18px 2px 4px; margin: 0 -18px; padding-left: 18px; padding-right: 18px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-2); font-weight: 500; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform 0.18s var(--ease); }
.chip svg.i { width: 19px; height: 19px; color: var(--rose); }
.chip.primary { background: var(--black); color: var(--white); border-color: var(--black); }
.chip.primary svg.i { color: #f3c64e; fill: #f3c64e; stroke: #f3c64e; }
.chip:active { transform: scale(0.96); }

/* 見出し */
.sec { display: flex; align-items: baseline; justify-content: space-between; margin: 26px 2px 14px; }
.sec h2 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: 0.01em; }
.sec a, .sec button.link { color: var(--ink-3); font-size: 14.5px; background: none; border: 0; cursor: pointer; padding: 0; }

/* 仕組みのタイル */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 11px; }
.tile { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 16px 4px 13px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-line); cursor: pointer; text-align: center; transition: transform 0.2s var(--ease), background 0.2s, box-shadow 0.2s; min-height: 108px; }
.tile:hover { background: var(--glass-2); box-shadow: var(--shadow-soft); }
.tile:active { transform: scale(0.95); }
.tile .ic { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--rose-tint); color: var(--rose-ink); }
.tile .ic.lav { background: var(--lav-tint); color: var(--lav-ink); }
.tile span { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--ink); white-space: pre-line; }
.tile .cnt { position: absolute; top: 9px; right: 9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--rose); color: var(--white); font-size: 12px; font-weight: 600; display: grid; place-items: center; }

/* 下の帯（ナビ） */
.nav { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: calc(100% - 32px); max-width: 444px; height: 72px; padding: 10px; border-radius: 36px; background: rgba(255, 255, 255, 0.9); border: 1px solid var(--glass-line); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: space-between; z-index: 40; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.nav a { height: 52px; min-width: 52px; border-radius: 26px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink-2); position: relative; transition: background 0.3s var(--ease), color 0.3s, padding 0.3s var(--ease); padding: 0 14px; }
.nav a span { display: none; font-weight: 500; font-size: 15px; }
.nav a.on { background: var(--black); color: var(--white); padding: 0 24px 0 20px; }
.nav a.on span { display: inline; }
.nav a .dot-badge { top: 11px; right: 12px; }

.copy { margin: 34px 2px 0; color: var(--ink-3); font-size: 11.5px; letter-spacing: 0.02em; }

/* 並べた枠が中の表に合わせて広がらないようにする（スマホで横にはみ出さない） */
.grid2 > *, .grid3 > *, .split > *, .home-grid > *, .row-fields > * { min-width: 0; }
.card { min-width: 0; }
table.tbl td.nw { white-space: nowrap; }

/* 汎用のカード・表・文字 */
.card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--r-lg); padding: 18px; }
.card + .card { margin-top: 14px; }
.card h3 { margin: 0 0 10px; font-size: 16.5px; font-weight: 600; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.lead { color: var(--ink-2); margin: 0 0 4px; }
.grid2 { display: grid; gap: 14px; }
.grid3 { display: grid; gap: 14px; }
@media (min-width: 1024px) {
  .grid2 { grid-template-columns: 1fr 1fr; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .home-grid { display: grid; grid-template-columns: 1.04fr 1fr; gap: 28px; align-items: start; }
  .home-grid .sec:first-child { margin-top: 0; }
}

/* ページの上（戻る・題名） */
.phead { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; }
.phead .tt { flex: 1; min-width: 0; }
.phead h1 { margin: 0; font-size: 22px; font-weight: 600; line-height: 1.3; }
.phead p { margin: 2px 0 0; color: var(--ink-3); font-size: 13.5px; line-height: 1.5; }

/* 手順（5つの段） */
.steps { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 6px; margin: 4px 0 18px; }
.steps .st { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: var(--ink-3); }
.steps .st i { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.95); border: 1px solid var(--line); }
.steps .st.done i { background: var(--black); border-color: var(--black); }
.steps .st.cur i { background: var(--rose); border-color: var(--rose); }
.steps .st.cur, .steps .st.done { color: var(--ink); font-weight: 500; }

/* 表 */
.tblwrap { overflow-x: auto; border-radius: 16px; background: var(--glass-2); border: 1px solid var(--glass-line); }
table.tbl { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; }
table.tbl th { background: var(--black); color: var(--white); font-weight: 500; font-size: 13px; text-align: left; padding: 11px 14px; white-space: nowrap; }
table.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tr.warn td { background: rgba(247, 221, 229, 0.55); }
table.tbl tr.ok td { background: rgba(221, 239, 229, 0.45); }
table.tbl tr.click { cursor: pointer; }
table.tbl tr.click:hover td { background: rgba(231, 224, 251, 0.45); }
table.tbl input, table.tbl select { width: 100%; min-width: 70px; border: 1px solid var(--line); border-radius: 9px; padding: 5px 8px; background: var(--white); }

/* 札 */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; background: var(--gray-tint); color: var(--ink-2); }
.badge.ok { background: var(--ok-tint); color: var(--ok-ink); }
.badge.warn { background: var(--rose-tint); color: var(--rose-ink); }
.badge.info { background: var(--lav-tint); color: var(--lav-ink); }
.badge.dark { background: var(--black); color: var(--white); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--glass-line); background: var(--glass-2); font-weight: 500; cursor: pointer; transition: transform 0.18s var(--ease), opacity 0.2s; white-space: nowrap; }
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--black); color: var(--white); border-color: var(--black); }
.btn.rose { background: var(--rose); color: var(--white); border-color: var(--rose); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.45; pointer-events: none; }
.btn svg.i { width: 18px; height: 18px; }
.btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* 入力 */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; color: var(--ink-3); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--line); background: var(--white); border-radius: var(--r-sm); padding: 11px 14px; outline: none; transition: border 0.2s, box-shadow 0.2s; }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lav); box-shadow: 0 0 0 4px rgba(143, 128, 200, 0.18); }
.field .hint { font-size: 12px; color: var(--ink-3); }
.row-fields { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }

/* 切りかえ（セグメント） */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--glass-2); border: 1px solid var(--glass-line); gap: 2px; }
.seg button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--ink-2); transition: background 0.25s var(--ease), color 0.25s; }
.seg button.on { background: var(--black); color: var(--white); }

/* ファイルを入れる所 */
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 26px 16px; border-radius: 22px; border: 1.5px dashed rgba(143, 128, 200, 0.55); background: rgba(255, 255, 255, 0.55); text-align: center; cursor: pointer; transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
.drop.over { background: rgba(231, 224, 251, 0.6); border-color: var(--lav); transform: scale(1.01); }
.drop b { font-weight: 600; }
.drop small { color: var(--ink-3); }

/* 空の状態 */
.empty { text-align: center; padding: 30px 12px; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-weight: 600; margin: 10px 0 4px; }

/* 一覧の行 */
.list { display: flex; flex-direction: column; gap: 10px; }
.item { display: flex; align-items: center; gap: 13px; padding: 13px 14px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s; }
.item:hover { background: var(--glass-2); }
.item:active { transform: scale(0.99); }
.item .txt { flex: 1; min-width: 0; }
.item b { display: block; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item small { display: block; color: var(--ink-3); font-size: 12.5px; }
.item.unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--rose); margin-left: 7px; vertical-align: middle; }

/* 数字のまとめ */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 11px; }
.stat { padding: 14px 16px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-line); }
.stat small { display: block; color: var(--ink-3); font-size: 12.5px; }
.stat b { display: block; font-size: 26px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat.warn b { color: var(--rose-ink); }
.stat.ok b { color: var(--ok-ink); }

/* 横の棒 */
.bar { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, 0.9); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--rose), var(--lav)); transform-origin: left; animation: segIn 0.7s var(--ease) both; }

/* 下からせり上がるパネル（Bottom Sheet） */
.backdrop { position: fixed; inset: 0; background: rgba(28, 26, 31, 0.28); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); z-index: 60; animation: fadeIn 0.25s both; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; background: #fdfbfe; border-radius: 28px 28px 0 0; padding: 10px 20px 28px; z-index: 61; animation: sheetUp 0.42s var(--ease) both; }
.sheet .grab { width: 44px; height: 5px; border-radius: 5px; background: rgba(28, 26, 31, 0.15); margin: 2px auto 14px; }
.sheet h3 { margin: 0 0 12px; font-size: 18px; font-weight: 600; }
@media (min-width: 1024px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: 600px; transform: translate(-50%, -50%); border-radius: 28px; animation: modalIn 0.36s var(--ease) both; }
  .sheet .grab { display: none; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%); } }

/* 短い知らせ（Toast） */
.toast { position: fixed; left: 50%; top: calc(18px + env(safe-area-inset-top)); transform: translateX(-50%); z-index: 80; background: var(--black); color: var(--white); padding: 12px 20px; border-radius: 999px; font-size: 14.5px; display: flex; align-items: center; gap: 9px; box-shadow: var(--shadow); animation: toastIn 0.4s var(--ease) both; max-width: calc(100% - 32px); }
.toast.warn { background: var(--rose-ink); }
.toast.out { animation: toastOut 0.3s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -14px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -14px); } }

/* 読み込み中（全画面のスケルトン） */
.sk { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.6); border-radius: 16px; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0)); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-col { display: flex; flex-direction: column; gap: 12px; }

/* 順に出る動き */
.rv { animation: rvIn 0.55s var(--ease) both; animation-delay: calc(var(--d, 0) * 55ms); }
@keyframes rvIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* 書類の写真と読んだ項目を並べる */
.split { display: grid; gap: 14px; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; } }
.photo { width: 100%; border-radius: 18px; background: var(--white); border: 1px solid var(--line); object-fit: contain; max-height: 520px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; }
pre.draft { white-space: pre-wrap; font-family: var(--font); background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; margin: 0; line-height: 1.8; }

/* ログインの画面 */
.login { min-height: 92vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.login .hero { padding: 28px 24px; }
.login h1 { font-size: 30px; line-height: 1.3; margin: 18px 0 6px; font-weight: 600; letter-spacing: 0.01em; }

/* 印刷（PDF で保存）：画面の部品を消して、紙の形にする */
.print-root { display: none; }
@media print {
  body { background: #fff !important; }
  body.printing > *:not(.print-root) { display: none !important; }
  body.printing .print-root { display: block; padding: 0; color: #000; font-size: 11pt; }
  .print-root table { width: 100%; border-collapse: collapse; }
  .print-root th { background: #1c1a1f !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-root th, .print-root td { border: 1px solid #ccc; padding: 4px 6px; text-align: left; }
  .print-root h1 { font-size: 16pt; margin: 0 0 6pt; }
  @page { size: A4; margin: 12mm; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; } }
