/* Global site theming, layout primitives, and shared component styles */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css');
:root {
  --bg: #0c0c10;
  --panel: rgba(255, 255, 255, 0.04);
  --card: rgba(255, 255, 255, 0.06);
  --stroke: rgba(255, 255, 255, 0.08);
  --muted: #b4b7c9;
  --text: #eef0f6;
  --accent: #ff2e3c;
  --accent-2: #ff7a1b;
  --glow: 0 12px 60px rgba(255, 46, 60, 0.35);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f6f3;
    --panel: rgba(12, 12, 16, 0.04);
    --card: rgba(12, 12, 16, 0.06);
    --stroke: rgba(12, 12, 16, 0.08);
    --muted: #4a4d5e;
    --text: #0f1020;
    --glow: 0 10px 50px rgba(255, 46, 60, 0.28);
  }
}

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

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 22% 18%, rgba(255, 46, 60, 0.06), transparent 28%),
    radial-gradient(circle at 78% 6%, rgba(255, 122, 27, 0.08), transparent 32%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  text-rendering: optimizeLegibility;
}

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

img {
  max-width: 100%;
  display: block;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: linear-gradient(120deg, rgba(12, 12, 16, 0.92), rgba(12, 12, 16, 0.7));
  border-bottom: 1px solid var(--stroke);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.logo {
  font-family: "Oswald", sans-serif;
  letter-spacing: 4px;
  font-size: 26px;
  color: var(--text);
  padding: 8px 14px;
  border: 1px solid var(--stroke);
  border-radius: 10px;
  background: linear-gradient(120deg, rgba(255, 46, 60, 0.08), rgba(255, 122, 27, 0.06));
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  padding: 10px 12px;
  font-weight: 600;
  color: var(--muted);
  border-radius: 10px;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--stroke);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button {
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: rgba(255, 46, 60, 0.2);
  border-color: rgba(255, 46, 60, 0.5);
}

.drawer {
  position: fixed;
  inset: 0 auto 0 -320px;
  width: 320px;
  background: rgba(12, 12, 16, 0.96);
  border-right: 1px solid var(--stroke);
  box-shadow: 16px 0 60px rgba(0, 0, 0, 0.35);
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.68, -0.4, 0.32, 1.4);
  transform: translateX(0);
  z-index: 50;
}

.drawer.open {
  transform: translateX(320px);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: 0.3s ease;
  z-index: 45;
}

.drawer-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.drawer a {
  padding: 12px 10px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

.drawer a:hover {
  color: var(--text);
  background: var(--panel);
}

.drawer .drawer-section {
  border-top: 1px solid var(--stroke);
  padding-top: 10px;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.hero {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  padding: 80px 70px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 46, 60, 0.16), transparent 36%),
    linear-gradient(135deg, rgba(12, 12, 16, 0.94), rgba(12, 12, 16, 0.6));
  min-height: 340px;
  display: grid;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(12, 12, 16, 0.7), rgba(12, 12, 16, 0.2));
  z-index: 0;
}

.hero[data-hero]::after {
  content: "";
  position: absolute;
  inset: 0;
  background: center/cover no-repeat var(--hero-image);
  opacity: 0.35;
  z-index: 0;
  filter: saturate(1.2);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 620px;
  display: grid;
  gap: 18px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 46, 60, 0.18);
  color: var(--text);
  font-weight: 700;
  letter-spacing: 1px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: 1px;
}

.hero p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), #ff4e63);
  color: #0c0c10;
  box-shadow: 0 10px 30px rgba(255, 46, 60, 0.28);
}

.btn.outline {
  border-color: var(--stroke);
  color: var(--text);
  background: var(--panel);
}

.btn.active {
  border-color: rgba(255, 46, 60, 0.7);
  color: var(--text);
  background: rgba(255, 46, 60, 0.18);
}

.btn.outline:hover {
  border-color: rgba(255, 46, 60, 0.55);
  color: #fff;
}

.section {
  margin: 60px 0;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section h2 {
  margin: 0;
  font-size: 26px;
  letter-spacing: 1px;
}

.muted {
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 46, 60, 0.5);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.26);
}

.card h3 {
  margin: 0 0 6px;
  letter-spacing: 0.5px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 46, 60, 0.16);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.news-card {
  display: grid;
  gap: 10px;
}

.news-card time {
  font-size: 13px;
  color: var(--muted);
}

.news-card .cta {
  color: var(--accent);
  font-weight: 700;
}

.pill-rail {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  padding: 8px 12px;
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--muted);
  border-radius: 999px;
  font-weight: 600;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.social-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer {
  border-top: 1px solid var(--stroke);
  padding: 28px 24px 50px;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.surface {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 18px;
}

.list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.social-circle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0 6px;
  align-items: center;
}

