@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

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

:root {
  --green: #80ff00;
  --green2: #00ff00;
  --dark: #1f2617;
  --dark2: #2a3320;
  --dark3: #151c0f;
  --text: #e8f5d0;
  --text-muted: #a8c870;
  --accent: #ff2d6b;
  --accent2: #ffcc00;
  --font: 'Roboto', system-ui, -apple-system, sans-serif;
  --nav-h: 64px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--dark);
  color: var(--text);
}

body.body-root {
  font-family: var(--font);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--dark);
}

/* ── Marquee ── */
.marquee-bar {
  background: var(--green);
  color: var(--dark);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  overflow: hidden;
  white-space: nowrap;
  padding: 6px 0;
  position: relative;
  z-index: 50;
}

.marquee-track {
  overflow: hidden;
}

.marquee-inner {
  display: inline-block;
  animation: marquee-scroll 28s linear infinite;
  padding-left: 100%;
}

.marquee-inner span {
  margin: 0 0.4em;
}

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-inner { animation: none; padding-left: 1rem; }
}

/* ── Header / Nav ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--dark3);
  border-bottom: 3px solid var(--green);
  height: var(--nav-h);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  height: 100%;
  gap: 1rem;
}

.nav-left,
.nav-right {
  flex: 1;
  min-width: 0;
}

.nav-right {
  display: flex;
  justify-content: flex-end;
}

.brand-center {
  flex-shrink: 0;
  text-align: center;
}

.brand-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.site-logo {
  max-height: 40px;
  width: auto;
}

.nav-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-dl dd {
  margin: 0;
}

.nav-dl dd a {
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-dl dd a:hover,
.nav-dl dd a:focus {
  color: var(--green);
  background: rgba(128,255,0,0.08);
  outline: none;
}

/* ── Hero ── */
.hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--dark2);
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  scroll-margin-top: var(--nav-h);
}

.hero-inner {
  display: flex;
  align-items: stretch;
  min-height: 45vh;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}

.hero-media {
  flex: 1 1 52%;
  position: relative;
  min-height: 240px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark3);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(150%);
}

.hero-placeholder {
  width: 100%;
  height: 100%;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: repeating-linear-gradient(
    45deg,
    var(--dark3) 0px,
    var(--dark3) 20px,
    var(--dark2) 20px,
    var(--dark2) 40px
  );
}

.hero-noise {
  font-size: 9rem;
  font-weight: 700;
  color: var(--green);
  opacity: 0.18;
  user-select: none;
  filter: blur(1px);
}

.hero-sticker {
  position: absolute;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  padding: 4px 10px;
  z-index: 5;
}

.sticker-1 {
  top: 18px;
  left: 14px;
  background: var(--green);
  color: var(--dark);
  transform: rotate(-4deg);
}

.sticker-2 {
  bottom: 22px;
  left: 28px;
  background: var(--accent);
  color: #fff;
  transform: rotate(3deg);
}

.hero-copy {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
  padding: 2.5rem 2rem 2.5rem 1.5rem;
  gap: 1.25rem;
}

.hero-h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--green);
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 340px;
  line-height: 1.6;
}

.hero-btn {
  display: inline-block;
  background: var(--green);
  color: var(--dark);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 2rem;
  text-decoration: none;
  letter-spacing: 0.06em;
  transition: background 0.15s, transform 0.12s;
  min-height: 44px;
}

.hero-btn:hover,
.hero-btn:focus {
  background: var(--green2);
  transform: scale(1.03);
  outline: 2px solid var(--green2);
}

.hero-slash {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 56px;
  background: var(--dark);
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}

/* ── Main Layout ── */
.main-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 1rem 3rem;
}

.content-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

/* ── Aside ── */
.site-aside {
  flex: 0 0 220px;
  width: 220px;
  position: sticky;
  top: calc(var(--nav-h) + 1rem);
}

.aside-inner {
  background: var(--dark2);
  border-left: 4px solid var(--green);
  padding: 1.25rem 1rem;
  position: relative;
  overflow: hidden;
}

.aside-title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--green);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}

.aside-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.aside-links li a {
  display: block;
  padding: 0.45rem 0.5rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.12s, background 0.12s;
}

.aside-links li a:hover,
.aside-links li a:focus {
  color: var(--green);
  background: rgba(128,255,0,0.07);
  outline: none;
}

