:root {
  --ink: #102326;
  --muted: #5a6d70;
  --line: #d7e2de;
  --paper: #f7faf7;
  --white: #ffffff;
  --green: #00a676;
  --teal: #087f8c;
  --amber: #f2a541;
  --coral: #e65f5c;
  --shadow: 0 18px 50px rgba(16, 35, 38, 0.14);
  --radius: 8px;
  --max: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", Arial, sans-serif;
  line-height: 1.75;
  letter-spacing: 0;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  width: min(calc(100% - 32px), var(--max));
  margin: 14px auto 0;
  padding: 12px 14px 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(16, 35, 38, 0.36);
  backdrop-filter: blur(16px);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.94);
  font-weight: 700;
  justify-self: start;
}

.brand-logo {
  display: block;
  width: auto;
  max-width: 44px;
  height: 34px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.brand-name {
  white-space: nowrap;
  color: var(--ink);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 700;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font-size: 14px;
  font-weight: 800;
}

.site-header.is-scrolled .header-cta,
.site-header.is-open .header-cta {
  color: var(--white);
  background: var(--ink);
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 7px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.mobile-nav {
  position: fixed;
  top: 76px;
  left: 16px;
  right: 16px;
  z-index: 19;
  display: none;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mobile-nav.is-open {
  display: grid;
}

.mobile-nav a {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.mobile-nav a:last-child {
  border-bottom: 0;
  color: var(--white);
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
  background: #102326;
}

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

.hero-canvas {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(16, 35, 38, 0.92), rgba(16, 35, 38, 0.62) 44%, rgba(16, 35, 38, 0.2)),
    linear-gradient(0deg, rgba(16, 35, 38, 0.65), transparent 34%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 92vh;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 120px 0 54px;
}

.eyebrow,
.section-label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 830px;
  margin: 0;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
}

.button.full {
  width: 100%;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(720px, 100%);
  margin: 62px 0 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  overflow: hidden;
}

.hero-metrics div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.11);
}

.hero-metrics dt {
  margin: 0;
  color: var(--amber);
  font-weight: 900;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.section {
  padding: 92px 0;
}

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

.two-column,
.value-layout,
.business-layout,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 58px;
  align-items: start;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.22;
  letter-spacing: 0;
}

.section h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
}

.section p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  display: grid;
  gap: 0;
  max-width: 720px;
  margin-bottom: 34px;
}

.services,
.process,
.faq {
  background: var(--white);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 260px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.service-card.accent {
  color: var(--white);
  border-color: var(--teal);
  background: var(--teal);
}

.service-card.accent p,
.service-card.accent .service-number {
  color: rgba(255, 255, 255, 0.82);
}

.service-number {
  display: block;
  margin-bottom: 28px;
  color: var(--teal);
  font-weight: 900;
}

.service-card p {
  margin-top: 14px;
}

.value {
  background:
    linear-gradient(135deg, rgba(0, 166, 118, 0.12), transparent 45%),
    var(--paper);
}

.value-panel {
  padding: 34px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--ink);
}

.value-panel p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.78);
}

.value-list {
  display: grid;
  gap: 14px;
}

.value-list div,
.business-cards article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.value-list strong,
.value-list span {
  display: block;
}

.value-list strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.value-list span {
  color: var(--muted);
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 1px;
  border-radius: var(--radius);
  background: var(--line);
  list-style: none;
  overflow: hidden;
}

.process-list li {
  min-height: 230px;
  padding: 26px;
  background: var(--white);
}

.process-list span {
  display: inline-flex;
  margin-bottom: 32px;
  color: var(--coral);
  font-weight: 900;
}

.process-list p {
  margin-top: 12px;
}

.business-cards {
  display: grid;
  gap: 16px;
}

.business-cards p {
  margin-top: 10px;
}

.cta-band {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: center;
  padding: 34px;
  border-radius: var(--radius);
  color: var(--white);
  background: linear-gradient(135deg, var(--teal), var(--ink));
}

.cta-band p,
.cta-band .section-label {
  color: rgba(255, 255, 255, 0.82);
}

.cta-band p {
  margin-top: 14px;
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 800;
}

details p {
  padding: 0 22px 22px;
}

.contact {
  background: var(--ink);
  color: var(--white);
}

.contact p {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.contact-form span {
  font-size: 13px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfdfb;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .form-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.form-alert {
  margin: 0;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 800;
}

.form-alert.success {
  color: #0c5f45;
  background: rgba(0, 166, 118, 0.12);
}

.form-alert.error {
  color: #9d2d2b;
  background: rgba(230, 95, 92, 0.12);
}

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

.site-footer .brand {
  background: rgba(255, 255, 255, 0.96);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.footer-inner p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

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

.chatbot-toggle {
  position: absolute;
  right: 0;
  bottom: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 7px;
  color: var(--white);
  background: var(--green);
  box-shadow: var(--shadow);
  font-weight: 900;
  cursor: pointer;
}

.chatbot-pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(242, 165, 65, 0.8);
  animation: pulse 1.9s infinite;
}

.chatbot-panel {
  position: absolute;
  right: 0;
  bottom: 66px;
  display: none;
  width: min(360px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chatbot.is-open .chatbot-panel {
  display: block;
}

.chatbot.is-open .chatbot-toggle {
  display: none;
}

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

.chatbot-header strong,
.chatbot-header span {
  display: block;
}

.chatbot-header span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.chatbot-header button {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 7px;
  color: var(--white);
  background: transparent;
  cursor: pointer;
}

.chatbot-messages {
  display: grid;
  gap: 10px;
  max-height: 310px;
  padding: 16px;
  overflow-y: auto;
  background: var(--paper);
}

.chat-message {
  width: fit-content;
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 7px;
  line-height: 1.55;
}

.chat-message.bot {
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
}

.chat-message.user {
  justify-self: end;
  color: var(--white);
  background: var(--teal);
}

.chatbot-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.chatbot-options button {
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--white);
  font-weight: 800;
  cursor: pointer;
}

.chatbot-input {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 16px 16px;
}

.chatbot-input input {
  min-width: 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 10px;
}

.chatbot-input button {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  padding: 0 14px;
  color: var(--white);
  background: var(--green);
  font-weight: 900;
  cursor: pointer;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(242, 165, 65, 0.8);
  }

  70% {
    box-shadow: 0 0 0 10px rgba(242, 165, 65, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(242, 165, 65, 0);
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .header-cta {
    display: none;
  }

  .menu-button {
    display: block;
  }

  .two-column,
  .value-layout,
  .business-layout,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

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

  .cta-band,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    width: calc(100% - 24px);
    margin-top: 10px;
  }

  .brand-name {
    font-size: 14px;
  }

  .hero {
    min-height: 760px;
  }

  .hero-inner {
    min-height: 760px;
    width: calc(100% - 28px);
    padding-top: 108px;
  }

  h1 {
    font-size: 44px;
  }

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

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

  .hero-metrics,
  .service-grid,
  .process-list {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .section-inner {
    width: calc(100% - 28px);
  }

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

  .value-panel,
  .cta-band,
  .contact-form {
    padding: 22px;
  }

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

  .chatbot-panel {
    bottom: 62px;
  }
}
