﻿:root {
  --bg: #07090d;
  --panel: rgba(10, 14, 22, 0.82);
  --panel-strong: rgba(14, 20, 30, 0.92);
  --border: rgba(215, 226, 245, 0.14);
  --text: #f2f5fb;
  --muted: #b3bece;
  --accent: #8ad7ff;
  --accent-strong: #ffd36f;
  --shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(138, 215, 255, 0.1), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 211, 111, 0.08), transparent 24%),
    linear-gradient(180deg, #0b0e13 0%, #06080c 100%);
}

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

img {
  display: block;
  width: 100%;
}

input {
  font: inherit;
}

.page-shell {
  width: min(1640px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.hero,
.subpage-hero,
.info-panel,
.title-card,
.filter-panel,
.quick-search-panel,
.collab-card,
.overview-card,
.product-card {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(6, 9, 14, 0.9) 0%, rgba(6, 9, 14, 0.78) 46%, rgba(6, 9, 14, 0.45) 100%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.18), rgba(9, 12, 18, 0.78)),
    url("../images/bg-top-dark-city.png") center/cover no-repeat;
}

.hero::before,
.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 22%, rgba(138, 215, 255, 0.18), transparent 26%);
}

.hero-content,
.subpage-hero-content {
  position: relative;
  z-index: 1;
  max-width: min(88%, 1080px);
  padding: 34px 40px 40px;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border-radius: 30px;
  background:
    linear-gradient(90deg, rgba(6, 9, 14, 0.92) 0%, rgba(6, 9, 14, 0.76) 52%, rgba(6, 9, 14, 0.4) 100%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.14), rgba(9, 12, 18, 0.74)),
    url("../images/umamusume-banner-wide.png") center/cover no-repeat;
}

.back-link {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(7, 10, 16, 0.52);
  color: var(--text);
  font-weight: 700;
}

.eyebrow,
.section-label,
.card-tag {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.subpage-hero h1,
.section-heading h2,
.info-panel h2,
.filter-panel h2,
.quick-search-panel h2,
.filter-group h3,
.guide-group h3,
.title-card h3,
.collab-card h3 {
  margin: 0;
  line-height: 1.06;
}

.hero h1,
.subpage-hero h1 {
  max-width: 16ch;
  font-size: clamp(3rem, 7vw, 5.8rem);
}

.hero-copy {
  max-width: min(88%, 60rem);
  margin: 16px 0 10px;
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
}

.hero-subcopy {
  max-width: min(88%, 60rem);
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
  color: var(--muted);
}

main {
  margin-top: 34px;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 20px;
  padding: 0 4px;
}

.section-heading-stack {
  display: block;
}

.section-heading h2,
.info-panel h2,
.filter-panel h2,
.quick-search-panel h2 {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.section-copy,
.info-panel p,
.card-body p,
.filter-panel p,
.quick-search-panel p,
.collab-card p {
  margin: 14px 0 0;
  line-height: 1.75;
  color: var(--muted);
}

.list-meta {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid rgba(138, 215, 255, 0.16);
  border-radius: 999px;
  background: rgba(138, 215, 255, 0.08);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-search-panel {
  margin-bottom: 32px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(11, 16, 25, 0.96), rgba(9, 13, 20, 0.98));
}

.quick-search-heading {
  max-width: 760px;
}

.quick-search-box {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.035);
}

.quick-search-icon {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(138, 215, 255, 0.12);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quick-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.quick-search-box input::placeholder {
  color: var(--muted);
}

.guide-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.guide-group {
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.guide-group h3 {
  font-size: 1rem;
}

.guide-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.guide-chip {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.guide-chip.is-highlighted {
  border-color: rgba(138, 215, 255, 0.24);
  background: rgba(138, 215, 255, 0.12);
  color: var(--text);
}

.card-grid,
.collab-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.title-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(15, 20, 31, 0.96), rgba(11, 15, 24, 0.98));
}

.title-card-featured {
  grid-column: span 6;
  border-color: rgba(138, 215, 255, 0.3);
  background: linear-gradient(180deg, rgba(15, 25, 39, 0.98), rgba(9, 13, 22, 1));
}

.title-card:not(.title-card-featured) {
  grid-column: span 6;
}

.card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1119;
}

.card-media::after,
.collab-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.08), rgba(6, 9, 14, 0.5));
}

.card-media img,
.collab-thumb img {
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}

.card-media-link,
.collab-thumb-link {
  display: block;
  color: inherit;
}

.card-title-link {
  color: inherit;
}

.card-media-link:hover img,
.card-media-link:focus-visible img,
.collab-thumb-link:hover img,
.collab-thumb-link:focus-visible img {
  transform: scale(1.05);
}

.card-title-link:hover,
.card-title-link:focus-visible {
  color: var(--accent);
}

.title-card-featured .card-media {
  aspect-ratio: 16 / 8.4;
}

.card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0;
  padding: 26px 28px 28px;
}

