:root {
  --ink: #253238;
  --muted: #657579;
  --line: #dce9e5;
  --soft: #f6fbf8;
  --mint: #67cdbd;
  --teal: #219c90;
  --green: #2d735d;
  --yellow: #ffd86f;
  --peach: #ffe7d6;
  --white: #ffffff;
  --shadow: 0 22px 64px rgba(35, 79, 75, 0.12);
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fbfdfb;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(220, 233, 229, 0.75);
  backdrop-filter: blur(16px);
}

.site-header.is-scrolled {
  box-shadow: 0 10px 28px rgba(35, 79, 75, 0.08);
}

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

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 2px solid #253c3b;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #dff8f3);
  box-shadow: 0 8px 0 #d6efe9;
}

.brand-mark::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 18px;
  width: 4px;
  height: 8px;
  background: #253c3b;
  border-radius: 999px;
}

.brand-mark::after {
  content: "";
  position: absolute;
  top: -13px;
  left: 14px;
  width: 12px;
  height: 12px;
  background: var(--yellow);
  border: 2px solid #253c3b;
  border-radius: 50%;
}

.brand-face::before,
.brand-face::after {
  content: "";
  position: absolute;
  top: 18px;
  width: 6px;
  height: 6px;
  background: var(--teal);
  border-radius: 50%;
}

.brand-face::before {
  left: 12px;
}

.brand-face::after {
  right: 12px;
}

.brand-name {
  display: block;
  font-size: clamp(1rem, 2vw, 1.14rem);
  font-weight: 800;
  line-height: 1.2;
}

.brand-sub {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: #43575a;
  font-size: 0.92rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: #ecf8f5;
  color: var(--green);
}

.site-nav .nav-contact {
  background: var(--ink);
  color: #fff;
}

.site-nav .nav-contact:hover {
  background: var(--green);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  min-height: min(720px, calc(100vh - 76px));
  isolation: isolate;
  overflow: hidden;
  background: #f7fbf8;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

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

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(250, 255, 250, 0.99) 0%, rgba(250, 255, 250, 0.93) 42%, rgba(250, 255, 250, 0.5) 68%, rgba(250, 255, 250, 0.05) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(246, 251, 248, 0.95));
}

.hero-content {
  align-self: center;
  width: min(650px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 88px);
  padding: 72px 0 88px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1 {
  max-width: 630px;
  margin: 0;
  font-size: clamp(2.3rem, 5.7vw, 5rem);
  line-height: 1.08;
  font-weight: 800;
  text-wrap: balance;
}

.lead {
  max-width: 620px;
  margin: 26px 0 0;
  color: #4d5f61;
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 26px rgba(31, 159, 145, 0.24);
}

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

.button.ghost {
  border-color: rgba(38, 50, 56, 0.15);
  background: rgba(255, 255, 255, 0.82);
}

.section {
  padding: clamp(70px, 9vw, 116px) clamp(18px, 4vw, 56px);
}

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

.narrow {
  width: min(860px, 100%);
}

.section h2 {
  margin: 0;
  font-size: clamp(1.78rem, 3.4vw, 2.85rem);
  line-height: 1.25;
  font-weight: 800;
  text-wrap: balance;
}

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

.intro {
  background: #fff;
}

.intro p:last-child,
.profile-copy p:not(.section-kicker),
.consulting-panel p:not(.section-kicker) {
  margin-top: 18px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.work {
  background: var(--soft);
}

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

.work-card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(35, 79, 75, 0.07);
}

.card-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 28px;
  border-radius: 16px;
  background: #e6f9f4;
  color: var(--green);
  font-weight: 800;
}

.work-card h3 {
  margin: 0 0 12px;
  font-size: 1.18rem;
  line-height: 1.45;
}

.work-card p {
  font-size: 0.96rem;
}

.consulting {
  background: linear-gradient(135deg, #eaf9f6 0%, #fff8df 58%, #fff 100%);
}

.consulting-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: clamp(28px, 6vw, 70px);
  align-items: center;
}

.robot-badge {
  position: relative;
  width: 168px;
  aspect-ratio: 1;
  border: 4px solid #253c3b;
  border-radius: 44px;
  background: linear-gradient(145deg, #fff, #c7f1ea);
  box-shadow: 0 18px 0 #d7f3ec, var(--shadow);
}

.robot-badge::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 78px;
  width: 8px;
  height: 32px;
  background: #253c3b;
  border-radius: 999px;
}

