/* パン工房 コムギトキ（デモ）売上をスマホで見る */
/* 共通部品（TENKA LAB バー・ヘッダー・フッター・ボタン・実際のお仕事では）は、ほかのデモと同じクラス名と作り。色は決め直した */
/* 面は小麦粉をはたいた淡い小麦色、見出しと線はパンの耳の焦げ茶、棒はきつね色 */

/* ==== スマホの画面 ここから（デモとひな形で同じ中身） ==== */
:root {
  --c-base: #FAF3E3;
  --c-surface: #FFFFFF;
  --c-soft: #F5E3C0;
  --c-main: #5A3A12;
  --c-text: #2E2414;
  --c-sub: #6A5A40;
  --c-bar: #B07A2A;
  --c-warn: #8C3B0E;
  --c-warn-bg: #FCEBDD;
  --c-accent: #7B2D4B;
  --c-accent-hover: #5E2139;
  --c-line: #E3D3B5;

  --font-body: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", sans-serif;

  --a-title: 18px;
  --a-month: 20px;
  --a-h2: 18px;
  --a-big: 36px;
  --a-mid: 28px;
  --a-yen: 20px;
  --a-num: 18px;
  --a-label: 14px;
  --a-body: 16px;
  --a-note: 14px;
  --a-axis: 12px;
  --a-btn: 16px;
  --a-table: 15px;
  --a-pad: 12px;
}
.app, .app *, .app *::before, .app *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 3px solid var(--c-main); outline-offset: 2px; }
[tabindex="-1"]:focus { outline: none; }
[tabindex="-1"]:focus-visible { outline: 3px solid var(--c-main); }

/* 副ボタン（焦げ茶の枠・丸い端） */
.btn-sub {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-height: 44px; padding: 0 12px; margin: 0; border: 2px solid var(--c-main); border-radius: 22px;
  background: #FFFFFF; color: var(--c-main); font-family: var(--font-body);
  font-size: var(--a-btn); font-weight: 700; line-height: 1.2; letter-spacing: .02em; text-align: center; white-space: nowrap; cursor: pointer;
}
.btn-sub:hover, .btn-sub:active { background: var(--c-soft); }
.btn-sub svg { width: 16px; height: 16px; flex: none; }
.btn-sub:disabled, .btn-sub:disabled:hover {
  background: #FFFFFF; border: 2px dashed var(--c-sub); color: var(--c-sub); cursor: not-allowed;
}