.title-card h3,
.collab-card h3 {
  font-size: 1.8rem;
}

.title-card-featured h3 {
  font-size: 2.4rem;
}

.title-card-featured .card-tag {
  color: var(--accent-strong);
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin-top: auto;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.title-card-featured .card-button {
  background: linear-gradient(135deg, rgba(138, 215, 255, 0.18), rgba(255, 211, 111, 0.16));
  border-color: rgba(138, 215, 255, 0.34);
}

.filter-panel {
  margin-bottom: 30px;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 17, 26, 0.96), rgba(10, 14, 21, 0.98));
}

.filter-panel-heading {
  max-width: 700px;
}

.filter-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.filter-group {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
}

.filter-group h3 {
  font-size: 1.05rem;
}

.filter-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.filter-chip {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.filter-chip.is-active {
  border-color: rgba(138, 215, 255, 0.24);
  background: rgba(138, 215, 255, 0.12);
  color: var(--text);
}

.collab-grid-rich {
  align-items: stretch;
}

.collab-card {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(15, 20, 31, 0.96), rgba(11, 15, 24, 0.98));
}

.collab-card-rich {
  min-height: 100%;
}

.collab-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1119;
}

.collab-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 24px;
}

.info-panel {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
  padding: 28px 30px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(12, 17, 26, 0.96), rgba(10, 14, 21, 0.98));
}

.info-panel-compact {
  align-items: center;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 240px;
}

.footer-links a {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.subpage-hero-collab {
  background:
    linear-gradient(90deg, rgba(6, 9, 14, 0.92) 0%, rgba(6, 9, 14, 0.76) 52%, rgba(6, 9, 14, 0.38) 100%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.14), rgba(9, 12, 18, 0.74)),
    url("../images/umamusume-hero-main.png") center/cover no-repeat;
}

.subpage-hero-content-wide {
  max-width: 760px;
}

.breadcrumb-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.section-heading-simple {
  display: block;
  margin-bottom: 18px;
  padding: 0;
}

.overview-panel {
  margin-bottom: 30px;
}

.overview-grid,
.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.overview-card {
  grid-column: span 4;
  padding: 24px;
}

.overview-grid-two .overview-card {
  grid-column: span 6;
}

.overview-card h3,
.product-card h3 {
  margin: 0;
  line-height: 1.12;
}

.overview-card p,
.product-card p {
  margin: 14px 0 0;
  line-height: 1.75;
  color: var(--muted);
}

.overview-card ul {
  margin: 14px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.overview-card li + li {
  margin-top: 8px;
}

.product-card {
  grid-column: span 6;
  overflow: hidden;
}

.product-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d1119;
}

.product-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.08), rgba(6, 9, 14, 0.46));
}

.product-thumb img {
  height: 100%;
  object-fit: cover;
}

.product-card-body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 24px;
}

.product-details {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.product-details summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--text);
}

.product-details[open] summary {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.market-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 16px 16px;
}

.market-links a {
  display: inline-flex;
  padding: 10px 14px;
  border: 1px solid rgba(138, 215, 255, 0.16);
  border-radius: 999px;
  background: rgba(138, 215, 255, 0.08);
  color: var(--text);
  font-weight: 700;
}

.market-links span {
  width: 100%;
  color: var(--muted);
  line-height: 1.6;
}

.reference-section {
  margin-top: 26px;
}

.reference-panel {
  max-width: 980px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.reference-lede {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.75;
}

.reference-block + .reference-block {
  margin-top: 18px;
}

.reference-block h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.35;
}

.reference-block ul {
  margin: 10px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.7;
}

.reference-block li + li {
  margin-top: 8px;
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.reference-links a {
  color: var(--muted);
  font-weight: 700;
}

.reference-links a:hover,
.reference-links a:focus-visible {
  color: var(--text);
}

@media (max-width: 860px) {
  .page-shell {
    width: min(calc(100% - 28px), 1640px);
    padding-top: 14px;
  }

  .hero,
  .subpage-hero {
    min-height: 360px;
    background-position: 64% center;
  }

  .hero-content,
  .subpage-hero-content {
    padding: 22px 20px 24px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .guide-groups,
  .filter-groups,
  .card-grid,
  .collab-grid,
  .overview-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .title-card,
  .title-card-featured,
  .title-card:not(.title-card-featured),
  .collab-card,
  .overview-card,
  .product-card {
    grid-column: auto;
  }

  .quick-search-panel,
  .filter-panel,
  .info-panel {
    padding: 24px;
  }

  .quick-search-box {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    min-width: 0;
    width: 100%;
  }
}

.guide-groups-single {
  grid-template-columns: minmax(0, 1fr);
}

.guide-groups-single .guide-group {
  max-width: 720px;
}

.filter-groups-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-search-box {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.filter-search-icon {
  flex: 0 0 auto;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(138, 215, 255, 0.12);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.filter-search-box input::placeholder {
  color: var(--muted);
}

@media (max-width: 860px) {
  .filter-groups-three {
    grid-template-columns: 1fr;
  }

  .filter-search-box {
    align-items: flex-start;
    flex-direction: column;
  }
}


.subpage-hero-collab-entry {
  min-height: clamp(360px, 46vw, 430px);
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(9, 12, 18, 0.1), rgba(9, 12, 18, 0.34)),
    rgba(5, 8, 13, 0.88);
}

.subpage-hero-collab-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.subpage-hero-collab-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
  cursor: zoom-in;
}

.subpage-hero-collab-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.84) 0%, rgba(5, 8, 13, 0.62) 42%, rgba(5, 8, 13, 0.24) 78%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.24), rgba(9, 12, 18, 0.7));
}