.robot-badge::after {
  content: "";
  position: absolute;
  top: -54px;
  left: 63px;
  width: 38px;
  height: 38px;
  border: 4px solid #253c3b;
  border-radius: 50%;
  background: var(--yellow);
}

.robot-eye {
  position: absolute;
  top: 66px;
  width: 20px;
  height: 20px;
  background: var(--teal);
  border-radius: 50%;
}

.robot-eye.left {
  left: 48px;
}

.robot-eye.right {
  right: 48px;
}

.robot-mouth {
  position: absolute;
  left: 62px;
  bottom: 46px;
  width: 42px;
  height: 22px;
  border-bottom: 5px solid #253c3b;
  border-radius: 0 0 999px 999px;
}

.consulting-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.consulting-list li {
  position: relative;
  padding-left: 28px;
  color: #43575a;
  font-weight: 700;
}

.consulting-list li::before {
  content: "";
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 4px rgba(255, 216, 111, 0.26);
}

.profile {
  background: #fff;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 78px);
  align-items: center;
}

.profile-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.avatar {
  width: 92px;
  height: 92px;
  margin-bottom: 24px;
}

.logo-avatar {
  object-fit: contain;
  border-radius: 28px;
  filter: drop-shadow(0 14px 26px rgba(35, 79, 75, 0.12));
}

.profile-card .role {
  color: var(--green);
  font-weight: 800;
}

.profile-card h2 {
  margin-top: 6px;
}

.profile-card p:last-child {
  margin-top: 12px;
}

.office-address {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.93rem;
  font-style: normal;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  margin-top: 26px;
  color: var(--green);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

.contact-page {
  background: linear-gradient(180deg, #f6fbf8 0%, #fff 48%);
}

.page-hero {
  padding: clamp(64px, 9vw, 110px) clamp(18px, 4vw, 56px) clamp(34px, 6vw, 70px);
}

.page-hero-inner {
  width: min(900px, 100%);
  margin: 0 auto;
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.1;
  font-weight: 800;
  text-wrap: balance;
}

.page-hero p {
  max-width: 720px;
  margin: 20px 0 0;
  color: var(--muted);
}

.contact-section {
  padding: 0 clamp(18px, 4vw, 56px) clamp(78px, 10vw, 128px);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(320px, 1.18fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
}

.contact-note {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(35, 79, 75, 0.07);
}

.contact-note h2 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

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

.mail-link {
  display: inline-flex;
  margin-top: 22px;
  color: var(--green);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-note .office-address {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: #415457;
  font-weight: 800;
}

.required {
  color: #b45b34;
  font-size: 0.82rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid #cfe0dd;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 13px 14px;
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(102, 203, 189, 0.22);
}

.form-button {
  width: 100%;
  margin-top: 4px;
  border: 0;
  cursor: pointer;
}

.form-help {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.form-alert {
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 700;
}

.form-alert.error {
  border: 1px solid #f1b69d;
  background: #fff1e9;
  color: #8a3d1b;
}

.form-alert.success {
  border: 1px solid #abdccc;
  background: #eefaf6;
  color: #276854;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 32px clamp(18px, 4vw, 56px);
  background: var(--ink);
  color: #fff;
}

.site-footer div {
  display: grid;
  gap: 2px;
}

.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 920px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 18px;
    left: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    border-radius: 8px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(250, 255, 250, 0.98) 0%, rgba(250, 255, 250, 0.94) 48%, rgba(250, 255, 250, 0.78) 100%);
  }

  .hero-media {
    position: relative;
    order: 2;
    min-height: 320px;
  }

  .hero-content {
    width: min(100% - 36px, 680px);
    margin: 0 auto;
    padding: 56px 0 24px;
  }

  .work-grid,
  .consulting-panel,
  .profile-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .robot-badge {
    width: 148px;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 68px;
    padding: 12px 16px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 14px;
  }

  .brand-sub {
    max-width: 180px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

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

  .section {
    padding: 64px 18px;
  }

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

  .contact-form,
  .contact-note {
    padding: 20px;
  }

  .site-footer {
    display: grid;
  }
}
