/* TVO site styles. Hand-written, no framework. */

:root {
  --lime: #83d841;
  --lime-strong: #9be65c;
  --lime-deep: #5fa82a;
  --lime-glow: rgb(131 216 65 / 0.18);

  --bg: #0a0c0b;
  --bg-raised: #111513;
  --surface: #161b18;
  --surface-2: #1d231f;
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.16);

  --text: #f2f5f1;
  --text-muted: #a5ada6;
  --text-dim: #78807a;
  --on-lime: #0a0c0b;

  --font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Hiragino Sans",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;

  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --section: clamp(4rem, 10vw, 8rem);

  --step--1: clamp(0.85rem, 0.82rem + 0.15vw, 0.95rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
  --step-2: clamp(1.5rem, 1.25rem + 1.1vw, 2.1rem);
  --step-3: clamp(2rem, 1.5rem + 2.4vw, 3.25rem);
  --step-4: clamp(2.5rem, 1.6rem + 4.4vw, 5.25rem);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 72px;

  color-scheme: dark;
}

/* ---------- Base ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 800;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { margin: 0; padding: 0; }
figure { margin: 0; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--lime); color: var(--on-lime); }

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

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--lime); color: var(--on-lime);
  font-weight: 700; border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.accent { color: var(--lime); }

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(10 12 11 / 0.72);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-h);
  gap: 1rem;
}
.brand img { height: 36px; width: auto; }

.site-nav ul {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}
.site-nav a:hover { color: var(--text); background: rgb(255 255 255 / 0.06); }
.site-nav a[aria-current="page"] { color: var(--on-lime); background: var(--lime); }

.nav-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
  position: absolute;
  left: 50%;
  width: 18px; height: 2px;
  margin-left: -9px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle__bar { top: 50%; margin-top: -1px; }
.nav-toggle__bar::before,
.nav-toggle__bar::after { content: ""; left: 0; margin-left: 0; }
.nav-toggle__bar::before { transform: translateY(-6px); }
.nav-toggle__bar::after { transform: translateY(6px); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: rotate(45deg); background: var(--text); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { transform: rotate(-45deg); background: var(--text); }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    padding: 1rem var(--gutter) 1.75rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px rgb(0 0 0 / 0.5);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.3s var(--ease), visibility 0s 0.3s;
  }
  .site-nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.25s, transform 0.3s var(--ease);
  }
  .site-nav ul { flex-direction: column; gap: 0.25rem; }
  .site-nav a { padding: 0.9rem 1rem; font-size: 1.1rem; border-radius: var(--radius-sm); }
}

/* ---------- Buttons and small parts ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.85rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.2s;
}
.btn--primary { background: var(--lime); color: var(--on-lime); box-shadow: 0 10px 30px -10px rgb(131 216 65 / 0.6); }
.btn--primary:hover { background: var(--lime-strong); transform: translateY(-2px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); background: rgb(255 255 255 / 0.02); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn .arrow { transition: transform 0.2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  color: var(--lime);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.lead { color: var(--text-muted); font-size: var(--step-1); line-height: 1.6; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(5rem, 14vw, 10rem) clamp(4rem, 10vw, 7rem);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  /* faint grid */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 30% 40%, #000 30%, transparent 75%);
  opacity: 0.6;
}
.hero__glow {
  position: absolute;
  z-index: -1;
  width: min(720px, 90vw);
  aspect-ratio: 1;
  top: -30%;
  left: -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(131 216 65 / 0.35), transparent 65%);
  filter: blur(40px);
  pointer-events: none;
}
.hero__glow--2 {
  top: auto; left: auto;
  right: -18%; bottom: -45%;
  width: min(560px, 80vw);
  background: radial-gradient(circle, rgb(131 216 65 / 0.16), transparent 65%);
}
@media (prefers-reduced-motion: no-preference) {
  .hero__glow { animation: drift 14s ease-in-out infinite alternate; }
  .hero__glow--2 { animation-duration: 18s; animation-direction: alternate-reverse; }
}
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(6%, 8%) scale(1.08); }
}

.hero__title {
  max-width: 15ch;
  font-size: var(--step-4);
  letter-spacing: -0.04em;
}
.hero__lead { max-width: 60ch; margin-top: 1.75rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.5rem; }
.hero--compact { padding-block: clamp(4rem, 11vw, 7.5rem) clamp(3rem, 8vw, 5rem); }

/* ---------- Sections ---------- */

.section { padding-block: var(--section); }
.section--tint { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-raised) 18%, var(--bg-raised) 82%, var(--bg) 100%); }
.section + .section--flush { padding-top: 0; }

.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head h2 { font-size: var(--step-3); }
.section-head p { margin-top: 1.25rem; color: var(--text-muted); font-size: var(--step-1); }

/* Split: text beside an image */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
}
.split + .split { margin-top: var(--section); }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: -1; }
}
.split__body h2 { font-size: var(--step-3); }
.split__body p { margin-top: 1.25rem; color: var(--text-muted); font-size: var(--step-1); }
.split__body .btn { margin-top: 2rem; }

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 5 / 4;
}
.media--wide { aspect-ratio: 21 / 9; }
.media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  transition: filter 0.8s var(--ease), transform 1.2s var(--ease);
}
.media:hover img { filter: grayscale(0.15); transform: scale(1.03); }
.media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, transparent 50%, rgb(131 216 65 / 0.22));
  mix-blend-mode: screen;
  pointer-events: none;
}
@media (max-width: 600px) {
  .media--wide { aspect-ratio: 4 / 3; }
}

