/* ==========================================================
   診療時間表（.c-schedule）
   上：外来（白地）／下：検査（緑地・白文字）
   列の幅は <colgroup> の .c-schedule__col-* で指定する。
   --hero：トップの FV 上（角丸・影付き）
   SP：列の幅と余白を詰めて画面幅に収める（横スクロールさせない）
   ========================================================== */
.c-schedule {
  --schedule-side: 20px;   /* 表の左右の余白 */
  width: 100%;
  max-width: 505px;
  overflow: hidden;
  background: #fff;
  color: #495a6a;
}

.c-schedule__table {
  width: 100%;
  table-layout: fixed;
}

.c-schedule__col-type {
  width: calc(var(--schedule-side) + 36px);
}

.c-schedule__col-time {
  width: 116px;
}

/* ---------- 見出しの行 ---------- */
.c-schedule__caption {
  padding: 16px 0 10px var(--schedule-side);
  text-align: left;
}

.c-schedule__caption-img {
  width: 124px;
}

.c-schedule__day {
  padding: 10px 0 4px;
  font-family: var(--font-maru);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.c-schedule__day:last-child {
  padding-right: var(--schedule-side);
}

/* ---------- 外来・検査の種別 ---------- */
.c-schedule__type {
  padding: 8px 0 8px var(--schedule-side);
  vertical-align: middle;
}

.c-schedule__type-label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  min-height: 58px;
  border-radius: 11px;
  background: var(--color-main);
  color: #fff;
  font-family: var(--font-maru);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: .1em;
  writing-mode: vertical-rl;
}

/* ---------- 時間と●◎－ ---------- */
.c-schedule__time {
  height: 50px;
  padding: 0;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
  text-align: left;
  white-space: nowrap;
}

.c-schedule__cell {
  padding: 0;
  border-top: 1px solid var(--color-line);
  text-align: center;
}

.c-schedule__cell:last-child {
  padding-right: var(--schedule-side);
}

.c-schedule__mark {
  font-size: 14px;
  font-weight: 700;
}

.c-schedule__mark--open,
.c-schedule__mark--half {
  color: #68ac66;
}

.c-schedule__mark--closed {
  color: #b5c0c4;
  font-weight: 400;
}

/* ---------- 注記（◎：13:00まで診療・休診日） ---------- */
.c-schedule__note {
  padding: 6px var(--schedule-side) 8px calc(var(--schedule-side) + 36px);
  border-top: 1px solid var(--color-line);
  color: var(--color-main);
  font-size: 12px;
  line-height: 1.6;
}

.c-schedule__holiday {
  float: right;
  font-weight: 700;
}

/* ---------- 検査（緑地） ---------- */
.c-schedule__group--exam {
  background: #76b475;
  color: #fff;
}

.c-schedule__group--exam .c-schedule__type-label {
  background: #fff;
  color: var(--color-main);
}

.c-schedule__group--exam .c-schedule__time {
  height: 46px;
}

.c-schedule__group--exam .c-schedule__time,
.c-schedule__group--exam .c-schedule__cell {
  border-top-color: rgba(255, 255, 255, .35);
}

.c-schedule__group--exam .c-schedule__row:first-child .c-schedule__time,
.c-schedule__group--exam .c-schedule__row:first-child .c-schedule__cell {
  border-top: none;
}

.c-schedule__group--exam .c-schedule__mark {
  color: #fff;
}

/* ---------- FV 上 ---------- */
.c-schedule--hero {
  max-width: 428px;
  border-radius: 8px;
  box-shadow: 0 3px 20px rgba(80, 90, 80, .12);
}

.c-schedule--hero .c-schedule__col-time {
  width: 110px;
}

@media (max-width: 767px) {
  .c-schedule {
    --schedule-side: 12px;
  }

  .c-schedule__col-type {
    width: calc(var(--schedule-side) + 30px);
  }

  .c-schedule__col-time,
  .c-schedule--hero .c-schedule__col-time {
    width: 96px;
  }

  .c-schedule__caption-img {
    width: 100px;
  }

  .c-schedule__time {
    font-size: 14px;
  }

  .c-schedule__note {
    padding-left: var(--schedule-side);
    font-size: 11px;
  }
}
