/* OpsNavi LP v2 — top page (index.html) only.
   signup / verify / terms still use style.css. */

:root {
  --bg: #FAFAFA;
  --ink: #262B4F;
  --ink-hover: #3A4178;
  --link-hover: #4A5190;
  --lead: #4C516F;
  --desc: #5C607C;
  --label: #6B6F8A;
  --faint: #9A9DB3;
  --note: #7A7E98;
  --rule: #E1E2EA;
  --input: #D9DAE3;
  --card: #FFFFFF;
  --mist: #EDEDF2;
  --mist-rule: #DCDDE6;
  --accent: #C8333F;
  --font-ja: "Noto Sans JP", sans-serif;
  --font-en: "Outfit", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ja);
  -webkit-font-smoothing: antialiased;
  line-height: 1.9;
  letter-spacing: .04em;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--link-hover); }
img { max-width: 100%; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }

.page { min-height: 100vh; overflow-x: hidden; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ---------- Section heading ---------- */
.label {
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .08em;
  color: var(--label);
  display: flex;
  align-items: center;
  gap: 10px;
}
.label::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.label.no-dot::before { display: none; }
.sec-head { display: flex; flex-direction: column; gap: 12px; }
.h2 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; line-height: 1.7; }
.lead { font-size: 14px; line-height: 2.1; color: var(--lead); text-wrap: pretty; }
.desc { font-size: 13px; line-height: 2; color: var(--desc); text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px 12px 26px;
  border: 1px solid var(--ink);
  border-radius: 12px;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color .15s;
}
.btn .arw {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex: none;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary .arw { background: #fff; color: var(--ink); }
.btn-primary:hover { background: var(--ink-hover); border-color: var(--ink-hover); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); }
.btn-outline .arw { background: var(--ink); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--ink); }

