/* =========================================================
   Calendar Monthly 02
   Site Color: Axis / Iccho
   role: site skin
========================================================= */

/* =========================================================
   Section
========================================================= */

.p-cal-monthly-02 {
  position: relative;
  overflow: hidden;
  padding: 44px 0;
}

.p-cal-monthly-02 .l-container {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

/* =========================================================
   Heading
========================================================= */

#cal-monthly-02 .c-heading-plain {
  color: #1f2f53;
}

/* =========================================================
   Nav
========================================================= */

.p-cal-monthly-02__nav {
  position: relative;
  margin-top: 20px;
  margin-bottom: 18px;

  display: flex;
  justify-content: center;
  align-items: center;
}

.p-cal-monthly-02__prev,
.p-cal-monthly-02__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 30px;
  height: 30px;
  padding: 0;

  border: 1px solid rgba(194, 143, 75, 0.55);
  background: rgba(255, 252, 245, 0.9);
  color: #9a6628;

  display: grid;
  place-items: center;

  font-size: 15px;
  line-height: 1;
  text-decoration: none;

  box-shadow:
    0 10px 24px rgba(31, 47, 83, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.68);

  transition:
    border-color 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
}

.p-cal-monthly-02__prev {
  left: 0;
}

.p-cal-monthly-02__next {
  right: 0;
}

.p-cal-monthly-02__prev:hover,
.p-cal-monthly-02__next:hover {
  border-color: rgba(160, 104, 38, 0.86);
  background: rgba(194, 143, 75, 0.14);
  color: #1f2f53;
  opacity: 1;
}

.p-cal-monthly-02__month {
  color: #1f2f53;

  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
}

/* =========================================================
   Calendar Board
========================================================= */

.p-cal-monthly-02__weekdays,
.p-cal-monthly-02__grid {
  background: rgba(255, 252, 245, 0.88);
  border-color: rgba(194, 143, 75, 0.42);

  box-shadow:
    0 18px 42px rgba(31, 47, 83, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

/* =========================================================
   Weekdays
========================================================= */

.p-cal-monthly-02__weekdays {
  border-top-color: rgba(194, 143, 75, 0.5);
  border-left-color: rgba(194, 143, 75, 0.5);
}

.p-cal-monthly-02__weekday {
  padding: 7px 5px;

  border-right-color: rgba(194, 143, 75, 0.34);
  border-bottom-color: rgba(194, 143, 75, 0.34);

  background: rgba(194, 143, 75, 0.08);
  color: rgba(31, 47, 83, 0.72);

  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.p-cal-monthly-02__weekday.is-sun {
  color: rgba(150, 48, 42, 0.86);
}

.p-cal-monthly-02__weekday.is-sat {
  color: rgba(31, 47, 83, 0.58);
}

/* =========================================================
   Grid
========================================================= */

.p-cal-monthly-02__grid {
  border-left-color: rgba(194, 143, 75, 0.42);
  border-bottom-color: rgba(194, 143, 75, 0.42);
}

.p-cal-monthly-02__cell {
  min-height: 58px;
  padding: 7px 7px 5px;

  border-right-color: rgba(194, 143, 75, 0.28);
  border-bottom: 1px solid rgba(194, 143, 75, 0.28);

  background: rgba(255, 255, 255, 0.82);
}

.p-cal-monthly-02__date {
  color: rgba(31, 47, 83, 0.78);

  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.p-cal-monthly-02__body {
  margin-top: 8px;
}

/* =========================================================
   Outside Month
========================================================= */

.p-cal-monthly-02__cell.is-outside {
  background: rgba(255, 252, 245, 0.54);
}

.p-cal-monthly-02__cell.is-outside .p-cal-monthly-02__date {
  opacity: 0.28;
}

/* =========================================================
   Holiday / Closed
========================================================= */

.p-cal-monthly-02__cell.is-holiday {
  background: rgba(150, 48, 42, 0.08);
}

.p-cal-monthly-02__cell.is-holiday .p-cal-monthly-02__date {
  color: rgba(150, 48, 42, 0.9);
}

/* =========================================================
   Labels
========================================================= */

.p-cal-monthly-02__label {
  display: block;
  width: fit-content;
  max-width: 100%;

  color: #9a6628;

  font-size: 10px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.p-cal-monthly-02__cell.is-special-open .p-cal-monthly-02__label {
  color: rgba(31, 47, 83, 0.74);
}

.p-cal-monthly-02__cell.is-temporary-closed .p-cal-monthly-02__label {
  color: rgba(150, 48, 42, 0.9);
}

/* =========================================================
   Legend
========================================================= */

.p-cal-monthly-02__legend {
  margin-top: 14px;

  color: rgba(31, 47, 83, 0.68);

  font-size: 12px;
  line-height: 1.6;
}

.p-cal-monthly-02__legendItem {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.p-cal-monthly-02__legendMark {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;

  background: rgba(150, 48, 42, 0.78);
}

.p-cal-monthly-02__legendText {
  color: rgba(31, 47, 83, 0.68);
}

/* =========================================================
   Hours
========================================================= */

.p-cal-monthly-02__hours {
  width: 100%;
  margin: 28px auto 0;
  overflow: hidden;

  border: 1px solid rgba(194, 143, 75, 0.42);
  background: rgba(255, 252, 245, 0.88);

  box-shadow:
    0 14px 34px rgba(31, 47, 83, 0.06),
    inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.p-cal-monthly-02__hoursRow {
  display: grid;
  grid-template-columns: 1fr;

  border-bottom: 1px solid rgba(194, 143, 75, 0.28);
}

.p-cal-monthly-02__hoursRow:last-child {
  border-bottom: none;
}

.p-cal-monthly-02__hoursLabel,
.p-cal-monthly-02__hoursValue {
  line-height: 1.75;
}

.p-cal-monthly-02__hoursLabel {
  padding: 11px 16px 5px;

  color: #9a6628;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.p-cal-monthly-02__hoursValue {
  padding: 0 16px 13px;

  color: rgba(31, 47, 83, 0.74);
  border-left: none;
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 767px) {
  .p-cal-monthly-02 {
    padding: 38px 0;
  }

  .p-cal-monthly-02 .l-container {
    max-width: none;
  }

  .p-cal-monthly-02__nav {
    margin-top: 18px;
    margin-bottom: 16px;
  }

  .p-cal-monthly-02__prev,
  .p-cal-monthly-02__next {
    width: 28px;
    height: 28px;
    font-size: 14px;
  }

  .p-cal-monthly-02__month {
    font-size: 19px;
  }

  .p-cal-monthly-02__weekday {
    padding: 6px 3px;
    font-size: 10px;
  }

  .p-cal-monthly-02__cell {
    min-height: 42px;
    max-height: 68px;
    padding: 4px 3px 3px;
    overflow: hidden;
  }

  .p-cal-monthly-02__date {
    position: absolute;
    top: 5px;
    left: 5px;

    font-size: 11px;
  }

  .p-cal-monthly-02__body {
    margin-top: 16px;
  }

  .p-cal-monthly-02__label {
    display: block;
    font-size: 9px;
    line-height: 1.25;
  }

  .p-cal-monthly-02__hours {
    width: 100%;
    margin-top: 22px;
  }

  .p-cal-monthly-02__hoursLabel {
    padding: 8px 14px 4px;
    text-align: left;
  }

  .p-cal-monthly-02__hoursValue {
    padding: 0 14px 10px;
    text-align: left;
    border-left: none;
    border-top: none;
  }
}
