/* サンプル「入庫・出庫の伝票を在庫表へ」専用の見た目。点検表の sample-ocr.css を写して接頭辞を st- に替え、横長の伝票・伝票の行の表・在庫表の形を足した。色と書体は main.css の変数を使う */
.st-page {
  --st-head: 73px;
  --st-sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", sans-serif;
  --st-unsure-ink: #92400E; --st-unsure-bg: #FEF3C7;
  --st-sku-ink: #991B1B; --st-sku-bg: #FEE2E2;
  --st-over-ink: #9A3412; --st-over-bg: #FFEDD5;
  --st-ok-ink: #115E59; --st-ok-bg: #CCFBF1;
  --st-muted: #475569;
}
.st-page *:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: 2px; }
.st-page p { margin: 0; }
:where(.st-page) :where(button, input) { font: inherit; color: inherit; }
html:has(#st-app :focus-visible) { scroll-padding-top: 9.75rem; }
html:has(.st-finish.is-ready) { scroll-padding-bottom: 10rem; }
.skip-link { top: -5rem; }
.st-wrap { max-width: var(--container); margin-inline: auto; padding-inline: var(--pad-x); width: 100%; }
.st-vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* トップの「たとえば」節の部品（index.html の #can から写す） */
.can-eyebrow { display: flex; align-items: center; justify-content: center; gap: clamp(.5rem, 2vw, .75rem); word-break: auto-phrase; margin: 0 0 1rem !important; font-size: .85rem; font-weight: 600; letter-spacing: .16em; color: var(--cp-primary); text-align: center; }
.can-eyebrow::before, .can-eyebrow::after { content: ""; display: inline-block; flex: none; width: clamp(1rem, 5vw, 2rem); height: 1.5px; background: var(--cp-accent); }
.can-title { font-size: clamp(1.7rem, 3.2vw, 2.8rem); color: var(--cp-primary); line-height: 1.45; text-wrap: balance; word-break: auto-phrase; text-align: center; }
.can-title::after { content: ""; display: block; width: 64px; height: 2px; margin: 1.1rem auto 0; background: var(--cp-accent); }
.can-card__no { display: grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 .5rem; background: var(--cp-navy-deep); color: #fff; font-family: var(--ff-display); font-size: 1rem; font-weight: 600; letter-spacing: .06em; border-bottom: 2px solid var(--cp-accent); flex: none; }
.can-invite { position: relative; padding: clamp(1.5rem, 4vw, 3rem); background: var(--cp-white); border: 1px solid var(--cp-line); border-top: 3px solid var(--cp-accent); border-radius: 2px; box-shadow: var(--cp-shadow); }
.can-invite__title { font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.55; color: var(--cp-primary); text-wrap: balance; word-break: auto-phrase; }
.can-invite__text { margin-top: 1rem !important; font-size: 1rem; line-height: 1.95; text-wrap: pretty; }
.can-cta { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; padding: 1rem 2rem; width: 100%; background: var(--cp-primary); color: #fff; font-weight: 600; font-size: 1rem; letter-spacing: .06em; text-decoration: none; border-radius: 2px; border-bottom: 2px solid var(--cp-accent); transition: background-color .3s ease, box-shadow .3s ease; word-break: auto-phrase; }
.can-cta:hover { background: var(--cp-navy-deep); box-shadow: var(--cp-shadow); }
.can-cta svg { width: 1.15rem; height: 1.15rem; transition: transform .3s ease; }
.can-cta:hover svg { transform: translateX(3px); }

/* プライバシーポリシーと同じヘッダーの戻るリンクとフッター */
.policy-header__back { font-size: 0.92rem; font-weight: 600; letter-spacing: 0.04em; color: var(--cp-primary); border-bottom: 1px solid currentColor; padding-bottom: 0.1rem; white-space: nowrap; }
.policy-header__back:hover { color: var(--cp-navy-deep); }
.policy-footer .site-footer__inner { grid-template-columns: 1.2fr 1fr 1.1fr; }

/* 説明 */
.st-intro { padding: clamp(1.75rem, 4vw, 3.25rem) 0 clamp(1.75rem, 3.5vw, 2.5rem); background: radial-gradient(60rem 30rem at 85% -5%, color-mix(in oklab, var(--cp-accent) 12%, transparent), transparent 70%), linear-gradient(180deg, var(--cp-white) 0%, var(--cp-bg) 100%); }
.st-hero { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.st-hero .can-eyebrow { justify-content: flex-start; }
.st-hero .can-eyebrow::before { display: none; }
.st-hero .can-title { text-align: left; font-size: clamp(1.7rem, 2.9vw, 2.45rem); }
.st-hero .can-title::after { margin-left: 0; }
.st-nb { display: inline-block; }
.st-lead { margin: 1.1rem 0 0 !important; font-size: 1.02rem; line-height: 1.9; text-wrap: pretty; }
.st-lead-act { margin-top: 1.25rem !important; }
.st-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .75rem 1.25rem; margin: clamp(1.25rem, 3vw, 2rem) 0 0; padding-top: .9rem; border-top: 1px solid var(--cp-line); }
.st-step { display: flex; align-items: baseline; gap: .55rem; }
.st-step__no { flex: none; font-family: var(--ff-display); font-size: .95rem; font-weight: 600; letter-spacing: .06em; color: var(--cp-accent-ink); }
.st-step__text { font-size: .95rem; font-weight: 600; line-height: 1.6; color: var(--cp-text); word-break: auto-phrase; }
.st-note { margin-top: clamp(1rem, 2.5vw, 1.5rem); padding: .9rem 1.25rem 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; }
.st-note__title { font-size: .98rem; color: var(--cp-primary); margin-bottom: .45rem; }
.st-note__list { list-style: disc; padding-left: 1.3em; }
.st-note__list li { font-size: .92rem; line-height: 1.75; margin-bottom: .2em; overflow-wrap: anywhere; text-wrap: pretty; }
.st-note__list li::marker { color: var(--cp-primary); }
.st-run { margin-top: .55rem !important; font-size: .82rem; line-height: 1.6; color: var(--st-muted); font-family: var(--st-sans); }

/* 触ってみる */
.st-tool { padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(2.5rem, 5vw, 4rem); background: var(--cp-cream); border-top: 1px solid var(--cp-line); border-bottom: 1px solid var(--cp-line); }
.st-tool__title { font-size: clamp(1.35rem, 2.6vw, 1.8rem); color: var(--cp-primary); }
.st-tool__lead { margin-top: .25rem !important; font-size: .98rem; color: var(--cp-text); text-wrap: pretty; }
.st-tool__notice { margin-top: .35rem !important; font-size: .9rem; line-height: 1.7; color: var(--cp-text); text-wrap: pretty; word-break: auto-phrase; }
.st-noscript { margin-top: 1rem !important; padding: 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); }
.st-app { margin-top: 1rem; }


.st-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; margin-top: 1rem; }

/* 左: 写真 */
.st-srccol { position: sticky; top: calc(var(--st-head) + .75rem); background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; box-shadow: var(--cp-shadow); padding: .75rem; }
.st-srccol__head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: .6rem; }
.st-srccol__title { font-size: 1.02rem; color: var(--cp-primary); }
.st-sheet { position: relative; margin-inline: auto; width: min(100%, calc((100vh - var(--st-head) - 6.5rem) * var(--st-ratio, 0.7070))); box-shadow: 0 0 0 1px var(--cp-line); cursor: zoom-in; background: #fff; }
.st-sheet img { display: block; width: 100%; height: 100%; max-width: none; }
.st-hit { position: absolute; border: 3px solid var(--cp-accent); border-radius: 2px; pointer-events: none; box-sizing: content-box; transform: translate(-3px, -3px); }

/* 右: 見比べの結果 */
.st-count { position: sticky; top: var(--st-head); z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 1rem; padding: .55rem 1rem; background: var(--cp-navy-deep); color: #fff; border-bottom: 2px solid var(--cp-accent); border-radius: 2px; }
.st-count__main { display: flex; align-items: baseline; gap: .4rem; min-width: 0; white-space: nowrap; font-weight: 600; font-size: 1rem; }
.st-count__num { font-family: var(--st-sans); font-size: 2.1rem; font-weight: 700; line-height: 1.1; color: #fff; }
.st-count__sub { min-width: 0; font-size: .92rem; color: #cbd5e1; overflow-wrap: anywhere; }
.st-count__sub b { font-family: var(--st-sans); font-size: 1.15rem; color: #fff; font-weight: 700; }
.st-prior { margin-top: .35rem !important; font-size: .9rem; color: var(--cp-text); line-height: 1.7; }


.st-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; margin-top: .75rem; }
.st-rowitem { position: relative; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; padding: .6rem .9rem; }
.st-rowitem.has-marks { border-left: 4px solid var(--cp-primary); box-shadow: var(--cp-shadow); padding: .8rem .95rem .95rem; }
.st-rowitem.is-done { border-left: 4px solid var(--st-ok-ink); }
/* 直した行を、少しの間だけ色で知らせる */
.is-just-fixed { animation: st-fixed 2s ease-out; }
@keyframes st-fixed { 0%, 35% { background-color: var(--st-ok-bg); } 100% { background-color: var(--cp-white); } }
.st-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: .5rem .75rem; }
.st-row__data { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .75rem; min-width: 0; }
.st-name { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.st-diff { margin-top: .25rem !important; font-size: .9rem; color: var(--st-ok-ink); line-height: 1.6; font-family: var(--st-sans); overflow-wrap: anywhere; }
.st-tags { display: flex; flex-wrap: wrap; gap: .3rem .4rem; }
.st-rowitem .st-tags--row { margin-top: .3rem; align-items: center; }
.st-tags--row .st-link { min-height: 44px; margin-left: .3rem; }

.st-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .1rem .55rem; font-family: var(--st-sans); font-size: .82rem; font-weight: 700; line-height: 1.6; border: 1px solid currentColor; border-radius: 2px; }
.st-tag svg { width: .85rem; height: .85rem; flex: none; }
.st-tag--unsure { color: var(--st-unsure-ink); background: var(--st-unsure-bg); }
.st-tag--ok { color: var(--st-ok-ink); background: var(--st-ok-bg); }
.st-by { font-size: .84rem; color: var(--st-muted); font-family: var(--st-sans); align-self: center; }

/* 確かめる所 */
.st-block { margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--cp-line); scroll-margin: 8rem; }
.st-block__top { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .1rem; }
.st-block__field { font-size: .92rem; font-weight: 600; color: var(--cp-primary); }
/* border を付けると内側の縦横比がずれて切り抜きが動くので、枠は box-shadow で描く */
.st-crop { position: relative; overflow: hidden; margin: .5rem 1px 1px; background: #fff; box-shadow: 0 0 0 1px var(--cp-muted); max-width: calc(100% - 2px); }
.st-crop img { position: absolute; max-width: none; height: auto; }
.st-say { margin-top: .5rem !important; font-size: .95rem; line-height: 1.75; overflow-wrap: anywhere; text-wrap: pretty; word-break: auto-phrase; }
.st-say b { font-family: var(--st-sans); font-weight: 700; }
.st-why { margin-top: .15rem !important; font-size: .9rem; color: var(--st-muted); line-height: 1.7; overflow-wrap: anywhere; font-family: var(--st-sans); text-wrap: pretty; word-break: auto-phrase; }
.st-group-label { margin-top: .6rem !important; font-size: .88rem; font-weight: 600; color: var(--cp-text); }
.st-choices { display: grid; gap: .4rem; margin-top: .35rem; }
.st-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-width: 0; overflow-wrap: anywhere; min-height: 44px; padding: .45rem .95rem; font-weight: 600; font-size: .95rem; line-height: 1.5; letter-spacing: .02em; text-wrap: balance; word-break: auto-phrase; border-radius: 2px; border: 1.5px solid var(--cp-primary); background: var(--cp-white); color: var(--cp-primary); cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.st-btn--primary { background: var(--cp-primary); color: #fff; }
.st-btn--quiet { border-color: var(--cp-line); color: var(--cp-text); font-weight: 500; }
/* タッチの端末で押したあとに濃い色が残らないように */
@media (hover: hover) {
  .st-btn:hover { background: var(--cp-primary); color: #fff; }
  .st-btn--primary:hover { background: var(--cp-navy-deep); border-color: var(--cp-navy-deep); }
  .st-btn--quiet:hover { background: var(--cp-cream); color: var(--cp-text); border-color: var(--cp-muted); }
}
.st-btn--small { padding-inline: .7rem; font-size: .88rem; white-space: nowrap; }
.st-btn:disabled, .st-btn:disabled:hover { background: var(--cp-line); border-color: var(--cp-line); color: var(--st-muted); cursor: not-allowed; }
.st-type { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; margin-top: .35rem; }
.st-input { width: 100%; min-height: 44px; padding: .4rem .65rem; font-family: var(--st-sans); font-size: 16px; line-height: 1.4; background: #fff; border: 1.5px solid var(--cp-muted); border-radius: 2px; }
.st-input[aria-invalid="true"] { border-color: var(--st-sku-ink); }
.st-err { margin-top: .3rem !important; font-size: .88rem; font-weight: 600; color: var(--st-sku-ink); }
.st-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; color: var(--cp-primary); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
.st-link:hover { color: var(--cp-navy-deep); }
.st-block__top .st-link { flex: none; white-space: nowrap; }

/* 行を直す */
.st-editor { margin-top: .7rem; padding-top: .7rem; border-top: 1px dashed var(--cp-line); }
.st-editor__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem .75rem; margin-top: .5rem; }
.st-editor__field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: .15rem; }
.st-editor__field--wide { grid-column: 1 / -1; }
.st-editor__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }

/* 確定 */
.st-finish { margin-top: .9rem; padding: .9rem 1rem 1rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-top: 3px solid var(--cp-accent); border-radius: 2px; }
.st-finish.is-ready { position: sticky; bottom: 0; z-index: 4; box-shadow: 0 -6px 18px rgba(15, 23, 42, .12); }
.st-finish__msg { font-size: .95rem; line-height: 1.75; margin-bottom: .6rem !important; text-wrap: balance; word-break: auto-phrase; }
.st-finish .st-btn--primary { width: 100%; min-height: 50px; font-size: 1.02rem; }
.st-done__title { font-size: 1.3rem; color: var(--cp-primary); text-wrap: balance; word-break: auto-phrase; }
.st-done__title:focus, .st-sec:focus { outline: none; }
.st-done__lead { margin-top: .35rem !important; font-size: .95rem; line-height: 1.75; }
.st-tablewrap { overflow-x: auto; margin-top: .75rem; background: var(--cp-white); border: 1px solid var(--cp-line); -webkit-overflow-scrolling: touch; }
.st-table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.6; font-family: var(--st-sans); }
.st-table th, .st-table td { padding: .55rem .6rem; border-bottom: 1px solid var(--cp-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.st-table thead th { background: var(--cp-cream); color: var(--cp-text); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.st-table tr:last-child td { border-bottom: 0; }
.st-table .is-num { text-align: right; white-space: nowrap; }
.st-done__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .85rem; }
.st-done__actions .st-btn--primary { flex: 1 1 100%; min-height: 50px; font-size: 1.02rem; }
.st-done__actions--save { margin-top: .6rem; }
.st-done__saved { margin-top: .5rem !important; font-size: .9rem; color: var(--st-ok-ink); font-weight: 600; font-family: var(--st-sans); overflow-wrap: anywhere; }
.st-done__next { margin-top: .85rem !important; padding-top: .75rem; border-top: 1px solid var(--cp-line); font-size: .92rem; line-height: 1.8; text-wrap: pretty; word-break: auto-phrase; }
.st-done__cta { margin-top: .6rem; min-height: 44px; text-wrap: balance; word-break: auto-phrase; }
.st-reset { margin-top: 1rem; text-align: right; }

/* 台帳の下書きの形 */
.st-paper { position: relative; margin-top: .75rem; padding: .9rem 1rem 1rem; background: #fff; border: 1px solid var(--cp-line); font-family: var(--st-sans); }
.st-paper__mark { position: absolute; right: .75rem; top: .75rem; padding: .05rem .5rem; border: 1px solid var(--cp-text); font-size: .79rem; font-weight: 700; }
.st-paper__title { font-size: 1.15rem; font-weight: 700; letter-spacing: .08em; padding-right: 8.5rem; text-wrap: balance; }
.st-paper__meta { margin-top: .35rem !important; font-size: .9rem; line-height: 1.7; color: var(--st-muted); overflow-wrap: anywhere; text-wrap: pretty; word-break: auto-phrase; }
.st-paper__place { text-wrap: balance; word-break: auto-phrase; }
.st-paper .st-tablewrap { margin-top: .55rem; }
/* 狭い画面では札を題の上に置き、題が言葉の途中で折れないようにする */
@media (max-width: 400px) {
  .st-paper__mark { position: static; display: inline-block; margin-bottom: .35rem !important; }
  .st-paper__title { padding-right: 0; }
}
.st-table tbody tr:last-child td { border-bottom: 1px solid var(--cp-line); }

/* 全体を拡大して見る */
.st-zoom { width: min(96vw, 1100px); height: min(94dvh, 100%); max-width: none; max-height: none; padding: 0; border: 1px solid var(--cp-line); border-radius: 2px; background: var(--cp-white); color: var(--cp-text); font-family: var(--ff-serif); overflow: hidden; }
.st-zoom[open] { display: flex; flex-direction: column; }
.st-zoom::backdrop { background: rgba(2, 6, 23, .72); }
.st-zoom__bar { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; padding: .4rem .6rem; border-bottom: 1px solid var(--cp-line); background: var(--cp-white); }
.st-zoom__title { font-size: .98rem; font-weight: 600; color: var(--cp-primary); margin: 0; }
.st-zoom__ctrl { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.st-zoom__pct { min-width: 3.2em; text-align: center; font-family: var(--st-sans); font-size: .88rem; }
.st-zoom__scroll { flex: 1; min-height: 0; overflow: auto; background: var(--cp-cream); -webkit-overflow-scrolling: touch; }
.st-zoom__scroll:focus-visible { outline: 3px solid var(--cp-accent); outline-offset: -3px; }
/* main.css の「動きを減らす」は全部に短い transition を付ける。大きさが遅れて変わると中心の計算がずれるので切る */
.st-zoom__page { position: relative; margin-inline: auto; background: #fff; transition: none !important; }
.st-zoom__page img { display: block; width: 100%; height: 100%; max-width: none; }
html.st-noscroll { overflow: hidden; }

/* 相談へ */
.st-next { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.st-next__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 1.5rem; }
.st-next__actions .can-cta { width: auto; flex: 0 1 auto; }
.st-next__sub { min-height: 44px; }

@media (max-width: 1024px) {
  .st-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1025px) {
  .st-note__list { columns: 2; column-gap: 2.5rem; }
  .st-note__list li { break-inside: avoid; }
}
@media (max-width: 860px) {
  .st-hero { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .st-fig { min-height: 0; }
}
@media (max-width: 900px) {
  .st-panel { grid-template-columns: minmax(0, 1fr); }
  .st-srccol { position: static; display: grid; grid-template-columns: 4.75rem minmax(0, 1fr); gap: .75rem; align-items: center; box-shadow: none; padding: .55rem .75rem; }
  .st-srccol__head { display: block; margin: 0; grid-column: 2; grid-row: 1; }
  .st-srccol__head .st-btn { margin-top: .45rem; width: 100%; }
  .st-sheet { grid-column: 1; grid-row: 1; width: 100%; margin: 0; }
  .st-sheet .st-hit { display: none; }
}
@media (max-width: 768px) {
  .policy-footer .site-footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .st-page { --st-head: 63px; }
  .st-table { font-size: .86rem; }
  .st-table th, .st-table td { padding: .5rem .4rem; }
  .policy-footer .site-footer__inner { grid-template-columns: 1fr; }
  .st-lead { text-align: left; }
  .st-steps { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .st-step__text { font-size: .92rem; }
  .st-hero .can-eyebrow { margin-bottom: .6rem !important; }
  .st-note { padding: .85rem .9rem .9rem; }
  .st-tool { padding-top: 1.1rem; scroll-margin-top: -1.25rem; }
  .st-app { margin-top: .75rem; }
  .st-count { padding: .35rem .75rem; gap: 0 .5rem; }
  .st-count__main { font-size: .92rem; gap: .25rem; }
  .st-count__sub { font-size: .86rem; }
  .st-finish.is-ready { padding: .45rem .75rem .55rem; }
  .st-finish.is-ready .st-finish__msg { font-size: .9rem; line-height: 1.5; margin-bottom: .3rem !important; }
  .st-finish.is-ready .st-btn--primary { min-height: 46px; }
  .st-count__num { font-size: 1.7rem; }
  .st-rowitem { padding: .55rem .7rem; }
  .st-rowitem.has-marks { padding: .7rem .75rem .85rem; }
  .st-choices--2 { grid-template-columns: minmax(0, 1fr); }
  .st-editor__grid { grid-template-columns: minmax(0, 1fr); }
  .st-next__actions .can-cta, .st-next__sub { width: 100%; }
  .st-reset { text-align: center; }
  .st-zoom { width: 100vw; height: 100dvh; border: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .is-just-fixed { animation: none; }
  .can-cta:hover svg { transform: none; }
}
@media (max-width: 340px) {
  .st-srccol { grid-template-columns: 4rem minmax(0, 1fr); }
  .st-tool__lead { display: none; }
}
/* 高さの低い画面では、確定の帯を固定せず、在庫表を見る場所を残す（固定の帯で画面の 30% を超えないように） */
@media (max-height: 700px) {
  .st-finish.is-ready { position: static; box-shadow: none; }
  html:has(.st-finish.is-ready) { scroll-padding-bottom: 1rem; }
}
/* 横向きなど高さのない画面では、固定の帯で作業の場所が狭くならないようにする */
@media (max-height: 500px) {
  .site-header, .st-count, .st-finish.is-ready { position: static; }
  html:has(#st-app :focus-visible), html:has(.st-finish.is-ready) { scroll-padding-top: 1rem; scroll-padding-bottom: 1rem; }
}
/* 見出しの近くの図 */
.st-fig { margin: 0; padding: .85rem .95rem .95rem; background: var(--cp-white); border: 1px solid var(--cp-line); border-radius: 2px; box-shadow: var(--cp-shadow); }
.st-fig__cap { font-size: .86rem; font-weight: 600; color: var(--cp-primary); margin-bottom: .4rem !important; line-height: 1.6; }

.st-name { font-weight: 600; font-size: 1rem; overflow-wrap: anywhere; }
.st-table td { white-space: normal; }

/* ---------- ここから伝票と在庫表の形（点検表の CSS の前半の後に足したもの） ---------- */
/* 左: 伝票。横に長いので、欄の幅いっぱいに出す（下に小さな絵の列があるぶん、高さを多めに引く） */
.st-sheet { width: min(100%, calc((100vh - var(--st-head) - 11rem) * 1.4188)); aspect-ratio: 1240 / 874; }
.st-srccol__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .6rem; }
.st-srccol__when { font-family: var(--st-sans); font-size: .84rem; font-weight: 500; color: var(--st-muted); }
.st-srccol__note { margin-top: .45rem !important; font-size: .82rem; color: var(--st-muted); font-family: var(--st-sans); }
.st-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem; margin-top: .55rem; }
.st-strip__btn { position: relative; display: block; min-height: 44px; padding: 0; border: 2px solid var(--cp-line); border-radius: 2px; background: #fff; cursor: pointer; overflow: hidden; }
.st-strip__btn img { display: block; width: 100%; height: auto; aspect-ratio: 1240 / 874; object-fit: cover; }
.st-strip__btn.is-current { border-color: var(--cp-accent); box-shadow: 0 0 0 2px var(--cp-accent); }
.st-strip__no { position: absolute; left: 0; bottom: 0; right: 0; padding: 0 .35rem; background: var(--cp-navy-deep); color: #fff; font-family: var(--st-sans); font-size: .79rem; font-weight: 700; line-height: 1.6; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-strip__kind { margin-left: .5em; }
/* 狭い画面では札を絵の下に 2 行で出し、入庫か出庫かが切れないようにする */
@media (max-width: 400px) {
  .st-strip__no { position: static; display: block; padding: .1rem .3rem .15rem; line-height: 1.35; white-space: normal; }
  .st-strip__no > span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .st-strip__kind { margin-left: 0; font-size: .79rem; font-weight: 600; }
}
@media (hover: hover) { .st-strip__btn:hover { border-color: var(--cp-accent); } }

/* 右: 見出しと伝票ごとの行 */
.st-sec { margin-top: 1.1rem; font-size: 1.05rem; color: var(--cp-primary); }
.st-sec + .st-why { margin-top: .2rem !important; }
.st-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.st-thumb { display: block; width: 5.5rem; padding: 0; border: 1px solid var(--cp-line); border-radius: 2px; background: #fff; cursor: pointer; overflow: hidden; }
.st-thumb img { display: block; width: 100%; height: auto; aspect-ratio: 1240 / 874; object-fit: cover; }
.st-rowitem.is-viewing .st-thumb { box-shadow: 0 0 0 2px var(--cp-accent); }
.st-row__data { display: grid; gap: .2rem; min-width: 0; }
.st-row__name { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; }
.st-no { font-family: var(--st-sans); font-weight: 700; font-size: .9rem; color: var(--st-muted); }
.st-row__meta { display: flex; flex-wrap: wrap; gap: .1rem .9rem; font-family: var(--st-sans); font-size: .86rem; color: var(--cp-text); }
.st-row__meta .is-marked { color: var(--st-sku-ink); font-weight: 700; }
.st-kind { font-weight: 700; color: var(--st-muted); }
.st-lineswrap { overflow-x: auto; margin-top: .5rem; border: 1px solid var(--cp-line); -webkit-overflow-scrolling: touch; }
.st-lines { width: 100%; border-collapse: collapse; font-family: var(--st-sans); font-size: .88rem; line-height: 1.5; }
.st-lines th, .st-lines td { padding: .3rem .5rem; border-top: 1px solid var(--cp-line); text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.st-lines thead th { border-top: 0; background: var(--cp-cream); font-size: .79rem; white-space: nowrap; }
.st-lines td { font-weight: 600; }
.st-lines .is-num { text-align: right; white-space: nowrap; }
.st-lines td.is-marked { background: var(--st-sku-bg); box-shadow: inset 3px 0 0 var(--st-sku-ink); }
.st-match { margin-top: .35rem !important; font-size: .84rem; color: var(--st-ok-ink); font-family: var(--st-sans); }
.st-accepted { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .2rem .4rem; margin-right: .6rem; }

/* 狭い画面でも字が読める大きさにした切り抜き。入りきらない分は横に動かして見る */
.st-cropscroll { overflow-x: auto; margin: .5rem 0 0; padding: 0 1px 1px; -webkit-overflow-scrolling: touch; }
.st-cropscroll .st-crop--wide { max-width: none; margin-top: 0; }
.st-cropscroll:focus-visible { outline: 3px solid var(--cp-primary); outline-offset: 2px; }
/* 行の切り抜きは、確かめる数字が切れないように欄の幅に合わせて縮める */
.st-crop--fit { width: calc(100% - 2px); }

/* 印の色 */
.st-tag--find { color: var(--st-sku-ink); background: var(--st-sku-bg); }
.st-tag--diff, .st-tag--stock { color: var(--st-over-ink); background: var(--st-over-bg); }
.st-tag--order { color: #1E3A8A; background: #DBEAFE; }

/* 伝票をまとめて直す */
.st-editor__grid--head { margin-bottom: .2rem; }
.st-editor__line { margin: .6rem 0 0; padding: .35rem .6rem .6rem; border: 1px solid var(--cp-line); border-radius: 2px; min-width: 0; }
.st-editor__line legend { padding: 0 .3rem; font-size: .84rem; font-weight: 700; color: var(--st-muted); font-family: var(--st-sans); }
/* PC では行の 4 欄（品番・品名・数量・単位）を 1 行に並べる。品名を広く、数量と単位を狭く */
.st-editor__line .st-editor__grid { margin-top: .2rem; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) minmax(0, .9fr) minmax(0, .7fr); }

/* 在庫表 */
.st-table td, .st-table th { white-space: nowrap; }
.st-table .is-num { text-align: right; }
.st-sku { display: block; font-size: .79rem; font-weight: 700; color: var(--st-muted); }
.st-table td.is-item { white-space: normal; min-width: 9.5em; }
.st-cellnote.is-quiet { color: var(--st-muted); font-weight: 500; }
.st-table tr.is-moved td { font-weight: 700; }
.st-table tr.is-moved td.is-now { background: var(--cp-cream); }
.st-table tr.is-below td.is-now { background: #DBEAFE; }
.st-table tr.is-minus td.is-now { background: var(--st-over-bg); color: var(--st-over-ink); }
.st-cellnote { display: block; font-size: .79rem; font-weight: 600; color: #1E3A8A; }
.st-cellnote.is-bad { color: var(--st-over-ink); }
.st-table td.is-note { white-space: normal; min-width: 14em; }
.st-tnote { display: block; font-size: .8125rem; line-height: 1.6; color: var(--st-muted); font-weight: 500; }
.st-tnote.is-mark { color: var(--st-over-ink); font-weight: 600; }
.st-tablewrap + .st-why { margin-top: .4rem !important; }

/* 見出しの近くの図 */
.st-fig__crop { position: relative; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--cp-line); }
.st-fig__crop img { position: absolute; max-width: none; height: auto; }
.st-fig__arrow { text-align: center; color: var(--cp-accent-ink); font-weight: 700; line-height: 1.4; margin: .2rem 0 !important; }
.st-fig__tablewrap { overflow-x: auto; border: 1px solid var(--cp-line); }
.st-fig__table { width: 100%; border-collapse: collapse; font-family: var(--st-sans); font-size: .84rem; line-height: 1.5; }
.st-fig__table th, .st-fig__table td { padding: .3rem .45rem; border-top: 1px solid var(--cp-line); text-align: left; vertical-align: top; }
.st-fig__table thead th { border-top: 0; background: var(--cp-cream); font-size: .79rem; white-space: nowrap; }
.st-fig__table .is-num { text-align: right; white-space: nowrap; }
.st-fig__table td.is-marked { background: var(--st-over-bg); font-weight: 700; }
.st-fig__marksrow td { border-top: 0; padding-top: 0; text-align: right; }
.st-fig__marksrow .st-tag { font-size: .8125rem; padding: 0 .35rem; margin-left: .3rem; }
.st-fig__hint { display: block; margin-top: .15rem; font-size: .79rem; line-height: 1.5; color: var(--st-muted); text-wrap: balance; }
.st-fig__who { margin: -.2rem 0 .4rem !important; font-family: var(--st-sans); font-size: .8rem; line-height: 1.55; color: var(--st-muted); }
.st-fig__only-narrow { display: none; }
.st-fig__more { margin-top: .4rem !important; font-family: var(--st-sans); font-size: .9rem; color: var(--st-muted); line-height: 1.6; text-wrap: pretty; }

@media (max-width: 900px) {
  /* 狭い画面では、伝票を小さく横に置き、下に 3 枚の列を出す */
  .st-srccol { grid-template-columns: 7rem minmax(0, 1fr); }
  .st-strip { grid-column: 1 / -1; }
  .st-srccol__note { grid-column: 1 / -1; }
  .st-sheet { aspect-ratio: 1240 / 874; }
}
@media (max-width: 560px) {
  .st-row { grid-template-columns: 4.5rem minmax(0, 1fr); }
  .st-thumb { width: 4.5rem; }
  .st-row > .st-btn { grid-column: 1 / -1; justify-self: end; }
  .st-srccol__head { flex-wrap: wrap; }
  .st-lines { font-size: .84rem; }
  .st-lines th, .st-lines td { padding: .3rem .35rem; }
  .st-editor__line .st-editor__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .st-editor__line .st-editor__field--name { grid-column: 1 / -1; }
  /* 枠の中の枠で表の幅を取られないように、確定のあとの余白を詰める */
  .st-finish { padding-inline: .6rem; }
  .st-paper { margin-inline: -.6rem; padding: .7rem 0 .75rem; border-inline: 0; }
  .st-paper > p { margin-inline: .6rem; }
  .st-paper .st-tablewrap { border-inline: 0; }
  /* 「今の在庫」の列が最初の表示で切れないように、数の列を詰めて品名を折り返す。横に動かしても品名は残す */
  .st-table td.is-item { width: 6.2em; min-width: 6.2em; word-break: keep-all; font-feature-settings: "palt"; position: sticky; left: 0; z-index: 1; background: var(--cp-white); box-shadow: inset -1px 0 0 var(--cp-line); }
  .st-table thead th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: inset -1px 0 0 var(--cp-line); }
  .st-table th, .st-table td { padding-inline: .2rem; }
  .st-table td.is-item, .st-table thead th:first-child { padding-inline: .2rem; }
  /* 発注の目安の列の添え書きは、入るなら表の幅に収まるように折り返す */
  .st-table td:nth-child(6) { min-width: 6.4em; }
  .st-table .st-cellnote { white-space: normal; text-wrap: balance; }
  .st-table .st-cellnote br { display: none; }
  .st-table td.is-note { padding-inline: .5rem; }
  .st-fig__only-wide, .st-fig__plain { display: none; }
  .st-fig__only-narrow { display: inline; }
}
/* 見出し上の小さな文が 2 行に折れても崩れないようにする保険 */
@media (max-width: 400px) {
  .st-hero .can-eyebrow { letter-spacing: .08em; text-align: left; }
  .st-hero .can-eyebrow::after { display: none; }
}
@media (max-width: 340px) {
  .st-srccol { grid-template-columns: 5.5rem minmax(0, 1fr); }
}

/* 全サンプル共通の整え（2026-11-06）: 最後の行に 1〜2 字だけ残さない・語の途中で折らない。押す所は 44px。word-break は Safari で効かないので、数字や日付など絶対に割りたくない所は nowrap の span にする */
main { text-wrap: pretty; }
main :where(p, li, h1, h2, h3, h4, dd, dt, figcaption, button, a, label, summary, caption) { word-break: auto-phrase; overflow-wrap: break-word; }
.policy-header__back { display: inline-flex; align-items: center; min-height: 44px; margin-block: -3px; }
.site-header .brand { min-height: 44px; margin-block: -3px; }
.policy-footer .site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; }

/* 共通の整えの打ち消しと、この本の折れの直し（2026-11-06 の 3 周目） */
/* .brand の margin-block:-3px は、ロゴが 38px のスマホでは 44px に広げた分を相殺するが、ロゴが 48px の幅ではヘッダーを 73px から 67px に縮めて --st-head とずれるので戻す */
@media (min-width: 561px) {
  .site-header .brand { margin-block: 0; }
  /* 確定のあとの表でも「透明テープ（48mm）」を 1 行に入れる */
  .st-table td.is-item { min-width: 10em; }
}
.st-nw { white-space: nowrap; }
.st-tool__lead, .st-step__text, .st-fig__who { text-wrap: balance; }
.st-tnote { word-break: auto-phrase; }
/* 見出しのすぐ下の文は、Safari でも語の切れ目で折る（<wbr> の所だけで折れる） */
.st-lead { word-break: keep-all; }
/* 「在庫表に足し引きします」を 320px でも 1 行に入れて、見出しを 2 行にする */
@media (max-width: 340px) {
  .st-hero .can-title { font-size: 1.5rem; }
}

/* 共通の整えの打ち消しと、この本の折れの直し（3 周目の確かめで出た分） */
/* ボタンの中は、sample-inventory.js が渡した部品の切れ目（<wbr>）だけで折る */
.st-keep { word-break: keep-all; }
/* 番号の字の幅が違っても、流れの行の字の左端をそろえる */
.st-step__no { min-width: 1.5em; }
/* 場所の文が 2 行に折れる狭い画面で、在庫より多い出庫の札が帯の裏に隠れないように高さを抑える */
.st-block__field { line-height: 1.45; }
/* 打つ欄の見出しは、狭い画面で「打つ」だけが次の行に残らないようにする */
.st-group-label { text-wrap: balance; }
/* 行の欄のエラーの文は、4 欄の下に行の幅いっぱいで出す */
.st-editor__line .st-err { grid-column: 1 / -1; margin-top: 0 !important; }
/* 人が打った長い値は語の途中でも折って、ページを横にはみ出させない */
.st-row__meta > span, .st-name { min-width: 0; overflow-wrap: anywhere; }
.st-diff .st-nb { max-width: 100%; }
/* word-break:auto-phrase が効かないブラウザ（Safari など）では、sample-inventory.js が語の切れ目に足した <wbr> の所だけで折る。ボタンは対象にしない。
   文字を詰める palt は切る（Windows の WebKit で、wbr や span の境目に、その前の字を詰めた分だけ字の間が空く。実機の iPhone で同じかは未確認で、詰めないほうが安全な側） */
@supports not (word-break: auto-phrase) {
  .st-page { font-feature-settings: "liga"; }
  main :where(p, li, h1, h2, h3, h4, dd, dt, figcaption, label, summary, caption), .st-by, .st-tnote, .st-cellnote, .st-fig__hint, .st-tag > span { word-break: keep-all; }
  /* Windows の WebKit で text-wrap:pretty の文の中の nowrap の span が 2 行に割れ、「3 枚目の」の「枚目の」が 2 回描かれた。語の切れ目は <wbr> で決まるので pretty は切る */
  main, .st-lead, .st-note__list li, .can-invite__text, .st-tool__notice, .st-say, .st-why, .st-paper__meta, .st-done__next, .st-fig__more { text-wrap: wrap; }
}

/* Safari（auto-phrase が効かない）では text-wrap の pretty / balance と wbr・nowrap が重なると同じ字が 2 回描かれるので、折り方を普通に戻す（2026-11-07） */
@supports not (word-break:auto-phrase){main,main *,.policy-footer,.policy-footer *{text-wrap-style:auto!important}}
