/* ===== RESET & BASE ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: #f5f5f5;
  background:
    radial-gradient(circle at top right, rgba(120, 70, 255, 0.22), transparent 35%),
    radial-gradient(circle at bottom left, rgba(0, 255, 160, 0.12), transparent 35%),
    #050505;
  min-height: 100vh;
}

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

/* ===== HEADER ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 10;
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 56px;
  background: rgba(5, 5, 5, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.5px;
  white-space: nowrap;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
}

nav a {
  transition: color 0.2s ease;
  position: relative;
  padding-bottom: 3px;
}

nav a:hover {
  color: #fff;
}

nav a.current {
  color: #fff;
}

nav a.current::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: #a780ff;
  border-radius: 2px;
}

/* ===== LAYOUT ===== */
main {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding-top: 130px;
}

footer {
  width: min(1280px, calc(100% - 96px));
  margin: 0 auto;
  padding: 32px 0 46px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===== TOP PAGE — HERO ===== */
.hero {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  background-image: url('/images/hero-bg.png');
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(5,5,5,0.88) 45%, rgba(5,5,5,0.3));
  z-index: 0;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 24px;
  color: #a780ff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(68px, 8vw, 128px);
  line-height: 0.92;
  letter-spacing: -0.08em;
}

.lead {
  max-width: 660px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
  line-height: 1.9;
}

/* ===== TOPIC GRID ===== */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 310px;
  gap: 18px;
  margin: 52px 0 90px;
}

.topic-card {
  position: relative;
  overflow: hidden;
  min-height: 310px;
  border-radius: 28px;
  background: #151515;
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: block;
}

.topic-card.large {
  grid-column: span 2;
  grid-row: span 2;
}

.topic-card.wide {
  grid-column: span 2;
}

.topic-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.62) saturate(1.08);
  transform: scale(1.02);
  transition: transform 0.5s ease, filter 0.5s ease;
}

.topic-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.82), transparent 62%),
    linear-gradient(to right, rgba(0, 0, 0, 0.28), transparent 50%);
}

.card-text {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  bottom: 22px;
}

.card-text span {
  color: #9b5cff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.card-text h2 {
  margin: 8px 0 8px;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.card-text p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  line-height: 1.6;
}

.topic-card:hover {
  transform: translateY(-8px);
  border-color: rgba(167, 128, 255, 0.75);
  box-shadow: 0 24px 80px rgba(120, 70, 255, 0.22);
}

.topic-card:hover img {
  transform: scale(1.1);
  filter: brightness(0.86) saturate(1.25);
}

/* ===== CATEGORY PAGE — HERO ===== */
.page-hero {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 52px;
}

.page-hero .eyebrow {
  margin-bottom: 16px;
}

.page-hero h1 {
  font-size: clamp(52px, 7vw, 96px);
  margin: 0 0 24px;
  line-height: 0.95;
}

.page-hero .lead {
  margin: 0;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding: 10px 22px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 100px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.72);
  width: fit-content;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.back-link:hover {
  background: rgba(120, 70, 255, 0.2);
  border-color: rgba(167, 128, 255, 0.5);
  color: #fff;
}

/* ===== CATEGORY PAGE — CONTENT ===== */
.section-heading {
  margin: 0 0 28px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.9);
}

.content-section + .content-section {
  margin-top: 64px;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 90px;
}

.item-card {
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.item-card:hover {
  transform: translateY(-6px);
  border-color: rgba(167, 128, 255, 0.55);
  box-shadow: 0 16px 60px rgba(120, 70, 255, 0.18);
}

.item-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}

.item-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.88) saturate(1.05);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.item-card:hover .item-card-img img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.15);
}

.item-card-body {
  padding: 20px 22px 26px;
}

.item-card-body h3 {
  margin: 0 0 10px;
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.2;
  font-weight: 700;
}

.item-card-body p {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.75;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 4px 12px;
  background: rgba(120, 70, 255, 0.18);
  border: 1px solid rgba(120, 70, 255, 0.38);
  border-radius: 100px;
  font-size: 12px;
  color: #a780ff;
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ===== MUSIC PAGE — GENRE / MV ===== */
.genre-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 40px 0 80px;
}

.genre-grid .topic-card {
  min-height: 0;
  height: 260px;
}

.genre-heading {
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a780ff;
  border-left: 3px solid #a780ff;
  padding-left: 12px;
}

.mv-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 90px;
}

.mv-card {
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.mv-card:hover {
  border-color: rgba(167, 128, 255, 0.55);
  box-shadow: 0 16px 60px rgba(120, 70, 255, 0.18);
}

.mv-embed {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #111;
}

.mv-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.mv-info {
  padding: 18px 22px 22px;
}

.mv-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.mv-info p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.75;
}

/* ===== SKILL LIST (Work page) ===== */
.skill-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 90px;
}

.skill-item {
  background: #0e0e0e;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 22px 24px;
  transition: border-color 0.25s ease;
}

.skill-item:hover {
  border-color: rgba(167, 128, 255, 0.4);
}

.skill-item h3 {
  margin: 0 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.skill-item p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== LOADING STATE ===== */
.loading-state {
  padding: 60px 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 16px;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero {
  animation: fadeUp 0.8s ease forwards;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .skill-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 0 24px;
  }

  nav {
    display: none;
  }

  main,
  footer {
    width: min(100% - 36px, 1280px);
  }

  .topic-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }

  .topic-card.large,
  .topic-card.wide {
    grid-column: span 1;
    grid-row: span 1;
  }

  h1 {
    font-size: 58px;
  }

  .page-hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 600px) {
  .item-grid {
    grid-template-columns: 1fr;
  }

  .lead {
    font-size: 16px;
  }
}
