:root {
  --colorKv: #f2e60d; /* 基調講演・セミナー */
  --colorKvHover: #fff480;
  --colorEx: #002060; /* 出展者セミナー */
  --colorExHover: #1b4a9c;
  --colorPr: #cc9900; /* 企画展示プレゼン */
  --colorPrHover: #e0ac1e;
  --colorLine: #231815;
  --colorLineThin: #c9c9c9;
  --colorText: #231815;
  --colorHead: #1b6d8f;
  --fontFamilyBase: "BIZ UDPGothic", "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
}

.container {
  max-width: 1080px;
  margin-inline: auto;
}

.sectionTitle {
  margin: 0 0 1rem;
  padding: 0.5rem 1.25rem;
  background: var(--colorHead);
  border-radius: 8px;
  font-size: 1.25rem;
  color: #fff;
}

.scheduleNote {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.scheduleNote::before {
  content: "▶";
  color: var(--colorHead);
  font-size: 0.8em;
}

/* ============================================================
     legend
     ============================================================ */
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}
.legendItem {
  display: flex;
  align-items: center;
  gap: 0.5em;
}
.legendChip {
  display: block;
  width: 1.4rem;
  height: 1rem;
  border: 1px solid transparent;
}
.legendChipKv {
  background: var(--colorKv);
}
.legendChipEx {
  background: var(--colorEx);
}
.legendChipPr {
  background: var(--colorPr);
}
.legendChipRecept {
  background-color: #fff;
  background-image: repeating-linear-gradient(45deg, var(--colorKv) 0 1px, transparent 1px 5px);
  border-color: var(--colorKv);
}

/* ============================================================
     schedule : スマホ（基本）＝縦並びリスト
     ============================================================ */
.scheduleScroll {
  overflow-x: visible;
}

.dayGroup {
  margin: 0 0 1.5rem;
  border: 2px solid var(--colorLine);
}

.dayLabel {
  display: flex;
  justify-content: center;
  gap: 0.6em;
  padding: 0.5rem;
  background: var(--colorKv);
  font-size: 1.05rem;
  font-weight: 700;
}

.roomName {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  background: #fff;
  border-top: 1px solid var(--colorLine);
  border-bottom: 1px solid var(--colorLine);
  line-height: 1.35;
}
.roomHall {
  font-size: 0.75rem;
}
.roomPlace {
  font-size: 0.95rem;
  font-weight: 700;
}

.receptBar {
  display: none;
}

