/* =========================================================
   Top Calendar News
   key: top-calendar-news
   name: カレンダーとお知らせ
   group: partial
   type: layout
   layer: top
========================================================= */

.p-top-calendar-news {
  position: relative;
  padding: 82px 0;
  background: var(--ciel-white);
  color: var(--ciel-ink);
}

.p-top-calendar-news__inner {
  width: min(var(--ciel-container), calc(100% - 48px));
  margin-inline: auto;
}

.p-top-calendar-news__header {
  max-width: 760px;
  margin-bottom: 42px;
}

.p-top-calendar-news__eyebrow {
  margin: 0 0 10px;
  color: var(--ciel-blue-deep);
  font-size: .72rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.p-top-calendar-news__title {
  margin: 0;
  color: var(--ciel-ink);
  font-size: clamp(1.65rem, 2.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: .08em;
}

.p-top-calendar-news__title::after {
  content: "";
  display: block;
  width: 54px;
  height: 2px;
  margin-top: 18px;
  background: var(--ciel-blue);
}

.p-top-calendar-news__lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--ciel-muted);
  font-size: .95rem;
  line-height: 2;
}

.p-top-calendar-news__layout {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  gap: clamp(36px, 5.8vw, 76px);
  align-items: start;
}

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

.p-top-calendar-news__calendar {
  min-width: 0;
}

.p-top-calendar-news__calendarCard {
  position: relative;
  box-sizing: border-box;
  padding: 30px 26px 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.78), rgba(255,255,255,.92)),
    #fffdf8;
  border: 1px solid rgba(138, 99, 56, .24);
  box-shadow:
    0 18px 52px rgba(38, 52, 58, .10),
    inset 0 1px 0 rgba(255,255,255,.9);
}

.p-top-calendar-news__calendarBar {
  position: absolute;
  left: 22px;
  right: 22px;
  top: -10px;
  height: 18px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, #8a6338, #b18956 46%, #7a5630);
  box-shadow: 0 8px 18px rgba(38, 52, 58, .16);
}

.p-top-calendar-news__calendarNav {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  margin-bottom: 16px;
}

.p-top-calendar-news__calendarPrev,
.p-top-calendar-news__calendarNext {
  position: absolute;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ciel-line-blue);
  background: rgba(255,255,255,.68);
  color: var(--ciel-blue-deep);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transform: translateY(-50%);
  transition:
    background-color .22s ease,
    border-color .22s ease,
    transform .22s ease;
}

.p-top-calendar-news__calendarPrev {
  left: 0;
}

.p-top-calendar-news__calendarNext {
  right: 0;
}

.p-top-calendar-news__calendarPrev:hover,
.p-top-calendar-news__calendarNext:hover {
  border-color: var(--ciel-blue);
  background: rgba(184, 220, 232, .22);
  text-decoration: none;
  transform: translateY(-50%) translateY(-1px);
}

.p-top-calendar-news__calendarMonth {
  color: var(--ciel-ink);
  font-size: .92rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: .14em;
}

.p-top-calendar-news__weekdays,
.p-top-calendar-news__calendarGrid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  width: 100%;
  box-sizing: border-box;
}

.p-top-calendar-news__weekdays {
  border-top: 1px solid rgba(138, 99, 56, .24);
  border-left: 1px solid rgba(138, 99, 56, .24);
}

.p-top-calendar-news__weekday {
  padding: 8px 4px;
  border-right: 1px solid rgba(138, 99, 56, .24);
  border-bottom: 1px solid rgba(138, 99, 56, .24);
  background: rgba(138, 99, 56, .05);
  color: rgba(38, 52, 58, .68);
  text-align: center;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.p-top-calendar-news__weekday.is-sun {
  color: #a64646;
}

.p-top-calendar-news__weekday.is-sat {
  color: var(--ciel-blue-deep);
}

.p-top-calendar-news__calendarGrid {
  border-left: 1px solid rgba(138, 99, 56, .24);
  border-bottom: 1px solid rgba(138, 99, 56, .24);
}

.p-top-calendar-news__calendarCell {
  position: relative;
  min-height: 46px;
  padding: 7px;
  border-right: 1px solid rgba(138, 99, 56, .24);
  background: rgba(255,255,255,.56);
}

.p-top-calendar-news__calendarDate {
  position: relative;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: rgba(38, 52, 58, .82);
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
}

.p-top-calendar-news__calendarCell.is-outside {
  background: rgba(38, 52, 58, .035);
}

.p-top-calendar-news__calendarCell.is-outside .p-top-calendar-news__calendarDate {
  opacity: .28;
}

/* 休業日：赤 */
.p-top-calendar-news__calendarCell.is-holiday {
  background: rgba(176, 42, 42, .13);
}

.p-top-calendar-news__calendarCell.is-holiday .p-top-calendar-news__calendarDate {
  color: #a64646;
}

/* フェア：金 */
.p-top-calendar-news__calendarCell.is-event {
  background: rgba(194, 143, 75, .22);
}

/* 貸切・混雑：青 */
.p-top-calendar-news__calendarCell.is-busy,
.p-top-calendar-news__calendarCell.is-private {
  background: rgba(11, 95, 130, .14);
}

.p-top-calendar-news__calendarCell.is-private {
  box-shadow: inset 0 0 0 1px rgba(11, 95, 130, .30);
}

/* 今日：丸なし、内枠だけ */
.p-top-calendar-news__calendarCell.is-today {
  box-shadow: inset 0 0 0 2px var(--ciel-blue);
}

.p-top-calendar-news__calendarCell.is-today .p-top-calendar-news__calendarDate {
  color: var(--ciel-ink);
}

.p-top-calendar-news__calendarCell.is-today.is-holiday .p-top-calendar-news__calendarDate {
  color: #a64646;
}

.p-top-calendar-news__calendarCell.is-outside.is-today {
  box-shadow: none;
}

.p-top-calendar-news__calendarCell.is-outside.is-today .p-top-calendar-news__calendarDate {
  color: rgba(38, 52, 58, .82);
  opacity: .28;
}

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

.p-top-calendar-news__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.p-top-calendar-news__legend li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ciel-muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .04em;
}

