@media print, screen and (min-width: 1300px) {
  #main {
    width: 1300px;
  }
  #content {
    width: 1040px;
  }
  .entry,
  .home_entry {
    width: 980px;
    margin: 0;
  }
  .footerprimary {
    padding: 100px 0 30px;
  }
  .breadcrumb {
    width: 1300px;
  }
}

.tvSchedule {
  --tv-fixed-top: 50px;
  --slot-h: 8px;
  --topbar-pad: 12px;
  --topNav-gap: 60px;
  --topNav-btn-w: 60%;
  --topNav-btn-minH: 74px;
  --topNav-btn-padY: 14px;
  --topNav-btn-padX: 16px;
  max-width: 980px;
  margin: 18px auto;
  background: #fff;
}

/* 上端〜top分を隠すマスク */
.tvSchedule__fixedMask {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--tv-fixed-top);
  background: #fff;
  z-index: 9999;
  display: none;
}

.tvSchedule__fixedMask.is-active {
  display: block;
}

/* 列幅計算のズレ防止 */
.tvSchedule__table,
.tvSchedule__table th,
.tvSchedule__table td,
.tvSchedule__fixedHead * {
  box-sizing: border-box;
}

/* 固定ヘッダ用（JSで作る） */
.tvSchedule__fixedHead {
  position: fixed;
  top: 50px;
  z-index: 9999;
  display: none;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
}

.tvSchedule__fixedHead.is-active {
  display: block;
}

.tvSchedule__fixedHead .tvSchedule__table {
  margin: 0;
  background: #fff;
}

.tvSchedule__fixedHead th {
  background: #fff;
}

/* ヘッダ */
.tvSchedule__head {
  padding: var(--topbar-pad);
  padding-bottom:26px;
  border: 1px solid #d1d5db;
}

/* タイトル */
.tvSchedule .tvSchedule__title {
  text-align: center;
  margin: 10px 0 22px;
}

.tvSchedule .tvSchedule__titleMain {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.35;
  color: #111827;
  letter-spacing: 0.01em;
}

.tvSchedule .tvSchedule__titleSub{
  margin-top: 6px;
  font-size: 28px;
  font-weight: 700;
  color: #222;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  display: block;
}

/* チャンネルボタン */
.tvSchedule__nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.tvSchedule__chBtn.is-active {
  background: #111;
  border-color: #111;
  color: #fff;
}

/* 週移動 */
.tvSchedule .tvSchedule__weekNav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  margin: 0 0 0px;
}

.tvSchedule .tvSchedule__weekNavLeft {
  display: flex;
  justify-content: flex-start;
}

.tvSchedule .tvSchedule__weekNavCenter {
  display: flex;
  justify-content: center;
}

.tvSchedule .tvSchedule__weekNavRight {
  display: flex;
  justify-content: flex-end;
}

