/* =========================================================
   出張日報 事務入力マニュアル（スライド）
   ⚠ 16:9（1280×720）で作り、画面の大きさに合わせて丸ごと拡大縮小する。
     文字だけを縮めると、端末ごとに折り返しが変わって見切れる（営業向けマニュアルと同じ作り）。
   ⚠ 文字は端末に入っているフォントだけを使う（読み込み待ちの文字化けを避ける）。
   ⚠ 絵文字は使わない（端末によって形が変わる・出ないことがある）。印は CSS で描く。
   ========================================================= */
:root {
  --mj-ink: #2f2a3d;
  --mj-sub: #6b6578;
  --mj-bg: #fffaf6;
  --mj-card: #ffffff;
  --mj-line: #efe6ea;
  --mj-pink: #f2a0b4;
  --mj-pink-d: #d9607e;
  --mj-pink-l: #fde9ef;
  --mj-mint: #7dcdb2;
  --mj-mint-d: #2f9b78;
  --mj-mint-l: #e2f5ee;
  --mj-lav: #b7aaf0;
  --mj-lav-d: #7462cf;
  --mj-lav-l: #efecfd;
  --mj-lemon: #ffdc7a;
  --mj-lemon-l: #fff5d4;
  --mj-coral: #e8506d;
  --mj-w: 1280px;
  --mj-h: 720px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: #2b2735;
  color: var(--mj-ink);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "BIZ UDPGothic",
    Meiryo, "Noto Sans JP", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* 日本語を文節で折る。助詞の直前や単語の途中で切れないようにする */
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%;
}

/* ---- 台紙と拡大縮小 ---- */
.mj-stage { position: fixed; inset: 0; overflow: hidden; }
/* ⚠ 台紙の真ん中に置いてから縮める（left/top 50%＋translate(-50%,-50%)。transform は JS が入れる）。
     2026-10-27 まではグリッドの真ん中寄せにまかせていたが、1280px の台紙が画面より広いと
     グリッドの列が 1280px に広がって左寄せになり、縮めた中身が画面の右の外へ出ていた
     （スマホの縦で「マニュアルが真っ暗」。横でも半分見切れていた）。 */
.mj-scaler { position: absolute; left: 50%; top: 50%; width: var(--mj-w); height: var(--mj-h); transform-origin: center center; }
.mj-slide {
  position: absolute; inset: 0;
  width: var(--mj-w); height: var(--mj-h);
  background: var(--mj-bg);
  border-radius: 10px;
  overflow: hidden;
  display: none;
  padding: 40px 56px 54px;
}
.mj-slide.is-on { display: flex; flex-direction: column; }
/* 見出しの下の中身を、残りの高さの上下まん中に置く（下だけ大きく空かないように）。
   ⚠ いちばん後ろの子は下の帯（.mj-foot・絶対位置）なので、その1つ前が中身の最後。 */
.mj-slide > .mj-head + * { margin-top: auto !important; }
.mj-slide > :nth-last-child(2) { margin-bottom: auto !important; }
.mj-head { flex: 0 0 auto; }
/* ⚠ 中身を縮めない（縮むと写真の下が切れて、はみ出しにも気づけない） */
.mj-slide > * { flex-shrink: 0; }
/* 角のやわらかい飾り（丸）。中身の後ろに敷く */
.mj-slide::before, .mj-slide::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
}
.mj-slide::before { width: 260px; height: 260px; right: -90px; top: -110px; background: var(--mj-pink-l); }
.mj-slide::after { width: 170px; height: 170px; left: -70px; bottom: -80px; background: var(--mj-mint-l); }
.mj-slide > * { position: relative; z-index: 1; }

/* ---- 見出し ---- */
.mj-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 800; letter-spacing: .08em;
  color: var(--mj-pink-d); background: var(--mj-pink-l);
  padding: 5px 14px 5px 10px; border-radius: 999px; margin: 0 0 10px;
}
.mj-eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mj-pink); }
.mj-eyebrow--mint { color: var(--mj-mint-d); background: var(--mj-mint-l); }
.mj-eyebrow--mint::before { background: var(--mj-mint); }
.mj-eyebrow--lav { color: var(--mj-lav-d); background: var(--mj-lav-l); }
.mj-eyebrow--lav::before { background: var(--mj-lav); }
.mj-h1 { font-size: 36px; font-weight: 800; margin: 0 0 8px; line-height: 1.3; letter-spacing: .01em; }
/* 大事な言葉に引く蛍光ペン */
.mj-mark { background: linear-gradient(transparent 62%, var(--mj-lemon) 62%); padding: 0 2px; }
.mj-lead { font-size: 18px; line-height: 1.7; color: var(--mj-sub); margin: 0; }
.mj-head { margin-bottom: 18px; }