.aside-sticker {
  font-size: 2.5rem;
  position: absolute;
  bottom: 8px;
  right: 10px;
  opacity: 0.35;
  pointer-events: none;
}

.aside-tip {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  border-top: 1px solid rgba(128,255,0,0.18);
  padding-top: 0.75rem;
}

/* ── Article / Section ── */
.main-article {
  flex: 1 1 0;
  min-width: 0;
}

.content-section {
  background: var(--dark2);
  padding: 2rem;
}

.section-label {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* page.content typography */
.content-section h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--green);
  margin: 2rem 0 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px solid rgba(128,255,0,0.25);
}

.content-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.5rem 0 0.4rem;
}

.content-section p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 1rem;
}

.content-section ul,
.content-section ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.content-section li {
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.content-section a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-section a:hover {
  color: var(--green2);
}

.content-section article {
  scroll-margin-top: calc(var(--nav-h) + 1.5rem);
  margin-bottom: 1rem;
}

.content-section strong {
  color: var(--green);
  font-weight: 700;
}

/* ── Footer ── */
.site-footer {
  background: var(--dark3);
  border-top: 3px solid var(--green);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  max-width: 100%;
}

.footer-brand {
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.06em;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ── Footer Nav (outside footer element) ── */
.footer-nav-wrap {
  background: var(--dark2);
  padding: 1rem;
  border-top: 1px solid rgba(128,255,0,0.15);
}

.footer-nav {
  max-width: 1280px;
  margin: 0 auto;
}

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  margin: 0;
  padding: 0;
}

.footer-dl dt {
  margin: 0;
}

.footer-dl dt a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.12s;
}

.footer-dl dt a:hover,
.footer-dl dt a:focus {
  color: var(--green);
  outline: none;
}

/* ── Floating Stickers ── */
.sticker-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.float-sticker {
  position: absolute;
  font-size: 1.5rem;
  opacity: 0.06;
  color: var(--green);
  animation: jitter 6s ease-in-out infinite;
}

.fs-a { top: 20%; left: 3%;  animation-delay: 0s;    transform: rotate(12deg);  }
.fs-b { top: 60%; left: 96%; animation-delay: 1.5s;  transform: rotate(-8deg);  }
.fs-c { top: 80%; left: 5%;  animation-delay: 3s;    transform: rotate(20deg);  }
.fs-d { top: 35%; left: 94%; animation-delay: 4.5s;  transform: rotate(-15deg); }

@keyframes jitter {
  0%, 100% { transform: translate(0,0) rotate(12deg); }
  25%       { transform: translate(2px,-3px) rotate(14deg); }
  50%       { transform: translate(-2px,2px) rotate(10deg); }
  75%       { transform: translate(1px,3px) rotate(13deg); }
}

@media (prefers-reduced-motion: reduce) {
  .float-sticker { animation: none; }
}

/* ── Scroll margin for sections ── */
article[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

/* ── Mobile ── */
@media (max-width: 768px) {
  :root { --nav-h: 56px; }

  .header-inner {
    gap: 0.5rem;
    padding: 0 0.5rem;
  }

  .nav-dl dd a {
    padding: 0 0.4rem;
    font-size: 0.75rem;
    height: var(--nav-h);
  }

  .logo-text {
    font-size: 1rem;
  }

  .hero-inner {
    flex-direction: column;
    min-height: auto;
  }

  .hero-media {
    min-height: 200px;
    flex: none;
    width: 100%;
  }

  .hero-copy {
    align-items: flex-start;
    text-align: left;
    padding: 1.5rem 1rem;
  }

  .hero-sub {
    max-width: 100%;
  }

  .hero-slash {
    display: none;
  }

  .content-layout {
    flex-direction: column;
  }

  .site-aside {
    position: static;
    width: 100%;
    flex: none;
  }

  .content-section {
    padding: 1.25rem 1rem;
  }

  .main-wrap {
    padding: 1.5rem 0.75rem 2rem;
  }

  .site-footer {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

  .footer-dl {
    justify-content: center;
  }

  .footer-dl dt a {
    padding: 0 0.5rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .nav-dl {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav-dl dd a {
    font-size: 0.7rem;
    padding: 0 0.35rem;
  }

  .hero-h1 {
    font-size: 1.6rem;
  }
}

button[aria-expanded]{min-width:44px;min-height:44px}
