/* =========================================================
   HQ Background: Style
   key: dbar-monthly-basic-02
   name: D-Bar｜営業カレンダー
   group: Monthly
   type: Style
   layer: monthly
   value:
   selector:
   ========================================================= */

/* =========================================================
   Section
   ========================================================= */
.p-cal-monthly-02 {
  position: relative;
  overflow: hidden;
  padding: 56px 0;
}

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

/* =========================================================
   Heading
   ========================================================= */
#cal-monthly-02 .c-heading-plain {
  color: #ffffff;
}

/* =========================================================
   Nav
   ========================================================= */
.p-cal-monthly-02__nav {
  position: relative;
  margin-top: 28px;
  margin-bottom: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

  width: 32px;
  height: 32px;
  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.78);

  display: grid;
  place-items: center;

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

  box-shadow:
    0 0 10px rgba(255, 255, 255, 0.06),
    0 0 18px rgba(200, 60, 60, 0.10);
}

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

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

.p-cal-monthly-02__month {
  color: rgba(255, 255, 255, 0.84);
  font-family: "Smythe", "Noto Sans JP", sans-serif;
  font-size: 32px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
}

/* =========================================================
   Calendar Glass Board
   ========================================================= */
.p-cal-monthly-02__weekdays,
.p-cal-monthly-02__grid {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 22px rgba(255, 255, 255, 0.06),
    0 0 42px rgba(200, 60, 60, 0.08);
}

/* =========================================================
   Weekdays
   ========================================================= */
.p-cal-monthly-02__weekdays {
  border-top-color: rgba(255, 255, 255, 0.16);
  border-left-color: rgba(255, 255, 255, 0.16);
}

.p-cal-monthly-02__weekday {
  padding: 8px 6px;
  border-right-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.035);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.10);
}

.p-cal-monthly-02__weekday.is-sun {
  color: rgba(220, 70, 70, 0.82);
}

.p-cal-monthly-02__weekday.is-sat {
  color: rgba(255, 255, 255, 0.68);
}

/* =========================================================
   Grid
   ========================================================= */
.p-cal-monthly-02__grid {
  border-left-color: rgba(255, 255, 255, 0.14);
  border-bottom-color: rgba(255, 255, 255, 0.14);
}

.p-cal-monthly-02__cell {
  min-height: 72px;
  padding: 8px 8px 6px;
  border-right-color: rgba(255, 255, 255, 0.13);
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.028);
}

.p-cal-monthly-02__date {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.10);
}

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

/* =========================================================
   Outside Month
   ========================================================= */
.p-cal-monthly-02__cell.is-outside {
  background: rgba(255, 255, 255, 0.012);
}

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

/* =========================================================
   Holiday / Closed
   ========================================================= */
.p-cal-monthly-02__cell.is-holiday {
  background: rgba(200, 60, 60, 0.12);
}

.p-cal-monthly-02__cell.is-holiday .p-cal-monthly-02__date {
  color: rgba(230, 80, 80, 0.92);
}

/* =========================================================
   Labels
   ========================================================= */
.p-cal-monthly-02__label {
  display: block;
  width: fit-content;
  max-width: 100%;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.p-cal-monthly-02__cell.is-special-open .p-cal-monthly-02__label {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 0 8px rgba(255, 255, 255, 0.12);
}

.p-cal-monthly-02__cell.is-temporary-closed .p-cal-monthly-02__label {
  color: rgba(230, 80, 80, 0.9);
  text-shadow:
    0 0 8px rgba(230, 80, 80, 0.22),
    0 0 18px rgba(160, 30, 30, 0.14);
}

/* =========================================================
   Legend
   ========================================================= */
.p-cal-monthly-02__legend {
  margin-top: 18px;
  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: 14px;
  height: 14px;
  flex: 0 0 14px;
  background: rgba(200, 60, 60, 0.78);
  box-shadow:
    0 0 8px rgba(200, 60, 60, 0.28),
    0 0 18px rgba(160, 30, 30, 0.16);
}

.p-cal-monthly-02__legendText {
  color: rgba(255, 255, 255, 0.72);
}

/* =========================================================
   Hours
   ========================================================= */
.p-cal-monthly-02__hours {
  width: 70%;
  margin: 32px auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.025);
  box-shadow:
    0 0 22px rgba(255, 255, 255, 0.05),
    0 0 36px rgba(200, 60, 60, 0.07);
}

.p-cal-monthly-02__hoursRow {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

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

.p-cal-monthly-02__hoursLabel,
.p-cal-monthly-02__hoursValue {
  padding: 14px 18px;
  line-height: 1.8;
}

.p-cal-monthly-02__hoursLabel {
  color: rgba(212, 175, 55, 0.85);
  text-shadow: 0 0 8px rgba(212, 175, 55, 0.18);
}

.p-cal-monthly-02__hoursValue {
  color: rgba(255, 255, 255, 0.74);
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 767px) {
  .p-cal-monthly-02 {
    padding: 44px 0;
  }

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

  .p-cal-monthly-02__cell {
    min-height: 44px;
    max-height: 76px;
    padding: 3px 3px 3px;
    overflow: hidden;
  }

  .p-cal-monthly-02__date {
    position: absolute;
    top: 4px;
    left: 6px;
    font-size: 11px;
  }

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

  .p-cal-monthly-02__label {
    position: absolute;
    display: block;
    margin-top: 12px;
    font-size: 9px;
  }

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

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

  .p-cal-monthly-02__hoursValue {
    padding: 10px 14px;
    text-align: center;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }
}
