    html, body {
      overflow-x: hidden;
      max-width: 100%;
    }

    /* 全要素の幅制御 */
    *, *::before, *::after {
      box-sizing: border-box;
    }
    .container, .card, .dashboard-grid, .work-block,
    .work-blocks-wrap, .form-group, .time-row {
      max-width: 100%;
      min-width: 0;
    }

    /* コンテナ幅をPC向けに拡張 */
    .container {
      max-width: 1400px;
      width: 100%;
      overflow-x: hidden;
    }

    /* 2カラムレイアウト：フォーム | グラフ */
    .dashboard-grid {
      display: grid;
      grid-template-columns: minmax(0, 500px) 1fr;
      gap: 24px;
      align-items: start;
    }

    /* 日報一覧をPC表示で全幅に */
    .report-list-full {
      grid-column: 1 / -1;
    }

    /* ユーザー情報バー */
    .user-info-bar {
      background: var(--navy-pale);
      border-radius: var(--radius-sm);
      padding: 12px 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-bottom: 20px;
      font-size: 14px;
    }
    .user-info-bar .name { font-weight: 700; color: var(--navy); }
    .user-info-bar .dept { color: var(--gray-600); }

    /* ── 業務入力ブロック ── */
    .work-blocks-wrap {
      margin-bottom: 8px;
      width: 100%;
      overflow: hidden;
    }

    .work-block {
      border: 1.5px solid var(--gray-200);
      border-radius: var(--radius-md);
      padding: 14px 14px 10px;
      margin-bottom: 10px;
      background: var(--gray-100);
      position: relative;
      width: 100%;
      box-sizing: border-box;
    }
    .work-block-header {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-bottom: 10px;
    }
    .work-block-drag {
      flex-shrink: 0;
      color: var(--gray-400);
      cursor: grab;
      font-size: 16px;
      line-height: 1;
      padding: 2px 2px;
      user-select: none;
      touch-action: none;
    }
    .work-block-drag:hover { color: var(--navy); }
    .work-block-drag:active { cursor: grabbing; }
    .work-block-num {
      font-size: 12px;
      font-weight: 700;
      color: var(--navy);
      letter-spacing: 0.04em;
      flex: 1;
    }
    .work-block.dragging { opacity: 0.5; }
    .work-block-placeholder {
      border: 2px dashed var(--navy-pale);
      border-radius: var(--radius-md);
      margin-bottom: 10px;
      background: transparent;
    }
    .work-block-delete {
      background: none;
      border: none;
      color: var(--gray-400);
      font-size: 18px;
      cursor: pointer;
      line-height: 1;
      padding: 2px 6px;
      border-radius: 4px;
      transition: color 0.15s, background 0.15s;
    }
    .work-block-delete:hover { color: var(--danger); background: #fdf0ee; }

    /* 業務ブロック内の全フォーム要素を幅内に収める */
    .work-block * {
      max-width: 100%;
      box-sizing: border-box;
    }
    .work-block input,
    .work-block textarea,
    .work-block select {
      width: 100%;
      max-width: 100%;
      box-sizing: border-box;
    }

    .time-row {
      display: grid;
      grid-template-columns: auto auto minmax(0, 1fr);
      gap: 8px;
      margin-bottom: 8px;
      width: 100%;
      box-sizing: border-box;
    }
    .time-row .form-group { margin-bottom: 0; min-width: 0; }

    .work-block .form-group { margin-bottom: 0; }
    .work-block textarea {
      resize: vertical;
      min-height: 56px;
      font-size: 14px;
    }
    .work-block input[type="time"] {
      font-size: 14px;
      height: 38px;
      padding: 6px 8px;
      width: 110px;
      -webkit-appearance: none;
      appearance: none;
    }
    .work-block .block-category {
      font-size: 13px;
      height: 38px;
      padding: 6px 8px;
      min-width: 0;
    }

    .add-block-btn {
      width: 100%;
      margin-bottom: 16px;
      border: 1.5px dashed var(--gray-400);
      background: none;
      color: var(--navy);
      font-weight: 700;
      font-size: 14px;
      padding: 9px;
      border-radius: var(--radius-sm);
      cursor: pointer;
      transition: border-color 0.2s, background 0.2s;
    }
    .add-block-btn:hover { border-color: var(--navy); background: var(--navy-pale); }

    /* ── ファイル入力 ── */
    .file-input-wrap input[type="file"] {
      width: 100%; padding: 8px; font-size: 13px;
      border: 1.5px dashed var(--gray-400);
      border-radius: var(--radius-sm);
      background: var(--white); cursor: pointer;
    }
    .file-input-wrap input[type="file"]:focus { outline: none; border-color: var(--navy); }

    /* ── 日報一覧テーブル ── */
    .report-table { table-layout: fixed; width: 100%; }
    .col-date { width: 110px; }
    .col-content { width: auto; }
    .col-updated { width: 140px; }
    .col-status { width: 70px; min-width: 60px; text-align: center; white-space: nowrap; }
    .report-row { cursor: pointer; }
    .report-row:hover td { background: var(--navy-pale); }
    .report-row td.col-content { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .section-meta { font-size: 13px; color: var(--gray-600); margin-bottom: 12px; }

    /* ── 業務リスト表示（詳細モーダル） ── */
    .work-entry {
      display: flex;
      gap: 12px;
      padding: 8px 0;
      border-bottom: 1px solid var(--gray-200);
    }
    .work-entry:last-child { border-bottom: none; }
    .work-time {
      flex-shrink: 0;
      font-size: 13px;
      font-weight: 700;
      color: var(--navy);
      white-space: nowrap;
      min-width: 110px;
    }
    .work-text { font-size: 14px; color: var(--gray-800); }
    .work-category-tag {
      display: inline-block;
      background: var(--navy-pale);
      color: var(--navy);
      font-size: 11px;
      font-weight: 700;
      padding: 1px 8px;
      border-radius: 10px;
      margin-left: 6px;
      vertical-align: middle;
    }

    /* ── モーダル ── */
    .modal-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.55);
      display: flex; align-items: flex-start; justify-content: center;
      padding: 40px 16px; z-index: 200;
      overflow-y: auto;
    }
    .modal-box {
      background: var(--white);
      border-radius: var(--radius-lg);
      width: 100%; max-width: 640px;
      padding: 32px;
      box-shadow: var(--shadow-lg);
      position: relative;
    }
    .modal-title {
      font-size: 18px; font-weight: 700; color: var(--navy);
      margin-bottom: 20px; padding-bottom: 12px;
      border-bottom: 2px solid var(--navy-pale);
    }
    .modal-close {
      position: absolute; top: 16px; right: 16px;
      background: none; border: none; font-size: 22px;
      cursor: pointer; color: var(--gray-600); line-height: 1;
      padding: 4px 8px; border-radius: 4px;
    }
    .modal-close:hover { background: var(--gray-200); }
    .modal-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }

    /* 詳細表示 */
    .detail-field { margin-bottom: 16px; }
    .detail-label { font-size: 12px; font-weight: 700; color: var(--gray-600); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
    .detail-value { font-size: 14px; color: var(--gray-800); white-space: pre-wrap; word-break: break-word; }
    .detail-value.empty { color: var(--gray-400); font-style: italic; }

    /* テーブルのはみ出し防止 */
    .table-wrapper {
      width: 100%;
      overflow-x: auto;
    }
    table { min-width: 0; }


    /* 確認モーダル */
    .confirm-overlay {
      position: fixed; inset: 0;
      background: rgba(0,0,0,0.55);
      display: flex; align-items: center; justify-content: center;
      z-index: 250; opacity: 0; pointer-events: none; transition: opacity 0.25s;
    }
    .confirm-overlay.active { opacity: 1; pointer-events: auto; }
    .confirm-box {
      background: #fff; border-radius: 12px; padding: 28px 24px;
      width: 90%; max-width: 420px; box-shadow: var(--shadow-lg);
      transform: translateY(20px); transition: transform 0.25s;
    }
    .confirm-overlay.active .confirm-box { transform: translateY(0); }
    .confirm-title {
      font-size: 16px; font-weight: 700; color: var(--navy-dark);
      margin: 0 0 12px;
    }
    .confirm-body {
      font-size: 14px; color: var(--gray-600); line-height: 1.6;
      margin-bottom: 20px;
    }
    .confirm-actions {
      display: flex; gap: 8px; justify-content: flex-end;
    }
    .confirm-actions .btn-confirm-cancel {
      padding: 8px 20px; border: 1px solid var(--gray-300);
      background: #fff; color: var(--gray-600); border-radius: 6px;
      font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    }
    .confirm-actions .btn-confirm-cancel:hover { background: var(--gray-100); }
    .confirm-actions .btn-confirm-ok {
      padding: 8px 20px; border: none; border-radius: 6px;
      font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
      color: #fff; background: var(--danger);
    }
    .confirm-actions .btn-confirm-ok:hover { opacity: 0.9; }

    /* 空状態 */
    .empty-state { text-align: center; padding: 48px 24px; color: var(--gray-400); }
    .empty-state p { margin-top: 8px; font-size: 14px; }

    /* ── 画像サムネイル・ライトボックス ── */
    .img-thumb {
      max-width: 150px; max-height: 150px;
      object-fit: cover; border-radius: var(--radius-sm);
      cursor: pointer; display: block; margin-top: 4px;
    }
    .img-hint { font-size: 11px; color: var(--gray-400); margin-top: 4px; }
    .lightbox {
      display: none; position: fixed; inset: 0;
      background: rgba(0,0,0,0.85); z-index: 500;
      align-items: center; justify-content: center; cursor: pointer;
    }
    .lightbox.active { display: flex; }
    .lightbox img {
      max-width: 90vw; max-height: 90vh;
      border-radius: 8px; box-shadow: 0 4px 40px rgba(0,0,0,0.5);
    }

    /* トースト */
    .toast {
      position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
      background: var(--navy-dark); color: #fff;
      padding: 12px 24px; border-radius: 40px;
      font-size: 14px; font-weight: 500;
      box-shadow: var(--shadow-md); z-index: 300;
      opacity: 0; transition: opacity 0.3s; pointer-events: none;
    }
    .toast.show { opacity: 1; }
    .toast.error { background: var(--danger); }

    /* ── 休日チェック ── */
    .holiday-section { transition: opacity 0.2s; }
    .holiday-section.disabled { opacity: 0.4; pointer-events: none; }

    /* ── スマホ対応 ── */
    @media (max-width: 767px) {
      /* グリッド：1カラム */
      .dashboard-grid { grid-template-columns: 1fr; }

      /* カード・コンテナ */
      .card { padding: 16px 10px; }
      .container { padding: 12px 6px; }

      /* 業務ブロック */
      .work-block { padding: 10px 8px 8px; overflow: hidden; }

      /* 3カラム横並び維持 */
      .time-row {
        display: grid !important;
        grid-template-columns: auto auto minmax(0, 1fr) !important;
        gap: 6px;
      }
      .time-row .form-group { min-width: 0; }

      .work-block input[type="time"] {
        width: 90px !important;
        font-size: 13px;
        height: 36px;
        padding: 4px 6px;
      }
      .work-block .block-category {
        font-size: 12px;
        height: 36px;
        padding: 4px 6px;
        min-width: 0 !important;
      }

      /* その他フォーム要素の幅制御 */
      .work-block textarea,
      input[type="date"] {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        min-width: 0;
        font-size: 16px;
      }

      /* テーブル */
      table { font-size: 12px; }
      th, td { padding: 6px 4px; }
      .col-date { width: 90px; }
      .col-status { width: 60px; }
      .col-updated { display: none; }
    }

    /* ── ページネーション ── */
    .pagination {
      display: flex;
      justify-content: center;
      gap: 4px;
      margin-top: 16px;
      flex-wrap: wrap;
    }
    .page-btn {
      padding: 6px 12px;
      border: 1.5px solid var(--gray-200);
      background: var(--white);
      color: var(--navy);
      font-size: 13px;
      font-weight: 700;
      font-family: inherit;
      border-radius: 6px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .page-btn:hover:not(:disabled) { background: var(--navy-pale); border-color: var(--navy); }
    .page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
    .page-btn:disabled { opacity: 0.4; cursor: not-allowed; }

    /* ── 業務種別グラフ ── */
    .chart-section { margin-top: 20px; }
    .chart-toggle {
      display: flex;
      gap: 6px;
      margin-bottom: 16px;
    }
    .chart-toggle-btn {
      padding: 6px 16px;
      border: 1.5px solid var(--navy-pale);
      background: var(--white);
      color: var(--navy);
      font-size: 13px;
      font-weight: 700;
      font-family: inherit;
      border-radius: 20px;
      cursor: pointer;
      transition: all 0.2s;
    }
    .chart-toggle-btn.active {
      background: var(--navy);
      color: var(--white);
      border-color: var(--navy);
    }
    .chart-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 8px 16px;
      margin-top: 12px;
      font-size: 13px;
    }
    .chart-legend-item {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .chart-legend-dot {
      display: inline-block;
      width: 12px;
      height: 12px;
      border-radius: 2px;
    }
    .chart-empty {
      text-align: center;
      padding: 32px;
      color: var(--gray-400);
      font-size: 14px;
    }
