/* CAツール PHP版 ― 白基調＋ネイビー #1B2A4A 左帯。機能色: 重要=赤 #b3372c / タグ=黄 */
* { box-sizing: border-box; }
body { margin: 0; font-family: "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif; color: #1a1a1a; background: #fff; font-size: 15px; line-height: 1.6; }
a { color: #1B2A4A; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 232px; flex: 0 0 232px; background: #1B2A4A; color: #fff; padding: 24px 16px; display: flex; flex-direction: column; gap: 16px; }
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { font-size: 20px; font-weight: 700; }
.nav-toggle { display: none; background: transparent; border: 1px solid rgba(255,255,255,.6); border-radius: 6px; width: 40px; height: 40px; padding: 9px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 1px; }
.side-user { font-size: 14px; font-weight: 700; border-top: 1px solid rgba(255,255,255,.25); padding-top: 16px; }
.side-user span { font-size: 12px; font-weight: 400; opacity: .8; }
.side-nav { display: flex; flex-direction: column; gap: 4px; }
.side-nav a { color: #fff; text-decoration: none; font-weight: 700; padding: 8px; border-radius: 6px; display: flex; align-items: center; }
.side-nav a:hover { background: rgba(255,255,255,.12); }
.side-nav a.active { background: rgba(255,255,255,.2); }
.nav-badge { background: #b3372c; color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; line-height: 1; padding: 3px 7px; margin-left: 8px; }
.side-sep { font-size: 12px; opacity: .75; margin: 8px 0 0; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side-btn { display: block; text-align: center; color: #fff; text-decoration: none; border: 1px solid #fff; border-radius: 6px; padding: 8px; font-weight: 700; }
.main { flex: 1; padding: 24px 32px 48px; max-width: 1080px; min-width: 0; }
.page-title { font-size: 22px; color: #1B2A4A; border-bottom: 2px solid #e8e8e8; padding-bottom: 8px; margin: 0 0 24px; }
.main-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.main-head .page-title { flex: 1; }
.head-user { font-weight: 700; color: #1B2A4A; white-space: nowrap; text-align: right; padding-top: 2px; }
.head-user span { display: block; font-size: 11.5px; font-weight: 400; color: #666; }
h2.sec { font-size: 17px; color: #1B2A4A; margin: 32px 0 16px; }
.card { background: #f7f7f7; border: 1px solid #eee; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.card-white { background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 20px; margin-bottom: 16px; }
a.card-link { display: block; text-decoration: none; color: inherit; }
a.card-link .card { margin-bottom: 0; height: 100%; transition: border-color .15s, background .15s; }
a.card-link:hover .card { border-color: #1B2A4A; background: #f2f4f8; }
.btn { display: inline-block; background: #1B2A4A; color: #fff; border: 1px solid #1B2A4A; border-radius: 6px; padding: 8px 20px; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; line-height: 1.5; }
.btn:hover { opacity: .88; }
.btn-sub { background: #fff; color: #1B2A4A; border: 1px solid #1B2A4A; }
.btn-sub:hover { background: #eef1f6; opacity: 1; }
.btn-danger { background: #b3372c; border-color: #b3372c; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
input[type="text"], input[type="email"], input[type="password"], input[type="date"], input[type="number"], select, textarea {
  width: 100%; padding: 8px; border: 1px solid #bbb; border-radius: 6px; font-size: 15px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(27,42,74,.35); border-color: #1B2A4A; }
label.flabel { display: block; font-weight: 700; margin: 16px 0 8px; }
label.flabel:first-child { margin-top: 0; }
.req { color: #b3372c; font-size: 12px; font-weight: 700; margin-left: 8px; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 16px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th, table.tbl td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; }
table.tbl th { background: #f0f0f0; white-space: nowrap; }
table.tbl tbody tr:nth-child(even) { background: #fafafa; }
table.tbl td.c-name { white-space: nowrap; font-weight: 700; }
table.tbl td.ops { min-width: 200px; }
table.tbl td.ops form { margin: 0 0 6px; }
table.tbl td.ops form:last-child { margin-bottom: 0; }
table.tbl td.ops .btn { width: 100%; text-align: center; padding: 7px 10px; }
table.tbl td.ops input[type="email"], table.tbl td.ops input[type="text"] { margin-bottom: 6px; }
table.tbl td.ops .ops-row { display: flex; gap: 6px; margin-bottom: 6px; }
table.tbl td.ops .ops-row select { flex: 1; }
.tag-yellow { display: inline-block; background: #fff6d6; border: 1px solid #e3c34c; color: #6b5300; border-radius: 4px; padding: 0 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tag-red { display: inline-block; background: #fdecea; border: 1px solid #b3372c; color: #b3372c; border-radius: 4px; padding: 0 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.tag-gray { display: inline-block; background: #f0f0f0; border: 1px solid #ccc; color: #555; border-radius: 4px; padding: 0 8px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.alert-red { background: #fdecea; border: 1px solid #b3372c; color: #7c241b; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.alert-red a { color: #b3372c; font-weight: 700; }
.flash { border-radius: 8px; padding: 8px 16px; margin-bottom: 16px; }
.flash-success { background: #eef6ee; border: 1px solid #5b8c5a; }
.flash-error { background: #fdecea; border: 1px solid #b3372c; color: #7c241b; }
.warn-box { border: 2px solid #b3372c; background: #fff5f4; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.warn-box h3 { color: #b3372c; margin: 0 0 8px; font-size: 15px; }
.steps { font-size: 12px; }
.step-cur { font-weight: 700; color: #1B2A4A; }
.step-dim { color: #999; }
.step-line { color: #ccc; margin: 0 2px; }
.summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 16px; }
.summary-num { font-size: 24px; font-weight: 700; color: #1B2A4A; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.chip { border: 1px solid #1B2A4A; background: #fff; color: #1B2A4A; border-radius: 999px; padding: 4px 16px; font-weight: 700; cursor: pointer; text-decoration: none; font-size: 13.5px; }
.chip.active { background: #1B2A4A; color: #fff; }
details.acc { border: 1px solid #ddd; border-radius: 8px; margin-bottom: 8px; background: #fff; }
details.acc summary { cursor: pointer; padding: 16px; font-weight: 700; }
details.acc .acc-body { padding: 0 16px 16px; }
.job-row { display: flex; gap: 8px; margin-bottom: 8px; }
.job-row input { flex: 2; } .job-row select { flex: 1; }
.collapse-panel { display: none; }
.collapse-panel.open { display: block; }
.pw-mask { font-family: monospace; }
.small { font-size: 12.5px; color: #666; }
.login-wrap { max-width: 400px; margin: 64px auto; padding: 24px; }
.terms-body { white-space: pre-wrap; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 24px; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; margin-bottom: 16px; background: #f7f7f7; border: 1px solid #eee; border-radius: 8px; padding: 12px 16px; }
.filter-bar .f-item { flex: 1 1 150px; }
.filter-bar label { display: block; font-size: 12.5px; font-weight: 700; color: #555; margin-bottom: 4px; }
.filter-bar .f-btns { display: flex; gap: 8px; }
.filter-bar .checks { display: flex; flex-wrap: wrap; gap: 6px 14px; padding-top: 2px; }
.filter-bar .chk { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 400; color: #333; margin: 0; }
.filter-bar .chk input { width: auto; margin: 0; }
.cand-name { font-weight: 700; font-size: 16px; color: #1B2A4A; text-decoration: none; }
.cand-name:hover { text-decoration: underline; }
.kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 16px; }
.kv dt { font-weight: 700; color: #555; font-size: 13px; }
.kv dd { margin: 0; }
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  /* サイドバーは上部バー＋ハンバーガーで開く折りたたみメニュー */
  .sidebar { width: 100%; flex: none; padding: 12px 16px; gap: 12px; }
  .brand { font-size: 17px; }
  .nav-toggle { display: flex; }
  .side-user { border-top: none; padding-top: 0; font-size: 13px; }
  .side-user span { font-size: 11px; }
  .side-nav { display: none; }
  .side-foot { display: none; }
  .sidebar.nav-open .side-nav { display: flex; flex-direction: column; gap: 4px; }
  .sidebar.nav-open .side-foot { display: flex; flex-direction: row; gap: 8px; margin-top: 0; }
  .sidebar.nav-open .side-btn { flex: 1; }
  .side-nav a { padding: 10px 8px; font-size: 15px; }
  .main { padding: 16px 16px 40px; }
  .page-title { font-size: 19px; margin-bottom: 16px; }
  h2.sec { font-size: 16px; margin: 24px 0 12px; }
  .card, .card-white { padding: 12px; }
  .btn { padding: 10px 16px; }
  .summary-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
  .summary-num { font-size: 20px; }
  table.tbl { display: block; overflow-x: auto; font-size: 13px; -webkit-overflow-scrolling: touch; }
  table.tbl th, table.tbl td { padding: 6px 8px; }
  .steps { display: block; overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
  .job-row { flex-direction: column; }
  details.acc summary { padding: 12px; }
  details.acc .acc-body { padding: 0 12px 12px; }
  .login-wrap { margin: 32px auto; padding: 16px; }
  .terms-body { padding: 16px; }
  .kv { grid-template-columns: 88px 1fr; }
}
