/* Event Manager: lightbox only. Existing main.css is not modified. */
.eventLightbox {
  color: #252525;
  font-family: "Noto Sans JP", sans-serif;
  text-align: left;
}
.eventLightbox .eventLightbox__title {
  margin: 0 0 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid #ddd;
  color: #222;
  font-family: "Noto Serif JP", serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  overflow-wrap: anywhere;
}
.eventLightbox__image {
  width: 100%;
  margin: 0 auto 20px auto;
  text-align: center;
}

.eventLightbox__image img {
  display: block;
  width: 100%;
  height: auto;
}
.eventLightbox .eventLightbox__body {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.eventLightbox .eventLightbox__body p {
  margin: 0 0 1em;
}
.eventLightbox .eventLightbox__body div {
  max-width: 100%;
  color: #333;
  line-height: 1.8;
}
.eventLightbox .eventLightbox__body ul,
.eventLightbox .eventLightbox__body ol {
  padding-left: 1.8em;
  margin: 0 0 1em;
}
.eventLightbox .eventLightbox__body ul {
  list-style: disc;
}
.eventLightbox .eventLightbox__body ol {
  list-style: decimal;
}
.eventLightbox .eventLightbox__body a {
  color: #176ca8;
  text-decoration: underline;
}
.eventLightbox .eventLightbox__body img {
  max-width: 100%;
  height: auto;
}

.eventLightbox .eventLightbox__body font {
  display: inline-block;
}
.eventLightbox__body font[color] > b,
.eventLightbox__body font[color] > strong,
.eventLightbox__body font[color] > i,
.eventLightbox__body font[color] > em,
.eventLightbox__body font[color] > u {
  color: inherit;
}

/* リッチエディタで設定した文字色を子要素にも反映 */
.eventLightbox__body font[color] *,
.eventLightbox__body span[style*="color"] * {
  color: inherit;
}

.eventLightbox__body font[style*="color"] * {
  color: inherit;
}

/* Event lightbox responsive adjustments (PC / tablet / mobile) */
.featherlight .featherlight-content:has(.eventLightbox) {
  box-sizing: border-box;
  max-width: 900px;
  width: calc(100% - 32px);
}

.eventLightbox {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.eventLightbox .eventLightbox__body {
  overflow-wrap: anywhere;
  word-break: normal;
}

.eventLightbox .eventLightbox__body table {
  max-width: 100%;
}

@media (max-width: 900px) {
  .featherlight .featherlight-content:has(.eventLightbox) {
    width: calc(100% - 24px);
    padding: 26px 24px;
  }
  .eventLightbox .eventLightbox__title {
    font-size: 26px;
  }
}

/* ============================================================
   料金表：PC（901px以上）
   数値・プロパティはこのブロック内で独立して調整
   ============================================================ */
@media (min-width: 901px) {
  .eventLightbox .eventLightbox__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 20px 0 8px;
  }

  .eventLightbox .eventLightbox__table thead tr,
  .eventLightbox .eventLightbox__table tbody tr {
    display: table-row;
  }


  .eventLightbox .eventLightbox__table th,
  .eventLightbox .eventLightbox__table td {
    display: table-cell;
    padding: 12px 6px;
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
    color: #333;
  }

  .eventLightbox .eventLightbox__table tbody th {
    width: 25%;
    font-weight: 700;
    background: #f2f2f2;
  }

  .eventLightbox .eventLightbox__table thead th {
    width: auto;
    background: #f5f5f5;
  }

  /* 共通CSSのth固定幅を上書きし、colspan=3を正しく計算 */
  .eventLightbox .eventLightbox__table thead th:first-child {
    width: 25%;
  }
  .eventLightbox .eventLightbox__table thead th:last-child {
    width: auto;
  }

  /* 通常料金：広め */
.eventLightbox .eventLightbox__table tbody td:first-of-type {
    width: 32%;
    border-right: 0;
}

/* 矢印：細め、左右ボーダーなし */
.eventLightbox .eventLightbox__table .eventLightbox__arrow {
    width: 8% !important;
    border-left: 0;
    border-right: 0;
    text-align: center;
}

/* イベント料金：広め */
.eventLightbox .eventLightbox__table tbody td:last-of-type {
    width: 35%;
    border-left: 0;
}

  .eventLightbox .eventLightbox__table .eventLightbox__oldPrice {
    font-size: 16px;
    text-decoration: line-through;
    text-decoration-color: #d33;
    color: #777;
  }

  .eventLightbox .eventLightbox__table .eventLightbox__arrow {
    width: 8%;
    padding: 12px 6px;
    font-size: 18px;
    color: #777;
  }

  .eventLightbox .eventLightbox__table .eventLightbox__arrow::after {
    content: none;
  }

  .eventLightbox .eventLightbox__table .eventLightbox__newPrice {
    font-size: 18px;
    font-weight: 700;
    color: #d22;
  }
}

/* ============================================================
   料金表：スマホ・タブレット（900px以下）
   左側：コース、右側：通常料金 → 矢印 → イベント料金
   数値・プロパティはこのブロック内で独立して調整
   ============================================================ */
@media (max-width: 900px) {
  .eventLightbox .eventLightbox__table {
    width: 100%;
    table-layout: auto;
    border-collapse: collapse;
    margin: 20px 0 8px;
  }

  /* colspan属性はgrid内では列幅を制御しないため、見出しも2列gridに統一 */
  .eventLightbox .eventLightbox__table thead tr {
    display: grid;
    grid-template-columns: 35% minmax(0, 65%);
  }

  .eventLightbox .eventLightbox__table thead th {
    display: flex;
    width: auto;
    min-width: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    font-size: 14px;
    color: #333;
    background: #f5f5f5;
  }

  .eventLightbox .eventLightbox__table thead th:first-child {
    grid-column: 1;
  }
  .eventLightbox .eventLightbox__table thead th:last-child {
    grid-column: 2;
  }

  .eventLightbox .eventLightbox__table tbody tr {
    display: grid;
    grid-template-columns: 35% minmax(0, 65%);
    grid-template-rows: auto auto auto;
    border: 1px solid #ccc;
    border-top: 0;
  }

  .eventLightbox .eventLightbox__table tbody th {
    display: flex;
    grid-column: 1;
    grid-row: 1 / 4;
    width: auto;
    padding: 12px 6px;
    border: 0;
    border-right: 1px solid #ccc;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    background: #f2f2f2;
    overflow-wrap: anywhere;
  }

  .eventLightbox .eventLightbox__table tbody td {
    display: flex;
    grid-column: 2;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 5px 6px;
    border: 0;
    align-items: center;
    justify-content: center;
    text-align: center;
    vertical-align: middle;
    overflow-wrap: anywhere;
    color: #333;
  }

  .eventLightbox .eventLightbox__table tbody td:first-of-type {
    grid-row: 1;
    padding: 16px 6px 4px;
  }

  .eventLightbox .eventLightbox__table .eventLightbox__oldPrice {
    font-size: 15px;
    text-decoration: line-through;
    text-decoration-color: #d33;
    color: #777;
  }

  .eventLightbox .eventLightbox__table .eventLightbox__arrow {
    grid-row: 2;
    width: 100%;
    padding: 3px 6px;
    font-size: 0;
    color: #777;
  }

  .eventLightbox .eventLightbox__table .eventLightbox__arrow::after {
    content: "→";
    display: inline-block;
    transform: rotate(90deg);
    font-size: 18px;
    line-height: 1;
    color: #777;
  }

  .eventLightbox .eventLightbox__table .eventLightbox__newPrice {
    grid-row: 3;
    padding: 4px 6px 16px;
    font-size: 18px;
    font-weight: 700;
    color: #d22;
  }

  /* 通常料金がなく、イベント料金のみの1セルの場合 */
  .eventLightbox .eventLightbox__table tbody td.eventLightbox__newPrice:first-of-type {
    grid-row: 1 / 4;
    padding: 16px 6px;
  }
}

/* Multiple price table titles and plain-text note; previous CSS unchanged. */
.eventLightbox .eventLightbox__priceTitle {
  margin: 26px 0 10px;
  padding: 0 0 8px;
  /* border-bottom: 1px solid #ddd; */
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  color: #333;
}
.eventLightbox .eventLightbox__priceNote {
  margin: 20px 0 0;
  padding: 12px 14px;
  background: #f7f7f7;
  border-radius: 5px;
  color: #555;
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.eventLightbox__body font[size="2"] {
  font-size: 14px;
}
.eventLightbox__body font[size="3"] {
  font-size: 18px;
}
.eventLightbox__body font[size="4"] {
  font-size: 24px;
}
.eventLightbox__body font[size="5"] {
  font-size: 32px;
}