.btn-sm {
  gap: 12px;
  padding: 8px 10px 8px 20px;
  border-radius: 10px;
  font-family: var(--font-en);
  font-size: 13px;
}
.btn-sm .arw { width: 18px; height: 18px; font-size: 10px; }
.btn-sm.btn-ja { font-family: var(--font-ja); letter-spacing: .04em; }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 250, .94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 40px; width: auto; display: block; }
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-family: var(--font-en);
  font-size: 13px;
  letter-spacing: .06em;
  min-width: 0;
}
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0 36px;
  height: 24px;
  overflow: hidden;
  line-height: 24px;
  min-width: 0;
}
.nav-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ---------- Hero ---------- */
.hero { padding-top: 8px; }
.hero-stage { position: relative; }
.hero-frame {
  position: relative;
  margin-left: clamp(0px, 10vw, 140px);
  height: clamp(560px, 62vw, 700px);
  border-radius: 56px;
  overflow: hidden;
}
.hero-log {
  position: absolute;
  inset: 0;
  background: var(--ink);
  padding: 36px 44px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 2.15;
  font-weight: 300;
  letter-spacing: 0;
  white-space: nowrap;
}
.log-row { display: flex; }
.log-row > span { flex: none; }
.hero-log .log-row { gap: 28px; }
.hero-log .w-kind { width: 72px; }
.hero-log .w-state { width: 16px; }
.hero-log .is-m { color: #FF9AA2; }
.hero-log .is-a { color: #FFFFFF; }
.hero-log .is-d { color: rgba(237, 237, 242, .75); }
.hero-log .is-u { color: rgba(237, 237, 242, .32); }

.hero-box {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(560px, 100%);
  background: var(--bg);
  border-top-right-radius: 48px;
  padding: 44px 48px 0 0;
  z-index: 2;
}
.notch {
  position: absolute;
  width: 48px;
  height: 48px;
  background: radial-gradient(circle at 100% 0, transparent 48px, var(--bg) 48.5px);
}
.notch-top { left: clamp(0px, 10vw, 140px); top: -48px; }
.notch-right { right: -48px; bottom: 0; }
.hero-box .label { margin-bottom: 12px; }
.hero-box .label::before { display: none; }
.hero h1 {
  margin-bottom: 20px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .06em;
  word-break: auto-phrase;
}
.hero .lead { margin-bottom: 32px; max-width: 440px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

@media (max-width: 720px) {
  .hero-frame { height: 340px; border-radius: 32px; }
  .hero-box { position: relative; padding: 36px 0 0 0; }
  .notch { display: none; }
}

/* ---------- About ---------- */
/* ---------- Customer logos ---------- */
.customers { padding-top: 72px; }
.customers-inner {
  display: flex;
  align-items: center;
  gap: 24px 64px;
  padding: 32px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.customers-head { flex: none; display: flex; flex-direction: column; gap: 6px; }
.customers-title { font-size: 15px; font-weight: 500; color: var(--ink); letter-spacing: .04em; }
.customers-logos {
  flex: 1 1 auto;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 24px 72px;
}
.customers-logos li { display: flex; align-items: center; }
/* Logos keep each brand's original colours (trimmed transparent PNG).
   Heights are tuned per logo so their optical weight matches rather than
   their box height. */
.customers-logos img {
  display: block;
  width: auto;
  height: var(--logo-h, 28px);
}
.customers-logos .logo-smarthr { --logo-h: 30px; }
.customers-logos .logo-pivot { --logo-h: 24px; }
.customers-logos .logo-bengoshi { --logo-h: 23px; }
@media (max-width: 720px) {
  .customers { padding-top: 56px; }
  .customers-inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .customers-logos { gap: 20px 36px; }
  .customers-logos img { height: calc(var(--logo-h, 28px) * .8); }
}

.about { padding-top: 120px; }
.about-inner { display: flex; flex-wrap: wrap; gap: 48px 80px; align-items: center; }
.about-text { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.about-shot {
  flex: 2 1 560px;
  border-radius: 28px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 40px rgba(38, 43, 79, .08);
}
.about-shot img { display: block; width: 100%; height: auto; }

/* ---------- Numbered rows (problems / features) ---------- */
.num-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 16px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
}
.num-row .n { font-family: var(--font-en); font-size: 14px; color: var(--faint); padding-top: 2px; }
.num-row .body { display: flex; flex-direction: column; gap: 6px; }
.num-row h3 { font-size: 16px; font-weight: 500; line-height: 1.7; }

.problems { padding-top: 140px; }
.problems .sec-head { margin-bottom: 56px; }
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr));
  gap: 0 64px;
}

/* ---------- Features ---------- */
.features { padding-top: 160px; }
.features-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 56px 72px;
  align-items: flex-start;
  max-width: 1440px;
  margin: 0 auto;
}
.features-art {
  flex: 1 1 420px;
  position: relative;
  align-self: stretch;
  min-height: 420px;
  max-height: 640px;
}
.features-art-clip {
  position: absolute;
  inset: 0;
  border-top-right-radius: 56px;
  border-bottom-right-radius: 56px;
  overflow: hidden;
}
.deploy-log {
  position: absolute;
  inset: 0;
  background: var(--mist);
  padding: 36px 40px;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 2.2;
  font-weight: 300;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--faint);
}
.deploy-log .log-row { gap: 24px; }
.deploy-log .w-op { width: 64px; }
.deploy-log .is-strong { color: var(--ink); }
.deploy-log .is-weak { color: #8A8DA6; }
.deploy-log .is-err { color: var(--accent); }
.features-mark {
  position: absolute;
  right: 24px;
  top: 24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--bg);
  display: grid;
  place-items: center;
}
.features-mark img { width: 36px; height: 36px; object-fit: contain; }
.features-body {
  flex: 1.3 1 520px;
  padding: 0 32px;
  display: flex;
  flex-direction: column;
  gap: 48px;
  max-width: 760px;
}
.features-body .num-row { padding: 24px 0; gap: 16px; }
.features-body .num-row h3 { line-height: 1.9; }

/* ---------- Benefits ---------- */
.benefits { padding-top: 160px; }
.benefits .sec-head { margin-bottom: 48px; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}
.benefit-card {
  background: var(--card);
  border-radius: 28px;
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.benefit-card .n { font-family: var(--font-en); font-size: 13px; letter-spacing: .08em; color: var(--faint); }
.benefit-card h3 { font-size: 18px; font-weight: 500; }

/* ---------- Screens ---------- */
.screens { padding-top: 160px; }
.screens .sec-head { margin-bottom: 56px; }
.screens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 480px), 1fr));
  gap: 72px 48px;
}
.screen { display: flex; flex-direction: column; gap: 24px; }
.screen-img {
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 32px rgba(38, 43, 79, .07);
  aspect-ratio: 16 / 10;
}
.screen-img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.screen figcaption { display: flex; flex-direction: column; gap: 8px; padding: 0 4px; }
.screen h3 { font-size: 17px; font-weight: 500; line-height: 1.7; }

