/* ============================================================
   READECK NOVA — style.css
   Shared styles for index.html, news.html, contact.html
   ============================================================ */

/* ─── TOKENS ─── */
:root {
  --glass-bg: rgba(255,255,255,0.07);
  --glass-border: rgba(255,255,255,0.18);
  --glass-blur: blur(18px);
  --accent-cyan: #00e5ff;
  --accent-teal: #00bcd4;
  --accent-ice: #e0f7fa;
  --accent-mint: #80deea;
  --dark: #020b12;
  --dark2: #040f18;
  --text-primary: #f0fafe;
  --text-secondary: rgba(224,247,250,0.7);
  --text-muted: rgba(176,224,230,0.45);
  --edge: #00e5ff;
}

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text-primary);
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  overflow-x: hidden;
  cursor: default;
}

/* ─── NOISE GRAIN ─── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 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.035'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* ─── AMBIENT BLOBS ─── */
.ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ambient span { position: absolute; border-radius: 50%; filter: blur(100px); animation: drift 18s infinite alternate ease-in-out; }
.ambient span:nth-child(1) { width: 600px; height: 600px; background: radial-gradient(circle, rgba(0,229,255,0.12), transparent 70%); top: -10%; left: -10%; animation-duration: 20s; }
.ambient span:nth-child(2) { width: 500px; height: 500px; background: radial-gradient(circle, rgba(0,150,136,0.1), transparent 70%); top: 40%; right: -15%; animation-duration: 25s; animation-delay: -8s; }
.ambient span:nth-child(3) { width: 400px; height: 400px; background: radial-gradient(circle, rgba(100,220,255,0.08), transparent 70%); bottom: -5%; left: 30%; animation-duration: 22s; animation-delay: -4s; }
@keyframes drift { 0%{transform:translate(0,0) scale(1)} 100%{transform:translate(40px,30px) scale(1.08)} }

/* ─── NAV BAR ─── */
#lang-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 60px;
  background: rgba(2,11,18,0.55);
  backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid var(--glass-border);
}
.logo-nav {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem;
  letter-spacing: 0.12em; color: var(--accent-cyan); text-transform: uppercase;
  text-shadow: 0 0 18px rgba(0,229,255,0.5); text-decoration: none;
}
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  display: flex; gap: 2px; background: rgba(0,229,255,0.07); border-radius: 30px;
  padding: 3px; border: 1px solid rgba(0,229,255,0.2);
}
.lang-btn {
  background: none; border: none; color: var(--text-muted);
  font-family: 'Space Mono', monospace; font-size: 0.75rem;
  padding: 5px 16px; border-radius: 25px; cursor: pointer; transition: all 0.3s; letter-spacing: 0.08em;
}
.lang-btn.active { background: var(--accent-cyan); color: var(--dark); font-weight: 700; box-shadow: 0 0 14px rgba(0,229,255,0.5); }
.lang-btn:hover:not(.active) { color: var(--accent-cyan); }

/* ─── DIVIDER ─── */
.divider {
  width: 100%; height: 1px; position: relative; overflow: hidden; margin: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(0,229,255,0.25) 30%, rgba(0,229,255,0.6) 50%, rgba(0,229,255,0.25) 70%, transparent 100%);
}
.divider::after {
  content: ''; position: absolute; top: 0; left: -100%; width: 60%;
  height: 100%; background: linear-gradient(90deg, transparent, rgba(0,229,255,0.8), transparent);
  animation: slide 3s linear infinite;
}
@keyframes slide { to{left:200%} }

/* ─── SECTION LAYOUT ─── */
.section {
  position: relative; z-index: 2;
  max-width: 1100px; margin: 0 auto; padding: 100px 40px;
}
.edge-line {
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, transparent, var(--accent-cyan), transparent); opacity: 0.4;
}
.section-label {
  font-family: 'Space Mono', monospace; font-size: 0.65rem; letter-spacing: 0.35em;
  color: var(--accent-cyan); text-transform: uppercase; margin-bottom: 18px; opacity: 0.85;
}
.section-title {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 3rem); line-height: 1.1;
  margin-bottom: 32px; color: var(--text-primary); position: relative;
}
.section-title::after {
  content: ''; display: block; width: 48px; height: 2px;
  background: var(--accent-cyan); margin-top: 14px; box-shadow: 0 0 10px rgba(0,229,255,0.7);
}

/* ─── GLASS CARDS ─── */
.glass-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  border-radius: 20px; backdrop-filter: var(--glass-blur);
  position: relative; overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,0.5), transparent);
}
.glass-card:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,229,255,0.1); }

/* ─── BUTTONS ─── */
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 24px; border-radius: 30px;
  background: transparent; border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan); font-family: 'Space Mono', monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-decoration: none; text-transform: uppercase;
  transition: all 0.3s; cursor: pointer;
}
.btn-outline:hover {
  background: var(--accent-cyan); color: var(--dark); box-shadow: 0 0 20px rgba(0,229,255,0.5);
}
.btn-outline svg { width: 12px; height: 12px; }

/* ─── FOOTER ─── */
footer {
  position: relative; z-index: 2;
  background: rgba(2,11,18,0.9); backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border); padding: 60px 40px 36px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-brand {
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.4rem;
  color: var(--accent-cyan); letter-spacing: 0.1em;
  text-shadow: 0 0 20px rgba(0,229,255,0.4); margin-bottom: 36px;
}
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-col-title {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem;
  color: var(--text-primary); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 25px;
  border: 1px solid rgba(0,229,255,0.2); background: rgba(0,229,255,0.04);
  color: var(--text-secondary); font-size: 0.8rem; text-decoration: none;
  transition: all 0.3s; width: fit-content; cursor: pointer;
}
.footer-link:hover { border-color: var(--accent-cyan); color: var(--accent-cyan); box-shadow: 0 0 14px rgba(0,229,255,0.2); }
.footer-link svg { width: 14px; height: 14px; flex-shrink: 0; }
.ig-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.3s; text-decoration: none; flex-shrink: 0;
}
.ig-icon:hover { transform: scale(1.1); box-shadow: 0 0 16px rgba(220,39,67,0.5); }
.ig-icon svg { width: 16px; height: 16px; fill: white; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid rgba(0,229,255,0.1); flex-wrap: wrap; gap: 16px;
}
.footer-privacy {
  color: var(--text-muted); font-size: 0.75rem; font-family: 'Space Mono', monospace;
  letter-spacing: 0.08em; cursor: pointer; text-decoration: underline;
  text-underline-offset: 3px; transition: color 0.2s; background: none; border: none;
}
.footer-privacy:hover { color: var(--accent-cyan); }
.footer-copy { color: var(--text-muted); font-size: 0.72rem; font-family: 'Space Mono', monospace; letter-spacing: 0.08em; }

/* ─── LANGUAGE VISIBILITY ─── */
body.lang-en [data-ja] { display: none !important; }
body.lang-ja [data-en] { display: none !important; }

/* ─── SCROLL REVEAL ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media(max-width:768px) {
  #lang-bar { padding: 0 20px; }
  .section { padding: 80px 24px; }
  .footer-cols { grid-template-columns: 1fr; }
}