.social-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--card);
  color: #fff;
  border: 1px solid var(--stroke);
  box-shadow: var(--glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.social-circle:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.social-circle[data-platform="discord"] { background: #5865f2; }
.social-circle[data-platform="x"] { background: #0f1419; }
.social-circle[data-platform="instagram"] {
  background: radial-gradient(circle at 30% 30%, #feda75 0, #d62976 45%, #962fbf 70%, #4f5bd5 100%);
}
.social-circle[data-platform="youtube"] { background: #ff0000; }
.social-circle[data-platform="twitch"] { background: #9146ff; }
.social-circle[data-platform="tiktok"] { background: #111; }

.social-circle i {
  font-size: 18px;
  line-height: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.search {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--panel);
  border-radius: 12px;
  border: 1px solid var(--stroke);
}

.search input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 15px;
}

.search input:focus {
  outline: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255, 122, 27, 0.16);
  color: var(--text);
  font-weight: 700;
  font-size: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
}

/* -------- Legacy layouts: bring them into the new shell look -------- */
header:not(.site-header) {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(120deg, rgba(12, 12, 16, 0.92), rgba(12, 12, 16, 0.72));
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(12px);
}

header:not(.site-header) .left-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

header:not(.site-header) nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}

header:not(.site-header) nav ul a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  transition: 0.2s ease;
}

header:not(.site-header) nav ul a:hover {
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 0 0 1px var(--stroke);
}

.menu-button {
  background: var(--panel);
  border: 1px solid var(--stroke);
  color: var(--text);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.menu-box {
  background: rgba(12, 12, 16, 0.95);
  border-right: 1px solid var(--stroke);
}

.menu-box a {
  color: var(--text);
}

.menu-box a:hover {
  background: rgba(255, 46, 60, 0.12);
  color: var(--accent);
}

.page,
body > section,
body > main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.hero {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  padding: 80px 70px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 46, 60, 0.2), transparent 35%),
    linear-gradient(135deg, rgba(12, 12, 16, 0.95), rgba(12, 12, 16, 0.65));
  min-height: 320px;
  display: grid;
  align-items: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: center/cover no-repeat var(--hero-image, none);
  opacity: 0.35;
  z-index: 0;
  filter: saturate(1.1);
}

.hero .hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  max-width: 620px;
}

.teams,
.jobs-section,
.products,
.partners,
.faq-container,
.terms-container,
.privacy-container,
.application-section,
.extra {
  background: transparent;
}

.team-card,
.job-card,
.product-card,
.partner-card,
.faq-question,
.terms-container,
.privacy-container,
.application-section,
.news-card,
.card {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  box-shadow: var(--glow);
}

.team-card:hover,
.job-card:hover,
.product-card:hover,
.partner-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 46, 60, 0.4);
}

.extra {
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 40px 24px;
  background: linear-gradient(120deg, rgba(255, 46, 60, 0.08), rgba(12, 12, 16, 0.2));
}

.team-grid,
.jobs-grid,
.product-grid,
.partner-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  align-items: stretch;
}

.team-card,
.job-card,
.product-card,
.partner-card,
.news-card {
  padding: 18px;
  display: grid;
  gap: 10px;
  text-align: left;
}

.team-card h3,
.job-card h3,
.product-card h3,
.news-card h3 {
  margin: 0;
}

.team-card p,
.job-card p,
.product-card p,
.news-card p {
  margin: 0;
  color: var(--muted);
}

.jobs-section h2,
.teams h2,
.products h2,
.partners h2,
.faq-container h1,
.terms-container h1,
.privacy-container h1 {
  color: var(--text);
  margin-bottom: 12px;
}

.faq-container,
.terms-container,
.privacy-container,
.application-section {
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.application-section input,
.application-section textarea,
.contact-container input,
.contact-container textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--stroke);
  background: var(--panel);
  color: var(--text);
}

.video-container iframe {
  width: 100%;
  border-radius: 18px;
  border: 1px solid var(--stroke);
  background: var(--panel);
}

@media (max-width: 900px) {
  header:not(.site-header) {
    flex-wrap: wrap;
  }
  .page,
  body > section,
  body > main {
    padding: 28px 16px;
  }
  .hero {
    padding: 60px 28px;
    border-radius: 22px;
  }
}
@media (max-width: 900px) {
  .header-inner {
    padding: 14px 18px;
  }
  .nav-links {
    display: none;
  }
  .hero {
    padding: 60px 28px;
    border-radius: 22px;
  }
  .page {
    padding: 24px 16px 64px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
}
