
      *,
      *::before,
      *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
      }
      :root {
        --bg: #f7f5f0;
        --surface: #fff;
        --surface2: #f0ede5;
        --border: rgba(60, 50, 30, 0.12);
        --border-strong: rgba(60, 50, 30, 0.24);
        --text: #262420;
        --text-muted: #6e685c;
        --text-hint: #a29b8c;
        --blue: #b5532c;
        --blue-light: #f6e8de;
        --blue-dark: #8a3c1e;
        --green: #3b6d11;
        --green-light: #eaf3de;
        --red: #a32d2d;
        --red-light: #fcebeb;
        --amber: #854f0b;
        --amber-light: #faeeda;
        --purple: #534ab7;
        --purple-light: #eeedfe;
        --teal: #0f6e56;
        --teal-light: #e1f5ee;
        --r: 8px;
        --rl: 14px;
        --sh:
          0 1px 2px rgba(50, 40, 20, 0.04), 0 2px 8px rgba(50, 40, 20, 0.04);
        --shm:
          0 12px 32px rgba(50, 40, 20, 0.18), 0 3px 10px rgba(50, 40, 20, 0.08);
        --grad-blue: linear-gradient(135deg, #c25b31 0%, #a3441f 100%);
      }
      html {
        font-size: 14px;
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
      }
      body {
        font-family: 'Noto Sans JP', -apple-system, 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
        background: var(--bg);
        color: var(--text);
        min-height: 100vh;
        line-height: 1.5;
        overflow-x: hidden;
        max-width: 100%;
        width: 100%;
        position: relative;
      }
      ::selection {
        background: rgba(181, 83, 44, 0.18);
      }
      body::-webkit-scrollbar {
        width: 10px;
      }
      body::-webkit-scrollbar-track {
        background: transparent;
      }
      body::-webkit-scrollbar-thumb {
        background: rgba(50, 40, 20, 0.2);
        border-radius: 5px;
      }
      body::-webkit-scrollbar-thumb:hover {
        background: rgba(50, 40, 20, 0.35);
      }
      .hidden {
        display: none !important;
      }
      .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
      }
      .flex {
        display: flex;
      }
      .items-center {
        align-items: center;
      }
      .gap8 {
        gap: 8px;
      }
      .w-full {
        width: 100%;
      }
      .muted {
        color: var(--text-muted);
      }
      .bold {
        font-weight: 600;
      }

      .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        padding: 8px 16px;
        border-radius: var(--r);
        border: 0.5px solid var(--border-strong);
        background: var(--surface);
        color: var(--text);
        cursor: pointer;
        font-size: 13px;
        font-weight: 500;
        font-family: inherit;
        transition:
          background 0.15s,
          box-shadow 0.15s,
          transform 0.08s;
        white-space: nowrap;
        box-shadow: 0 1px 2px rgba(50, 40, 20, 0.06);
      }
      .btn:hover {
        background: var(--surface2);
      }
      .btn:active {
        transform: translateY(1px);
        box-shadow: none;
      }
      .btn-primary {
        background: var(--grad-blue);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 2px 6px rgba(181, 83, 44, 0.35);
      }
      .btn-primary:hover {
        background: var(--blue-dark);
        box-shadow: 0 3px 10px rgba(181, 83, 44, 0.45);
      }
      .btn-sm {
        padding: 5px 10px;
        font-size: 12px;
      }
      .btn-ok {
        background: var(--green);
        color: #fff;
        border-color: var(--green);
      }
      .btn-ok:hover {
        background: #27500a;
      }
      .btn-ng {
        background: var(--red);
        color: #fff;
        border-color: var(--red);
      }
      .btn-ng:hover {
        background: #791f1f;
      }
      .btn-ghost {
        border-color: transparent;
        background: transparent;
        color: var(--text-muted);
        box-shadow: none;
      }
      .btn-ghost:hover {
        background: var(--surface2);
        color: var(--text);
      }
      .btn-teal {
        background: var(--teal);
        color: #fff;
        border-color: var(--teal);
      }
      .btn-teal:hover {
        background: #085041;
      }
      .btn-danger {
        background: var(--red-light);
        color: var(--red);
        border-color: var(--red);
      }
      .btn-danger:hover {
        background: #f7c1c1;
      }

      .lbl {
        font-size: 12px;
        color: var(--text-muted);
        display: block;
        margin-bottom: 4px;
      }
      .inp {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px 10px;
        border: 0.5px solid var(--border-strong);
        border-radius: var(--r);
        background: var(--surface2);
        font-size: 13px;
        font-family: inherit;
        color: var(--text);
        transition:
          border-color 0.15s,
          box-shadow 0.15s;
      }
      .inp:focus {
        outline: none;
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(181, 83, 44, 0.15);
        background: var(--surface);
      }
      textarea.inp {
        resize: vertical;
      }
      select.inp {
        cursor: pointer;
      }

      .badge {
        display: inline-block;
        padding: 2px 9px;
        border-radius: 20px;
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.01em;
      }
      .b-ok {
        background: var(--green-light);
        color: var(--green);
      }
      .b-ng {
        background: var(--red-light);
        color: var(--red);
      }
      .b-wait {
        background: var(--amber-light);
        color: var(--amber);
      }
      .b-blue {
        background: var(--blue-light);
        color: var(--blue-dark);
      }
      .b-purple {
        background: var(--purple-light);
        color: var(--purple);
      }
      .b-teal {
        background: var(--teal-light);
        color: var(--teal);
      }
      .b-ph {
        background: #eeedfe;
        color: #534ab7;
      }
      .b-cl {
        background: #e1f5ee;
        color: #0f6e56;
      }

      .card {
        background: var(--surface);
        border: 0.5px solid var(--border);
        border-radius: 16px;
        padding: 18px;
        box-shadow: var(--sh);
        transition: box-shadow 0.2s;
      }
      .card:hover {
        box-shadow: 0 4px 16px rgba(60, 50, 30, 0.12);
      }
      .card + .card {
        margin-top: 10px;
      }

      /* タブ切替時にコンテンツがふわっと現れる */
      .cont > [role="tabpanel"]:not(.hidden) {
        animation: panelin 0.25s cubic-bezier(0.16, 1, 0.3, 1);
      }
      @keyframes panelin {
        from {
          opacity: 0;
          transform: translateY(8px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* ログイン */
      #ls {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: var(--bg);
      }
      .lb {
        background: var(--surface);
        border: 0.5px solid var(--border);
        border-radius: 18px;
        padding: 36px 32px;
        width: 100%;
        max-width: 400px;
        box-shadow:
          0 20px 50px rgba(50, 40, 20, 0.12),
          0 4px 14px rgba(50, 40, 20, 0.06);
      }
      .ll {
        width: 60px;
        height: 60px;
        background: var(--grad-blue);
        border-radius: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 14px;
        font-size: 28px;
        box-shadow: 0 8px 20px rgba(181, 83, 44, 0.4);
        animation: llfloat 3.5s ease-in-out infinite;
      }
      @keyframes llfloat {
        0%,
        100% {
          transform: translateY(0);
        }
        50% {
          transform: translateY(-6px);
        }
      }
      .lb {
        animation: panelin 0.4s cubic-bezier(0.16, 1, 0.3, 1);
      }
      .lt {
        font-size: 19px;
        font-weight: 700;
        text-align: center;
        margin-bottom: 4px;
        letter-spacing: 0.02em;
      }
      .ls2 {
        font-size: 12px;
        color: var(--text-muted);
        text-align: center;
        margin-bottom: 24px;
      }
      .le {
        background: var(--red-light);
        color: var(--red);
        border-radius: var(--r);
        padding: 10px 12px;
        font-size: 13px;
        margin-bottom: 14px;
      }

      /* メイン */
      #ms {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        max-width: 100%;
        overflow-x: hidden;
      }
      .hdr {
        background: rgba(247, 245, 240, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 0.5px solid var(--border);
        border-top: 3px solid var(--blue);
        padding: 10px 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        position: sticky;
        top: 0;
        z-index: 100;
        box-shadow: 0 1px 12px rgba(50, 40, 20, 0.04);
        flex-wrap: wrap;
      }
      .hdr > *:not(.hinfo) {
        flex-shrink: 0;
      }
      .hlo {
        width: 36px;
        height: 36px;
        background: var(--grad-blue);
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 17px;
        flex-shrink: 0;
        box-shadow: 0 2px 8px rgba(181, 83, 44, 0.3);
      }
      .hinfo {
        flex: 1;
        min-width: 0;
      }
      .hn {
        font-weight: 700;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
      }
      .ha {
        font-size: 11px;
        color: var(--text-muted);
      }

      /* タブ：ピル型セグメントスタイル */
      .tbar {
        background: var(--surface);
        border-bottom: 0.5px solid var(--border);
        padding: 10px 20px;
        display: flex;
        gap: 6px;
        overflow-x: auto;
      }
      .tbtn {
        padding: 8px 16px;
        border: none;
        background: rgba(255, 255, 255, 0.55);
        border: 1px solid var(--border-strong);
        cursor: pointer;
        font-size: 13px;
        font-weight: 600;
        font-family: inherit;
        color: var(--text-muted);
        white-space: nowrap;
        transition:
          color 0.15s,
          background 0.15s,
          box-shadow 0.15s,
          transform 0.1s;
        border-radius: 999px;
      }
      .tbtn:hover {
        color: var(--text);
        background: #e2e6eb;
      }
      .tbtn.active {
        color: #f7f3ec;
        background: #262420;
        box-shadow: 0 10px 24px -14px rgba(38, 36, 32, 0.6);
      }
      .tbtn:active {
        transform: scale(0.97);
      }

      /* コンテンツ */
      .cont {
        padding: 20px;
        flex: 1;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        overflow-x: hidden;
      }
      .g2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
      }
      .g3 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 12px;
      }
      .g4 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr 1fr;
        gap: 12px;
      }
      @media (max-width: 640px) {
        .g2,
        .g3,
        .g4 {
          grid-template-columns: 1fr;
        }
        .cont {
          padding: 12px;
        }
        .hdr {
          padding: 8px 12px;
          gap: 8px;
          row-gap: 6px;
        }
        /* 店舗名・エリア名の領域を広く確保し、ボタン類は2行目に折り返す */
        .hinfo {
          min-width: 58%;
        }
        .hn {
          font-size: 14px;
        }
        /* 2行目に回ったボタン群を右寄せにする */
        .hdr .btn:first-of-type {
          margin-left: auto;
        }
        .hdr .btn-sm {
          padding: 5px 9px;
          font-size: 11px;
        }
      }

      .stitle {
        font-size: 15px;
        font-weight: 700;
        margin-bottom: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
      }
      .prev {
        background: var(--surface2);
        border: 0.5px solid var(--border);
        border-radius: var(--r);
        padding: 12px;
        margin-bottom: 14px;
        font-size: 12px;
        color: var(--text-muted);
        min-height: 52px;
      }
      .stag {
        display: inline-block;
        background: var(--surface);
        border: 0.5px solid var(--border-strong);
        border-radius: 20px;
        padding: 2px 8px;
        font-size: 11px;
        margin: 2px;
      }
      .ibanner {
        background: var(--blue-light);
        border: 0.5px solid rgba(24, 95, 165, 0.2);
        border-left: 3px solid var(--blue);
        border-radius: var(--r);
        padding: 10px 12px;
        font-size: 13px;
        color: var(--blue-dark);
        margin-bottom: 16px;
      }

      /* 日付モードタブ */
      .date-mode-wrap {
        margin-bottom: 12px;
      }
      .date-mode-tabs {
        display: flex;
        gap: 6px;
        margin-bottom: 10px;
        flex-wrap: wrap;
      }
      .dmt {
        padding: 6px 14px;
        border-radius: var(--r);
        border: 0.5px solid var(--border-strong);
        background: var(--surface2);
        cursor: pointer;
        font-size: 12px;
        font-weight: 500;
        font-family: inherit;
        color: var(--text-muted);
        transition: all 0.1s;
      }
      .dmt.active {
        background: var(--grad-blue);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 2px 6px rgba(181, 83, 44, 0.3);
      }

      /* 複数日指定：カレンダー日付ピッカー */
      .mcal-dow {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        text-align: center;
        font-size: 11px;
        color: var(--text-muted);
        margin-bottom: 6px;
      }
      .mcal-dow span.sun {
        color: var(--red);
      }
      .mcal-dow span.sat {
        color: var(--blue);
      }
      .mcal-grid {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 4px;
      }
      .mcal-blank {
        visibility: hidden;
      }
      .mcal-day {
        border: 0.5px solid var(--border-strong);
        background: var(--surface2);
        border-radius: var(--r);
        padding: 8px 0;
        font-size: 12px;
        cursor: pointer;
        font-family: inherit;
        color: var(--text);
      }
      .mcal-day.sun {
        color: var(--red);
      }
      .mcal-day.sat {
        color: var(--blue);
      }
      .mcal-day.sel {
        background: var(--grad-blue);
        color: #fff;
        border-color: transparent;
        font-weight: 700;
      }
      .status-stbtn.active {
        background: var(--blue);
        color: #fff;
        border-color: var(--blue);
      }

      /* カレンダー */
      .cnav {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 16px;
        flex-wrap: wrap;
      }
      .ctitle {
        font-size: 16px;
        font-weight: 700;
        min-width: 130px;
        text-align: center;
      }
      .cperiod {
        font-size: 11px;
        color: var(--text-muted);
      }
      .cwrap {
        overflow-x: auto;
        border: 0.5px solid var(--border);
        border-radius: var(--rl);
      }
      .ctable {
        border-collapse: collapse;
        min-width: 100%;
        font-size: 12px;
      }
      .ctable th,
      .ctable td {
        border: 0.5px solid var(--border);
      }
      .cths {
        min-width: 150px;
        padding: 8px 10px;
        background: var(--surface2);
        text-align: left;
        font-weight: 700;
        position: sticky;
        left: 0;
        z-index: 10;
        border-right: 1px solid var(--border-strong);
      }
      .cthd {
        min-width: 62px;
        padding: 6px 4px;
        background: var(--surface2);
        text-align: center;
        font-size: 11px;
        font-weight: 500;
      }
      .ctds {
        padding: 8px 10px;
        background: var(--surface);
        position: sticky;
        left: 0;
        z-index: 5;
        border-right: 1px solid var(--border-strong);
        vertical-align: top;
      }
      .ctd {
        padding: 3px;
        text-align: center;
        vertical-align: middle;
        background: var(--surface);
      }
      .chip {
        display: block;
        border-radius: 5px;
        padding: 3px 4px;
        margin: 2px 0;
        font-size: 10px;
        font-weight: 500;
        cursor: pointer;
        border: none;
        width: 100%;
        font-family: inherit;
        text-align: center;
        transition: opacity 0.1s;
        line-height: 1.4;
      }
      .chip:hover {
        opacity: 0.8;
      }
      .chip-wait {
        background: var(--amber-light);
        color: var(--amber);
      }
      .chip-ok {
        background: var(--green-light);
        color: var(--green);
      }
      .chip-ng {
        background: var(--red-light);
        color: var(--red);
      }
      .chip-src {
        background: var(--purple-light);
        color: var(--purple);
      }
      .chip-adm {
        background: var(--blue-light);
        color: var(--blue-dark);
      }
      .cempty {
        color: var(--text-hint);
        text-align: center;
        padding: 40px 0;
      }

      /* 調整表ビュー（日付×店舗のマトリクス） */
      .adj-wrap {
        overflow-x: auto;
        border: 0.5px solid var(--border);
        border-radius: var(--rl);
        max-width: 100%;
        box-shadow: var(--sh);
        background: var(--surface);
      }
      .adj-wrap::-webkit-scrollbar {
        height: 9px;
      }
      .adj-wrap::-webkit-scrollbar-track {
        background: var(--surface2);
        border-radius: 0 0 var(--rl) var(--rl);
      }
      .adj-wrap::-webkit-scrollbar-thumb {
        background: rgba(50, 40, 20, 0.25);
        border-radius: 5px;
      }
      .adj-wrap::-webkit-scrollbar-thumb:hover {
        background: rgba(15, 30, 50, 0.4);
      }
      .adj-table {
        border-collapse: collapse;
        font-size: 11px;
        white-space: nowrap;
      }
      .adj-table th,
      .adj-table td {
        border: 0.5px solid var(--border);
      }
      .adj-table tbody tr:hover td:not(.adj-datecell) {
        background: #f8fafc;
      }
      .adj-corner {
        min-width: 74px;
        padding: 7px 8px;
        background: var(--surface2);
        position: sticky;
        left: 0;
        z-index: 11;
        border-right: 1px solid var(--border-strong);
        font-weight: 700;
      }
      .adj-storehead {
        padding: 7px 8px;
        background: #2b2721;
        color: #fff;
        font-weight: 700;
        font-size: 11px;
        text-align: center;
        min-width: 110px;
      }
      .adj-storearea {
        font-size: 9px;
        font-weight: 400;
        opacity: 0.85;
      }
      .adj-datecell {
        padding: 5px 8px;
        background: var(--surface);
        position: sticky;
        left: 0;
        z-index: 6;
        border-right: 1px solid var(--border-strong);
        font-weight: 600;
        font-size: 11px;
      }
      .adj-cell {
        padding: 4px 6px;
        text-align: center;
        vertical-align: middle;
        background: var(--surface);
        cursor: default;
        min-width: 110px;
        transition: background 0.1s;
      }
      .adj-combo-line {
        cursor: pointer;
      }
      .adj-combo-line:hover {
        opacity: 0.82;
      }
      .adj-empty {
        cursor: default;
      }
      .adj-empty:hover {
        background: var(--surface);
      }
      /* 職種バッジ：薬剤師=紫のベタ塗り／医療事務=青のベタ塗り（白文字）で一目で判別 */
      .adj-role-badge {
        color: #fff;
        border-radius: 4px;
        padding: 1px 7px;
        font-size: 10px;
        font-weight: 700;
        flex-shrink: 0;
        line-height: 1.6;
        white-space: nowrap;
      }
      .adj-role-badge-ph {
        background: var(--purple);
      }
      .adj-role-badge-cl {
        background: #1d6cb8;
      }
      .adj-combo-line {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        font-size: 11px;
        font-weight: 600;
        border-radius: 4px;
        padding: 3px 6px;
        line-height: 1.5;
      }
      .adj-combo-status {
        font-size: 10px;
        font-weight: 700;
        opacity: 0.85;
      }
      .adj-stat-wait {
        color: var(--amber);
        background: var(--amber-light);
      }
      .adj-stat-ok {
        color: var(--green);
        background: var(--green-light);
      }
      .adj-stat-conf {
        color: var(--teal);
        background: var(--teal-light);
      }

      /* 期間指定の依頼：破線の枠で帯状につながって見えるようにする */
      .adj-range {
        border-top: 1.5px dashed currentColor;
        border-bottom: 1.5px dashed currentColor;
        border-radius: 0;
        margin: 0 -6px;
        padding: 3px 8px;
      }
      .adj-range-start {
        border-left: 1.5px dashed currentColor;
        border-radius: 4px 0 0 4px;
        margin-left: 0;
      }
      .adj-range-end {
        border-right: 1.5px dashed currentColor;
        border-radius: 0 4px 4px 0;
        margin-right: 0;
      }
      .adj-range-start.adj-range-end {
        border-radius: 4px;
      }
      .adj-range-tag {
        font-size: 9px;
        font-weight: 700;
        background: rgba(255, 255, 255, 0.6);
        border-radius: 3px;
        padding: 0 4px;
        flex-shrink: 0;
      }
      .adj-range-tag-ok {
        background: var(--green);
        color: #fff;
      }
      .adj-range-tag-conf {
        background: var(--teal);
        color: #fff;
      }

      /* 期間指定：依頼元・管理者・エリア長視点で、実際に可能/確定があった日を強調 */
      .adj-range-day-ok {
        background: var(--green-light) !important;
        color: var(--green) !important;
        font-weight: 700;
        box-shadow: inset 0 0 0 1.5px var(--green);
      }
      .adj-range-day-conf {
        background: var(--teal-light) !important;
        color: var(--teal) !important;
        font-weight: 700;
        box-shadow: inset 0 0 0 1.5px var(--teal);
      }
      .adj-range-day-none {
        opacity: 0.55;
      }

      .adj-sun .adj-datecell {
        color: var(--red);
      }
      .adj-sat .adj-datecell {
        color: var(--blue);
      }
      .adj-today .adj-datecell {
        background: var(--blue-light);
      }
      .adj-legend {
        display: flex;
        gap: 14px;
        margin-top: 10px;
        font-size: 11px;
        color: var(--text-muted);
        flex-wrap: wrap;
      }
      .adj-legend-item {
        display: flex;
        align-items: center;
        gap: 4px;
      }
      .adj-dot {
        display: inline-block;
        width: 10px;
        height: 10px;
        border-radius: 50%;
      }
      .adj-legend-range {
        display: inline-block;
        width: 18px;
        height: 10px;
        border-top: 1.5px dashed var(--text-muted);
        border-bottom: 1.5px dashed var(--text-muted);
      }

      /* モーダル */
      .mov {
        position: fixed;
        inset: 0;
        background: rgba(38, 33, 25, 0.45);
        backdrop-filter: blur(3px);
        -webkit-backdrop-filter: blur(3px);
        z-index: 1000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 16px;
        animation: fadein 0.15s ease;
      }
      @keyframes fadein {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }
      .mbox {
        background: var(--surface);
        border-radius: 16px;
        box-shadow: var(--shm);
        width: 100%;
        max-width: 560px;
        max-height: 90vh;
        overflow-y: auto;
        animation: mpop 0.2s cubic-bezier(0.16, 1, 0.3, 1);
      }
      @keyframes mpop {
        from {
          opacity: 0;
          transform: translateY(14px) scale(0.98);
        }
        to {
          opacity: 1;
          transform: translateY(0) scale(1);
        }
      }
      .mhd {
        padding: 16px 18px;
        border-bottom: 0.5px solid var(--border);
        display: flex;
        align-items: center;
        gap: 8px;
        position: sticky;
        top: 0;
        background: var(--surface);
        z-index: 2;
      }
      .mhd h3 {
        font-size: 15px;
        font-weight: 700;
        flex: 1;
      }
      .mbdy {
        padding: 16px 18px;
      }
      .mft {
        padding: 12px 18px;
        border-top: 0.5px solid var(--border);
        display: flex;
        gap: 8px;
        justify-content: flex-end;
      }
      .crow {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 8px 10px;
        border: 0.5px solid var(--border);
        border-radius: var(--r);
        background: var(--surface2);
        margin-bottom: 6px;
      }
      .crow.sel {
        background: var(--green-light);
        border-color: var(--green);
      }
      .rrow {
        display: flex;
        gap: 6px;
        margin-top: 8px;
        flex-wrap: wrap;
        align-items: center;
      }

      /* 依頼状況 */
      .rcard {
        background: var(--surface);
        border: 0.5px solid var(--border);
        border-radius: var(--rl);
        margin-bottom: 12px;
        overflow: hidden;
        box-shadow: var(--sh);
        transition: box-shadow 0.15s;
      }
      .rcard:hover {
        box-shadow: 0 4px 14px rgba(50, 40, 20, 0.1);
      }
      .rchd {
        padding: 12px 14px;
        border-bottom: 0.5px solid var(--border);
        background: var(--surface2);
      }
      .rcbd {
        padding: 12px 14px;
      }
      .scrow {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 10px;
      }
      .rdrow {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        margin-top: 8px;
      }
      .rtchip {
        font-size: 11px;
        padding: 2px 7px;
        border-radius: 20px;
        font-weight: 500;
      }

      /* ローディング */
      .loading-overlay {
        position: fixed;
        inset: 0;
        background: rgba(255, 255, 255, 0.8);
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 12px;
      }
      .spinner {
        width: 32px;
        height: 32px;
        border: 3px solid var(--border-strong);
        border-top-color: var(--blue);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
      }
      @keyframes spin {
        to {
          transform: rotate(360deg);
        }
      }

      /* トースト */
      .toast {
        position: fixed;
        bottom: 24px;
        right: 24px;
        background: rgba(38, 34, 28, 0.95);
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
        color: #fff;
        border-radius: 12px;
        padding: 12px 18px;
        font-size: 13px;
        font-weight: 500;
        z-index: 9999;
        box-shadow: 0 8px 24px rgba(15, 30, 50, 0.3);
        animation: sup 0.25s cubic-bezier(0.16, 1, 0.3, 1);
        max-width: 320px;
        border-left: 3px solid var(--teal);
      }
      @keyframes sup {
        from {
          opacity: 0;
          transform: translateY(10px);
        }
        to {
          opacity: 1;
          transform: translateY(0);
        }
      }

      /* GAS接続設定バナー */
      .gas-banner {
        background: #fff8e1;
        border: 0.5px solid #f0c040;
        border-radius: var(--r);
        padding: 12px 14px;
        font-size: 12px;
        color: #7a5c00;
        margin-bottom: 16px;
      }
    

      /* ── ClaudeDesign準拠: エディトリアル調オーバーライド ── */
      .lt,
      .stitle,
      .ctitle,
      .mhd h3 {
        font-family: 'Noto Serif JP', serif;
        letter-spacing: 0.01em;
      }
      .lt {
        font-size: 24px;
      }
      .hn {
        font-family: 'Noto Serif JP', serif;
        font-size: 14px;
      }
      @media (max-width: 640px) {
        /* モバイル版デザイン準拠: タブを等幅ピルに */
        .tbtn {
          flex: 1;
          text-align: center;
          padding: 10px 6px;
        }
        .tbar {
          padding: 10px 12px;
        }
      }

      /* ═══════════════════════════════════════════
         v2: ClaudeDesign 忠実版オーバーライド
         （クリーム地・ガラスカード・下線入力・チャコールピル・明朝見出し）
         ═══════════════════════════════════════════ */
      :root {
        --blue: #b0512a;
        --blue-light: #f6e7dc;
        --blue-dark: #8a3c1e;
      }
      body {
        background: #f7f5f0;
        color: #262420;
      }
      body::before {
        content: "";
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at 90% -5%, #f0e3cb 0%, transparent 50%);
        pointer-events: none;
        z-index: 0;
      }
      #ls, #ms {
        position: relative;
        z-index: 1;
      }

      /* ── ヘッダー: 細い墨色の罫線＋明朝の店舗名 ── */
      .hdr {
        background: rgba(247, 245, 240, 0.85);
        border-top: none;
        border-bottom: 1.5px solid #262420;
        box-shadow: none;
        padding: 14px 24px 12px;
      }
      .hlo {
        width: 9px;
        height: 9px;
        min-width: 9px;
        border-radius: 50%;
        background: #b0512a;
        box-shadow: none;
        font-size: 0;
      }
      .hn {
        font-family: 'Noto Serif JP', serif;
        font-size: 19px;
        font-weight: 700;
        letter-spacing: 0.01em;
      }
      .ha {
        font-size: 11px;
        letter-spacing: 0.06em;
        color: #8a8272;
      }
      .hdr .btn-ghost {
        color: #7c7566;
        letter-spacing: 0.04em;
        font-weight: 500;
      }
      .hdr .btn-ghost:hover {
        background: transparent;
        color: #262420;
      }

      /* ── タブ: 透明地にピル、アクティブはチャコール ── */
      .tbar {
        background: transparent;
        border-bottom: none;
        padding: 16px 24px 4px;
      }
      .tbtn {
        padding: 9px 22px;
        border-radius: 24px;
        background: transparent;
        border: 1px solid #d8d2c6;
        color: #6e675a;
        font-weight: 500;
        letter-spacing: 0.03em;
      }
      .tbtn:hover {
        background: rgba(255, 255, 255, 0.6);
        color: #262420;
      }
      .tbtn.active {
        background: #2b2822;
        border-color: #2b2822;
        color: #f7f3ea;
        font-weight: 600;
        box-shadow: none;
      }

      /* ── カード: すりガラス＋大きな柔らかい影 ── */
      .card {
        background: rgba(255, 255, 255, 0.62);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid #e0dbd1;
        border-radius: 18px;
        box-shadow: 0 16px 40px -24px rgba(38, 36, 32, 0.3);
        padding: 22px 24px;
      }
      .card:hover {
        box-shadow: 0 16px 40px -24px rgba(38, 36, 32, 0.3);
      }

      /* ── セクション見出し: 明朝＋右へ伸びるヘアライン ── */
      .stitle {
        font-family: 'Noto Serif JP', serif;
        font-size: 19px;
        letter-spacing: 0.01em;
      }
      .stitle::after {
        content: "";
        flex: 1;
        height: 1px;
        background: #e6e1d7;
        margin-left: 8px;
      }

      /* ── 入力欄: 枠なし下線スタイル ── */
      .inp {
        border: none;
        border-bottom: 1.5px solid #d8d2c6;
        border-radius: 0;
        background: transparent;
        padding: 8px 2px;
        font-size: 14px;
      }
      .inp:focus {
        border-bottom-color: #b0512a;
        box-shadow: none;
        background: transparent;
      }
      .lbl {
        font-size: 10.5px;
        letter-spacing: 0.08em;
        color: #8a8272;
      }

      /* ── ボタン ── */
      .btn {
        border-radius: 22px;
        background: transparent;
        border: 1px solid rgba(60, 50, 30, 0.3);
        box-shadow: none;
        letter-spacing: 0.03em;
      }
      .btn:hover {
        background: rgba(255, 255, 255, 0.7);
      }
      .btn-primary {
        background: #2b2822;
        border-color: #2b2822;
        color: #f7f3ea;
        border-radius: 30px;
        padding: 12px 30px;
        letter-spacing: 0.05em;
        box-shadow: 0 14px 28px -14px rgba(38, 36, 32, 0.55);
      }
      .btn-primary:hover {
        background: #3b372f;
        box-shadow: 0 14px 28px -14px rgba(38, 36, 32, 0.55);
      }

      /* ── 単日/期間タブ: 下線式 ── */
      .dmt {
        border: none;
        background: transparent;
        padding: 4px 2px 8px;
        border-radius: 0;
        font-weight: 500;
        color: #8a8272;
        border-bottom: 2px solid transparent;
      }
      .dmt.active {
        background: transparent;
        color: #262420;
        font-weight: 700;
        border-bottom: 2px solid #b0512a;
        box-shadow: none;
      }

      /* ── お知らせ: テラコッタの短い罫＋テキスト ── */
      .ibanner {
        background: transparent;
        border: none;
        padding: 4px 0;
        color: #4a453c;
        display: flex;
        align-items: center;
        gap: 12px;
      }
      .ibanner::before {
        content: "";
        width: 34px;
        height: 1.5px;
        background: #b0512a;
        flex: none;
      }

      /* ── カレンダー ── */
      .adj-wrap {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(12px);
        border: 1px solid #e0dbd1;
        border-radius: 18px;
        box-shadow: 0 16px 40px -24px rgba(38, 36, 32, 0.3);
      }
      .adj-table th,
      .adj-table td {
        border: none;
      }
      .adj-corner {
        background: transparent;
        border-right: none;
        border-bottom: 1.5px solid #262420;
        font-size: 10px;
        letter-spacing: 0.16em;
        color: #8a8272;
        font-weight: 600;
        padding: 14px 16px;
      }
      .adj-storehead {
        background: transparent;
        color: #262420;
        font-family: 'Noto Serif JP', serif;
        font-weight: 700;
        font-size: 13px;
        border-bottom: 1.5px solid #262420;
        padding: 14px 16px;
      }
      .adj-storearea {
        color: #97907f;
        opacity: 1;
        font-size: 10px;
        letter-spacing: 0.08em;
      }
      .adj-datecell {
        background: transparent;
        border-right: none;
        border-top: 1px solid #eae6dd;
        font-weight: 500;
        font-size: 12px;
        padding: 12px 16px;
      }
      .adj-cell {
        background: transparent;
        border-top: 1px solid #eae6dd;
      }
      .adj-table tbody tr:hover td:not(.adj-datecell) {
        background: rgba(255, 255, 255, 0.85);
      }
      .adj-sun .adj-datecell {
        color: #c44f3f;
      }
      .adj-sat .adj-datecell {
        color: #3568b8;
      }
      .adj-today .adj-datecell {
        background: rgba(176, 81, 42, 0.08);
      }
      /* チップ: 輪郭ピル型（状態色は維持） */
      .adj-combo-line {
        border-radius: 16px;
        padding: 4px 12px;
        font-weight: 600;
        font-size: 11px;
        gap: 7px;
      }
      .adj-stat-wait {
        color: #8a5b12;
        background: rgba(158, 113, 32, 0.08);
        box-shadow: inset 0 0 0 1px rgba(158, 113, 32, 0.4);
      }
      .adj-stat-ok {
        color: #2e6b45;
        background: rgba(46, 107, 69, 0.08);
        box-shadow: inset 0 0 0 1px rgba(46, 107, 69, 0.4);
      }
      .adj-stat-conf {
        color: #94421f;
        background: rgba(176, 81, 42, 0.08);
        box-shadow: inset 0 0 0 1px rgba(176, 81, 42, 0.45);
      }
      .adj-combo-status {
        font-weight: 400;
        color: #8a8272;
        opacity: 1;
      }
      .adj-role-badge-ph {
        background: #6b5ca5;
      }
      .adj-role-badge-cl {
        background: #33628f;
      }
      .ctitle {
        font-family: 'Noto Serif JP', serif;
        font-size: 24px;
      }

      /* ── 依頼状況カード ── */
      .rcard {
        background: rgba(255, 255, 255, 0.6);
        backdrop-filter: blur(12px);
        border: 1px solid #e0dbd1;
        border-radius: 18px;
        box-shadow: 0 16px 40px -24px rgba(38, 36, 32, 0.25);
      }
      .rcard:hover {
        box-shadow: 0 16px 40px -24px rgba(38, 36, 32, 0.25);
      }
      .rchd {
        background: transparent;
        border-bottom: 1px solid #eae6dd;
      }

      /* ── ログイン ── */
      #ls {
        background: #f7f5f0;
      }
      .lb {
        background: rgba(255, 255, 255, 0.65);
        backdrop-filter: blur(14px);
        border: 1px solid #e0dbd1;
        border-radius: 22px;
        box-shadow: 0 16px 40px -24px rgba(38, 36, 32, 0.35);
        animation: none;
      }
      .ll {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #b0512a;
        box-shadow: none;
        font-size: 0;
        animation: none;
        margin: 0 auto 16px;
      }
      .lt {
        font-family: 'Noto Serif JP', serif;
        font-size: 25px;
      }
      .ls2 {
        font-size: 10.5px;
        letter-spacing: 0.2em;
        color: #8a8272;
      }

      /* ── モーダル・トースト ── */
      .mbox {
        border-radius: 18px;
        background: #faf8f3;
      }
      .mhd {
        background: #faf8f3;
        border-bottom: 1.5px solid #262420;
      }
      .toast {
        border-left-color: #b0512a;
      }

      @media (max-width: 640px) {
        .hn {
          font-size: 16px;
        }
        .cont {
          padding: 14px;
        }
      }

      /* v2追記: カレンダーの列区切り線（日付⇔店舗、店舗間） */
      .adj-corner,
      .adj-datecell {
        border-right: 1.5px solid #d8d2c6;
      }
      .adj-storehead + .adj-storehead,
      .adj-cell + .adj-cell {
        border-left: 1px solid #e6e1d7;
      }

      /* v2追記: 日付ごとの横罫線を濃くして視認性を上げる */
      .adj-datecell,
      .adj-cell {
        border-top: 1px solid #cfc9bb;
      }

      /* v2追記: 横罫線をセレクタ優先度を上げて確実に描画（縦線と同色・同太さ） */
      .adj-table td.adj-datecell,
      .adj-table td.adj-cell {
        border-top: 1.5px solid #d8d2c6;
      }

      /* v2追記: テラコッタの丸ドット（ログインロゴ・ヘッダー）を非表示 */
      .ll,
      .hlo {
        display: none;
      }

      /* v2追記: アクションボタンの再定義
         （.btn{background:transparent}の後勝ちで色付きボタンが透明化していた不具合の修正） */
      .btn-ok {
        background: #2e6b45;
        border-color: #2e6b45;
        color: #fff;
      }
      .btn-ok:hover {
        background: #245537;
      }
      .btn-teal {
        background: #b0512a;
        border-color: #b0512a;
        color: #fff;
      }
      .btn-teal:hover {
        background: #8a3c1e;
      }
      .btn-ng {
        background: #a32d2d;
        border-color: #a32d2d;
        color: #fff;
      }
      .btn-ng:hover {
        background: #7f2222;
      }
      .btn-danger {
        background: transparent;
        color: #a32d2d;
        border: 1px solid rgba(163, 45, 45, 0.45);
      }
      .btn-danger:hover {
        background: rgba(163, 45, 45, 0.08);
      }
