/*
 * 一元帳の3画面・デモ入口を、公式HP（dio-meta.com）の色調にそろえる（2026-11-16 社長指示）
 *  ・地：清潔なオフホワイト／ライトグレー　・文字・見出し・上の帯：深い濃紺（公式HP --hp-navy #0B1130）
 *  ・カード：白＋控えめな線（--hp-line）と薄い影（以前の立体的な凸凹の影はやめる）
 *  ・ピンの4色（巡回 緑・点検 青・緊急 赤・修繕 黄茶）と、注意・危険の色は変えない
 *  各画面のCSSのあとに読む（色の変数を上書きするだけで、配置は変えない）。
 */
:root {
  /* 公式HPの色（shared/hp-colors.css と同じ値） */
  --hp-navy: #0B1130; --hp-purple: #554587; --hp-ivory: #FAF7EE; --hp-blue-gray: #D9E3EF; --hp-line: #cfd6e2;
  /* 画面の変数（screen1.css / ichigen.css） */
  --bg: #f4f5f8;
  --card-a: #ffffff;
  --card-b: #f7f8fb;
  --text: #0B1130;
  --muted: #59607a;
  --navy: #0B1130;
  --canvas: #f4f5f8;
  --shell: #ffffff;
  --paper: #ffffff;
  --line: #e3e6ee;
  --line-strong: #cfd6e2;
  --navy-dark: #070b20;
  --beige: #eef0f5;
  --beige-line: #9aa3b5;
  --emboss: 0 1px 2px rgba(11, 17, 48, 0.05), 0 6px 18px rgba(11, 17, 48, 0.06);
  --raise: 0 1px 2px rgba(11, 17, 48, 0.08), 0 2px 6px rgba(11, 17, 48, 0.06);
  --press: inset 0 1px 3px rgba(11, 17, 48, 0.14);
  --well: inset 0 0 0 1px #d8dde8;
  /* デモ入口（demo-portal.html）の変数 */
  --bg-hi: #f8f9fb;
  --surface: #ffffff;
  --ink: #0B1130;
  --ink-2: #3c4462;
  --ink-3: #59607a;
  --sh-dark: rgba(11, 17, 48, 0.10);
  --sh-light: rgba(255, 255, 255, 0);
  --raise-sm: 0 1px 2px rgba(11, 17, 48, 0.08), 0 2px 6px rgba(11, 17, 48, 0.05);
}
html body { background: var(--bg) !important; color: var(--text); font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", system-ui, sans-serif; }
/* カード：白・細い線・薄い影 */
.card, .gx, .s1-gate, .np-card, .phone__screen .card { border: 1px solid var(--line) !important; }
/* 上の帯（画面の切り替え・レビューバー）は公式HPのヘッダーと同じ濃紺 */
.review-bar { background-color: var(--hp-navy) !important; }
/* 見出しは濃紺 */
.card__title, h1, h2, h3 { color: var(--hp-navy); }

/* 英語表示では語が長く、上の帯からはみ出して右端のボタンが隠れるため、帯の中で2行に折り返して収める（2026-11-16） */
html[lang="en"] header.top { gap: 8px; }
html[lang="en"] header.top .screen-nav a { white-space: normal; line-height: 1.15; font-size: 12px; max-width: 168px; }
html[lang="en"] header.top > .btn, html[lang="en"] header.top > button, html[lang="en"] header.top .sync { white-space: normal; line-height: 1.15; font-size: 12px; max-width: 150px; min-width: 0; }
html[lang="en"] header.top .grade-slot * { white-space: normal; line-height: 1.15; font-size: 12px; }
html[lang="en"] header.top .sources li span { font-size: 11px; }
html[lang="en"] header.top .sync { max-width: 110px; }
html[lang="en"] .alerts__head, html[lang="en"] .alerts__head .card__title { flex-wrap: wrap; white-space: normal; min-width: 0; }
html[lang="en"] .head-nav { flex-wrap: wrap; min-width: 0; max-width: 100%; }
html[lang="en"] .head-nav a, html[lang="en"] .head-nav__hp { white-space: normal; min-width: 0; }
html[lang="en"] header.top .screen-nav a { max-width: 136px; font-size: 11.5px; }
html[lang="en"] header.top .grade-slot { max-width: 140px; }
html[lang="en"] header.top .grade-slot * { white-space: normal !important; }
html[lang="en"] header.top .cancel-open-btn { max-width: 130px; }
