:root {
  --bg-gradient-start: #ffe6fa;
  --bg-gradient-mid: #e3f2fd;
  --bg-gradient-end: #e0f7fa;
  --text-main: #334155;
  --text-light: #64748b;
  --accent-primary: #ff007f;   /* マゼンタピンク */
  --accent-secondary: #00d2ff; /* 明るいシアン */
  --accent-tertiary: #ffde00;  /* ハッピーイエロー */
  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 255, 255, 0.8);
  --glass-shadow: rgba(0, 150, 255, 0.15);
  --font-en: 'Inter', 'Orbitron', sans-serif;
  --font-ja: 'M PLUS Rounded 1c', 'Noto Sans JP', sans-serif;
}

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

body {
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-mid), var(--bg-gradient-end));
  background-attachment: fixed;
  color: var(--text-main);
  font-family: var(--font-ja);
  line-height: 1.8;
  overflow-x: hidden;
  position: relative;
}

/* Background grid & canvas */
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}

.overlay-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(255, 0, 127, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 210, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  pointer-events: none;
}

/* Container */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-ja);
  margin-bottom: 20px;
  letter-spacing: 1px;
}

h2 {
  font-size: 1.8rem;
  color: var(--accent-primary);
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
  font-weight: 800;
}

h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  border-radius: 2px;
}

p, li {
  margin-bottom: 15px;
  font-size: 1.1rem;
  color: var(--text-main);
}

a {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: all 0.3s;
}

a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s ease-out;
}

a:hover {
  color: var(--accent-secondary);
}

a:hover::after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

/* Glassmorphism content area */
.content {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 2px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  margin-top: 40px;
  box-shadow: 0 10px 30px var(--glass-shadow), inset 0 0 20px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}

/* Bright Pop Accent Line */
.content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 6px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-secondary), var(--accent-primary), var(--accent-tertiary));
}

ul {
  list-style-type: none;
  padding-left: 10px;
}

ul li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

ul li::before {
  content: '✨';
  position: absolute;
  left: 0;
  font-size: 1rem;
  line-height: 1.8;
}

blockquote {
  background: rgba(255, 255, 255, 0.8);
  border-left: 5px solid var(--accent-secondary);
  padding: 20px;
  margin: 20px 0;
  border-radius: 0 12px 12px 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

blockquote p {
  margin-bottom: 0;
  font-size: 1rem;
  color: var(--text-light);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 60px 0 30px;
}

.title-wrapper {
  display: inline-block;
  position: relative;
}

.pop-title {
  font-family: var(--font-en);
  font-size: 4.5rem;
  font-weight: 900;
  color: transparent;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary), var(--accent-tertiary), var(--accent-primary));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
  text-shadow: 3px 3px 0px rgba(255, 255, 255, 0.8), 6px 6px 15px rgba(0, 210, 255, 0.3);
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.subtitle {
  font-family: var(--font-ja);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: 4px;
  color: var(--accent-primary);
  margin-top: 15px;
  background: var(--glass-bg);
  display: inline-block;
  padding: 5px 20px;
  border-radius: 20px;
  border: 1px solid var(--glass-border);
}

.footer {
  text-align: center;
  margin-top: 60px;
  padding-top: 30px;
  padding-bottom: 30px;
  font-size: 0.95rem;
  color: var(--text-light);
  font-weight: bold;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.content h2, .content p, .content ul, .content blockquote {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.content.active h2, .content.active p, .content.active ul, .content.active blockquote {
  opacity: 1;
  transform: translateY(0);
}

.content.active h2 { transition-delay: 0.1s; }
.content.active p { transition-delay: 0.2s; }
.content.active ul { transition-delay: 0.3s; }
.content.active blockquote { transition-delay: 0.4s; }

/* Language Switcher Logic */
body.lang-state-ja .lang-en { display: none !important; }
body.lang-state-en .lang-ja { display: none !important; }

/* Language Switcher UI */
.lang-switcher {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  background: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 30px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  z-index: 100;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.lang-switcher button {
  background: transparent;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-en);
  font-weight: 900;
  font-size: 0.9rem;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s;
}

.lang-switcher button.active {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  box-shadow: 0 2px 10px rgba(0, 210, 255, 0.3);
}
