:root {
  --ink: #11151a;
  --graphite: #192026;
  --muted: #65717b;
  --paper: #f7f8f6;
  --white: #ffffff;
  --teal: #00b7a8;
  --teal-dark: #00897f;
  --lime: #b4e84a;
  --coral: #ff6f61;
  --line: rgba(17, 21, 26, 0.12);
  --shadow: 0 24px 70px rgba(9, 16, 22, 0.18);
  --radius: 8px;
  --header-height: 126px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 20;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--lime);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 15;
  width: 100%;
  transition: background 200ms ease, box-shadow 200ms ease, backdrop-filter 200ms ease;
}

.site-header.is-scrolled,
.site-header.nav-active {
  background: rgba(247, 248, 246, 0.9);
  box-shadow: 0 1px 0 var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1180px, calc(100% - 40px));
  min-height: var(--header-height);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: 0;
}

.site-header .brand {
  color: var(--white);
}

.site-header.is-scrolled .brand,
.site-header.nav-active .brand {
  color: var(--ink);
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  color: #0d2a1f;
  background: linear-gradient(135deg, #c8ff5a, #18d98b);
  border-radius: 14px;
  box-shadow: 0 18px 36px rgba(0, 183, 168, 0.38);
  font-family: "Yu Gothic", "Meiryo", "Noto Sans JP", "Inter", sans-serif;
  font-size: 2.42rem;
  font-weight: 900;
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-links a {
  padding: 16px 21px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.14rem;
  font-weight: 700;
  border-radius: 8px;
  transition: color 180ms ease, background 180ms ease;
}

.site-header.is-scrolled .nav-links a,
.site-header.nav-active .nav-links a {
  color: var(--graphite);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
  background: rgba(180, 232, 74, 0.2);
  outline: none;
}

.nav-toggle {
  display: none;
  position: relative;
  z-index: 16;
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(8, 12, 16, 0.96) 0%, rgba(8, 12, 16, 0.78) 38%, rgba(8, 12, 16, 0.28) 72%, rgba(8, 12, 16, 0.42) 100%),
    linear-gradient(180deg, rgba(8, 12, 16, 0.34), rgba(8, 12, 16, 0.72));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: calc(var(--header-height) + 70px) 0 72px;
}

h1,
h2,
h3,
p,
a,
button {
  overflow-wrap: break-word;
}

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

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(4rem, 8vw, 8.6rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 650px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.04rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 16px 36px rgba(180, 232, 74, 0.24);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #c6f36a;
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  background: rgba(255, 255, 255, 0.16);
}

.button-ghost {
  color: var(--graphite);
  border-color: var(--line);
  background: var(--white);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  border-color: rgba(0, 183, 168, 0.38);
  box-shadow: 0 14px 34px rgba(9, 16, 22, 0.1);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  width: min(650px, 100%);
  gap: 1px;
  margin: 54px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  overflow: hidden;
}

.hero-stats div {
  padding: 18px;
  background: rgba(8, 12, 16, 0.48);
}

.hero-stats dt {
  margin: 0 0 6px;
  color: var(--lime);
  font-size: 1.38rem;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.4;
}

.section,
.plans,
.contact-section,
.showcase {
  padding: 98px 0;
}

.section-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.intro-band {
  color: var(--white);
  background: var(--graphite);
}

.intro-grid {
  min-height: 132px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
}

.intro-grid p {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.1rem, 2.2vw, 1.7rem);
  line-height: 1.42;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--lime);
  font-weight: 800;
  white-space: nowrap;
}

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

.section-heading h2,
.showcase-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-heading p:not(.eyebrow),
.showcase-copy p:not(.eyebrow),
.contact-copy p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.7;
}

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

.service-card,
.plan-card,
.use-cases article,
.timeline li,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.service-card {
  min-height: 280px;
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 34px;
  color: var(--ink);
  background: #e9f7ef;
  border-radius: 8px;
  font-size: 1.15rem;
  font-weight: 800;
}

.service-card h3,
.use-cases h3,
.timeline h3,
.plan-card h3 {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
}

.service-card p,
.use-cases p,
.timeline p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.showcase {
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(0, 183, 168, 0.18), transparent 38%),
    var(--ink);
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 54px;
}

.showcase-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.use-cases {
  display: grid;
  gap: 14px;
}

