* {
  box-sizing: border-box;
}

:root {
  --bg: #080713;
  --panel: rgba(255, 255, 255, 0.055);
  --text: #f8f2ff;
  --muted: #c9bfe4;
  --purple: #b69cff;
  --purple2: #7d64c8;
  --line: rgba(255, 255, 255, 0.22);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(157, 124, 255, 0.22), transparent 32%),
    linear-gradient(180deg, #070611 0%, #111025 100%);
  color: var(--text);
  font-family: "Noto Serif JP", serif;
  overflow-x: hidden;
}

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

.rain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.rain::before {
  content: "";
  position: absolute;
  inset: -200px;
  background-image:
    repeating-linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.13) 0px,
      rgba(255, 255, 255, 0.13) 2px,
      transparent 2px,
      transparent 26px
    );
  background-size: 2px 26px;
  opacity: 0.2;
  animation: rainFall 0.42s linear infinite;
}

.page-hero,
main,
footer {
  position: relative;
  z-index: 2;
}

.page-hero {
  min-height: 52vh;
  display: grid;
  place-items: center;
  padding: 80px 20px 60px;
  text-align: center;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.85) 1px, transparent 1px),
    radial-gradient(circle, rgba(187,156,255,0.7) 1px, transparent 1px);
  background-size: 95px 95px, 145px 145px;
  opacity: 0.38;
  animation: twinkle 5s ease-in-out infinite alternate;
}

.page-hero::after {
  content: "";
  position: absolute;
  width: min(580px, 82vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(182, 156, 255, 0.16);
  filter: blur(48px);
}

.page-hero__inner {
  position: relative;
  z-index: 2;
}

.back-link {
  position: absolute;
  top: 26px;
  left: 28px;
  z-index: 3;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.12em;
}

.symbol {
  margin: 0 0 18px;
  color: var(--purple);
  letter-spacing: 0.38em;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(54px, 10vw, 100px);
  font-weight: 500;
  letter-spacing: 0.26em;
}

.lead {
  margin: 20px auto 0;
  max-width: 680px;
  color: var(--muted);
  letter-spacing: 0.12em;
  line-height: 1.9;
}

main {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.intro,
.add-guide {
  margin: 0 auto 42px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(12px);
}

.intro h2,
.add-guide h2 {
  margin: 0 0 12px;
  font-family: "Cormorant Garamond", serif;
  font-size: 34px;
  letter-spacing: 0.18em;
}

.intro p,
.add-guide p {
  margin: 0;
  color: var(--muted);
  line-height: 2;
}

code {
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin-bottom: 42px;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    rgba(18, 15, 38, 0.72);
  box-shadow: 0 24px 60px rgba(0,0,0,0.34);
  backdrop-filter: blur(14px);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

.work-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.55);
}

.thumb {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(182,156,255,0.22), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
  border-bottom: 1px solid var(--line);
}

.thumb span {
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 26px;
  letter-spacing: 0.18em;
}

.work-body {
  padding: 26px;
}

.category {
  margin: 0 0 10px;
  color: var(--purple);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.work-body h3 {
  margin: 0 0 24px;
  font-size: 21px;
  letter-spacing: 0.08em;
  line-height: 1.6;
}

.meta {
  margin: 0;
}

.meta div {
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.14);
}

.meta dt {
  margin-bottom: 6px;
  color: var(--purple);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.meta dd {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.site-button {
  width: 100%;
  min-height: 50px;
  margin-top: 24px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,0.045);
  color: #fff;
  letter-spacing: 0.12em;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-button:hover {
  background: rgba(182,156,255,0.18);
  box-shadow: 0 0 35px rgba(182,156,255,0.24);
}

footer {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 64px 20px 80px;
  color: var(--muted);
}

.footer-link {
  padding: 12px 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

@keyframes rainFall {
  from {
    transform: translateY(-24px);
  }

  to {
    transform: translateY(24px);
  }
}

@keyframes twinkle {
  from {
    opacity: 0.28;
    transform: translateY(0);
  }

  to {
    opacity: 0.68;
    transform: translateY(-12px);
  }
}

@media (max-width: 960px) {
  .works-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .back-link {
    left: 18px;
  }

  h1 {
    letter-spacing: 0.14em;
  }

  .lead {
    letter-spacing: 0.06em;
  }

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

  .intro,
  .add-guide {
    padding: 24px;
  }
}