.p-top-calendar-news__legendMark {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid transparent;
}

.p-top-calendar-news__legendMark.is-today {
  border-color: var(--ciel-blue);
  background: rgba(184, 220, 232, .18);
}

.p-top-calendar-news__legendMark.is-holiday {
  border-color: rgba(176, 42, 42, .34);
  background: rgba(176, 42, 42, .13);
}

.p-top-calendar-news__legendMark.is-event {
  border-color: rgba(194, 143, 75, .38);
  background: rgba(194, 143, 75, .26);
}

.p-top-calendar-news__legendMark.is-busy {
  border-color: rgba(11, 95, 130, .34);
  background: rgba(11, 95, 130, .14);
}

/* =========================================================
   News
========================================================= */

.p-top-calendar-news__news {
  min-width: 0;
  padding: 32px 34px;
  border: 1px solid var(--ciel-line);
  background:
    linear-gradient(135deg, rgba(184, 220, 232, .10), transparent 42%),
    rgba(255,255,255,.72);
}

.p-top-calendar-news__newsTitle {
  position: relative;
  margin: 0 0 24px;
  padding-bottom: 16px;
  color: var(--ciel-ink);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .08em;
}

.p-top-calendar-news__newsTitle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 1px;
  background: var(--ciel-blue);
}

.p-top-calendar-news__topics {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.p-top-calendar-news__topicItem {
  position: relative;
  min-width: 0;
  padding-left: 16px;
}

.p-top-calendar-news__topicItem::before {
  content: "";
  position: absolute;
  left: 0;
  top: .72em;
  width: 5px;
  height: 5px;
  background: var(--ciel-blue);
  border-radius: 999px;
}

.p-top-calendar-news__topicItem.is-event::before {
  background: #c28f4b;
}

.p-top-calendar-news__topicItem.is-busy::before,
.p-top-calendar-news__topicItem.is-private::before {
  background: #0b5f82;
}

.p-top-calendar-news__topicMeta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 8px;
  color: var(--ciel-muted);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: .04em;
}

.p-top-calendar-news__topicDate,
.p-top-calendar-news__topicTime {
  display: inline-block;
}

.p-top-calendar-news__topicTitle {
  margin: 0 0 8px;
  color: var(--ciel-ink);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.75;
  letter-spacing: .05em;
}

.p-top-calendar-news__topicBody {
  color: var(--ciel-muted);
  font-size: .9rem;
  line-height: 1.9;
  letter-spacing: .04em;
}

.p-top-calendar-news__topicBody p {
  margin: 0;
}

.p-top-calendar-news__topicBody p + p {
  margin-top: .65em;
}

.p-top-calendar-news__empty {
  margin: 0;
  color: var(--ciel-muted);
  font-size: .92rem;
  line-height: 1.9;
}

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

@media screen and (max-width: 960px) {
  .p-top-calendar-news {
    padding: 68px 0;
  }

  .p-top-calendar-news__layout {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .p-top-calendar-news__calendar {
    width: min(620px, 100%);
    margin-inline: auto;
  }
}

@media screen and (max-width: 768px) {
  .p-top-calendar-news {
    padding: 56px 0;
  }

  .p-top-calendar-news__inner {
    width: min(100% - 28px, var(--ciel-container));
  }

  .p-top-calendar-news__header {
    margin-bottom: 34px;
  }

  .p-top-calendar-news__lead {
    margin-top: 22px;
    line-height: 1.9;
  }

  .p-top-calendar-news__calendarCard {
    padding: 28px 16px 20px;
  }

  .p-top-calendar-news__calendarBar {
    left: 16px;
    right: 16px;
  }

  .p-top-calendar-news__calendarNav {
    min-height: 36px;
    margin-bottom: 12px;
  }

  .p-top-calendar-news__calendarPrev,
  .p-top-calendar-news__calendarNext {
    width: 32px;
    height: 32px;
  }

  .p-top-calendar-news__calendarMonth {
    font-size: .86rem;
  }

  .p-top-calendar-news__calendarCell {
    min-height: 38px;
    padding: 5px 4px;
  }

  .p-top-calendar-news__calendarDate {
    width: 22px;
    height: 22px;
    font-size: 12px;
  }

  .p-top-calendar-news__news {
    padding: 28px 22px;
  }
}

@media screen and (max-width: 560px) {
  .p-top-calendar-news__title {
    font-size: clamp(1.45rem, 7vw, 2rem);
  }

  .p-top-calendar-news__lead,
  .p-top-calendar-news__topicBody,
  .p-top-calendar-news__empty {
    font-size: .9rem;
  }

  .p-top-calendar-news__calendarCell {
    min-height: 34px;
  }

  .p-top-calendar-news__weekday {
    padding: 7px 2px;
    font-size: 10px;
  }

  .p-top-calendar-news__legend {
    gap: 8px 12px;
  }
}
