/* ===================================
   AI皮肉bot — サイバーパンクスタイル
   =================================== */

:root {
  --bg-dark: #050a0f;
  --bg-card: #0a1520;
  --bg-card2: #081018;
  --cyan: #00f5ff;
  --cyan-dim: #00c8d4;
  --pink: #ff2d78;
  --pink-dim: #cc1f5f;
  --yellow: #ffd600;
  --green: #00ff88;
  --text: #c8dde8;
  --text-dim: #5a7a8a;
  --border: rgba(0, 245, 255, 0.15);
  --glow-cyan: 0 0 8px #00f5ff, 0 0 20px rgba(0,245,255,0.4);
  --glow-pink: 0 0 8px #ff2d78, 0 0 20px rgba(255,45,120,0.4);
  --font-mono: 'Share Tech Mono', monospace;
  --font-jp: 'Noto Sans JP', sans-serif;
  --font-orb: 'Orbitron', sans-serif;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* ===== NOISE OVERLAY ===== */
.noise-overlay {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.5;
}

/* ===== SCANLINES ===== */
.scanlines {
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 245, 255, 0.015) 2px,
    rgba(0, 245, 255, 0.015) 4px
  );
  pointer-events: none;
  z-index: 9998;
}

/* ===== PARTICLE CANVAS ===== */
#particle-canvas {
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
}

/* ===== GLITCH EFFECT ===== */
.glitch {
  position: relative;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
}
.glitch::before {
  color: var(--cyan);
  animation: glitch-1 3s infinite linear alternate-reverse;
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  text-shadow: none;
}
.glitch::after {
  color: var(--pink);
  animation: glitch-2 2.5s infinite linear alternate-reverse;
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  text-shadow: none;
}

@keyframes glitch-1 {
  0%   { transform: translate(0); }
  10%  { transform: translate(-3px, 0); }
  20%  { transform: translate(3px, 0); }
  30%  { transform: translate(0, 2px); }
  40%  { transform: translate(-2px, -1px); }
  50%  { transform: translate(2px, 1px); }
  60%  { transform: translate(0); }
  100% { transform: translate(0); }
}
@keyframes glitch-2 {
  0%   { transform: translate(0); }
  15%  { transform: translate(3px, 0); }
  25%  { transform: translate(-3px, 0); }
  35%  { transform: translate(0, -2px); }
  45%  { transform: translate(2px, 1px); }
  55%  { transform: translate(-2px, -1px); }
  65%  { transform: translate(0); }
  100% { transform: translate(0); }
}

.glitch-block {
  display: inline-block;
  position: relative;
}
.glitch-block::before,
.glitch-block::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
}
.glitch-block::before {
  color: var(--cyan);
  animation: glitch-1 4s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
}
.glitch-block::after {
  color: var(--pink);
  animation: glitch-2 3.5s infinite;
  clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

/* ===== ACCENT COLORS ===== */
.accent-cyan { color: var(--cyan); text-shadow: var(--glow-cyan); }
.accent-pink { color: var(--pink); text-shadow: var(--glow-pink); }

/* ===== SECTION BASE ===== */
section {
  position: relative;
  z-index: 1;
  padding: 100px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  opacity: 0.8;
}

.section-title {
  font-family: var(--font-orb);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #fff;
  text-shadow: 0 0 30px rgba(0, 245, 255, 0.3);
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(5, 10, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  font-family: var(--font-orb);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cyan);
  cursor: default;
}

.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  transition: color 0.2s, text-shadow 0.2s;
}
.nav-links a:hover {
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 40px 60px;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 1;
  overflow: hidden;
}

/* グリッドの装飾ライン */
.hero::before {
  content: '';
  position: absolute;
  top: 0; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(0,245,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 50px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,45,120,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--green);
  border: 1px solid rgba(0,255,136,0.3);
  padding: 6px 14px;
  border-radius: 2px;
  margin-bottom: 32px;
  width: fit-content;
  background: rgba(0,255,136,0.05);
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse-dot 1.5s infinite;
  box-shadow: 0 0 6px var(--green);
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.8); }
}

.hero-title {
  font-family: var(--font-jp);
  font-weight: 900;
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1.2;
  margin-bottom: 32px;
  color: #fff;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.15rem);
  color: var(--text-dim);
  margin-bottom: 48px;
  line-height: 2;
  max-width: 600px;
}

/* typewriter */
#typewriter {
  font-family: var(--font-mono);
  color: var(--cyan);
  font-size: 1rem;
}
.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--cyan);
  margin-left: 2px;
  animation: blink-cursor 0.8s step-end infinite;
  vertical-align: text-bottom;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* ===== BUTTONS ===== */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-family: var(--font-jp);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::before { opacity: 0.08; }

.btn-primary {
  background: var(--cyan);
  color: var(--bg-dark);
  font-weight: 900;
  box-shadow: var(--glow-cyan), 0 4px 20px rgba(0,245,255,0.2);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 12px #00f5ff, 0 0 40px rgba(0,245,255,0.6), 0 8px 30px rgba(0,245,255,0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--pink);
  border-color: var(--pink);
  box-shadow: var(--glow-pink);
}
.btn-secondary:hover {
  background: rgba(255,45,120,0.1);
  transform: translateY(-2px);
  box-shadow: 0 0 12px #ff2d78, 0 0 40px rgba(255,45,120,0.5);
}

/* ===== HERO STATS ===== */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat { text-align: left; }
.stat-num {
  display: block;
  font-family: var(--font-orb);
  font-size: 2rem;
  font-weight: 900;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
}
.stat-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
}
.stat-divider {
  color: var(--border);
  font-size: 2rem;
}

