:root {
  color-scheme: light;
  --bg: #f4f6f3;
  --surface: #ffffff;
  --surface-soft: rgba(255, 255, 255, 0.92);
  --surface-muted: #edf2ed;
  --ink: #19231c;
  --muted: #56645b;
  --accent: #1a7a60;
  --accent-deep: #104e3e;
  --warm: #be7b34;
  --line: rgba(25, 35, 28, 0.1);
  --shadow: 0 16px 40px rgba(25, 35, 28, 0.08);
  --radius: 8px;
  --container-width: 1160px;
  font-family: "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  line-height: 1.7;
  background:
    radial-gradient(circle at 10% 0%, rgba(26, 122, 96, 0.09), transparent 34%),
    radial-gradient(circle at 100% 20%, rgba(190, 123, 52, 0.11), transparent 30%),
    var(--bg);
}

img {
  max-width: 100%;
}

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

.container {
  width: min(var(--container-width), calc(100vw - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 246, 243, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.brand-copy {
  display: grid;
  gap: 2px;
  color: var(--muted);
  font-size: 13px;
}

.brand-copy strong {
  color: var(--ink);
  font-size: 15px;
}

.header-nav,
.footer-links,
.hero-actions,
.hero-highlights {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.header-nav {
  justify-content: flex-end;
  gap: 10px;
}

.header-nav a:not(.button),
.footer-links a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.header-nav a:not(.button):hover,
.footer-links a:hover {
  color: var(--accent-deep);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(26, 122, 96, 0.14);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
  cursor: pointer;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(26, 122, 96, 0.18);
}

.button-small {
  min-height: 38px;
  padding: 0 14px;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  box-shadow: none;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.hero-section {
  position: relative;
  min-height: 72svh;
  padding: 118px 0 84px;
  background:
    linear-gradient(94deg, rgba(16, 27, 22, 0.88) 0%, rgba(16, 27, 22, 0.72) 45%, rgba(16, 27, 22, 0.32) 72%, rgba(16, 27, 22, 0.18) 100%),
    url("/assets/workspace-invite.webp") center center / cover no-repeat;
  color: #fff;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 90px;
  background: linear-gradient(180deg, rgba(16, 27, 22, 0), rgba(244, 246, 243, 1));
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-badge {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  text-transform: none;
}

.hero-content h1 {
  margin: 0;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-content h1 span {
  display: block;
}

.hero-lead {
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18px;
  line-height: 1.85;
}

.hero-actions {
  margin-top: 28px;
}

.hero-highlights {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-highlights li {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.94);
  font-size: 13px;
  font-weight: 700;
}

.section-block {
  padding: 72px 0;
}

.section-block[id] {
  scroll-margin-top: 92px;
}

.section-muted {
  background: rgba(255, 255, 255, 0.46);
  border-top: 1px solid rgba(25, 35, 28, 0.05);
  border-bottom: 1px solid rgba(25, 35, 28, 0.05);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 40px;
  line-height: 1.12;
  letter-spacing: 0;
  text-wrap: balance;
}

.section-copy {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.card-grid,
.terms-grid,
.faq-grid,
.fit-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.value-card,
.operation-card,
.term-card,
.summary-card,
.faq-card,
.screen-card,
.contact-shell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
}

.info-card,
.value-card,
.operation-card,
.term-card,
.summary-card,
.faq-card {
  padding: 22px;
}

.info-card h3,
.value-card h3,
.operation-card h3,
.summary-card h3,
.faq-card h3,
.screen-card strong {
  margin: 0;
  color: var(--accent-deep);
  font-size: 21px;
  line-height: 1.2;
}

.info-card p,
.value-card p,
.operation-card p,
.summary-card p,
.faq-card p,
.term-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.screen-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.screen-card {
  grid-column: span 6;
  margin: 0;
  overflow: hidden;
}

.screen-card--wide {
  grid-column: 1 / -1;
}

.screen-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.screen-card figcaption {
  display: grid;
  gap: 8px;
  padding: 18px 20px 20px;
}

.screen-card figcaption span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.operation-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature-list,
.flow-list {
  margin: 16px 0 0;
  padding: 0;
}

.feature-list {
  list-style: none;
}

.feature-list li,
.flow-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
}

.feature-list li + li,
.flow-list li + li {
  margin-top: 12px;
}

.feature-list li::before,
.flow-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
}

.feature-list--compact li {
  color: var(--muted);
}

.lab-section {
  background:
    linear-gradient(135deg, rgba(16, 78, 62, 0.06), rgba(190, 123, 52, 0.08)),
    rgba(255, 255, 255, 0.34);
  border-top: 1px solid rgba(25, 35, 28, 0.06);
  border-bottom: 1px solid rgba(25, 35, 28, 0.06);
}

.lab-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 24px;
  align-items: stretch;
}

.lab-layout .section-heading {
  max-width: none;
  margin-bottom: 0;
}

.lab-copy {
  margin: 12px 0 0;
  color: var(--muted);
}

.lab-links {
  display: grid;
  gap: 14px;
}

.lab-link-card {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  box-shadow: var(--shadow);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.lab-link-card:hover,
.lab-link-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(26, 122, 96, 0.32);
  box-shadow: 0 18px 42px rgba(25, 35, 28, 0.1);
}

.lab-link-card span {
  color: var(--warm);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lab-link-card strong {
  color: var(--accent-deep);
  font-size: 21px;
  line-height: 1.2;
}

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

.terms-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

.term-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.term-card strong {
  color: var(--accent-deep);
  font-size: 22px;
  line-height: 1.25;
}

.fit-grid,
.faq-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.summary-card,
.faq-card {
  display: grid;
  align-content: start;
}

.flow-list {
  list-style: none;
  counter-reset: flow-step;
}

.flow-list li::before {
  display: inline-grid;
  place-items: center;
  content: counter(flow-step);
  counter-increment: flow-step;
  width: 18px;
  height: 18px;
  top: 8px;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.contact-section {
  padding-top: 24px;
  padding-bottom: 88px;
}

.contact-shell {
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(16, 78, 62, 0.96), rgba(26, 122, 96, 0.92)),
    #104e3e;
  color: #fff;
}

.contact-shell .eyebrow,
.contact-shell h2,
.contact-shell .section-copy {
  color: #fff;
}

.contact-shell h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.18;
}

.agentforce-chat-slot {
  height: min(62vh, 560px);
  min-height: min(62vh, 560px);
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(237, 242, 237, 0.9), rgba(255, 255, 255, 0.98));
}

.agentforce-chat-slot > .embedded-messaging,
.agentforce-chat-slot > #embedded-messaging,
.agentforce-chat-slot iframe.embeddedMessagingFrame {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border: 0;
}

.agentforce-chat-fallback {
  margin: 16px 4px 0;
  color: var(--muted);
  font-size: 14px;
}

.chat-panel {
  position: fixed;
  right: 24px;
  bottom: 110px;
  z-index: 145;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(440px, calc(100vw - 24px));
  max-height: min(760px, calc(100vh - 120px));
  border: 1px solid rgba(16, 78, 62, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow:
    0 28px 52px rgba(25, 35, 28, 0.16),
    0 10px 28px rgba(25, 35, 28, 0.08);
}

.chat-panel[hidden] {
  display: none;
}

.chat-panel-header {
  display: flex;
  justify-content: flex-end;
  padding: 12px 12px 0;
}

.chat-panel-close {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: rgba(16, 78, 62, 0.08);
  color: var(--accent-deep);
  font-size: 22px;
  cursor: pointer;
}

.chat-panel-body {
  padding: 8px 12px 12px;
}

.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 150;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  color: #fff;
  box-shadow: 0 20px 44px rgba(16, 78, 62, 0.28);
  cursor: pointer;
}

.chat-fab:hover,
.chat-fab:focus-visible {
  transform: translateY(-1px);
}

.chat-fab-ping {
  position: absolute;
  inset: auto auto auto 22px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
}

.chat-fab-icon {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.chat-fab-icon svg {
  width: 20px;
  height: 20px;
}

.chat-fab-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.chat-fab-copy strong {
  font-size: 14px;
  line-height: 1.2;
}

.chat-fab-copy span {
  font-size: 12px;
  opacity: 0.88;
}

.site-footer {
  padding: 0 0 34px;
  color: rgba(25, 35, 28, 0.64);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 1080px) {
  .card-grid,
  .card-grid--three,
  .terms-grid,
  .fit-grid,
  .faq-grid,
  .operation-grid,
  .lab-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .terms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
  }

  .header-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-section {
    min-height: auto;
    padding: 108px 0 72px;
    background-position: 66% center;
  }

  .hero-content h1 {
    font-size: 38px;
  }

  .hero-lead,
  .section-copy {
    font-size: 16px;
  }

  .section-heading h2,
  .contact-shell h2 {
    font-size: 30px;
  }

  .card-grid,
  .card-grid--three,
  .terms-grid,
  .fit-grid,
  .faq-grid,
  .operation-grid,
  .lab-layout,
  .screen-grid {
    grid-template-columns: 1fr;
  }

  .screen-card,
  .screen-card--wide {
    grid-column: auto;
  }

  .chat-fab {
    right: 16px;
    bottom: 16px;
  }

  .chat-panel {
    right: 16px;
    bottom: 92px;
    width: min(440px, calc(100vw - 16px));
  }
}

@media (max-width: 560px) {
  .container {
    width: min(var(--container-width), calc(100vw - 24px));
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .button,
  .button-small {
    width: 100%;
  }

  .hero-actions,
  .header-nav {
    width: 100%;
  }

  .chat-fab {
    padding: 0 16px;
  }

  .chat-fab-copy span {
    display: none;
  }

  .chat-panel {
    width: calc(100vw - 16px);
  }
}
