/* 全体レイアウト：16x9のマス目 */
.grid-container {
  display: grid;
  width: 100vw;
  height: 100vh;
  grid-template-columns: repeat(16, 1fr);
  grid-template-rows: repeat(9, 1fr);
  gap: 16px; /* 隙間を少し広げてゆったりと */
  padding: 16px;
  box-sizing: border-box;
  background: #121212;
}

/* --- サイドバーエリア --- */
.sidebar-time {
  grid-area: 1 / 1 / 4 / 5;
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
}
.sidebar-vacancy {
  grid-area: 4 / 1 / 6 / 5;
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 15px;
}
.sidebar-weather {
  grid-area: 6 / 1 / 8 / 5;
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 15px;
}
.sidebar-status {
  grid-area: 8 / 1 / 10 / 5;
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333;
  padding: 15px 25px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* メ文字サイズ拡大調整 */
.room-name {
  font-size: 3.8vw; /* さらに巨大化 */
  color: #00e5ff;
  font-weight: 900;
  margin-bottom: 2px;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}
.clock-display {
  font-size: 4.2vw;
  color: #fff;
  font-weight: bold;
  font-family: monospace;
}
.date-display {
  font-size: 1.6vw;
  color: #aaa;
  margin-top: 5px;
}

/* --- メインエリア：予定タイル --- */
.tile-a1 {
  grid-area: 1 / 5 / 4 / 8;
}
.tile-a2 {
  grid-area: 1 / 8 / 4 / 11;
}
.tile-a3 {
  grid-area: 1 / 11 / 4 / 14;
}
.tile-a4 {
  grid-area: 1 / 14 / 4 / 17;
}

.tile-b1 {
  grid-area: 4 / 5 / 7 / 8;
}
.tile-b2 {
  grid-area: 4 / 8 / 7 / 11;
}
.tile-b3 {
  grid-area: 4 / 11 / 7 / 14;
}
.tile-b4 {
  grid-area: 4 / 14 / 7 / 17;
}

.tile-c1 {
  grid-area: 7 / 5 / 10 / 8;
}
.tile-c2 {
  grid-area: 7 / 8 / 10 / 11;
}
.tile-c3 {
  grid-area: 7 / 11 / 10 / 14;
}
.tile-c4 {
  grid-area: 7 / 14 / 10 / 17;
}

.mode-container-large {
  grid-area: 4 / 5 / 10 / 17;
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333;
  animation: fadeIn 0.8s ease-in-out;
}

/* タイル内の文字を巨大化 */
.slot-time {
  font-size: 2.6vw; /* 2.0vw -> 2.6vw */
  color: #ffb74d;
  font-weight: bold;
  line-height: 1.1;
  font-family: monospace;
}
.slot-user {
  font-size: 2vw; /* 1.6vw -> 2.0vw */
  font-weight: bold;
  color: #ffffff;
  margin-top: auto;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.main-tile {
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #333;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
}
.busy {
  background: #b71c1c;
  color: #fff;
}
.vacant {
  background: #1a237e;
  color: #9fa8da;
  opacity: 0.5;
}
.status-ok {
  color: #81c784;
  font-weight: bold;
  font-size: 1.8vw;
  margin-bottom: 5px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
