/* ====== GO JOB demo site ====== */
:root {
  --green: #00e07e;
  --green-bright: #7cffc4;
  --green-dim: rgba(0, 224, 126, 0.22);
  --bg: #030806;
  --panel: rgba(4, 16, 10, 0.62);
  --text: #e8f5ee;
  --muted: #9fb8aa;
  --font-en: "Space Grotesk", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
  /* z-index scale */
  --z-content: 10;
  --z-dots: 30;
  --z-header: 50;
  --z-loader: 100;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }

::selection { background: var(--green); color: #02130a; }

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #020503; }
::-webkit-scrollbar-thumb { background: #0c3a24; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #11593a; }

a { color: var(--green); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }

/* ===== Loader ===== */
#loader {
  position: fixed; inset: 0; z-index: var(--z-loader);
  background: #020503;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease;
}
#loader.done { opacity: 0; pointer-events: none; }
.loader-inner { text-align: center; width: min(320px, 80vw); }
.loader-logo {
  font-family: var(--font-en); font-weight: 700; font-size: 2.4rem; letter-spacing: 0.04em;
}
.loader-logo .go { color: var(--green); }
.loader-logo .job { color: var(--text); font-family: var(--font-jp); font-weight: 900; font-size: 0.88em; margin-left: 0.1em; }
#loader-msg {
  font-family: var(--font-en); font-size: 0.78rem; letter-spacing: 0.3em;
  color: var(--muted); margin: 1.4rem 0 0.9rem; min-height: 1.2em;
}
.loader-bar {
  height: 2px; background: #0c2417; border-radius: 1px; overflow: hidden;
}
#loader-fill {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  box-shadow: 0 0 12px var(--green);
  transition: width 0.3s ease;
}

/* ===== 3D scene ===== */
#scene {
  position: fixed; inset: 0; z-index: 0;
}
#scene canvas { display: block; }

/* ===== Header ===== */
#site-header {
  position: fixed; top: 1rem; left: 1rem; right: 1rem; z-index: var(--z-header);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.4rem;
  background: rgba(3, 10, 6, 0.55);
  border: 1px solid var(--green-dim);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
#site-header .logo {
  font-family: var(--font-en); font-weight: 700; font-size: 1.3rem;
  text-decoration: none; letter-spacing: 0.04em;
}
#site-header .logo .go { color: var(--green); }
#site-header .logo .job { color: var(--text); font-family: var(--font-jp); font-weight: 900; font-size: 0.88em; margin-left: 0.1em; }
#site-header nav { display: flex; align-items: center; gap: 1.6rem; }
#site-header nav a {
  color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  transition: color 0.2s ease;
}
#site-header nav a:hover { color: var(--green-bright); }
#site-header nav a.nav-cta {
  color: #02130a; background: var(--green);
  padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 700;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
#site-header nav a.nav-cta:hover {
  background: var(--green-bright);
  box-shadow: 0 0 18px rgba(0, 224, 126, 0.55);
}

/* ===== Dots nav ===== */
#dots {
  position: fixed; right: 1.4rem; top: 50%; transform: translateY(-50%);
  z-index: var(--z-dots);
  display: flex; flex-direction: column; gap: 14px;
}
#dots a {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1px solid var(--green); background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  cursor: pointer;
}
#dots a.active {
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  transform: scale(1.25);
}

/* ===== Sections ===== */
main { position: relative; z-index: var(--z-content); pointer-events: none; }
section[data-section] { position: relative; min-height: 150vh; }
#hero { min-height: 100svh; }
#contact { min-height: 120vh; }

.panel-wrap {
  position: sticky; top: 0;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 6rem clamp(1.4rem, 6vw, 6rem) 4rem;
}

.panel {
  pointer-events: auto;
  max-width: 600px;
  background: var(--panel);
  border: 1px solid var(--green-dim);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 2.8rem);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 0 60px rgba(0, 224, 126, 0.07), 0 20px 60px rgba(0, 0, 0, 0.5);
}
.panel.right { margin-left: auto; }
.panel.left { margin-right: auto; }
.panel.center { margin-inline: auto; max-width: 640px; }

/* big background word */
.bg-word {
  position: sticky; top: 22vh; height: 0;
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(4rem, 13vw, 11rem);
  line-height: 1; letter-spacing: 0.02em; white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0, 224, 126, 0.16);
  text-align: center;
  pointer-events: none; user-select: none;
}