/* Cards */
.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  list-style: none;
}
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface) 0%, rgb(22 27 24 / 0.6) 100%);
  transition: border-color 0.3s, transform 0.4s var(--ease), background-color 0.3s;
}
.card:hover { border-color: rgb(131 216 65 / 0.45); transform: translateY(-4px); }
.card h3 { font-size: var(--step-1); letter-spacing: -0.015em; }
.card p { color: var(--text-muted); }
.card strong { color: var(--text); font-weight: 700; }
.card__num {
  color: var(--lime);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.card__icon {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border-radius: 14px;
  background: var(--lime-glow);
  color: var(--lime);
}
.card__icon svg { width: 24px; height: 24px; }
.card--feature { padding: clamp(1.75rem, 4vw, 2.75rem); }
.card--feature h3 { font-size: var(--step-2); }

/* Call to action band */
.cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-inline: var(--gutter);
  margin-bottom: var(--section);
  padding: clamp(4rem, 10vw, 7rem) var(--gutter);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
@media (min-width: 1300px) {
  .cta { max-width: var(--container); margin-inline: auto; }
}
.cta__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(1);
}
.cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse at 50% 120%, rgb(131 216 65 / 0.35), transparent 60%),
    linear-gradient(180deg, rgb(10 12 11 / 0.7), rgb(10 12 11 / 0.88));
}
.cta h2 { max-width: 18ch; margin-inline: auto; font-size: var(--step-3); }
.cta p { max-width: 58ch; margin: 1.25rem auto 0; color: #d3d9d4; font-size: var(--step-1); }
.cta .btn { margin-top: 2.25rem; }

/* Centered action row */
.actions-center { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; margin-top: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.actions-center p { max-width: 60ch; color: var(--text-muted); font-size: var(--step-1); }

/* Quote bubbles (IT Solutions challenges) */
.quotes {
  display: grid;
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
  list-style: none;
}
.quote {
  position: relative;
  max-width: 560px;
  padding: 1.5rem 1.75rem 1.5rem 4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) var(--radius) 6px;
  background: var(--surface);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.5;
}
.quote::before {
  content: "\201C";
  position: absolute;
  left: 1.25rem; top: 0.5rem;
  color: var(--lime);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
}
.quote:nth-child(even) { justify-self: end; border-radius: var(--radius) var(--radius) 6px var(--radius); }

/* Company information */
.facts {
  display: grid;
  gap: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}
.facts > div {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 700px) {
  .facts > div { grid-template-columns: 220px 1fr; }
}
.facts dt { color: var(--text-dim); font-size: var(--step--1); font-weight: 600; }
.facts dt span, .facts dd span { display: block; }
.facts dd { margin: 0; }
.facts dd span[lang="ja"], .facts dt span[lang="ja"] { color: var(--text-muted); }
.facts ul { list-style: none; display: grid; gap: 0.9rem; }

.info-grid { display: grid; gap: clamp(2rem, 5vw, 4rem); }
@media (min-width: 960px) {
  .info-grid { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
.map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  background: var(--surface);
}
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(0.92) hue-rotate(180deg) contrast(0.9); }

/* Long text (privacy policy) */
.prose { max-width: 760px; color: #d6dbd7; font-size: var(--step-0); line-height: 1.9; }
.prose > * + * { margin-top: 1.25rem; }
.prose h2 { margin-top: 2.5rem; font-size: var(--step-1); color: var(--text); letter-spacing: 0; }
.prose ul { padding-left: 1.25rem; }
.prose li + li { margin-top: 0.4rem; }
.prose li::marker { color: var(--lime); }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-raised);
  color: var(--text-muted);
  font-size: var(--step--1);
}
.site-footer__grid {
  display: grid;
  gap: 2rem;
  padding-block: clamp(3rem, 7vw, 4.5rem);
}
@media (min-width: 760px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
}
.site-footer__brand img { height: 32px; width: auto; margin-bottom: 1rem; }
.site-footer__links { list-style: none; display: grid; gap: 0.5rem; }
.site-footer__links a { text-decoration: none; transition: color 0.2s; }
.site-footer__links a:hover { color: var(--lime); }
.site-footer__address { font-style: normal; line-height: 1.8; }
.site-footer__legal {
  padding-block: 1.5rem;
  border-top: 1px solid var(--line);
  color: var(--text-dim);
}

/* ---------- Reveal on scroll ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--delay, 0s);
  }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}

/* Eyebrows keep their own size and colour inside text blocks. */
.split__body .eyebrow,
.section-head .eyebrow,
.cta .eyebrow {
  margin-top: 0;
  color: var(--lime);
  font-size: 0.8rem;
}

/* Thank-you page */
.thanks { min-height: 70vh; display: grid; align-items: center; }
.thanks__check {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  margin-bottom: 2rem;
  border-radius: 50%;
  background: var(--lime);
  color: var(--on-lime);
  box-shadow: 0 0 0 10px var(--lime-glow);
}
.thanks__check svg { width: 30px; height: 30px; }

@media (min-width: 860px) {
  .cards--2 { grid-template-columns: 1fr 1fr; }
}
