/* 商品発売スケジュール */

.tcg-product-schedule {
  margin: 1.25em 0 2em;
}

.tcg-product-schedule__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.tcg-product-schedule__filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #4f8fc9;
  border-radius: 999px;
  background: #fff;
  color: #245b87;
  font: inherit;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.tcg-product-schedule__filter:hover {
  background: #eef7ff;
  transform: translateY(-1px);
}

.tcg-product-schedule__filter.is-active {
  background: #4f8fc9;
  color: #fff;
}

.tcg-product-schedule__filter:focus-visible {
  outline: 3px solid rgba(79, 143, 201, 0.35);
  outline-offset: 2px;
}

.tcg-product-schedule__count {
  min-width: 1.6em;
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(79, 143, 201, 0.12);
  font-size: 0.78em;
  text-align: center;
}

.tcg-product-schedule__filter.is-active .tcg-product-schedule__count {
  background: rgba(255, 255, 255, 0.22);
}

.tcg-product-schedule__list {
  display: grid;
  gap: 10px;
}

.tcg-product-schedule__item {
  display: grid;
  gap: 10px;
  margin: 0;
}

.tcg-product-schedule__item[hidden] {
  display: none !important;
}

.tcg-product-schedule__card {
  display: grid;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #dce5ed;
  border-left: 4px solid #4f8fc9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(36, 91, 135, 0.06);
}

.tcg-product-schedule__card--with-image {
  grid-template-columns: minmax(100px, 150px) minmax(130px, auto) minmax(0, 1fr) minmax(100px, auto);
}

.tcg-product-schedule__card--without-image {
  grid-template-columns: minmax(130px, auto) minmax(0, 1fr) minmax(100px, auto);
}

.tcg-product-schedule__card--linked {
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.tcg-product-schedule__card--linked:hover {
  border-color: #4f8fc9;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 5px 16px rgba(36, 91, 135, 0.14);
  transform: translateY(-1px);
}

.tcg-product-schedule__card--linked:focus-visible {
  outline: 3px solid rgba(79, 143, 201, 0.35);
  outline-offset: 2px;
}

.tcg-product-schedule__image-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-height: 92px;
}

.tcg-product-schedule__image {
  display: block;
  width: 100%;
  max-width: 150px;
  height: 100%;
  max-height: 120px;
  margin: 0;
  object-fit: contain;
}

.tcg-product-schedule__date,
.tcg-product-schedule__price {
  display: grid;
  gap: 2px;
}

.tcg-product-schedule__label {
  color: #6b7785;
  font-size: 12px;
  font-weight: 700;
}

.tcg-product-schedule__date time {
  color: #24394c;
  font-weight: 700;
  white-space: nowrap;
}

.tcg-product-schedule__body {
  min-width: 0;
}

.tcg-product-schedule__type {
  display: inline-block;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #eef7ff;
  color: #245b87;
  font-size: 12px;
  font-weight: 700;
}

.tcg-product-schedule__name {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: #222;
  font-size: 17px;
  line-height: 1.5;
}

.tcg-product-schedule__price {
  text-align: right;
}

.tcg-product-schedule__price strong {
  color: #aa0000;
  font-size: 16px;
  white-space: nowrap;
}

.tcg-product-schedule__rakuten {
  margin: 0 0 8px;
}

.tcg-product-schedule__empty,
.tcg-product-schedule__no-results {
  margin: 12px 0;
  color: #6b7785;
}

@media screen and (max-width: 768px) {
  .tcg-product-schedule__filters {
    gap: 6px;
  }

  .tcg-product-schedule__filter {
    padding: 7px 11px;
    font-size: 14px;
  }

  .tcg-product-schedule__card {
    gap: 8px 12px;
    padding: 12px;
  }

  .tcg-product-schedule__card--with-image {
    grid-template-columns: minmax(72px, 96px) minmax(0, 1fr) auto;
  }

  .tcg-product-schedule__card--without-image {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .tcg-product-schedule__image-wrap {
    grid-row: 1 / 3;
    min-height: 76px;
  }

  .tcg-product-schedule__image {
    max-width: 96px;
    max-height: 104px;
  }

  .tcg-product-schedule__date {
    display: flex;
    align-items: baseline;
    gap: 8px;
  }

  .tcg-product-schedule__card--with-image .tcg-product-schedule__date {
    grid-column: 2 / -1;
  }

  .tcg-product-schedule__card--without-image .tcg-product-schedule__date {
    grid-column: 1 / -1;
  }

  .tcg-product-schedule__card--with-image .tcg-product-schedule__body {
    grid-column: 2;
  }

  .tcg-product-schedule__card--without-image .tcg-product-schedule__body {
    grid-column: 1;
  }

  .tcg-product-schedule__card--with-image .tcg-product-schedule__price {
    grid-column: 3;
  }

  .tcg-product-schedule__card--without-image .tcg-product-schedule__price {
    grid-column: 2;
  }

  .tcg-product-schedule__price {
    align-self: end;
  }

  .tcg-product-schedule__name {
    font-size: 15px;
  }
}