@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700;900&family=Noto+Sans+JP:wght@400;700;900&display=swap');

:root {
  --color-bg: #050508;
  --color-surface: rgba(20, 20, 30, 0.6);
  --color-surface-hover: rgba(30, 30, 45, 0.8);
  --color-primary: #00f0ff;
  --color-secondary: #ff003c;
  --color-text-main: #f0f0f5;
  --color-text-muted: #a0a0b0;
  --glow-primary: 0 0 15px rgba(0, 240, 255, 0.6);
  --glow-secondary: 0 0 15px rgba(255, 0, 60, 0.6);
  --font-main: 'Noto Sans JP', 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--color-bg);
  color: var(--color-text-main);
  overflow-x: hidden;
  line-height: 1.6;
}

::selection {
  background: var(--color-primary);
  color: #000;
}

/* Glassmorphism utility */
.glass {
  background: var(--color-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  transition: background 0.3s ease;
}

.header-left .logo {
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-shadow: var(--glow-primary);
}

.header-right nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

.header-right nav a {
  color: var(--color-text-main);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 1px;
  position: relative;
  transition: color 0.3s;
}

.header-right nav a:hover {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.6) contrast(1.2);
  transform: scale(1.05);
  animation: bg-pan 20s infinite alternate ease-in-out;
}

@keyframes bg-pan {
  0% { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, 1%); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(5,5,8,0.2) 0%, rgba(5,5,8,1) 100%);
  z-index: -1;
}

.hero-content {
  text-align: center;
  animation: fade-up 1.5s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  opacity: 0;
  transform: translateY(30px);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: 5rem;
  font-weight: 900;
  letter-spacing: 10px;
  margin-bottom: 20px;
  background: linear-gradient(90deg, #fff, var(--color-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 240, 255, 0.4);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: var(--color-text-muted);
  letter-spacing: 5px;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-block;
  padding: 15px 40px;
  background: transparent;
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 2px;
  border: 1px solid var(--color-primary);
  border-radius: 4px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: var(--glow-primary);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover {
  background: var(--color-primary);
  color: #000;
  box-shadow: 0 0 30px var(--color-primary);
  transform: translateY(-3px);
}

/* Story Section */
.section-story {
  padding: 120px 20px;
  max-w: 800px;
  margin: 0 auto;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 40px;
  letter-spacing: 4px;
  color: var(--color-primary);
  text-shadow: var(--glow-primary);
}

.section-title span {
  color: var(--color-text-main);
}

.story-text {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 2;
}

/* Characters Section */
.section-characters {
  padding: 100px 20px;
  background: rgba(10, 10, 15, 0.8);
}

.char-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  max-w: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.char-card {
  width: 400px;
  height: 600px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.char-card:hover {
  transform: translateY(-15px) scale(1.02);
  box-shadow: 0 30px 60px rgba(0, 240, 255, 0.2);
}

.char-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.char-card:hover .char-img {
  transform: scale(1.1);
}

.char-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 40px 30px 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(20px);
  transition: transform 0.4s ease;
}

.char-card:hover .char-info {
  transform: translateY(0);
}

.char-name {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: 10px;
  text-shadow: var(--glow-secondary);
}

.char-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  opacity: 0;
  transition: opacity 0.4s ease 0.1s;
}

.char-card:hover .char-desc {
  opacity: 1;
}

/* Footer */
footer {
  padding: 60px 20px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-logo {
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 5px;
  margin-bottom: 20px;
}

.footer-copy {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; letter-spacing: 5px; }
  .char-card { width: 100%; height: 500px; }
  .header-right nav ul { gap: 15px; }
}
