/* =========================================================
   mui 営業日カレンダー
   Figma: mui_スケジュール管理 / node 2:7（810 × 1012.5）
   座標はすべてFigmaの値（px）をそのまま使用
   ========================================================= */

:root {
  --mc-black: #000;
  --mc-red: #ff5757;
  --mc-blue: #004aad;
  --mc-week-text: #616d69;
  --mc-week-bg: #efede4;
  --mc-line: #d4d4d4;          /* 点線 */
  --mc-full: #e3e3e3;          /* グレーセル */
  --mc-night-line: #e6e6e6;
  --mc-font-jp: "Zen Maru Gothic", sans-serif;
  --mc-font-en: "Inter", "Zen Maru Gothic", sans-serif;
}

.mui-cal-wrap {
  width: 100%;
  max-width: 810px;
  margin: 0 auto;
  overflow: hidden;
}

.mui-cal {
  position: relative;
  width: 810px;
  height: 1012.5px;
  background: #fff;
  color: var(--mc-black);
  font-family: var(--mc-font-jp);
  transform-origin: 0 0;
  box-sizing: border-box;
}
.mui-cal *,
.mui-cal *::before,
.mui-cal *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Figmaと同じく「キャップハイトの上端」を top 座標にする */
.mc-t {
  position: absolute;
  white-space: pre;
  line-height: normal;
  text-box: trim-both cap alphabetic;
}

/* ---------- 装飾画像 ---------- */
.mc-leaf { position: absolute; display: block; pointer-events: none; }
.mc-leaf--tr { left: 720.64px; top: 0;        width: 89.36px; height: 92.73px; }
.mc-leaf--bl { left: 0;        top: 867.83px; width: 68.48px; height: 141px; }

/* ---------- ヘッダー ---------- */
.mc-brand   { left: 45.76px; top: 46.53px;  font-size: 27.251px; font-weight: 500; }
.mc-title   { left: 46.67px; top: 84.38px;  font-size: 22.755px; font-weight: 500; }
.mc-hours   { left: 47.05px;                font-size: 24.621px; font-weight: 500; }
.mc-hours--am { top: 124.18px; }
.mc-hours--pm { top: 157.77px; }
.mc-month   { left: 629px;   top: 59.45px;  font-size: 81.362px; font-weight: 500; }
.mc-updated { left: 459px;   top: 147px;    font-size: 28px; font-weight: 700; letter-spacing: 1.4px; }
.mc-updated .num { letter-spacing: 3.2px; }

