/* ============================================================
   Sarjavex — clean minimal corporate site (ChatGPT-inspired)
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-gray: #f7f7f8;
  --text: #171717;
  --text-dim: #6e6e80;
  --line: #ececf1;
  --accent: #10a37f;
  --radius: 16px;
  --font-body: "Inter", "Noto Sans JP", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.9;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-decoration: none;
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav a:hover { color: var(--text); }

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 12px 26px;
  border-radius: 999px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-dark {
  background: #171717;
  color: #fff;
}
.btn-dark:hover { background: #3d3d3d; }
.btn-light {
  background: var(--bg-gray);
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-light:hover { background: #ececf1; }
.btn-sm { padding: 8px 18px; font-size: 13px; }
.btn-lg { padding: 16px 40px; font-size: 16px; }
.arrow { display: inline-block; transition: transform 0.2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 100px;
  overflow: hidden;
}
.hero-inner {
  max-width: 820px;
  position: relative;
  z-index: 1;
}
.hero-title {
  font-size: clamp(42px, 7vw, 76px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.hero-lead {
  margin: 28px auto 0;
  max-width: 560px;
  font-size: clamp(15px, 1.8vw, 18px);
  color: var(--text-dim);
}
.hero-actions {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* soft gradient blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  pointer-events: none;
}
.hero-blob-a {
  width: 480px; height: 480px;
  background: radial-gradient(circle, #a8e6d4 0%, transparent 70%);
  top: -120px; right: -100px;
  animation: drift-a 18s ease-in-out infinite alternate;
}
.hero-blob-b {
  width: 420px; height: 420px;
  background: radial-gradient(circle, #cdd8ff 0%, transparent 70%);
  bottom: -140px; left: -80px;
  animation: drift-b 22s ease-in-out infinite alternate;
}
@keyframes drift-a {
  from { transform: translate(0, 0); }
  to   { transform: translate(-60px, 50px); }
}
@keyframes drift-b {
  from { transform: translate(0, 0); }
  to   { transform: translate(70px, -40px); }
}

/* ---------- Sections ---------- */
.section { padding: 110px 24px; }
.section-gray { background: var(--bg-gray); }
.container { max-width: 1120px; margin: 0 auto; }

.section-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.4;
  margin-bottom: 40px;
}