/* ---- 2段組（左：説明／右：画面） ---- */
.mj-cols { display: grid; grid-template-columns: 400px 1fr; gap: 34px; align-items: start; }
.mj-cols--half { grid-template-columns: 1fr 1fr; }
.mj-cols--r { grid-template-columns: 1fr 380px; }

/* ---- 手順のリスト ---- */
.mj-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.mj-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: start; }
.mj-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--mj-pink); color: #fff;
  font-size: 16px; font-weight: 800; line-height: 1; text-align: center;
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 3px 0 rgba(217, 96, 126, .25);
}
.mj-num--mint { background: var(--mj-mint); box-shadow: 0 3px 0 rgba(47, 155, 120, .25); }
.mj-num--lav { background: var(--mj-lav); box-shadow: 0 3px 0 rgba(116, 98, 207, .25); }
.mj-num--coral { background: var(--mj-coral); }
.mj-steps b { display: block; font-size: 18px; line-height: 1.5; margin-bottom: 1px; }
.mj-steps span { display: block; font-size: 15px; line-height: 1.65; color: var(--mj-sub); }
/* ⚠ 丸の番号も span なので、上の「説明の文字」の決まりが当たってしまう（数字が上に寄る）。番号は番号の形に戻す */
.mj-steps .mj-num { display: inline-flex; font-size: 16px; line-height: 1; color: #fff; }
.mj-steps--3col .mj-num { font-size: 15px; }

/* ---- 画面の写真（ブラウザの枠） ---- */
.mj-shot {
  background: var(--mj-card); border-radius: 16px; overflow: hidden;
  box-shadow: 0 10px 28px rgba(80, 60, 90, .14), 0 0 0 1px rgba(80, 60, 90, .06);
}
.mj-shot__bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #f6eff2; }
.mj-shot__bar i { width: 10px; height: 10px; border-radius: 50%; background: #f2a0b4; }
.mj-shot__bar i:nth-child(2) { background: #ffdc7a; }
.mj-shot__bar i:nth-child(3) { background: #7dcdb2; }
.mj-shot__bar span { margin-left: 8px; font-size: 12px; color: var(--mj-sub); font-weight: 700; }
.mj-shot__img { position: relative; }
.mj-shot__img img { display: block; width: 100%; height: auto; }
.mj-cap { margin: 8px 2px 0; font-size: 13px; color: var(--mj-sub); }
/* 写真の上に置く番号札（位置は % で指定） */
.mj-pin {
  position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%;
  background: var(--mj-coral); color: #fff; font-size: 15px; font-weight: 800; line-height: 1; text-align: center;
  display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(0, 0, 0, .25);
}
/* 写真の上で囲む枠 */
.mj-ring { position: absolute; border: 3px solid var(--mj-coral); border-radius: 12px; box-shadow: 0 0 0 3px rgba(255, 255, 255, .8); }

/* ---- カード ---- */
.mj-card {
  background: var(--mj-card); border-radius: 18px; padding: 18px 20px;
  box-shadow: 0 6px 18px rgba(80, 60, 90, .08), 0 0 0 1px var(--mj-line);
}
.mj-card h3 { margin: 0 0 6px; font-size: 18px; display: flex; align-items: center; gap: 8px; }
.mj-card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--mj-sub); }
.mj-card--pink { background: var(--mj-pink-l); box-shadow: none; }
.mj-card--mint { background: var(--mj-mint-l); box-shadow: none; }
.mj-card--lav { background: var(--mj-lav-l); box-shadow: none; }
.mj-card--lemon { background: var(--mj-lemon-l); box-shadow: none; }
.mj-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.mj-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---- 注意の帯 ---- */
.mj-note {
  margin-top: 16px; padding: 12px 16px 12px 46px; border-radius: 14px; position: relative;
  background: var(--mj-lemon-l); font-size: 15px; line-height: 1.65;
}
.mj-note::before {
  content: "!"; position: absolute; left: 13px; top: 12px; width: 22px; height: 22px; border-radius: 50%;
  background: #e8a92a; color: #fff; font-weight: 800; font-size: 14px; line-height: 1; text-align: center;
  display: flex; align-items: center; justify-content: center;
}
.mj-note b { color: #9a6a00; }
.mj-note--ok { background: var(--mj-mint-l); }
.mj-note--ok::before { content: "✓"; background: var(--mj-mint-d); }
.mj-note--ok b { color: var(--mj-mint-d); }
.mj-note--ng { background: var(--mj-pink-l); }
.mj-note--ng::before { background: var(--mj-coral); }
.mj-note--ng b { color: var(--mj-coral); }

/* ---- 画面の中の言葉 ---- */
.mj-key { display: inline-block; padding: 0 8px; border-radius: 6px; background: #e6f1ec; color: #1f5e4a; font-weight: 800; }
.mj-key--pink { background: var(--mj-pink-l); color: var(--mj-pink-d); }
.mj-key--red { background: #fde4e8; color: var(--mj-coral); }

/* ---- 表紙 ---- */
.mj-cover { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 420px; align-items: center;
  padding: 0 70px; background: linear-gradient(140deg, #fff3f6 0%, #fffaf3 48%, #eaf8f2 100%); }
.mj-cover__tag { display: inline-block; font-size: 14px; font-weight: 800; letter-spacing: .14em; color: var(--mj-pink-d);
  border: 2px solid var(--mj-pink); border-radius: 999px; padding: 6px 16px; margin-bottom: 22px; }
.mj-cover h1 { font-size: 54px; line-height: 1.25; margin: 0 0 18px; font-weight: 800; }
.mj-cover h1 small { display: block; font-size: 24px; color: var(--mj-sub); font-weight: 700; margin-bottom: 8px; letter-spacing: .06em; }
.mj-cover p { font-size: 18px; line-height: 1.8; color: var(--mj-sub); margin: 0; }
.mj-cover__foot { margin-top: 28px !important; font-size: 15px !important; }
.mj-cover__art { position: relative; height: 420px; }
.mj-blob { position: absolute; border-radius: 50%; }
.mj-cover__art .mj-shot { position: absolute; width: 360px; left: 30px; top: 70px; transform: rotate(-3deg); }

/* ---- 中扉 ---- */
.mj-divider { position: absolute; inset: 0; display: flex; align-items: center; gap: 56px; padding: 0 100px;
  background: linear-gradient(120deg, #fde9ef 0%, #fffaf6 60%); }
.mj-divider--mint { background: linear-gradient(120deg, #e2f5ee 0%, #fffaf6 60%); }
.mj-divider--lav { background: linear-gradient(120deg, #efecfd 0%, #fffaf6 60%); }
.mj-divider--lemon { background: linear-gradient(120deg, #fff5d4 0%, #fffaf6 60%); }
.mj-divider__no { width: 190px; height: 190px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center;
  background: #fff; box-shadow: 0 12px 30px rgba(80, 60, 90, .12); font-size: 96px; font-weight: 800; color: var(--mj-pink-d); line-height: 1; }
.mj-divider--mint .mj-divider__no { color: var(--mj-mint-d); }
.mj-divider--lav .mj-divider__no { color: var(--mj-lav-d); }
.mj-divider--lemon .mj-divider__no { color: #c08a00; }
.mj-divider h1 { font-size: 46px; margin: 0 0 12px; }
.mj-divider p { font-size: 19px; line-height: 1.7; color: var(--mj-sub); margin: 0; }

/* ---- 流れの図 ---- */
/* 流れは4つ（2026-10-15：前日分を確かめる → 承認・確定 → 日報をひらく → 日報を入力する） */
.mj-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 10px; }
.mj-flow__box { position: relative; background: #fff; border-radius: 20px; padding: 18px 14px 16px; text-align: center;
  box-shadow: 0 6px 18px rgba(80, 60, 90, .08), 0 0 0 1px var(--mj-line); }
.mj-flow__box:not(:last-child)::after { content: ""; position: absolute; right: -13px; top: 50%; margin-top: -7px;
  border: 7px solid transparent; border-left: 9px solid #d9c9d0; }
.mj-flow__no { width: 40px; height: 40px; border-radius: 50%; margin: 0 auto 10px; line-height: 1; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: #fff; background: var(--mj-pink); }
.mj-flow__box:nth-child(2) .mj-flow__no { background: #f0b56c; }
.mj-flow__box:nth-child(3) .mj-flow__no { background: var(--mj-mint); }
.mj-flow__box:nth-child(4) .mj-flow__no { background: #7fb6e6; }
.mj-flow__box:nth-child(5) .mj-flow__no { background: var(--mj-lav); }
.mj-flow__box b { display: block; font-size: 18px; line-height: 1.4; margin-bottom: 6px; }
.mj-flow__box span { display: block; font-size: 13.5px; line-height: 1.6; color: var(--mj-sub); }

/* ---- 計算式の図 ---- */
.mj-eq { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: nowrap; margin: 6px 0 4px; }
.mj-eq__term { background: #fff; border-radius: 16px; padding: 12px 14px; text-align: center; min-width: 128px;
  box-shadow: 0 0 0 2px var(--mj-line); }
.mj-eq__term em { display: block; font-style: normal; font-size: 13px; color: var(--mj-sub); font-weight: 700; }
.mj-eq__term b { display: block; font-size: 21px; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mj-eq__term--pink { box-shadow: 0 0 0 2px var(--mj-pink); background: var(--mj-pink-l); }
.mj-eq__term--mint { box-shadow: 0 0 0 2px var(--mj-mint); background: var(--mj-mint-l); }
.mj-eq__term--lav { box-shadow: 0 0 0 2px var(--mj-lav); background: var(--mj-lav-l); }
.mj-eq__op { font-size: 28px; font-weight: 800; color: #c7b6be; }

/* ---- 表 ---- */
.mj-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; background: #fff;
  border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--mj-line); }
.mj-table th, .mj-table td { padding: 9px 14px; text-align: left; line-height: 1.55; border-bottom: 1px solid var(--mj-line); vertical-align: top; }
.mj-table tr:last-child th, .mj-table tr:last-child td { border-bottom: 0; }
.mj-table thead th { background: #f8eef2; font-size: 14px; color: var(--mj-pink-d); }
.mj-table tbody th { width: 150px; white-space: nowrap; }
.mj-table td small { color: var(--mj-sub); }
.mj-table--tight th, .mj-table--tight td { padding: 7px 12px; font-size: 14.5px; }
/* 行の多い表（状態の表示など）を1枚に収める小さめの字（2026-11-25） */
.mj-table--mini th, .mj-table--mini td { padding: 4px 10px; font-size: 12.5px; line-height: 1.45; }

/* ---- 日をまたぐ図（差異が続く） ---- */
.mj-days { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 8px; }
.mj-day { background: #fff; border-radius: 16px; padding: 12px 14px; text-align: center; box-shadow: 0 0 0 1px var(--mj-line); }
.mj-day em { display: block; font-style: normal; font-size: 13px; color: var(--mj-sub); font-weight: 700; }
.mj-day b { display: block; font-size: 28px; margin-top: 6px; }
.mj-day { padding: 18px 14px !important; }
.mj-day em { font-size: 15px !important; }
.mj-day.is-ng { background: var(--mj-pink-l); box-shadow: 0 0 0 2px var(--mj-pink); }
.mj-day.is-ng b { color: var(--mj-coral); }
.mj-day.is-start { box-shadow: 0 0 0 3px var(--mj-coral); }
.mj-day i { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 800; color: #fff;
  background: var(--mj-coral); border-radius: 999px; padding: 2px 10px; }

/* ---- 早見表の向き札 ---- */
.mj-sign { display: inline-block; min-width: 92px; text-align: center; border-radius: 999px; padding: 3px 10px;
  font-weight: 800; font-size: 14px; }
.mj-sign--minus { background: #fde4e8; color: var(--mj-coral); }
.mj-sign--plus { background: #e2f0fb; color: #2f6fa8; }

/* ---- チェックリスト ---- */
.mj-check { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; list-style: none; padding: 0; margin: 4px 0 0; }
.mj-check li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; background: #fff;
  border-radius: 14px; padding: 16px 18px; box-shadow: 0 0 0 1px var(--mj-line); font-size: 17px; line-height: 1.6; }
.mj-check i { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--mj-mint); color: var(--mj-mint-d);
  font-style: normal; font-weight: 800; text-align: center; line-height: 1; font-size: 16px;
  display: flex; align-items: center; justify-content: center; }
.mj-check b { display: block; }
.mj-check span { color: var(--mj-sub); font-size: 15px; }

/* ---- Q&A ---- */
.mj-qa { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mj-qa > div { background: #fff; border-radius: 16px; padding: 14px 16px; box-shadow: 0 0 0 1px var(--mj-line); }
.mj-qa b { display: flex; gap: 8px; font-size: 18px; line-height: 1.5; margin-bottom: 6px; }
.mj-qa b::before { content: "Q"; flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--mj-lav); color: #fff;
  font-size: 13px; line-height: 1; text-align: center; display: flex; align-items: center; justify-content: center; }
.mj-qa p { margin: 0 0 0 32px; font-size: 16px; line-height: 1.7; color: var(--mj-sub); }
.mj-qa > div { padding: 18px 20px; }

/* ---- 下の帯（ページ番号） ---- */
.mj-foot { position: absolute; left: 56px; right: 56px; bottom: 18px; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; color: #a49caf; pointer-events: none; }
.mj-foot span:first-child::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--mj-pink); margin-right: 8px; vertical-align: 1px; }

/* ---- 操作バー ---- */
.mj-bar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center;
  justify-content: center; gap: 10px; padding: 10px; background: rgba(32, 28, 42, .86); z-index: 10; }
.mj-bar button { border: 1px solid #4d4760; background: #35304a; color: #f3eff8;
  border-radius: 999px; padding: 8px 18px; font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit; }
.mj-bar button:hover { background: #443d5e; }
.mj-bar__page { color: #d8d1e4; font-size: 14px; min-width: 78px; text-align: center; font-variant-numeric: tabular-nums; }
/* 閉じる（ご指示 2026-10-15）。ページ送りと間違えて押さないよう、少し離して色を変える */
.mj-bar__close { margin-left: 18px; background: #5a3140 !important; border-color: #7b4357 !important; }
.mj-bar__close:hover { background: #71404f !important; }


/* ---- スマホの縦：横向きの案内（2026-10-27）。置き場所（bottom）は JS が入れる ---- */
.mj-rotate { display: none; }
@media (orientation: portrait) and (max-width: 900px) {
  .mj-rotate {
    display: flex; position: fixed; left: 12px; right: 12px; z-index: 5;
    justify-content: center; align-items: center; gap: 8px; margin: 0; padding: 10px 14px;
    border-radius: 12px; background: #35304a; border: 1px solid #4d4760; color: #f3eff8;
    font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center;
  }
  .mj-rotate__icon { font-size: 18px; }
}

/* ---- 印刷・PDF（1枚＝1ページ・16:9） ---- */
@media print {
  @page { size: 1280px 720px; margin: 0; }
  html, body { background: #fff; height: auto; }
  .mj-stage { position: static; display: block; overflow: visible; }
  .mj-scaler { position: static; width: auto; height: auto; transform: none !important; }
  .mj-slide { position: relative; display: flex !important; flex-direction: column; border-radius: 0; page-break-after: always; break-after: page;
    -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .mj-slide:last-child { page-break-after: auto; break-after: auto; }
  .mj-bar { display: none; }
  .mj-rotate { display: none !important; }
}

/* ---- 実例（3つの枠を同じ大きさにそろえる） ---- */
.mj-ex { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mj-ex__h { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 17px; margin: 0 0 8px; }
.mj-ex .mj-shot__img { height: 252px; overflow: hidden; background: #fff; }
.mj-ex__cash { width: 312% !important; max-width: none; margin-left: -208%; }
.mj-ex__paper { height: 100%; display: flex; align-items: center; justify-content: center; background: #f3efe4; }
.mj-ex__paper img { width: auto !important; height: 92%; }
.mj-ex .mj-cap { min-height: 2.9em; font-size: 14px; line-height: 1.5; }
/* 提出状況：写真を大きく、説明は下に3列 */
.mj-steps--3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 22px; }
.mj-steps--3col li { grid-template-columns: 30px 1fr; gap: 10px; }
.mj-steps--3col b { font-size: 16.5px; }
.mj-steps--3col span { font-size: 14px; }
.mj-pin--sm { width: 26px; height: 26px; margin: -13px 0 0 -13px; font-size: 13px; }