/* ---------- 曜日 ---------- */
.mc-week {
  position: absolute;
  left: 41.84px;
  top: 188.6px;
  display: grid;
  grid-template-columns: repeat(7, 98.02px);
  column-gap: 6.15px;
  list-style: none;
}
.mc-week li {
  height: 20.76px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--mc-week-bg);
  font-family: var(--mc-font-en);
  font-weight: 700;
  font-size: 13.4px;
  letter-spacing: .33em;
  padding-left: .33em;          /* 字間の右余りを相殺して中央に */
  color: var(--mc-week-text);
}
.mc-week li:nth-child(2) { font-size: 13.813px; }
.mc-week li:nth-child(3) { font-size: 12.535px; }
.mc-week li:nth-child(4) { font-size: 13.384px; }
.mc-week li:nth-child(5) { font-size: 13.429px; }
.mc-week li:nth-child(6) { font-size: 16.123px; }
.mc-week li.sun {
  font-size: 12.389px;
  color: var(--mc-red);
  background: linear-gradient(90deg, #fde7a3 0%, #fdc7a6 100%);
}
.mc-week li.sat {
  font-size: 11.84px;
  color: var(--mc-blue);
  background: linear-gradient(90deg, #8fd5e0 0%, #c9e8a8 100%);
}

/* ---------- カレンダー本体 ---------- */
/* 外枠 723 × 447 → 列 103px × 7 / 行 89px × 5（+ 線 2px）でズレなし */
.mc-grid {
  position: absolute;
  left: 43.5px;
  top: 223.3px;
  width: 723px;
  height: 447px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(5, 1fr);
  border-top: 2px dashed var(--mc-line);
  border-left: 2px dashed var(--mc-line);
}
.mc-cell {
  position: relative;
  border-right: 2px dashed var(--mc-line);
  border-bottom: 2px dashed var(--mc-line);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 21px;
}
/* 6週ある月（1日が金・土曜始まりなど）：外枠はそのままで行を詰める */
.mc-grid.is-6w { grid-template-rows: repeat(6, 1fr); }
.mc-grid.is-6w .mc-cell { padding-top: 18px; }
.mc-grid.is-6w .mc-cell .m { line-height: 24px; }
.mc-cell.is-full::before {
  content: "";
  position: absolute;
  inset: 3px;
  background: var(--mc-full);
  z-index: 0;
}

/* 日付 */
.mc-cell .d {
  position: absolute;
  z-index: 1;
  left: 14px;
  top: 7px;
  font-family: var(--mc-font-en);
  font-weight: 700;
  font-size: 17.86px;
  line-height: 1;
  text-box: trim-both cap alphabetic;
}
.mc-cell .d.sun { color: var(--mc-red); }
.mc-cell .d.sat { color: var(--mc-blue); }
/* 2桁の日付（Figmaの「1 5」表記） */
.mc-cell .d.is-2 {
  left: 8px;
  top: 8px;
  font-size: 12.3px;
  letter-spacing: .3em;
}

/* 記号（午前 / 午後） */
.mc-cell .m {
  position: relative;
  z-index: 1;
  font-family: var(--mc-font-en);
  font-size: 18.68px;
  line-height: 25.5px;
  white-space: nowrap;
}

/* ---------- 凡例 ---------- */
.mc-legend--ok  { left: 110px;    top: 693.27px; font-size: 17.951px; }
.mc-legend--tri { left: 309.24px; top: 691.77px; font-size: 19.523px; }
.mc-legend--ng  { left: 626.92px; top: 693.27px; font-size: 19.556px; }

/* ---------- 夜間空き状況 ---------- */
.mc-moon        { position: absolute; display: block; left: 35.28px; top: 735.31px; width: 66.96px; height: 57.84px; }
.mc-night-month { left: 82.12px; top: 745.42px; font-size: 39.907px; }
.mc-night-title { left: 57.46px; top: 796.8px;  font-size: 19.172px; }

.mc-night {
  position: absolute;
  left: 192px;
  top: 739.24px;
  width: 549.77px;
  height: 81.62px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--mc-night-line);
}
.mc-night__col {
  display: grid;
  grid-template-rows: 42px 1fr;
  border-left: 1px solid var(--mc-night-line);
}
.mc-night__col:first-child { border-left: 0; }
.mc-night__col .h {
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--mc-night-line);
  font-family: var(--mc-font-en);
  font-weight: 700;
  font-size: 12.866px;
}
.mc-night__col .v {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1px 2px 2px;
  background: var(--mc-full);
  font-family: var(--mc-font-en);
  font-size: 22.22px;
}

/* ---------- エリア ---------- */
.mc-area { position: absolute; left: 125.02px; display: flex; align-items: center; }
.mc-area--n { top: 861.42px; }
.mc-area--c { top: 903.61px; }
.mc-area--s { top: 944.3px; }
.mc-area dt {
  width: 92.19px;
  height: 30.77px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18.5px;
  color: #4a4a4a;
}
.mc-area--n dt { background: #efdfe4; }
.mc-area--c dt { background: #fcd6bd; }
.mc-area--s dt { background: #e3ddca; }
.mc-area dd {
  margin-left: 14px;            /* テキスト左端 231.18px */
  font-size: 19.5px;
  white-space: nowrap;
}

/* ---------- 夜間枠なしの月 ---------- */
.mc-night.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #8a877c;
}

/* ---------- サイト埋め込み：複数月を縦に並べる ---------- */
[data-mui-calendar] .mui-cal-wrap + .mui-cal-wrap { margin-top: 24px; }
