/* ======================================================================
   デザイン専用の上書き CSS（持ち主：デザイン専用机 C:\dev\shift-design）
   ----------------------------------------------------------------------
   ・style.css の直後に読み込まれる（見た目：色・線・余白・フォント・角丸などの専用枠）
   ・機能の配置や画面構造（JS・HTML）には触れず、デザイン机が作ったこのファイルを
     shift-schedule が取り込んで本番反映する（2026-11-23 kazuki 合意）
   ====================================================================== */

/* ======================================================================
   338・339・340番：個別シフト表・ローテーション表のフォント統一と
   日付・曜日上下中央ぞろえ、案B（最大幅 960px・左ぞろえ 12px・休み希望調整）
   （2026-11-23 絵【相談】C_個別シフト表のフォント・日付位置・セルと休み希望バランス_v1.1 案B 採用）
   ====================================================================== */
@media (min-width:900px){
  /* 338番：個別シフト表・ヘルパーローテーション表のフォントを全体シフト表（Noto Sans JP）に統一 */
  #main .xs1,
  #main .xs1 *{
    font-family:"Noto Sans JP","Hiragino Sans","BIZ UDPGothic","Yu Gothic UI",sans-serif;
  }

  /* 339番：日付・曜日・年月の行と今日の日付丸（.tdc）を上下中央ぞろえに統一 */
  #main .kbf .xs1 .xs tr:first-child td,
  #main .kbf .xs1 .xs tr:nth-child(2) td{
    vertical-align:middle;
    line-height:1;
    padding-top:0;
    padding-bottom:0;
    font-size:12px;
  }
  #main .rots .xs1 .xr td.c{
    vertical-align:middle;
    line-height:1;
  }
  #main .xs1 .xs .tdc{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:18px;
    height:16px;
    line-height:1;
    border-radius:8px;
    padding:0 4px;
    font-size:11.5px;
    vertical-align:middle;
  }

  /* 340番（案B）：表カードの最大幅を 960px に適正化し、左ぞろえ 12px で全体シフト表と同じ比率にそろえる */
  #main .kbf .xs1 .xsone{
    max-width:960px;
  }
  #main .kbf .xs1 .xs td{
    vertical-align:middle;
    line-height:1.15;
  }
  #main .kbf .xs1 .xs td.a{
    width:50px;
    vertical-align:middle;
    line-height:1;
    font-size:11.5px;
  }
  #main .kbf .xs1 .xs td.a.r{
    padding-right:5px;
  }
  #main .kbf .xs1 .xs td.v{
    font-size:12px;
    text-align:left;
    padding:0 3px 0 4px;
    font-variant-numeric:tabular-nums;
  }

  /* 340番：休み希望（○○○○／△△△△／××××）の字の大きさと字間・淡い色分け */
  #main .kbf .xs1 .xs td.off{
    font-size:10px;
    letter-spacing:0.5px;
    text-indent:0.5px;
    color:#5a544f;
    vertical-align:middle;
    line-height:1;
    padding:0;
  }
  #main .kbf .xs1 .xs td.off.ok,
  #main .kbf .xs1 .xs td.off[data-off="ok"]{
    color:#8a827b;
  }
  #main .kbf .xs1 .xs td.off.pt,
  #main .kbf .xs1 .xs td.off[data-off="pt"]{
    color:#8a5a00;
    font-weight:600;
  }
  #main .kbf .xs1 .xs td.off.ng,
  #main .kbf .xs1 .xs td.off[data-off="ng"]{
    color:#b42318;
    font-weight:600;
  }
}

/* ======================================================================
   341番：ルーティーン表・時間軸表示の時刻ラベルを Google カレンダー仕様に統一
   （2026-11-23 絵【相談】C_ルーティーン表の時刻軸とスクロールバーのGoogleカレンダー化_v1.0 案B 採用）
   ・時刻列の貫通横線・点線を消し、右端に短い目盛り線＋時刻文字を横線の真横（上下中央）へ右寄せ
   ・上の曜日帯は他表と同じ淡い灰地（#f7f5f4）を維持
   ====================================================================== */
