/* 公開用スタイル。すべてkdc-接頭辞の内部に限定する。 */
:root { --kdc-calendar-width: 180px; }
.kdc-public-page { margin: 0; padding: 0; background: #fff; }
.kdc-public-frame { width: 100%; max-width: var(--kdc-calendar-width); }
.kdc-calendar {
  --kdc-closed-color: #ffdab5;
  --kdc-closed-foreground: #252b26;
  --kdc-closed-sunday: #ab302d;
  --kdc-closed-saturday: #24559c;
  width: 100%; min-width: 0; box-sizing: border-box;
  color: #252b26; background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 12px; font-weight: 400; line-height: 1.5;
  text-align: center; letter-spacing: normal;
}
.kdc-calendar *, .kdc-calendar *::before, .kdc-calendar *::after { box-sizing: border-box; }
.kdc-month { margin: 0 0 15px; padding: 0; }
.kdc-calendar .kdc-table { font: inherit; color: inherit; width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 2px; margin: 0; border: 0; background: #fff; }
.kdc-month-title { padding: 5px 0 8px; color: #252b26; font-size: 14px; line-height: 1.5; font-weight: 700; text-align: center; caption-side: top; }
.kdc-table .kdc-weekday { width: 14.2857%; height: 22px; padding: 0; border: 0; background: #fff; text-align: center; font-size: 11px; line-height: 20px; font-weight: 500; }
.kdc-table .kdc-date { height: 25px; padding: 0; border: 0; border-radius: 2px; background: #fff; text-align: center; font-size: 12px; line-height: 25px; font-weight: 400; vertical-align: middle; }
.kdc-date-number { display: block; font: inherit; color: inherit; white-space: nowrap; }
.kdc-calendar .kdc-weekday-0 { color: #ab302d; }
.kdc-calendar .kdc-weekday-6 { color: #24559c; }
.kdc-table .kdc-is-closed { background: var(--kdc-closed-color); color: var(--kdc-closed-foreground); }
.kdc-table .kdc-is-closed.kdc-weekday-0 { color: var(--kdc-closed-sunday); }
.kdc-table .kdc-is-closed.kdc-weekday-6 { color: var(--kdc-closed-saturday); }
.kdc-legend { display: flex; justify-content: center; align-items: center; gap: 6px; margin: 2px 0 8px; padding: 0; color: #454b46; font-size: 11px; font-weight: 400; }
.kdc-swatch { display: inline-block; width: 13px; height: 13px; border: 1px solid #00000012; border-radius: 2px; background: var(--kdc-closed-color); }
.kdc-data-warning { margin: 8px 0; padding: 5px; color: #a03320; font-size: 11px; text-align: left; }

/* Wide iframe layout; narrow sidebar retains the vertical layout. */
@media (min-width: 280px) {
  .kdc-public-page .kdc-public-frame {
    max-width: 368px;
    margin-inline: auto;
  }
  .kdc-public-page .kdc-calendar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 16px;
    align-items: start;
  }
  .kdc-public-page .kdc-month {
    min-width: 0;
    margin: 0;
  }
  .kdc-public-page .kdc-legend,
  .kdc-public-page .kdc-data-warning {
    grid-column: 1 / -1;
  }
  .kdc-public-page .kdc-legend {
    margin: 4px 0 8px;
  }
}
