/* ===================================
   MCU HUB — /mcu/
   既存のサイトコンポーネント（.hero, .section-heading,
   .trending-card 等）を流用し、ここでは既存コンポーネントに
   無いもの（フェーズリスト・ツールカード）と、
   このページだけの差し色（MARVELレッド）を追加する。
=================================== */

.page-template-page-mcu-php {
  --mcu-red: #ed1d24;
}

/* 既存コンポーネントの差し色をこのページだけ赤に上書き */

/* ヒーローの紺色（var(--primary)）を赤地に。タイトルはサイト標準の白のまま
   ＝「赤地に白抜き文字」という実際のMarvelロゴの配色そのものになる */
.page-template-page-mcu-php .hero {
  background: var(--mcu-red);
}

.page-template-page-mcu-php .hero__sub {
  color: rgba(255,255,255,.8);
}

.page-template-page-mcu-php .hero__tagline {
  color: #fff;
}

.page-template-page-mcu-php .hero__rule {
  background: rgba(0,0,0,.5);
}

.page-template-page-mcu-php .hero__desc {
  color: rgba(255,255,255,.82);
}

.page-template-page-mcu-php .hero__perf span {
  background: rgba(0,0,0,.22);
}

.page-template-page-mcu-php .section-heading__dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mcu-red);
  margin-right: 9px;
  vertical-align: middle;
}

.page-template-page-mcu-php .section--trending .cat-sec-head__en {
  color: var(--mcu-red);
}

.page-template-page-mcu-php .trending-badge {
  color: #fff;
  background: var(--mcu-red);
}

/* ---------- PHASE LIST ---------- */

.mcu-phase-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #eee;
}

.mcu-phase-list__item {
  flex: 1 1 16.6%;
  min-width: 140px;
  padding: 16px 16px 4px 0;
  border-top: 2px solid #e2e2e2;
  margin-top: -1px;
}

.mcu-phase-list__item.is-mark { border-top-color: var(--mcu-red); }
.mcu-phase-list__item.is-now  { border-top-color: #1a1a1a; }

.mcu-phase-list__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: #aaa;
  margin-bottom: 6px;
}

.mcu-phase-list__name {
  display: block;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  color: #262626;
}

.mcu-phase-list__item.is-now .mcu-phase-list__name { color: #1a1a1a; }

.mcu-phase-list__note {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--mcu-red);
  padding: 2px 8px;
  border-radius: 100vmax;
}

.mcu-phase-list__item.is-now .mcu-phase-list__note {
  background: #1a1a1a;
}

/* ---------- CHARACTER CARDS (horizontal carousel) ---------- */

.mcu-char-carousel {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.mcu-char-carousel__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px 0 10px;
}

.mcu-char-carousel__track::-webkit-scrollbar { display: none; }

.mcu-char-carousel__nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #1a1a1a;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease, opacity .2s ease;
}

.mcu-char-carousel__nav:hover:not(:disabled) { background: var(--mcu-red); }

.mcu-char-carousel__nav:disabled {
  background: #eee;
  color: #bbb;
  cursor: default;
}

.mcu-char-carousel__progress {
  margin-top: 4px;
  height: 3px;
  background: #eee;
  border-radius: 100vmax;
  overflow: hidden;
}

.mcu-char-carousel__progress-bar {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--mcu-red);
  border-radius: 100vmax;
  transition: transform .1s linear, width .1s linear;
}

.mcu-char-card {
  display: block;
  flex: 0 0 auto;
  width: 240px;
  scroll-snap-align: start;
  background: #f7f7f6;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease;
}

.mcu-char-card:hover { transform: translateY(-3px); }

@media (max-width: 640px) {
  .mcu-char-carousel__nav { display: none; }
  .mcu-char-card { width: 72vw; }
}

@media (max-width: 480px) {
  .mcu-char-card { width: 78vw; }
}

.mcu-char-card__img {
  aspect-ratio: 2 / 3;
  overflow: hidden;
  background: #eee;
}

.mcu-char-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
}

.mcu-char-card__body {
  padding: 16px;
}

.mcu-char-card__name {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  background: var(--mcu-red);
  border-radius: 100vmax;
  padding: 3px 10px;
  margin-bottom: 8px;
}

.mcu-char-card__title {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .92rem;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0 0 6px;
}