.use-cases article {
  padding: 24px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.use-cases span,
.timeline span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.use-cases p {
  color: rgba(255, 255, 255, 0.68);
}

.method-section {
  background: #eef3ef;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  min-height: 240px;
  padding: 26px;
}

.plans {
  background: var(--paper);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.plan-card {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.plan-card.is-featured {
  color: var(--white);
  background: var(--graphite);
  border-color: var(--graphite);
  box-shadow: var(--shadow);
}

.plan-label {
  width: max-content;
  margin: 0;
  padding: 7px 10px;
  color: var(--teal-dark);
  background: rgba(0, 183, 168, 0.12);
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.is-featured .plan-label {
  color: var(--ink);
  background: var(--lime);
}

.plan-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
}

.plan-card ul {
  display: grid;
  gap: 12px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 22px;
  color: var(--muted);
  line-height: 1.5;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  background: var(--teal);
  border-radius: 50%;
}

.is-featured li {
  color: rgba(255, 255, 255, 0.72);
}

.plan-card .button {
  margin-top: auto;
}

.contact-section {
  color: var(--white);
  background: linear-gradient(135deg, var(--ink), #24302d);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.68fr);
  gap: 64px;
  align-items: start;
}

.contact-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-list a {
  color: var(--lime);
  font-weight: 800;
}

.contact-form {
  padding: 26px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--graphite);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfb;
  outline: none;
  transition: border 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 132px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--teal);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(0, 183, 168, 0.14);
}

.form-submit {
  width: 100%;
  border: 0;
}

.form-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--teal-dark);
  font-weight: 800;
  line-height: 1.4;
}

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

.chatbot-widget {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
}

.chatbot-launcher {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  color: var(--ink);
  background: linear-gradient(135deg, #c8ff5a, #18d98b);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 20px 48px rgba(0, 183, 168, 0.34);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chatbot-launcher:hover,
.chatbot-launcher:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 58px rgba(0, 183, 168, 0.42);
  outline: none;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 82px;
  width: min(372px, calc(100vw - 28px));
  max-height: min(560px, calc(100vh - 120px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  overflow: hidden;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

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

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  color: var(--white);
  background: var(--graphite);
}

.chatbot-header p,
.chatbot-header h2 {
  margin: 0;
}

.chatbot-header p {
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chatbot-header h2 {
  margin-top: 4px;
  font-size: 1.22rem;
}

.chatbot-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.chatbot-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 260px;
  padding: 16px;
  overflow-y: auto;
  background: #f4f7f4;
}

.chatbot-message {
  max-width: 88%;
  padding: 11px 13px;
  border-radius: 8px;
  font-size: 0.94rem;
  line-height: 1.48;
}

.chatbot-message.bot {
  justify-self: start;
  color: var(--graphite);
  background: var(--white);
  border: 1px solid var(--line);
}

.chatbot-message.user {
  justify-self: end;
  color: var(--ink);
  background: var(--lime);
}

.chatbot-suggestions {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  border-top: 1px solid var(--line);
}

.chatbot-suggestions button {
  flex: 0 0 auto;
  padding: 9px 11px;
  color: var(--graphite);
  background: #eef3ef;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
}

.chatbot-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.chatbot-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}

.chatbot-form input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(0, 183, 168, 0.14);
}

.chatbot-form button {
  display: grid;
  place-items: center;
  min-height: 46px;
  color: var(--ink);
  background: var(--lime);
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 900;
}

.site-footer {
  padding: 28px 0;
  color: var(--white);
  background: #0d1115;
}

.footer-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
}

.footer-grid p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 16px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  font-weight: 700;
}

@media (max-width: 980px) {
  .services-grid,
  .timeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .plans-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 96px;
  }

  .nav-shell,
  .section-inner,
  .hero-content {
    width: calc(100vw - 40px);
    max-width: 1180px;
  }

  .nav-toggle {
    display: block;
    width: 56px;
    min-width: 56px;
    height: 56px;
  }

  .brand {
    gap: 14px;
    font-size: 1.22rem;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    font-size: 1.86rem;
  }

  .nav-links {
    position: fixed;
    inset: var(--header-height) 14px auto 14px;
    display: grid;
    gap: 4px;
    padding: 14px;
    background: rgba(247, 248, 246, 0.97);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
    transform: translateY(-14px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a,
  .site-header .nav-links a {
    color: var(--graphite);
    padding: 14px;
  }

  .hero {
    min-height: 94vh;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(8, 12, 16, 0.95), rgba(8, 12, 16, 0.76)),
      linear-gradient(180deg, rgba(8, 12, 16, 0.3), rgba(8, 12, 16, 0.76));
  }

  .hero h1 {
    font-size: clamp(2.45rem, 13.4vw, 3.9rem);
    overflow-wrap: anywhere;
  }

  .hero-copy,
  .hero-actions,
  .hero-stats {
    width: 100%;
    max-width: calc(100vw - 64px);
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .intro-grid {
    grid-template-columns: 1fr;
    padding: 28px 0;
    gap: 18px;
  }

  .section,
  .plans,
  .contact-section,
  .showcase {
    padding: 70px 0;
  }

  .services-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .service-card,
  .timeline li {
    min-height: auto;
  }

  .contact-grid {
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-shell,
  .section-inner,
  .hero-content {
    width: min(calc(100vw - 28px), 362px);
    margin-left: 14px;
    margin-right: auto;
  }

  .hero-copy,
  .hero-actions,
  .hero-stats {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .contact-form {
    padding: 18px;
  }

  .chatbot-widget {
    right: 14px;
    bottom: 14px;
  }

  .chatbot-launcher {
    width: 58px;
    height: 58px;
  }

  .chatbot-panel {
    right: 0;
    bottom: 72px;
    max-height: calc(100vh - 100px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
