/*--------------------------------------------------
  変数定義
--------------------------------------------------*/
#schedule.regulations {
  --col-label-width: 120px;
  /* 左の見出し列の幅 */
  --col-data-width: 250px;
  /* データ列の幅 */
}

/*--------------------------------------------------
  出展規程共通指定
--------------------------------------------------*/
#schedule.regulations .c_btn.download {
  line-height: 1.2;
}

#schedule.regulations .c_btn.download span {
  font-size: clamp(10px, 1.2vw, 12px);
}

/*  ------ 画像拡大キャプション  ------  */
@media screen and (max-width: 640px) {
  .magnify-caption {
    font-size: 11px;
  }
}

/*--------------------------------------------------
  出展規程ハブページ
--------------------------------------------------*/
/*  ------レイアウト調整  ------  */
#schedule.regulations.hub_page .c_section_block {
  padding: 0 0 32px;
}

#schedule.regulations.hub_page .scrollbox table {
  margin: 0 32px;
}

#schedule.regulations.hub_page .l_container h3 {
  margin-left: 32px;
}

#schedule.regulations.hub_page .indentbefore {
  margin-left: 32px;
}

/*  ------テーブル調整  ------  */
#schedule.regulations.hub_page .scrollbox table {
  display: table !important;
}

#schedule.regulations.hub_page .scrollbox table thead {
  display: table-header-group !important;
}

#schedule.regulations.hub_page .scrollbox table tbody {
  display: table-row-group !important;
}

/* 空白セルに斜線 */
#schedule.regulations table td.cell-slash {
  background: linear-gradient(to top right,
      transparent calc(50% - 0.5px),
      #ccc calc(50% - 0.5px),
      #ccc calc(50% + 0.5px),
      transparent calc(50% + 0.5px));
}

/* 折りたたみテーブルの制御 */
#schedule.regulations.hub_page .scrollbox table tbody.more-details {
  display: none !important;
}

#schedule.regulations.hub_page .scrollbox table tbody.more-details.is-open {
  display: table-row-group !important;
}

#schedule.regulations.hub_page .scrollbox table tr {
  display: table-row !important;
}

#schedule.regulations.hub_page .scrollbox table th,
#schedule.regulations.hub_page .scrollbox table td {
  display: table-cell !important;
}

/* 一般展示 General Exhibits */
#schedule.regulations.hub_page table th.bg-ceatecblue,
#schedule.regulations.hub_page table td.bg-ceatecblue {
  background-color: var(--ceatecblue);
  color: #fff;
  border-right: 1px solid #fff;
}

/* 一般展示の最後の列（スモールパッケージブース）の右側には線なし */
#schedule.regulations.hub_page table th.bg-ceatecblue:last-of-type,
#schedule.regulations.hub_page table td.bg-ceatecblue-light:last-of-type {
  border-right: none;
}

#schedule.regulations.hub_page table td.bg-ceatecblue-light {
  background-color: rgba(12, 26, 73, 0.1);
}

/* 企画展示 X (Transformation) パーク */
#schedule.regulations.hub_page table th.bg-special,
#schedule.regulations.hub_page table td.bg-special {
  background-color: var(--xpark);
  color: #fff;
  border-right: 1px solid #fff;
}

/* X パークの最後の列（1〜3ブース）の右側には線なし */
#schedule.regulations.hub_page table th.bg-special:last-of-type,
#schedule.regulations.hub_page table td.bg-special-light:last-of-type {
  border-right: none;
}

#schedule.regulations.hub_page table td.bg-special-light {
  background-color: rgba(101, 58, 133, 0.1);
}

/* 企画展示 ネクストジェネレーションパーク */
#schedule.regulations.hub_page table th.bg-next,
#schedule.regulations.hub_page table td.bg-next {
  background-color: var(--next);
  color: #fff;
  border-right: 1px solid #fff;
}

#schedule.regulations.hub_page table td.bg-next-light {
  background-color: rgba(228, 108, 136, 0.1);
  border-right: 1px solid #fff;
}

#schedule.regulations.hub_page table th,
#schedule.regulations.hub_page table td {
    word-break: break-all;
    overflow-wrap: break-word;
    white-space: normal;
    vertical-align: middle;
    font-size: 14px;
    line-height: 1.2;
}

