/* ============================================================
   LAYERS ANATOMY — style.css
   共通スタイル / 全ページで読み込む
   ============================================================ */

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

:root {
  --green:      #00FFB4;
  --green-dim:  #00CC90;
  --green-dark: #008F60;
  --green-glow: rgba(0,255,180,0.35);
  --amber:      #FFB000;
  --red:        #FF3030;

  --bg:         #000;
  --bg-panel:   #030B07;
  --bg-card:    #050F09;
  --border:     rgba(0,255,180,0.25);

  --text:       #00FFB4;
  --text-dim:   rgba(0,255,180,0.75);
  --text-muted: rgba(0,255,180,0.5);
  --jp:         #E8F5F0;
  --jp-dim:     rgba(232,245,240,0.85);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Share Tech Mono', monospace;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  font-size: 16px;
}

/* CRTスキャンライン（薄め） */
body::before {
  content: '';
  position: fixed; inset: 0;
  background: repeating-linear-gradient(
    0deg, transparent, transparent 2px,
    rgba(0,0,0,0.04) 2px, rgba(0,0,0,0.04) 4px
  );
  pointer-events: none; z-index: 500;
}

/* ビネット */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(0,0,0,0.6) 100%);
  pointer-events: none; z-index: 8999;
}

/* ── ALERT BAR ── */
.alert {
  position: fixed; top: 0; left: 0; right: 0; z-index: 700;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 6px 0; overflow: hidden;
}
.alert-track {
  display: flex;
  animation: ticker 40s linear infinite;
  white-space: nowrap;
}
.alert-seg {
  display: flex; align-items: center; gap: 20px;
  padding: 0 36px;
  font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--text-dim); flex-shrink: 0;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 600;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px; height: 56px;
}
.nav-bg {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.94);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(6px);
}
.nav-logo {
  position: relative;
  font-family: 'Orbitron', monospace;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--green); text-decoration: none;
  text-shadow: 0 0 14px var(--green-glow);
  display: flex; align-items: center; gap: 10px;
}
.nav-logo img { width: 28px; height: 28px; border-radius: 6px; }
.nav-logo-trademark { width: auto !important; height: 22px !important; border-radius: 0 !important; }
.nav-links {
  position: relative; display: flex; list-style: none;
}
.nav-links a {
  padding: 0 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.75rem; font-weight: 400; letter-spacing: 0.08em;
  color: var(--text-dim); text-decoration: none;
  border-left: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

/* ── LANG SWITCH ── */
.lang-switch {
  position: relative;
  display: flex; align-items: center; gap: 6px;
  font-family: 'Orbitron', monospace;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.14em;
  color: #fff;
  background: none; border: 1px solid rgba(255,255,255,0.5);
  padding: 6px 12px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.lang-switch:hover {
  border-color: rgba(255,255,255,0.9);
  box-shadow: 0 0 10px rgba(255,255,255,0.1);
}

/* ── SECTIONS 共通 ── */
section {
  padding: 48px 24px;
  border-bottom: 1px solid var(--border);
}
.s-eye {
  font-family: 'Orbitron', monospace;
  font-size: 0.62rem; letter-spacing: 0.22em;
  color: var(--green-dim); margin-bottom: 8px;
}
.s-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--green);
  margin-bottom: 20px; line-height: 1.2;
}
.s-rule {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(0,255,180,0.5), transparent);
  margin-bottom: 28px;
}

/* ── PANEL BOX ── */
.panel-box {
  border: 1px solid var(--border);
  background: var(--bg-panel);
  position: relative;
}
.panel-box::before { content:''; position:absolute; top:-1px; left:-1px; width:12px; height:12px; border-top:2px solid var(--green); border-left:2px solid var(--green); }
.panel-box::after  { content:''; position:absolute; bottom:-1px; right:-1px; width:12px; height:12px; border-bottom:2px solid var(--green); border-right:2px solid var(--green); }

/* ── BUTTONS ── */
.btn-primary {
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em;
  color: #000; background: var(--green);
  padding: 14px 28px; text-decoration: none; cursor: pointer;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: box-shadow 0.2s;
  box-shadow: 0 0 14px rgba(0,255,180,0.3);
  display: inline-block;
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(0,255,180,0.55); }

.btn-ghost {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem; font-weight: 400;
  color: var(--text-dim); text-decoration: none;
  border: 1px solid var(--border);
  padding: 13px 24px; cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  display: inline-block;
}
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

