/* 公開サイトの CAFE セクションに追加する「営業日」。
   cat-rebuild/index.html から schedule.js と一緒に読み込まれる。 */

#schedule {
  margin: 26px 0 6px;
  scroll-margin-top: 20px;
}

#schedule .schedule-heading {
  display: inline-block;
  width: auto;
  margin: 0 0 6px;
  padding: 0 12px 2px 0;
  color: #333;
  font-family: Bitter, "Kosugi Maru", "Meiryo UI", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.4;
  background: linear-gradient(transparent 72%, #fd9f9f 72%);
}

#schedule .schedule-lead {
  margin: 4px 0 14px;
  color: #7b7462;
  font-size: 13px;
  line-height: 1.7;
}

#schedule .schedule-month {
  margin: 18px 0 0;
}

#schedule .schedule-month-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 9px;
  color: #3c3a32;
  font-family: Bitter, "Kosugi Maru", "Meiryo UI", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
}

#schedule .schedule-month-title::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: #fd9f9f;
}

#schedule .schedule-month-count {
  color: #a39b84;
  font-size: 11px;
  font-weight: 400;
}

#schedule .schedule-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#schedule .schedule-day {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #efe4c8;
  border-radius: 14px;
  background: #fffdf6;
  box-shadow: 0 1px 2px rgba(70, 60, 30, 0.05);
}

#schedule .schedule-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 12px 6px;
  border-right: 1px solid #e4efe9;
  background: #f4fbfa;
}

#schedule .schedule-day-number {
  color: #2e332b;
  font-family: Bitter, "Kosugi Maru", "Meiryo UI", "Meiryo", "Yu Gothic", sans-serif;
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

#schedule .schedule-weekday {
  display: grid;
  min-width: 25px;
  height: 23px;
  place-items: center;
  padding: 0 4px;
  border: 1px solid #d9e6df;
  border-radius: 6px;
  background: #fff;
  color: #5a6a62;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

#schedule .schedule-weekday.sun {
  border-color: #ebdcd2;
  background: #fbf0ea;
  color: #a34f3d;
}

#schedule .schedule-weekday.sat {
  border-color: #d9e4ef;
  background: #eef5fb;
  color: #3f6a9a;
}

#schedule .schedule-today {
  margin-top: 3px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #ddf570;
  color: #2c3423;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.6;
}

#schedule .schedule-events {
  min-width: 0;
  padding: 4px 16px;
}

#schedule .schedule-event {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}

#schedule .schedule-event + .schedule-event {
  border-top: 1px dashed #eadfbe;
}

#schedule .schedule-detail {
  min-width: 0;
}

#schedule .schedule-time {
  color: #3f5f58;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  white-space: nowrap;
}

#schedule .schedule-time span {
  margin: 0 3px;
  color: #9aa392;
  font-weight: 400;
}

#schedule .schedule-name {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

#schedule .schedule-owner {
  margin: 3px 0 0;
  color: #8a826c;
  font-size: 11px;
  line-height: 1.5;
}

#schedule .schedule-owner::before {
  content: "担当 ";
  color: #a9a18a;
}

#schedule .schedule-note {
  margin: 14px 0 0;
  color: #8a826c;
  font-size: 12px;
  line-height: 1.7;
}

#schedule .schedule-note a {
  color: #b04a3a;
  text-decoration: underline;
}

#schedule .schedule-note a:hover {
  color: #8f362a;
}

#schedule .schedule-updated {
  margin: 10px 0 0;
  color: #a39b84;
  font-size: 10px;
  text-align: right;
}

#schedule .schedule-loading,
#schedule .schedule-empty,
#schedule .schedule-error {
  margin: 0;
  padding: 22px 18px;
  border: 1px dashed #ddd2b5;
  border-radius: 12px;
  background: #fffdf6;
  color: #8a826c;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

#schedule .schedule-error {
  border-color: #eccfc9;
  background: #fdf5f3;
  color: #a23830;
}

@media only screen and (max-width: 640px) {
  #schedule .schedule-heading {
    font-size: 1.35rem;
  }

  #schedule .schedule-day {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  #schedule .schedule-day-number {
    font-size: 25px;
  }

  #schedule .schedule-events {
    padding: 4px 11px;
  }

  #schedule .schedule-event {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
    padding: 9px 0;
  }

  #schedule .schedule-time {
    font-size: 12px;
  }
}
