@charset "UTF-8";

/* JIAマンス：支給デザインの余白と縦長構成を基準にした専用レイアウト */
.page-month {
  color: #111;
  background: #fff;
}

.month-main {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 40px 180px;
}

.month-hero {
  display: grid;
  place-items: center;
  min-height: 430px;
  padding: 80px 20px;
}

.month-hero h1 {
  margin: 0;
}

.month-hero img {
  display: block;
  width: 340px;
  height: auto;
}

.month-overview {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(318px, 1fr);
  justify-content: start;
  align-items: start;
  gap: clamp(64px, 7vw, 90px);
  width: min(100%, 1000px);
  margin: 50px auto 110px;
}

.month-overview-copy {
  padding-top: 14px;
}

.month-overview-copy h2 {
  margin: 0 0 42px;
  font-size: clamp(23px, 1.8vw, 27px);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.month-overview-copy p {
  margin: 0;
  font-size: clamp(17px, 1.3vw, 19px);
  font-weight: 500;
  line-height: 1.9;
}

.month-overview-copy .month-calendar-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  font-size: clamp(15px, 1.15vw, 17px);
}

.month-calendar-note span {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  border-radius: 50%;
  background: #fff200;
}

.month-calendar {
  justify-self: end;
  margin: 0;
}

.month-calendar img {
  display: block;
  width: 318px;
  height: auto;
}

.month-programs {
  display: grid;
  gap: 82px;
  width: min(100%, 1000px);
  margin-inline: auto;
}

.month-program {
  display: grid;
  grid-template-columns: minmax(340px, 430px) minmax(340px, 1fr);
  align-items: start;
  gap: clamp(50px, 6vw, 76px);
}

.month-program--single {
  grid-template-columns: minmax(340px, 430px);
}

.month-program-stack {
  display: grid;
  gap: 82px;
}

.month-event-card {
  width: 100%;
  color: #111;
}

.month-event-label {
  margin: 0 0 8px;
  color: #ed1c24;
  font-size: clamp(16px, 1.25vw, 18px);
  font-weight: 700;
  line-height: 1.35;
}

.month-event-card--blue .month-event-label {
  color: #0088c8;
}

.month-event-card--green .month-event-label {
  color: #149447;
}

.month-event-card--orange .month-event-label {
  color: #f05a28;
}

.month-event-card--purple .month-event-label {
  color: #8e3f97;
}

.month-event-card h3 {
  display: grid;
  place-items: center;
  min-height: 72px;
  margin: 0;
  padding: 11px 15px;
  color: #fff;
  background: #050505;
  font-size: clamp(15px, 1.1vw, 17px);
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  box-sizing: border-box;
}

.month-session-number {
  display: block;
  margin-top: 2px;
  font-size: 0.9em;
  font-weight: 400;
}

.month-event-detail {
  margin: 14px 0 0;
  padding: 18px 20px 20px;
  border: 2px solid #111;
  font-size: clamp(16px, 1.2vw, 17px);
  line-height: 1.65;
}

.month-event-detail div {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0;
}

.month-event-detail div + div {
  margin-top: 3px;
}

.month-event-detail dt,
.month-event-detail dd {
  margin: 0;
  min-width: 0;
}

.month-event-detail dt::after {
  content: "：";
}

.month-event-detail .month-event-note {
  display: block;
  margin-top: 12px;
  font-size: 0.86em;
  text-align: center;
}

.month-event-note dt {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.month-event-detail .month-event-note dt::after {
  content: none;
}

.month-poster {
  justify-self: end;
  width: min(100%, 450px);
  margin: 32px 0 0;
}

.month-poster a {
  display: block;
  cursor: zoom-in;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.month-poster a:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

.month-poster img {
  display: block;
  width: 450px;
  max-width: 100%;
  height: auto;
  margin-left: auto;
}

html.month-lightbox-open {
  overflow: hidden;
}

.month-lightbox {
  width: min(94vw, 1180px);
  height: min(92dvh, 1000px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.month-lightbox::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(3px);
}

.month-lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 54px 20px 18px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.month-lightbox__viewer {
  display: grid;
  flex: 1;
  place-items: center;
  min-height: 0;
  background: #eee;
  overflow: auto;
}

.month-lightbox__viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #fff;
}

.month-lightbox__viewer img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.month-lightbox__close {
  position: absolute;
  top: 8px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  color: #111;
  background: transparent;
  font: 400 36px/1 Arial, sans-serif;
  cursor: pointer;
}

.month-lightbox__close:hover,
.month-lightbox__close:focus-visible {
  color: #e60012;
}

.month-lightbox__external {
  align-self: center;
  margin-top: 12px;
  color: #111;
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-month .site-footer {
  margin-top: 0;
}

@media (max-width: 938px) {
  .month-main {
    padding-inline: 28px;
  }

  .month-hero {
    min-height: 330px;
    padding-block: 60px;
  }
}

@media (max-width: 820px) {
  .month-main {
    padding: 0 22px 110px;
  }

  .month-hero {
    min-height: 270px;
    padding: 46px 20px 62px;
  }

  .month-hero img {
    width: 290px;
  }

  .month-overview {
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
    width: 100%;
    max-width: 460px;
    margin: 20px auto 92px;
  }

  .month-overview-copy {
    padding-top: 0;
  }

  .month-overview-copy h2 {
    margin-bottom: 30px;
    font-size: 23px;
  }

  .month-overview-copy p {
    font-size: 17px;
  }

  .month-calendar {
    display: flex;
    justify-content: flex-end;
    justify-self: stretch;
    width: 100%;
    min-width: 0;
  }

  .month-calendar img {
    width: 318px;
    max-width: 100%;
    margin-left: auto;
    margin-right: 0;
  }

  .month-programs {
    gap: 68px;
    width: 100%;
    max-width: 460px;
  }

  .month-program,
  .month-program--single {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    width: 100%;
    min-width: 0;
  }

  .month-program-stack {
    gap: 68px;
  }

  .month-event-card,
  .month-poster {
    width: 100%;
    min-width: 0;
  }

  .month-poster {
    margin-top: 0;
  }
}

@media (max-width: 480px) {
  .month-main {
    padding-inline: 16px;
    padding-bottom: 88px;
  }

  .month-hero {
    min-height: 220px;
    padding: 38px 16px 48px;
  }

  .month-hero img {
    width: 250px;
  }

  .month-overview {
    margin-top: 8px;
    margin-bottom: 72px;
  }

  .month-overview-copy h2 {
    font-size: 21px;
  }

  .month-overview-copy p {
    font-size: 16px;
    line-height: 1.85;
  }

  .month-event-label {
    font-size: 15px;
  }

  .month-event-card h3 {
    min-height: 64px;
    padding: 10px 12px;
    font-size: 14px;
  }

  .month-event-detail {
    margin-top: 10px;
    padding: 15px 14px 17px;
    font-size: 15px;
    line-height: 1.65;
  }

  .month-lightbox {
    width: 100vw;
    height: 100dvh;
  }

  .month-lightbox__panel {
    padding: 52px 10px 12px;
  }

  .month-lightbox__external {
    margin-top: 10px;
    font-size: 13px;
  }
}
