@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&display=swap');

/* ============================================
   CSS Variables
   ============================================ */
:root {
  /* Venue solid colors */
  --color-venue-a: #E8364F;
  --color-venue-b: #3B82F6;
  --color-venue-c: #10B981;
  --color-venue-d: #F59E0B;
  --color-venue-e: #8B5CF6;

  /* Venue gradients (for headers & time bars) */
  --grad-venue-a: linear-gradient(to right, #ffad5f, #ff7a99, #5876ff);
  --grad-venue-b: linear-gradient(to right, #5876ff, #5edbca);
  --grad-venue-c: linear-gradient(to right, #a855f7, #8b5cf6);
  --grad-venue-d: linear-gradient(to right, #10b981, #34d399);
  --grad-venue-e: linear-gradient(to right, #f59e0b, #fbbf24);

  /* Rainbow gradient for active tab */
  --grad-rainbow: linear-gradient(to right, #ffad5f, #ff7a99, #5876ff, #5edbca);

  /* Layout */
  --color-bg: #ffffff;
  --color-text: #0b1f47;
  --color-text-secondary: #64748b;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.18);
}

/* ============================================
   Base / Reset
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }

  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ============================================
   Sticky Controls Wrapper 2026.04.01追加
   ============================================ */
.sticky-controls {
  position: static;
}

@media (max-width: 768px) {
  .sticky-controls {
    position: sticky;
    top: 0;
    z-index: 200;
    background: var(--color-bg);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  }
}

/* ============================================
   Header
   ============================================ */
.timetable-header {
  text-align: center;
  padding: 2rem 1rem 0;
  position: relative;
  z-index: 0;
}

.timetable-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

/* ============================================
   Date Tabs  (reference: large pills with gradient border)
   ============================================ */
.date-tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  padding: 1.5rem 1rem 2rem;
  flex-wrap: wrap;
}

.date-tabs input[type="radio"] {
  display: none;
}

.date-tabs label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 3rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  background: #fff;
  color: var(--color-text-secondary);
  border: 2px solid var(--color-border);
  user-select: none;
  min-width: 240px;
}

.date-tabs label .day-num {
  font-size: 1.5rem;
  font-weight: 700;
  margin-right: 10px;
}

.date-tabs label .day-date {
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--color-text-secondary);
}

.date-tabs label:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

/* Active tab: gradient border using background-clip trick */
.date-tabs input[type="radio"]:checked+label {
  border-color: transparent;
  background-image: var(--grad-rainbow);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  background-size: 100% 100%;
  position: relative;
}

/* Inner white background over gradient */
.date-tabs input[type="radio"]:checked+label::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: #fff;
  border-radius: 10px;
  z-index: 0;
}

.date-tabs input[type="radio"]:checked+label>* {
  position: relative;
  z-index: 1;

}

.date-tabs input[type="radio"]:checked+label .day-num {
  background: var(--grad-rainbow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

}

.date-tabs input[type="radio"]:checked+label .day-date {
  color: var(--color-text);
}

/* ============================================
   Filter Bar
   ============================================ */
.filter-bar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 1rem;
  padding: 0 1rem 1rem;
  flex-wrap: wrap;
  max-width: fit-content;
  margin: 0 auto;
  max-width: 1200px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.filter-group-toggle {
  display: none;
}

.filter-group-buttons {
  display: contents;
}

.filter-group-title-desktop {
  /* Visible on desktop, hidden on mobile */
}

.filter-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-right: 0.25rem;
  white-space: nowrap;
}

.filter-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  background: #f1f5f9;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-btn:hover {
  border-color: #94a3b8;
}

.filter-btn.active {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}

.filter-clear-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #3B82F6, #6366F1);
  color: #fff;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

.filter-clear-btn:hover {
  background: linear-gradient(135deg, #2563EB, #4F46E5);
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.35);
}

/* ============================================
   Filtered-out (grayed-out) Session Boxes
   ============================================ */
.session-box.filtered-out {
  opacity: 0.2;
  pointer-events: none;
  filter: grayscale(80%);
  transition: opacity 0.3s ease, filter 0.3s ease;
}

.filter-tag {
  display: inline-block;
  padding: 0.15em 0.6em;
  margin: 0.1em 0.15em;
  font-size: 0.8125rem;
  background: #EFF6FF;
  color: #2563EB;
  border-radius: 1em;
  border: 1px solid #BFDBFE;
}

/* ============================================
   Timetable Container.filter-bar
   ============================================ */
.timetable-container {
  padding: 0 1.5rem 3rem;
  overflow-x: auto;
  position: relative;
  max-width: 1480px;
  margin: 30px auto;
}

/* Scroll hint: overlay on top of content */
.timetable-container.is-scrollable::before {
  content: "← スクロールできます →";
  position: absolute;
  top: 3rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 500;
  color: #fff;
  background: rgba(11, 31, 71, 0.7);
  backdrop-filter: blur(4px);
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  width: fit-content;
  animation: fadeIn 0.5s ease, scrollHintPulse 2s ease-in-out infinite;
  white-space: nowrap;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.timetable-container.scroll-started::before {
  animation: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Right edge fade to hint more content */
.timetable-container.is-scrollable::after {
  content: '';
  position: sticky;
  right: 0;
  top: 0;
  display: block;
  width: 40px;
  height: 100%;
  position: absolute;
  right: 0;
  top: 0;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.9));
  pointer-events: none;
  z-index: 4;
}

.timetable-container.scroll-started::after,
.timetable-container.scroll-end::after {
  display: none;
}

@keyframes scrollHintPulse {

  0%,
  100% {
    opacity: 0.85;
  }

  50% {
    opacity: 1;
  }
}

/* ============================================
   Timetable Day (tab content)
   ============================================ */
.timetable-day {
  display: none;
}

.timetable-day.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

/* ============================================
   Timetable Grid
   ============================================ */
.timetable-grid {
  display: grid;
  grid-template-columns: 64px repeat(var(--venue-count, 3), minmax(150px, 1fr));
  grid-template-rows: auto repeat(var(--row-count, 96), 26px);
  gap: 0;
  position: relative;
  overflow: clip;
}

/* ============================================
   Venue Headers (reference: gradient colored bars)
   ============================================ */
.venue-header {
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 4px;
  border-radius: 8px;
  overflow: hidden;
}

.venue-header span {
  display: block;
  width: 100%;
  text-align: center;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: #fff;
  padding: 0.65rem 0.5rem;
  border-radius: 8px;
}

/* Venue header gradients */
.venue-header.venue-a span {
  background: var(--grad-venue-a);
}

.venue-header.venue-b span {
  background: var(--grad-venue-b);
}

.venue-header.venue-c span {
  background: var(--grad-venue-c);
}

.venue-header.venue-d span {
  background: var(--grad-venue-d);
}

.venue-header.venue-e span {
  background: var(--grad-venue-e);
}

/* ============================================
   Time Labels
   ============================================ */
.time-label {
  grid-column: 1;
  text-align: right;
  padding-right: 0.75rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  line-height: 1;
  align-self: start;
  transform: translateY(-0.4em);
  position: relative;
}

.time-label::after {
  content: '';
  position: absolute;
  top: 0.4em;
  left: 100%;
  width: 200vw;
  height: 1px;
  background: var(--color-border);
  pointer-events: none;
  z-index: 0;
}

/* ============================================
   Venue Color Classes
   ============================================ */
.venue-a {
  --venue-color: var(--color-venue-a);
  --venue-grad: var(--grad-venue-a);
}

.venue-b {
  --venue-color: var(--color-venue-b);
  --venue-grad: var(--grad-venue-b);
}

.venue-c {
  --venue-color: var(--color-venue-c);
  --venue-grad: var(--grad-venue-c);
}

.venue-d {
  --venue-color: var(--color-venue-d);
  --venue-grad: var(--grad-venue-d);
}

.venue-e {
  --venue-color: var(--color-venue-e);
  --venue-grad: var(--grad-venue-e);
}

/* ============================================
   Session Boxes  (reference: white card + colored time bar at top)
   ============================================ */
.session-box {
  background: #fff;
  border-radius: 12px;
  margin: 3px 4px;
  overflow: hidden;
  cursor: pointer;
  z-index: 0;
  position: relative;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.session-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

/* Time bar at top of session box */
.session-time-bar {
  background: var(--venue-grad, var(--venue-color));
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Session body (template content) */
.session-body {
  padding: 0.5rem 0.75rem 0.6rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.session-time-bar .session-id {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.session-box .session-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-shrink: 1;
}

.session-speakers-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: auto;
  padding-top: 0.3rem;
}

.session-speaker-group {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  width: calc(50% - 0.125rem);
  width: 100%;
}

.session-speakers-wrap .session-speaker-group:only-child {
  width: 100%;
}

.session-speaker-photo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #e2e8f0;
}

.session-speaker-photo2 {
  object-position: 0;
}

.session-speaker-info {
  min-width: 0;
}

.session-box .session-speaker {
  font-size: 0.7rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.session-box .session-company {
  font-size: 0.65rem;
  color: var(--color-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
}

/* ============================================
   Modal Overlay  (reference: dark semi-transparent)
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 11, 33, 0.75);
  z-index: 1000;
  align-items: flex-start;
  justify-content: center;
  overflow-y: auto;
  padding: 2rem 1rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.35s ease-out;
}

/* ============================================
   Modal Close Button
   ============================================ */
.modal-close {
  position: fixed;
  top: 1rem;
  right: calc(1rem + 20px);
  z-index: 1002;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--color-text-secondary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.modal-close:hover {
  background: #f1f5f9;
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   Modal Content  (reference: large white card)
   ============================================ */
.modal-content {
  background: #fff;
  border-radius: 24px;
  max-width: 1000px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1001;
  animation: slideUp 0.35s ease-out;
}

.modal-content-inner {
  padding: 3rem;
}

/* Date / Time display with colored accent bar */
.modal-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.3rem;
  margin-bottom: 2rem;
}

.modal-date {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 0.1em;
}

.modal-time {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  letter-spacing: 0.1em;

}

.modal-venue {
  display: inline-flex;
  align-items: center;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 6px;
  color: #fff;
  letter-spacing: 0.03em;
}

.modal-venue-a {
  background: var(--color-venue-a);
}

.modal-venue-b {
  background: var(--color-venue-b);
}

.modal-venue-c {
  background: var(--color-venue-c);
}

.modal-venue-d {
  background: var(--color-venue-d);
}

.modal-venue-e {
  background: var(--color-venue-e);
}

.modal-content h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2rem;
  line-height: 1.35;
}

/* Description */
.modal-description {
  font-size: 0.95rem;
  line-height: 1.9;
  color: #374151;
  margin-bottom: 2rem;
  white-space: pre-line;
}

/* Keywords */
.modal-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-top: 1.5rem;
  margin-bottom: 2rem;
}

.modal-keywords .keyword {
  font-size: 0.8rem;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.modal-keywords .keyword:empty {
  display: none;
}

.modal-keywords+div {
  margin-bottom: 10px;
  display: none;
}

.modal-keywords+div+div {
  margin-bottom: 10px;
  display: none;
}


/* ============================================
   Speaker Card  (reference: large photo + info grid)
   ============================================ */
.modal-speakers {
  margin-top: 1.5rem;
  /* padding-top: 1.5rem; */
  padding-bottom: 0.5rem;
  /* border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border); */
}

.speaker-wrap {
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.speaker-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1.5rem 2rem;
  margin-bottom: 1.5rem;
  align-items: start;
}

.speaker-photo {
  width: 200px;
  height: 230px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f1f5f9 4%, #e2e8f0 92%);
  grid-row: span 2;
}

.speaker-photo2 {
    width: 250px;
    height: auto;
    background: #fff;
}

.speaker-logo {
  width: auto;
  height: auto;
  max-width: 200px;
  max-height: 100px;
  /* border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f1f5f9 4%, #e2e8f0 92%);
  grid-row: span 2; */
}

.speaker-book {
  width: auto;
  height: auto;
  max-width: 160px;
  /* border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(135deg, #f1f5f9 4%, #e2e8f0 92%);
  grid-row: span 2; */
}

.speaker-info {
  min-width: 0;
}

.speaker-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 0.25rem;
}

.speaker-org {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  line-height: 1.5;
}

.speaker-profile {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.75;
  margin-bottom: 50px
}

.speaker-profile::before {
  content: 'Profile';
  display: block;
  font-weight: 700;
  color: #0054ff;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.speaker-youtube {
  padding-top: 1rem;

  img {
    width: 50px;
  }

}

.speaker-book-block {
  font-size: 14px;
  margin-bottom: 2rem;

  h3 {
    font-weight: 700;
    color: #0054ff;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-size: 14px;
  }
}


/* ============================================
   Responsive — Tablet (768px–1080px)
   ============================================ */
@media (max-width: 1080px) {
  .timetable-container {
    padding: 0 0.75rem 2rem;
  }

  .timetable-grid {
    min-width: min-content;
  }

  .date-tabs label {
    min-width: 180px;
    padding: 0.6rem 2rem;
  }

  .date-tabs label .day-num {
    font-size: 1.25rem;
  }
}

/* ============================================
   Responsive — Mobile (<768px)
   ============================================ */
@media (max-width: 768px) {

  /* Filter accordion on mobile */
  .filter-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 1rem 1rem;
  }

  .filter-group {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .filter-group:last-of-type {
    border-bottom: none;
  }

  .filter-group-title-desktop {
    display: none;
  }

  .filter-group-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.75rem 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
  }

  .filter-group-toggle .filter-group-title {
    margin-right: 0;
    font-size: 0.85rem;
  }

  .filter-group-arrow {
    font-size: 0.65rem;
    color: var(--color-text-secondary);
    transition: transform 0.25s ease;
  }

  .filter-group-toggle[aria-expanded="true"] .filter-group-arrow {
    transform: rotate(180deg);
  }

  .filter-group-buttons {
    display: none;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0 0.5rem 0.75rem;
  }

  .filter-group-buttons.open {
    display: flex;
  }

  .filter-clear-btn {
    margin-top: 0.5rem;
    align-self: center;
  }

  .timetable-header h1 {
    font-size: 1.2rem;
  }

  .date-tabs {
    gap: 0.75rem;
    padding: 1rem;
  }

  .date-tabs label {
    min-width: 140px;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
  }

  .date-tabs label .day-num {
    font-size: 1.1rem;
  }

  .date-tabs label .day-date {
    font-size: 0.8rem;
  }

  .timetable-grid {
    min-width: min-content;
    grid-template-columns: 50px repeat(var(--venue-count, 3), minmax(150px, 1fr));
  }

  .time-label {
    font-size: 0.65rem;
    padding-right: 0.4rem;
  }

  .venue-header span {
    font-size: 0.75rem;
    padding: 0.5rem 0.25rem;
  }

  .session-time-bar {
    font-size: 0.7rem;
    padding: 0.25rem 0.5rem;
  }

  .session-body {
    padding: 0.35rem 0.5rem 0.4rem;
  }

  .session-box .session-title {
    font-size: 0.72rem;
  }

  .session-box .session-speaker,
  .session-box .session-company {
    font-size: 0.6rem;
  }

  .modal-content {
    padding: 2rem 1.25rem;
    border-radius: 16px;
  }

  .modal-content h2 {
    font-size: 1.25rem;
  }

  .modal-date,
  .modal-time {
    font-size: 1.1rem;
  }

  .speaker-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .speaker-photo {
    width: 160px;
    height: 200px;
    grid-row: auto;
  }

  .speaker-info {
    flex: 1 1 200px;
  }

  .speaker-name {
    font-size: 1.1rem;
  }
}

/* ============================================
   Responsive — Small Mobile (<480px)
   ============================================ */
@media (max-width: 480px) {
  .date-tabs {
    gap: 0.5rem;
    padding: 0.75rem;
  }

  .date-tabs label {
    min-width: 120px;
    padding: 0.4rem 1rem;
    gap: 0.25rem;
  }

  .timetable-grid {
    min-width: min-content;
    grid-template-columns: 40px repeat(var(--venue-count, 3), minmax(150px, 1fr));
  }

  .modal-content {
    padding: 1.5rem 1rem;
    border-radius: 12px;
  }

  .speaker-card {
    grid-template-columns: 2fr;
  }

  .speaker-photo {
    width: 60vw;
    height: auto;
    max-height: 70vw;
    grid-row: auto;
    margin: 0 auto;
  }
}

/* ============================================
   Modal CTA Button
   ============================================ */
.modal-cta-wrap {
  text-align: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.modal-cta-btn {
  display: inline-block;
  width: 70%;
  padding: 1rem 2rem !important;
  background: linear-gradient(135deg, #E8364F, #ff6b81);
  color: #fff !important;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 12px;
  transition: all 0.2s ease;
  text-align: center;
}

.modal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 54, 79, 0.3);
}

/* ============================================
   Floating CTA Button
   ============================================ */
.floating-cta {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  z-index: 900;
}

.floating-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.85rem 1.5rem !important;
  background: linear-gradient(135deg, #E8364F, #ff6b81);
  color: #fff !important;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.2s ease;
  text-align: center;
  line-height: 1.5;
  border: 2px solid #fff;
}

.floating-cta-btn::after {
  content: '▶';
  font-size: 0.75em;
  transition: transform 0.2s ease;
}

.floating-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 54, 79, 0.4);
}