#schedule.regulations.hub_page table tbody th.txtrgterad {
  background-color: #fff;
  color: #000;
}

/* 左端の見出し列（1列目） */
#schedule.regulations.hub_page table thead th.none,
#schedule.regulations.hub_page table thead th.font-bold,
#schedule.regulations.hub_page table tbody th.font-bold {
  width: var(--col-label-width);
  min-width: var(--col-label-width);
  max-width: var(--col-label-width);
  background-color: #fff;
}

/* データ列とtheadのプラン名 */
#schedule.regulations.hub_page table td,
#schedule.regulations.hub_page table thead tr:last-child th:not(.none):not(.font-bold) {
  width: var(--col-data-width);
  min-width: var(--col-data-width);
  max-width: var(--col-data-width);
}

/* 記号（×◯△-）を大きく */
#schedule.regulations.hub_page table .symbol {
  font-size: 1.4em;
  font-weight: bold;
}

/* 金額を大きく */
#schedule.regulations.hub_page table .price {
  font-size: 1.2em;
  font-weight: bold;
}

/* td中央揃え */
#schedule.regulations.hub_page table tr.txt-center td {
  text-align: center;
}

/* スマホ用 */
@media screen and (max-width: 640px) {
  #schedule.regulations.hub_page {
    --col-label-width: 80px;
    /* 左の見出し列の幅 */
    --col-data-width: 150px;
    /* データ列の幅 */
  }
}

/*  ------ ボタン配置・スタイル  ------  */
/* ボタン横並び */
#schedule.regulations .btn_flex_wrap {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
  padding: 0 30px;
}

#schedule.regulations .btn_flex_wrap .c_btn {
  margin: 0;
}

/* ボタンの背景色 */
#schedule.regulations .btn_flex_wrap .c_btn.general_exhibits {
  background: var(--ceatecblue);
}

#schedule.regulations .btn_flex_wrap .c_btn.x_park {
  background: var(--xpark);
}

#schedule.regulations .btn_flex_wrap .c_btn.next_generation_park {
  background: var(--next);
}

/* 詳細・付帯サービスを表示するボタン */
#schedule.regulations.hub_page .more-btn-area {
  text-align: center;
  margin: 30px 0 clamp(30px, 5vw, 60px);
}

#schedule.regulations.hub_page #toggleTableBtn {
  cursor: pointer;
  min-width: 300px;
}

#schedule.regulations.hub_page #toggleTableBtn::after {
  transform: translateY(-50%) rotate(90deg);
}

#schedule.regulations.hub_page #toggleTableBtn.is-open::after {
  transform: translateY(-50%) rotate(-90deg);
}

@media screen and (max-width: 1000px) {
  #schedule.regulations .btn_flex_wrap {
    flex-wrap: wrap;
  }
}


/*--------------------------------------------------
  一般展示（General Exhibits）出展規程
--------------------------------------------------*/

#schedule.regulations.general_exhibits .c_section_block th {
  width: 32%;
}

@media screen and (max-width: 1020px) {
  #schedule.regulations.general_exhibits .c_section_block th {
    width: 100%;
  }
}

/*  ------レイアウト調整  ------  */
#schedule.regulations.general_exhibits .c_section_block {
  padding: 32px 32px 30px;
}

/* ----- ブース規格 横並び ----- */
.booth_spec_row {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

.booth_spec_row figure {
  flex: 0 0 45%;
  max-width: 45%;
}

.booth_spec_row .listdod,
.booth_spec_row .booth_spec_content {
  flex: 1 1 auto;
}

.booth_spec_row--reverse {
  flex-direction: row-reverse;
}

@media screen and (max-width: 767px) {

  .booth_spec_row,
  .booth_spec_row--reverse {
    flex-direction: column;
  }

  .booth_spec_row figure {
    max-width: 100%;
  }
}

/* 1. エリア構成と仕様比較 - 見出し列（区分など）の背景を白色に */
#schedule.regulations .c_section_block>.scrollbox:first-of-type table th.font-bold,
#schedule.regulations .c_section_block>section.scrollbox:first-of-type table th.font-bold,
#schedule.regulations .c_section_block>.scrollbox:first-of-type table th.none,
#schedule.regulations .c_section_block>section.scrollbox:first-of-type table th.none {
  background-color: #fff;
}

