/* channel-card-proposal.css - /session.html と旧 /channel.html 用 */

.proto-b-schedule {
  background: #f4f7fb;
  border-bottom: 1px solid #cfe8ff;
  padding: 34px 16px 24px;
}

.proto-b-inner {
  max-width: 960px;
}

.proto-b-table-details {
  margin: 0 auto;
  max-width: 920px;
}

.proto-b-table-details summary {
  align-items: center;
  background: #fff;
  border: 1px solid #c3d0e6;
  border-radius: 14px;
  color: #00144c;
  cursor: pointer;
  display: flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: space-between;
  list-style: none;
  padding: 14px 18px;
  text-align: left;
}

.proto-b-table-details summary::-webkit-details-marker {
  display: none;
}

.proto-b-table-details summary::after {
  color: #7d2cff;
  content: "⌄";
  flex: none;
  font-size: 18px;
  line-height: 1;
  margin-left: 16px;
}

.proto-b-table-details[open] summary::after {
  content: "⌃";
}

.proto-b-table-details summary small {
  color: #5a6b8c;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 4px;
}

.proto-b-table-details[open] .proto-b-sched-body {
  margin-top: 0;
}

/* A案: ボタン風の枠を弱め、セクション見出しとして扱う */
.proto-b-table-details summary {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #c3d0e6;
  border-radius: 0;
  column-gap: 16px;
  display: flex;
  flex-wrap: wrap;
  padding: 0 0 16px;
  row-gap: 6px;
}

.proto-b-table-details summary::after {
  background: #fff;
  border: 1px solid #d8d0f2;
  border-radius: 999px;
  color: #4f33a6;
  content: "開く  v";
  font-size: 12px;
  font-weight: 800;
  margin-left: auto;
  padding: 7px 12px;
}

.proto-b-table-details summary > span {
  align-items: center;
  display: inline-flex;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.35;
}

.proto-b-table-details summary > span::after {
  background: #c3d0e6;
  content: "";
  display: inline-block;
  height: 18px;
  margin-left: 16px;
  width: 1px;
}

.proto-b-table-details[open] summary::after {
  content: "閉じる  ^";
}

.proto-b-table-details summary small {
  align-self: center;
  color: #73819b;
  font-size: 12px;
  margin-top: 0;
}

@media (max-width: 600px) {
  .proto-b-table-details summary {
    align-items: flex-start;
    column-gap: 12px;
  }

  .proto-b-table-details summary > span {
    font-size: 19px;
  }

  .proto-b-table-details summary > span::after {
    margin-left: 12px;
  }

  .proto-b-table-details summary::after {
    margin-left: 0;
  }
}

@media (max-width: 767px) {
  .floating-bottom-sp-channel {
    display: none !important;
  }
}

.proto-b-sched-body {
  max-height: min(66vh, 640px);
  overflow: auto;
  position: relative;
}

.proto-b-sched-body .schedule-table__head th {
  position: sticky;
  top: 0;
  z-index: 5;
}

.proto-b-sched-body .schedule-table__head th:first-child {
  left: 0;
  z-index: 7;
}

.proto-b-sched-body .schedule-table__time {
  left: 0;
  position: sticky;
  z-index: 4;
  box-shadow: 8px 0 12px rgba(0, 20, 76, 0.08);
}

.proto-b-daytabs {
  margin-top: 16px;
}

.proto-b-daytab-list {
  background: #eef1f6;
  border: 1.5px solid rgba(0,20,76,0.16);
  border-radius: 12px;
  display: flex;
  gap: 3px;
  margin-left: auto;
  margin-right: auto;
  padding: 4px;
  width: min(100%, 320px);
}

.proto-b-daytab {
  appearance: none;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: #00144c;
  cursor: pointer;
  flex: 1 1 0;
  font: inherit;
  padding: 8px 16px;
  text-align: center;
  transition: background 0.15s, color 0.15s;
}

.proto-b-daytab:hover {
  background: rgba(0,20,76,0.06);
}

.proto-b-daytab--day02 {
  background: transparent;
  color: #00144c;
}

.proto-b-daytab--day02:hover {
  background: rgba(0,20,76,0.06);
}

.proto-b-daytab.is-active {
  /* 白比4.5:1確保のため darken (旧#007fff=3.83:1・UI/UX監査 2026-07-02 P2) */
  background: #0070e0;
  border: none;
  color: #fff;
}

.proto-b-daytab--day02.is-active {
  /* 原色+白文字を維持(デザイナー指摘: 紺文字は見にくい・2026-07-02再指摘) */
  background: #f45d22;
  color: #fff;
}

