/* =========================================================
   cursors.css — Windows XP 風マウスカーソル
   画像は tools/make_cursors.py で生成した自作のピクセルアートです。
     .cur … Chrome / Edge / Firefox（ホットスポットはファイルに内蔵）
     .png … .cur を読めないブラウザ（Safari など）用。ホットスポットをここで指定

   ほかの CSS の cursor 指定を上書きするため、必ず最後に読み込むこと。
   （xp.css / index.css に残っている cursor:pointer などは、
     このファイルが読めなかった時のための予備です）

   カーソル一覧 ─ XP での名前
     default.cur       通常の選択
     pointer.cur       リンクの選択
     text.cur          テキスト選択
     move.cur          移動
     busy.cur          待ち状態
     default_busy.cur  バックグラウンドで作業中
     unavailable.cur   利用不可
   ========================================================= */

/* ---- 通常の選択（矢印）：ページ全体の基本 ---- */
html,
button, label, .bar, .menu, .btn, .cap, .start, .task, .clock, .lang button,
.ctx button, .smcols button, .smfoot button{
  cursor:url("cursors/default.cur"), url("cursors/default.png") 0 0, default}

/* ---- リンクの選択（手）：Web のリンクとタスクペインのリンク ---- */
a[href]{
  cursor:url("cursors/pointer.cur"), url("cursors/pointer.png") 5 0, pointer}

/* XP ではデスクトップアイコン・ファイル・スタートメニュー項目は矢印のまま */
.icons .icon, .files a[href], .smcols a[href]{
  cursor:url("cursors/default.cur"), url("cursors/default.png") 0 0, default}

/* ---- テキスト選択（Iビーム）：メモ帳の本文と入力欄 ---- */
pre, input[type="text"], textarea{
  cursor:url("cursors/text.cur"), url("cursors/text.png") 4 9, text}

/* ---- 移動：アクティブウィンドウのタイトルバー、ドラッグ中のアイコン ---- */
.win:not(.blur) .bar, .icons .icon.dragging, .mascot.dragging .aki{
  cursor:url("cursors/move.cur"), url("cursors/move.png") 9 9, move}
/* タイトルバー上のボタンは矢印に戻す */
.win:not(.blur) .bar .cap{
  cursor:url("cursors/default.cur"), url("cursors/default.png") 0 0, default}

/* ---- 利用不可：押しても何も起きない飾りのボタン（contact.html の最小化・最大化） ---- */
span.cap, .win:not(.blur) .bar span.cap{
  cursor:url("cursors/unavailable.cur"), url("cursors/unavailable.png") 10 10, not-allowed}

/* ---- 作業中：JS が <html> に付け外しする ----
   .busy … バックグラウンドで作業中（矢印＋砂時計）
   .wait … 待ち状態（砂時計） */
html.busy, html.busy *{
  cursor:url("cursors/default_busy.cur"), url("cursors/default_busy.png") 0 0, progress !important}
html.wait, html.wait *{
  cursor:url("cursors/busy.cur"), url("cursors/busy.png") 6 9, wait !important}

/* ---- スマホ：ウィンドウは動かせないので移動カーソルは出さない ---- */
@media (max-width:720px){
  .win:not(.blur) .bar{
    cursor:url("cursors/default.cur"), url("cursors/default.png") 0 0, default}
}
