:root { color: #1c2b3a; background: #f4f7fa; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
* { box-sizing: border-box; } body { margin: 0; } .app-shell { max-width: 1500px; margin: auto; padding: 28px 32px 54px; } .app-header, .page-heading, .filter-row, .table-title, .tab-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; } .app-header { border-bottom: 1px solid #dce5ed; margin-bottom: 26px; padding-bottom: 19px; } h1,h2,h3,p { margin-top: 0; } h1 { font-size: 1.55rem; margin-bottom: 0; } h2 { font-size: 1.45rem; margin-bottom: 7px; } h3 { font-size: 1rem; } .eyebrow { color: #356b9c; font-size: .72rem; font-weight: 800; letter-spacing: .1em; margin-bottom: 6px; } .user,.muted,.page-heading p,.table-title p { color: #687789; font-size: .87rem; } button { background: #24699d; border: 1px solid #24699d; border-radius: 6px; color: white; cursor: pointer; font: inherit; font-weight: 700; padding: 9px 14px; } button:hover, button.active { background: #164f7d; } .secondary,.back,.link { background: white; color: #24699d; } .back { margin-bottom: 15px; } .card { background: #fff; border: 1px solid #dce5ed; border-radius: 9px; box-shadow: 0 2px 9px #18334d0b; padding: 19px; margin-bottom: 18px; } .filters label { color: #45586c; font-size: .83rem; font-weight: 700; width: min(100%, 440px); } input,select { background: #fff; border: 1px solid #bdcad6; border-radius: 5px; color: #1c2b3a; display: block; font: inherit; margin-top: 6px; padding: 9px; width: 100%; } .quick { align-items: center; border-top: 1px solid #e8edf2; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; padding-top: 14px; } .quick span { color: #687789; font-size: .82rem; font-weight: 700; margin-right: 3px; } .chip { background: #f0f5f9; border-color: #cbd9e5; color: #36536d; font-size: .82rem; padding: 6px 10px; } .link { border: 0; padding: 6px; } .metrics { display: grid; gap: 12px; grid-template-columns: repeat(4,1fr); margin-bottom: 18px; } .metric { background: #eaf3fa; border-left: 4px solid #4d88b8; border-radius: 6px; color: #506274; font-size: .82rem; padding: 13px; } .metric b { color: #1d405d; display: block; font-size: 1.45rem; } .metric.danger { background: #fff0ef; border-color: #c84c4c; } .metric.warning { background: #fff7e5; border-color: #c58a22; } .table-wrap { overflow-x: auto; } table { border-collapse: collapse; min-width: 1420px; width: 100%; } th,td { border-bottom: 1px solid #e6edf3; padding: 11px 9px; text-align: left; vertical-align: top; } th { color: #65778a; font-size: .7rem; letter-spacing: .03em; white-space: nowrap; } td { font-size: .82rem; white-space: nowrap; } td small { color: #62758a; display: block; line-height: 1.55; } tr[data-id] { cursor: pointer; } tr[data-id]:hover { background: #f1f7fb; } .badge { background: #eaf1f6; border-radius: 99px; color: #34566f; display: inline-block; font-size: .73rem; font-weight: 700; padding: 5px 8px; white-space: nowrap; } .badge.owner { background: #f2ecfb; color: #694b90; } .danger-text { color: #b63838 !important; } .empty { color: #687789; padding: 30px; text-align: center; } .detail-header { background: #fff; border: 1px solid #dce5ed; border-left: 5px solid #356b9c; border-radius: 9px; display: grid; gap: 18px; grid-template-columns: 1.5fr auto 1fr; padding: 20px; } .detail-header h2 { margin-bottom: 5px; } .representative { background: #e4f0f9; border-radius: 4px; color: #285d87; font-size: .7rem; padding: 4px 6px; vertical-align: middle; } .related { color: #53677c; margin-bottom: 0; } .header-badges { align-self: center; display: grid; gap: 8px; } .next { border-left: 1px solid #e2eaf1; display: grid; gap: 3px; padding-left: 18px; } .next b { color: #617286; font-size: .72rem; margin-top: 3px; } .next span { font-size: .88rem; } .tabs { border-bottom: 1px solid #cfdbe5; display: flex; gap: 2px; margin-top: 21px; } .tabs button { background: transparent; border: 0; border-bottom: 3px solid transparent; border-radius: 0; color: #617286; padding: 11px 17px; } .tabs button.active { border-bottom-color: #24699d; color: #174f7d; } .detail-card { min-height: 320px; } .two-col { display: grid; gap: 38px; grid-template-columns: 1fr 1fr; } dl { display: grid; grid-template-columns: 130px 1fr; } dt,dd { border-bottom: 1px solid #edf1f4; margin: 0; padding: 10px 0; } dt { color: #63768a; font-size: .83rem; } .stepper { display: flex; margin: 27px 0 30px; } .step { flex: 1; position: relative; text-align: center; z-index: 1; } .step:not(:last-child)::after { background: #d9e2e9; content: ""; height: 2px; left: 55%; position: absolute; right: -45%; top: 13px; z-index: -1; } .step.done:not(:last-child)::after { background: #4b8b69; } .step i { background: #e1e8ee; border-radius: 50%; color: #647587; display: inline-grid; font-size: .76rem; font-style: normal; height: 27px; place-items: center; width: 27px; } .step.done i,.step.current i { background: #4b8b69; color: white; } .step.current i { background: #24699d; box-shadow: 0 0 0 4px #dcecf8; } .step span { display: block; font-size: .72rem; margin-top: 7px; } .detail-grid { display: grid; gap: 12px; grid-template-columns: repeat(4,1fr); margin-bottom: 20px; } .detail-grid div { background: #f6f9fb; border-radius: 5px; padding: 12px; } .detail-grid b { color: #617286; font-size: .75rem; } .detail-grid p { margin: 7px 0 0; } .info,.success-panel { background: #edf7ef; border-left: 4px solid #4b8b69; padding: 12px; } .warning-panel { background: #fff6e5; border-left: 4px solid #c58a22; padding: 13px; } .empty-panel { padding: 54px 10px; text-align: center; } .simple { min-width: 0; margin-bottom: 28px; } @media (max-width: 900px) { .metrics { grid-template-columns: repeat(2,1fr); } .detail-header { grid-template-columns: 1fr; } .next { border-left: 0; border-top: 1px solid #e2eaf1; padding: 12px 0 0; } .two-col,.detail-grid { grid-template-columns: 1fr 1fr; } .stepper { overflow-x: auto; } .step { min-width: 115px; } } @media (max-width: 620px) { .app-shell { padding: 18px; } .app-header,.page-heading,.filter-row { align-items: flex-start; flex-direction: column; } .metrics,.two-col,.detail-grid { grid-template-columns: 1fr; } .tabs { overflow-x: auto; } }
.user { align-items: center; display: flex; gap: 9px; } .user small { color: #687789; } .small-button { font-size: .78rem; padding: 5px 9px; } .login-card { margin: 72px auto; max-width: 440px; } .login-card label { display: block; font-weight: 700; margin-top: 15px; } .form-grid { display: grid; gap: 14px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 13px 0 21px; } .form-grid label, #task-form label, #deadline-form label { color: #45586c; display: block; font-size: .83rem; font-weight: 700; } .create-form h3 { border-bottom: 1px solid #e6edf3; margin-top: 24px; padding-bottom: 9px; } .checkbox-label { align-items: center; display: flex; gap: 7px; font-weight: 700; } .checkbox-label input { margin: 0; width: auto; } #tax-field { display: block; margin-top: 13px; max-width: 300px; } .form-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; } #task-form, #deadline-form, .status-panel > div { background: #f6f9fb; border: 1px solid #dce5ed; border-radius: 6px; display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; padding: 12px; } #task-form label, #deadline-form label, .status-panel label { flex: 1 1 180px; } .status-panel { margin-top: 20px; } .sensitive-line { align-items: center; border-bottom: 1px solid #edf1f4; display: flex; gap: 10px; padding: 9px 0; } .sensitive-line b { color: #63768a; font-size: .83rem; min-width: 110px; } .reveal-form { align-items: end; display: flex; flex: 1; gap: 7px; } .reveal-form label { flex: 1; font-size: .78rem; } .reveal-form input { margin-top: 2px; } .week-deadline { color: #a46714; font-weight: 700; }
.document-actions { display: flex; gap: 10px; margin-bottom: 12px; } #document-form { background: #f6f9fb; border: 1px solid #dce5ed; border-radius: 6px; display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0; padding: 12px; } #document-form label { flex: 1 1 220px; font-size: .83rem; font-weight: 700; } #document-form input[type="file"] { padding: 6px; }
.unread-notification { background: #eef7ff; cursor: pointer; } tr[data-notification], tr[data-my-case] { cursor: pointer; } tr[data-notification]:hover, tr[data-my-case]:hover { background: #f1f7fb; }
.applicant-application { cursor: pointer; max-width: 900px; } .applicant-application:hover { border-color: #8db4d4; } .applicant-status { color: #245d87; font-size: 1.06rem; font-weight: 700; } .applicant-stepper .step.skipped i { background: #b8c1ca; color: #fff; } #applicant-upload-form { background: #f6f9fb; border: 1px solid #dce5ed; border-radius: 6px; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 12px; } #applicant-upload-form label { flex: 1 1 220px; font-size: .83rem; font-weight: 700; }
.language-select select { background: #fff; border: 1px solid #bdcad6; border-radius: 5px; color: #1c2b3a; padding: 5px; width: auto; }
.sr-only { border: 0; clip: rect(0,0,0,0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; white-space: nowrap; width: 1px; }

/* Applicant-visible lock state.  Values remain readable while every editing
   control has a distinct, non-interactive appearance. */
.claim-information-locked { background: #f5f7f9; border-color: #cfd9e2; }
.claim-information-locked .claim-section { background: #eef2f5; border-radius: 6px; padding: 12px; }
.claim-information-locked input:disabled,
.claim-information-locked select:disabled,
.claim-information-locked textarea:disabled { background: #e8edf1; border-color: #c4cfd8; color: #405364; cursor: not-allowed; opacity: 1; }
.applicant-documents-locked { border-color: #cfd9e2; }

/* Applicant portal: keep the claim sheet usable on phone-sized screens without
   changing the desktop grid or its document-review layout. */
#applicant-claim-information .claim-section { margin-top: 24px; padding-top: 4px; }
#applicant-claim-information .claim-section > h4 { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; line-height: 1.45; margin-bottom: 14px; }
#applicant-claim-information .claim-section > h4 .success-panel,
#applicant-claim-information .claim-section > h4 .warning-panel { display: inline-flex; flex: 0 0 auto; margin: 0 0 0 auto; padding: 5px 9px; white-space: nowrap; }

@media (max-width: 900px) {
  #applicant-claim-information .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  body { overflow-x: hidden; }
  .app-shell { padding: 14px 12px 36px; }
  .card { padding: 15px 13px; }
  .app-header { gap: 12px; margin-bottom: 18px; }
  .app-header .user { align-items: center; flex-wrap: wrap; gap: 8px; width: 100%; }
  .app-header .user > b { flex: 1 1 100%; }
  .app-header .user button,
  .app-header .language-select select { min-height: 40px; white-space: nowrap; }
  .app-header .user small { flex: 1 1 auto; }

  #applicant-claim-information .claim-section { border-top: 1px solid #e2eaf1; margin-top: 28px; padding-top: 20px; }
  #applicant-claim-information .claim-section:first-of-type { border-top: 0; margin-top: 14px; }
  #applicant-claim-information .claim-section > h4 { align-items: flex-start; font-size: 1rem; gap: 9px; margin-bottom: 17px; }
  #applicant-claim-information .claim-section > h4 .success-panel,
  #applicant-claim-information .claim-section > h4 .warning-panel { margin-left: 0; }
  #applicant-claim-information .form-grid { gap: 16px; grid-template-columns: minmax(0, 1fr); }
  #applicant-claim-information .form-grid label,
  #applicant-required-documents label { font-size: .92rem; overflow-wrap: anywhere; }
  #applicant-claim-information input,
  #applicant-claim-information select,
  #applicant-required-documents input,
  #applicant-required-documents select { font-size: 16px; min-height: 44px; }
  #applicant-claim-information input:disabled,
  #applicant-claim-information select:disabled { color: #33495b; }
  #applicant-claim-information button,
  #applicant-required-documents button { min-height: 40px; white-space: nowrap; }
  .form-footer { align-items: stretch; flex-wrap: wrap; justify-content: flex-start; }

  /* The two Applicant tables become vertically-scannable cards.  Their DOM
     remains a table for desktop and accessibility tooling. */
  #applicant-required-documents .table-wrap,
  #aci-section-history .table-wrap { overflow: visible; }
  #applicant-required-documents .simple,
  #aci-section-history .simple { display: block; margin-bottom: 18px; width: 100%; }
  #applicant-required-documents .simple thead,
  #applicant-required-documents .simple > tbody > tr:first-child,
  #aci-section-history .simple thead,
  #aci-section-history .simple > tbody > tr:first-child { display: none; }
  #applicant-required-documents .simple tbody,
  #aci-section-history .simple tbody { display: grid; gap: 12px; }
  #applicant-required-documents .simple tr,
  #aci-section-history .simple tr { background: #f8fafc; border: 1px solid #dce5ed; border-radius: 7px; display: grid; gap: 8px 12px; padding: 12px; width: 100%; }
  #applicant-required-documents .simple td,
  #aci-section-history .simple td { border: 0; min-width: 0; padding: 0; white-space: normal; word-break: break-word; }
  #applicant-required-documents .simple tr { grid-template-columns: minmax(0, 1fr) auto; }
  #applicant-required-documents .simple td:nth-child(1),
  #applicant-required-documents .simple td:nth-child(3) { grid-column: 1 / -1; }
  #applicant-required-documents .simple td:nth-child(2) { color: #52677b; font-weight: 700; }
  #applicant-required-documents .simple td:nth-child(4) { align-self: center; text-align: right; }
  #aci-section-history .simple tr { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #aci-section-history .simple td:nth-child(1),
  #aci-section-history .simple td:nth-child(2),
  #aci-section-history .simple td:nth-child(5) { grid-column: 1 / -1; }
  #aci-section-history .simple td:nth-child(5) button { margin: 0 6px 0 0; }
  #applicant-upload-form { align-items: stretch; flex-direction: column; }
  #applicant-upload-form label { flex-basis: auto; }
}

/* Management case-detail editors: keep the shared desktop form grid intact,
   but give the long claim forms room to be completed on phones and tablets. */
@media (max-width: 900px) {
  .management-basic-edit .form-grid,
  #egov-edit-area.management-profile-edit .form-grid,
  #egov-edit-area.management-claim-edit .form-grid,
  #egov-edit-area.management-bank-edit .form-grid,
  #egov-edit-area.management-history-edit .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .management-basic-edit,
  #egov-edit-area.management-profile-edit,
  #egov-edit-area.management-claim-edit,
  #egov-edit-area.management-bank-edit,
  #egov-edit-area.management-history-edit { min-width: 0; overflow-wrap: anywhere; }

  .management-basic-edit .form-grid,
  #egov-edit-area.management-profile-edit .form-grid,
  #egov-edit-area.management-claim-edit .form-grid,
  #egov-edit-area.management-bank-edit .form-grid,
  #egov-edit-area.management-history-edit .form-grid { gap: 16px; grid-template-columns: minmax(0, 1fr); }

  .management-basic-edit .form-grid label,
  #egov-edit-area.management-profile-edit .form-grid label,
  #egov-edit-area.management-claim-edit .form-grid label,
  #egov-edit-area.management-bank-edit .form-grid label,
  #egov-edit-area.management-history-edit .form-grid label { font-size: .92rem; min-width: 0; overflow-wrap: anywhere; }

  .management-basic-edit input,
  .management-basic-edit select,
  #egov-edit-area.management-profile-edit input,
  #egov-edit-area.management-profile-edit select,
  #egov-edit-area.management-claim-edit input,
  #egov-edit-area.management-claim-edit select,
  #egov-edit-area.management-bank-edit input,
  #egov-edit-area.management-bank-edit select,
  #egov-edit-area.management-history-edit input,
  #egov-edit-area.management-history-edit select,
  #egov-edit-area.management-history-edit textarea { font-size: 16px; min-height: 44px; width: 100%; }

  #egov-edit-area.management-claim-edit .claim-section { border-top: 1px solid #e2eaf1; margin-top: 28px; padding-top: 20px; }
  #egov-edit-area.management-claim-edit .claim-section:first-of-type { border-top: 0; margin-top: 14px; }
  #egov-edit-area.management-claim-edit .claim-section > h4 { line-height: 1.45; margin-bottom: 16px; }

  .management-basic-edit .form-footer,
  #egov-edit-area .form-footer { align-items: stretch; flex-direction: column; }
  .management-basic-edit .form-footer button,
  #egov-edit-area .form-footer button,
  #egov-edit-area.management-profile-edit button,
  #egov-edit-area.management-claim-edit button,
  #egov-edit-area.management-bank-edit button,
  #egov-edit-area.management-history-edit button { min-height: 44px; white-space: nowrap; }

  .detail-card .document-actions { align-items: stretch; flex-wrap: wrap; }
  .detail-card .document-actions button { min-height: 42px; white-space: nowrap; }

  /* The management enrollment summary remains semantic table markup on
     desktop and becomes a compact, vertically scannable card on phones. */
  #egov-edit-area.management-history-edit .table-wrap { overflow: visible; }
  #egov-edit-area.management-history-edit .simple { display: block; margin-bottom: 18px; width: 100%; }
  #egov-edit-area.management-history-edit .simple > tbody > tr:first-child { display: none; }
  #egov-edit-area.management-history-edit .simple tbody { display: grid; gap: 12px; }
  #egov-edit-area.management-history-edit .simple tr { background: #f8fafc; border: 1px solid #dce5ed; border-radius: 7px; display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); padding: 12px; width: 100%; }
  #egov-edit-area.management-history-edit .simple td { border: 0; min-width: 0; padding: 0; white-space: normal; word-break: break-word; }
  #egov-edit-area.management-history-edit .simple td:last-child { display: flex; flex-wrap: wrap; gap: 8px; }

  /* Keep enough scrollable detail area when switching to a compact tab.
     This avoids mobile browsers clamping the viewport upward solely because
     the next tab happens to contain less content. */
  .detail-card { min-height: max(18rem, calc(100dvh - 8rem)); }
}

.detail-card.tab-loading { position: relative; }
.detail-card.tab-loading::after { align-items: center; background: rgb(255 255 255 / 72%); color: #52677b; content: "読み込み中…"; display: flex; font-weight: 700; inset: 0; justify-content: center; pointer-events: none; position: absolute; }