/* テーブル全体の強制レイアウト設定 */
#schedule.regulations:not(.hub_page) .scrollbox table {
  display: table !important;
  table-layout: fixed !important;
  width: 100% !important;
  border-collapse: collapse;
  margin-bottom: 20px;
}

#schedule.regulations:not(.hub_page) .scrollbox table thead {
  display: table-header-group !important;
}

#schedule.regulations:not(.hub_page) .scrollbox table tbody {
  display: table-row-group !important;
}

#schedule.regulations:not(.hub_page) .scrollbox table tr {
  display: table-row !important;
}

#schedule.regulations:not(.hub_page) .scrollbox table th,
#schedule.regulations:not(.hub_page) .scrollbox table td {
  display: table-cell !important;
  padding: 8px 10px;
  border: 1px solid #ccc;
  vertical-align: middle;
  line-height: 1.5;
  box-sizing: border-box;
}

/* 見出し列 (第1列) - 幅自動(最小160px) */
#schedule.regulations:not(.hub_page) .scrollbox table th.none,
#schedule.regulations:not(.hub_page) .scrollbox table th.font-bold,
#schedule.regulations:not(.hub_page) .scrollbox table tbody th.font-bold,
#schedule.regulations:not(.hub_page) .scrollbox table tr>th:first-child {
  width: 12% !important;
  min-width: 160px;
  text-align: left;
  font-weight: bold;
  white-space: normal !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  word-break: break-all !important;
}

/* データ列 (第2,3列) - 残りを均等配分 */
/* theadの3行目にある3つのthのうち、2番目と3番目を指定して幅を確定させる */
#schedule.regulations:not(.hub_page) .scrollbox table thead tr:nth-child(3) th:nth-child(2),
#schedule.regulations:not(.hub_page) .scrollbox table thead tr:nth-child(3) th:nth-child(3) {
  width: 40% !important;
}

/* 一般展示 General Exhibits カラー設定 */
#schedule.regulations table th.bg-ceatecblue,
#schedule.regulations table td.bg-ceatecblue {
  background-color: var(--ceatecblue);
  color: #fff;
  border: 1px solid var(--ceatecblue);
}

#schedule.regulations table td.bg-ceatecblue-light {
  background-color: rgba(12, 26, 73, 0.1);
}

/* セル内のスタイル調整 */
#schedule.regulations table .symbol {
  font-size: 1.4em;
  font-weight: bold;
}

#schedule.regulations table .price {
  font-size: 1.2em;
  font-weight: bold;
}

#schedule.regulations table .text11 {
  font-size: 1.1rem;
}

#schedule.regulations table tr.txt-center td {
  text-align: center;
}

/* SP対応: 横スクロール（hub_page以外） */
@media screen and (max-width: 640px) {
  #schedule.regulations:not(.hub_page) .scrollbox table {
    min-width: 600px !important;
    table-layout: fixed !important;
  }

  #schedule.regulations:not(.hub_page) .scrollbox {
    overflow-x: auto;
    width: 100%;
    display: block;
  }
}

/* タブレット対応: 1020px以下でのエリア構成と仕様比較表の見出し列幅維持（hub_page以外） */
@media screen and (max-width: 1020px) {
  #schedule.regulations:not(.hub_page) .scrollbox table {
    table-layout: fixed !important;
    min-width: 600px !important;
  }

  #schedule.regulations:not(.hub_page) .scrollbox {
    overflow-x: auto;
    width: 100%;
    display: block;
  }
}

/* 4-1. 一般展示（General Exhibits）の表 (tb2-1) */
#schedule.regulations .tb2-1 table {
  table-layout: fixed !important;
  width: 100% !important;
}

#schedule.regulations .tb2-1 table th,
#schedule.regulations .tb2-1 table td {
  white-space: normal !important;
}

/* colgroup で列幅を指定 */
#schedule.regulations .tb2-1 table col:first-child {
  width: 80px !important;
  min-width: 80px !important;
}

/* thead の最初の th にも明示的に幅を指定 */
#schedule.regulations .tb2-1 table thead th:first-child {
  width: 80px !important;
  min-width: 80px !important;
}