.barItem {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 0.55rem 2.6rem 0.55rem 2.6rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
  text-decoration: none;
  line-height: 1.3;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.barItem:last-child {
  border-bottom: 0;
}
.barItemPlain {
  padding-left: 0.9rem;
}

.barItemKv {
  background: var(--colorKv);
  color: var(--colorText);
}
.barItemEx {
  background: var(--colorEx);
  color: #fff;
}
.barItemPr {
  background: var(--colorPr);
  color: #fff;
}

.barItemKv:hover,
.barItemKv:focus-visible {
  background: var(--colorKvHover);
}
.barItemEx:hover,
.barItemEx:focus-visible {
  background: var(--colorExHover);
}
.barItemPr:hover,
.barItemPr:focus-visible {
  background: var(--colorPrHover);
}
.barItem:hover,
.barItem:focus-visible {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  outline: none;
}

.barNo {
  position: absolute;
  top: 50%;
  left: 0.7rem;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--colorLine);
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

.barTime {
  font-size: 0.8rem;
}
.barTitle {
  font-size: 1rem;
  font-weight: 700;
}
.barRecept {
  font-size: 0.72rem;
  opacity: 0.75;
}

.barWakaba {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  width: 1.15rem;
  height: 1.45rem;
}

.timeHead,
.gridLines,
.tableFrame,
.groupSep {
  display: none;
}

/* ============================================================
     schedule : タブレット以上＝タイムテーブル表
     ============================================================ */
@media (min-width: 768px) {
  .scheduleScroll {
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .scheduleGrid {
    display: grid;
    grid-template-columns: 4.5rem 11rem repeat(96, minmax(0, 1fr));
    grid-template-rows: 2.25rem repeat(11, 2.9rem);
    min-width: 67rem;
    padding-right: 1.5rem; /* 17:00 ラベルのはみ出し分 */
  }

  /* --- 時間軸 --- */
  .timeHead {
    display: contents;
  }
  .timeLabel {
    display: flex;
    grid-row: 1;
    grid-column: calc(3 + var(--c));
    align-items: flex-end;
    justify-content: center;
    font-size: 0.8rem;
    white-space: nowrap;
  }

  /* --- 罫線 --- */
  .gridLines {
    display: contents;
  }
  .tick {
    grid-row: 2 / -1;
    grid-column: calc(3 + var(--c));
    z-index: 1;
  }
  .tickHour {
    border-left: 1px solid var(--colorLine);
  }
  .tickHalf {
    border-left: 1px solid #dedede;
  }

  .tableFrame {
    display: block;
    grid-row: 2 / -1;
    grid-column: 1 / -1;
    border: 2px solid var(--colorLine);
    z-index: 4;
    pointer-events: none;
  }

  .groupSep {
    display: block;
    grid-row: var(--r);
    grid-column: 1 / -1;
    align-self: start;
    height: 2px;
    background: var(--colorLine);
    z-index: 4;
  }

  /* --- 日付・会場 --- */
  .dayGroup {
    display: contents;
  }

  .dayLabel {
    display: flex;
    flex-direction: column;
    grid-row: var(--r) / span var(--rs);
    grid-column: 1;
    gap: 0;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-right: 1px solid var(--colorLine);
    font-size: 0.95rem;
    z-index: 2;
  }

  .roomRow {
    display: contents;
  }
  .roomRow > * {
    grid-row: var(--r);
  }

  .roomName {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.4em;
    grid-column: 2;
    padding: 0 0.5em;
    background: #fff;
    border-top: 0;
    border-bottom: 1px solid var(--colorLineThin);
    border-right: 2px solid var(--colorLine);
    z-index: 2;
  }
  .roomHall {
    font-size: 0.62rem;
    white-space: nowrap;
  }
  .roomPlace {
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
  }

  /* --- 受付時間 --- */
  .receptBar {
    display: block;
    grid-column: calc(3 + var(--c)) / span var(--w);
    margin: 4px 0;
    background-color: #fff;
    background-image: repeating-linear-gradient(45deg, var(--colorKv) 0 1px, transparent 1px 5px);
    border: 1px solid var(--colorKv);
    z-index: 2;
  }

  /* --- 講座の帯 --- */
  .barItem {
    grid-column: calc(3 + var(--c)) / span var(--w);
    min-height: 0;
    margin: 4px 0;
    padding: 0 0.4rem 0 1.35rem;
    border-bottom: 0;
    border-radius: 2px;
    overflow: hidden;
    z-index: 3;
  }
  .barItemPlain {
    padding-left: 0.4rem;
  }
  .barItemWakaba {
    padding-right: 1.1rem;
  }
  .barItemEx,
  .barItemPr {
    padding-left: 0.3rem;
    padding-right: 0.3rem;
  }

  .barItem:hover,
  .barItem:focus-visible {
    transform: translateY(-1px);
  }

  .barNo {
    left: 0.12rem;
    width: 1.05rem;
    height: 1.05rem;
    font-size: 0.62rem;
  }

  .barTime {
    font-size: 0.6rem;
    letter-spacing: 0.01em;
  }
  .barTitle {
    font-size: 0.74rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .barItemEx .barTime,
  .barItemPr .barTime {
    font-size: 0.48rem;
    line-height: 1.2;
  }
  .barItemEx .barTitle,
  .barItemPr .barTitle {
    font-size: 0.53rem;
    line-height: 1.2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .barRecept {
    display: none;
  }

  .barWakaba {
    right: 0.2rem;
    width: 0.8rem;
    height: 1rem;
  }
}

/* ============================================================
     detail（アンカーリンク先）
     ============================================================ */
.detailSection {
  margin-top: 3rem;
}
.detailHeading {
  margin: 0 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--colorLine);
  font-size: 1.1rem;
}
.detailItem {
  margin: 0 0 1rem;
  padding: 1rem 1.25rem;
  background: #fafafa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  scroll-margin-top: 1.5rem;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.detailItem.is-target {
  background: #fffce0;
  box-shadow: 0 0 0 3px var(--colorKv);
}
.detailMeta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5em 1em;
  margin: 0 0 0.35rem;
  font-size: 0.8rem;
}
.detailTag {
  padding: 0.1em 0.6em;
  border-radius: 3px;
  font-weight: 700;
}
.detailTagKv {
  background: var(--colorKv);
  color: var(--colorText);
}
.detailTagEx {
  background: var(--colorEx);
  color: #fff;
}
.detailTagPr {
  background: var(--colorPr);
  color: #fff;
}
.detailTitle {
  display: flex;
  align-items: center;
  gap: 0.4em;
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.detailWakaba {
  display: inline-flex;
}
.detailWakaba .barWakaba {
  position: static;
  transform: none;
  width: 1rem;
  height: 1.25rem;
}
.detailNote {
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}
.detailBack {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
}
.detailBack a {
  color: var(--colorHead);
}
