/* 上映スケジュール確認版：既存表へ影響させない専用スタイル */
.screening-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 28px;
}
.screening-card {
  min-width: 0;
  background: #fff;
  padding: 40px 50px;
  border-radius: 24px;
}
.screening-card h3 {
  border-left: 3px solid var(--red);
  padding-left: 12px;
  font-size: 20px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.screening-wide {
  grid-column: 1 / -1;
  padding: 60px 80px;
}
.screening-scroll-hint {
  display: block;
  font-size: 12px;
  color: #555;
  margin-bottom: 8px;
}
.screening-table-scroll {
  overflow-x: auto;
}
.screening-table-scroll table {
  width: 100%;
  min-width: 600px;
  table-layout: fixed;
  font-size: 16px;
  line-height: 1.7;
}
.screening-table-scroll .screening-date {
  width: 112px;
}
.screening-table-scroll .screening-time {
  width: 88px;
}
.screening-table-scroll .screening-duration {
  width: 88px;
}
.screening-table-scroll th,
.screening-table-scroll td {
  padding: 12px 6px;
  border: 1px solid #d4d4d4;
  vertical-align: middle;
  text-align: left;
  overflow-wrap: anywhere;
}
.screening-table-scroll thead th {
  width: auto;
  background: #383838;
  color: #fff;
  font-size: inherit;
  font-weight: 700;
  text-align: center;
}
/* Cell roles remain stable when date cells span multiple rows. */
.screening-date-cell,
.screening-time-cell {
  white-space: nowrap;
}
.screening-table-scroll .screening-time-cell,
.screening-table-scroll .screening-minutes {
  text-align: center;
}
.screening-table-scroll .screening-work {
  font-weight: 700;
}
.screening-table-scroll .screening-day-start td {
  border-top: 2px solid #888;
}
.screening-date-cell {
  font-weight: 700;
}
.screening-wide .screening-date {
  width: 112px;
}
.screening-wide .screening-time {
  width: 100px;
}
.screening-wide .screening-duration {
  width: 100px;
}
@media (max-width: 1100px) {
  .screening-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 900px) {
  .screening-section h2 {
    flex-wrap: wrap;
    gap: 4px 12px;
  }
  .screening-card {
    padding: 22px 14px;
    border-radius: 18px;
  }
  .screening-card h3 {
    font-size: 18px;
  }
  .screening-scroll-hint {
    display: block;
  }
  .screening-table-scroll table {
    min-width: 540px;
    font-size: 14px;
  }
  .screening-table-scroll th, .screening-table-scroll td {
    padding: 12px 8px;
  }
  .screening-wide .screening-date {
    width: 112px;
  }
  .screening-wide .screening-time {
    width: 88px;
  }
  .screening-wide .screening-duration {
    width: 88px;
  }
}

/* 日程・上映スケジュールの表装のみを共通化。列構成と文字指定は独立。 */
#schedule th,
#schedule td,
.screening-table-scroll th,
.screening-table-scroll td {
  border: 1px solid #d4d4d4;
  padding: 12px 6px;
  border-radius: 0;
  vertical-align: middle;
}
#schedule thead th,
.screening-table-scroll thead th {
  background: #383838;
  color: #fff;
  text-align: center;
  border-left-color: #fff;
  border-right-color: #fff;
}
@media (max-width: 900px) {
  #schedule th,
  #schedule td,
  .screening-table-scroll th,
  .screening-table-scroll td {
    padding: 12px 8px;
  }
}

/* 上段2表のみ4列化。下段・日程表の指定は維持する。 */
.screening-fourcol table {
  min-width: 0;
  font-size: 15px;
}
.screening-fourcol .screening-date { width: 25%; }
.screening-fourcol .screening-period { width: 30%; }
.screening-fourcol .screening-duration { width: 17%; }
.screening-fourcol .screening-period-cell {
  text-align: center;
  overflow-wrap: normal;
}
.screening-fourcol .screening-work {
  overflow-wrap: normal;
  word-break: normal;
}
.screening-fourcol .screening-scroll-hint { display: none; }
@media (max-width: 900px) {
  .screening-fourcol table {
    min-width: 540px;
    font-size: 14px;
  }
  .screening-fourcol .screening-scroll-hint { display: block; }
}

.screening-fourcol .screening-period-cell span {
  white-space: nowrap;
}

/* 下段も時間帯1列へ統合。既存の16px/14px・余白は維持。 */
.screening-wide .screening-period {
  width: 150px;
}
.screening-wide .screening-period-cell {
  text-align: center;
}
.screening-wide .screening-period-cell span {
  white-space: nowrap;
}
