/* ==========================================================
   あさみ カーテン案件アプリ — app.css（土台はゆい総合サービスの現場アプリ）
   色・書体はホームページ（style.css）と同じ変数を使う。
   スマホ優先。手袋でも押せる大きさ（最小 52px）を基準にする。
   ========================================================== */
:root {
  --ink: #111317;
  --ink-2: #1a1d23;
  --ink-3: #262a32;
  --ink-4: #333843;
  --paper: #f3efe7;
  --paper-2: #e8e1d4;
  --paper-3: #ddd4c3;
  --white: #fffdf8;
  --text: #1c1d20;
  --muted: #6b675f;
  --muted-2: #8c877d;
  --line: rgba(17, 19, 23, .10);
  --line-2: rgba(17, 19, 23, .16);
  --line-light: rgba(255, 253, 248, .14);
  --orange: #2f6f68;
  --orange-2: #3f8a81;
  --orange-soft: #dcebe8;
  --red: #d7262e;
  --red-soft: #fbe1e2;
  --green: #2c8a5a;
  --green-soft: #dcefe4;
  --blue: #2a6f97;
  --blue-soft: #dceaf2;
  --amber: #c98a12;
  --amber-soft: #f8ebcc;

  --f-mincho: "Shippori Mincho B1", "Yu Mincho", "Hiragino Mincho ProN", serif;
  --f-gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --f-en: "Bebas Neue", "Oswald", Impact, sans-serif;

  --r: 18px;
  --r-sm: 12px;
  --r-lg: 26px;
  --shadow-1: 0 1px 2px rgba(17,19,23,.06), 0 2px 8px rgba(17,19,23,.05);
  --shadow-2: 0 2px 6px rgba(17,19,23,.08), 0 12px 32px rgba(17,19,23,.10);
  --shadow-3: 0 10px 30px rgba(17,19,23,.18), 0 30px 80px rgba(17,19,23,.22);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-spring: cubic-bezier(.3, 1.4, .5, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tab-h: 74px;
  --top-h: 60px;
  --side-w: 272px;
}

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-gothic);
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: .03em;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
/* 塗膜のような細かい粒子（ホームページと同じ） */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; touch-action: manipulation; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.en { font-family: var(--f-en); letter-spacing: .06em; font-weight: 400; }
.mincho { font-family: var(--f-mincho); }
.muted { color: var(--muted); }
.num { font-family: var(--f-en); letter-spacing: .02em; font-variant-numeric: tabular-nums; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 18px; height: 18px; }
svg.i.lg { width: 28px; height: 28px; }
svg.i.xl { width: 34px; height: 34px; }

/* ---------- 起動画面 ---------- */
.boot {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--ink); color: var(--white); transition: opacity .5s var(--ease), visibility .5s;
}
.boot.out { opacity: 0; visibility: hidden; }
.boot__in { display: grid; justify-items: center; gap: 18px; }
.boot__mark { width: 84px; height: 84px; }
.boot__mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: stroke .7s var(--ease) forwards; }
.boot__mark path:nth-child(2) { animation-delay: .16s; }
.boot__mark path:nth-child(3) { animation-delay: .32s; }
.boot__name { font-family: var(--f-en); font-size: 15px; letter-spacing: .32em; opacity: .7; }
@keyframes stroke { to { stroke-dashoffset: 0; } }

/* ---------- レイアウト ---------- */
.app { min-height: 100dvh; }
.main { min-height: 100dvh; padding-bottom: calc(var(--tab-h) + var(--safe-b) + 24px); }
.page { padding: 8px 16px 0; max-width: 560px; margin: 0 auto; animation: pageIn .42s var(--ease) both; }
.page--wide { max-width: 1180px; }
.page--flush { padding: 0; max-width: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 画面切り替え時に塗料が横切る（ホームページのヒーローと同じ演出） */
.swipe { position: fixed; inset: 0; z-index: 800; pointer-events: none; transform: translateX(-102%); }
.swipe.go { animation: swipe .62s var(--ease) forwards; }
@keyframes swipe { 0% { transform: translateX(-102%); } 48% { transform: translateX(0); } 100% { transform: translateX(102%); } }

/* ---------- 上部バー ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding: calc(var(--safe-t) + 10px) 16px 10px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(243, 239, 231, .86);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar__title { flex: 1; min-width: 0; }
.topbar__title h1 { font-size: 18px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__title small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .12em; line-height: 1.3; }
.iconbtn {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
  color: var(--ink); transition: background .2s, transform .15s;
}
.iconbtn:active { transform: scale(.92); }
.iconbtn:hover { background: rgba(17,19,23,.06); }
.iconbtn--ink { background: var(--ink); color: var(--white); }
.iconbtn--ink:hover { background: var(--ink-3); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__txt b { display: block; font-size: 15px; letter-spacing: .14em; line-height: 1.15; }
.brand__txt span { display: block; font-family: var(--f-en); font-size: 11px; letter-spacing: .26em; color: var(--muted); line-height: 1.2; }

/* ---------- 下部タブ ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: center;
  background: rgba(255, 253, 248, .92);
  backdrop-filter: saturate(1.5) blur(18px); -webkit-backdrop-filter: saturate(1.5) blur(18px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(17,19,23,.05);
}
.tab {
  height: 100%; display: grid; justify-items: center; align-content: center; gap: 3px;
  color: var(--muted-2); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; position: relative;
  transition: color .2s;
}
.tab svg.i { width: 24px; height: 24px; }
.tab.on { color: var(--ink); }
.tab.on::before {
  content: ""; position: absolute; top: 7px; width: 22px; height: 3px; border-radius: 3px; background: var(--orange);
}
.tab--fab { align-content: start; }
.fab {
  width: 64px; height: 64px; margin-top: -26px; border-radius: 50%;
  display: grid; place-items: center; color: var(--white);
  background: radial-gradient(circle at 30% 25%, var(--orange-2), var(--orange) 60%, #d4560e);
  box-shadow: 0 10px 24px rgba(47,111,104,.45), 0 0 0 6px var(--paper), inset 0 -3px 0 rgba(0,0,0,.12);
  transition: transform .2s var(--ease-spring);
}
.fab svg.i { width: 30px; height: 30px; stroke-width: 2; }
.tab--fab:active .fab { transform: scale(.9); }
.tab--fab span { margin-top: 4px; color: var(--ink); }

/* ---------- PC：左メニュー ---------- */
.side { display: none; }
@media (min-width: 1100px) {
  .app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .tabbar { display: none; }
  .main { padding-bottom: 48px; }
  .page { padding: 12px 40px 0; max-width: 720px; }
  .page--wide { max-width: 1240px; }
  .topbar { padding: 18px 40px 14px; }
  .topbar .brand { visibility: hidden; } /* PCでは左メニューにロゴがあるので二重に出さない */
  .side {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh;
    background: var(--ink); color: var(--white); padding: 26px 18px 20px; gap: 6px; overflow-y: auto;
  }
  .side .brand__txt span { color: var(--muted-light, #a9a49a); }
  .side__group { margin: 18px 10px 6px; font-family: var(--f-en); font-size: 12px; letter-spacing: .28em; color: rgba(255,253,248,.42); }
  .side__item {
    display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
    color: rgba(255,253,248,.78); font-weight: 500; font-size: 14px; transition: background .2s, color .2s;
  }
  .side__item:hover { background: rgba(255,253,248,.06); color: var(--white); }
  .side__item.on { background: rgba(255,253,248,.10); color: var(--white); }
  .side__item.on svg.i { color: var(--orange); }
  .side__item .pl { margin-left: auto; font-family: var(--f-en); font-size: 11px; letter-spacing: .14em; padding: 0 7px; border-radius: 6px; background: rgba(47,111,104,.18); color: #9fd3cb; }
  .side__foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--line-light); font-size: 11px; color: rgba(255,253,248,.45); line-height: 1.7; }
  .side__phone {
    margin: 14px 4px 0; display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px;
    background: linear-gradient(135deg, rgba(47,111,104,.22), rgba(232,176,74,.14)); border: 1px solid rgba(47,111,104,.35);
    color: var(--white); text-align: left; font-size: 13px; line-height: 1.5;
  }
  .side__phone b { display: block; font-size: 14px; }
}

/* ---------- カード・汎用 ---------- */
.card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow-1); border: 1px solid var(--line); }
.card + .card, .card + .sec, .sec + .card, .sec + .sec { margin-top: 14px; }
.card__pad { padding: 18px; }
.card__head { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card__head h2, .sec__head h2 { font-size: 15px; font-weight: 700; letter-spacing: .08em; }
.card__head .link, .sec__head .link { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--orange); display: inline-flex; align-items: center; gap: 2px; }
.sec { margin-top: 22px; }
.sec__head { display: flex; align-items: center; gap: 10px; margin: 0 2px 10px; }
.sec__head .en { font-size: 13px; letter-spacing: .24em; color: var(--orange); }
.eyebrow { font-family: var(--f-en); font-size: 13px; letter-spacing: .26em; color: var(--orange); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }
.note { font-size: 12px; color: var(--muted); line-height: 1.7; }
.note--box { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; display: flex; gap: 8px; align-items: flex-start; }
.note--box svg.i { width: 18px; height: 18px; margin-top: 2px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.row { display: flex; align-items: center; gap: 10px; }
.row--between { justify-content: space-between; }
.stack > * + * { margin-top: 10px; }
.hide { display: none !important; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 20px; border-radius: 16px; font-weight: 700; letter-spacing: .08em; font-size: 15px;
  transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn--block { display: flex; width: 100%; }
.btn--primary { background: var(--orange); color: var(--white); box-shadow: 0 8px 18px rgba(47,111,104,.32), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn--primary:hover { background: #f27526; }
.btn--ink { background: var(--ink); color: var(--white); box-shadow: 0 8px 18px rgba(17,19,23,.22); }
.btn--ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line-2); }
.btn--soft { background: var(--paper-2); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ---------- チップ ---------- */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; scroll-snap-type: x proximity; }
.chips--scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none; scroll-snap-align: start;
  min-height: 40px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; letter-spacing: .04em;
  background: var(--white); border: 1.5px solid var(--line-2); color: var(--ink); white-space: nowrap; transition: all .18s;
}
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip .cnt { font-family: var(--f-en); font-size: 13px; opacity: .6; letter-spacing: .04em; }
.chip--done { border-color: rgba(44,138,90,.35); }
.chip--done::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.chip.on.chip--done::after { background: #6fdc9f; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; background: var(--paper-2); color: var(--ink); line-height: 1.6; white-space: nowrap; }
.tag--o { background: var(--orange-soft); color: #b04a0d; }
.tag--g { background: var(--green-soft); color: #1d6a43; }
.tag--r { background: var(--red-soft); color: #a3161d; }
.tag--b { background: var(--blue-soft); color: #1d5677; }
.tag--a { background: var(--amber-soft); color: #8a5c00; }
.tag--ink { background: var(--ink); color: var(--white); }

/* ---------- ホーム ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: var(--white);
  background: var(--ink); padding: 20px 20px 18px; box-shadow: var(--shadow-2); isolation: isolate;
}
.hero::before {
  content: ""; position: absolute; inset: auto -20% -60% 30%; height: 220px; z-index: -1;
  background: radial-gradient(closest-side, rgba(47,111,104,.55), transparent); filter: blur(10px);
}
.hero__strokes { position: absolute; right: -6px; top: 18px; width: 130px; opacity: .9; z-index: -1; }
.hero__date { font-family: var(--f-en); font-size: 14px; letter-spacing: .24em; color: rgba(255,253,248,.6); }
.hero__hello { font-size: 21px; font-weight: 700; margin-top: 2px; letter-spacing: .06em; }
.hero__hello small { font-size: 13px; font-weight: 500; color: rgba(255,253,248,.7); margin-left: 4px; }
.wx { margin-top: 16px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(255,253,248,.07); border: 1px solid var(--line-light); }
.wx__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,253,248,.08); }
.wx__icon svg.i { width: 30px; height: 30px; }
.wx__main { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wx__t { font-family: var(--f-en); font-size: 38px; line-height: 1; letter-spacing: .02em; }
.wx__t small { font-size: 18px; margin-left: 2px; opacity: .7; }
.wx__sub { font-size: 12px; color: rgba(255,253,248,.7); line-height: 1.5; }
.wx__judge { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px dashed var(--line-light); font-size: 13px; }
.judge { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .08em; }
.judge--ok { background: rgba(44,138,90,.22); color: #8ff0bb; }
.judge--ng { background: rgba(232,176,74,.25); color: #ffb3b6; }
.judge--warn { background: rgba(201,138,18,.25); color: #ffd98a; }
.judge i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(255,255,255,.08); }
.judge--ok i { animation: pulse 1.8s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(143,240,187,.5); } 50% { box-shadow: 0 0 0 6px rgba(143,240,187,0); } }

.mods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mod {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; min-height: 152px;
  padding: 16px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  text-align: left; transition: transform .2s var(--ease), box-shadow .2s;
}
.mod:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.mod:active { transform: scale(.97); }
.mod__ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--white); background: var(--c, var(--ink)); box-shadow: 0 8px 16px -6px var(--c, var(--ink)); }
.mod__ic svg.i { width: 24px; height: 24px; }
.mod b { font-size: 15.5px; letter-spacing: .06em; line-height: 1.35; }
.mod p { font-size: 12px; color: var(--muted); line-height: 1.55; }
.mod__pl { position: absolute; top: 14px; right: 14px; font-family: var(--f-en); font-size: 11px; letter-spacing: .16em; color: var(--muted-2); }
.mod__badge { position: absolute; top: 12px; right: 12px; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.mod--hero { grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; background: var(--ink); color: var(--white); border-color: var(--ink); }
.mod--hero p { color: rgba(255,253,248,.65); }
.mod--hero .mod__ic { width: 58px; height: 58px; border-radius: 18px; }
.mod--hero .mod__ic svg.i { width: 30px; height: 30px; }
.mod--hero .go { margin-left: auto; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,253,248,.08); }
.mod--off { opacity: .45; }
@media (min-width: 720px) { .mods { grid-template-columns: repeat(3, 1fr); } }

/* 進行中の現場カード（横スクロール） */
.hs { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x mandatory; }
.hs::-webkit-scrollbar { display: none; }
.sitecard {
  flex: 0 0 82%; max-width: 340px; scroll-snap-align: start; border-radius: var(--r); overflow: hidden;
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-1); text-align: left;
}
.sitecard__img { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2) center / cover no-repeat; }
.sitecard__img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(17,19,23,.65)); }
.sitecard__no { position: absolute; left: 12px; top: 12px; z-index: 1; }
.sitecard__ttl { position: absolute; left: 14px; right: 14px; bottom: 10px; z-index: 1; color: var(--white); }
.sitecard__ttl b { display: block; font-size: 16px; letter-spacing: .06em; line-height: 1.35; }
.sitecard__ttl span { font-size: 12px; opacity: .85; }
.sitecard__body { padding: 12px 14px 14px; }

/* ---------- 工程ステッパー ---------- */
.stepper { display: flex; gap: 3px; margin: 10px 0 6px; }
.stepper i { flex: 1; height: 6px; border-radius: 3px; background: var(--paper-2); position: relative; }
.stepper i.done { background: var(--ink); }
.stepper i.now { background: var(--orange); }
.stepper i.now::after { content: ""; position: absolute; inset: -3px; border-radius: 6px; border: 2px solid rgba(47,111,104,.35); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0; } }
.stepper-lbl { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.stepper-lbl b { color: var(--ink); }

/* 3回塗りメーター（ロゴの3本線） */
.coat { display: grid; gap: 4px; width: 46px; }
.coat i { height: 6px; border-radius: 3px; background: var(--paper-2); transition: background .4s var(--ease), width .4s var(--ease); }
.coat i:nth-child(1) { width: 100%; }
.coat i:nth-child(2) { width: 78%; }
.coat i:nth-child(3) { width: 54%; }
.coat i.on:nth-child(1) { background: var(--orange); }
.coat i.on:nth-child(2) { background: var(--red); }
.coat i.on:nth-child(3) { background: var(--ink); }
.coatgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.coatcell { background: var(--paper); border-radius: 12px; padding: 10px; display: grid; gap: 8px; justify-items: start; }
.coatcell b { font-size: 12.5px; letter-spacing: .08em; }
.coatcell small { font-size: 11px; color: var(--muted); }

/* ---------- リスト ---------- */
.list { background: var(--white); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 60px; position: relative; width: 100%; text-align: left; }
.li + .li { border-top: 1px solid var(--line); }
button.li:active, a.li:active { background: var(--paper); }
.li__ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--paper-2); flex: none; }
.li__body { flex: 1; min-width: 0; }
.li__body b { display: block; font-size: 14.5px; letter-spacing: .04em; line-height: 1.4; }
.li__body span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.li__body span.tag { display: inline-flex; color: var(--ink); }
.li__end { margin-left: auto; text-align: right; flex: none; }
.li .chev { color: var(--muted-2); }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-2); display: grid; place-items: center; flex: none; }
.check.on { background: var(--green); border-color: var(--green); color: #fff; }
.check.on svg.i { width: 16px; height: 16px; stroke-width: 3; }
.check.miss { border-color: var(--red); border-style: dashed; }

.avatar {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  color: #fff; font-weight: 700; font-size: 14px; background: var(--c, var(--ink)); border: 2px solid var(--white);
}
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -10px; }
.avatar--lg { width: 52px; height: 52px; font-size: 20px; }