/* 4-1. 高さ制限の表 (tb2-1-2) - ブースの形態 6割、高さ制限 4割 */
#schedule.regulations .tb2-1-2 table {
  table-layout: fixed !important;
  width: 100% !important;
}

#schedule.regulations .tb2-1-2 table th,
#schedule.regulations .tb2-1-2 table td {
  white-space: normal !important;
}

/* colgroup で列幅を指定 */
#schedule.regulations .tb2-1-2 table col:first-child {
  width: 60% !important;
}

#schedule.regulations .tb2-1-2 table col:last-child {
  width: 40% !important;
}

/* ボタンの背景色 */
#schedule.regulations.general_exhibits .c_btn.download {
  background: var(--ceatecblue);
}


/*--------------------------------------------------
  X（Transformation）パーク 出展規程
--------------------------------------------------*/

/* 1. エリア構成と仕様比較 の表 */
#schedule.regulations.x_park .scrollbox.tb-area-spec table th:first-child,
#schedule.regulations.x_park .scrollbox.tb-area-spec table td:first-child {
  width: 8% !important;
}

@media screen and (max-width: 640px) {

  /* 1. エリア構成と仕様比較 の表 */
  #schedule.regulations.x_park .scrollbox.tb-area-spec table th:first-child,
  #schedule.regulations.x_park .scrollbox.tb-area-spec table td:first-child {
    width: 12% !important;
  }
}

/*  ------レイアウト調整  ------  */
#schedule.regulations.x_park .c_section_block {
  padding: 32px 32px 30px;
}

/* X (Transformation) パーク カラー設定 */
#schedule.regulations table th.bg-special,
#schedule.regulations table td.bg-special {
  background-color: var(--xpark);
  color: #fff;
  border: 1px solid var(--xpark);
}

#schedule.regulations table td.bg-special-light {
  background-color: rgba(124, 58, 237, 0.1);
}

/* 2-1. 出展料 の表 */
#schedule.regulations .tb-exhibit-fee th {
  width: 50%;
}

/* 3-1. 出展ブース料に含まれる経費 の表 */
#schedule.regulations .tb-fees-included table {
  table-layout: fixed !important;
  min-width: 800px;
}

#schedule.regulations .scrollbox.tb-fees-included table tr>th:first-child,
#schedule.regulations .scrollbox.tb-fees-included table tr>td:first-child {
  width: 200px !important;
  min-width: 200px !important;
  max-width: 200px !important;
  white-space: normal !important;
  word-break: normal !important;
}

/* 3-1. 出展ブース料に含まれる経費 の表 - tdを太字・中央寄せ */
#schedule.regulations .tb-fees-included table tbody td {
  font-weight: bold;
  text-align: center;
}

/* 注釈（※1、※2など）の文字サイズを小さく */
#schedule.regulations .tb-fees-included table .note {
  font-size: 0.8em;
}

/* ボタンの背景色 */
#schedule.regulations.x_park .c_btn.download {
  background: var(--xpark);
}


/*--------------------------------------------------
  ネクストジェネレーションパーク 出展規程
--------------------------------------------------*/

#schedule.regulations.next_generation_park .c_section_block th {
  width: 32%;
}

@media screen and (max-width: 1020px) {
  #schedule.regulations.next_generation_park .c_section_block th {
    width: 100%;
  }
}

/*  ------レイアウト調整  ------  */
#schedule.regulations.next_generation_park .c_section_block {
  padding: 32px 32px 30px;
}

/* 4. 申込ブース数・高さ制限 の表 */
#schedule.regulations.next_generation_park .scrollbox.tb4-booth-height table th:first-child,
#schedule.regulations.next_generation_park .scrollbox.tb4-booth-height table td:first-child {
  width: 40% !important;
}

/* ネクストジェネレーションパーク カラー設定 */
#schedule.regulations table th.bg-next,
#schedule.regulations table td.bg-next {
  background-color: var(--next);
  color: #fff;
  border: 1px solid var(--next);
}

#schedule.regulations table td.bg-next-light {
  background-color: rgba(229, 58, 188, 0.1);
}

/* ボタンの背景色 */
#schedule.regulations.next_generation_park .c_btn.download {
  background: var(--next);
}