/* ===== Taskbar (Unified / shared) ===== */
.w95-taskbar{
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 48px;
  background: #c0c0c0;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #000;
  border-bottom: 2px solid #000;
  box-shadow: inset -1px -1px 0 #808080, inset 1px 1px 0 #dfdfdf;
  z-index: 9999;
}


.w95-taskbar-inner{
  height: 100%;
  margin: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 10px;
}


/* 重要：スマホで潰れないように、アイコンは縮められる */
.task-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 6px;


  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  border-right: 2px solid #404040;
  border-bottom: 2px solid #404040;
  box-shadow: inset 1px 1px 0 #dfdfdf, inset -1px -1px 0 #808080;


  flex: 0 1 auto;   /* ←潰れ対策 */
  min-width: 0;     /* ←潰れ対策 */
}


.task-icon:active{
  border-top: 2px solid #404040;
  border-left: 2px solid #404040;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  box-shadow: inset -1px -1px 0 #dfdfdf, inset 1px 1px 0 #808080;
}


.task-icon img{
  height: 28px;
  width: auto;
  display: block;
  image-rendering: pixelated;
}


/* 本文がタスクバーに隠れないように */
body{
  padding-bottom: 60px;
}


/* スマホ微調整：横スクロール無し・ぎゅうぎゅう回避 */
@media (max-width: 430px){
  .w95-taskbar-inner{
    gap: 6px;
    padding: 0 6px;
  }
  .task-icon{
    padding: 0 4px;
  }
  .task-icon img{
    height: 26px;
  }
}
