@charset "UTF-8";
/* CSS Document */


/* ========================================
   基本設定
======================================== */
:root {
  /* 時刻列の横幅 */
  --timetable-time-width: 70px;

  /* 5分間の高さ */
  --timetable-five-minutes: 28px;

  /* 会場列の横幅 */
  --timetable-column-width: minmax(160px, 1fr);

  /* グリッド線の太さ */
  --timetable-grid-line-width: 0.05px;

  /* 色 */
  --timetable-border: #ececec;
  --timetable-line: #e7e7e1;
  --timetable-header-bg: #fff;
  --timetable-header-color: #000;

  --session-a-bg: #dceeff;
  --session-a-border: rgba(255, 233, 0, 0.83);

  --session-b-bg: #e6f5e4;
  --session-b-border: rgba(255, 233, 0, 0.78);

  --session-w-bg: #fff0d2;
  --session-w-border: rgba(228, 155, 36, 0.82);
}


/* ========================================
   横スクロール領域
======================================== */
.timetable_scroll {
  display: block;

  width: 100%;
  max-width: 100%;
  box-sizing: border-box;

  /*
   * 横方向のみスクロール可能にする
   */
  overflow-x: auto;
  overflow-y: hidden;

  /*
   * iPhoneなどの慣性スクロール
   */
  -webkit-overflow-scrolling: touch;

  /*
   * ブラウザ標準のスワイプ方向判定を使用
   */
  touch-action: auto;

  /*
   * 列幅計算用のコンテナ
   */
  container-type: inline-size;

  position: relative;

  padding-bottom: 12px;

  scrollbar-width: auto;
  scrollbar-color: #777 #ededed;
}


/* WebKit系スクロールバー */
.timetable_scroll::-webkit-scrollbar {
  height: 8px;
}

.timetable_scroll::-webkit-scrollbar-track {
  background-color: #ededed;
  border-radius: 999px;
}

.timetable_scroll::-webkit-scrollbar-thumb {
  background-color: #777;
  border-radius: 999px;
}

.timetable_scroll::-webkit-scrollbar-thumb:hover {
  background-color: #444;
}


/* ========================================
   タイムテーブル全体
======================================== */
.timetable {
  min-width: 700px;
}

/*
 * y2026.css側の
 * .timetable { overflow: auto; }
 * を上書きします。
 *
 * 横スクロールは.timetable_scrollだけに
 * 担当させます。
 */
.timetable_scroll > .timetable {
  overflow-x: visible;
  overflow-y: visible;
}


/* ========================================
   ヘッダー
======================================== */
.timetable_header {
  display: grid;

  grid-template-columns:
    var(--timetable-time-width)
    repeat(3, var(--timetable-column-width));

  /*
   * 縦スクロール時にヘッダー全体を固定
   */
  position: sticky;
  top: 0;
  z-index: 100;

  color: var(--timetable-header-color);
  background-color: var(--timetable-header-bg);

  border-bottom: 1px solid #000;

  /*
   * 下の内容が透けるのを防ぐ
   */
  isolation: isolate;
}

.timetable_header > div {
  display: grid;
  place-items: center;

  min-height: 52px;
  padding: 8px;

  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.05em;

  border-right: 1px solid rgb(0 0 0 / 8%);
}

.timetable_header > div:last-child {
  border-right: 0;
}


/* ========================================
   タイムテーブル本体
======================================== */
.timetable_body {
  display: grid;

  grid-template-columns:
    var(--timetable-time-width)
    repeat(3, var(--timetable-column-width));

  /*
   * 5分単位の43行
   */
  grid-template-rows:
    repeat(43, var(--timetable-five-minutes));

  position: relative;

  background-color: rgba(255, 255, 255, 0.9);

  /*
   * 5分単位の横罫線
   */
  background-image:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent calc(
        var(--timetable-five-minutes) - 1px
      ),
      var(--timetable-line) calc(
        var(--timetable-five-minutes) - 1px
      ),
      var(--timetable-line)
        var(--timetable-five-minutes)
    );

  border-right: 1px solid var(--timetable-border);
  border-bottom: 1px solid #000;
  border-left: 1px solid var(--timetable-border);
}


