/* 共通画面のデザイントークン。Growth Paletteの余白・カード構成を水色で適用。 */
:root {
  --ink: #203e53; --muted: #708697; --line: #dfe9f0;
  --paper: #f5f8fb; --surface: #fff; --accent: #338cc3;
  --accent-soft: #eaf5fd; --radius: 12px;
  color: var(--ink); background: var(--paper);
  font-family: "LINE Seed JP", system-ui, -apple-system, "Segoe UI", "Meiryo", sans-serif;
}
body { background: var(--paper); font-size: 14px; line-height: 1.7; }
main { min-width: 0; }
main > header { background: transparent; border: 0; border-radius: 0; padding: 0; margin-bottom: 24px; box-shadow: none; }
h1 { font-size: 27px; line-height: 1.4; margin: 6px 0; letter-spacing: .02em; }
h2 { font-size: 18px; line-height: 1.5; }
h3 { font-size: 15px; }
header p, .card > p { color: var(--muted); }
.card, .metric-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 3px 16px #24485f03; }
.card { padding: 24px; margin: 18px 0; }
.eyebrow, .nav-caption { font-size: 10px; letter-spacing: .15em; color: var(--muted); }
a { color: var(--accent); text-underline-offset: 3px; }
main a { overflow-wrap: anywhere; }
.app-sidebar { background: var(--surface); border-color: var(--line); }
.app-sidebar nav > a.active { background: var(--accent-soft); color: var(--accent); }
.app-topbar { background: var(--surface); border-color: var(--line); }
.app-topbar .topbar-page-title { margin:0; min-width:0; font-size:18px; line-height:1.35; color:inherit; overflow-wrap:anywhere; }
.app-topbar { gap:16px; }
.topbar-context { display:flex; align-items:center; justify-content:flex-end; gap:10px; flex-shrink:0; }
.topbar-workspace { max-width:240px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.app-sidebar ~ main > header > h1 { display:none; }
.app-sidebar ~ main > header:has(> h1:only-child) { display:none; }
@media(max-width:720px) {
  .app-sidebar + .app-topbar { height:auto; min-height:50px; padding-top:8px; padding-bottom:8px; flex-wrap:wrap; gap:6px 12px; }
  .app-topbar .topbar-page-title { font-size:16px; }
  .topbar-context { font-size:11px; flex-shrink:1; }
  .topbar-workspace { max-width:180px; }
}
.workspace-label { background: #fbfdff; border-color: var(--line); }
.brand-mark { background: #68b5e0; }
input, select, textarea { width: 100%; min-width: 0; border: 1px solid #ccdce7; border-radius: 8px; padding: 10px 12px; background: var(--surface); color: var(--ink); font: inherit; margin-top: 6px; }
textarea { resize: vertical; line-height: 1.8; }
/* 選択欄にはテキスト入力用の幅・余白を適用しない。 */
input[type=checkbox], input[type=radio] { display: inline-block; flex: 0 0 auto; width: 1.1em; height: 1.1em; padding: 0; margin: .25em 0 0; vertical-align: middle; }
label:where(:has(> input[type=checkbox]), :has(> input[type=radio])) { display: flex; align-items: flex-start; gap: 8px; overflow-wrap: anywhere; }
label:where(:has(> input[type=checkbox]), :has(> input[type=radio])) > span { min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: 3px solid #deeffb; }
label { font-size: 13px; font-weight: 500; }
button { background: var(--accent); border-radius: 8px; padding: 10px 17px; font-size: 13px; }
button.secondary { background: var(--accent-soft); color: #34789e; }
button:disabled { opacity: .5; cursor: not-allowed; }
button:focus-visible, a:focus-visible { outline: 3px solid #77bce4; outline-offset: 3px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.button-row > a { margin-top: 0; }
.badge { background: var(--accent-soft); color: #3d789c; font-size: 12px; }
.alert { border: 1px solid #f0d6d2; background: #fff5f3; color: #92483e; }
.notice { border: 1px solid #d1e9df; background: #effaf5; color: #356f55; }
.notice.notice-warning { border: 1px solid #e8ca78; border-left: 5px solid #cc9300; background: #fff8df; color: #694b00; }
.notice.notice-danger { border: 1px solid #edb8b8; border-left: 5px solid #cf4141; background: #fff0f0; color: #8c2525; }
th { background: #f8fbfd; color: var(--muted); font-weight: 500; }
th, td { border-color: var(--line); }
.table-scroll { max-width: 100%; overflow-x: auto; }
.company-integrity-summary { width:260px; max-width:260px; white-space:normal; overflow-wrap:anywhere; }
.metric-card > strong { color: var(--ink); }
.overview-panel.card { margin: 0; }
.login { box-shadow: 0 6px 28px #24485f06; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); padding: 8px 0; }
summary:focus-visible { outline: 3px solid #77bce4; outline-offset: 3px; }
details[open] > summary { margin-bottom: 12px; }
.service-row { padding: 18px 0; border-bottom: 1px solid var(--line); }
.service-row:last-child { border-bottom: 0; }
.service-row h3 a { margin-top: 0; }
@media(min-width:721px) {
  .app-sidebar { height: 100vh; height: 100dvh; overflow: hidden; }
  .app-sidebar > :not(nav) { flex-shrink: 0; }
  .app-sidebar > nav {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    scrollbar-width: thin;
    scrollbar-color: #bdd7e8 transparent;
    padding-bottom: 8px;
  }
  .sidebar-user { flex-shrink: 0; }
}
@media(max-width:720px) {
  h1 { font-size: 23px; }
  .card { padding: 18px; }
  .app-sidebar~main { margin: 22px 16px; }
  .grid { grid-template-columns: minmax(0,1fr); }
  .button-row button { max-width: 100%; }
}

.app-sidebar .nav-more { margin: 12px 0; }
.app-sidebar .nav-more summary { padding: 10px 12px; color: var(--muted); cursor: pointer; }
.app-sidebar .nav-more a { display: block; padding: 10px 12px; margin: 3px 0; text-decoration: none; border-radius: 8px; }
.app-sidebar .nav-more a.active { background: var(--accent-soft); color: var(--accent); }
.workspace-links { margin: 12px 0; }
.help-steps { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.help-steps .card { margin:0; }
.help-number { display:inline-grid; place-items:center; width:34px; height:34px; border-radius:50%; background:var(--accent-soft); color:var(--accent); font-weight:700; }
.help-columns { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
#questions details, #judgment details, #admin details { padding:15px 0; border-top:1px solid var(--line); }
.help-columns p, .help-steps p { color:var(--muted); }
.contact-message-text { white-space:pre-wrap; overflow-wrap:anywhere; }
.grid > .sender-wide { grid-column:1 / -1; }
.category-picker { margin:16px 0 24px; }
.category-picker-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; font-weight:600; }
.category-picker-heading small { margin-left:8px; color:var(--muted); font-weight:400; }
.category-picker-heading button { flex-shrink:0; padding:8px 14px; }
.category-picker-options { padding:18px; border:1px solid var(--line); border-radius:10px; background:#f8fbfd; }
.category-group { min-width:0; border:0; padding:0; margin:0 0 20px; }
.category-group:last-child { margin-bottom:0; }
.category-group legend { float:none; width:auto; padding:0; margin-bottom:10px; font-size:12px; font-weight:600; color:var(--muted); }
.category-options { display:grid; grid-template-columns:repeat(auto-fit,minmax(185px,1fr)); gap:8px; }
.category-option { display:flex; align-items:center; gap:10px; min-height:46px; margin:0; padding:11px 13px; border:1px solid var(--line); border-radius:8px; background:var(--surface); cursor:pointer; line-height:1.5; }
.category-option input[type=checkbox] { flex:0 0 18px; width:18px; height:18px; margin:0; accent-color:var(--accent); }
.category-option:hover { border-color:var(--accent); background:var(--accent-soft); }
.category-option:has(input:checked) { border-color:var(--accent); background:var(--accent-soft); color:var(--accent); font-weight:600; }
.category-option:focus-within { outline:3px solid #77bce4; outline-offset:1px; }
.category-picker-note { display:block; margin-top:10px; color:var(--muted); }
.contact-target-section > details { margin:20px 0; }
.contact-target-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; align-items:start; }
.contact-target-columns > div { min-width:0; }
.contact-target-columns .category-options { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }
@media(max-width:1000px) { .contact-target-columns { grid-template-columns:minmax(0,1fr); gap:0; } }
.contact-target-summary { margin:24px 0 20px; padding:20px 24px; min-height:0; background:#f8fbfd; }
.contact-target-summary h3 { margin:0 0 12px; }
.contact-target-summary > p { margin-bottom:0; }
.contact-target-actions { margin:20px 0 4px; gap:14px; }
@media(max-width:720px) {
  .category-picker-options { padding:12px; }
  .category-options { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }
  .category-picker-heading small { display:block; margin-left:0; }
  .contact-target-summary { padding:18px; }
}
.contact-url { display:inline-block; max-width:280px; overflow-wrap:anywhere; }
/* ページ内の移動は共通サブメニューとして表示する。 */
.subnav {
  display:flex; flex-wrap:wrap; align-items:center; gap:6px;
  padding:8px; margin:20px 0 24px; background:var(--surface);
  border:1px solid var(--line); border-radius:12px;
  box-shadow:0 2px 8px #203e5305;
}
.subnav > a {
  display:flex; align-items:center; justify-content:center; min-height:44px;
  padding:10px 18px; margin:0; border:1px solid transparent; border-radius:8px;
  background:transparent; color:var(--ink); font-size:13px; font-weight:600;
  line-height:1.5; text-decoration:none; overflow-wrap:normal;
  transition:background .15s,color .15s,border-color .15s;
}
.subnav > a:hover { background:var(--accent-soft); color:var(--accent); border-color:var(--line); }
.subnav > a[aria-current] { background:var(--accent); color:#fff; border-color:var(--accent); }
.subnav > a:focus-visible { outline:3px solid #77bce4; outline-offset:2px; }
.subnav > a.subnav-end { margin-inline-start:auto; }
.admin-section-nav.subnav { margin:0 0 20px; gap:4px; padding:6px 8px; border-radius:10px; box-shadow:none; }
.subnav-caption { padding:8px 12px; color:var(--muted); font-size:11px; font-weight:700; border-right:1px solid var(--line); margin-right:4px; }
.admin-section-nav.subnav > a { min-height:36px; padding:7px 12px; font-size:12px; }
.section-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:8px; margin:0 0 16px; }
.sheet-change-cell { max-width:520px; overflow-wrap:anywhere; }
@media(max-width:720px) {
  .admin-section-nav .subnav-caption { flex-basis:100%; border-right:0; padding:4px 8px; }
  .admin-section-nav.subnav > a { flex:0 1 auto; }
}
.pagination { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:18px 0; }
.pagination > a {
  margin:0; padding:8px 14px; min-height:40px; border:1px solid var(--line);
  border-radius:8px; background:var(--surface); color:var(--accent); text-decoration:none;
}
.pagination > a:hover { background:var(--accent-soft); border-color:var(--accent); }
.pagination > span { padding:0 8px; color:var(--muted); font-size:12px; }
.numbered-pagination > .pagination-current { display:inline-flex; align-items:center; justify-content:center; min-height:40px; padding:8px 14px; box-sizing:border-box; border:1px solid var(--accent); border-radius:8px; background:var(--accent); color:#fff; font-size:inherit; font-weight:700; }
.numbered-pagination .pagination-jump { display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0; }
.numbered-pagination .pagination-jump label { display:flex; align-items:center; gap:8px; margin:0; font-size:12px; }
.numbered-pagination .pagination-jump input[type="number"] { width:80px; min-height:40px; margin:0; padding:6px 8px; }
.numbered-pagination .pagination-jump button { min-height:40px; margin:0; padding:6px 12px; }
main a.button {
  display:inline-flex; align-items:center; justify-content:center; min-height:42px;
  padding:10px 17px; margin-top:0; border:1px solid var(--accent); border-radius:8px;
  background:var(--accent); color:#fff; font-size:13px; font-weight:600; text-decoration:none;
}
main a.button.secondary { background:var(--accent-soft); color:var(--accent); border-color:var(--line); }
main .button.debug-action { background:#fff0f0; color:#a32632; border:1px solid #dfa2a8; }
main .button.debug-action:hover { background:#ffe0e3; color:#851c27; border-color:#bf626d; }
main .button.debug-action:focus-visible { outline:3px solid #bf626d; outline-offset:3px; }
main .button.debug-action-destructive { background:#b72d3d; color:#fff; border-color:#b72d3d; }
main .button.debug-action-destructive:hover { background:#922231; color:#fff; border-color:#922231; }
main .button.debug-action:disabled { background:#f2e8e9; color:#86696e; border-color:#d8c7ca; cursor:not-allowed; }
@media(max-width:720px) {
  .subnav { gap:4px; padding:6px; }
  .subnav > a { flex:1 1 auto; padding:10px 12px; }
}
section[id] { scroll-margin-top:80px; }
.notification-root { position:relative; flex-shrink:0; }
.notification-toggle { display:flex; align-items:center; justify-content:center; position:relative; width:40px; height:36px; padding:0; background:var(--accent-soft); color:var(--ink); border:1px solid var(--line); border-radius:9px; }
.notification-toggle:hover { background:#d9eefb; }
.notification-badge { position:absolute; right:-5px; top:-6px; min-width:18px; padding:0 4px; border-radius:20px; background:#e56c75; color:white; font-size:10px; line-height:18px; }
.notification-panel { position:absolute; right:0; top:45px; width:min(380px,calc(100vw - 32px)); padding:18px; border:1px solid var(--line); border-radius:14px; background:white; box-shadow:0 12px 40px #203e5326; max-height:75vh; overflow-y:auto; color:var(--ink); font-size:13px; }
.notification-panel h2 { margin:0 0 12px; }
.notification-item { display:block; text-decoration:none; padding:12px; margin:6px 0; border-radius:8px; background:var(--accent-soft); color:var(--ink); }
.notification-item span { display:block; margin-top:4px; color:var(--muted); font-size:12px; overflow-wrap:anywhere; }
.notification-item.is-read { background:var(--paper); }
.notification-controls { display:flex; flex-direction:column; gap:8px; margin-top:14px; }
.notification-controls button { background:white; color:var(--accent); border:1px solid var(--line); font-size:12px; padding:8px; }
.notification-panel [role=status] { color:var(--muted); font-size:11px; margin-bottom:0; }
.notification-panel[hidden], .notification-badge[hidden] { display:none; }
@media(max-width:1100px) { .help-steps { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:720px) { .help-steps,.help-columns { grid-template-columns:1fr; } .notification-panel { top:38px; } }
.panel-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:18px; flex-wrap:wrap; }
.panel-heading h2 { margin:0; }
.status-pill { display:inline-block; white-space:nowrap; border-radius:20px; padding:3px 10px; font-size:11px; font-weight:600; background:#edf2f6; color:#647a8a; }
.status-pill.good { color:#207d68; background:#e8f6f1; }
.status-pill.warning { color:#a66b20; background:#fff2df; }
.pipeline-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.pipeline-stage { background:#fafdff; border:1px solid var(--line); border-radius:12px; padding:18px; min-width:0; }
.stage-heading { display:flex; align-items:center; gap:7px; flex-wrap:wrap; }
.stage-heading h3 { flex:1; margin:0; font-size:14px; }
.stage-number { display:inline-grid; place-items:center; width:25px; height:25px; flex-shrink:0; border-radius:50%; background:#dfedf8; color:#3887bb; font-weight:600; font-size:12px; }
.pipeline-value { display:block; margin:18px 0 10px; font-size:30px; line-height:1.3; color:var(--ink); }
.pipeline-value small { margin-left:6px; font-size:11px; color:var(--muted); font-weight:400; }
.pipeline-stage>p { color:var(--muted); font-size:12px; }
.pipeline-stage progress { width:100%; height:8px; appearance:none; border:0; border-radius:8px; overflow:hidden; background:#e7eff5; }
.pipeline-stage progress::-webkit-progress-bar { background:#e7eff5; border-radius:8px; }
.pipeline-stage progress::-webkit-progress-value { background:#66b8de; border-radius:8px; }
.pipeline-stage progress::-moz-progress-bar { background:#66b8de; border-radius:8px; }
.pipeline-counts { display:flex; gap:16px; flex-wrap:wrap; margin:10px 0; font-size:12px; color:var(--muted); }
.pipeline-counts b { color:var(--ink); margin-left:4px; }
.stage-meta { padding-top:12px; border-top:1px solid var(--line); margin-top:14px; color:var(--muted); font-size:11px; }
.pipeline-settings { margin-top:16px; padding-top:12px; border-top:1px solid var(--line); }
.pipeline-settings-grid { display:flex; flex-wrap:wrap; gap:8px 22px; margin:0; font-size:11px; line-height:1.6; }
.pipeline-settings-grid>div { display:flex; align-items:baseline; gap:7px; min-width:0; }
.pipeline-settings-grid dt { color:var(--muted); flex-shrink:0; }
.pipeline-settings-grid dd { margin:0; color:var(--ink); overflow-wrap:anywhere; }
.health-banner { display:flex; justify-content:space-between; align-items:center; gap:20px; border-left:5px solid #90aabc; }
.health-banner.good { border-left-color:#39a189; background:#f4fbf8; }
.health-banner.warning { border-left-color:#dfaa54; background:#fffbf4; }
.health-banner.critical { border-left-color:#cf4949; background:#fff4f3; }
.health-content { min-width:0; flex:1; }
.health-heading { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.health-severity { padding:2px 9px; border-radius:5px; background:#e8eef3; color:#526c80; font-size:11px; font-weight:700; white-space:nowrap; }
.critical .health-severity { background:#fbe0df; color:#a32929; }
.warning .health-severity { background:#ffedce; color:#895600; }
.good .health-severity { background:#ddf2eb; color:#246c59; }
.health-issues { list-style:none; margin:8px 0 0; padding:0; }
.health-issues li { display:flex; flex-wrap:wrap; gap:3px 12px; padding:5px 0; font-size:12px; }
.health-issues li>span { flex-basis:100%; }
.health-log-link { flex-shrink:0; white-space:nowrap; }
.health-reference { background:var(--surface); border:1px solid var(--line); border-radius:8px; margin:0 0 18px; padding:10px 16px; font-size:11px; }
.health-reference>strong { color:var(--muted); }
.health-reference p { margin:4px 0; display:flex; flex-wrap:wrap; gap:4px 12px; }
.health-reference span { color:var(--muted); }
.health-banner h2 { font-size:23px; margin:5px 0; }
.health-banner p { margin:6px 0 0; font-size:12px; }
.health-dot { display:inline-block; width:11px; height:11px; border-radius:50%; margin-right:10px; background:#90aabc; }
.good .health-dot { background:#39a189; }
.warning .health-dot { background:#dfaa54; }
.monitor-grid { display:grid; grid-template-columns:1.5fr 1fr; gap:18px; align-items:start; }
.monitor-grid>.card { margin-top:0; }
.cron-task { display:inline-block; margin:3px 9px 3px 0; font-size:11px; color:var(--muted); }
.task-failed { color:#b86529; font-weight:600; }
.monitor-error { border-top:1px solid var(--line); padding:12px 0; }
.monitor-error p { font-size:12px; margin:6px 0 0; overflow-wrap:anywhere; color:var(--muted); }
.empty-state { padding:24px 0; color:var(--muted); }
@media(max-width:1250px) { .pipeline-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:900px) { .monitor-grid { grid-template-columns:1fr; } }
@media(max-width:600px) { .pipeline-grid { grid-template-columns:1fr; } .health-banner { flex-direction:column; align-items:flex-start; } }

/* 管理者の記事詳細：項目と判断結果を同じ列で比較する。 */
.admin-news-detail h2 { margin-top:12px; line-height:1.6; }
.news-facts { table-layout:fixed; }
.news-facts caption { text-align:left; color:var(--muted); font-size:12px; padding:8px 0; }
.news-facts th { width:160px; background:#f2f9fd; color:var(--ink); font-weight:500; }
.news-facts th,.news-facts td,.news-matches th,.news-matches td { vertical-align:top; line-height:1.8; overflow-wrap:anywhere; }
.news-facts a { margin:0; }
.news-matches { min-width:880px; }
.news-matches thead th { background:#f2f9fd; }
.news-matches th:first-child { width:15%; }
.news-matches td:nth-child(2) { width:15%; }
.news-matches td:nth-child(3) { width:10%; }
.news-matches td:nth-child(4) { width:45%; }
.news-matches td:nth-child(5) { width:15%; }
.news-matches td p { margin:0 0 10px; }
.news-matches details { margin-top:10px; }
.news-matches dt { font-weight:500; color:var(--muted); margin-top:12px; }
.news-matches dd { margin:4px 0 12px; }
.news-verdict { margin-top:8px; font-weight:500; }
.news-score strong { font-size:22px; color:var(--ink); }
.news-score small,.news-date { color:var(--muted); font-size:12px; }
.news-error-text { color:#a45c30; }
.news-body { margin-top:18px; line-height:1.95; overflow-wrap:anywhere;  }
@media(max-width:600px) { .news-facts th { width:100px; } .news-facts th,.news-facts td { padding:12px 10px; } }
/* 管理者と顧客の画面を、色と明示ラベルで区別する。 */
body.admin-screen { --paper:#192a43; --accent:#4267ac; --accent-soft:#e4ecfa; --line:#d8e1ed; background:var(--paper); display:flow-root; min-height:100vh; min-height:100dvh; }
.admin-screen .app-topbar { background:#15243b; color:#e7eef9; border-bottom:1px solid #354861; }
.admin-screen .app-sidebar { background:#122139; color:#e7eef9; border-right-color:#354861; }
.admin-screen .app-brand { color:#f0f5ff; }
.admin-screen .brand-mark { background:#5078b6; }
.admin-screen .app-sidebar nav a { color:#d5e2f5; }
.admin-screen .app-sidebar nav>a.active { color:#fff; background:#34547f; }
.admin-screen .app-sidebar nav>a:hover { background:#2b4263; color:#fff; }
.admin-screen .app-sidebar .nav-caption,
.admin-screen .app-sidebar .brand-sub,
.admin-screen .app-sidebar .sidebar-user small { color:#aabdd8; }
.admin-screen .workspace-label { background:#213653; color:#f0f5ff; border-color:#415978; }
.admin-screen .sidebar-user { border-color:#354861; }
.admin-screen .sidebar-user strong { color:#f0f5ff; }
.admin-screen main>header h1 { color:#f0f5ff; }
.admin-screen main>header .eyebrow,
.admin-screen main>header p,
.admin-screen main>.page-description,
.admin-screen main>.toolbar>p,
.admin-screen main>.panel-heading { color:#b9cae1; }
.admin-screen main>header a,
.admin-screen main>.panel-heading a { color:#b6d4ff; }
.admin-screen .app-topbar .notification-toggle { background:#263d5c; border-color:#526c8f; color:#edf5ff; }
.admin-screen .app-topbar .notification-toggle:hover { background:#35547b; }
.admin-screen .notification-toggle svg { display:block; flex-shrink:0; }
.admin-screen .notification-panel { color:var(--ink); }
.admin-screen .notification-item.is-read { background:#f2f5fa; }
.screen-scope { display:inline-block; padding:3px 10px; border-radius:6px; background:#e5f3fd; color:#28749f; font-size:12px; font-weight:600; }
.admin-screen .screen-scope { background:#365984; color:#fff; }
.customer-screen .app-topbar { border-bottom:2px solid #b6dff3; }

.lead-next-action { padding:16px 18px; border:1px solid var(--line); border-radius:10px; background:#f3f9fd; margin:16px 0; }
.lead-next-action p { margin:8px 0; color:var(--ink); }
.lead-next-action a { margin-top:4px; }
@media(min-width:1051px) { .metric-grid.article-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* 一覧を見やすくする共通コンテンツ幅 */
@media(min-width:1051px){.app-sidebar~main{max-width:none;margin-left:278px;margin-right:28px}}
@media(min-width:721px) and (max-width:1050px){.app-sidebar~main{max-width:none;margin-left:230px;margin-right:20px}}

.pipeline-grid:has(>.pipeline-stage:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}@media(max-width:600px){.pipeline-grid:has(>.pipeline-stage:nth-child(2):last-child){grid-template-columns:1fr}}

/* 共通ログイン：管理者・顧客とも同じ入口 */
.ai-cost-estimate{padding:18px 22px;font-size:11px}.ai-cost-estimate h2{font-size:14px;margin-bottom:8px}.ai-cost-estimate h2 small{font-size:10px;color:var(--muted);font-weight:400}.ai-cost-estimate th,.ai-cost-estimate td{font-size:11px;padding:7px 10px}.ai-cost-estimate th:not(:first-child),.ai-cost-estimate td:not(:first-child){text-align:right;white-space:nowrap}.ai-cost-estimate p{margin:8px 0}.ai-cost-estimate .ai-cost-note{font-size:10px;color:var(--muted);line-height:1.7}.ai-cost-estimate a{margin-top:0}
.dashboard-summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr));margin:20px 0}.dashboard-summary-metrics .metric-card{padding:18px}.dashboard-summary-metrics h3{margin:0 0 14px;font-size:12px;color:var(--muted)}
.contact-monitor-metrics{margin:20px 0;grid-template-columns:repeat(4,minmax(0,1fr))}
.contact-monitor-metrics .metric-card{padding:18px}.contact-monitor-metrics h3{margin:0 0 14px;font-size:12px;color:var(--muted)}
.contact-monitor>.pipeline-counts{margin:16px 0;flex-wrap:wrap;gap:12px 20px}
.contact-send-progress{width:100%;height:8px;accent-color:var(--accent)}
.contact-monitor-tables{display:grid;grid-template-columns:1.5fr 1fr;gap:24px;margin-top:24px;min-width:0}.contact-monitor-tables>div{min-width:0}
.contact-monitor-body{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.8;}
@media(max-width:1000px){.contact-monitor-tables{grid-template-columns:1fr}}@media(max-width:650px){.contact-monitor-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
.login-screen:has(.login-panel){background:radial-gradient(ellipse at 15% 10%,#d6ebf7,transparent 50%),#eef4f9;min-height:100vh;min-height:100dvh}
.login-screen main:has(.login-panel){max-width:1080px;min-height:100vh;min-height:100dvh;margin:0 auto;padding:48px 28px;display:flex;align-items:center}
.login-panel{width:100%;display:grid;grid-template-columns:1fr 1fr;overflow:hidden;border:1px solid #dbe5ef;border-radius:24px;background:#fff;box-shadow:0 24px 80px #18395018}
.login-intro{position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;min-height:590px;padding:42px;color:#eaf5ff;background:radial-gradient(circle at 100% 100%,#2a5b80,transparent 60%),#172c45}
.login-intro:after{content:'';position:absolute;width:350px;height:350px;border:1px solid #ffffff12;border-radius:50%;right:-190px;top:70px;pointer-events:none}
.login-brand{display:flex;gap:12px;align-items:center;font-size:25px;font-weight:700;line-height:1.2}
.login-brand .brand-mark{display:grid;place-items:center;width:42px;height:42px;flex-shrink:0;border-radius:12px;font-size:32px;color:#fff;background:#65b6dc}
.login-brand small{display:block;font-size:8px;letter-spacing:.18em;margin-top:7px;color:#a6c1d9;font-weight:400}
.login-intro-copy{position:relative;z-index:1;margin:58px 0}
.login-kicker{font-size:9px;letter-spacing:.16em;color:#96c7e5}
.login-intro h1{font-size:36px;line-height:1.65;color:#fff;font-weight:600;letter-spacing:.03em;margin:18px 0}
.login-intro-copy p{font-size:14px;line-height:2;color:#b8ccdf}
.login-motif{display:flex;align-items:center;gap:12px;margin-top:30px;font-size:10px;letter-spacing:.13em;color:#badff4}
.login-motif span{padding:10px 16px;border:1px solid #7bb6da44;border-radius:8px;background:#ffffff06}
.login-motif i{width:36px;height:1px;background:#78b3d4}
.login-intro-footer{font-size:10px;color:#8daac3;letter-spacing:.07em}
.login-form-panel{align-self:center;padding:48px 42px}
.login-form-panel h2{font-size:27px;margin:8px 0 12px;color:#203d56}
.login-description{font-size:12px;color:var(--muted);line-height:1.8;margin:0 0 32px}
.login-form-panel label{margin-bottom:22px;font-size:13px;color:#38556c}
.login-form-panel input{padding:14px;margin-top:9px;background:#f9fbfd;border-color:#d5e1eb}
.login-form-panel input::placeholder{color:#91a5b6;font-size:12px}
.login-submit{width:100%;display:flex;align-items:center;justify-content:center;gap:18px;margin-top:30px;padding:14px;background:#2e719c;color:#fff;border:1px solid #2e719c}
.login-assistance{font-size:11px;line-height:1.9;color:var(--muted);margin:24px 0 0}
@media(max-width:720px){.login-screen main:has(.login-panel){padding:24px 16px}.login-panel{grid-template-columns:1fr;border-radius:18px;max-width:470px;margin:auto}.login-intro{min-height:0;padding:26px}.login-intro-copy{margin:26px 0 0}.login-intro h1{font-size:25px;line-height:1.5;margin:10px 0 0}.login-kicker,.login-intro-copy p,.login-motif,.login-intro-footer{display:none}.login-form-panel{padding:30px 26px}.login-description{margin-bottom:24px}.login-form-panel h2{font-size:24px}}

.contact-trace{margin:12px 0}.contact-trace>.table-scroll{overflow-x:auto;margin-top:10px}.contact-trace th,.contact-trace td{padding:8px 10px;font-size:12px}.contact-trace td:first-child{white-space:nowrap}

/* 履歴・運用ログは密度を高め、縦方向はページ全体でスクロール。 */
.history-card.card{padding:14px 16px;margin:12px 0}
.history-card h2{font-size:15px;margin:0 0 8px}
.history-card h3{font-size:13px;margin:14px 0 5px}
.history-card>p{font-size:12px;line-height:1.5;margin:5px 0 9px}
.history-card .table-scroll{overflow-x:auto}
.history-card th,.history-card td{font-size:12px;line-height:1.45;padding:6px 8px;vertical-align:top;overflow-wrap:anywhere}
.history-card th{position:sticky;top:0;z-index:1;background:#edf5fb;box-shadow:0 1px 0 var(--line);white-space:nowrap}
.history-card td small{font-size:11px;line-height:1.4}
.history-card .badge{font-size:11px;padding:2px 6px}
.history-card .cron-task{margin:1px 8px 1px 0;line-height:1.4}
.history-card .monitor-error{padding:7px 0;font-size:12px;line-height:1.5}
.history-card .monitor-error p{font-size:12px;margin:3px 0 0}
.history-card .monitor-error a{font-size:12px;margin-top:3px}
.history-errors{overflow-wrap:anywhere}
.history-card td details{margin:5px 0}
.history-card td .button,.history-card td button{font-size:12px;padding:5px 10px;margin-top:5px}
.history-card td form{margin:5px 0}
.history-card .contact-trace{margin:6px 0}
.history-card .contact-trace>.table-scroll{margin-top:6px}
.contact-records-table { min-width:1150px; table-layout:fixed; }
.contact-records-table>thead>tr>th:nth-child(1) { width:8%; }
.contact-records-table>thead>tr>th:nth-child(2) { width:13%; }
.contact-records-table>thead>tr>th:nth-child(3) { width:29%; }
.contact-records-table>thead>tr>th:nth-child(4) { width:20%; }
.contact-records-table>thead>tr>th:nth-child(5) { width:20%; }
.contact-records-table>thead>tr>th:nth-child(6) { width:10%; }
.contact-records-table>tbody>tr>td { vertical-align:top; overflow-wrap:anywhere; }
.contact-record-details,.contact-record-actions { display:flex; flex-wrap:wrap; align-items:flex-start; gap:8px 12px; }
.contact-record-details { display:grid; grid-template-columns:112px minmax(0,1fr); }
.history-card .contact-record-details>details,.history-card .contact-record-actions>form { margin:0; }
.contact-record-details>details:nth-child(2) { grid-column:2; }
.contact-record-details>details[open] { grid-column:1 / -1; min-width:0; }
.contact-record-details summary { padding:0; font-size:11px; line-height:24px; white-space:nowrap; }
.history-card .contact-record-actions .button,.history-card .contact-record-actions button { display:inline-flex; align-items:center; justify-content:center; box-sizing:border-box; height:34px; min-height:34px; margin:0; padding:7px 10px; font-size:11px; line-height:18px; white-space:nowrap; }
.contact-record-prepared { display:block; margin-top:3px; font-size:10px; }
.history-card .contact-trace th,.history-card .contact-trace td{font-size:11px;padding:5px 7px}
.news-list th:first-child{width:28%}
.news-list th:nth-child(2){width:14%}
.news-list th:last-child{width:24%}
.news-list table{min-width:1000px}
.news-list .status-pill,.admin-news-detail .status-pill{font-size:11px;padding:2px 6px}
.news-list>form{display:flex;align-items:flex-end;flex-wrap:wrap;gap:10px;margin:0 0 10px}
.news-list>form label{font-size:12px;margin:0}
.news-list>form input,.news-list>form select{font-size:12px;padding:7px 9px;margin-top:4px}
.news-list>form button{font-size:12px;padding:7px 12px;margin:0}
.news-list .numbered-pagination{gap:5px;margin:10px 0;font-size:12px}
.news-failures table{min-width:680px}
.news-failures th:first-child{width:40%}
.news-failures th:nth-child(2){width:44%}
.news-failures td:last-child{white-space:nowrap}
.news-failures td form,.news-failures td button{margin:0}
.admin-news-detail.card{padding:14px 16px;margin:12px 0;font-size:12px}
.admin-news-detail h2{font-size:15px;margin:8px 0;line-height:1.5}
.admin-news-detail th,.admin-news-detail td{font-size:12px;line-height:1.5;padding:6px 8px}
.admin-news-detail .news-facts th{width:145px}
.admin-news-detail p{margin:5px 0;line-height:1.6}
.admin-news-detail .news-body{font-size:12px;line-height:1.7}
.operations-dense>.metric-grid{margin:10px 0 12px}
.operations-dense>.metric-grid .metric-card{padding:12px 14px;min-height:100px}
.operations-dense>.metric-grid .metric-card h2{font-size:12px;margin-bottom:10px}
.operations-dense>.metric-grid .metric-card>strong{font-size:23px}
.operations-dense>h2{font-size:15px;margin:12px 0 6px}
.admin-screen .operations-dense>h2{color:#edf5ff}
.dashboard-numbers.card{padding:16px 18px;margin:14px 0}
.dashboard-numbers h2{font-size:16px;margin:0}
.dashboard-numeric-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:12px 0 0}
.dashboard-number.metric-card{display:block;min-height:100px;padding:14px 16px;margin:0;background:#fff;color:var(--ink);text-decoration:none}
.dashboard-number h3{font-size:12px;font-weight:500;margin:0 0 12px;color:var(--muted)}
.dashboard-number strong{font-size:28px;line-height:1.2}
.dashboard-number strong small{font-size:11px;font-weight:400;margin-left:5px;color:var(--muted)}
a.dashboard-number:hover{border-color:var(--accent)}
a.dashboard-number:focus-visible{outline:3px solid #77bce4;outline-offset:2px}
.dashboard-metric-note{margin:10px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}
.dashboard-status-line{display:flex;flex-wrap:wrap;gap:6px 20px;margin-top:12px;padding-top:10px;border-top:1px solid var(--line);font-size:11px;line-height:1.6;color:var(--muted)}
.dashboard-status-line b{color:var(--ink)}
.dashboard-status-line a{margin:0;font-size:11px}
@media(max-width:900px){.dashboard-numeric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
.news-dashboard-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:14px;align-items:stretch}
.news-dashboard-grid>.metric-card,.news-dashboard-grid>.pipeline-stage{background:#fff;min-width:0;padding:16px;margin:0}
.news-dashboard-grid>.metric-card h3{font-size:12px;line-height:1.5;color:var(--muted);margin:0 0 14px}
.news-dashboard-grid>.metric-card>strong{font-size:32px;line-height:1.2}
.news-dashboard-grid>.metric-card>strong small{font-size:11px;font-weight:400;color:var(--muted);margin-left:5px}
.news-dashboard-grid .stage-heading{flex-wrap:wrap}
.news-dashboard-grid .pipeline-counts{gap:6px 12px}
@media(max-width:900px){.news-dashboard-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.news-dashboard-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){.history-card.card{padding:12px}.history-card th,.history-card td{padding:6px;font-size:12px}.history-card td .button,.history-card td button{min-height:36px}}

/* 問い合わせ詳細：状況を先に、編集・補足情報は必要時に開く。 */
.inquiry-detail .card{margin:14px 0}
.inquiry-overview.card{padding:16px 18px}
.inquiry-overview-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.inquiry-overview-bar>div{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.inquiry-overview-bar form{margin:0}
.inquiry-schedule-label{font-size:12px;color:var(--muted)}
.inquiry-overview .metric-grid{margin:12px 0 0;gap:10px}
.inquiry-overview .metric-card{min-height:90px;padding:12px 14px;background:var(--paper)}
.inquiry-overview .metric-card h2{font-size:12px;margin:0 0 10px}
.inquiry-overview .metric-card>strong{font-size:25px}
.inquiry-section-nav.subnav{margin:12px 0;gap:5px}
.inquiry-section-nav a{font-size:12px;padding:8px 12px}
.inquiry-recipients .inquiry-filter-nav{margin:8px 0 12px}
.inquiry-recipients .inquiry-filter-nav a{font-size:12px;padding:6px 10px}
.inquiry-recipients>form{margin-bottom:12px}
.inquiry-recipients>form label{margin-bottom:0;font-size:12px}
.inquiry-recipients>form input,.inquiry-recipients>form select{font-size:12px;padding:7px 9px}
.inquiry-recipients .button-row{align-items:flex-end}
.inquiry-recipients th:first-child{width:34%}
.inquiry-recipients th:nth-child(2){width:30%}
.inquiry-recipients .inquiry-result-time{white-space:nowrap}
.inquiry-recipients summary{font-size:11px;color:var(--accent);cursor:pointer}
.inquiry-row-actions form{display:grid;gap:5px}
.inquiry-row-actions button{text-align:left;white-space:normal}
.inquiry-fold.card{padding:14px 18px}
.inquiry-fold>details>summary{font-size:14px;font-weight:600;cursor:pointer;line-height:1.6}
.inquiry-fold>details>summary>span{font-size:12px;font-weight:400;color:var(--muted);margin-left:10px}
.inquiry-fold>details[open]>summary{margin-bottom:16px;padding-bottom:10px;border-bottom:1px solid var(--line)}
.inquiry-fold form{margin:12px 0 0}
.inquiry-fold label{margin-bottom:12px}
.inquiry-fold textarea{min-height:220px}
.inquiry-fold .table-scroll{margin-top:10px}
.inquiry-detail section[id]{scroll-margin-top:70px}
@media(max-width:720px){.inquiry-overview.card,.inquiry-fold.card{padding:14px}.inquiry-overview .metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.inquiry-section-nav a{padding:8px 10px}.inquiry-fold>details>summary>span{display:block;margin-left:18px}.inquiry-recipients table{min-width:620px}}

/* PCの問い合わせ設定は2列で常時表示する。 */
.inquiry-settings-grid{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:16px;align-items:start;margin:16px 0}
.inquiry-settings-grid>.card{margin:0;min-width:0;padding:18px}
.inquiry-settings-grid h2{font-size:16px;margin:0 0 12px}
.inquiry-settings-grid h2 small{font-size:11px;font-weight:400;color:var(--muted);margin-left:6px}
.inquiry-message-editor{grid-row:span 2;align-self:stretch;display:flex;flex-direction:column}
.inquiry-message-editor>form{display:flex;flex-direction:column;flex:1;margin:0}
.inquiry-panel label{margin-bottom:12px}
.inquiry-body-field{display:flex;flex-direction:column;flex:1}
.inquiry-body-field textarea{flex:1;min-height:320px;resize:vertical}
.inquiry-message-editor button{align-self:flex-start}
.inquiry-panel-caption{font-size:12px;margin:0 0 12px;color:var(--muted)}
.inquiry-panel .table-scroll{margin:0;overflow-x:auto}
.inquiry-panel th,.inquiry-panel td{padding:7px 8px;font-size:12px;vertical-align:top;overflow-wrap:anywhere}
.inquiry-panel th{width:32%}
.inquiry-panel .button-row{gap:7px}
.inquiry-panel form{margin-top:12px}
.inquiry-panel small{line-height:1.5}
.inquiry-row-actions{margin-top:6px}
@media(max-width:1100px){.inquiry-settings-grid{grid-template-columns:minmax(0,1fr)}.inquiry-message-editor{grid-row:auto}.inquiry-body-field textarea{min-height:280px}}

.inquiry-row-note{display:block;margin:4px 0 0;font-size:11px;line-height:1.5;color:var(--muted)}

/* Administrative company lists: page scrolling, two columns on desktop. */
.company-list-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}.company-list-layout>.card{min-width:0}.company-list-heading{display:flex;justify-content:space-between;gap:16px;align-items:center}.company-list-heading form{display:flex;gap:10px;align-items:end}.company-list-heading label{margin:0}@media(max-width:900px){.company-list-layout{grid-template-columns:1fr}.company-list-heading{display:block}}

.ng-registration-fields{border:0;padding:0;margin:14px 0}.ng-registration-fields[hidden]{display:none}

.admin-news-detail .company-list-heading label{font-size:12px;margin:0}.admin-news-detail .company-list-heading select,.admin-news-detail .company-list-heading button{font-size:12px;padding:6px 9px;margin:0}.admin-news-detail .company-list-heading h2{margin:0}

/* 管理画面の一覧は、ニュース・企業・ログで同じ密度に揃える。 */
.admin-screen main .card:has(table){padding:14px 16px;margin:12px 0}
.admin-screen main .card:has(table)>h2,.admin-screen main .company-list-heading h2{font-size:15px;line-height:1.5;margin:8px 0}
.admin-screen main table{width:100%;border-collapse:collapse}
.admin-screen main table th,.admin-screen main table td{padding:6px 8px;font-size:12px;line-height:1.5;vertical-align:top;overflow-wrap:anywhere}
.admin-screen main table th{background:#edf5fb;color:#708697;font-weight:500;text-align:left}
.admin-screen main table td small{font-size:11px;line-height:1.4}
.admin-screen main table td p,.admin-screen main table td form{margin:4px 0}
.admin-screen main table .button,.admin-screen main table button{font-size:12px;padding:5px 10px;margin:0}
.admin-screen main .company-list-heading form{gap:8px}
.admin-screen main .company-list-heading label{font-size:12px}
.admin-screen main .company-list-heading select,.admin-screen main .company-list-heading button{font-size:12px;padding:6px 9px;margin:0}
.admin-screen main .numbered-pagination{font-size:12px;gap:5px;margin:10px 0}

.portal-collection-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.portal-summary{min-width:180px;max-width:280px;overflow-wrap:anywhere}@media(max-width:850px){.portal-collection-grid{grid-template-columns:1fr}}

.portal-response{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;max-width:900px;margin:8px 0;font-size:12px}

.health-banner.health-compact{padding:8px 12px;margin:8px 0 14px;min-height:0;border-left-width:3px;gap:12px;flex-direction:row;align-items:center;flex-wrap:wrap}
.health-compact .health-heading{gap:8px}.health-banner.health-compact h2{font-size:14px;line-height:1.5;margin:0}.health-compact .health-log-link{margin:0;font-size:12px}.health-compact .health-severity{font-size:10px;padding:1px 7px}

.company-delete-button { background: #b52e2e; color: #fff; }

/* 2B Reach brand */
.app-brand .brand-mark-reach,.login-brand .brand-mark-reach{font-size:16px;font-weight:700;letter-spacing:-.04em;flex-shrink:0}
.login-brand .brand-mark-reach{font-size:20px}
.app-brand .brand-sub,.login-brand small{font-size:10px;letter-spacing:.02em}

.environment-badge,.environment-login-label{display:inline-block;padding:4px 10px;border:1px solid #e8b746;border-radius:6px;background:#fff1c7;color:#6d4300;font-size:12px;font-weight:700;white-space:nowrap}.environment-login-label{position:fixed;right:20px;top:16px;z-index:1000}