.floating-cta-btn:hover::after {
  transform: translateX(3px);
}

@media (max-width: 768px) {
  .modal-cta-btn {
    width: 90%;
    font-size: 1rem;
    padding: 0.85rem 1.5rem;
  }

  .floating-cta {
    bottom: 3.6rem;
    right: 0.3rem;
  }

  .floating-cta-btn {
    font-size: 0.8rem;
    padding: 0.7rem 1.2rem;
  }
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
  .date-tabs {
    display: none;
  }

  .timetable-day {
    display: block !important;
    page-break-after: always;
  }

  .session-box {
    box-shadow: none;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .modal-overlay {
    display: none !important;
  }

  .floating-cta {
    display: none !important;
  }

  body {
    background: #fff;
  }
}




@media (max-width: 768px) {
  .modal-content-inner {
    padding: 0;
  }
}

/* ============================================
   Preview All Modals Mode (?preview=all)
   ============================================ */
.preview-all-section {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1.5rem 4rem;
}

.preview-all-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--color-border);
}

.preview-all-card {
  margin-bottom: 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}




/* 講師名の後ろに「 氏」を表示 (#13) */
.session-speaker:not(:empty)::after,
.speaker-name:not(:empty)::after {
  content: ' 氏';
}

/* 指定した複数のセッションをまとめて非表示にする */
[data-session="B-1"],
[data-session="B-9"],
[data-session="C-7"],
[data-session="D-2"] {
  display: none;
}