/* ---------- 出退勤 ---------- */
.clock {
  border-radius: var(--r-lg); background: var(--ink); color: var(--white); padding: 22px 20px 20px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-2); isolation: isolate;
}
.clock::before { content: ""; position: absolute; left: -30%; top: -50%; width: 120%; height: 160%; z-index: -1; background: radial-gradient(closest-side, var(--glow, rgba(47,111,104,.25)), transparent 70%); }
.clock__who { display: flex; align-items: center; gap: 12px; }
.clock__who b { font-size: 17px; letter-spacing: .08em; display: block; line-height: 1.3; }
.clock__who span { font-size: 12px; color: rgba(255,253,248,.62); }
.clock__time { font-family: var(--f-en); font-size: 76px; line-height: .95; letter-spacing: .02em; margin: 18px 0 2px; font-variant-numeric: tabular-nums; }
.clock__time small { font-size: 30px; opacity: .45; margin-left: 4px; }
.clock__date { font-size: 13px; color: rgba(255,253,248,.62); letter-spacing: .12em; }
.state { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 6px 14px 6px 10px; border-radius: 999px; font-weight: 700; font-size: 13px; letter-spacing: .1em; background: rgba(255,253,248,.08); }
.state i { width: 9px; height: 9px; border-radius: 50%; background: var(--sc, #a9a49a); box-shadow: 0 0 12px var(--sc, transparent); }
.siteSel { margin-top: 16px; display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 16px; background: rgba(255,253,248,.07); border: 1px solid var(--line-light); text-align: left; color: var(--white); }
.siteSel b { display: block; font-size: 14.5px; letter-spacing: .04em; }
.siteSel span { font-size: 11.5px; color: rgba(255,253,248,.6); }
.geo { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; padding: 2px 8px; border-radius: 999px; background: rgba(44,138,90,.25); color: #9ff0c4; margin-top: 4px; }
.punches { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.punch {
  min-height: 92px; border-radius: 20px; display: grid; place-items: center; align-content: center; gap: 4px;
  font-weight: 700; font-size: 17px; letter-spacing: .14em; color: var(--white); background: var(--pc, var(--ink-3));
  box-shadow: inset 0 -4px 0 rgba(0,0,0,.18), 0 10px 20px -10px var(--pc, #000); transition: transform .15s, opacity .2s, filter .2s;
}
.punch small { font-family: var(--f-en); font-size: 12px; letter-spacing: .3em; opacity: .75; font-weight: 400; }
.punch:active { transform: scale(.96); }
.punch[disabled] { opacity: .28; filter: grayscale(1); pointer-events: none; box-shadow: none; }
.punch--in { --pc: #2c8a5a; grid-column: 1 / -1; min-height: 108px; font-size: 22px; }
.punch--out { --pc: var(--red); }
.punch--break { --pc: #5c6470; }
.punch--back { --pc: var(--blue); }
.punch--rain { --pc: #3d5a80; grid-column: 1 / -1; min-height: 60px; font-size: 15px; display: flex; flex-direction: row; justify-content: center; align-items: center; gap: 10px; }
.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--paper-2); }
.tl { position: relative; padding: 8px 0; display: flex; gap: 10px; align-items: baseline; }
.tl::before { content: ""; position: absolute; left: -20px; top: 15px; width: 12px; height: 12px; border-radius: 50%; background: var(--white); border: 3px solid var(--tc, var(--ink)); }
.tl b { font-family: var(--f-en); font-size: 20px; letter-spacing: .04em; width: 56px; flex: none; }
.tl span { font-size: 13.5px; }
.tl small { font-size: 11.5px; color: var(--muted); margin-left: auto; }

/* ---------- 表 ---------- */
.tbl-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--white); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; white-space: nowrap; }
.tbl th { text-align: left; font-weight: 700; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); padding: 11px 14px; background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { font-size: 16px; }

/* ---------- セグメント・タブ ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; gap: 4px; border-radius: 16px; background: var(--paper-2); }
.seg > a { display: grid; }
.seg button { width: 100%; white-space: nowrap; min-height: 42px; border-radius: 12px; font-weight: 700; font-size: 13.5px; letter-spacing: .06em; color: var(--muted); transition: all .2s; }
.seg button.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- 写真グリッド ---------- */
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
@media (min-width: 720px) { .ph-grid { grid-template-columns: repeat(5, 1fr); gap: 6px; } }
@media (min-width: 1100px) { .ph-grid { grid-template-columns: repeat(6, 1fr); } }
.ph { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 6px; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.ph:hover img { transform: scale(1.04); }
.ph__lbl { position: absolute; left: 5px; bottom: 5px; font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 5px; background: rgba(17,19,23,.72); color: #fff; letter-spacing: .04em; backdrop-filter: blur(4px); }
.ph__star { position: absolute; right: 5px; top: 5px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(17,19,23,.6); color: #ffc46b; }
.ph__star svg.i { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.ph__new { position: absolute; left: 5px; top: 5px; font-family: var(--f-en); font-size: 11px; letter-spacing: .12em; padding: 0 6px; border-radius: 5px; background: var(--orange); color: #fff; }
.ph__pend { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(17,19,23,.45); color: #fff; font-size: 11px; font-weight: 700; }
.ph.sel::after { content: ""; position: absolute; inset: 0; border: 3px solid var(--orange); border-radius: 6px; }
.daygrp { margin-top: 18px; }
.daygrp h3 { font-size: 13px; font-weight: 700; letter-spacing: .08em; margin: 0 2px 8px; display: flex; gap: 10px; align-items: baseline; }
.daygrp h3 small { color: var(--muted); font-weight: 500; }

/* ---------- ボトムシート ---------- */
.scrim { position: fixed; inset: 0; z-index: 300; background: rgba(17,19,23,.48); opacity: 0; transition: opacity .3s; backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 310; max-height: 92dvh; overflow: auto;
  background: var(--paper); border-radius: 26px 26px 0 0; padding: 10px 18px calc(22px + var(--safe-b));
  transform: translateY(105%); transition: transform .42s var(--ease); box-shadow: var(--shadow-3);
}
.sheet.on { transform: none; }
.sheet__grab { width: 44px; height: 5px; border-radius: 3px; background: var(--paper-3); margin: 0 auto 12px; }
.sheet__title { font-size: 18px; font-weight: 700; letter-spacing: .06em; margin-bottom: 4px; }
.sheet__sub { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; }
@media (min-width: 720px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(560px, 92vw); border-radius: 26px; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .35s var(--ease), opacity .25s; padding-bottom: 22px; }
  .sheet.on { transform: translate(-50%, -50%); opacity: 1; }
  .sheet__grab { display: none; }
}

/* ---------- 入力 ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; min-height: 52px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--white);
  padding: 12px 14px; font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(47,111,104,.14); }
.switch { position: relative; width: 52px; height: 32px; flex: none; }
.switch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 16px; background: var(--paper-3); transition: background .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .25s var(--ease-spring); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(20px); }

/* ---------- トースト ---------- */
.toasts { position: fixed; left: 0; right: 0; top: calc(var(--safe-t) + 12px); z-index: 950; display: grid; justify-items: center; gap: 8px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 440px); padding: 12px 18px 12px 14px; border-radius: 16px;
  background: var(--ink); color: var(--white); font-weight: 700; font-size: 14px; letter-spacing: .04em; box-shadow: var(--shadow-3);
  animation: toastIn .45s var(--ease-spring) both;
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast svg.i { color: #8ff0bb; }
.toast--warn svg.i { color: #ffd98a; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-10px); } }

/* ---------- カメラ ---------- */
.cam { position: fixed; inset: 0; z-index: 400; background: #000; color: #fff; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
.cam__top { position: relative; z-index: 3; padding: calc(var(--safe-t) + 8px) 12px 10px; background: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.35)); }
.cam__bar { display: flex; align-items: center; gap: 8px; }
.cam__bar .iconbtn { color: #fff; background: rgba(255,255,255,.1); }
.cam__site { flex: 1; min-width: 0; }
.cam__site b { display: block; font-size: 14px; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cam__site span { font-size: 11px; opacity: .7; letter-spacing: .1em; }
.cam .chips--scroll { margin: 10px -12px 0; padding: 0 12px 2px; }
.cam .chip { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.16); color: #fff; min-height: 38px; backdrop-filter: blur(6px); }
.cam .chip.on { background: var(--orange); border-color: var(--orange); }
.cam .chip--done::after { background: #6fdc9f; }
.cam__shots { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 8px -12px 0; padding: 0 12px; }
.cam__shots::-webkit-scrollbar { display: none; }
.shot { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border-radius: 10px; font-size: 12px; font-weight: 700; background: rgba(255,255,255,.08); border: 1.5px dashed rgba(255,255,255,.28); color: rgba(255,255,255,.85); }
.shot i { width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255,255,255,.5); font-style: normal; font-size: 10px; }
.shot.done { border-style: solid; border-color: rgba(111,220,159,.5); color: #b9f5d2; }
.shot.done i { background: #2c8a5a; border-color: #2c8a5a; }
.shot.on { border-style: solid; border-color: var(--orange); background: rgba(47,111,104,.22); color: #fff; }
.cam__view { position: relative; overflow: hidden; background: #0b0c0e; }
.cam__view video, .cam__view .cam__still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam__ghost { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; mix-blend-mode: screen; pointer-events: none; transition: opacity .2s; }
.cam__ghostlbl { position: absolute; left: 12px; top: 12px; z-index: 2; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 8px; background: rgba(47,111,104,.85); letter-spacing: .06em; }
.cam__grid { position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    linear-gradient(90deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(180deg, transparent calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% - .5px), rgba(255,255,255,.35) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% - .5px), rgba(255,255,255,.35) calc(66.66% + .5px), transparent calc(66.66% + .5px));
}
.cam__level { position: absolute; left: 50%; top: 50%; width: 120px; height: 2px; margin-left: -60px; background: rgba(255,255,255,.7); z-index: 2; transition: transform .1s linear, background .2s; border-radius: 2px; }
.cam__level.ok { background: #6fdc9f; box-shadow: 0 0 10px #6fdc9f; }
.cam__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; z-index: 1; }
.cam__empty p { font-size: 13px; opacity: .8; margin: 10px 0 18px; line-height: 1.7; }
.board {
  position: absolute; z-index: 3; left: 12px; bottom: 12px; width: 52%; max-width: 250px; touch-action: none; cursor: grab;
  background: #1e4d36; border: 3px solid #c9b48a; border-radius: 4px; color: #fff; font-size: 9.5px; line-height: 1.3;
  box-shadow: 0 6px 16px rgba(0,0,0,.4);
}
.board table { width: 100%; border-collapse: collapse; }
.board th, .board td { border: 1px solid rgba(255,255,255,.55); padding: 2px 5px; text-align: left; font-weight: 500; vertical-align: top; }
.board th { width: 30%; white-space: nowrap; font-weight: 700; }
.board td { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 0; }
.cam__tools { position: absolute; right: 10px; top: 10px; z-index: 4; display: grid; gap: 22px; }
.tool { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.14); position: relative; }
.tool.on { background: rgba(47,111,104,.9); border-color: transparent; }
.tool small { position: absolute; bottom: -15px; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; white-space: nowrap; text-shadow: 0 1px 3px #000; }
.ghostRange { position: absolute; left: 12px; top: 44px; z-index: 4; width: 150px; accent-color: var(--orange); }
.cam__bottom { position: relative; z-index: 3; padding: 14px 18px calc(18px + var(--safe-b)); background: linear-gradient(0deg, rgba(0,0,0,.9), rgba(0,0,0,.55)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.shutter { width: 82px; height: 82px; border-radius: 50%; display: grid; place-items: center; border: 5px solid rgba(255,255,255,.92); transition: transform .12s; }
.shutter i { width: 64px; height: 64px; border-radius: 50%; background: #fff; transition: transform .12s, background .2s; }
.shutter:active i { transform: scale(.86); background: var(--orange); }
.tray { justify-self: start; display: flex; align-items: center; gap: 10px; }
.tray__thumb { width: 52px; height: 52px; border-radius: 12px; overflow: hidden; border: 2px solid #fff; background: #222; position: relative; }
.tray__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tray__n { position: absolute; right: -6px; top: -6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--orange); font-size: 12px; font-weight: 700; display: grid; place-items: center; padding: 0 6px; border: 2px solid #000; }
.cam__send { justify-self: end; }
.cam__send .btn { min-height: 52px; border-radius: 26px; padding: 0 18px; }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; z-index: 5; pointer-events: none; }
.flash.go { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.cam__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 6px 14px; border-radius: 999px; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); white-space: nowrap; }

/* 送信の進捗 */
.send { position: fixed; inset: 0; z-index: 450; display: grid; place-items: center; background: rgba(17,19,23,.82); backdrop-filter: blur(8px); color: #fff; }
.send__box { width: min(340px, 86vw); text-align: center; }
.send__ring { width: 96px; height: 96px; margin: 0 auto 18px; }
.send__ring circle { fill: none; stroke-width: 6; }
.send__ring .bg { stroke: rgba(255,255,255,.12); }
.send__ring .fg { stroke: var(--orange); stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; transition: stroke-dashoffset .35s var(--ease); }
.send__ring .ok { stroke: #6fdc9f; stroke-width: 6; stroke-dasharray: 60; stroke-dashoffset: 60; }
.send.done .send__ring .ok { animation: check .45s var(--ease) forwards; }
@keyframes check { to { stroke-dashoffset: 0; } }
.send__list { text-align: left; margin-top: 16px; display: grid; gap: 6px; font-size: 12.5px; }
.send__list div { display: flex; gap: 8px; align-items: center; opacity: .35; transition: opacity .3s; }
.send__list div.on { opacity: 1; }
.send__list svg.i { width: 16px; height: 16px; color: #6fdc9f; }
.send__fn { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; background: rgba(255,255,255,.08); padding: 6px 10px; border-radius: 8px; margin-top: 10px; word-break: break-all; }

/* ---------- 写真ビューア・比較 ---------- */
.viewer { position: fixed; inset: 0; z-index: 420; background: rgba(10,11,13,.97); color: #fff; display: grid; grid-template-rows: auto 1fr auto; animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.viewer__top { padding: calc(var(--safe-t) + 8px) 10px 8px; display: flex; align-items: center; gap: 8px; }
.viewer__top .iconbtn { color: #fff; }
.viewer__img { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 8px; }
.viewer__img img { max-height: 100%; max-width: 100%; object-fit: contain; border-radius: 6px; }
.viewer__meta { padding: 12px 16px calc(16px + var(--safe-b)); background: rgba(255,255,255,.04); border-top: 1px solid rgba(255,255,255,.08); }
.viewer__meta .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.viewer__meta .tag { background: rgba(255,255,255,.1); color: #fff; }
.viewer__meta .fn { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; opacity: .65; margin-top: 8px; word-break: break-all; }
.viewer__acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.viewer__acts .btn { min-height: 44px; font-size: 13px; background: rgba(255,255,255,.1); color: #fff; }
.viewer__acts .btn.on { background: var(--orange); }
@media (min-width: 1100px) { .viewer { grid-template-columns: 1fr 360px; grid-template-rows: auto 1fr; } .viewer__top { grid-column: 1 / -1; } .viewer__meta { border-top: 0; border-left: 1px solid rgba(255,255,255,.08); } }

.ba { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 4 / 3; background: #222; user-select: none; touch-action: pan-y; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--x, 50%)); }
.ba__bar { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.4); }
.ba__knob { position: absolute; top: 50%; left: var(--x, 50%); width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 6px 16px rgba(0,0,0,.35); }
.ba__lbl { position: absolute; top: 12px; font-family: var(--f-en); font-size: 14px; letter-spacing: .2em; padding: 2px 10px; border-radius: 6px; background: rgba(17,19,23,.7); color: #fff; }
.ba__lbl--b { left: 12px; }
.ba__lbl--a { right: 12px; background: var(--orange); }

/* ---------- 発信の下書き ---------- */
.ai {
  position: relative; border-radius: var(--r); padding: 18px; color: var(--white); overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #1a1d23, #111317 60%); box-shadow: var(--shadow-2);
}
.ai::before { content: ""; position: absolute; inset: -40%; z-index: -1; background: conic-gradient(from 0deg, transparent, rgba(47,111,104,.35), transparent 30%, rgba(232,176,74,.25), transparent 60%); animation: spin 8s linear infinite; opacity: .7; }
.ai::after { content: ""; position: absolute; inset: 1px; border-radius: calc(var(--r) - 1px); background: linear-gradient(135deg, #1d2027, #121418 70%); z-index: -1; }
@keyframes spin { to { transform: rotate(1turn); } }
.ai h2 { font-size: 17px; letter-spacing: .06em; }
.ai p { font-size: 12.5px; color: rgba(255,253,248,.7); margin-top: 4px; }
.flow { display: flex; align-items: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.flow span { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 10px; background: rgba(255,253,248,.08); letter-spacing: .04em; }
.flow svg.i { width: 14px; height: 14px; opacity: .5; }
.dtabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 4px; }
.dtabs::-webkit-scrollbar { display: none; }
.dtab { flex: none; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line-2); font-weight: 700; font-size: 13.5px; }
.dtab.on { background: var(--ink); color: var(--white); border-color: var(--ink); }
.dtab .ok { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.draft { background: var(--white); border-radius: var(--r); border: 1px solid var(--line); padding: 18px; box-shadow: var(--shadow-1); }
.draft__media { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 14px; padding: 0 18px; }
.draft__media::-webkit-scrollbar { display: none; }
.draft__media figure { margin: 0; flex: none; width: 92px; position: relative; }
.draft__media img { width: 92px; height: 92px; object-fit: cover; border-radius: 10px; }
.draft__media figcaption { font-size: 10.5px; color: var(--muted); margin-top: 3px; text-align: center; line-height: 1.3; }
.draft__media .n { position: absolute; left: 5px; top: 5px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.draft__text { white-space: pre-wrap; font-size: 14px; line-height: 1.85; min-height: 120px; }
.draft__text h3 { font-size: 16.5px; line-height: 1.55; margin-bottom: 10px; font-family: var(--f-mincho); font-weight: 800; letter-spacing: .04em; }
.draft__text .h { display: block; font-weight: 700; margin: 12px 0 2px; color: var(--ink); }
.draft__text .ht { color: var(--blue); }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--orange); vertical-align: text-bottom; margin-left: 1px; animation: blink .8s infinite; }
.draft__meta { display: flex; gap: 8px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line-2); font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.draft__meta .btn { margin-left: auto; }
.shimmer { height: 12px; border-radius: 6px; margin: 10px 0; background: linear-gradient(90deg, var(--paper-2), var(--paper), var(--paper-2)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- ダッシュボード ---------- */
.dash { display: grid; gap: 14px; align-items: start; }
@media (min-width: 1100px) { .dash { grid-template-columns: repeat(12, 1fr); } .dash > .w4 { grid-column: span 4; } .dash > .w6 { grid-column: span 6; } .dash > .w8 { grid-column: span 8; } .dash > .w12 { grid-column: span 12; } .dash > .w3 { grid-column: span 3; } }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--white); border-radius: var(--r); border: 1px solid var(--line); padding: 14px 16px; box-shadow: var(--shadow-1); position: relative; overflow: hidden; }
.kpi small { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi b { display: block; font-family: var(--f-en); font-size: 40px; line-height: 1.05; margin-top: 6px; letter-spacing: .02em; }
.kpi b small { display: inline; font-size: 16px; color: var(--muted); letter-spacing: .04em; font-family: var(--f-gothic); }
.kpi--alert b { color: var(--red); }
.kpi::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--k, transparent); }
.chart { width: 100%; height: auto; }
.chart text { font-family: var(--f-gothic); font-size: 10px; fill: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.prog { height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.prog i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--orange), var(--red)); transition: width .8s var(--ease); }
.alert { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--red-soft); color: #7e1117; font-size: 13px; line-height: 1.6; }
.alert svg.i { width: 20px; height: 20px; margin-top: 1px; color: var(--red); }
.alert b { display: block; }
.alert--info { background: var(--blue-soft); color: #173f57; }
.alert--info svg.i { color: var(--blue); }
.alert--ok { background: var(--green-soft); color: #164d31; }
.alert--ok svg.i { color: var(--green); }

/* ---------- 現場詳細 ---------- */
.sitehero { position: relative; margin: 0 -16px; aspect-ratio: 16 / 10; max-height: 340px; width: calc(100% + 32px); background: var(--ink) center / cover; color: #fff; display: flex; align-items: flex-end; overflow: hidden; }
.sitehero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,19,23,.15), rgba(17,19,23,.85)); }
.sitehero__in { position: relative; z-index: 1; padding: 0 18px 18px; width: 100%; }
.sitehero__in h2 { font-size: 22px; letter-spacing: .06em; line-height: 1.35; margin-top: 6px; }
.sitehero__in p { font-size: 12.5px; opacity: .85; }
@media (min-width: 1100px) { .sitehero { margin: 0; width: 100%; border-radius: var(--r-lg); } }
.stepsList .li { min-height: 56px; }
.stepnum { font-family: var(--f-en); font-size: 20px; width: 30px; text-align: center; color: var(--muted-2); }
.stepnum.done { color: var(--green); }
.stepnum.now { color: var(--orange); }
.qrbox { display: grid; justify-items: center; gap: 10px; padding: 18px; background: var(--white); border-radius: var(--r); border: 1px solid var(--line); }
.qrbox canvas, .qrbox img, .qrbox svg { width: 200px; height: 200px; image-rendering: pixelated; }
.qrsticker { width: 100%; max-width: 320px; border-radius: 18px; overflow: hidden; border: 2px solid var(--ink); background: var(--white); }
.qrsticker__head { background: var(--ink); color: var(--white); padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.qrsticker__head b { font-size: 13px; letter-spacing: .14em; }
.qrsticker__body { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 14px; align-items: center; }
.qrsticker__body svg { width: 110px; height: 110px; }
.qrsticker__body b { display: block; font-size: 15px; line-height: 1.4; }
.qrsticker__body small { font-size: 11px; color: var(--muted); display: block; }
.qrsticker__foot { background: var(--orange); color: #fff; padding: 6px 14px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-align: center; }

/* ---------- 工事アルバム（お客様向け） ---------- */
.alb { background: var(--white); min-height: 100dvh; color: var(--text); }
.alb__hero { position: relative; height: 78dvh; min-height: 460px; max-height: 760px; color: #fff; overflow: hidden; }
.alb__hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: kb 18s ease-out both; }
@keyframes kb { from { transform: scale(1.12); } to { transform: scale(1); } }
.alb__hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,19,23,.35) 0%, rgba(17,19,23,.05) 35%, rgba(17,19,23,.82) 100%); }
.alb__brand { position: absolute; left: 20px; right: 20px; top: calc(var(--safe-t) + 18px); z-index: 1; display: flex; align-items: center; gap: 10px; }
.alb__brand b { font-size: 14px; letter-spacing: .2em; }
.alb__heroin { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 0 22px 34px; max-width: 760px; margin: 0 auto; }
.alb__heroin h1 { font-family: var(--f-mincho); font-weight: 800; font-size: clamp(28px, 7vw, 46px); line-height: 1.35; letter-spacing: .06em; margin-top: 10px; }
.alb__heroin p { font-size: 13.5px; opacity: .88; margin-top: 10px; line-height: 1.8; }
.alb__sec { padding: 56px 22px; max-width: 760px; margin: 0 auto; }
.alb__sec--paper { background: var(--paper); max-width: none; }
.alb__sec--paper > * { max-width: 716px; margin-left: auto; margin-right: auto; }
.alb__sec--ink { background: var(--ink); color: var(--white); max-width: none; }
.alb__sec--ink > * { max-width: 716px; margin-left: auto; margin-right: auto; }
.alb h2 { font-family: var(--f-mincho); font-weight: 800; font-size: clamp(22px, 5.4vw, 30px); line-height: 1.5; letter-spacing: .06em; margin: 10px 0 14px; }
.alb .lead { font-size: 14.5px; line-height: 2; color: var(--muted); }
.alb__sec--ink .lead { color: rgba(255,253,248,.72); }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 0; margin-top: 20px; border-top: 1px solid var(--line); }
.spec dt, .spec dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--muted); padding-right: 22px; font-size: 12.5px; letter-spacing: .1em; white-space: nowrap; }
.coats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.coats3 figure { margin: 0; }
.coats3 .im { aspect-ratio: 3 / 4; border-radius: 12px; overflow: hidden; background: #222; position: relative; }
.coats3 img { width: 100%; height: 100%; object-fit: cover; }
.coats3 .im span { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.75)); font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.coats3 figcaption { font-size: 11.5px; line-height: 1.6; color: rgba(255,253,248,.65); margin-top: 8px; }
.coats3 .bar { height: 4px; border-radius: 2px; margin-bottom: 8px; }
.atl { position: relative; margin-top: 28px; }
.atl__item { position: relative; padding-left: 34px; padding-bottom: 34px; }
.atl__item::before { content: ""; position: absolute; left: 9px; top: 12px; bottom: -6px; width: 2px; background: var(--paper-2); }
.atl__item:last-child::before { display: none; }
.atl__dot { position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 4px solid var(--c, var(--ink)); }
.atl__date { font-family: var(--f-en); font-size: 14px; letter-spacing: .14em; color: var(--muted); }
.atl__item h3 { font-size: 17px; letter-spacing: .08em; margin: 2px 0 4px; }
.atl__item p { font-size: 13px; color: var(--muted); line-height: 1.8; }
.atl__ph { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin-top: 12px; }
.atl__ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; cursor: zoom-in; }
.atl__ph img:first-child:nth-last-child(1) { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.review { text-align: center; }
.stars { display: inline-flex; gap: 6px; margin: 16px 0 8px; }
.stars button { width: 44px; height: 44px; color: var(--paper-3); transition: transform .2s var(--ease-spring), color .2s; }
.stars button.on { color: #f5a623; transform: scale(1.08); }
.stars svg { width: 44px; height: 44px; fill: currentColor; }
.alb__foot { padding: 40px 22px calc(40px + var(--safe-b)); background: var(--ink); color: rgba(255,253,248,.72); font-size: 12.5px; line-height: 1.9; text-align: center; }
.alb__foot b { display: block; color: var(--white); font-size: 16px; letter-spacing: .2em; margin: 10px 0 6px; }
.alb__demo { position: fixed; left: 12px; bottom: calc(12px + var(--safe-b)); z-index: 70; display: flex; gap: 8px; }
.alb__demo .btn { min-height: 44px; font-size: 12.5px; box-shadow: var(--shadow-2); }

/* ---------- 汎用アニメーション ---------- */
.rise { animation: rise .6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .1s; } .d3 { animation-delay: .15s; } .d4 { animation-delay: .2s; } .d5 { animation-delay: .25s; } .d6 { animation-delay: .3s; }
.countup { display: inline-block; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty svg.i { width: 40px; height: 40px; opacity: .4; margin: 0 auto 10px; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-en); font-size: 12px; letter-spacing: .2em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.demo-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.demo-badge.live i { background: var(--green); animation: pulse 1.8s infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  .tabbar, .side, .topbar, .toasts, .swipe { display: none !important; }
  body::after { display: none; }
}

/* ---------- ログイン ---------- */
.login { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--ink); background-image: radial-gradient(60% 40% at 10% 0%, rgba(47,111,104, .28), transparent 60%), radial-gradient(50% 40% at 100% 100%, rgba(232,176,74,.22), transparent 60%); }
.login__box { width: 100%; max-width: 440px; background: var(--white); color: var(--text); border-radius: 22px; padding: 26px 22px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.login__box h1 { font-size: 20px; letter-spacing: .06em; margin: 18px 0 6px; }
.login__brand { display: flex; align-items: center; gap: 12px; }
.login__brand b { display: block; font-size: 17px; letter-spacing: .08em; }
.login__brand span { display: block; font-family: var(--f-en); font-size: 11px; letter-spacing: .3em; color: var(--muted); }
.login .list { margin-top: 12px; }
.login .li { min-height: 60px; }

/* ---------- 見積もり ---------- */
.qt { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.qt th, .qt td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; text-align: left; }
.qt th { font-size: 11.5px; letter-spacing: .08em; color: var(--muted); font-weight: 700; background: var(--paper); }
.qt .qt__num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qt td small { display: block; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.qt tfoot td { border-bottom: 0; padding: 6px 10px; color: var(--muted); }
.qt tfoot .qt__grand td { font-weight: 700; color: var(--text); font-size: 15px; border-top: 2px solid var(--ink); padding-top: 10px; }
.qt__wrap { overflow-x: auto; padding: 0 18px; }
.qt__in { width: 100%; min-width: 120px; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 9px; font: inherit; font-size: 13.5px; background: var(--white); color: var(--text); }
.qt__in:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: transparent; }
.qt__in--note { margin-top: 4px; font-size: 12px; min-width: 120px; }
.qt__in--n { min-width: 72px; width: 96px; text-align: right; }
.qt__in--u { min-width: 64px; width: 72px; }
.qt__amt { font-weight: 700; }
.qtotal__big { font-size: 34px; font-weight: 700; letter-spacing: .02em; margin: 4px 0 8px; }
.qtotal__rows { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; margin: 0; font-size: 13px; }
.qtotal__rows dt { color: var(--muted); }
.qtotal__rows dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.qedit .seg button { font-size: 12px; padding: 0 6px; }
/* お客様が見る見積書（印刷対応） */
.qdoc { background: var(--paper); min-height: 100dvh; padding: 24px 12px 90px; color: var(--text); }
.qdoc__paper { max-width: 760px; margin: 0 auto; background: var(--white); border-radius: 16px; padding: 36px 32px; box-shadow: var(--shadow-2); }
.qdoc__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.qdoc__head h1 { font-size: 26px; letter-spacing: .3em; margin: 4px 0 0; }
.qdoc__meta { display: grid; gap: 4px; font-size: 12.5px; text-align: right; }
.qdoc__meta span { color: var(--muted); margin-right: 10px; }
.qdoc__to { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.qdoc__cust { font-size: 20px; border-bottom: 2px solid var(--ink); padding: 0 8px 6px 2px; min-width: 240px; }
.qdoc__cust b { font-size: 22px; }
.qdoc__cust small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.qdoc__co { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; }
.qdoc__co b { display: block; font-size: 14px; }
.qdoc__co small { display: block; color: var(--muted); }
.qdoc__lead { margin: 22px 0 10px; font-size: 13.5px; }
.qdoc__subject { display: flex; gap: 12px; font-size: 14px; margin-bottom: 8px; }
.qdoc__subject span { color: var(--muted); }
.qdoc__total { display: flex; justify-content: space-between; align-items: baseline; background: var(--paper); border-radius: 12px; padding: 12px 16px; margin: 10px 0 18px; }
.qdoc__total span { font-size: 13px; color: var(--muted); }
.qdoc__total b { font-size: 28px; }
.qt--doc th { background: transparent; border-bottom: 2px solid var(--ink); }
.qdoc__memo { margin-top: 20px; font-size: 13px; }
.qdoc__memo span { display: block; font-size: 11.5px; color: var(--muted); letter-spacing: .08em; margin-bottom: 4px; }
.qdoc__memo p { white-space: pre-wrap; margin: 0; line-height: 1.8; }
.qdoc__accept { margin-top: 26px; text-align: center; }
.qdoc__foot { margin-top: 28px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); text-align: center; }
.qdoc__bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; justify-content: center; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(243, 239, 231, .92); backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
@media print {
  body.bare { background: #fff; }
  .qdoc { background: #fff; padding: 0; }
  .qdoc__paper { box-shadow: none; border-radius: 0; max-width: none; padding: 0; }
  .qdoc__bar, .qdoc__accept, .toasts, .boot { display: none !important; }
}

/* ---------- 見積書・請求書（御社の請求書の体裁） ---------- */
.qdoc__title { display: inline-block; background: var(--ink); color: #fff; font-size: 15px; letter-spacing: .3em; padding: 14px 24px 14px 30px; }
.qdoc__meta { display: grid; gap: 6px; font-size: 12.5px; }
.qdoc__meta > div { border-bottom: 1px solid var(--ink); padding: 0 4px 3px; min-width: 230px; }
.qdoc__meta span { color: var(--muted); margin-right: 6px; }
.qdoc__to { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.qdoc__cust { font-size: 20px; border-bottom: 2px solid var(--ink); padding: 0 8px 6px 2px; min-width: 300px; flex: 1 1 300px; max-width: 460px; display: flex; justify-content: space-between; align-items: baseline; }
.qdoc__cust b { font-size: 22px; }
.qdoc__sama { font-size: 14px; }
.qdoc__co { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; line-height: 1.6; position: relative; }
.qdoc__co b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.qdoc__co small { display: block; font-size: 11px; }
.qdoc__stamp { width: 64px; height: 64px; margin: -6px 0 0 -8px; opacity: .9; mix-blend-mode: multiply; }
.qdoc__lead { margin: 18px 0 8px; font-size: 12.5px; }
.qdoc__terms { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; margin: 0 0 14px; font-size: 12.5px; max-width: 460px; }
.qdoc__terms dt { color: var(--text); padding: 5px 0 4px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.qdoc__terms dd { margin: 0; padding: 5px 0 4px; border-bottom: 1px solid var(--line-2); }
.qdoc__total { display: inline-flex; align-items: center; gap: 0; border: 2px solid var(--ink); margin: 6px 0 20px; min-width: 60%; }
.qdoc__total > span { background: var(--ink); color: #fff; font-size: 12px; padding: 14px 14px; letter-spacing: .08em; white-space: nowrap; }
.qdoc__total > b { font-size: 26px; padding: 6px 22px; flex: 1; text-align: center; }
.qdoc__total > small { font-size: 12px; padding-right: 16px; color: var(--muted); }
.qt--doc th { background: transparent; border-bottom: 1px solid var(--ink); text-align: center; color: var(--text); }
.qt--doc th:first-child { text-align: center; }
.qt--doc td { border-bottom: 1px dotted var(--line-2); font-size: 12.5px; padding: 7px 8px; }
.qt--doc tr.qt__head td { font-weight: 700; border-bottom: 1px solid var(--line-2); }
.qt--doc tr.qt__blank td { height: 14px; }
.qt__neg { color: var(--red) !important; }
.qedit tr.qt__head td { background: var(--paper); }
.qdoc__sum { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 22px; flex-wrap: wrap; }
.qdoc__taxes { font-size: 11.5px; flex: 1 1 320px; }
.qdoc__taxes > div { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 6px; border-bottom: 1px solid var(--line-2); padding: 4px 0; }
.qdoc__taxes b { text-align: right; font-weight: 500; }
.qdoc__taxes p { margin: 8px 0 0; }
.qdoc__totals { display: grid; grid-template-columns: auto auto; gap: 0 20px; margin: 0; font-size: 12.5px; min-width: 230px; }
.qdoc__totals dt { padding: 5px 4px; border-bottom: 1px solid var(--line-2); }
.qdoc__totals dd { margin: 0; padding: 5px 4px; border-bottom: 1px solid var(--line-2); text-align: right; font-variant-numeric: tabular-nums; }
.qdoc__totals .qdoc__grand { font-weight: 700; font-size: 14px; border-bottom: 2px solid var(--ink); }
.qdoc__memo { margin-top: 24px; font-size: 12.5px; }
.qdoc__memo span { display: block; border-bottom: 1px solid var(--ink); padding: 0 4px 3px; margin-bottom: 8px; }
.qdoc__memo p { white-space: pre-wrap; margin: 0; line-height: 1.8; padding: 0 4px; }
.qt__seg button { font-size: 11px; padding: 0 4px; }

/* ---------- 完了報告書 ---------- */
.rp__row { display: grid; grid-template-columns: 34px 72px 1fr auto; gap: 10px; align-items: center; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.rp__n { font-family: var(--f-en); font-size: 14px; color: var(--muted); }
.rp__thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.rp__btns { display: flex; gap: 2px; }
.rp__btns .iconbtn { width: 32px; height: 32px; }
.rp__btns [data-d="-1"] svg { transform: rotate(180deg); }
.ph.on { outline: 3px solid var(--green); outline-offset: -3px; }
.rd { background: var(--paper); min-height: 100dvh; padding: 24px 12px 90px; color: #1f2733; }
.rd__page { max-width: 820px; margin: 0 auto 24px; background: #fff; box-shadow: var(--shadow-2); padding: 0 0 28px; border-radius: 12px; overflow: hidden; position: relative; min-height: 1000px; }
.rd__band { height: 12px; background: #2c3e50; }
.rd__top { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 40px 0; }
.rd__top h1 { font-size: 22px; letter-spacing: .1em; margin: 0; font-family: var(--f-jp, inherit); }
.rd__top span { font-size: 12px; color: #6b7280; }
.rd__sub { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 40px 12px; border-bottom: 1px solid #d1d5db; margin: 0 0 18px; }
.rd__sub b { font-size: 15px; }
.rd__sub span { font-size: 12px; color: #6b7280; }
.rd__h2 { font-size: 15px; margin: 18px 40px 10px; padding-left: 10px; border-left: 4px solid #2c3e50; }
.rd__tbl { width: calc(100% - 80px); margin: 0 40px; border-collapse: collapse; font-size: 12.5px; }
.rd__tbl th { width: 110px; text-align: left; background: #f3f4f6; padding: 8px 10px; border: 1px solid #e5e7eb; font-weight: 700; }
.rd__tbl td { padding: 8px 10px; border: 1px solid #e5e7eb; line-height: 1.7; }
.rd__check { margin: 14px 40px 0; background: #f3f4f6; border-radius: 8px; padding: 12px 16px; font-size: 12.5px; line-height: 1.8; }
.rd__check b { display: block; margin-bottom: 4px; }
.rd__check p { margin: 0; }
.rd__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 0 40px; }
.rd__grid--1 { grid-template-columns: 1fr; }
.rd__fig { margin: 0; border: 1px solid #e5e7eb; background: #fafafa; display: flex; flex-direction: column; }
.rd__fig img { width: 100%; height: 300px; object-fit: contain; background: #fafafa; padding: 10px; box-sizing: border-box; }
.rd__grid--1 .rd__fig img { height: 360px; }
.rd__fig figcaption { background: #eef1f5; font-size: 12px; padding: 10px 12px; display: flex; gap: 10px; align-items: baseline; }
.rd__fig figcaption b { font-family: var(--f-en); color: #4b5563; }
.rd__foot { position: absolute; right: 40px; bottom: 12px; font-size: 12px; color: #6b7280; }
@media print {
  .rd { background: #fff; padding: 0; }
  .rd__page { box-shadow: none; border-radius: 0; margin: 0; min-height: auto; page-break-after: always; max-width: none; }
  .rd__page:last-of-type { page-break-after: auto; }
  .rd__foot { position: static; text-align: right; margin: 12px 40px 0; }
  @page { size: A4; margin: 10mm; }
}
.dash > * { min-width: 0; }

/* 同じ画面の描き直し（ボタンを押した・同期した）では、ページが出てくる動きを繰り返さない */
.re .page, .re .rise { animation: none; }

/* ---------- ホーム上段：行き先・事務作業・目標 ---------- */
.hello { display: flex; flex-direction: column; gap: 2px; margin: 6px 2px 14px; }
.hello .en { font-family: var(--f-en); font-size: 11px; letter-spacing: .28em; color: var(--muted); }
.hello b { font-size: 20px; letter-spacing: .04em; }
.today3 { margin-bottom: 18px; }
.nexts { display: grid; gap: 10px; margin-bottom: 8px; }
@media (min-width: 1100px) { .nexts { grid-template-columns: repeat(3, 1fr); } .nexts .mod--hero { margin: 0; grid-column: auto; } }
.tcard { height: 100%; }
.tcard__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tcard__head > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.tcard__head b { font-size: 15px; }
.tcard__head small { font-size: 12px; color: var(--muted); }
.tcard__ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); flex: none; }
.tcard__head .link { font-size: 12.5px; white-space: nowrap; }
.todos { display: flex; flex-direction: column; }
.todo { display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px; border-bottom: 1px solid var(--line); }
.todo:last-child { border-bottom: 0; }
.todo__box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid var(--line-2, #cfc8bb); display: grid; place-items: center; flex: none; color: transparent; background: var(--white); margin-top: 1px; transition: all .15s; }
.todo__box svg.i { width: 16px; height: 16px; stroke-width: 3; }
.todo__body { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 1px; padding: 2px 0; }
.todo__body b { font-weight: 600; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.todo__body small { font-size: 12px; color: var(--muted); }
.todo.is-done .todo__box { background: var(--orange); border-color: var(--orange); color: #fff; }
.todo.is-done .todo__body b { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.todo.is-late .todo__body small { color: var(--red); font-weight: 600; }
.todo__none { padding: 8px 2px; font-size: 13px; margin: 0; }
.todo__add { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
.todo__add .input { flex: 1; min-width: 0; min-height: 44px; }
.goal { padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.goal:last-child { border-bottom: 0; }
.goal__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.goal__top b { font-size: 17px; }
.goal__top b small { font-size: 12px; color: var(--muted); font-weight: 500; }
.goal__bar { height: 8px; border-radius: 6px; background: var(--paper-2); overflow: hidden; margin: 6px 0 4px; }
.goal__bar i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--orange), #e8b04a); }
.goal__left { font-size: 12.5px; color: var(--muted); }
.goal__left b { color: var(--ink); font-size: 14px; }
@media (min-width: 1100px) { .tb-menu { display: none !important; } }

/* ---------- マイク・声で入れる ---------- */
.mic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--paper-2); color: var(--ink); transition: all .2s; }
.mic svg.i { width: 22px; height: 22px; }
.mic.on { background: var(--red); color: #fff; box-shadow: 0 0 0 0 rgba(215,38,46,.5); animation: micPulse 1.4s infinite; }
.mic--big { width: 76px; height: 76px; background: var(--orange); color: #fff; }
.mic--big svg.i { width: 34px; height: 34px; }
@keyframes micPulse { 0% { box-shadow: 0 0 0 0 rgba(215,38,46,.45); } 70% { box-shadow: 0 0 0 16px rgba(215,38,46,0); } 100% { box-shadow: 0 0 0 0 rgba(215,38,46,0); } }
.voice { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 6px 0 12px; }
.voice__hint { font-size: 12.5px; color: var(--muted); margin: 0; }
.vbar { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: var(--r); background: var(--ink); color: var(--white); margin-bottom: 14px; }
.vbar > span:nth-child(2) { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vbar small { font-size: 12px; color: rgba(255,253,248,.68); }
.vbar__mic { width: 42px; height: 42px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; flex: none; }
.vp { border: 1px solid var(--line); border-radius: 14px; background: var(--white); padding: 4px 12px; max-height: 46vh; overflow-y: auto; }
.vp__head { font-weight: 700; font-size: 13px; padding: 10px 0 4px; color: var(--ink); }
.vp__row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; font-size: 13px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.vp__row span:first-child { display: flex; flex-direction: column; min-width: 0; }
.vp__row small { font-size: 11px; color: var(--muted); }
.vp__row--guess { background: #fff4c7; margin: 0 -12px; padding: 5px 12px; }
.vp__row .num { color: var(--muted); white-space: nowrap; }
.vp__row b { min-width: 70px; text-align: right; }
.vp__meta { display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.vp__total { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 4px 0; font-size: 13px; }
.vp__total b { font-size: 20px; }
.vp__unk { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.vp__unk b { width: 100%; font-size: 12px; color: var(--muted); }
.vp__unk span { background: var(--paper-2); border-radius: 8px; padding: 2px 8px; }
.rp { gap: 8px; align-items: center; }
.rp__on input { width: 20px; height: 20px; accent-color: var(--orange); }
.rp .li__body { gap: 2px; }
.rp__name { min-height: 38px; padding: 6px 10px; font-size: 14px; }
.rp__price { width: 96px; min-height: 38px; padding: 6px 8px; text-align: right; }
.rp__unit { width: 70px; min-height: 38px; padding: 6px; }

/* ---------- ホームの一番上：日付・天気・今月の目標（輪） ---------- */
.hero--home { margin-bottom: 16px; }
.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.wx--mini { margin-top: 0; grid-template-columns: auto auto; gap: 10px; padding: 10px 12px; }
.wx--mini .wx__icon { width: 42px; height: 42px; border-radius: 13px; }
.wx--mini .wx__t { font-size: 28px; }
.wx--mini .wx__sub { font-size: 11.5px; }
.wx__note { grid-column: 1 / -1; font-size: 12px; color: #8ff0bb; border-top: 1px dashed var(--line-light); padding-top: 8px; }
.wx__note.is-wet { color: #ffd98a; }
.hero__goals { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-light); }
.hero__gh { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; letter-spacing: .12em; color: rgba(255,253,248,.62); margin-bottom: 8px; }
.hero__gh .link { color: #e8b04a; font-size: 12px; letter-spacing: .04em; }
.rings { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ring { position: relative; display: grid; justify-items: center; gap: 2px; text-align: center; }
.ring svg { width: 78px; height: 78px; }
.ring__track { fill: none; stroke: rgba(255,253,248,.12); stroke-width: 6; }
.ring__val { fill: none; stroke: #e8b04a; stroke-width: 6; stroke-linecap: round; }
.ring__pct { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 78px; height: 78px; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700; color: var(--white); }
.ring__pct small { font-size: 11px; opacity: .7; margin-left: 1px; }
.ring__l { font-size: 12.5px; font-weight: 700; color: var(--white); margin-top: 2px; }
.ring__left { font-size: 11.5px; color: rgba(255,253,248,.66); }
.ring__left b { color: var(--white); font-size: 13px; }
@media (min-width: 1100px) { .hero--home { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; align-items: center; } .hero--home .hero__goals { margin-top: 0; padding-top: 0; border-top: 0; padding-left: 24px; border-left: 1px solid var(--line-light); } .ring svg, .ring__pct { width: 92px; height: 92px; } }
.hero--home .hero__strokes { display: none; }
.wx--mini { position: relative; z-index: 1; }

/* ---------- ホームの一番上（明るく・あっさり） ---------- */
.top { margin: 4px 0 16px; }
.top__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin: 0 2px 14px; }
.top__hi { display: flex; flex-direction: column; }
.top__hi small { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.top__hi b { font-size: 19px; letter-spacing: .04em; }
.wxchip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #e6f3f1; color: #1f5f58; font-size: 13px; }
.wxchip b { font-weight: 700; }
.wxchip.is-wet { background: #fdf0d8; color: #7a5410; }
.top__gh { display: flex; justify-content: space-between; align-items: baseline; margin: 0 2px 8px; font-size: 13px; font-weight: 700; color: var(--ink); }
.top__gh .link { font-size: 12.5px; font-weight: 500; }
.gcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gcard { background: color-mix(in srgb, var(--c) 9%, #fffdf8); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); border-radius: 20px; padding: 12px 12px 11px; min-width: 0; }
.gcard__top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.gcard__l { font-size: 13px; font-weight: 700; color: var(--ink); }
.gcard__ring { width: 30px; height: 30px; flex: none; }
.gcard__track { fill: none; stroke: color-mix(in srgb, var(--c) 20%, transparent); stroke-width: 6; }
.gcard__val { fill: none; stroke: var(--c); stroke-width: 6; stroke-linecap: round; }
.gcard__n { margin-top: 6px; display: flex; align-items: baseline; gap: 3px; flex-wrap: wrap; }
.gcard__n b { font-size: 26px; line-height: 1.1; color: var(--ink); }
.gcard__n small { font-size: 11.5px; color: var(--muted); }
.gcard__left { margin-top: 6px; display: inline-block; white-space: nowrap; font-size: 12px; color: var(--ink); background: color-mix(in srgb, var(--c) 16%, transparent); padding: 2px 9px; border-radius: 999px; }
.gcard__left b { font-size: 13px; }
@media (max-width: 380px) { .gcard__n b { font-size: 22px; } }
.gcard__l { white-space: nowrap; }

/* ---------- ホーム：今日やること（1つの表） ---------- */
.today1 { margin-bottom: 18px; }
.today1__head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.today1__head b { font-size: 16px; }
.today1__head .muted { font-size: 12.5px; flex: 1; }
.today1__head .link { font-size: 12.5px; }
.today1 .todo { align-items: center; }
.todo__time { width: 42px; flex: none; font-size: 13px; color: var(--muted); }
.ttag { flex: none; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ttag--sales { background: #e3f2ef; color: #1f6f64; }
.ttag--office { background: #ebeef6; color: #3d5487; }
.todo.is-done .ttag { opacity: .5; }
.kindsw { display: inline-flex; flex: none; background: var(--paper-2); border-radius: 12px; padding: 3px; }
.kindsw button { font-size: 12px; font-weight: 700; padding: 6px 9px; border-radius: 9px; color: var(--muted); }
.kindsw button.on { background: var(--white); color: var(--ink); box-shadow: var(--shadow-1); }

/* ---------- ホーム上段 v3：大きな天気・大きな目標の輪 ---------- */
.top__hi { margin: 0 2px 12px; }
.top__grid { display: grid; gap: 12px; }
@media (min-width: 1100px) { .top__grid { grid-template-columns: 1fr 1.25fr; align-items: stretch; } }
.wxcard { border-radius: 22px; padding: 16px; background: linear-gradient(160deg, #e3f1fb, #f4f9fd); border: 1px solid #d3e6f3; color: #1d3a4f; display: flex; flex-direction: column; gap: 12px; }
.wxcard__now { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
.wxcard__ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: #fff; color: #3a7cb0; box-shadow: 0 4px 14px rgba(58,124,176,.15); }
.wxcard__ic svg.i { width: 38px; height: 38px; }
.wxcard__now > div:nth-child(2) { display: flex; flex-direction: column; }
.wxcard__t { font-size: 44px; line-height: 1; }
.wxcard__now > div span { font-size: 13px; color: #49667c; margin-top: 4px; }
.wxcard__mm { grid-column: 1 / -1; display: flex; gap: 14px; font-size: 12.5px; color: #49667c; margin-top: 6px; }
.wxcard__mm b { color: #1d3a4f; font-size: 15px; }
.wxcard__hours { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.wxh { display: grid; justify-items: center; gap: 3px; padding: 8px 2px; border-radius: 14px; background: rgba(255,255,255,.75); font-size: 12px; }
.wxh small { font-size: 11px; color: #5d7a8f; }
.wxh svg.i { width: 20px; height: 20px; color: #3a7cb0; }
.wxh b { font-size: 15px; }
.wxh i { width: 70%; height: 5px; border-radius: 4px; background: linear-gradient(90deg, #4a90c8 var(--p), #dbe9f3 var(--p)); }
.wxh.is-wet { background: #fff3d6; }
.wxh b em { font-style: normal; font-weight: 500; font-size: .8em; color: #7a93a6; margin-left: 1px; }
.wxh.is-today { box-shadow: inset 0 0 0 2px #9cc3e2; }
.wxh.is-today small:first-child { color: #2c5f86; font-weight: 700; }
.wxcard__note { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #2a7a5f; }
.wxcard__note.is-wet { color: #9a6a0c; }
.top__goals { min-width: 0; }
.gcard { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 8px 12px; border-radius: 22px; }
.gcard__l { font-size: 14px; font-weight: 700; }
.gcard__ringbox { position: relative; width: 100%; max-width: 132px; aspect-ratio: 1; margin: 6px 0 4px; }
.gcard__ring { width: 100%; height: 100%; }
.gcard__track { stroke-width: 11; }
.gcard__val { stroke-width: 11; }
.gcard__in { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.gcard__in b { font-size: clamp(26px, 8vw, 40px); color: var(--ink); }
.gcard__in small { font-size: 12px; color: var(--muted); margin-top: 3px; }
.gcard__goal { font-size: 12px; color: var(--muted); }
.gcard__left { margin-top: 6px; font-size: 12.5px; }
.gcard__left b { font-size: 15px; }
.gcard__ring, .gcard__ringbox { display: block; }
.ttag--cal { background: #fde9ef; color: #a23a5c; }
.gcard__in.is-long b { font-size: clamp(20px, 5.6vw, 30px); }

/* ===== 今日の訪問先（色帯のカード） ===== */
.vis { display: grid; grid-template-columns: 26px 1fr; gap: 12px; margin-top: 16px; }
.vis__rail { background: linear-gradient(#5bb8c9, #4aa3c0); border-radius: 8px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 10px; }
.vis__rail span { writing-mode: vertical-rl; color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .2em; }
.vis__main { min-width: 0; }
.vis__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.vc { border: 2px solid var(--vc); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 2px 8px rgba(40,60,70,.06); }
.vc__head { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; background: var(--vc); color: #fff; padding: 9px 10px; border: 0; font: inherit; text-align: center; cursor: pointer; }
.vc__head b { font-size: 14px; font-weight: 700; }
.vc__head small { font-size: 10px; background: rgba(255,255,255,.25); border-radius: 99px; padding: 1px 7px; }
.vc__body { display: flex; align-items: center; gap: 8px; padding: 9px 10px; }
.vc__body > div { flex: 1; display: grid; gap: 3px; min-width: 0; }
.vc__body span { display: flex; align-items: center; gap: 5px; font-size: 13px; color: #34424a; }
.vc__body span svg.i { width: 14px; height: 14px; color: var(--vc); flex: none; }
.vc__who { color: #6a777e !important; font-size: 12px !important; }
.vc.is-done .vc__head b { text-decoration: line-through; }
.vc.is-done .vc__body { opacity: .6; }

/* ===== やることマップ（緊急×重要の4マス） ===== */
.mx { margin-top: 16px; }
.mx__wrap { position: relative; padding: 22px 0 22px 22px; }
.mx__ax { position: absolute; font-size: 11px; font-weight: 700; color: #7b7468; letter-spacing: .05em; }
.mx__ax--l { top: 0; left: 22px; width: calc(50% - 11px); text-align: center; }
.mx__ax--r { top: 0; right: 0; width: calc(50% - 11px); text-align: center; }
.mx__ax--t { left: 0; top: 22px; height: calc(50% - 22px); writing-mode: vertical-rl; text-align: center; }
.mx__ax--b { left: 0; bottom: 22px; height: calc(50% - 22px); writing-mode: vertical-rl; text-align: center; }
.mx__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mx__q { background: var(--qb); border-radius: 16px; padding: 10px; min-height: 120px; border: 2px solid transparent; transition: border-color .15s; min-width: 0; }
.mx__q.is-over { border-color: var(--qc); border-style: dashed; }
.mx__qh { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.mx__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--qc); color: #fff; font-weight: 800; font-size: 15px; flex: none; }
.mx__qh b { font-size: 14px; color: var(--qc); filter: brightness(.8); }
.mx__c { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--qc); }
.mx__plus { width: 26px; height: 26px; border-radius: 99px; border: 0; background: rgba(255,255,255,.8); color: var(--qc); display: grid; place-items: center; cursor: pointer; flex: none; }
.mx__c:empty + .mx__plus { margin-left: auto; }
.mx__list { display: grid; gap: 5px; }
.mx__hint { font-size: 12px; color: #8a8479; margin: 4px 2px; line-height: 1.5; }
.mxr { display: flex; align-items: flex-start; gap: 7px; background: rgba(255,255,255,.85); border-radius: 10px; padding: 7px 8px; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.mxr .todo__box { width: 22px; height: 22px; flex: none; }
.mxr__body { flex: 1; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.mxr__body b { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; color: #2a2a2a; overflow-wrap: anywhere; }
.mxr__body small { display: block; font-size: 11px; color: #7b7468; margin-top: 1px; }
.mxr.is-late small { color: var(--red); font-weight: 700; }
.mxr.is-done { opacity: .55; } .mxr.is-done b { text-decoration: line-through; }
.mxr.is-drag { opacity: .4; }
.mx__q[data-q="4"] .mxr b { color: #5d6670; }
.mx .todo__add { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.mx .todo__add .input { flex: 1; min-width: 0; }
.mx__pick { display: flex; gap: 4px; flex: none; }
.mx__pick button { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--qc); background: var(--qb); color: var(--qc); font-weight: 800; cursor: pointer; }
.mx__pick button.on { background: var(--qc); color: #fff; }
.mx__tip { font-size: 11px; color: #8a8479; margin: 8px 2px 0; }
.mx--big .mx__q { min-height: 200px; }
.mx__move { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mx__move button { display: flex; align-items: center; gap: 8px; padding: 14px 10px; border-radius: 14px; border: 2px solid transparent; background: var(--qb); color: #333; font: inherit; font-weight: 700; cursor: pointer; text-align: left; }
.mx__move button.on { border-color: var(--qc); }
.mx__move--sm button { padding: 9px 8px; font-size: 13px; }
.mx__move--sm .mx__n { width: 22px; height: 22px; font-size: 13px; }
@media (max-width: 560px) {
  .mx__wrap { padding-left: 18px; }
  .mx__ax--l { left: 18px; }
  .mx__grid { gap: 6px; }
  .mx__q { padding: 7px; border-radius: 12px; }
  .mx__qh b { font-size: 12px; }
  .mx__pick button { width: 26px; height: 26px; }
  .vis { grid-template-columns: 20px 1fr; gap: 8px; }
}

/* ===== タスク画面：切り替えと予定表（ガント） ===== */
.tv__seg { display: flex; margin-bottom: 4px; }
.tv__seg a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.gt { margin-top: 14px; overflow: hidden; }
.gt__top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line, #e7e2d8); }
.gt__top .link:first-child svg { transform: rotate(180deg); }
.gt__legend { margin-left: auto; display: flex; gap: 4px; }
.gt__legend span { font-size: 11px; padding: 3px 8px; border-radius: 4px; background: var(--sc); border: 1px solid var(--sb); }
.gt__scroll { overflow-x: auto; }
.gt__grid { min-width: 720px; }
.gt__row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid #eee9df; }
.gt__name { position: sticky; left: 0; z-index: 2; display: grid; grid-template-columns: auto 1fr; column-gap: 7px; align-items: center; padding: 7px 10px; background: #fffdf9; border: 0; border-right: 1px solid #e7e2d8; font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.gt__name b { font-size: 12.5px; font-weight: 600; color: #2b6f66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gt__name small { grid-column: 2; font-size: 11px; color: #8a8479; }
.gt__name--head { font-size: 11px; color: #8a8479; display: flex; cursor: default; }
.gt__q { grid-row: span 2; width: 18px; height: 18px; border-radius: 5px; background: var(--qc); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.gt__track { display: grid; grid-template-columns: repeat(14, 1fr); position: relative; min-height: 40px; }
.gt__track > i { grid-row: 1; border-right: 1px solid #f0ebe2; }
.gt__track > i.is-we, .gt__d.is-we { background: #f4f1ec; }
.gt__track > i.is-today { background: #fff6dc; }
.gt__bar { grid-row: 1; z-index: 1; align-self: center; margin: 0 2px; height: 26px; border-radius: 5px; background: var(--sc); border: 1px solid var(--sb); font: inherit; font-size: 11.5px; color: #333; display: flex; align-items: center; gap: 3px; padding: 0 6px; overflow: hidden; white-space: nowrap; cursor: pointer; text-align: left; }
.gt__bar span { overflow: hidden; text-overflow: ellipsis; }
.gt__bar svg.i { width: 12px; height: 12px; flex: none; }
.gt__row.is-done .gt__name b { color: #9a958c; text-decoration: line-through; }
.gt__track--head { min-height: 0; }
.gt__d { display: grid; justify-items: center; padding: 5px 0; border-right: 1px solid #f0ebe2; }
.gt__d small { font-size: 10px; color: #9a958c; } .gt__d b { font-size: 13px; }
.gt__d.is-today { background: #ffe9a8; } .gt__d.is-today b { color: #8a5a00; }
@media (max-width: 560px) { .gt__row { grid-template-columns: 130px 1fr; } .gt__grid { min-width: 600px; } }
/* 1日だけの帯は、文字を帯の外まで続けて読めるように */
.gt__bar { overflow: visible; }
.gt__bar span { overflow: visible; text-overflow: clip; position: relative; }
.gt__track { overflow: hidden; }
.gt__track { grid-template-columns: repeat(14, minmax(0, 1fr)); }
.gt__bar { min-width: 0; }
.gt__bar span { text-shadow: 0 0 3px #fff, 0 0 3px #fff; }

/* 天気のタイル：空の色で塗り分け（晴れ＝黄・晴れ時々くもり＝黄から灰・くもり＝灰・雨＝青） */
.wxh { border: 1.5px solid transparent; }
.wxh svg.i { width: 28px; height: 28px; }
.wxh .wxh__l { font-style: normal; font-size: 11px; font-weight: 700; }
.wx-sun    { --wa: #fff2c4; --wb: #ffe08a; --wi: #e08600; --wl: #a15f00; --wd: #f2c55c; }
.wx-partly { --wa: #fff6dc; --wb: #e9eef3; --wi: #d99413; --wl: #8a6a2a; --wd: #e3d3a8; }
.wx-cloud  { --wa: #f0f2f5; --wb: #dde3e9; --wi: #6b7a88; --wl: #55626e; --wd: #c9d1d9; }
.wx-rain   { --wa: #dcecfd; --wb: #bcd8f5; --wi: #2a6fbd; --wl: #1f5a9e; --wd: #8fb9e6; }
.wxh[class*="wx-"] { background: linear-gradient(170deg, var(--wa), var(--wb)); border-color: var(--wd); }
.wxh[class*="wx-"] svg.i { color: var(--wi); }
.wxh[class*="wx-"] .wxh__l { color: var(--wl); }
.wxh.wx-rain i { background: linear-gradient(90deg, #2a6fbd var(--p), rgba(255,255,255,.7) var(--p)); }
.wxh[class*="wx-"] i { background: linear-gradient(90deg, #3d82c8 var(--p), rgba(255,255,255,.75) var(--p)); }
.wxh.is-today { box-shadow: 0 0 0 2px #2c5f86; }
.wxcard__ic[class*="wx-"] { background: linear-gradient(170deg, var(--wa), var(--wb)); }
.wxcard__ic[class*="wx-"] svg.i { color: var(--wi); }

/* やることマップ v2：十字の線（矢印つき）と大きな文字 */
.mx__wrap { padding: 34px 0 34px 34px; }
.mx__ax { font-size: 16px; font-weight: 800; color: #4a453d; letter-spacing: .08em; }
.mx__ax--l { left: 34px; width: calc(50% - 17px); }
.mx__ax--r { width: calc(50% - 17px); }
.mx__ax--t { top: 34px; height: calc(50% - 34px); display: flex; align-items: center; justify-content: center; }
.mx__ax--b { bottom: 34px; height: calc(50% - 34px); display: flex; align-items: center; justify-content: center; }
.mx__ax--t, .mx__ax--b { width: 22px; }
.mx__grid { position: relative; gap: 28px; grid-template-rows: 1fr 1fr; }
.mx__line { position: absolute; z-index: 0; background: #7d776c; border-radius: 2px; pointer-events: none; }
.mx__line--v { left: 50%; top: -26px; bottom: -14px; width: 3px; transform: translateX(-50%); }
.mx__line--h { top: 50%; left: -30px; right: -6px; height: 3px; transform: translateY(-50%); }
.mx__line--v::before { content: ''; position: absolute; top: -4px; left: 50%; transform: translateX(-50%); border: 9px solid transparent; border-bottom: 13px solid #7d776c; border-top: 0; }
.mx__line--h::before { content: ''; position: absolute; left: -4px; top: 50%; transform: translateY(-50%); border: 9px solid transparent; border-right: 13px solid #7d776c; border-left: 0; }
.mx__q { position: relative; z-index: 1; padding: 14px; }
.mx__qh { gap: 10px; margin-bottom: 10px; }
.mx__n { width: 34px; height: 34px; border-radius: 10px; font-size: 19px; }
.mx__qh b { font-size: 18px; }
.mx__c { font-size: 17px; }
.mx__plus { width: 32px; height: 32px; }
.mx__list { gap: 7px; }
.mxr { padding: 10px 11px; gap: 10px; }
.mxr .todo__box { width: 26px; height: 26px; }
.mxr__body b { font-size: 15.5px; }
.mxr__body small { font-size: 12.5px; margin-top: 2px; }
.mx__hint { font-size: 13.5px; }
.mx__pick button { width: 36px; height: 36px; font-size: 16px; }
.mx__tip { font-size: 12.5px; }
@media (max-width: 560px) {
  .mx__wrap { padding: 28px 0 28px 26px; }
  .mx__ax { font-size: 13px; }
  .mx__ax--l { left: 26px; width: calc(50% - 13px); } .mx__ax--r { width: calc(50% - 13px); }
  .mx__ax--t { top: 28px; height: calc(50% - 28px); } .mx__ax--b { bottom: 28px; height: calc(50% - 28px); }
  .mx__ax--t, .mx__ax--b { width: 18px; }
  .mx__grid { gap: 16px; }
  .mx__line--v { top: -20px; bottom: -10px; } .mx__line--h { left: -24px; }
  .mx__q { padding: 8px; }
  .mx__n { width: 26px; height: 26px; font-size: 15px; }
  .mx__qh b { font-size: 13.5px; }
  .mxr__body b { font-size: 13.5px; }
  .mxr { padding: 8px; gap: 7px; }
  .mx__pick button { width: 30px; height: 30px; }
}

/* タスク画面の上：今月の目標を1行で（あと何件・あといくら） */
.gs { margin-top: 4px; }
.gs__h { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 8px; }
.gs__h b { font-size: 15px; }
.gs__h span { font-size: 12.5px; color: #8a8479; }
.gs__h .link { margin-left: auto; }
.gs__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gs__p { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; padding: 14px 16px 18px; border-radius: 16px; color: #fff;
  background: linear-gradient(120deg, var(--gc), color-mix(in srgb, var(--gc) 75%, #ffffff)); box-shadow: 0 6px 18px color-mix(in srgb, var(--gc) 35%, transparent); }
.gs__l { grid-row: span 2; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.22); border-radius: 99px; padding: 5px 10px; }
.gs__big { font-size: clamp(20px, 2.6vw, 30px); font-weight: 800; line-height: 1.1; text-shadow: 0 1px 2px rgba(0,0,0,.12); white-space: nowrap; }
.gs__s { font-size: 12px; opacity: .9; }
.gs__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: rgba(255,255,255,.3); }
.gs__bar::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--pct); background: #fff; border-radius: 0 3px 3px 0; }
@media (max-width: 560px) {
  .gs__row { gap: 6px; }
  .gs__p { grid-template-columns: 1fr; padding: 10px 10px 14px; row-gap: 2px; }
  .gs__l { grid-row: auto; justify-self: start; font-size: 11px; padding: 3px 8px; }
  .gs__big { font-size: 17px; }
  .gs__s { font-size: 10.5px; }
}
/* 作成前：どこから来たか（台帳・訪問・カレンダー） */
.qsrc { display: inline-block; vertical-align: 2px; margin-left: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #efe9de; color: #7a6440; }
.qsrc--visit { background: #e1f1ec; color: #22715f; }
.qsrc--cal { background: #fbe3ea; color: #a83d5e; }
/* 工程表：ドラッグで動かす帯 */
.gt__bar { position: relative; touch-action: none; cursor: grab; }
.gt__bar.is-drag { cursor: grabbing; box-shadow: 0 6px 14px rgba(0,0,0,.18); z-index: 3; opacity: .92; }
.gt__hd { position: absolute; top: 0; bottom: 0; width: 9px; cursor: ew-resize; z-index: 2; }
.gt__hd--l { left: -2px; } .gt__hd--r { right: -2px; }
.gt__hd::after { content: ''; position: absolute; top: 25%; bottom: 25%; left: 3px; width: 3px; border-radius: 2px; background: var(--sb); opacity: 0; transition: opacity .15s; }
.gt__bar:hover .gt__hd::after, .gt__bar.is-drag .gt__hd::after { opacity: 1; }
.mx__done { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; color: #22715f; background: #e1f1ec; border-radius: 99px; padding: 3px 10px; text-decoration: none; }
.mx__done svg.i { width: 13px; height: 13px; }
.top__grid.top__grid--one { grid-template-columns: 1fr; }

/* ===== 案件ボード（段階ごとの列） ===== */
.jb { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; }
.jb__col { background: color-mix(in srgb, var(--jc) 9%, #fbf9f5); border-radius: 16px; padding: 10px; min-height: 260px; border: 2px solid transparent; scroll-snap-align: start; }
.jb__col.is-over { border-color: var(--jc); border-style: dashed; }
.jb__h { display: flex; align-items: center; gap: 8px; padding: 4px 4px 10px; }
.jb__h b { font-size: 14.5px; color: var(--jc); filter: brightness(.8); }
.jb__h span { margin-left: auto; min-width: 26px; height: 26px; border-radius: 99px; display: grid; place-items: center; background: var(--jc); color: #fff; font-weight: 800; font-size: 13px; }
.jb__list { display: grid; gap: 8px; }
.jb__none { font-size: 12px; color: #a39d92; text-align: center; padding: 22px 0; border: 1.5px dashed #ddd6ca; border-radius: 12px; margin: 0; }
.jc { display: grid; gap: 4px; padding: 11px 12px 11px 14px; background: #fff; border-radius: 12px; text-decoration: none; color: #2a2a2a; box-shadow: 0 2px 6px rgba(40,40,30,.06); border-left: 5px solid var(--jc); cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.jc.is-drag { opacity: .45; }
.jc b { font-size: 15px; }
.jc__sub { font-size: 12px; color: #7b7468; }
.jc__amt { font-size: 15px; font-weight: 800; display: flex; align-items: baseline; gap: 6px; }
.jc__amt small { font-size: 11px; font-weight: 700; color: #7b7468; }
.jc__next { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #22715f; font-weight: 700; }
.jc__next svg.i { width: 13px; height: 13px; flex: none; }
.jc__todo { font-size: 12px; color: #a0612a; font-weight: 700; }
.jb__done { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.jb__pick { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.jb__pick button { padding: 13px 10px; border-radius: 12px; border: 2px solid transparent; background: color-mix(in srgb, var(--jc) 12%, #fff); color: #333; font: inherit; font-weight: 700; cursor: pointer; }
.jb__pick button.on { border-color: var(--jc); }

/* 案件ボード v2：矢印の見出し・列の合計・追加ボタン・カードの下に予定 */
.jb__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 18px; margin: 0 2px 12px; }
.jb__bar b { font-size: 17px; color: #2a2a2a; }
.jb__bar .note { margin-left: auto; }
.jb { grid-auto-columns: minmax(220px, 1fr); gap: 6px; }
.jb__col { background: #f4f1ea; border-radius: 0 0 14px 14px; padding: 0 8px 10px; }
.jb__h { margin: 0 -8px; padding: 9px 22px 9px 14px; background: var(--jc); color: #fff; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.jb__col:first-child .jb__h { border-radius: 10px 0 0 0; }
.jb__h b { color: #fff; filter: none; font-size: 14px; }
.jb__h span { margin-left: 4px; background: none; min-width: 0; height: auto; font-size: 13px; font-weight: 700; opacity: .9; }
.jb__sum { text-align: center; font-size: clamp(18px, 1.8vw, 24px); font-weight: 800; color: #3a3833; padding: 12px 0 6px; letter-spacing: .02em; }
.jb__add { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; padding: 7px; margin-bottom: 8px; border: 0; border-radius: 6px; background: #e5e0d5; color: #5d574c; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.jb__add:hover { background: color-mix(in srgb, var(--jc) 22%, #fff); color: #333; }
.jc { border-left: 0; border-top: 3px solid var(--jc); border-radius: 6px; padding: 10px 12px; gap: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.1); }
.jc__top { display: flex; align-items: flex-start; gap: 6px; }
.jc__name { flex: 1; font-size: 14.5px; font-weight: 800; color: #2a2a2a; text-decoration: none; }
.jc__ics { display: flex; gap: 6px; } .jc__ics a { color: #9a958c; } .jc__ics svg.i { width: 15px; height: 15px; }
.jc__amt { font-size: 14px; }
.jc__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 6px; padding-top: 7px; border-top: 1px solid #efebe3; }
.jc__act { font-size: 12px; font-weight: 700; color: #2a6f97; }
.jc__act i { font-style: normal; display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; background: #e05a5a; color: #fff; font-size: 11px; margin-left: 2px; }
.jc__plus { border: 0; background: none; color: #8a8479; font: inherit; font-size: 12px; display: flex; align-items: center; gap: 2px; cursor: pointer; padding: 2px 4px; }
.jc__plus:hover { color: #2a2a2a; }
/* お客様の登録：ひとこと欄と候補 */
.cs-cands { display: flex; flex-wrap: wrap; gap: 6px; }
.cs-cand { display: grid; text-align: left; padding: 7px 12px; border-radius: 12px; border: 1.5px solid #e2dccf; background: #fff; font: inherit; cursor: pointer; }
.cs-cand b { font-size: 13.5px; } .cs-cand small { font-size: 11px; color: #8a8479; }
.cs-cand.on { border-color: #2f6f68; background: #eaf3f1; }
.cs-more > summary { cursor: pointer; display: flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: #2f6f68; padding: 6px 2px; list-style: none; }
.cs-more > summary::-webkit-details-marker { display: none; }
.jc__act.is-zero { color: #a39d92; font-weight: 600; }

/* 完了の振り返り（週ごと・月ごと） */
.dp__top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.dp__seg { display: flex; } .dp__seg a { text-decoration: none; padding: 0 14px; }
.dp__nav { display: flex; align-items: center; gap: 8px; } .dp__nav b { font-size: 16px; }
.dp__nav .link:first-child svg { transform: rotate(180deg); }
.dp__total { margin-left: auto; display: flex; align-items: baseline; gap: 6px; }
.dp__total b { font-size: 26px; font-weight: 800; } .dp__total > span:nth-child(2) { font-size: 13px; color: #7b7468; margin-right: 6px; }
.dp__k { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: color-mix(in srgb, var(--dc) 14%, #fff); color: var(--dc); }
.dp__chart { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 130px; margin: 14px 0 6px; padding: 0 2px; }
.dp__col { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; text-decoration: none; color: #7b7468; border-radius: 8px; padding: 2px 0; }
.dp__col.on { background: #f3efe6; color: #2a2a2a; }
.dp__v { font-size: 12px; font-weight: 700; min-height: 16px; }
.dp__bar { display: flex; flex-direction: column-reverse; justify-content: flex-start; width: 60%; max-width: 34px; height: 100%; gap: 2px; }
.dp__bar i { display: block; background: var(--dc); border-radius: 4px 4px 2px 2px; min-height: 3px; }
.dp__col small { font-size: 11px; margin-top: 4px; }
.dp__list { margin-top: 8px; border-top: 1px solid #efebe3; padding-top: 6px; }

/* ---------- 原価表（見積画面の社内用カード・別紙） ---------- */
.qc__sum { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.qc__sum > div { background: var(--paper-2); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.qc__sum span { font-size: 11.5px; color: var(--ink-2); letter-spacing: .06em; }
.qc__sum b { font-size: 20px; letter-spacing: .02em; }
.qc__sum small { font-size: 12px; font-weight: 700; }
.qc__gross.qc--g { background: #e3f1e8; } .qc__gross.qc--g small { color: #2c8a5a; }
.qc__gross.qc--o { background: #fbefdf; } .qc__gross.qc--o small { color: #b0651a; }
.qc__gross.qc--r { background: #fbe6ea; } .qc__gross.qc--r small { color: #c9506a; }
.qc__t td, .qc__t th { white-space: nowrap; }
.qc__t td:first-child { white-space: normal; min-width: 9em; }
.qc__t .qt__in--n { width: 6.5em; }
.qc__disc td { color: var(--ink-2); font-style: italic; }
.qc__t tfoot td { font-weight: 700; border-top: 2px solid var(--ink); padding-top: 8px; }
.qdoc--cost .qdoc__title small { font-size: .45em; margin-left: .5em; letter-spacing: .1em; font-weight: 500; }
.qdoc--cost .qc__sum { margin: 14px 0 16px; }
@media print { .qdoc--cost .qc__sum > div { border: 1px solid #ccc; } }

/* ---------- シロアリ版（サンハウスシロアリ沖縄） ---------- */
.ta { display: grid; gap: 12px; align-content: start; }
.ta .card { margin: 0; }
.ta-search { position: relative; margin: 0; }
.ta-search .input { padding-left: 38px; font-size: 16px; min-height: 48px; }
.ta-search__ic { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); display: grid; }
.ta-seg button { min-height: 52px; font-size: 14.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.ta-seg--sm button { min-height: 40px; font-size: 12.5px; padding: 0 4px; }
.ta-cnt { font-family: var(--f-en); font-size: 15px; letter-spacing: .04em; background: var(--paper-2); color: var(--muted); border-radius: 10px; padding: 1px 8px; }
.ta-seg button.on .ta-cnt { background: var(--ink); color: #fff; }
.ta-legend { display: inline-flex; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); }
.ta-legend i { width: 10px; height: 10px; border-radius: 3px; background: var(--w); display: inline-block; margin-right: -6px; }
.link-btn { font-size: 12.5px; font-weight: 700; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.link-btn.on { color: var(--ink); }
.ta-row { border-left: 6px solid var(--w, var(--line)); }
.ta-row b { color: var(--text); }
.ta-row--me { background: var(--paper); }
.ta-thumb { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; flex: none; background: var(--paper-2); display: grid; place-items: center; color: var(--muted); }
.ta-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ta-head { position: relative; border-top: 6px solid var(--w); }
.ta-name { font-size: 22px; font-weight: 700; letter-spacing: .04em; margin: 10px 0 6px; padding-right: 64px; }
.ta-line { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 6px 0; color: var(--text); }
.ta-line svg.i { color: var(--muted); }
.ta-edit { position: absolute; top: 14px; right: 14px; }
.ta-work-tag { display: inline-flex; align-items: center; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--w); color: #fff; letter-spacing: .1em; }
.ta-spec { margin: 10px 18px 0; }
.ta-work { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ta-work button { min-height: 52px; border-radius: 14px; border: 2px solid var(--w); color: var(--w); font-weight: 700; font-size: 16px; letter-spacing: .2em; background: var(--white); }
.ta-work button.on { background: var(--w); color: #fff; }
.ta-form .chips { flex-wrap: wrap; }
.ta-cust .list { margin-top: 8px; }
.ta-note { max-width: 760px; margin: 0 auto 10px; display: flex; gap: 6px; align-items: center; font-size: 12.5px; color: #173f57; background: var(--blue-soft); padding: 10px 12px; border-radius: 12px; }
/* 保証書 */
.ta-wr { font-family: var(--f-mincho, serif); }
.ta-wr__no { text-align: right; font-size: 12px; }
.ta-wr__title { text-align: center; font-size: 32px; letter-spacing: .5em; margin: 18px 0 26px; padding-left: .5em; border-bottom: 3px double var(--ink); padding-bottom: 10px; }
.ta-wr__to { display: flex; align-items: baseline; gap: 12px; border-bottom: 1.5px solid var(--ink); max-width: 420px; padding: 0 6px 6px; }
.ta-wr__to b { font-size: 24px; flex: 1; }
.ta-wr__lead { margin: 18px 0; font-size: 13.5px; line-height: 1.9; }
.ta-wr__tb { width: 100%; border-collapse: collapse; font-size: 14px; }
.ta-wr__tb th, .ta-wr__tb td { border: 1px solid var(--ink); padding: 11px 14px; text-align: left; }
.ta-wr__tb th { width: 9em; background: var(--paper); font-weight: 700; letter-spacing: .1em; white-space: nowrap; }
.ta-wr__terms { margin-top: 18px; font-size: 12.5px; line-height: 1.8; }
.ta-wr__terms ol { margin: 6px 0 0 1.4em; padding: 0; }
.ta-wr__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-top: 28px; font-size: 13px; flex-wrap: wrap; }
@media print { .ta-note { display: none !important; } .ta-wr__tb th { background: #f3f1ec !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
/* 先回り */
.sk-card { border: 1.5px solid var(--amber, #e8b04a); }
.sk-guide { display: grid; gap: 6px; background: var(--paper); border-radius: 12px; padding: 12px 14px; font-size: 13px; }
.sk-guide > div:first-child, div.sk-guide:not(:has(> div)) { display: flex; gap: 6px; align-items: center; }
.sk-guide svg.i { color: #b07a10; flex: none; }
.sk-guide--none { color: var(--muted); }
.sk-guide__big { font-size: 26px; letter-spacing: .02em; }
.sk-guide__big small { font-size: 13px; color: var(--muted); margin-left: 6px; font-weight: 500; }
.sk-guide__list { display: grid; gap: 2px; }
.sk-guide__list a { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; padding: 6px 0; border-top: 1px dashed var(--line); color: var(--text); }
.sk-guide__list a span { color: var(--muted); white-space: nowrap; }
.sk-picks { display: grid; gap: 6px; }
.sk-pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 13.5px; line-height: 1.5; }
.sk-pick input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--ink); }
.sk-pick small { display: block; color: var(--muted); font-size: 11.5px; }
.sk-hist { margin: 6px 0 0; padding-left: 1.1em; font-size: 12.5px; line-height: 1.7; }
.sk-hist .tag { margin-left: 6px; }
.sk-known { margin-bottom: 4px; }
.alert--ok { background: var(--green-soft); color: #164d33; }
.alert--ok svg.i { color: #2c8a5a; }
/* お客様の画面の頭：家の写真を名前の横に大きく */
.ta-head--ph { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 14px; align-items: start; }
.ta-hero { display: block; width: 116px; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.ta-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ta-head--ph .ta-name { padding-right: 0; margin-top: 8px; }
.ta-head--ph .ta-head__body { padding-right: 64px; min-width: 0; }
@media (min-width: 720px) { .ta-head--ph { grid-template-columns: 200px minmax(0, 1fr); gap: 20px; } .ta-hero { width: 200px; aspect-ratio: 4 / 3; } }
/* トップ：今日・明日の予定と今月の目標 */
.td-top { display: grid; gap: 10px; }
@media (min-width: 900px) { .td-top { grid-template-columns: minmax(0, 1fr) 240px; align-items: stretch; } }
.td { margin: 0; padding: 12px 14px; }
.td-days { display: grid; gap: 10px; }
@media (min-width: 600px) { .td-days { grid-template-columns: 1fr 1fr; } }
.td-day__h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.td-day__h b { font-size: 14px; letter-spacing: .1em; }
.td-day__h span { font-size: 12px; color: var(--muted); }
.td-item { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 10px; border-left: 4px solid var(--w); background: var(--paper); border-radius: 0 10px 10px 0; margin-bottom: 6px; }
.td-item__t { font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 700; width: 42px; flex: none; }
.td-item__b { flex: 1; min-width: 0; color: var(--text); }
.td-item__b b { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-item__b span { display: block; font-size: 11.5px; color: var(--muted); }
.td-item .iconbtn { width: 34px; height: 34px; flex: none; }
.td-none { font-size: 12.5px; color: var(--muted); margin: 2px 0 6px; }
.gls { margin: 0; padding: 12px 14px; display: grid; gap: 8px; text-align: left; width: 100%; align-content: start; }
.gls__h { font-size: 14px; font-weight: 700; letter-spacing: .1em; }
.gl__t { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; color: var(--muted); }
.gl__t b { color: var(--text); font-size: 14px; }
.gl__t small { color: var(--muted); font-weight: 500; }
.gl__bar { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; margin-top: 3px; }
.gl__bar > i { display: block; height: 100%; background: var(--ink); border-radius: 3px; }
.ta-when { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.ta-when--3 { grid-template-columns: 1fr 110px 80px; }
/* 地図 */
.mp { display: grid; gap: 10px; }
.mp-bar { flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.mp-msg { font-size: 12px; }
.mp-map { height: calc(100dvh - 230px); min-height: 360px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #e8ece9; z-index: 0; }
@media (min-width: 1100px) { .mp-map { height: calc(100dvh - 190px); } }
.mp-pop { display: grid; gap: 2px; font-family: var(--f-gothic); font-size: 12.5px; min-width: 180px; }
.mp-pop b { font-size: 14px; }
.mp-pop span { color: #6b675f; }
.mp-pop div { display: flex; gap: 12px; margin-top: 6px; }
.mp-pop a { font-weight: 700; color: #2f6f68; }
/* カレンダー連携 */
.cal-steps { margin: 0; padding-left: 1.3em; font-size: 13px; line-height: 1.9; }
