/* ===== 基本 ===== */
:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --text: #1c1f26;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #ff4b2b;
  --accent-soft: #fff1ed;
  --accent-text: #c2320f;
  --next: #0b63ce;
  --next-soft: #eaf2ff;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", Meiryo, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ===== ヘッダー ===== */
.site-header {
  background: #111318;
  color: #fff;
  border-bottom: 4px solid var(--accent);
}

.site-header__inner {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 14px 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: .02em;
}

.logo__mark { color: #ffd23f; }
.logo__dot { font-size: 15px; font-weight: 600; opacity: .85; margin-left: 2px; }

.site-header__tagline {
  margin: 0;
  font-size: 12.5px;
  color: #c7cbd3;
}

/* ===== シーズン見出し ===== */
.season-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 12px;
}

.season-head h1, .season-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.season-head .count {
  font-size: 13px;
  color: var(--muted);
}

.season-head .label-now {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
  margin-right: 8px;
  vertical-align: middle;
}

/* ===== 曜日タブ ===== */
.tabs {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--bg);
  padding: 8px 0;
  margin: 0 -16px;
  padding-left: 16px;
  padding-right: 16px;
}

.tabs__row {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.tabs__row::-webkit-scrollbar { display: none; }

.tab {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.tab[aria-selected="true"] {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.search {
  margin-top: 8px;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 15px;
  font-family: inherit;
}

.search input:focus { outline: 2px solid var(--next); outline-offset: 0; border-color: transparent; }

/* ===== 曜日グループ ===== */
.day-group { margin: 18px 0 26px; }

.day-group__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 800;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-group__title .dow-big {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--text);
  color: #fff;
  font-size: 15px;
}

.empty {
  color: var(--muted);
  padding: 30px 0;
  text-align: center;
}

/* ===== 作品カード ===== */
.list {
  display: grid;
  gap: 10px;
}

.card {
  display: grid;
  grid-template-columns: 64px 1fr 44px;
  gap: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px 12px 12px;
  transition: transform .08s ease, box-shadow .08s ease;
}

.card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 24, 40, .10);
  border-color: #d5d8de;
}

.card__time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
  padding-right: 10px;
  text-align: center;
}

.card__time .dow {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.card__time .t {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
}

.card__time .t.small { font-size: 12px; font-weight: 700; color: var(--muted); }

.card__body { min-width: 0; }

.card__title {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
}

.card__row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
  font-size: 13px;
}

.lbl {
  flex: 0 0 auto;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  border-radius: 4px;
  padding: 2px 6px;
  line-height: 1.3;
  margin-top: 2px;
}

