@charset "utf-8";

/* =========================
   Base
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  margin: 0;
  background: #0b0b0b;
  color: #f5f5f5;
  font-family: "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  font-size: 1.6rem;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* =========================
   Layout
========================= */
.container {
  width: min(100% - 32px, 1100px);
  margin: 0 auto;
}

/* =========================
   Header
========================= */
.page-header {
  padding: 30px 0 30px 0;
  background:
    linear-gradient(135deg, rgba(216, 42, 218, 0.16), rgba(72, 30, 163, 0.18)),
    rgba(17, 17, 17, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  width: 100%;
  backdrop-filter: blur(9px);
  z-index: 50;
}

.page-label {
  margin: 0 0 8px;
  font-size: 1.3rem;
  letter-spacing: .18em;
  color: #d82ada;
  text-transform: uppercase;
}

.page-title {
  margin: 0 0 16px;
  font-size: clamp(3.2rem, 5vw, 5.0rem);
  line-height: 1.15;
}

.page-text {
  margin: 0;
  max-width: 720px;
  color: rgba(255, 255, 255, .78);
}

/* =========================
   Works
========================= */
.works-page {
  padding: 48px 0 72px 0;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 200px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .32);
  border-color: rgba(216, 42, 218, .4);
}

.work-thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #222;
}

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

.work-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex: 1;
}

.work-category {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #d82ada;
}

.work-title {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.3;
}

.work-description {
  margin: 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1.4rem;
  display: inline-block;
  /* 中身の幅に合わせる */
  text-align: left;
  /* 中身の行は左揃え */
}

.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.work-tags li {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(72, 30, 163, .35);
  color: #f3edff;
  font-size: 1.2rem;
  line-height: 1.4;
}

.work-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #d82ada, #481ea3);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  transition: opacity .25s ease, transform .25s ease;
}

.work-link:hover {
  opacity: .92;
  transform: translateY(-1px);
}

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

@media (max-width: 768px) {
  .page-header {
    padding: 56px 0 32px;
  }

  .works-page {
    padding: 36px 0 56px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .work-body {
    padding: 18px;
  }

  .work-title {
    font-size: 2.0rem;
  }
}