@media (min-width:900px){
  /* ルーティーン表（全体：gut=46px / 利用者個別：gut=54px） */
  #main .rtm .rts .rtw{
    padding:5px 0;
  }
  #main .rtm .rts .rtg .hr,
  #main .rtm .rts .rtg .q{
    left:46px;
  }
  #main .rtp .rtb .rtg .hr,
  #main .rtp .rtb .rtg .q{
    left:54px;
  }
  #main .rtm .rts .rtg .hr,
  #main .rtp .rtb .rtg .hr{
    border-top:1px solid #ece7e2;
  }
  #main .rtm .rts .rtg .hr::before,
  #main .rtp .rtb .rtg .hr::before{
    content:'';
    position:absolute;
    left:-8px;
    top:-1px;
    width:8px;
    border-top:1px solid #e6e0da;
    pointer-events:none;
  }
  #main .rtm .rts .rtg .hr.z::before,
  #main .rtp .rtb .rtg .hr.z::before,
  #main .rtm .rts .rtg .hr.z span,
  #main .rtp .rtb .rtg .hr.z span{
    display:none;
  }
  #main .rtm .rts .rtg .hr span,
  #main .rtp .rtb .rtg .hr span{
    left:auto;
    right:calc(100% + 11px);
    top:0;
    transform:translateY(-50%);
    font-size:10.5px;
    line-height:1;
    color:#706b66;
    font-weight:500;
    font-variant-numeric:tabular-nums;
    background:#ffffff;
    padding:0 1px;
  }
  #main .rtm .rts .rtg .q,
  #main .rtp .rtb .rtg .q{
    border-top:1px dotted #f5f1ed;
  }

  /* 全体シフト表（1日・3日・週のタイムライン）の左時刻ラベルも Google カレンダー仕様に統一 */
  #main .pcs:not(.kbf) .tl:not(.tlc) .hr{
    left:40px;
    border-top-color:#ece7e2;
  }
  #main .pcs:not(.kbf) .tl:not(.tlc) .hr::before{
    content:'';
    position:absolute;
    left:-6px;
    top:-1px;
    width:6px;
    border-top:1px solid #e6e0da;
    pointer-events:none;
  }
  #main .pcs:not(.kbf) .tl:not(.tlc) .hr span{
    left:auto;
    right:calc(100% + 8px);
    top:0;
    transform:translateY(-50%);
    font-size:10.5px;
    line-height:1;
    color:#706b66;
    font-weight:500;
    font-variant-numeric:tabular-nums;
    background:#ffffff;
    padding:0 1px;
  }
  #main .pcs:not(.kbf) .tl.tlc .hr{
    left:30px;
    border-top-color:#ece7e2;
  }
  #main .pcs:not(.kbf) .tl.tlc .hr::before{
    content:'';
    position:absolute;
    left:-4px;
    top:-1px;
    width:4px;
    border-top:1px solid #e6e0da;
    pointer-events:none;
  }
  #main .pcs:not(.kbf) .tl.tlc .hr span{
    left:auto;
    right:calc(100% + 5px);
    top:0;
    transform:translateY(-50%);
    font-size:10px;
    line-height:1;
    color:#706b66;
    font-weight:500;
    font-variant-numeric:tabular-nums;
    background:#ffffff;
    padding:0;
  }

  /* ======================================================================
     342番：スクロールバーを Google カレンダー仕様に統一（スクロール案1）
     ・上下左右の矢印ボタンを廃止し、幅 10px（つまみ 6px）・丸角・淡いグレーに統一
     ====================================================================== */
  ::-webkit-scrollbar{
    width:10px;
    height:10px;
  }
  ::-webkit-scrollbar-button{
    display:none;
    width:0;
    height:0;
  }
  ::-webkit-scrollbar-track,
  ::-webkit-scrollbar-corner{
    background:transparent;
  }
  ::-webkit-scrollbar-thumb{
    background:#dadce0;
    border-radius:999px;
    border:2px solid transparent;
    background-clip:content-box;
  }
  ::-webkit-scrollbar-thumb:hover{
    background:#bdc1c6;
    border:2px solid transparent;
    background-clip:content-box;
  }
  ::-webkit-scrollbar-thumb:active{
    background:#9aa0a6;
    border:2px solid transparent;
    background-clip:content-box;
  }
}
