@charset "UTF-8";

/* =========================================================
   営業カレンダー（レスポンシブ・スワイプ対応）
   ========================================================= */

/* カレンダー全体コンテナ */
.calendar-container {
  margin: 2.5rem 0 1rem;
  padding: 1.5rem;
  background-color: #fafafa;
  border: 1px solid #e0e0e0;
}

/* タイトル見出し */
.calendar-header {
  text-align: center;
  margin-bottom: 1rem;
}

.calendar-title {
  font-family: 'Josefin Sans', 'Noto Sans JP', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  border-bottom: 2px solid #000;
  padding-bottom: 0.3rem;
  display: inline-block;
}

/* 凡例（レジェンド） */
.calendar-legend {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.2rem;
  padding: 0;
  margin: 0 0 1rem;
  list-style: none;
  font-size: 0.8rem;
  color: #555;
}

.calendar-legend li {
  display: inline-flex;
  align-items: center;
}

.calendar-legend .dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  margin-right: 6px;
  border-radius: 2px;
}

/* 凡例ドット色 */
.calendar-legend .dot-open {
  background-color: #000;
  border: 1px solid #000;
}

.calendar-legend .dot-closed {
  background-color: #f1f3f5;
  border: 1px solid #dee2e6;
}

.calendar-legend .dot-special {
  background-color: #999999;
  border: 1px solid #888;
}

/* スマホ用スワイプ案内テキスト */
.calendar-scroll-note {
  text-align: right;
  font-size: 0.7rem;
  color: #888;
  margin-bottom: 0.4rem;
}

/* テーブル部分のみ横スクロールさせるラッパー */
.calendar-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

/* スクロールバーの細線デザイン */
.calendar-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}
.calendar-scroll-wrapper::-webkit-scrollbar-thumb {
  background-color: #ccc;
  border-radius: 2px;
}

/* カレンダーグリッド */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  background-color: #e5e5e5;
  border: 1px solid #e5e5e5;
  min-width: 480px; /* スマホ時の文字潰れを防ぐ最小横幅 */
}

/* 各セル共通 */
.cal-cell {
  min-height: 58px;
  padding: 6px 4px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  box-sizing: border-box;
}

.cal-cell.is-empty {
  background-color: #f7f7f7;
}

/* 曜日ヘッダー */
.cal-cell.cal-th {
  min-height: auto;
  padding: 8px 0;
  font-weight: 700;
  font-size: 0.85rem;
  background-color: #eaeaea;
  color: #333;
}

.cal-cell.cal-th.sun,
.cal-cell.sun .date-num {
  color: #c0392b;
}

.cal-cell.cal-th.sat,
.cal-cell.sat .date-num {
  color: #2980b9;
}

/* 日付の数字 */
.date-num {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: 'Josefin Sans', sans-serif;
  line-height: 1;
}

/* -----------------------------------------
   セルの状態別スタイル（営業 / 定休 / 臨時休業）
   ----------------------------------------- */

/* 1. 通常営業日（木〜日）: 黒背景 ＋ 白抜き文字 */
.cal-cell.is-open {
  background-color: #000;
  color: #fff;
}

/* 営業日内の数字（土日の赤・青上書きを白に統一） */
.cal-cell.is-open .date-num {
  color: #fff !important;
}

/* 2. 定休日（月〜水）: 薄いグレー ＋ トーンダウン */
.cal-cell.is-regular-closed {
  background-color: #f1f3f5;
  color: #999;
}

/* 3. 臨時休業日: #999999 背景 ＋ 白文字 */
.cal-cell.is-special-closed {
  background-color: #999999;
  color: #fff;
}

.cal-cell.is-special-closed .date-num {
  color: #fff !important;
}

/* -----------------------------------------
   ステータスバッジ
   ----------------------------------------- */
.status-badge {
  font-size: 0.65rem;
  line-height: 1.2;
  border-radius: 2px;
  padding: 2px 4px;
  text-align: center;
  white-space: nowrap;
}

/* 営業バッジ（白抜き文字） */
.status-badge.open {
  color: #fff;
  font-weight: 700;
  opacity: 0.9;
}

/* 定休バッジ */
.status-badge.regular {
  color: #999;
}

/* 臨時休業バッジ（視認性の高い赤背景＋白文字） */
.status-badge.special {
  background-color: #d9383a;
  color: #fff;
  font-weight: 700;
}

/* -----------------------------------------
   レスポンシブ微調整（画面幅576px以下）
   ----------------------------------------- */
@media screen and (max-width: 576px) {
  .calendar-container {
    padding: 1rem 0.75rem;
  }
}