/* =========================
   全体
========================= */
.ycal {
  margin: 0 auto;
  font-family: sans-serif;
}

/* =========================
   ナビ（月送り）
========================= */
.ycal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.ycal-nav button {
  background: #f5f5f5;
  border: 1px solid #ccc;
  padding: 6px 10px;
  cursor: pointer;
  border-radius: 4px;
}

.ycal-nav button:hover {
  background: #eaeaea;
}

.ycal-nav .current {
  font-weight: bold;
  font-size: 16px;
}

/* =========================
   曜日ヘッダー
========================= */
.week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 4px;
  font-size: 12px;
  text-align: center;
}

.week div {
  padding: 4px 0;
}

.week .sun {
  color: #e53935;
}

.week .sat {
  color: #1e88e5;
}

/* =========================
   カレンダーグリッド
========================= */
.grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* =========================
   日セル
========================= */
.cell {
  border: 1px solid #ddd;
  min-height: 60px;
  padding: 4px;
  text-align: center;
  position: relative;
  background: #fff;
}

.cell.empty {
  background: transparent;
  border: none;
}

/* 日付 */
.date {
  font-size: 12px;
  margin-bottom: 4px;
}

/* 曜日色（セル側） */
.cell.sun .date {
  color: #e53935;
}

.cell.sat .date {
  color: #1e88e5;
}

/* =========================
   ステータス表示
========================= */
.status {
  font-size: 16px;
  font-weight: bold;
}

/* ◯ */
.status.ok {
  color: #2e7d32;
}

/* × */
.status.ng {
  color: #9e9e9e;
}

/* 休み */
.status.holiday {
  color: #e53935;
}

/* 未設定 */
.status.none {
  color: #ccc;
}

/* =========================
   午前午後分割
========================= */
.status.split {
  display: flex;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
}

.status.split span {
  display: inline-block;
  min-width: 16px;
}

.status.split .ok {
  color: #2e7d32;
}

.status.split .ng {
  color: #9e9e9e;
}

/* =========================
   今日（オプション）
========================= */
.cell.today {
  border: 2px solid #000;
}

/* =========================
   レスポンシブ
========================= */
@media (max-width: 480px) {
  #ycal {
    max-width: 100%;
  }

  .cell {
    min-height: 50px;
    padding: 2px;
  }

  .status {
    font-size: 14px;
  }
}