/* ---------- About ---------- */
.about-text {
  max-width: 680px;
  color: var(--text-dim);
  font-size: 16px;
}
.about-text p + p { margin-top: 18px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}
.card-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 22px;
}
.icon-teal   { background: #e5f6f1; }
.icon-blue   { background: #e8eeff; }
.icon-purple { background: #f1e9ff; }
.card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
}
.card p { color: var(--text-dim); font-size: 14px; }

/* ---------- Featured product (Memory Twin) ---------- */
.product-feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 48px;
}
.product-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 999px;
}
.badge-dark { background: #171717; color: #fff; }
.badge-accent { background: #e5f6f1; color: #0d8a6a; }
.badge-dev { background: #fdf1de; color: #a15c07; }
.dev-note {
  font-size: 13px;
  color: var(--text-dim);
  background: var(--bg-gray);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 18px;
}
.product-name {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.product-tagline {
  font-size: 16px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 18px;
}
.product-desc {
  color: var(--text-dim);
  font-size: 15px;
  margin-bottom: 18px;
}
.product-price {
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.product-actions {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.product-points {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.product-points li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.point-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
}
.product-points h4 {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 4px;
}
.product-points p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.7;
}

.products-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Strengths ---------- */
.strengths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.strength { border-top: 2px solid var(--text); padding-top: 22px; }
.strength h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.strength p { color: var(--text-dim); font-size: 14px; }

/* ---------- Company ---------- */
.company-table {
  max-width: 720px;
  border-top: 1px solid var(--line);
}
.company-table > div {
  display: grid;
  grid-template-columns: 180px 1fr;
  padding: 20px 4px;
  border-bottom: 1px solid var(--line);
}
.company-table dt {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}
.company-table dd { font-size: 15px; }

/* ---------- Contact ---------- */
.contact-section { padding: 150px 24px; }
.contact-container { text-align: center; }
.contact-container .section-title { margin-bottom: 18px; }
.contact-lead {
  color: var(--text-dim);
  margin-bottom: 40px;
}
.contact-form {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.contact-form label span {
  font-size: 13px;
  font-weight: 600;
}
.contact-form .required::after {
  content: " *";
  color: #c0392b;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text);
  background: var(--bg-gray);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 16px;
  transition: border-color 0.2s, background 0.2s;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #171717;
  background: var(--bg);
}
.contact-form select { appearance: auto; cursor: pointer; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .field-error {
  font-size: 12px;
  color: #c0392b;
  min-height: 1.2em;
  font-weight: 400;
}
.contact-form .btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  align-self: center;
  min-width: 220px;
}
.contact-form .btn[disabled] { opacity: 0.6; cursor: default; }
.honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}
.consent-row {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-size: 14px;
  cursor: pointer;
}
.consent-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 5px;
  flex: none;
  accent-color: #171717;
  cursor: pointer;
}
.consent-row span { font-size: 14px; font-weight: 400; }
.consent-row a { color: var(--accent); }
.turnstile-row {
  display: flex;
  justify-content: center;
  min-height: 65px;
}
.form-status {
  text-align: center;
  font-size: 14px;
  min-height: 1.5em;
}
.form-status.ok { color: #0d8a6a; }
.form-status.ng { color: #c0392b; }
.contact-alt {
  font-size: 13px;
  color: var(--text-dim);
}

.contact-email {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.email-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  user-select: all;
}
.copy-btn {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  background: var(--bg-gray);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.copy-btn:hover { background: #ececf1; }
.copy-btn.copied {
  background: #e5f6f1;
  border-color: #bfe8dc;
  color: #0d8a6a;
}

.contact-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-dim);
}

/* ---------- Sub pages (page-*) ---------- */
.page-hero {
  padding: 170px 24px 60px;
  text-align: center;
}
.page-hero .section-label { margin-bottom: 8px; }
.page-hero .section-title { margin-bottom: 0; }
.page-hero .page-lead {
  margin: 18px auto 0;
  max-width: 640px;
  color: var(--text-dim);
  font-size: 15px;
}
.page-body { padding: 40px 24px 120px; }
.page-body .container-narrow {
  max-width: 760px;
  margin: 0 auto;
}

/* legal documents */
.legal { font-size: 15px; }
.legal .legal-date {
  color: var(--text-dim);
  font-size: 13px;
  margin-bottom: 40px;
  text-align: right;
}
.legal h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 48px 0 14px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: none; padding-top: 0; margin-top: 0; }
.legal p { color: #333; margin-bottom: 14px; }
.legal ul, .legal ol {
  margin: 0 0 14px 1.4em;
  color: #333;
}
.legal li { margin-bottom: 6px; }
.legal a { color: var(--accent); }

/* 404 */
.notfound {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 24px 80px;
}
.notfound-code {
  font-size: clamp(64px, 12vw, 120px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.notfound p {
  margin: 18px 0 34px;
  color: var(--text-dim);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-logo { font-weight: 700; font-size: 15px; }
.footer-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-nav a {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--text); }
.site-footer small {
  color: var(--text-dim);
  font-size: 12px;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-blob-a, .hero-blob-b { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
.sp-only { display: none; }

@media (max-width: 860px) {
  .cards, .strengths { grid-template-columns: 1fr; }
  .product-feature { grid-template-columns: 1fr; gap: 32px; padding: 28px 22px; }
  .sp-only { display: inline; }

  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--bg);
    border-left: 1px solid var(--line);
    flex-direction: column;
    justify-content: center;
    gap: 36px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 105;
  }
  .nav.open { transform: translateX(0); }
  .nav a { font-size: 17px; }
  .nav-toggle { display: flex; z-index: 110; }

  .company-table > div { grid-template-columns: 1fr; gap: 2px; }
  .section { padding: 80px 20px; }
  .page-hero { padding: 140px 20px 40px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
