/* =========================================================
   Page: Calendar
========================================================= */

.p-washoku-calendar {
  padding: clamp(54px, 7vw, 96px) 0;
}

.p-washoku-calendar__header {
  max-width: 960px;
  margin-bottom: 36px;
}

.p-washoku-calendar__label {
  color: var(--color-accent);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.p-washoku-calendar__title {
  margin-top: 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.35;
  letter-spacing: .05em;
}

.p-washoku-calendar__lead {
  margin-top: 18px;
  color: var(--color-sub);
  font-size: 1rem;
  line-height: 1.95;
}

.p-washoku-calendar__nav {
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.p-washoku-calendar__month {
  text-align: center;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.p-washoku-calendar__prev,
.p-washoku-calendar__next {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid var(--color-line);
  background: #fff;
  color: inherit;
  text-decoration: none;
  font-size: 1.5rem;
}

.p-washoku-calendar__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-top: 1px solid var(--color-line);
  border-left: 1px solid var(--color-line);
}

.p-washoku-calendar__weekday {
  padding: 10px 6px;
  border-right: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  background: #f4efe7;
  text-align: center;
  font-size: .78rem;
  font-weight: 800;
}

.p-washoku-calendar__weekday.is-sun {
  color: #b84238;
}

.p-washoku-calendar__weekday.is-sat {
  color: #2f5fb3;
}

.p-washoku-calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-left: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
}

.p-washoku-calendar__cell {
  min-height: 96px;
  padding: 10px;
  border-right: 1px solid var(--color-line);
  background: #fff;
}

.p-washoku-calendar__date {
  font-size: .92rem;
  font-weight: 800;
}

.p-washoku-calendar__body {
  margin-top: 10px;
}

.p-washoku-calendar__labelText {
  display: inline-block;
  padding: 4px 7px;
  border-radius: 2px;
  background: #f4efe7;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.45;
}

.p-washoku-calendar__cell.is-outside {
  background: #faf8f3;
}

.p-washoku-calendar__cell.is-outside .p-washoku-calendar__date {
  opacity: .35;
}

.p-washoku-calendar__cell.is-holiday {
  background: #fff1ef;
}

.p-washoku-calendar__cell.is-holiday .p-washoku-calendar__date {
  color: #b84238;
}

.p-washoku-calendar__cell.is-special .p-washoku-calendar__labelText {
  background: #2f5fb3;
  color: #fff;
}

.p-washoku-calendar__cell.is-private .p-washoku-calendar__labelText {
  background: #5b4636;
  color: #fff;
}

.p-washoku-calendar__cell.is-event .p-washoku-calendar__labelText {
  background: #6d7f50;
  color: #fff;
}

.p-washoku-calendar__cell.is-fair .p-washoku-calendar__labelText {
  background: #bf9949;
  color: #fff;
}

.p-washoku-calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 18px;
  color: var(--color-sub);
  font-size: .84rem;
}

.p-washoku-calendar__legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.p-washoku-calendar__legend i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 2px;
  background: #f4efe7;
}

.p-washoku-calendar__legend i.is-holiday {
  background: #fff1ef;
  border: 1px solid #b84238;
}

.p-washoku-calendar__legend i.is-special {
  background: #2f5fb3;
}

.p-washoku-calendar__legend i.is-private {
  background: #5b4636;
}

.p-washoku-calendar__legend i.is-event {
  background: #6d7f50;
}

.p-washoku-calendar__legend i.is-fair {
  background: #bf9949;
}

.p-washoku-calendar__hours {
  margin-top: 32px;
  border-top: 1px solid var(--color-line);
  background: #fff;
}

.p-washoku-calendar__hoursRow {
  display: grid;
  grid-template-columns: 220px 1fr;
  border-bottom: 1px solid var(--color-line);
}

.p-washoku-calendar__hoursLabel,
.p-washoku-calendar__hoursValue {
  padding: 17px 20px;
}

.p-washoku-calendar__hoursLabel {
  font-weight: 800;
}

.p-washoku-calendar__hoursValue {
  border-left: 1px solid var(--color-line);
  color: var(--color-sub);
  line-height: 1.8;
}

.p-washoku-calendar__topics {
  margin-top: 42px;
}

.p-washoku-calendar__topicsHead {
  margin-bottom: 18px;
}

.p-washoku-calendar__topicsHead p {
  color: var(--color-accent);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.p-washoku-calendar__topicsHead h2 {
  margin-top: 6px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  letter-spacing: .05em;
}

.p-washoku-calendar__topicList {
  border: 1px solid var(--color-line);
  background: #fff;
}

.p-washoku-calendar__topicItem {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 24px;
  padding: 22px 24px;
  border-top: 1px solid var(--color-line);
}

.p-washoku-calendar__topicItem:first-child {
  border-top: 0;
}

.p-washoku-calendar__topicDate {
  color: var(--color-accent);
  font-size: .94rem;
  font-weight: 800;
  letter-spacing: .04em;
}

.p-washoku-calendar__topicMeta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  color: #fff;
  font-size: .76rem;
  font-weight: 800;
}

.p-washoku-calendar__topicItem--private .p-washoku-calendar__topicMeta span {
  background: #5b4636;
}

.p-washoku-calendar__topicItem--event .p-washoku-calendar__topicMeta span {
  background: #6d7f50;
}

.p-washoku-calendar__topicItem--fair .p-washoku-calendar__topicMeta span {
  background: #bf9949;
}

.p-washoku-calendar__topicItem--special .p-washoku-calendar__topicMeta span {
  background: #2f5fb3;
}

.p-washoku-calendar__topicTitle {
  margin-top: 10px;
  font-size: 1.08rem;
  line-height: 1.55;
  letter-spacing: .04em;
}

.p-washoku-calendar__topicText {
  margin-top: 8px;
  color: var(--color-sub);
  font-size: .92rem;
  line-height: 1.8;
}

.p-washoku-calendar__note {
  margin-top: 42px;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid var(--color-line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.88), rgba(255,255,255,.62)),
    #f4efe7;
}

.p-washoku-calendar__note h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  letter-spacing: .05em;
}

.p-washoku-calendar__note p {
  margin-top: 14px;
  color: var(--color-sub);
  line-height: 1.95;
}

@media (max-width: 900px) {
  .p-washoku-calendar__cell {
    min-height: 58px;
    padding: 6px 4px;
  }

  .p-washoku-calendar__date {
    font-size: .82rem;
  }

  .p-washoku-calendar__labelText {
    padding: 3px 4px;
    font-size: .62rem;
  }

  .p-washoku-calendar__hoursRow {
    grid-template-columns: 1fr;
  }

  .p-washoku-calendar__hoursValue {
    border-left: 0;
    border-top: 1px solid var(--color-line);
  }

  .p-washoku-calendar__topicItem {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 20px;
  }
}
