.hw-event-page {
  --ink: #24180f;
  --muted: #6d5b4b;
  --line: #e4d3bc;
  --paper: #fffaf3;
  --gold: #a56b24;
  --gold-deep: #6b3e12;
  color: var(--ink);
  font-family: "Hiragino Sans", "Noto Sans JP", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

.hw-event-page * { box-sizing: border-box; }

.hw-event-page a { color: var(--gold-deep); }

.hw-event-wrap {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.hw-event-kicker {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hw-event-page h1 {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: 32px;
  line-height: 1.3;
}

.hw-event-lead {
  margin: 0 0 20px;
  color: var(--muted);
}

.hw-event-page section {
  margin: 0 0 36px;
  padding-top: 8px;
}

.hw-event-page h2 {
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--line);
  color: var(--gold-deep);
  font-size: 22px;
}

.hw-event-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: end;
  margin-bottom: 14px;
}

.hw-event-switch label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hw-event-switch select {
  min-width: 240px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.hw-quest-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hw-quest-tabs button,
.hw-slider-nav button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--gold-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
}

.hw-quest-tabs button.is-active {
  background: var(--gold-deep);
  border-color: var(--gold-deep);
  color: #fff;
}

.hw-event-page.is-ready .hw-quest-panel:not(.is-active) { display: none; }

.hw-panel,
.hw-note-list,
.hw-rank-table,
.hw-compare {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hw-panel { padding: 16px 18px; }

.hw-card-grid,
.hw-shop-grid {
  display: grid;
  gap: 12px;
}

.hw-card-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.hw-mini-card {
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.hw-card-name {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.hw-lineup-intro { margin-bottom: 16px; }

.hw-lineup-intro p:last-child,
.hw-lineup-body p:last-child { margin-bottom: 0; }

.hw-lineup {
  margin: 0 0 18px;
  padding: 4px 0 8px;
}

.hw-lineup h3 {
  margin: 0 0 8px;
  color: var(--gold-deep);
  font-size: 17px;
  line-height: 1.4;
}

.hw-lineup-body ul {
  margin: 0;
  padding-left: 1.2em;
}

.hw-lineup-body li + li { margin-top: 6px; }

.hw-lineup-note {
  margin: 10px 0 0;
  padding: 8px 12px;
  background: var(--paper);
  border-left: 3px solid var(--gold);
  color: var(--gold-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.hw-shop-grid { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.hw-shop-card {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 10px;
  align-items: center;
  padding: 12px;
  background: linear-gradient(180deg, #21462d, #14291b);
  border: 1px solid #d7b15a;
  border-radius: 12px;
  color: #f7f1df;
}

.hw-shop-card .hw-card-name { color: #fff8e8; }

.hw-portrait-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  align-items: flex-start;
  margin-top: 14px;
}

.hw-portrait {
  flex: 0 0 calc((100% - 42px) / 8);
  width: calc((100% - 42px) / 8);
  min-width: 0;
  margin: 0;
}

.hw-portrait-art {
  position: relative;
  aspect-ratio: 1;
  background: #fff;
  overflow: hidden;
}

.hw-portrait-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}

.hw-portrait.is-purple .hw-portrait-frame {
  background-image: url("https://herowarsjpwebfb.com/wp-content/uploads/2026/10/violet-frame.webp");
}

.hw-portrait.is-orange .hw-portrait-frame {
  background-image: url("https://herowarsjpwebfb.com/wp-content/uploads/2026/10/orenge-frame.webp");
}

.hw-portrait.is-red .hw-portrait-frame {
  background-image: url("https://herowarsjpwebfb.com/wp-content/uploads/2026/10/red-frame.webp");
}

.hw-portrait-img {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hw-portrait.is-purple .hw-portrait-img,
.hw-portrait.is-orange .hw-portrait-img,
.hw-portrait.is-red .hw-portrait-img {
  left: 9%;
  top: 9%;
  width: 82%;
  height: 82%;
}

.hw-portrait-badge {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 34%;
  height: 34%;
  overflow: hidden;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
}

.hw-portrait-badge-img,
.hw-event-page .hw-portrait-badge-img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  object-fit: cover;
}

.hw-portrait figcaption {
  margin: 0;
  padding: 3px 2px 4px;
  background: #fff6d8;
  color: #111;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  overflow-wrap: anywhere;
}

@media (max-width: 640px) {
  .hw-portrait figcaption { font-size: 9px; }
}

.hw-shop-icon {
  width: 84px;
  height: 84px;
}

.hw-shop-icon img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: #10180f;
}

.hw-shop-mult {
  margin-left: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.hw-shop-price {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 8px;
  color: #ffd76a;
  font-weight: 800;
}

.hw-coin {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff1a8, #e2a320 55%, #8a5a10);
  box-shadow: inset 0 0 0 2px #f6d56a;
}

.hw-buy {
  display: inline-block;
  padding: 4px 16px;
  border-radius: 8px;
  background: linear-gradient(#46c15a, #1e8a34);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
}

.hw-slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
}

.hw-slider-stage {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #1a120c;
}

.hw-slide {
  display: none;
  margin: 0;
  text-align: center;
}

.hw-slide.is-active { display: block; }

.hw-slide img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.hw-slide figcaption {
  padding: 8px 12px 12px;
  color: #f7f1df;
  font-size: 14px;
}

.hw-slider-count {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.hw-table-scroll { overflow-x: auto; }

.hw-compare,
.hw-rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.hw-compare th,
.hw-compare td,
.hw-rank-table th,
.hw-rank-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.hw-compare th { background: #f8efe3; }

.hw-compare td:first-child,
.hw-compare td:nth-child(2) { white-space: normal; }

.hw-reward-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hw-reward-cell img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
}

.hw-note-list {
  margin: 0;
  padding: 6px 0;
  list-style: none;
}

.hw-note-list li {
  display: grid;
  grid-template-columns: 11em 1fr;
  gap: 12px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
}

.hw-note-list li:last-child { border-bottom: 0; }

.hw-note-list time {
  color: var(--gold);
  font-weight: 700;
}

.hw-empty {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 640px) {
  .hw-event-page h1 { font-size: 26px; }
  .hw-note-list li { grid-template-columns: 1fr; gap: 2px; }
  .hw-shop-grid { grid-template-columns: 1fr; }
}