.tvSchedule .tvSchedule__weekBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 138px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  background: #fff;
  color: #374151;
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.tvSchedule .tvSchedule__weekBtn:hover {
  background: #f9fafb;
  border-color: #c4cbd4;
  color: #111827;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* 今日ボタンを中央だけ自然に強調 */
.tvSchedule .tvSchedule__weekNavCenter .tvSchedule__weekBtn,
.tvSchedule .tvSchedule__weekBtn.is-current {
  background: #eef4ff;
  border-color: #bfd3ff;
  color: #1d4ed8;
}

/* エラー/警告 */
.tvSchedule__error,
.tvSchedule__warn {
  margin: 12px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #f2c2c2;
  background: #fff5f5;
}

.tvSchedule__warn {
  border-color: #fde68a;
  background: #fffbeb;
}

/* テーブル */
.tvSchedule__tableWrap {
  overflow: visible;
}

.tvSchedule__table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.tvSchedule__table th,
.tvSchedule__table td {
  border: 1px solid #d1d5db;
  vertical-align: top;
  padding: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tvSchedule__table thead th {
  padding: 10px 0 !important;
  position: sticky !important;
  top: 0;
  z-index: 10;
  background: #fff;
}

.tvSchedule__table thead th.tvSchedule__headTime {
  z-index: 11;
}

/* 見出し */
.tvSchedule__headTime {
  width: 80px;
  text-align: center;
  vertical-align: middle !important;
  font-weight: 800;
  background: #e2e9ff !important;
}

.tvSchedule__headDay {
  text-align: center;
}

.tvSchedule__headDay.is-sun .tvSchedule__dow {
  color: #e60000;
}

.tvSchedule__dnum {
  display: block;
  font-size: 32px;
  font-weight: 900;
  line-height: 1.05;
}

.tvSchedule__dow {
  display: block;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.05;
}

/* 時間列 */
.tvSchedule__timecell {
  background: #eef2ff;
  font-weight: 900;
  white-space: nowrap;
  text-align: center;
  padding: 8px 10px !important;
}

/* スロット行 */
.tvSchedule__slotRow {
  height: var(--slot-h);
}

.tvSchedule__slotRow.is-hour td,
.tvSchedule__slotRow.is-hour th {
  border-top-width: 1px;
}

.tvSchedule__slotRow td,
.tvSchedule__empty {
  padding: 0;
}

/* 番組セル */
.tvSchedule__progcell {
  padding: 8px 6px 10px 6px !important;
}

.tvSchedule__progHead {
  display: flex;
  gap: 4px;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.tvSchedule__progMin {
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.tvSchedule__progTitle {
  color: #00a !important;
  min-width: 0;
  text-decoration: underline;
  line-height: 1.4 !important;
  font-size: 13px !important;
  font-weight: 500;
  -webkit-appearance: none;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.tvSchedule__progTitle:focus {
  outline: none;
}

.tvSchedule__progTitle:focus-visible {
  outline: 2px solid rgba(11, 87, 208, 0.35);
  outline-offset: 2px;
  border-radius: 2px;
}


/* 今日列ハイライト */
.tvSchedule__table thead th.tvSchedule__headDay {
  position: relative;
  padding-top: 15px !important;
  padding-bottom: 10px !important;
  vertical-align: bottom;
  text-align: center;
}

.tvSchedule__fixedHead .tvSchedule__table thead th.tvSchedule__headDay {
  padding-top: 15px !important;
  padding-bottom: 10px !important;
}

.tvSchedule__table thead th.tvSchedule__headDay.is-today {
  background: #f6d9a6;
}

.tvSchedule__table thead th.tvSchedule__headDay.is-today::before {
  content: "今日";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #e39a2f;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 99999;
}

.tvSchedule__table tbody td.is-today {
  background: #fbf1dd !important;
}

/* 空欄セルの5分横罫を消す */
.tvSchedule__table tbody td.tvSchedule__empty {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 1px solid #d1d5db !important;
  border-right: 1px solid #d1d5db !important;
  background: transparent;
}

.tvSchedule__table tbody td.tvSchedule__progcell {
  border: 1px solid #d1d5db !important;
}

.tvSchedule__table tbody tr.is-hour td.tvSchedule__empty {
  border-top: 1px solid #d1d5db !important;
}

.tvSchedule__table tbody tr:last-child td.tvSchedule__empty {
  border-bottom: 1px solid #d1d5db !important;
}

/* 番組データなしの表示 */
.tvSchedule__progcell.is-nodata {
  background: #fff !important;
}

.tvSchedule__noData {
  font-size: 13px;
  padding: 10px 6px;
  text-align: center;
  font-weight: 500;
  color: #666;
}

/* 上部ナビ（左PDF ×2 / 右ch切替 ×2） */
.tvSchedule .tvSchedule__topNav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: var(--topNav-gap);
  align-items: start;
  margin: 0 0 30px;
}

.tvSchedule .tvSchedule__topNavLeft {
  display: grid;
  gap: 14px;
  justify-items: end;
}

.tvSchedule .tvSchedule__topNavRight {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.tvSchedule .tvSchedule__topBtn,
.tvSchedule .tvSchedule__chBtn {
  width: var(--topNav-btn-w);
  min-height: var(--topNav-btn-minH);
  padding: var(--topNav-btn-padY) var(--topNav-btn-padX);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
  transition: filter .18s ease, transform .18s ease;
}

.tvSchedule .tvSchedule__topBtn {
  border: 1.5px solid #e296b7;
  background: rgba(255, 152, 203, 1);
}

.tvSchedule .tvSchedule__chBtn {
  border: 1.5px solid #b9c8dc;
  background: #eef5ff;
  text-align: center;
  border-radius: 0;
}

.tvSchedule .tvSchedule__chBtn.is-111,
.tvSchedule .tvSchedule__chBtn.is-112 {
  background: rgba(6, 147, 227, .1);
  border-color: #0693e3;
}

.tvSchedule .tvSchedule__chBtn.is-122 {
  background: rgba(255, 152, 203, .1);
  border-color: #f78da7;
}

.tvSchedule .tvSchedule__topBtn::before {
  content: "PDF";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: #d92d20;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
  flex: 0 0 auto;
}

.tvSchedule .tvSchedule__chBtn::before {
  content: "";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 5px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  background:
    linear-gradient(to right, rgba(0, 0, 0, 0.18) 1px, transparent 1px) 7px 0/7px 100%,
    linear-gradient(to bottom, rgba(0, 0, 0, 0.18) 1px, transparent 1px) 0 7px/100% 7px,
    rgba(255, 255, 255, 0.75);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.tvSchedule .tvSchedule__topBtn:hover,
.tvSchedule .tvSchedule__chBtn:hover {
  filter: brightness(0.95);
}

.tvSchedule .tvSchedule__chBtn.is-111:hover,
.tvSchedule .tvSchedule__chBtn.is-112:hover {
  background: rgba(6, 147, 227, .18);
  border-color: #0693e3;
}

.tvSchedule .tvSchedule__chBtn.is-122:hover {
  background: rgba(255, 152, 203, .18);
  border-color: #f78da7;
}

.tvSchedule .tvSchedule__topBtn:active,
.tvSchedule .tvSchedule__chBtn:active {
  filter: brightness(0.92);
  transform: translateY(0);
}

/* セル hover ハイライト */
.tvSchedule .tvSchedule__table td,
.tvSchedule .tvSchedule__table th {
  transition: filter .12s ease, box-shadow .12s ease;
}

.tvSchedule .tvSchedule__table td:hover {
  filter: brightness(0.98);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 2;
}

.tvSchedule .tvSchedule__table td.tvSchedule__progcell:hover,
.tvSchedule .tvSchedule__table td.is-nodata:hover {
  filter: brightness(0.96);
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.35);
}

/* モーダル */
.tvSchedule .tvSchedule__modal[hidden] {
  display: none;
}

.tvSchedule .tvSchedule__modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
}

.tvSchedule .tvSchedule__modalBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.32);
  animation: tvScheduleModalFadeIn .22s ease-out;
}

.tvSchedule .tvSchedule__modalDialog {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  transform: translate(-50%, -50%);
  transform-origin: center center;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 22px 22px 20px;
  animation: tvScheduleModalPopIn .24s ease-out;
}

.tvSchedule .tvSchedule__modalClose {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tvSchedule .tvSchedule__modalClose:hover {
  color: #111827;
}

.tvSchedule .tvSchedule__modalBody {
  display: grid;
  gap: 14px;
  padding-right: 22px;
}

.tvSchedule .tvSchedule__modalChannel {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: #4b5563;
  letter-spacing: .02em;
  padding-bottom: 10px;
  border-bottom: 1px solid #e5e7eb;
}

.tvSchedule .tvSchedule__modalRow {
  display: grid;
  gap: 4px;
}

.tvSchedule .tvSchedule__modalLabel {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #6b7280;
  letter-spacing: .02em;
}

.tvSchedule .tvSchedule__modalValue {
  font-size: 15px;
  line-height: 1.8;
  color: #111827;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tvSchedule .tvSchedule__modalTitleText {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.7;
  color: #111827;
}

.tvSchedule .tvSchedule__modalSummary {
  white-space: pre-wrap;
  color: #374151;
}

html.is-tvScheduleModalOpen,
body.is-tvScheduleModalOpen {
  overflow: hidden;
}

@keyframes tvScheduleModalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes tvScheduleModalPopIn {
  from {
    opacity: 0;
    transform: translate(-50%, -48%) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@media (max-width: 980px) {
  .tvSchedule .tvSchedule__topNav {
    grid-template-columns: 1fr;
    row-gap: 24px;
  }

  .tvSchedule .tvSchedule__topNavLeft,
  .tvSchedule .tvSchedule__topNavRight,
  .tvSchedule .tvSchedule__weekNavLeft,
  .tvSchedule .tvSchedule__weekNavCenter,
  .tvSchedule .tvSchedule__weekNavRight {
    justify-items: center;
    justify-content: center;
  }

  .tvSchedule .tvSchedule__topBtn,
  .tvSchedule .tvSchedule__chBtn {
    width: 100%;
  }

  .tvSchedule .tvSchedule__title {
    margin: 14px 0 18px;
  }

  .tvSchedule .tvSchedule__titleMain {
    font-size: 24px;
    line-height: 1.4;
  }

  .tvSchedule .tvSchedule__titleSub {
    margin-top: 12px;
    font-size: 15px;
    padding: 7px 14px;
  }

  .tvSchedule .tvSchedule__weekNav {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tvSchedule .tvSchedule__weekBtn {
    width: 100%;
    max-width: 220px;
    min-width: 0;
  }
}

@media (max-width: 767px) {
  .tvSchedule .tvSchedule__modalDialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    padding: 18px 16px 16px;
    border-radius: 6px;
  }

  .tvSchedule .tvSchedule__modalBody {
    gap: 12px;
    padding-right: 18px;
  }

  .tvSchedule .tvSchedule__modalChannel {
    font-size: 13px;
    padding-bottom: 8px;
  }

  .tvSchedule .tvSchedule__modalValue {
    font-size: 14px;
  }

  .tvSchedule .tvSchedule__modalTitleText {
    font-size: 16px;
  }
}

/* =========================
   スマホ日付切替
========================= */

.tvSchedule__mobileDays{
  display: none;
}

@media (max-width: 980px){

  /* 固定ヘッダはスマホでは使わない */
  .tvSchedule__fixedHead,
  .tvSchedule__fixedMask{
    display: none !important;
  }

  .tvSchedule__mobileDays{
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 6px;
    padding: 18px 12px 12px;
    border-bottom: 1px solid #d1d5db;
  }

  .tvSchedule__mobileDayBtn{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 72px;
    padding: 10px 4px 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #6b7280;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, color .18s ease;
  }

  .tvSchedule__mobileDayBtn.is-active{
    background: #5b96de;
    border-color: #5b96de;
    color: #fff;
  }

  .tvSchedule__mobileDayBtn.is-today .tvSchedule__mobileDayBadge{
    display: inline-flex;
  }

  .tvSchedule__mobileDayBadge{
    display: none;
    position: absolute;
    top: -9px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 12px;
    border-radius: 999px;
    background: #e39a2f;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
  }

  .tvSchedule__mobileDayNum{
    display: block;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
  }

  .tvSchedule__mobileDayDow{
    display: block;
    margin-top: 4px;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.1;
  }

  .tvSchedule__mobileDayDow.is-sun{
    color: #d23b2d;
  }

  .tvSchedule__mobileDayBtn.is-active .tvSchedule__mobileDayDow.is-sun{
    color: #fff;
  }

  /* スマホでは選択日の列だけ表示 */
  .tvSchedule__dayCol.js-tvScheduleDayCell{
    display: none;
  }

  .tvSchedule__dayCol.js-tvScheduleDayCell.is-mobile-active{
    display: table-cell;
  }

  /* 時間列を少しだけ詰める */
  .tvSchedule__headTime{
    width: 72px;
    font-size: 15px;
  }

  .tvSchedule__timecell{
    width: 72px;
    padding: 8px 6px !important;
    font-size: 15px;
  }

  .tvSchedule__dnum{
    font-size: 24px;
  }

  .tvSchedule__dow{
    font-size: 16px;
  }

  .tvSchedule__progcell{
    padding: 8px 8px 10px !important;
  }

  .tvSchedule__progTitle{
    font-size: 14px;
    line-height: 1.35;
  }

  .tvSchedule__progMin{
    font-size: 14px;
  }
}

/* =========================
   980px以下でも上部4ボタンは2列のまま
   週送りボタンも横並びのまま
========================= */
@media (max-width: 980px){

  /* 上部4ボタン */
  .tvSchedule .tvSchedule__topNav{
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 0 0 12px;
  }

  .tvSchedule .tvSchedule__topNavLeft{
    justify-items: end;
    gap: 10px;
  }

  .tvSchedule .tvSchedule__topNavRight{
    justify-items: start;
    gap: 10px;
  }

  .tvSchedule .tvSchedule__topBtn,
  .tvSchedule .tvSchedule__chBtn{
    width: 82%;
    min-height: 58px;
    padding: 10px 10px;
    font-size: 15px;
    line-height: 1.25;
    gap: 8px;
  }

  .tvSchedule .tvSchedule__topBtn::before{
    font-size: 10px;
    padding: 3px 5px;
  }

  .tvSchedule .tvSchedule__chBtn::before{
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background:
      linear-gradient(to right, rgba(0,0,0,.18) 1px, transparent 1px) 6px 0/6px 100%,
      linear-gradient(to bottom, rgba(0,0,0,.18) 1px, transparent 1px) 0 6px/100% 6px,
      rgba(255,255,255,.75);
  }

  /* タイトル */
  .tvSchedule .tvSchedule__title{
    margin: 12px 0 0px;
  }

  .tvSchedule .tvSchedule__titleMain{
    font-size: 22px;
    line-height: 1.35;
    gap: 8px;
  }

  .tvSchedule .tvSchedule__titleSub{
    margin-top: 6px;
    font-size: 16px;
  }

  /* 週送りボタン：横並びのまま */
  .tvSchedule .tvSchedule__weekNav{
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    margin: 20px 0 14px;
  }

  .tvSchedule .tvSchedule__weekNavLeft{
    justify-content: flex-start;
  }

  .tvSchedule .tvSchedule__weekNavCenter{
    justify-content: center;
  }

  .tvSchedule .tvSchedule__weekNavRight{
    justify-content: flex-end;
  }

  .tvSchedule .tvSchedule__weekBtn{
    min-width: 92px;
    min-height: 38px;
    padding: 0 12px;
    font-size: 14px;
    border-radius: 9999px;
  }

  .tvSchedule__head {
  padding-bottom:12px !important;
}

}

/* =========================
   767px以下でさらに少し詰める
========================= */
@media (max-width: 767px){

  .tvSchedule .tvSchedule__topNav{
    gap: 10px;
  }

  .tvSchedule .tvSchedule__topBtn,
  .tvSchedule .tvSchedule__chBtn{
    width: 90%;
    min-height: 52px;
    padding: 8px 8px;
    font-size: 13px;
    gap: 6px;
  }

  .tvSchedule .tvSchedule__topBtn::before{
    font-size: 9px;
    padding: 2px 4px;
  }

  .tvSchedule .tvSchedule__chBtn::before{
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background:
      linear-gradient(to right, rgba(0,0,0,.18) 1px, transparent 1px) 5px 0/5px 100%,
      linear-gradient(to bottom, rgba(0,0,0,.18) 1px, transparent 1px) 0 5px/100% 5px,
      rgba(255,255,255,.75);
  }

  .tvSchedule .tvSchedule__titleMain{
    font-size: 24px;
  }

  .tvSchedule .tvSchedule__titleSub{
    font-size: 22px;
  }

  .tvSchedule .tvSchedule__weekNav{
    gap: 8px;
  }

  .tvSchedule .tvSchedule__weekBtn{
    min-width: 78px;
    min-height: 34px;
    padding: 0 10px;
    font-size: 13px;
  }
}

@media (max-width: 980px){

  /* 上部4ボタン全体 */
  .tvSchedule .tvSchedule__topNav{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 0 0 10px;
  }

  /* 左右列とも、スマホでは幅いっぱい使う */
  .tvSchedule .tvSchedule__topNavLeft,
  .tvSchedule .tvSchedule__topNavRight{
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
    width: 100%;
    min-width: 0;
    justify-content: stretch;
    justify-items: stretch;
    align-content: start;
    align-items: stretch;
  }

  /* 4つのボタンを同じサイズで横に広げる */
  .tvSchedule .tvSchedule__topBtn,
  .tvSchedule .tvSchedule__chBtn{
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 56px;
    margin: 0;
    padding: 8px 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1.2;
  }

  .tvSchedule .tvSchedule__topBtn::before{
    font-size: 9px;
    padding: 2px 4px;
  }

  .tvSchedule .tvSchedule__chBtn::before{
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    background:
      linear-gradient(to right, rgba(0,0,0,.18) 1px, transparent 1px) 5px 0/5px 100%,
      linear-gradient(to bottom, rgba(0,0,0,.18) 1px, transparent 1px) 0 5px/100% 5px,
      rgba(255,255,255,.75);
  }
}

@media (max-width: 640px){
  .tvSchedule .tvSchedule__topNav{
    gap: 4px;
    margin: 0 0 8px;
  }

  .tvSchedule .tvSchedule__topNavLeft,
  .tvSchedule .tvSchedule__topNavRight{
    gap: 4px;
  }

  .tvSchedule .tvSchedule__topBtn,
  .tvSchedule .tvSchedule__chBtn{
    min-height: 52px;
    padding: 7px 6px;
    font-size: 12px;
    gap: 5px;
  }
}

/* 固定ヘッダー側では、今日バッジのはみ出しを許可する */
.tvSchedule__fixedHead,
.tvSchedule__fixedHead .tvSchedule__tableWrap,
.tvSchedule__fixedHead .tvSchedule__table,
.tvSchedule__fixedHead .tvSchedule__table thead {
  overflow: visible !important;
}

/* =========================
   現在放送中ハイライト
========================= */

.tvSchedule .tvSchedule__progcell.is-onair{
  position: relative;
  background: #fff4d6;
  box-shadow: inset 0 0 0 2px #f0a43a;
}

.tvSchedule .tvSchedule__progcell.is-onair .tvSchedule__progTitle{
  font-weight: 800;
  color: #111827;
}

.tvSchedule .tvSchedule__progcell.is-onair .tvSchedule__progMin{
  font-weight: 800;
  color: #8a4b00;
}

.tvSchedule .tvSchedule__onAirBadge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #f0a43a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

/* =========================
   月間放送スケジュールPDFボタン
========================= */

.tvSchedule .tvSchedule__headTop{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 16px;
  margin: 0 0 10px;
}

.tvSchedule .tvSchedule__headTopLeft{
  min-width: 0;
}

.tvSchedule .tvSchedule__headTopRight{
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  margin-right:11px;
  margin-top:14px;
}

.tvSchedule .tvSchedule__monthlyPdfBtn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid #e7b8b2;
  background: #fff3f1;
  color: #111827;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  text-align: left;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tvSchedule .tvSchedule__monthlyPdfBtn:hover{
  background: #fde7e3;
  border-color: #dfa19a;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  /* transform: translateY(-1px); */
}

@media (max-width: 980px){
  .tvSchedule .tvSchedule__headTop{
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0 0 8px;
  }

  .tvSchedule .tvSchedule__headTopRight{
    justify-content: center;
  }

  .tvSchedule .tvSchedule__monthlyPdfBtn{
    width: 100%;
    max-width: 420px;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 14px;
  }
}

.tvSchedule .tvSchedule__monthlyPdfBtn::before{
  content: "PDF";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  color: #fff;
  background: #d92d20;
  box-shadow: 0 1px 0 rgba(0,0,0,.12);
  flex: 0 0 auto;
}

.tvSchedule .tvSchedule__monthlyPdfBtnText{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  row-gap: 4px; /* 2行の間隔 */
}

.tvSchedule .tvSchedule__monthlyPdfBtnLine1{
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
}

.tvSchedule .tvSchedule__monthlyPdfBtnLine2{
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
  line-height: 1.45;
}

.tvSchedule .tvSchedule__monthlyPdfBtnLine1{
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
}

.tvSchedule .tvSchedule__monthlyPdfBtnLine2{
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #374151;
}

@media (max-width: 980px){
  .tvSchedule .tvSchedule__monthlyPdfBtn{
    width: 100%;
    max-width: 420px;
    min-height: 48px;
    padding: 9px 12px;
    gap: 8px;
  }

  .tvSchedule .tvSchedule__monthlyPdfBtn::before{
    font-size: 10px;
    padding: 2px 5px;
  }

  .tvSchedule .tvSchedule__monthlyPdfBtnLine1{
    font-size: 14px;
  }

  .tvSchedule .tvSchedule__monthlyPdfBtnLine2{
    font-size: 13px;
  }
}

/* =========================
   番組表TOPに戻るボタン
========================= */

.tvSchedule .tvSchedule__backTop{
  display: flex;
  justify-content: flex-end;
  margin: 14px 0 0;
}

.tvSchedule .tvSchedule__backTopBtn{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #111827;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.tvSchedule .tvSchedule__backTopBtn:hover{
  background: #f9fafb;
  border-color: #c4cbd4;
  box-shadow: 0 3px 8px rgba(0,0,0,0.06);
  transform: translateY(-1px);
}

.tvSchedule .tvSchedule__backTopIcon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 9999px;
  background: #eef4ff;
  color: #2563eb;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  flex: 0 0 24px;
}

@media (max-width: 980px){
  .tvSchedule .tvSchedule__backTop{
    margin: 12px 0 0;
  }

  .tvSchedule .tvSchedule__backTopBtn{
    min-height: 38px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .tvSchedule .tvSchedule__backTopIcon{
    width: 22px;
    height: 22px;
    font-size: 13px;
    flex: 0 0 22px;
  }
}

/* =========================
   番組放送日時検索
========================= */

.tvSchedule .tvSchedule__searchBox{
  margin: 18px auto 20px;
  max-width: 520px;
}

.tvSchedule .tvSchedule__searchLabel{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  font-size: 16px;
  font-weight: 700;
  color: #374151;
  line-height: 1.5;
}

.tvSchedule .tvSchedule__searchLabel::before{
  content: "🔍";
  display: inline-block;
  font-size: 16px;
  line-height: 1;
  opacity: 0.8;
}

.tvSchedule .tvSchedule__searchSelect{
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cfd8e3;
  background: #fdfefe;
  color: #111827;
  font-size: 15px;
  line-height: 1.4;
  box-sizing: border-box;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tvSchedule .tvSchedule__searchSelect:focus{
  outline: none;
  border-color: #9ca3af;
}

/* 検索結果モーダル内一覧 */
.tvSchedule .tvSchedule__searchResultList{
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.tvSchedule .tvSchedule__searchResultRow{
  display: grid;
  grid-template-columns: 70px 64px 1fr;
  gap: 12px;
  align-items: start;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.tvSchedule .tvSchedule__searchResultStatus{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 24px;
  padding: 0 8px;
  margin-top: 2px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  white-space: nowrap;
  box-sizing: border-box;
}

.tvSchedule .tvSchedule__searchResultStatus.is-past{
  background: #9ca3af;
}

.tvSchedule .tvSchedule__searchResultStatus.is-future{
  background: #2563eb;
}

.tvSchedule .tvSchedule__searchResultRow:first-child{
  border-top: 0;
  padding-top: 0;
}

.tvSchedule .tvSchedule__searchResultDate{
  font-size: 15px;
  font-weight: 700;
  line-height: 1.7;
  color: #111827;
}

.tvSchedule .tvSchedule__searchResultTimes{
  font-size: 15px;
  line-height: 1.7;
  color: #374151;
  word-break: break-word;
  overflow-wrap: anywhere;
}

@media (max-width: 980px){
  .tvSchedule .tvSchedule__searchBox{
    margin: 14px auto 16px;
    max-width: 100%;
  }

  .tvSchedule .tvSchedule__searchLabel{
    font-size: 15px;
  }

  .tvSchedule .tvSchedule__searchSelect{
    height: 40px;
    font-size: 14px;
  }

  .tvSchedule .tvSchedule__searchResultRow{
    grid-template-columns: 58px 56px 1fr;
    gap: 8px;
  }

  .tvSchedule .tvSchedule__searchResultStatus{
    min-height: 22px;
    padding: 0 6px;
    font-size: 11px;
  }

  .tvSchedule .tvSchedule__searchResultDate,
  .tvSchedule .tvSchedule__searchResultTimes{
    font-size: 14px;
  }
}