/* ---------- Pricing ---------- */
.pricing { padding-top: 160px; }
.pricing-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 48px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 24px;
  max-width: 1000px;
}
.plan {
  background: var(--card);
  border-radius: 28px;
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.plan.is-featured { box-shadow: inset 0 0 0 1px var(--ink); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.plan-head h3 { font-size: 17px; font-weight: 500; }
.plan-tag { font-family: var(--font-en); font-size: 13px; color: var(--faint); }
.plan-save { font-size: 12px; color: var(--accent); }
.plan-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--font-en); font-size: 44px; font-weight: 300; line-height: 1; }
.plan-price .unit { font-size: 13px; color: var(--desc); }
.plan dl { font-size: 13px; }
.plan dl > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--rule);
}
.plan dd { text-align: right; }
.plan .btn { margin-top: auto; padding-left: 24px; }
.plan .btn-outline:hover { background: var(--bg); }
.pricing-note { margin-top: 24px; font-size: 12px; color: var(--note); line-height: 2; }

/* ---------- FAQ ---------- */
.faq {
  padding-top: 160px;
  padding-bottom: 160px;
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
}
.faq .sec-head { flex: 1 1 240px; align-self: flex-start; }
.faq-list { flex: 3 1 560px; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 24px;
  gap: 12px;
  padding: 24px 0;
  align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q { font-family: var(--font-en); font-size: 14px; color: var(--faint); }
.faq-item .question { font-size: 15px; font-weight: 500; line-height: 1.8; }
.faq-item .plus {
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 300;
  line-height: 1;
  transition: transform .2s;
  display: block;
  text-align: right;
}
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item .answer { padding: 0 36px 28px 48px; font-size: 13px; line-height: 2.1; color: var(--desc); text-wrap: pretty; }

/* ---------- Contact ---------- */
.contact { background: var(--mist); }
.contact-inner {
  padding-top: 120px;
  padding-bottom: 120px;
  display: flex;
  flex-wrap: wrap;
  gap: 48px 80px;
}
.contact .sec-head { flex: 1 1 300px; }
.contact .sec-head .desc { margin-top: 8px; line-height: 2.1; max-width: 360px; }
.contact-panel {
  flex: 2 1 520px;
  background: var(--card);
  border-radius: 28px;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 40px 48px;
}
.contact-option { display: flex; flex-direction: column; gap: 12px; }
.contact-option h3 { font-size: 17px; font-weight: 500; }
.contact-option .desc { flex: 1; }
.contact-option .btn { margin-top: 12px; align-self: flex-start; }

/* ---------- Footer ---------- */
.footer { background: var(--mist); border-top: 1px solid var(--mist-rule); }
.footer-inner { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }
.footer-info { display: flex; flex-direction: column; gap: 14px; font-size: 12px; color: var(--lead); }
.footer-info img { height: 40px; width: auto; display: block; align-self: flex-start; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-legal a { color: var(--lead); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal a:hover { color: var(--link-hover); }
.footer-actions { display: flex; flex-direction: column; gap: 10px; }
.footer-actions .btn { min-width: 150px; padding-left: 18px; gap: 20px; }
.footer-actions .btn:hover { background: #fff; }
.copyright { text-align: center; font-family: var(--font-en); font-size: 11px; color: var(--note); }

/* ---------- Terms modal (opened by terms-modal.js) ---------- */
.terms-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(38, 43, 79, .45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.terms-modal-overlay.open { display: flex; }
.terms-modal {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 760px;
  max-height: min(82vh, 880px);
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 2px 40px rgba(38, 43, 79, .12);
  overflow: hidden;
}
.terms-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid var(--rule);
  flex-shrink: 0;
}
.terms-modal-title { font-weight: 500; font-size: 16px; }
.terms-modal-close {
  border: none;
  background: var(--bg);
  color: var(--desc);
  width: 32px;
  height: 32px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}
.terms-modal-close:hover { background: var(--mist); color: var(--ink); }
.terms-modal-body { overflow-y: auto; padding: 8px 28px 32px; overscroll-behavior: contain; }
.terms-modal-body h1 { font-size: 22px; font-weight: 500; margin: 16px 0 12px; line-height: 1.5; }
.terms-modal-body h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 28px 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.terms-modal-body p,
.terms-modal-body li { font-size: 13px; color: var(--desc); line-height: 1.9; }
.terms-modal-body ol { padding-left: 22px; margin: 8px 0; }
.terms-modal-body ol ol { list-style-type: lower-alpha; margin: 4px 0; }
.terms-modal-body li { margin-bottom: 5px; }
.terms-modal-body .legal-meta { font-size: 12px; }
@media (max-width: 600px) {
  .terms-modal-overlay { padding: 12px; }
  .terms-modal { max-height: 90vh; }
  .terms-modal-body { padding: 4px 18px 24px; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav { gap: 16px; }
  .nav-links { display: none; }
  .features-body { padding: 0 20px; }
  .features-art { min-height: 360px; margin-right: 20px; }
  .faq-item .answer { padding: 0 0 24px 48px; }
}
@media (max-width: 420px) {
  .nav-actions .btn-contact { display: none; }
}