.app {
  background: var(--c-base); color: var(--c-text);
  font-family: var(--font-body); font-size: var(--a-body); line-height: 1.7; letter-spacing: .02em;
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.app h2, .app h3, .app p, .app ul, .app dl, .app dd, .app table { margin: 0; }
.app ul { padding: 0; list-style: none; }
.app svg { flex: none; }
.app__bar {
  display: flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px;
  background: var(--c-main); color: #FFFFFF;
}
.app__bar :focus-visible { outline-color: #FFFFFF; }
.app__mark { width: 20px; height: 20px; color: #FFFFFF; }
.app__title { font-size: var(--a-title); font-weight: 700; line-height: 1.3; letter-spacing: .04em; white-space: nowrap; }
.app__month {
  display: flex; align-items: center; justify-content: space-between; gap: 4px;
  padding: 12px var(--a-pad) 0;
}
.app__mname { flex: 1 1 auto; min-width: 0; color: var(--c-text); font-size: var(--a-month); font-weight: 700; line-height: 1.3; letter-spacing: 0; text-align: center; white-space: nowrap; }
.app__mbtn { flex: none; padding: 0 10px; letter-spacing: 0; }
.app__busy, .app__fail { margin: 12px var(--a-pad) 0; font-size: var(--a-body); line-height: 1.7; }
.app__fail { padding: 12px 16px 12px 22px; background: var(--c-warn-bg); box-shadow: inset 6px 0 0 var(--c-warn); border-radius: 12px; }
.app__body { display: grid; gap: 16px; padding: 16px var(--a-pad) 0; }
.app__card {
  min-width: 0; padding: 16px; background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 16px;
}
.app__h3 { color: var(--c-main); font-size: var(--a-h2); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.app__n { font-weight: 700; }
.app__yen { font-size: var(--a-yen); font-weight: 700; margin-left: 2px; }
.app__big { margin-top: 8px; font-size: var(--a-big); line-height: 1.1; white-space: nowrap; }
.app__mid { margin-top: 4px; color: var(--c-main); font-size: var(--a-mid); line-height: 1.1; white-space: nowrap; }
.app__dl { margin-top: 8px; }
.app__dlrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px; padding: 2px 0; }
.app__dl dt .nw { white-space: nowrap; }
.app__dl dt { color: var(--c-sub); font-size: var(--a-label); line-height: 1.5; }
.app__dl dd { font-size: var(--a-num); font-weight: 700; line-height: 1.3; text-align: right; white-space: nowrap; }
.app__rate { margin-top: 12px; }
.app__rate-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.app__rate-lab { color: var(--c-sub); font-size: var(--a-label); line-height: 1.5; }
.app__rate-num { font-size: var(--a-num); font-weight: 700; line-height: 1.3; }
.app__meter {
  position: relative; height: 12px; margin-top: 4px; overflow: hidden;
  background: var(--c-soft); border: 1px solid var(--c-sub); border-radius: 6px;
}
.app__meter-fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--c-main); }
.app__over { margin-top: 8px; font-size: var(--a-body); font-weight: 700; line-height: 1.6; }
.app__msg { margin-top: 8px; font-size: var(--a-body); line-height: 1.7; }
.app__forecast { margin-top: 12px; padding: 16px; background: var(--c-soft); border-radius: 12px; }
.app__fc-head { font-size: var(--a-label); font-weight: 700; line-height: 1.5; }
.app__fc-cmp { margin-top: 4px; font-size: var(--a-body); font-weight: 700; line-height: 1.6; }
.app__fc-none { font-size: var(--a-body); line-height: 1.7; }
.app__note { margin-top: 8px; color: var(--c-sub); font-size: var(--a-note); line-height: 1.6; }
.app__errline { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; margin-top: 12px; font-size: var(--a-note); line-height: 1.6; }
.app__warn { color: var(--c-warn); }
.app__tolist { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--c-main); font-weight: 700; text-underline-offset: 3px; }
.app__period { margin-top: 4px; color: var(--c-sub); font-size: var(--a-note); line-height: 1.6; }
.app__diff { margin-top: 12px; }
.app__diff-main { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: var(--a-mid); line-height: 1.1; white-space: nowrap; }
.app__diff-main .app__tri { width: 16px; height: 16px; color: var(--c-main); align-self: center; }
.app__diff-word { font-weight: 700; }
.app__diff-rate { display: block; margin-top: 4px; font-size: 16px; font-weight: 700; line-height: 1.4; }
.app__legend { margin-top: 8px; display: grid; gap: 4px; }
.app__legend li { display: flex; align-items: flex-start; gap: 6px; color: var(--c-sub); font-size: var(--a-note); line-height: 1.6; }
.app__lg-ico { width: 24px; height: 16px; margin-top: 3px; }
.app__chart { margin-top: 8px; min-height: 200px; }
.app__svg { display: block; }
.ch-bar { fill: var(--c-bar); }
.ch-grid { stroke: var(--c-line); stroke-width: 1; }
.ch-base { stroke: var(--c-sub); stroke-width: 1; }
.ch-goal-under { stroke: #FFFFFF; stroke-width: 4; }
.ch-goal { stroke: var(--c-main); stroke-width: 2; stroke-dasharray: 4 3; }
.ch-axis { fill: var(--c-sub); font-size: var(--a-axis); font-family: var(--font-body); }
.ch-axis--y { text-anchor: end; }
.ch-axis--x { text-anchor: middle; }
.ch-q { fill: var(--c-warn); font-size: 12px; font-weight: 700; text-anchor: middle; font-family: var(--font-body); }
.app__days { margin-top: 12px; border-top: 1px solid var(--c-line); }
.app__sum {
  display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 4px;
  color: var(--c-main); font-size: var(--a-body); font-weight: 700; line-height: 1.4; cursor: pointer; list-style: none;
}
.app__sum::-webkit-details-marker { display: none; }
.app__chev { width: 16px; height: 16px; }
.app__days[open] .app__chev { transform: rotate(90deg); }
.app__table, .app__ctable { width: 100%; border-collapse: collapse; font-size: var(--a-table); line-height: 1.4; }
.app__table { font-size: 14px; letter-spacing: 0; }

.app__table th, .app__table td, .app__ctable th, .app__ctable td { padding: 6px 4px; border-bottom: 1px solid var(--c-line); text-align: right; vertical-align: middle; }
.app__table thead th, .app__ctable thead th { background: var(--c-soft); font-size: var(--a-label); font-weight: 700; line-height: 1.3; }
.app__ctable thead th { white-space: nowrap; }
.app__table th[scope="row"], .app__ctable th[scope="row"] { text-align: left; font-weight: 400; white-space: nowrap; }
.app__table thead th:first-child { text-align: left; }
.app__table td, .app__table thead th { white-space: nowrap; }
.app__table .is-closed td, .app__table .is-error td { color: var(--c-sub); }
.app__table .is-error td:nth-child(2) { color: var(--c-warn); font-size: 14px; font-weight: 700; white-space: normal; text-align: left; }
.app__today { display: block; color: var(--c-sub); font-size: 14px; line-height: 1.3; }
.app__total > * { border-top: 2px solid var(--c-main); font-weight: 700; }
.app__total th[scope="row"] { font-weight: 700; }
.app__ctable { margin-top: 8px; }
.app__ctable td { font-weight: 700; white-space: nowrap; }
.app__ctable thead td { background: var(--c-soft); }
.app__cdiff { display: flex; gap: 8px; margin-top: 8px; font-size: var(--a-note); line-height: 1.6; }
.app__cdiff-lab { color: var(--c-sub); }
.app__errors {
  min-width: 0; padding: 16px 16px 16px 22px; background: var(--c-warn-bg);
  box-shadow: inset 6px 0 0 var(--c-warn); border-radius: 12px;
}
.app__err-h { color: var(--c-warn); }
.app__err-sum { margin-top: 8px; font-size: var(--a-body); font-weight: 700; line-height: 1.7; }
.app__err-list { margin-top: 8px; display: grid; gap: 6px; }
.app__err-list li { position: relative; padding-left: 14px; font-size: var(--a-body); line-height: 1.6; }
.app__err-list li::before { content: ""; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--c-warn); }
.app__foot { padding: 16px var(--a-pad) 24px; }
.app__read { color: var(--c-text); font-size: var(--a-note); line-height: 1.6; }
.app__reload { width: 100%; margin-top: 8px; }
/* 日ごとの表は 4列を 268px（360px の画面）に収める */
.app__table th, .app__table td { padding: 6px 3px; }
.app__table tr > :first-child { padding-left: 0; }
.app__table tr > :last-child { padding-right: 0; }
@media (max-width: 374px) {
  .app__table { font-size: 13px; }
  .app__mbtn { padding: 0 6px; }
}
@media (forced-colors: active) {
  .app__meter-fill, .ch-bar { forced-color-adjust: none; }
}
/* ==== スマホの画面 ここまで ==== */

