/* イベント詳細：基本情報・概要・開催情報・関連ファイル・カレンダー・ページ移動。 */
.program-detail {
  padding: 9rem 3rem 6rem;
}
.program-detail__inner {
  max-width: 120rem;
  margin: 0 auto;
}
.program-detail-hero:is(.program-card-event, .program-card-kids) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .96fr);
  align-items: start;
  column-gap: 6rem;
  margin-bottom: 8rem;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}
.program-detail-hero .program-card-image {
  grid-column: 2;
  grid-row: 1;
}
.program-detail-hero .program-card__body {
  grid-column: 1;
  grid-row: 1;
  padding: 0;
}
.program-detail-hero .program-card-period {
  margin-top: 0;
}
.program-detail-hero .program-card-title {
  font-size: 4.8rem;
}
.program-detail-hero .program-card-subtitle {
  margin-top: 1rem;
}
.program-detail-hero .program-card__details {
  margin-top: 1.8rem;
  padding-top: 1.6rem;
}
.program-detail-hero .program-card-labels {
  margin-top: 1.5rem;
}
@media (max-width: 767.98px) {
  .program-detail {
    padding: 4rem 1.8rem 6rem;
  }
  .program-detail-hero:is(.program-card-event, .program-card-kids) {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  .program-detail-hero .program-card-image {
    grid-column: 1;
    grid-row: 1;
  }
  .program-detail-hero .program-card__body {
    grid-column: 1;
    grid-row: 2;
  }
  .program-detail-hero .program-card__date > span {
    font-size: 1.6rem;
  }
  .program-detail-hero .program-card__date strong {
    font-size: 2.4rem;
  }
  .program-detail-hero .program-card-title {
    font-size: 2.8rem;
  }
  .program-detail-hero .program-card-subtitle {
    margin-top: .6rem;
    font-size: 1.3rem;
  }
  .program-detail-hero .program-card__details {
    margin-top: 1.2rem;
    padding-top: 1rem;
  }
  .program-detail-hero .program-card__details p {
    font-size: 1.5rem;
  }
  .program-detail-hero .program-card-labels {
    margin-top: 1rem;
  }
  .program-detail-hero .program-card-labels li {
    font-size: 1.1rem;
  }
}

/* イベント詳細上部：確定したPC文字サイズ。 */
@media (min-width: 768px) {
  .program-detail-hero .program-card__date > span:first-child {
    font-size: 2.2rem;
  }
  .program-detail-hero .program-card__date strong {
    font-size: 3.1rem;
  }
  .program-detail-hero .program-card__date > span:last-child {
    font-size: 2rem;
  }
  .program-detail-hero .program-card-subtitle,
  .program-detail-hero .program-card__details p {
    font-size: 2.2rem;
  }
  .program-detail-hero .program-card-labels li {
    font-size: 1.5rem;
  }
}

/* イベント概要。登録本文の改行をそのまま表示する。 */
.program-detail-summary {
  margin-bottom: 6rem;
  color: #000;
}
.program-detail-summary h2 {
  margin: 0 0 2rem;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.5;
}
.program-detail-summary p {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.9;
  overflow-wrap: anywhere;
}
@media (max-width: 767.98px) {
  .program-detail-summary {
    margin-bottom: 5rem;
  }
  .program-detail-summary h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
  }
  .program-detail-summary p {
    font-size: 1.5rem;
  }
}