/* ========================================
   時刻列と会場列の境界線
======================================== */
.timetable_body::before {
  content: "";

  position: absolute;
  inset: 0;
  z-index: 0;

  pointer-events: none;

  background:
    linear-gradient(
      to right,

      transparent
        var(--timetable-time-width),

      var(--timetable-border)
        var(--timetable-time-width),

      var(--timetable-border)
        calc(
          var(--timetable-time-width) +
          var(--timetable-grid-line-width)
        ),

      transparent
        calc(
          var(--timetable-time-width) +
          var(--timetable-grid-line-width)
        )
    );
}


/* ========================================
   時刻
======================================== */
.time_label {
  grid-column: 1;
  grid-row: var(--line);

  /*
   * スティッキーにはしない
   */
  position: relative;
  left: auto;
  z-index: 2;

  padding: 4px 10px;

  color: #555;
  background-color: transparent;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;

  border-top:
    var(--timetable-grid-line-width)
    solid
    #aaa;

  box-shadow: none;
}


/* ========================================
   セッション
======================================== */
.session {
  grid-row: var(--start) / var(--end);

  position: relative;
  z-index: 3;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 5px;

  min-height: 0;

  margin: 2px 6px;
  padding: 0;

  overflow: hidden;

  color: #000;
  background-color: #fff;

  cursor: pointer;

  border-left: 5px solid #222;

  box-shadow:
    0 1px 1px 0 rgb(0 0 0 / 50%),
    0 1px 6px 1px rgb(0 0 0 / 20%);
}

.session strong {
  font-size: 17px;
  line-height: 1.2;
}

.session time {
  font-size: 12px;
  line-height: 1.3;
  white-space: nowrap;
}


/* ROOM A */
.session--a {
  grid-column: 2;
  border-left-color: var(--session-a-border);
}


/* ROOM B */
.session--b {
  grid-column: 3;
  border-left-color: var(--session-b-border);
}


/* ROOM W */
.session--w {
  grid-column: 4;
  border-left-color: var(--session-w-border);
}


/* ========================================
   セッション内テキスト
======================================== */
.timetable_company_name {
  font-size: 15px;
  font-weight: 400;
}

.timetable_session_name {
  font-weight: 600;
}


/* ========================================
   スマートフォン
======================================== */
@media (max-width: 767px) {
  :root {
    --timetable-five-minutes: 20px;
    --timetable-time-width: 60px;

    /*
     * コンテナクエリ単位に非対応の場合の
     * フォールバック
     */
    --timetable-column-width: 160px;
  }

  .timetable_scroll {
    width: 100%;
    max-width: 100%;

    margin-right: 0;
    margin-left: 0;

    padding-right: 0;
    padding-bottom: 12px;
    padding-left: 0;
  }

  .timetable_scroll > .timetable {
    /*
     * 次のセッションブロック本体を
     * 約10px表示する設定
     */
    --timetable-next-peek: 40px;

    /*
     * .sessionの左マージン
     */
    --timetable-session-margin: 6px;

    /*
     * スクロール領域の横幅
     * − 時刻列
     * − 次ブロックの左マージン
     * − 表示したい10px
     */
    --timetable-column-width: calc(
      100cqw -
      var(--timetable-time-width) -
      var(--timetable-session-margin) -
      var(--timetable-next-peek)
    );

    width: calc(
      var(--timetable-time-width) +
      3 * var(--timetable-column-width)
    );

    min-width: calc(
      var(--timetable-time-width) +
      3 * var(--timetable-column-width)
    );

    max-width: none;

    /*
     * 内側のスクロールを禁止し、
     * 外側だけを横スクロールさせる
     */
    overflow-x: visible;
    overflow-y: visible;
  }

  .session {
    padding: 8px;
  }

  .session strong {
    font-size: 15px;
  }

  .session time {
    font-size: 11px;
  }

  /*
   * 時刻表示は横スクロールに合わせて移動
   */
  .time_label {
    position: relative;
    left: auto;
    z-index: 2;

    background-color: transparent;
    box-shadow: none;
  }

  /*
   * ヘッダー左上のTIMEも横スクロールに
   * 合わせて移動させる
   */
  .timetable_header > div:first-child {
    position: static;
    left: auto;
    z-index: auto;

    box-shadow: none;
  }
}


/* ========================================
   コンテナクエリ単位に非対応のブラウザ
======================================== */
@supports not (width: 1cqw) {
  @media (max-width: 767px) {
    .timetable_scroll > .timetable {
      --timetable-column-width: 160px;

      width: calc(
        var(--timetable-time-width) +
        3 * var(--timetable-column-width)
      );

      min-width: calc(
        var(--timetable-time-width) +
        3 * var(--timetable-column-width)
      );
    }
  }
}