/* ── TICKER ── */
.ticker {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 8px 0; overflow: hidden;
}
.ticker-track {
  display: flex;
  animation: ticker2 30s linear infinite;
  white-space: nowrap;
}
.t-item {
  display: flex; align-items: center; gap: 8px;
  padding: 0 24px;
  font-size: 0.72rem; letter-spacing: 0.08em;
  color: var(--text-dim); flex-shrink: 0;
}
.t-item::before { content: '//'; color: var(--green-dark); margin-right: 4px; }
.tv { color: var(--green); }

/* ── PAGE HEADER（サブページ用） ── */
.page-header {
  padding: 110px 24px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}
.page-header-meta {
  font-size: 0.72rem; letter-spacing: 0.1em; color: var(--text-muted);
}

/* ── DOCUMENT（利用規約・PP用） ── */
.doc-body { padding: 40px 24px; max-width: 860px; }
.doc-article {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem; line-height: 2.0;
  color: var(--jp-dim); font-weight: 300;
}
.doc-article h2 {
  font-family: 'Orbitron', monospace;
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--green);
  margin: 36px 0 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
}
.doc-article h2:first-child { margin-top: 0; }
.doc-article p { margin-bottom: 1.2em; }
.doc-article ul, .doc-article ol { margin: 0.8em 0 1.2em 1.4em; }
.doc-article li { margin-bottom: 0.5em; }
.doc-article strong { color: var(--jp); font-weight: 700; }
.doc-article em { color: var(--green); font-style: normal; }
.doc-article a { color: var(--green-dim); }
.doc-article a:hover { color: var(--green); }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  padding: 40px 24px 24px;
}
.footer-bottom {
  display: flex; flex-direction: column; gap: 14px;
  align-items: center; text-align: center;
}
.footer-links {
  display: flex; gap: 20px; flex-wrap: wrap; justify-content: center;
}
.footer-links a {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem; color: var(--text-dim);
  text-decoration: none; transition: color 0.2s;
}
.footer-links a:hover { color: var(--green); }
.footer-disc {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.82rem; color: var(--amber);
  line-height: 1.8; max-width: 680px; font-weight: 400;
}
.footer-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.7rem; color: var(--text-muted);
  letter-spacing: 0.08em; padding-bottom: 8px;
}
.footer-apple-cr,
.footer-steam-cr {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.6rem; color: var(--text-muted);
  line-height: 1.4; max-width: 680px;
  text-align: center; font-weight: 300;
  margin-bottom: 0;
}

/* ── ANIMATIONS ── */
@keyframes blink    { 0%,100%{opacity:1}50%{opacity:0} }
@keyframes ticker   { from{transform:translateX(0)}to{transform:translateX(-50%)} }
@keyframes ticker2  { from{transform:translateX(0)}to{transform:translateX(-50%)} }
.ticker-track { animation-duration: 15s !important; }
@keyframes scan     { 0%{top:0%;opacity:0}10%{opacity:1}90%{opacity:1}100%{top:100%;opacity:0} }
@keyframes glitch   { 0%,100%{transform:translateX(0)}91%{transform:translateX(0)}92%{transform:translateX(-3px);opacity:.82}93%{transform:translateX(3px)}94%{transform:translateX(-1px)}95%{transform:translateX(0)} }

/* ── UTILITY ── */
.blink { animation: blink 1s step-end infinite; }
.amber { color: var(--amber); }
.green { color: var(--green); }
.muted { color: var(--text-muted); }
.jp    { color: var(--jp); }

/* ── BACK TO TOP ── */
.back-to-top-wrap {
  background: var(--bg);
  border-top: 1px solid var(--border);
  text-align: center;
  padding: 0;
}
.back-to-top {
  display: inline-flex; align-items: center; gap: 10px;
  width: 100%; justify-content: center;
  padding: 20px;
  font-family: 'Orbitron', monospace;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em;
  color: var(--text-dim);
  background: none; border: none; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.back-to-top:hover {
  color: var(--green);
  background: var(--bg-panel);
}
.btt-arrow {
  font-size: 1rem;
  transition: transform 0.2s;
}
.back-to-top:hover .btt-arrow {
  transform: translateY(-3px);
}

/* ── RESPONSIVE（スマホ優先） ── */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }

  section, .doc-body, .page-header { padding-left: 16px; padding-right: 16px; }

  .footer-inner { padding: 32px 16px 20px; }
  .footer-links { gap: 14px; }
  .footer-links a { font-size: 0.9rem; }
  .footer-disc { font-size: 0.8rem; }
  .footer-copy { font-size: 0.75rem; }
}
/* ── NAV TRADEMARK LOGO ── */
.nav-logo-trademark {
  height: 18px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0,255,180,0.3));
}
.nav-logo-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  object-fit: cover;
}