/* 開催情報。表データはTablePressで管理し、狭い画面では表内を横スクロール。 */
.program-detail-information {
  position: relative;
  box-sizing: border-box;
  padding: 6rem 8.5rem;
  background: var(--program-detail-background, #E5F8FE);
  color: #000;
}
.program-detail-information h2 {
  margin: 0 0 1.8rem;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.5;
}
.program-detail-information .program-table {
  width: 100%;
}
/* TablePressの行hoverでも本文セルの配色を維持。 */
.program-detail-information .tablepress {
  --hover-bg-color: #fff;
  --hover-text-color: #000;
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  table-layout: auto;
  background: #fff;
  color: #000;
  font-family: var(--font-zen);
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.8;
}
.program-detail-information .tablepress :is(td, th) {
  box-sizing: border-box;
  padding: 1.2rem 3rem;
  border: 1px solid var(--program-detail-accent, #35B4D4);
  box-shadow: none;
  background: #fff;
  color: #000;
  vertical-align: middle;
  overflow-wrap: anywhere;
}
.program-detail-information .tablepress tr > :first-child {
  width: 1%;
  white-space: nowrap;
  padding: 1.2rem 4.8rem;
  font-family: var(--font-zen);
  font-weight: 500;
  text-align: center;
}
.program-detail-information .tablepress > thead > tr > *,
.program-detail-information .tablepress > tbody:first-child > tr:first-child > * {
  background: var(--program-detail-accent, #35B4D4);
  color: #fff;
  font-family: var(--font-zen);
  font-weight: 700;
  text-align: center;
}
@media (max-width: 767.98px) {
  .program-detail-information {
    margin-inline: -1.8rem;
    padding: 4rem 1.8rem;
  }
  .program-detail-information h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
  }
  .program-detail-information .tablepress {
    min-width: 77rem;
    font-size: 1.5rem;
  }
  .program-detail-information .tablepress :is(td, th) {
    padding: .9rem 1.8rem;
  }
  .program-detail-information .tablepress tr > :first-child {
    padding: .9rem 4.7rem;
  }
}

@media (min-width: 768px) {
  .program-detail-information .tablepress small {
    font-size: 1.6rem;
  }
  .program-detail-information {
    padding-inline: 8.7rem;
  }
}

@media (max-width: 767.98px) {
  .program-detail-information .tablepress small {
    font-size: 1.3rem;
  }
  .program-detail-information .tablepress :is(td, th) {
    height: 5.9rem;
  }
}

@media (min-width: 768px) {
  .program-detail-information .tablepress :is(td, th) {
    height: 6.5rem;
  }
}

/* 表頭の列間だけ白い縦罫線。 */
.program-detail-information .tablepress > thead > tr > * + *,
.program-detail-information .tablepress > tbody:first-child > tr:first-child > * + * {
  border-left-color: #fff;
}

.program-detail-information .tablepress > thead > tr > :not(:last-child),
.program-detail-information .tablepress > tbody:first-child > tr:first-child > :not(:last-child) {
  border-right-color: #fff;
}

/* 関連ファイル。登録ファイルの表示条件・リンク動作は既存のまま。 */
.program-detail-information .program-related-files {
  display: grid;
  gap: 2rem;
  list-style: none;
  margin: 3rem 0 0;
  padding: 0;
}
.program-detail-information .program-related-files a {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  max-width: 100%;
  color: #000;
  font-family: var(--font-zen);
  font-size: 1.8rem;
  font-weight: 500;
  line-height: 1.6;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: opacity 180ms ease;
}
.program-detail-information .program-related-files a::before {
  content: '';
  flex: 0 0 3.3rem;
  width: 3.3rem;
  height: 4.0543rem;
  background: var(--program-detail-accent, #35B4D4);
  mask: url('../images/file-download.svg') center / contain no-repeat;
  -webkit-mask: url('../images/file-download.svg') center / contain no-repeat;
}
.program-detail-information .program-related-files a:focus-visible {
  outline: 2px solid #005BAD;
  outline-offset: 4px;
}
@media (min-width: 768px) {
  .program-detail-information .program-related-files a:hover {
    opacity: .7;
  }
}
@media (max-width: 767.98px) {
  .program-detail-information .program-related-files {
    gap: 1.7rem;
    margin-top: 2.4rem;
  }
  .program-detail-information .program-related-files a {
    gap: 1rem;
    font-size: 1.5rem;
  }
  .program-detail-information .program-related-files a::before {
    flex-basis: 2.8rem;
    width: 2.8rem;
    height: 3.44rem;
  }
}

/* 開催カレンダー。開催データと月移動の処理は既存を維持。 */
.program-detail-calendar {
  margin-top: 9rem;
}
.program-detail-calendar__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  margin-bottom: 2rem;
}
.program-detail-calendar__heading h2 {
  margin: 0;
}
.program-detail-calendar__legend {
  display: grid;
  grid-template-columns: repeat(2, 10rem);
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.program-detail-calendar__legend li {
  padding: .4rem .6rem;
  border-radius: .4rem;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}
.program-detail-calendar__closed {
  background: #005BAD;
}
.program-detail-calendar__temporary {
  background: #00B9EF;
}
.program-detail-calendar__event {
  background: var(--program-detail-accent, #35B4D4);
}
.program-detail-calendar .fc {
  --fc-border-color: #ddd;
  color: #000;
  font-family: var(--font-zen);
  font-size: 1.6rem;
}
.program-detail-calendar .fc .fc-toolbar {
  position: relative;
  margin-bottom: 2rem;
  min-height: 3.6rem;
}
.program-detail-calendar .fc .fc-toolbar-title {
  margin: 0;
  font-size: 2.8rem;
}
.program-detail-calendar .fc .fc-toolbar-chunk:nth-child(2) {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.program-detail-calendar .fc .fc-button {
  padding: .6rem 1.2rem;
  font-size: 1.6rem;
}
/* today・書体・バー文字位置はcommon.cssで管理。 */

.program-detail-calendar .fc .fc-scrollgrid {
  background: #fff;
}
.program-detail-calendar .fc .fc-col-header-cell-cushion {
  padding: .4rem;
  font-size: 1.4rem;
}
.program-detail-calendar .fc .fc-daygrid-day-frame {
  min-height: 12rem;
}
.program-detail-calendar .fc .fc-daygrid-day-number {
  padding: .6rem;
}
.program-detail-calendar .fc .fc-event {
  border-radius: .4rem;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .program-detail-calendar {
    margin-top: 6rem;
  }
  .program-detail-calendar__heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    margin-bottom: 2rem;
  }
  .program-detail-calendar__legend {
    grid-template-columns: repeat(3, auto);
  }
  .program-detail-calendar__legend li {
    min-width: 7rem;
    font-size: 1rem;
  }
  .program-detail-calendar .fc {
    font-size: 1.2rem;
  }
  .program-detail-calendar .fc .fc-toolbar {
    min-height: 2.8rem;
    margin-bottom: 1rem;
  }
  .program-detail-calendar .fc .fc-toolbar-title {
    font-size: 1.8rem;
  }
  .program-detail-calendar .fc .fc-button {
    padding: .3rem .6rem;
    font-size: 1.1rem;
  }
  .program-detail-calendar .fc .fc-col-header-cell-cushion {
    font-size: 1.1rem;
  }
  .program-detail-calendar .fc .fc-daygrid-day-frame {
    min-height: 7rem;
  }
  .program-detail-calendar .fc .fc-event {
    font-size: 1rem;
  }
  .program-detail-calendar .fc .fc-toolbar {
    justify-content: flex-start;
    gap: 1.6rem;
  }
  .program-detail-calendar .fc .fc-toolbar-chunk:nth-child(2) {
    position: static;
    transform: none;
  }
  .program-detail-calendar .fc .fc-button .fc-icon {
    font-size: 1.4rem;
  }
  .program-detail-calendar .fc .fc-daygrid-day-number {
    padding: .4rem .2rem;
  }
}

/* キッズ詳細も寸法・配置は共通。カテゴリー色と地色のみ変更。 */
.program-detail--kids {
  --program-detail-accent: #E8B83F;
  --program-detail-background: #FFFAF0;
}
.program-detail-calendar__kids {
  grid-column: 1 / -1;
  background: #E8B83F;
}
