/* ============================================================================
 * report.css — HOST-PAAN ご利用報告書の紙面 (2026-10-05)
 *   A4 横 1 頁 = .rp-page (297mm × 210mm = 1123 × 794px)。 報告書の画面 (report.html) と、
 *   ポータル (index.html) の見えない入れ物の両方で使う。 ★class は全部 rp- (report.js の el() が付ける)。
 *   ポータルの CSS が紛れ込まないよう、 要素の余白・字の大きさはここで明示する。
 *   色は HOST の深緑 #1F5A3E と金 #C9A961。 外部フォントは使わない (CSP)。
 * ========================================================================== */
/* ★2026-10-05 社長「文字のまま PDF に」: 画面も PDF も BIZ UDPゴシック (OFL・埋め込み可)。 同じ書体で測る = PDF の文字位置が画面と一致。
   メイリオは埋め込んで配れないので替えた。 ファイルは /assets/ (1 年キャッシュ)。 */
@font-face { font-family: "BIZ UDPGothic"; font-weight: 400; font-display: block; src: url("/assets/fonts/BIZUDPGothic-Regular-1.ttf") format("truetype"); }
@font-face { font-family: "BIZ UDPGothic"; font-weight: 700; font-display: block; src: url("/assets/fonts/BIZUDPGothic-Bold-1.ttf") format("truetype"); }
.rp-sheet {
  --rp-ink: #14211A; --rp-sub: #5E6E64; --rp-line: #D3E2D8; --rp-accent: #1F5A3E; --rp-deep: #17442F;
  --rp-tint: #EEF5F0; --rp-gold: #C9A961; --rp-warn: #a8410a;
  width: 1123px; color: var(--rp-ink); text-align: left;
  font-family: "BIZ UDPGothic", sans-serif;
  font-size: 14px; line-height: 1.6; letter-spacing: normal; -webkit-font-smoothing: antialiased;
}
.rp-sheet *, .rp-sheet *::before, .rp-sheet *::after { box-sizing: border-box; }
.rp-sheet div, .rp-sheet span, .rp-sheet ul, .rp-sheet li, .rp-sheet table, .rp-sheet h1, .rp-sheet em, .rp-sheet small { margin: 0; padding: 0; }
.rp-sheet > .rp-meta, .rp-sheet > h1, .rp-sheet > .rp-unmeasured { background: #fff; padding: 24px 32px; margin: 0; }
.rp-sheet .rp-meta { color: var(--rp-sub); font-size: 13px; }

/* ---- 頁 ---- */
.rp-sheet .rp-page { position: relative; width: 1123px; height: 794px; overflow: hidden; background: #fff;
                     margin: 0 0 24px; box-shadow: 0 2px 14px rgba(20,33,26,.12); }
.rp-sheet.rp-pdfing .rp-page { margin: 0; box-shadow: none; }
.rp-sheet .rp-pg-head { position: absolute; top: 0; left: 0; right: 0; height: 40px; padding: 0 44px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--rp-line); font-size: 11.5px; color: var(--rp-sub); letter-spacing: .08em; }
.rp-sheet .rp-pg-bar { position: absolute; left: 0; top: 0; bottom: -1px; width: 8px; background: var(--rp-accent); }   /* 擬似要素は使わない (PDF が読めない) */
.rp-sheet .rp-pg-org { font-weight: 600; color: var(--rp-deep); }
.rp-sheet .rp-pg-no { position: absolute; right: 44px; bottom: 18px; font-size: 12px; color: var(--rp-sub); font-variant-numeric: tabular-nums; }
.rp-sheet .rp-pg-body { position: absolute; top: 62px; left: 44px; right: 44px; bottom: 44px; display: flex; flex-direction: column; gap: 16px; }