.proto-b-daytab-main {
  display: block;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.proto-b-daytab-sub {
  display: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  margin-top: 3px;
  opacity: 0.78;
}

.proto-b-daytab-panel {
  margin-top: 16px;
}

.proto-b-daytab-panel[hidden] {
  display: none;
}

.proto-b-daytab-panel .proto-b-timetable-head {
  margin-top: 0;
}

.proto-b-timetable-head {
  background: linear-gradient(90deg, #eef8ff 0%, #f3f0ff 100%);
  border: 1px solid #d9d6ff;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  margin-top: 18px;
  padding: 18px 20px 14px;
}

.proto-b-timetable-head--day02 {
  background: linear-gradient(90deg, #fff3e8 0%, #fff8ec 100%);
  border-color: #ffd0a8;
}

.proto-b-timetable-meta {
  align-items: center;
  color: #5a6b8c;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  line-height: 1.4;
  margin: 0 0 6px;
}

.proto-b-timetable-label {
  color: #0070e0; /* 旧#007fff=3.83:1→4.78:1 (UI/UX監査 2026-07-02 P2) */
  font-weight: 900;
  letter-spacing: 0.08em;
}

.proto-b-timetable-head--day02 .proto-b-timetable-label {
  color: #cf410a; /* 旧#f45d22=3.26:1→4.76:1 */
}

.proto-b-timetable-divider {
  color: #9aa7bd;
  font-weight: 800;
}

.proto-b-timetable-date {
  color: #5a6b8c;
}

.proto-b-timetable-title {
  color: #00144c;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0;
}

.proto-b-timetable-head + .proto-a-sched-body .schedule-table {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

.proto-b-timetable-block {
  margin-top: 0;
}

.proto-b-timetable-block.proto-b-daytab-panel {
  margin-top: 16px;
}

.proto-b-timetable-block .proto-b-timetable-head {
  margin-top: 0;
}

.proto-b-day02-sched-body .schedule-table {
  min-width: 560px;
}

.proto-b-day02-sched-body .schedule-table td {
  color: #00144c;
  text-align: left;
}

.proto-b-day02-sched-body .schedule-table .schedule-table__time {
  background: #fff0e5;
  color: #9f5935; /* 旧#c9825dは背景比2.76:1→4.77:1 (UI/UX監査 2026-07-02 P3) */
}

.proto-b-day02-sched-body .proto-cell:hover {
  background: #fff7ef;
}

.proto-b-opening-label {
  color: #00144c;
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  padding: 10px 12px;
}

.proto-b-modal-cell {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  width: 100%;
}

.proto-b-modal-cell:focus-visible {
  outline: 3px solid #7d2cff;
  outline-offset: -3px;
}

.proto-b-filterbar {
  margin-bottom: 26px;
  margin-top: 24px;
}

@media (min-width: 1024px) {
  .proto-b-schedule {
    padding-left: 24px;
    padding-right: 24px;
  }

  .proto-b-inner,
  .proto-b-table-details {
    max-width: min(1200px, calc(100vw - 48px));
  }

  .proto-b-sched-body {
    max-height: min(86vh, 760px);
  }

  .proto-b-sched-body .schedule-table {
    min-width: 1040px;
  }

  .proto-b-sched-body .schedule-table__head th {
    padding-bottom: 9px;
    padding-top: 9px;
  }

  .proto-b-sched-body .schedule-table__time {
    font-size: 15px;
    padding-bottom: 8px;
    padding-top: 8px;
  }

  .proto-b-sched-body .proto-cell {
    padding: 6px 8px 8px;
  }

  .proto-b-sched-body .proto-cell-cat {
    font-size: 9px;
    margin-bottom: 3px;
    padding: 1px 6px;
  }

  .proto-b-sched-body .proto-cell-mfr {
    display: -webkit-box;
    font-size: 10px;
    line-height: 1.25;
    margin-bottom: 2px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
  }

  .proto-b-sched-body .proto-cell-title {
    display: -webkit-box;
    font-size: 12px;
    line-height: 1.3;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 767px) {
  .proto-b-schedule {
    padding: 16px 10px 12px;
  }

  .proto-b-table-details {
    margin-top: 0;
  }

  .proto-b-table-details summary {
    font-size: 14px;
    padding: 14px 16px;
  }

  .proto-b-timetable-head {
    border-radius: 12px 12px 0 0;
    margin-top: 12px;
    padding: 14px 14px 12px;
  }

  .proto-b-timetable-meta {
    font-size: 12px;
  }

  .proto-b-timetable-title {
    font-size: 17px;
  }

  .proto-b-daytabs {
    margin-top: 12px;
  }

  .proto-b-daytab-list {
    border-radius: 999px;
    gap: 4px;
    padding: 4px;
    width: min(100%, 280px);
  }

  .proto-b-daytab {
    border-radius: 999px;
    padding: 8px 12px;
  }

  .proto-b-daytab-main {
    font-size: 13px;
  }

  .proto-b-daytab-sub {
    font-size: 11px;
  }

  .proto-b-daytab-panel {
    margin-top: 12px;
  }

  .proto-b-day02-sched-body .schedule-table {
    min-width: 0;
  }

  .proto-b-day02-sched-body .col-time {
    width: 68px;
  }

  .proto-b-filterbar {
    margin-bottom: 22px;
    margin-top: 22px;
  }
}
