/* ============================================================
   LAYERS ANATOMY — style.css
   共通スタイル / 全ページで読み込む
   修正はこのファイルのみ触ればOK
   ============================================================ */

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

:root {
  --green:      #00FF41;
  --green-dim:  #00C832;
  --green-dark: #008F20;
  --green-glow: rgba(0,255,65,0.35);
  --amber:      #FFB000;
  --red:        #FF3030;

  --bg:         #000;
  --bg-panel:   #030B03;
  --bg-card:    #050F05;
  --border:     rgba(0,255,65,0.2);

  --text:       #00FF41;
  --text-dim:   rgba(0,255,65,0.5);
  --text-muted: rgba(0,255,65,0.28);
  --jp:         #E8F5E8;
  --jp-dim:     rgba(232,245,232,0.65);
}

html { scroll-behavior: smooth; }

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

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

/* ビネット */
body::after {
  content: '';
  position: fixed; inset: 0;
  background: radial-gradient(ellipse at center, transparent 42%, rgba(0,0,0,0.75) 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: 5px 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.54rem; letter-spacing: 0.16em;
  color: var(--text-dim); flex-shrink: 0;
}

/* ── NAV ── */
nav {
  position: fixed; top: 26px; left: 0; right: 0; z-index: 600;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px; height: 52px;
}
.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.22em;
  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: 30px; height: 30px; border-radius: 7px; }
.nav-links {
  position: relative; display: flex; list-style: none;
}
.nav-links a {
  padding: 0 13px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.52rem; font-weight: 400; letter-spacing: 0.12em;
  color: var(--text-dim); text-decoration: none;
  border-left: 1px solid var(--border);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }
.nav-tag {
  position: relative;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.6rem; color: var(--amber);
  border: 1px solid rgba(255,176,0,0.3);
  padding: 4px 12px; font-weight: 400;
}

/* ── SECTIONS 共通 ── */
section {
  padding: 60px 52px;
  border-bottom: 1px solid var(--border);
}
.s-eye {
  font-family: 'Orbitron', monospace;
  font-size: 0.48rem; letter-spacing: 0.26em;
  color: var(--green-dark); margin-bottom: 6px;
}
.s-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2.4rem);
  font-weight: 700; color: var(--green);
  margin-bottom: 24px; line-height: 1.2;
}
.s-rule {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(0,255,65,0.4), transparent);
  margin-bottom: 32px;
}

/* ── 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.58rem; font-weight: 600; letter-spacing: 0.16em;
  color: #000; background: var(--green);
  padding: 13px 28px; text-decoration: none; cursor: pointer;
  clip-path: polygon(8px 0%,100% 0%,calc(100% - 8px) 100%,0% 100%);
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 14px rgba(0,255,65,0.3);
  display: inline-block;
}
.btn-primary:hover { box-shadow: 0 0 28px rgba(0,255,65,0.55); }

.btn-ghost {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.78rem; 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); }

/* ── DISCLAIMER ── */
.disc {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 12px 52px;
}
.disc p {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.6rem; color: var(--text-muted);
  line-height: 1.8; max-width: 900px;
  margin: 0 auto; text-align: center; font-weight: 300;
}

/* ── LANG SWITCH BUTTON ── */
.lang-switch {
  position: relative;
  display: flex; align-items: center; gap: 5px;
  font-family: 'Orbitron', monospace;
  font-size: 0.46rem; font-weight: 600; letter-spacing: 0.14em;
  color: var(--text-dim);
  background: none; border: 1px solid var(--border);
  padding: 5px 10px; cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.lang-switch:hover { color: var(--green); border-color: var(--green); }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 52px 24px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.footer-brand {
  display: flex; align-items: flex-start; gap: 14px;
}
.footer-logo-img {
  width: 44px; height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border);
  flex-shrink: 0;
}
.footer-title {
  font-family: 'Orbitron', monospace;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--green);
  margin-bottom: 5px;
  text-shadow: 0 0 10px var(--green-glow);
}
.footer-sub {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.68rem; color: var(--text-dim);
  line-height: 1.6; font-weight: 300;
}
.footer-meta {
  display: flex; flex-direction: column; gap: 10px;
}
.footer-meta-row {
  display: grid; grid-template-columns: 100px 1fr;
  gap: 12px; align-items: baseline;
}
.footer-meta-key {
  font-family: 'Orbitron', monospace;
  font-size: 0.42rem; letter-spacing: 0.14em;
  color: var(--green-dark);
}
.footer-meta-val {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.72rem; color: var(--jp-dim);
  line-height: 1.6; font-weight: 300;
}
.footer-meta-val a {
  color: var(--green-dim); text-decoration: none;
}
.footer-meta-val a:hover { color: var(--green); }
.footer-bottom {
  display: flex; flex-direction: column; gap: 12px; 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.64rem; color: var(--text-muted);
  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.6rem; color: var(--text-muted);
  line-height: 1.8; max-width: 680px; font-weight: 300;
}
.footer-copy {
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.56rem; color: var(--text-muted);
  letter-spacing: 0.1em;
  padding-bottom: 8px;
}

/* ── TICKER ── */
.ticker {
  background: var(--bg-panel);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 7px 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 26px;
  font-size: 0.5rem; letter-spacing: 0.1em;
  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: 120px 52px 48px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-panel);
}
.page-header .s-eye { margin-bottom: 8px; }
.page-header .s-title { margin-bottom: 8px; }
.page-header-meta {
  font-size: 0.5rem; letter-spacing: 0.14em; color: var(--text-muted);
}

/* ── DOCUMENT BODY（利用規約・PP用） ── */
.doc-body {
  padding: 48px 52px;
  max-width: 860px;
}
.doc-article {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.84rem; line-height: 2.1;
  color: var(--jp-dim); font-weight: 300;
}
.doc-article h2 {
  font-family: 'Orbitron', monospace;
  font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.18em; 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); }

/* ── 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%)} }
@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)} }
@keyframes fadeIn   { from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(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); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  nav { padding: 0 20px; }
  .nav-links { display: none; }
  section, .doc-body, .page-header { padding-left: 20px; padding-right: 20px; }
  .footer-inner { padding: 32px 20px 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .footer-meta-row { grid-template-columns: 80px 1fr; }
}