.mcu-char-card__teaser {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.7;
  color: #888;
  margin: 0;
}

/* ---------- TOOL CARDS ---------- */

.mcu-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.mcu-tool-card {
  position: relative;
  display: block;
  background: #fff;
  border: 1px solid #eee;
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}

.mcu-tool-card.is-ready:hover {
  border-color: var(--mcu-red);
  transform: translateY(-2px);
}

.mcu-tool-card__badge {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .05em;
  color: #fff;
  background: #999;
  border-radius: 100vmax;
  padding: 2px 9px;
}

.mcu-tool-card__badge--ready {
  background: var(--mcu-red);
}

.mcu-tool-card__en {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: .02em;
  color: #1a1a1a;
  margin: 22px 0 3px;
}

.mcu-tool-card__ja {
  font-family: var(--font-body);
  font-size: 12.5px;
  color: #666;
  margin: 0 0 10px;
}

.mcu-tool-card__desc {
  font-family: var(--font-body);
  font-size: 12px;
  line-height: 1.8;
  color: #999;
  margin: 0;
}

/* ---------- BACK LINK ---------- */

.mcu-back {
  text-align: center;
  padding: var(--space-xl) var(--container-padding) var(--space-2xl);
}

.mcu-back a {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display);
  font-size: .72rem;
  letter-spacing: .05em;
  color: #999;
  border-bottom: 1px solid #ddd;
  padding-bottom: 2px;
  transition: color .25s ease, border-color .25s ease;
}

.mcu-back a:hover {
  color: var(--mcu-red);
  border-color: var(--mcu-red);
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 840px) {
  .mcu-tool-grid { grid-template-columns: repeat(2, 1fr); }
  .mcu-phase-list__item { flex: 1 1 33%; }
}

@media (max-width: 540px) {
  .mcu-tool-grid { grid-template-columns: 1fr; }
  .mcu-phase-list__item { flex: 1 1 50%; }
}

/* ===================================
   APPEARANCE MATRIX — /mcu/matrix/
=================================== */

.mcu-matrix-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.mcu-matrix {
  width: 100%;
  min-width: 950px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.mcu-matrix thead th {
  padding: 12px 10px 10px;
  text-align: center;
  background: #fff;
}

.mcu-matrix__filmhead {
  text-align: left !important;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: .08em;
  color: #999;
  padding-left: 20px !important;
}

.mcu-matrix__charhead {
  min-width: 88px;
}

.mcu-matrix__charbtn {
  display: block;
  width: 100%;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: .84rem;
  color: #1a1a1a;
  background: #f0f0ee;
  border-radius: 100vmax;
  padding: 9px 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease;
}

.mcu-matrix__charbtn:hover { background: #e4e4e0; }
.mcu-matrix__charbtn.is-active { background: #1a1a1a; color: #fff; }

.mcu-matrix__charlink {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 10px;
  color: #aaa;
  text-align: center;
  letter-spacing: .03em;
}
.mcu-matrix__charlink:hover { color: var(--mcu-red); }

.mcu-matrix__row { transition: opacity .25s ease; }
.mcu-matrix__row.is-dim { opacity: .3; }

.mcu-matrix__film {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: #f7f7f6;
  border-radius: 10px 0 0 10px;
  white-space: nowrap;
}

.mcu-matrix__poster {
  width: 34px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  background: #eee;
}

.mcu-matrix__filmbody {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mcu-matrix__filmyear {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #aaa;
}

.mcu-matrix__filmtitle {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .82rem;
  color: #1a1a1a;
  white-space: normal;
}

.mcu-matrix__cell {
  text-align: center;
  background: #f7f7f6;
  font-size: 1.1rem;
  line-height: 1;
}

.mcu-matrix__cell.is-yes { color: #1a1a1a; }
.mcu-matrix__cell.is-no  { color: #ddd; }

.mcu-matrix__row td:last-child { border-radius: 0 10px 10px 0; }

.mcu-matrix__note {
  margin-top: var(--space-lg);
  font-family: var(--font-body);
  font-size: 12px;
  color: #999;
  letter-spacing: .02em;
}

@media (max-width: 540px) {
  .mcu-matrix__poster { display: none; }
  .mcu-matrix__filmtitle { font-size: .78rem; }
}
