/* 追加スタイル：article.template.css */
.top-btn {
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-link-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;

  padding: 10px 15px;
  padding-left: 20px;

  border-radius: 5px;
  border: solid 1px var(--bg-color-2);
  box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);

  font-size: var(--font-body-size);
  font-weight: bold;
  text-decoration: none;
  color: #000;
}
.page-link-button .marker-sm {
  margin-left: 5px;
}

@media screen and (max-width: 740px) {
  .top-btn {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    max-width: 445px;
    margin: 0 auto;
  }
  .top-btn > .wp-block-button__link {
    padding: 0 !important;
  }
  .page-link-button {
    padding: 5px 10px;
  }
}

.pill-badge {
  margin-left: 0.5em;
  padding: 0.25em 1.5em 0.3em;
  border-radius: 1em;
  background-color: var(--main-color);
  color: white;
  font-size: 75%;
}

/* ページの追加スタイル */
.courses {
  margin-top: 50px;
  gap: 50px;
}

.courses > * {
  flex: 1;
}

.courses > div > * + * {
  margin-top: 30px;
}

.pricing-list > div {
  display: grid;
  grid-template-columns: 1fr max-content;
  align-items: center;
  gap: 1em;
  padding-bottom: 20px;
  border-bottom: solid 1px var(--sub-color);
}
.pricing-list > * + * {
  margin-top: 20px;
}

.pricing-list dt img.pricing-type-image {
  flex-basis: 142px;
  flex-grow: 1;
  max-width: 14em;
  height: auto;
}
.pricing-list dd {
  margin-left: auto;
  transform: translateY(-0.15em);
  font-size: var(--font-heading-2-size);
  font-weight: bold;
  line-height: 1;
}
.pricing-list span.price {
  display: inline-block;
  min-width: 3em;
  transform: translateY(0.05em);
  padding-right: 0.1em;

  text-align: right;
  line-height: 0.7;
  font-weight: 900;
  font-size: var(--font-heading-1-size);
  color: var(--main-color);
}
.pricing-list .pricing-description {
  margin-top: 10px;
  font-size: var(--font-heading-3-size);
  font-weight: 800;
}

@media screen and (max-width: 740px) {
  .courses {
    max-width: 445px;
    margin: 0 auto;
  }
}

.course-ch-info.bg.gray {
  margin-top: 20px;
  font-weight: 800;
  font-size: var(--font-heading-2-size);
  line-height: 1;
  text-align: center;
}
.course-ch-info.bg.gray > * + * {
  margin-top: 5px;
}

/* Channel List */
div[id^="ch-list-"] {
  scroll-margin-top: 90px;
}

.table.channel-list {
  display: grid;
  margin-top: 20px;
}
.table.channel-list a {
  color: inherit;
  text-decoration: none;
}
.table.channel-list + * {
  margin-top: 30px;
}

.channel-list table {
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  border-bottom: solid 1px #707070;
  font-size: var(--font-attribute-size);

  width: max-content;
  max-width: 940px;
  min-width: 100%;
}
.table-filter + table,.table-filter2 + table {
  margin-top: 0;
  border-radius: 0;
}
.channel-list tr {
  padding-top: 5px;
  padding-bottom: 5px;
}
.channel-list tr,
.channel-list th,
.channel-list td {
  border: none !important;
}