/* ---------- ページの土台 ---------- */
:root {
  --pad-x: 16px;
  --gap-sec: 48px;
  --f-body: 16px;
  --f-note: 14px;
  --f-h1: 26px;
  --f-h2: 20px;
  --f-cell: 16px;
  --f-rowno: 14px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--c-base);
  color: var(--c-text);
  font-family: var(--font-body);
  font-size: var(--f-body);
  line-height: 1.8;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
  word-break: auto-phrase;
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--c-main); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
button { font: inherit; color: inherit; letter-spacing: inherit; cursor: pointer; }
.wrap { max-width: 1184px; margin: 0 auto; padding: 0 var(--pad-x); }
.nw { white-space: nowrap; }
svg { flex: none; }
p, li { text-wrap: pretty; }
.only-lg { display: none; }

/* ---------- TENKA LAB バー（作品例・デモ 共通） ---------- */
.tl-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 8px 16px; background: #1B2A41; color: #FFFFFF;
  font-family: var(--font-body); font-size: 13px; line-height: 1.5; letter-spacing: .04em;
}
.tl-bar__text { margin: 0; }
.tl-bar strong { font-weight: 700; }
.tl-bar__back {
  flex: none; position: relative; color: #FFFFFF; font-weight: 700;
  text-decoration: underline; text-underline-offset: 3px;
}
.tl-bar__back:hover { color: #FFFFFF; text-decoration-thickness: 2px; }
.tl-bar__back::before { content: ""; position: absolute; inset: -15px -8px; }
.tl-bar__back::after { content: "→"; margin-left: 4px; }
.tl-bar__back:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
@media (min-width: 769px) { .tl-bar { padding: 8px 32px; } }

.btn-text {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; min-width: 64px; padding: 0 4px;
  border: 0; background: none; color: var(--c-main); font-size: var(--f-body); font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
}
.btn-text:hover { text-decoration-thickness: 2px; }

/* ---------- ヘッダー ---------- */
.hd { background: #FFFFFF; border-bottom: 1px solid var(--c-line); }
.hd__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 12px; padding-top: 4px; padding-bottom: 8px; }
.hd__logo { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; min-width: 0; color: var(--c-main); }
.hd__mark { width: 28px; height: 28px; color: var(--c-main); }
.hd__name { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: .04em; }
.hd__demo {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; border-radius: 14px;
  background: var(--c-soft); color: var(--c-text); font-size: 14px; font-weight: 700; line-height: 1.4;
}

/* ---------- イントロ ---------- */
.intro { padding: 32px 0 32px; }
.h1 { color: var(--c-main); font-size: var(--f-h1); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }
.intro__lead { margin-top: 12px; max-width: 36em; font-size: var(--f-body); line-height: 1.8; }
.intro__note { margin-top: 8px; max-width: 36em; color: var(--c-sub); font-size: var(--f-note); line-height: 1.6; }
.intro__now {
  display: inline-flex; flex-wrap: wrap; margin-top: 16px; padding: 8px 12px;
  background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 8px;
  color: var(--c-text); font-size: var(--f-note); font-weight: 700; line-height: 1.6;
}

/* ---------- 見本の段 ---------- */
.demo-sec { padding: 0 0 var(--gap-sec); }
.demo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.phone-area, .sheet-area { min-width: 0; }
.phone-area__h { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.phone { border: 2px solid var(--c-text); border-radius: 24px; overflow: hidden; background: var(--c-base); }
.phone__notch { display: none; }
.phone__screen:focus-visible { outline-offset: -3px; }
.sec-h2 { color: var(--c-main); font-size: var(--f-h2); font-weight: 700; line-height: 1.4; letter-spacing: .04em; }

/* 速報の帯（1024px まで。見本の段の中で上に貼り付く） */
.sheet-live {
  position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 48px; margin: 12px calc(var(--pad-x) * -1) 0; padding: 0 16px; background: var(--c-main); color: #FFFFFF;
  font-size: 15px; font-weight: 700; line-height: 1.4;
}
.sheet-live__t { min-width: 0; }
.sheet-live__err { display: inline-flex; align-items: center; gap: 4px; flex: none; white-space: nowrap; }
.sheet-lead { margin-top: 16px; max-width: 36em; font-size: var(--f-body); line-height: 1.8; }
.sheet-btns { display: grid; gap: 8px; margin-top: 16px; }
.sheet-btns .btn-sub { width: 100%; }
.sheet-tabs { display: flex; gap: 8px; margin-top: 24px; }
.sheet-tab {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; min-width: 88px; padding: 0 16px; margin: 0;
  border: 1px solid var(--c-sub); border-radius: 8px 8px 0 0; background: #FFFFFF; color: var(--c-main);
  font-size: 16px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.sheet-tab:hover { background: var(--c-soft); }
.sheet-tab[aria-selected="true"], .sheet-tab[aria-selected="true"]:hover { background: var(--c-main); border-color: var(--c-main); color: #FFFFFF; }
.sheet-tab[aria-selected="true"]:focus-visible { outline-color: var(--c-main); }
.sheet-panel { margin-top: 12px; }
.sheet-filter { display: flex; gap: 8px; margin-bottom: 12px; }
.sheet-filter__b { min-width: 88px; }
.sheet-filter__b[aria-pressed="true"], .sheet-filter__b[aria-pressed="true"]:hover { background: var(--c-main); color: #FFFFFF; }
.sheet { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; overflow: hidden; }
.sheet:focus-visible { outline-offset: 2px; }
.sheet__table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--f-cell); line-height: 1.4; }
.sheet__table th, .sheet__table td { height: 48px; padding: 2px 4px; border-bottom: 1px solid var(--c-line); border-right: 1px solid var(--c-line); vertical-align: middle; text-align: left; }
.sheet__table th:last-child, .sheet__table td:last-child { border-right: 0; }
.sheet__table tbody tr:last-child > * { border-bottom: 0; }
.sheet__table thead th { position: sticky; top: 0; z-index: 1; background: var(--c-soft); font-size: var(--f-rowno); font-weight: 700; line-height: 1.2; white-space: nowrap; }
.sheet__table tbody th { background: var(--c-soft); font-size: var(--f-rowno); font-weight: 700; text-align: center; }
.sheet__table thead th:first-child { text-align: center; }
.c-no { width: 36px; }
.c-date { width: 100px; }
.c-cust { width: 72px; }
.c-ym { width: 120px; }
col.c-memo, th.c-memo, td.c-memo { display: none; }
.sheet__date { display: block; font-size: 15px; line-height: 1.3; white-space: nowrap; }
.sheet__memo { display: block; margin-top: 2px; color: var(--c-sub); font-size: 12px; line-height: 1.3; }
.sheet__raw { min-width: 0; font-size: 15px; line-height: 1.3; overflow-wrap: anywhere; }
.sheet__yet { color: var(--c-sub); font-size: 14px; }
.cell { display: flex; align-items: center; gap: 2px; }
.cell__err { display: none; width: 16px; height: 16px; color: var(--c-warn); }
.is-err .cell__err { display: block; }
.sheet__in {
  display: block; width: 100%; min-width: 0; height: 44px; padding: 0 8px; margin: 0;
  border: 1px solid var(--c-sub); border-radius: 4px; background: #FFFFFF; color: var(--c-text);
  font-family: var(--font-body); font-size: var(--f-cell); line-height: 1.2; text-align: right; font-variant-numeric: tabular-nums;
}
.sheet__in::placeholder { color: var(--c-sub); opacity: 1; }
td.is-err { background: var(--c-warn-bg); }
td.is-err .sheet__in { border: 2px solid var(--c-warn); background: var(--c-warn-bg); padding: 0 7px; }
td.is-err .sheet__raw { color: var(--c-text); }
td.is-err.cell-date { box-shadow: inset 0 0 0 2px var(--c-warn); }
.sheet-note { margin-top: 8px; color: var(--c-sub); font-size: var(--f-note); line-height: 1.6; }
.sheet-panel .sheet + .sheet-note { margin-top: 12px; }

/* ---------- 実際のお仕事では（TENKA LAB の層） ---------- */
.sec { padding: var(--gap-sec) 0; }
.sec--lab { border-top: 1px dashed var(--c-sub); }
.lab-tag {
  display: inline-flex; align-items: center; gap: .3em; height: 24px; padding: 0 8px; border-radius: 4px;
  background: var(--c-text); color: #FFFFFF; font-size: 12px; font-weight: 700; line-height: 1;
}
.lab-title { margin-top: 12px; font-size: var(--f-h2); font-weight: 700; line-height: 1.4; color: var(--c-main); letter-spacing: .04em; }
.lab-lead { margin-top: 16px; max-width: 36em; font-size: var(--f-body); }
.work-3 { display: grid; gap: 16px; margin-top: 32px; }
.work-3 > li { background: #FFFFFF; border: 1px solid var(--c-line); border-radius: 12px; padding: 24px; min-width: 0; }
.work-3 > li > svg { color: var(--c-main); }
.work-3 h3 { margin-top: 8px; color: var(--c-text); font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.work-3 ul, .work-check ul { margin-top: 8px; }
.work-3 ul li, .work-check li { position: relative; padding-left: 18px; font-size: var(--f-body); line-height: 1.7; }
.work-3 ul li + li, .work-check li + li { margin-top: 8px; }
.work-3 ul li::before, .work-check li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--c-main); }
.work-check { margin-top: 16px; padding: 16px; background: #FFFFFF; border: 1px dashed var(--c-sub); border-radius: 12px; }
.work-check h3 { color: var(--c-text); font-size: 18px; font-weight: 700; line-height: 1.5; letter-spacing: .04em; }
.work-check__note { margin-top: 12px; color: var(--c-sub); font-size: var(--f-note); line-height: 1.7; }
.lab-more { margin-top: 16px; }
.lab-more .btn-text { padding: 0; }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--c-main); color: #FFFFFF; font-size: 16px; line-height: 1.8;
  padding: 48px 0; text-align: center;
}
.site-footer p + p { margin-top: 16px; }
.site-footer :focus-visible { outline-color: #FFFFFF; }
/* 面は干しぶどう・字は白（9.05）。焦げ茶の面との差が小さいので白の枠を付ける */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; max-width: 360px; min-height: 52px;
  margin: 0 auto; border: 2px solid #FFFFFF; border-radius: 8px; background: var(--c-accent); color: #FFFFFF;
  font-size: 16px; font-weight: 700; text-decoration: none;
}
.btn:hover, .btn:active { background: var(--c-accent-hover); color: #FFFFFF; }
.copy { font-size: 13px; }

@media (forced-colors: active) {
  .sheet-tab[aria-selected="true"], .sheet-filter__b[aria-pressed="true"] { border-color: Highlight; }
}

/* ---------- 769px 以上 ---------- */
@media (min-width: 769px) {
  :root { --pad-x: 32px; --gap-sec: 64px; --f-h1: 30px; --f-h2: 22px; --a-pad: 16px; }
  .intro { padding: 48px 0 40px; }
  .phone-area { width: 399px; margin: 0 auto; }
  .phone-area__h { position: static; width: auto; height: auto; margin: 0 0 8px; overflow: visible; clip: auto; color: var(--c-sub); font-size: 14px; font-weight: 700; line-height: 1.5; text-align: center; }
  .phone { position: relative; border: 0; border-radius: 40px; padding: 24px 12px 12px; background: var(--c-text); }
  .phone__notch { display: block; position: absolute; top: 9px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 3px; background: var(--c-sub); }
  .phone__screen { width: 375px; border-radius: 28px; overflow: hidden; background: var(--c-base); }
  .sheet-live { margin-left: 0; margin-right: 0; border-radius: 0; }
  .sheet-btns { display: flex; flex-wrap: wrap; }
  .sheet-btns .btn-sub { width: auto; min-width: 200px; }
  col.c-memo { display: table-column; }
  th.c-memo, td.c-memo { display: table-cell; }
  .c-no { width: 48px; }
  .c-date { width: 136px; }
  .c-sales { width: 160px; }
  .c-cust { width: 104px; }
  .sheet__table th, .sheet__table td { padding: 2px 8px; }
  .sheet__memo { display: none; }
  td.c-memo { font-size: 15px; color: var(--c-text); }
  .work-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-3 > li { padding: 24px 20px; }
}

/* ---------- 1025px 以上：左に見本、右にスマホの枠（貼り付き） ---------- */
@media (min-width: 1025px) {
  :root { --f-body: 17px; --f-h1: 34px; --f-h2: 24px; }
  .only-sm { display: none; }
  .only-lg { display: inline; }
  .demo { grid-template-columns: minmax(0, 1fr) 400px; column-gap: 32px; align-items: start; }
  .sheet-area { grid-column: 1; grid-row: 1; }
  .phone-area { grid-column: 2; grid-row: 1; width: 400px; position: sticky; top: 16px; }
  .phone__screen { height: min(760px, calc(100vh - 64px)); overflow-y: auto; overscroll-behavior: contain; }
  .sheet-live { display: none; }
  .sheet { max-height: 720px; overflow-y: auto; }
}
@media (min-width: 1025px) and (max-width: 1199px) {
  .c-date { width: 124px; }
  .c-sales { width: 136px; }
  .c-cust { width: 88px; }
}

@media print {
  .tl-bar__back, .btn, .lab-more, .sheet-btns, .sheet-live { display: none !important; }
  body { background: none; }
  .site-footer, .tl-bar { background: none !important; color: #2E2414 !important; }
}