/* ===== HERO SCROLL ===== */
.hero-scroll {
  position: absolute;
  bottom: 32px; right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
}
.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--cyan), transparent);
  animation: scroll-anim 2s ease-in-out infinite;
}
@keyframes scroll-anim {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ===== ABOUT ===== */
.about {
  border-top: 1px solid var(--border);
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 36px 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.about-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.about-card:hover { 
  border-color: rgba(0,245,255,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(0,245,255,0.1);
}
.about-card:hover::before { transform: translateX(100%); }

.card-icon {
  font-size: 2rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  margin-bottom: 20px;
}
.about-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
  font-family: var(--font-jp);
}
.about-card p {
  font-size: 0.9rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ===== SAMPLES ===== */
.samples {
  border-top: 1px solid var(--border);
}

.section-desc {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: -8px;
  margin-bottom: 48px;
  font-family: var(--font-mono);
}

.posts-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  opacity: 0;
  transform: translateY(30px);
}
.post-card.visible {
  animation: card-appear 0.6s ease forwards;
}
@keyframes card-appear {
  to { opacity: 1; transform: translateY(0); }
}
.post-card:hover {
  border-color: rgba(255,45,120,0.4);
  transform: translateY(-4px);
  box-shadow: 0 8px 40px rgba(255,45,120,0.1);
}
.post-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--pink), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.post-card:hover::after { opacity: 1; }

.post-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.post-avatar {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-orb);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--bg-dark);
  flex-shrink: 0;
}
.post-meta { flex: 1; }
.post-name {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}
.post-handle {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}
.post-platform {
  font-size: 1.1rem;
  color: var(--text-dim);
}

.post-text {
  font-size: 0.92rem;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 20px;
}
.highlight {
  background: rgba(0,245,255,0.08);
  border-left: 2px solid var(--cyan);
  padding: 2px 8px;
  margin: 0 2px;
  color: #fff;
  display: inline;
}

.post-footer {
  display: flex;
  gap: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.post-footer i { margin-right: 4px; }

/* ===== FOLLOW ===== */
.follow {
  border-top: 1px solid var(--border);
  max-width: 100%;
  padding: 0;
  background: linear-gradient(180deg, transparent, rgba(0,245,255,0.03), transparent);
}

.follow-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 100px 40px;
  text-align: center;
}

.follow-title {
  font-family: var(--font-jp);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: 24px;
  line-height: 1.2;
}

.follow-sub {
  font-size: 1.05rem;
  color: var(--text-dim);
  line-height: 2;
  margin-bottom: 48px;
}

.follow-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn-x, .btn-insta {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 32px;
  border-radius: 4px;
  font-size: 1.5rem;
  min-width: 200px;
  border: 1px solid;
  transition: all 0.3s;
}
.btn-x div, .btn-insta div {
  text-align: left;
}
.btn-main {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-jp);
}
.btn-sub {
  display: block;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  opacity: 0.7;
}

.btn-x {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.2);
  color: #fff;
}
.btn-x:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,255,255,0.1);
}

.btn-insta {
  background: rgba(255,45,120,0.08);
  border-color: rgba(255,45,120,0.3);
  color: var(--pink);
}
.btn-insta:hover {
  background: rgba(255,45,120,0.15);
  border-color: var(--pink);
  transform: translateY(-3px);
  box-shadow: var(--glow-pink);
}

/* ===== TERMINAL BOX ===== */
.terminal-box {
  background: #020810;
  border: 1px solid rgba(0,245,255,0.2);
  border-radius: 6px;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 0 40px rgba(0,245,255,0.05);
}
.terminal-header {
  background: #0a1520;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(0,245,255,0.1);
}
.t-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
}
.t-dot.red    { background: #ff5f57; }
.t-dot.yellow { background: #febc2e; }
.t-dot.green  { background: #28c840; }
.t-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 8px;
}

.terminal-body {
  padding: 24px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 2;
}
.t-prompt { color: var(--cyan); }
.t-output { color: var(--text-dim); padding-left: 16px; }
.t-output.success { color: var(--green); }
.t-output.warn { color: var(--yellow); }

.blink {
  animation: blink-cursor 0.8s step-end infinite;
  color: var(--cyan);
}

/* ===== FOOTER ===== */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 60px 40px 40px;
  border-top: 1px solid var(--border);
}

.footer-logo {
  font-family: var(--font-orb);
  font-size: 1.5rem;
  color: var(--cyan);
  text-shadow: var(--glow-cyan);
  cursor: default;
  margin-bottom: 16px;
}

.footer-sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  font-size: 1.3rem;
}
.footer-links a {
  color: var(--text-dim);
  transition: color 0.2s, text-shadow 0.2s;
}
.footer-links a:hover { color: var(--cyan); text-shadow: var(--glow-cyan); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .navbar { padding: 16px 20px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 0.7rem; }

  section { padding: 70px 20px; }
  .hero { padding: 100px 20px 60px; }
  .hero-stats { gap: 20px; }
  .stat-num { font-size: 1.5rem; }
  .hero-scroll { display: none; }

  .about-grid,
  .posts-container {
    grid-template-columns: 1fr;
  }

  .follow-buttons { flex-direction: column; align-items: center; }
  .btn-x, .btn-insta { width: 100%; max-width: 320px; justify-content: center; }

  .follow-inner { padding: 70px 20px; }
}

@media (max-width: 480px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2rem; }
  .hero-buttons { flex-direction: column; }
  .btn { justify-content: center; }
}