.channel-list table thead {
  background: linear-gradient(to bottom, #0074d7, #0187d7 51%, #009bed);
}
.table-filter2 + table thead {
  background: linear-gradient(to bottom, #0187d7, #009bed);
}

.channel-list table thead tr {
  background-color: transparent !important;
}
.channel-list table thead th {
  padding: 15px 10px;
  position: relative;
  color: white;
  text-align: center !important;
  font-size: var(--font-attribute-size);
}
.channel-list table tbody td {
  position: relative;
  padding: 15px 10px;
}
.channel-list table tbody td .marker-md {
  transform: translateY(1px);
}

/* 罫線 */
.channel-list table thead th + th::before,
.channel-list table tbody td + td::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: calc(100% - 20px);
  transform: translateY(10px);
}
.channel-list table thead th + th::before {
  background-color: white;
}
.channel-list table tbody td + td::before {
  background-color: var(--sub-color);
}

/* 放送波別スタイル */
/* 共通 */
#channel-table-dtv td:nth-of-type(1),
#channel-table-bs-free td:nth-of-type(1),
#channel-table-bs-option td:nth-of-type(1),
#channel-table-cs td:nth-of-type(1) {
  color: var(--main-color);
  font-size: 16px;
  font-weight: bold;
}
@media screen and (max-width: 740px) {
  #channel-table-dtv td:nth-of-type(1),
  #channel-table-bs-free td:nth-of-type(1),
  #channel-table-bs-option td:nth-of-type(1),
  #channel-table-cs td:nth-of-type(1) {
    font-size: var(--font-attribute-size);
    font-size: 14px;
  }
}
#channel-table-dtv td:nth-of-type(2),
#channel-table-bs-free td:nth-of-type(2),
#channel-table-bs-option td:nth-of-type(2),
#channel-table-cs td:nth-of-type(2) {
  font-weight: 700;
  font-size: var(--font-body-size);
}
/* 地上デジタル */
#channel-table-dtv td:nth-of-type(1),
#channel-table-dtv td:nth-of-type(3) {
  text-align: center;
}
#channel-table-bs-free td:nth-of-type(1),
#channel-table-bs-free td:nth-of-type(3) {
  text-align: center;
}
/* BSデジタル（全コース） */
#channel-table-bs-free td:nth-of-type(1),
#channel-table-bs-free td:nth-of-type(3) {
  text-align: center;
}
/* BSデジタル（オプション） */
#channel-table-bs-option td:nth-of-type(1),
#channel-table-bs-option td:nth-of-type(4) {
  text-align: center;
}
#channel-table-bs-option td:nth-of-type(4) {
  font-size: var(--font-heading-3-size);
  font-weight: 700;
}

/* CSデジタル */
#channel-table-cs td:nth-of-type(2) {
  font-size: var(--font-body-size);
}
#channel-table-cs td:nth-of-type(7) {
  font-weight: 800;
}
#channel-table-cs td:nth-of-type(5),
#channel-table-cs td:nth-of-type(6),
#channel-table-cs td:nth-of-type(7) {
  font-size: var(--font-heading-3-size);
}
#channel-table-cs td:nth-of-type(1),
#channel-table-cs td:nth-of-type(3),
#channel-table-cs td:nth-of-type(5),
#channel-table-cs td:nth-of-type(6) {
  font-weight: 700;
}
#channel-table-cs td:nth-of-type(1),
#channel-table-cs td:nth-of-type(3),
#channel-table-cs td:nth-of-type(5),
#channel-table-cs td:nth-of-type(6),
#channel-table-cs td:nth-of-type(7) {
  text-align: center;
}
#channel-table-cs td:nth-of-type(5) {
  color: #01afaa;
}
#channel-table-cs td:nth-of-type(6) {
  color: #a98352;
}

.table-filter {
  position: sticky;
  left: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  padding: 20px 20px 10px;
  border-radius: 20px 20px 0 0;
  border: none;
  background: linear-gradient(to bottom, #0074d7, #0187d7);
  user-select: none;
  color: #fff;
}
.table-filter2 {
  background: #0187d7;
  color: #fff;
  border: none;
  padding: 10px 20px 20px;
  border-bottom: solid 1px rgb(255, 255, 255, 0.3);
}
.table-filter2 label{
  margin-right: 20px;
}
.filter-switch {
  display: block;
  min-width: 170px;
  padding: 7px 8px 9px;
  border-radius: 1.5em;
  background-color: rgb(255, 255, 255, 0.3);
  transition: 125ms linear;
  transition-property: background-color, box-shadow;
  text-align: center;
  font-weight: bold;
}
@media screen and (max-width: 740px) {
  .table-filter {
    flex-wrap: nowrap;
  }
  .filter-switch {
    min-width: 100px;
  }
}
.filter-switch:hover {
  background-color: rgb(255, 255, 255, 0.4);
}
.filter-switch:active {
  background-color: rgb(255, 255, 255, 0.8);
  font-weight: 900;
}
.filter-switch.active {
  background-color: white;
  box-shadow: 2px 2px 4px rgb(0, 0, 0, 0.3);
  color: var(--main-color);
}
.filter-switch input {
  position: absolute;
  width: 0px;
  height: 0px;
  border: none;
  visibility: hidden;
}

.channel-list a {
  display: flex;
  align-items: center;
}
.channel-list a .marker-md {
  margin-right: 5px;
}

.keyword {
  color: var(--main-color);
}