/* ===== typography ===== */
.label {
  font-family: var(--font-en); font-size: 0.78rem; font-weight: 500;
  letter-spacing: 0.34em; color: var(--green);
  margin-bottom: 1rem;
}
h1 {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(3rem, 9vw, 6.5rem);
  line-height: 1.02; letter-spacing: -0.01em;
  background: linear-gradient(135deg, #ffffff 35%, rgba(255, 255, 255, 0.35));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1 .accent {
  background: none; -webkit-text-fill-color: var(--green);
  text-shadow: 0 0 30px rgba(0, 224, 126, 0.8);
}
h1.jp {
  font-family: var(--font-jp); font-weight: 900;
  font-size: clamp(1.8rem, 4.6vw, 3.3rem);
  line-height: 1.45; letter-spacing: 0.01em;
}
h2 {
  font-family: var(--font-jp); font-weight: 900;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.35; margin-bottom: 1.2rem;
}
.lead { color: var(--muted); margin-bottom: 1.6rem; }
.body-text { color: var(--muted); font-size: 0.95rem; margin-bottom: 1.2rem; }

/* ===== Hero ===== */
#hero .panel-wrap { padding-top: 7rem; }
.hero-content { pointer-events: auto; max-width: 760px; }
.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-en); font-size: 0.72rem; letter-spacing: 0.22em;
  color: var(--muted);
  border: 1px solid var(--green-dim); border-radius: 999px;
  padding: 0.45rem 1rem; margin-bottom: 1.6rem;
  background: rgba(0, 224, 126, 0.06);
}
.badge-tag {
  background: var(--green); color: #02130a; font-weight: 700;
  border-radius: 999px; padding: 0.1rem 0.55rem; letter-spacing: 0.12em;
}
.hero-sub { color: var(--muted); font-size: 1.05rem; margin: 1.6rem 0 2.2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-primary {
  display: inline-block; cursor: pointer;
  font-family: var(--font-jp); font-weight: 700; font-size: 0.95rem;
  color: #02130a; background: var(--green);
  border: none; border-radius: 999px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary:hover {
  background: var(--green-bright);
  box-shadow: 0 0 26px rgba(0, 224, 126, 0.6);
}
.btn-ghost {
  display: inline-block; cursor: pointer;
  font-weight: 700; font-size: 0.95rem;
  color: var(--green-bright); background: rgba(2, 8, 5, 0.65);
  border: 1px solid rgba(0, 224, 126, 0.6); border-radius: 999px;
  padding: 0.85rem 2rem;
  text-decoration: none;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.btn-ghost:hover {
  border-color: var(--green); color: #02130a; background: var(--green);
  box-shadow: 0 0 22px rgba(0, 224, 126, 0.45);
}

.scroll-hint {
  position: absolute; bottom: 5.4rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-en); font-size: 0.7rem; letter-spacing: 0.4em;
  color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.scroll-hint span {
  display: block; width: 1px; height: 46px;
  background: linear-gradient(to bottom, transparent, var(--green));
  animation: scrollPulse 1.8s ease-in-out infinite;
}
@keyframes scrollPulse {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.marquee {
  position: absolute; bottom: 0; left: 0; right: 0;
  overflow: hidden; padding: 1rem 0;
  border-top: 1px solid rgba(0, 224, 126, 0.12);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 2.4rem;
  white-space: nowrap;
  font-family: var(--font-en); font-size: 0.95rem; letter-spacing: 0.3em;
  color: rgba(159, 184, 170, 0.65);
  animation: marquee 24s linear infinite;
}
.marquee-track i { font-style: normal; font-size: 0.5rem; color: var(--green); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== cards ===== */
.cards { list-style: none; display: grid; gap: 0.9rem; margin-top: 0.6rem; }
.cards li {
  border: 1px solid var(--green-dim); border-radius: 12px;
  padding: 1.1rem 1.3rem;
  background: rgba(0, 224, 126, 0.04);
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}
.cards li:hover {
  border-color: var(--green);
  background: rgba(0, 224, 126, 0.08);
  box-shadow: 0 0 24px rgba(0, 224, 126, 0.12);
}
.cards h3 {
  font-size: 1rem; font-weight: 700; color: var(--green-bright);
  margin-bottom: 0.3rem;
}
.cards p { font-size: 0.9rem; color: var(--muted); }

/* ===== stats ===== */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem 2rem; margin-top: 1.6rem; }
.stats dt {
  font-family: var(--font-en); font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1;
  color: var(--green);
  text-shadow: 0 0 24px rgba(0, 224, 126, 0.45);
}
.stats .unit { font-size: 0.45em; margin-left: 0.2em; color: var(--green-bright); }
.stats .big { font-size: 1em; }
.stats dd { margin-top: 0.45rem; font-size: 0.85rem; color: var(--muted); }

/* ===== news ===== */
.news-list { list-style: none; margin-top: 0.4rem; }
.news-list li {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 1.05rem 0.2rem;
  border-bottom: 1px solid rgba(0, 224, 126, 0.14);
}
.news-list time {
  font-family: var(--font-en); font-size: 0.82rem; letter-spacing: 0.08em;
  color: var(--green); white-space: nowrap;
}
.news-list a {
  color: var(--text); text-decoration: none; font-size: 0.95rem;
  transition: color 0.2s ease;
}
.news-list a:hover { color: var(--green-bright); }

/* ===== company table ===== */
.company-table { width: 100%; border-collapse: collapse; }
.company-table th, .company-table td {
  text-align: left; padding: 0.95rem 0.4rem;
  border-bottom: 1px solid rgba(0, 224, 126, 0.14);
  font-size: 0.95rem; vertical-align: top;
}
.company-table th {
  width: 8em; color: var(--green); font-weight: 700;
  font-feature-settings: "palt";
}
.note { margin-top: 1.1rem; font-size: 0.78rem; color: var(--muted); }

/* ===== form ===== */
#contact-form { margin-top: 0.6rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label {
  display: block; font-size: 0.8rem; font-weight: 500;
  color: var(--muted); margin-bottom: 0.35rem;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: rgba(2, 8, 5, 0.7);
  border: 1px solid var(--green-dim); border-radius: 10px;
  color: var(--text); font-family: var(--font-jp); font-size: 0.95rem;
  padding: 0.75rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  resize: vertical;
}
.field select { cursor: pointer; appearance: auto; }
.field select option { background: #06140d; color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(0, 224, 126, 0.18);
}
.req { color: var(--green); }
.check {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.85rem; color: var(--muted);
  margin: 0.4rem 0 1rem; cursor: pointer;
}
.check input {
  width: 17px; height: 17px; accent-color: var(--green); cursor: pointer;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.footer-links a { color: var(--muted); text-decoration: none; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--green-bright); }
#contact-form .btn-primary { margin-top: 0.4rem; }

#contact footer { margin-top: 2.6rem; font-family: var(--font-en); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.08em; }
#contact .disclaimer { font-family: var(--font-jp); letter-spacing: 0; margin-top: 0.3rem; font-size: 0.72rem; }

/* ===== tip & toast ===== */
#tip {
  position: fixed; left: 1.4rem; bottom: 1.2rem; z-index: var(--z-dots);
  font-size: 0.72rem; color: var(--muted);
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--green-dim); border-radius: 999px;
  background: rgba(3, 10, 6, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0; transition: opacity 0.8s ease 1.2s;
}
body:not(.loading) #tip { opacity: 1; }

#toast {
  position: fixed; left: 50%; bottom: 2rem; transform: translate(-50%, 20px);
  z-index: var(--z-header);
  background: var(--green); color: #02130a; font-weight: 700; font-size: 0.9rem;
  padding: 0.8rem 1.6rem; border-radius: 999px;
  box-shadow: 0 0 30px rgba(0, 224, 126, 0.5);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ===== reveal animation ===== */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.32s; }
.reveal.d4 { transition-delay: 0.44s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== responsive ===== */
@media (max-width: 860px) {
  #site-header { top: 0.7rem; left: 0.7rem; right: 0.7rem; padding: 0.6rem 1rem; }
  #site-header nav { gap: 1rem; }
  #site-header nav a:not(.nav-cta) { display: none; }
  #dots { right: 0.7rem; }
  section[data-section] { min-height: 130vh; }
  .panel-wrap { padding: 5.5rem 1.2rem 3rem; }
  .panel { max-width: none; width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.2rem 1rem; }
  #tip { display: none; }
  .scroll-hint { bottom: 4.6rem; }
}

/* ===== reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-hint span { animation: none; }
  .marquee-track { animation: none; }
  #loader { transition: none; }
}