.subpage-hero-collab-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.subpage-hero-collab-entry::before {
  background:
    linear-gradient(90deg, rgba(5, 8, 13, 0.5) 0%, rgba(5, 8, 13, 0.2) 100%),
    radial-gradient(circle at 78% 20%, rgba(138, 215, 255, 0.14), transparent 24%);
}

.subpage-hero-collab-entry .subpage-hero-content-wide {
  max-width: min(88%, 1240px);
  padding: 32px 34px 34px;
}

.subpage-hero-collab-entry .subpage-hero-content {
  z-index: 2;
}

.subpage-hero-collab-entry h1 {
  max-width: min(88%, 32ch);
  font-size: clamp(2.1rem, 4.5vw, 3.55rem);
  line-height: 1.12;
  text-wrap: balance;
}

.subpage-hero-collab-entry .hero-copy,
.subpage-hero-collab-entry .hero-subcopy {
  max-width: min(88%, 72rem);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.subpage-hero-collab-entry .hero-copy {
  margin-top: 14px;
  line-height: 1.74;
}

.subpage-hero-collab-entry .hero-subcopy {
  color: #d7dfeb;
}

.subpage-hero-collab-entry .hero-meta-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 760px;
  margin-top: 16px;
}

.subpage-hero-collab-entry .hero-meta-line {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(7, 10, 16, 0.46);
  color: #d7dfeb;
  line-height: 1.65;
  backdrop-filter: blur(4px);
}

.collab-card-body {
  padding: 24px 24px 26px;
}

.collab-card-body h3 {
  line-height: 1.16;
  text-wrap: balance;
}

.collab-card-body p {
  line-height: 1.72;
}

.collab-card-primary .collab-card-body {
  padding: 24px 24px 28px;
}

.collab-card-primary h3 {
  font-size: 1.9rem;
}

.product-thumb {
  aspect-ratio: 16 / 10;
  padding: 14px;
}

.product-thumb::after {
  inset: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(6, 9, 14, 0.04), rgba(6, 9, 14, 0.26));
}

.product-thumb img {
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.product-card-body {
  padding: 22px 24px 24px;
}

.product-card-body h3 {
  font-size: 1.52rem;
  line-height: 1.18;
}

.product-card-body > p {
  font-size: 0.98rem;
  line-height: 1.72;
}

.product-details summary {
  font-size: 0.97rem;
}

.market-links {
  gap: 12px;
}

.market-links span {
  font-size: 0.92rem;
}

.product-grid-catalog .product-card {
  grid-column: span 4;
}

.product-grid-catalog .product-thumb {
  aspect-ratio: 1 / 1;
}

.product-grid-catalog .product-card-body h3 {
  font-size: 1.34rem;
}

.product-card-wide {
  grid-column: span 8;
}

.postcard-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 4px;
}

.postcard-mini-grid img {
  aspect-ratio: 2 / 3;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

@media (min-width: 1500px) {
  .collab-card {
    grid-column: span 3;
  }

  .product-card,
  .product-grid-catalog .product-card {
    grid-column: span 3;
  }

  .product-card-wide {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .subpage-hero-collab-entry {
    min-height: 340px;
    padding: 12px;
  }

  .subpage-hero-collab-media::after {
    background:
      linear-gradient(180deg, rgba(5, 8, 13, 0.84) 0%, rgba(5, 8, 13, 0.46) 52%, rgba(5, 8, 13, 0.22) 100%),
      linear-gradient(180deg, rgba(9, 12, 18, 0.18), rgba(9, 12, 18, 0.7));
  }

  .subpage-hero-collab-entry .subpage-hero-content-wide {
    padding: 24px 20px 28px;
  }

  .subpage-hero-collab-entry h1 {
    max-width: 100%;
    font-size: clamp(1.9rem, 7.4vw, 2.7rem);
  }

  .subpage-hero-collab-entry .hero-copy {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .subpage-hero-collab-entry .hero-meta-stack {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 14px;
  }

  .subpage-hero-collab-entry .hero-meta-line {
    padding: 9px 12px;
  }

  .product-thumb {
    padding: 12px;
  }

  .product-thumb::after {
    inset: 12px;
  }

  .product-grid-catalog .product-card,
  .product-card-wide {
    grid-column: auto;
  }
}