.lbl--fast { background: var(--accent); color: #fff; }
.lbl--next { background: var(--next); color: #fff; }
.lbl--other { background: #e5e7eb; color: #374151; }
.lbl--free { background: #e6f6ec; color: #116b2f; }
.lbl--tv { background: #f3e8ff; color: #6b21a8; }

.svcs { display: inline-flex; flex-wrap: wrap; gap: 4px; }

.svc {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  color: #fff;
  background: #6b7280;
  line-height: 1.5;
  white-space: nowrap;
}

.svc--lg { font-size: 15px; padding: 5px 13px; }

a.svc--link { cursor: pointer; box-shadow: 0 1px 2px rgba(0, 0, 0, .15); }
a.svc--link:hover { filter: brightness(1.12); text-decoration: underline; }

.svc__label {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #c2320f;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.6;
  vertical-align: 1px;
}

.pr {
  display: inline-block;
  margin-left: 6px;
  padding: 0 5px;
  border: 1px solid #b4b9c2;
  border-radius: 3px;
  color: #6b7280;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .04em;
  vertical-align: middle;
}

/* ===== 原作・関連商品 ===== */
.store-head {
  margin: 10px 0 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.store-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
}

.store {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
  line-height: 1.3;
}

.store:hover { border-color: #b9bec8; background: #fff; }
.store__name { font-size: 14px; font-weight: 800; }
.store__kind { font-size: 11.5px; color: var(--muted); }

.store--pick { background: var(--accent-soft); border-color: #ffd2c6; }
.store--pick .store__name { color: var(--accent-text); }
.store-list--pick { margin-top: 8px; }

.next-text {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.rel {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--next);
  background: var(--next-soft);
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 4px;
}

.rel--now { color: #fff; background: var(--accent); }
.rel--done { color: var(--muted); background: #eef0f3; }

.pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 0 6px;
  margin-left: 6px;
  color: var(--accent-text);
  vertical-align: middle;
}

.pill--gray { color: var(--muted); }

.card__meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== お気に入り（ハート） ===== */
.fav {
  -webkit-appearance: none;
  appearance: none;
  align-self: center;
  justify-self: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #c4c8cf;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease;
}

.fav svg {
  width: 24px;
  height: 24px;
  fill: transparent;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.fav:hover { color: #ff6b8a; background: #fff0f3; }
.fav--on { color: #ff2d55; }
.fav--on svg { fill: currentColor; }
.fav--on:hover { background: #ffe4ea; }
.fav:focus-visible { outline: 2px solid var(--next); outline-offset: 2px; }

.fav--lg { width: 52px; height: 52px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); }
.fav--lg svg { width: 28px; height: 28px; }
.fav--lg.fav--on { border-color: #ffc2cf; }

.fav--demo {
  display: inline-grid;
  width: 22px;
  height: 22px;
  vertical-align: middle;
  color: #ff2d55;
  cursor: default;
}
.fav--demo svg { width: 16px; height: 16px; }

@keyframes fav-pop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.35); }
  70%  { transform: scale(.9); }
  100% { transform: scale(1); }
}
.fav--pop svg { animation: fav-pop .3s ease; }

.tab--fav { color: #ff2d55; border-color: #ffc2cf; background: #fff5f7; }
.tab--fav[aria-selected="true"] { background: #ff2d55; border-color: #ff2d55; color: #fff; }
.tab__heart { margin-right: 3px; }
.tab__count {
  display: inline-block;
  min-width: 18px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ff2d55;
  color: #fff;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}
.tab--fav[aria-selected="true"] .tab__count { background: #fff; color: #ff2d55; }

.empty p { margin: 0 0 8px; }

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.detail-head .detail-title { flex: 1 1 auto; }
.detail-head .fav { flex: 0 0 auto; }

/* ===== 過去のシーズン ===== */
.archive {
  margin: 36px 0 20px;
  padding-top: 20px;
  border-top: 2px solid var(--line);
}

.archive h2 {
  margin: 0 0 10px;
  font-size: 18px;
  font-weight: 800;
}

.archive__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.season-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  font-weight: 800;
  font-size: 16px;
}

.season-card:hover { border-color: #d5d8de; }
.season-card small { font-weight: 600; font-size: 12px; color: var(--muted); }
.season-card .arrow { color: var(--muted); }
.season-card--soon { border-style: dashed; color: var(--muted); }

/* ===== 詳細ページ ===== */
.back {
  display: inline-block;
  margin: 18px 0 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--next);
}

.detail-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.3;
}

.detail-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}

.box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px 16px;
}

.box h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: .04em;
}

.box--next { border-top: 4px solid var(--next); }
.box--fast { border-top: 4px solid var(--accent); }

.big-next {
  font-size: 26px;
  font-weight: 800;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}

.big-next .ep { font-size: 16px; color: var(--muted); display: block; font-weight: 700; }

.big-next .rel { font-size: 13px; margin-left: 8px; vertical-align: middle; }

.fast-when {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 800;
}

.note {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--muted);
}

.section { margin-top: 12px; }

.svc-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px dashed var(--line);
}

.svc-group:first-of-type { border-top: 0; padding-top: 2px; }

.svc-group .svc-note {
  font-size: 12px;
  color: var(--muted);
  flex-basis: 100%;
}

.kv {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 6px 10px;
  font-size: 14px;
}

.kv dt { color: var(--muted); font-weight: 700; margin: 0; }
.kv dd { margin: 0; }

.sched {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.sched th, .sched td {
  text-align: left;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}

.sched th { font-size: 12px; color: var(--muted); font-weight: 700; }
.sched tr.past td { color: #a1a5ad; }
.sched tr.next td { background: var(--next-soft); font-weight: 800; }
.sched td.lbl-col { color: var(--muted); font-size: 12px; }

.btn {
  display: inline-block;
  background: var(--text);
  color: #fff;
  font-weight: 800;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  margin-top: 4px;
}

.btn:hover { opacity: .9; }

/* ===== フッター ===== */
.site-footer {
  margin-top: 40px;
  padding: 22px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.site-footer p { margin: 0 0 6px; }
.site-footer__disclosure { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.site-footer__updated { margin-top: 10px; }

/* ===== レスポンシブ ===== */
@media (max-width: 640px) {
  body { font-size: 14px; }
  .season-head h1, .season-head h2 { font-size: 21px; }
  .card { grid-template-columns: 54px 1fr 40px; gap: 8px; padding: 11px 6px 11px 8px; }
  .fav { width: 40px; height: 40px; }
  .tab { padding: 7px 13px; }
  .tabs__row { gap: 5px; }
  .search input { font-size: 16px; } /* iOSのズーム防止 */
  .card__row { font-size: 12.5px; }
  .svc { font-size: 11.5px; padding: 2px 7px; }
  .card__time .t { font-size: 17px; }
  .card__title { font-size: 15px; }
  .hero { grid-template-columns: 1fr; }
  .detail-title { font-size: 20px; }
  .big-next { font-size: 22px; }
  .kv { grid-template-columns: 76px 1fr; }
}