/* ---- 表紙 ---- */
.rp-sheet .rp-page--cover { background: linear-gradient(160deg, #fff 0%, #fff 55%, var(--rp-tint) 100%); }
.rp-sheet .rp-page--cover .rp-pg-body { top: 0; left: 0; right: 0; bottom: 0; gap: 0; }
.rp-sheet .rp-cv-brand { position: absolute; top: 56px; left: 64px; font-family: "BIZ UDPGothic", sans-serif;
  font-size: 18px; letter-spacing: .3em; color: var(--rp-accent); }
.rp-sheet .rp-cv-band { position: absolute; top: 290px; left: 0; right: 0; height: 170px; background: var(--rp-accent);
  color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.rp-sheet .rp-cv-gold { position: absolute; left: 0; right: 0; bottom: -6px; height: 3px; background: var(--rp-gold); }
.rp-sheet .rp-cv-title { font-size: 40px; font-weight: 700; letter-spacing: .14em; }
.rp-sheet .rp-cv-sub { font-size: 22px; letter-spacing: .2em; margin-top: 4px; opacity: .92; }
.rp-sheet .rp-cv-to { position: absolute; top: 500px; left: 0; right: 0; text-align: center; font-size: 24px; letter-spacing: .1em; }
.rp-sheet .rp-cv-period { position: absolute; top: 552px; left: 0; right: 0; text-align: center; font-size: 15px; color: var(--rp-sub); letter-spacing: .06em; }
.rp-sheet .rp-cv-from { position: absolute; right: 72px; bottom: 64px; text-align: right; font-size: 18px; line-height: 1.8; }

/* ---- 見出し帯 + 枠 (Ⅰ．…) ---- */
.rp-sheet .rp-blk { display: flex; flex-direction: column; min-height: 0; }
.rp-sheet .rp-blk-tab { align-self: flex-start; background: var(--rp-tint); color: var(--rp-deep); font-size: 19px; font-weight: 700;
  padding: 4px 22px 4px 14px; border-left: 6px solid var(--rp-accent); letter-spacing: .04em;
  margin-bottom: 8px; }   /* ★2026-10-05 社長「見出しと枠の重なりを解消」: 帯と枠の角丸がくっついて見えたので離す */
.rp-sheet .rp-blk-mark { margin-right: 4px; }
.rp-sheet .rp-blk-box { border: 2px solid var(--rp-accent); border-radius: 10px; padding: 14px 20px; flex: 1; min-height: 0; }
.rp-sheet .rp-blk--slim .rp-blk-box { flex: none; }

.rp-sheet .rp-pts { list-style: none; }
.rp-sheet .rp-pts li { position: relative; padding-left: 24px; margin: 4px 0; font-size: 15px; line-height: 1.65; }
.rp-sheet .rp-pts .rp-pts-mark { position: absolute; left: 2px; top: 0; color: var(--rp-accent); font-weight: 700; }
.rp-sheet .rp-pts em { font-style: normal; font-weight: 700; color: var(--rp-deep);
  background: linear-gradient(transparent 62%, rgba(201,169,97,.38) 62%); }

.rp-sheet .rp-facts { display: flex; gap: 40px; flex-wrap: wrap; }
.rp-sheet .rp-fact { display: flex; gap: 14px; align-items: baseline; }
.rp-sheet .rp-fact-l { font-size: 13px; color: var(--rp-sub); }
.rp-sheet .rp-fact-v { font-size: 18px; font-weight: 700; }

.rp-sheet .rp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 10px; }
.rp-sheet .rp-kpi { background: var(--rp-tint); border: 0; border-radius: 8px; padding: 10px 16px; }
.rp-sheet .rp-kpi-l { font-size: 12.5px; color: var(--rp-sub); }
.rp-sheet .rp-kpi-v { font-size: 30px; font-weight: 700; color: var(--rp-deep); font-variant-numeric: tabular-nums; line-height: 1.25; }
.rp-sheet .rp-kpis--5 { grid-template-columns: repeat(5, 1fr); margin-bottom: 14px; }
.rp-sheet .rp-kpis--5 .rp-kpi-v { font-size: 25px; white-space: nowrap; }   /* 5 つ並び。 「425,600円」 が折り返さない大きさ (BIZ UDPゴシックは字幅が広い) */
.rp-sheet .rp-kpi-sub { font-size: 11.5px; color: var(--rp-sub); margin-top: 2px; }
.rp-sheet .rp-kpi-v small { font-size: 14px; margin-left: 3px; font-weight: 600; }

.rp-sheet .rp-bars { display: flex; align-items: flex-end; gap: 2px; height: 150px; margin: 10px 0 2px; border-bottom: 1px solid var(--rp-line); }
.rp-sheet .rp-bars .rp-bar-slot { flex: 1; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.rp-sheet .rp-bars .rp-bar-slot i { display: block; width: 100%; background: var(--rp-accent); min-height: 1px; border-radius: 2px 2px 0 0; }
.rp-sheet .rp-bars-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--rp-sub); }

.rp-sheet table { width: 100%; table-layout: fixed; border-collapse: collapse; margin: 10px 0 4px; font-size: 13px; }
.rp-sheet th, .rp-sheet td { border: 0; border-bottom: 1px solid var(--rp-line); padding: 6px 8px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.rp-sheet th { color: #fff; background: var(--rp-accent); font-weight: 600; font-size: 12.5px; }
.rp-sheet td.rp-num, .rp-sheet th.rp-num { text-align: right; font-variant-numeric: tabular-nums; }
.rp-sheet tbody tr:nth-child(2n) td { background: #F7FAF8; }

.rp-sheet .rp-lead { margin-bottom: 10px; }
.rp-sheet .rp-grid4 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; flex: 1; min-height: 0; }
.rp-sheet .rp-cell { border-top: 1px solid var(--rp-line); padding-top: 6px; min-height: 0; }
.rp-sheet .rp-cell-h { font-size: 14px; font-weight: 700; color: var(--rp-deep); margin-bottom: 4px; }
.rp-sheet .rp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; flex: 1; min-height: 0; }
.rp-sheet .rp-two > div { display: flex; flex-direction: column; min-height: 0; }

.rp-sheet .rp-hb { display: flex; flex-direction: column; gap: 4px; }
.rp-sheet .rp-hb-row { display: grid; grid-template-columns: 22px 13em minmax(0, 1fr) 3.6em; gap: 8px; align-items: center; font-size: 13px; }
.rp-sheet .rp-hb-rank { width: 20px; height: 20px; border-radius: 50%; background: var(--rp-tint); color: var(--rp-deep);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rp-sheet .rp-hb-row:nth-child(-n+3) .rp-hb-rank { background: var(--rp-accent); color: #fff; }
.rp-sheet .rp-hb-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-sheet .rp-hb-track { height: 10px; background: #EDF2EE; border-radius: 5px; overflow: hidden; }
.rp-sheet .rp-hb-track i { display: block; height: 100%; background: var(--rp-accent); border-radius: 5px; }
.rp-sheet .rp-hb-val { text-align: right; font-variant-numeric: tabular-nums; color: var(--rp-ink); }

.rp-sheet .rp-note { color: var(--rp-sub); font-size: 11.5px; margin: 6px 0 0; line-height: 1.6; }
.rp-sheet .rp-none { color: var(--rp-sub); font-size: 13.5px; }
.rp-sheet .rp-unmeasured { color: var(--rp-warn); font-weight: 600; font-size: 13.5px; }
.rp-sheet .rp-contact { font-size: 16px; }
.rp-sheet .rp-contact-more { font-size: 14px; margin-top: 8px; line-height: 1.7; }
.rp-sheet th { white-space: nowrap; }
.rp-sheet .rp-ijo { align-self: flex-end; font-size: 16px; margin-top: auto; padding-right: 8px; }

@media print {
  @page { size: A4 landscape; margin: 0; }
  .rp-sheet .rp-page { margin: 0; box-shadow: none; break-after: page; }
  .rp-sheet * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---- 要約ページ (2026-10-05 社長「もっと広く使って、大きく」): 枠をページの下まで伸ばし、 数字と要点を大きく、 縦に配る ---- */
.rp-sheet .rp-blk--summary { flex: 1; }
.rp-sheet .rp-blk--summary .rp-blk-box { display: flex; flex-direction: column; justify-content: space-between; padding: 26px 30px 22px; }
.rp-sheet .rp-blk--summary .rp-kpis--5 { gap: 14px; margin-bottom: 0; }
.rp-sheet .rp-blk--summary .rp-kpi { padding: 18px 16px 16px; border-radius: 10px; }
.rp-sheet .rp-blk--summary .rp-kpi-l { font-size: 15px; }
.rp-sheet .rp-blk--summary .rp-kpis--5 .rp-kpi-v { font-size: 32px; margin-top: 4px; }
.rp-sheet .rp-blk--summary .rp-kpi-v small { font-size: 16px; }
.rp-sheet .rp-blk--summary .rp-kpi-sub { font-size: 13.5px; margin-top: 4px; }
.rp-sheet .rp-blk--summary .rp-pts li { font-size: 19px; line-height: 1.6; margin: 0; padding: 9px 0 9px 32px; border-bottom: 1px solid var(--rp-line); }
.rp-sheet .rp-blk--summary .rp-pts li:last-child { border-bottom: 0; }
.rp-sheet .rp-blk--summary .rp-pts .rp-pts-mark { top: 9px; font-size: 19px; }
.rp-sheet .rp-blk--summary .rp-note { font-size: 12.5px; }
/* 注文の合計 (桁が多い) と利用率 (見出しが長い) の列を少し広く。 見出しと補足は折り返さない */
.rp-sheet .rp-blk--summary .rp-kpis--5 { grid-template-columns: 1fr 1fr 1fr 1.25fr 1.2fr; }
.rp-sheet .rp-blk--summary .rp-kpi-l, .rp-sheet .rp-blk--summary .rp-kpi-sub { white-space: nowrap; }
