:root {
  --paper: #edf5f2;
  --white: #fbfdfc;
  --ink: #19372f;
  --moss: #347566;
  --moss-dark: #173e36;
  --sage: #d7e8e0;
  --water: #8dccca;
  --water-light: #d8f0ee;
  --clay: #e89570;
  --muted: #637873;
  --line: rgba(25, 55, 47, .13);
  --rail: 106px;
  --max: 1180px;
  --serif: "Zen Old Mincho", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --latin: "Manrope", Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow-soft: 0 24px 70px rgba(35, 81, 71, .1);
  --shadow-card: 0 14px 40px rgba(35, 81, 71, .08);
}

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

html {
  min-width: 320px;
  scroll-behavior: smooth;
  scroll-padding-top: 30px;
  line-break: strict;
}

body {
  min-width: 320px;
  margin: 0 0 0 var(--rail);
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 8%, rgba(216, 240, 238, .95), transparent 28rem),
    radial-gradient(circle at 92% 28%, rgba(232, 149, 112, .09), transparent 24rem),
    var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.95;
  letter-spacing: .025em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }

img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { color: inherit; font: inherit; }
h1, h2, h3, p, ul, figure { margin-top: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.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;
}

.demo-return {
  position: fixed;
  z-index: 90;
  right: 18px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 15px;
  color: var(--white);
  background: rgba(23, 62, 54, .88);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .06em;
  box-shadow: 0 10px 30px rgba(23, 62, 54, .18);
  backdrop-filter: blur(16px);
}

.demo-notice {
  position: absolute;
  z-index: 89;
  bottom: 16px;
  left: calc(var(--rail) + 18px);
  max-width: min(560px, calc(100vw - var(--rail) - 210px));
  margin: 0;
  padding: 9px 13px;
  color: var(--moss-dark);
  background: rgba(251, 253, 252, .84);
  border: 1px solid rgba(49, 91, 75, .16);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.6;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(35, 81, 71, .07);
  backdrop-filter: blur(18px);
}

.site-header {
  position: fixed;
  z-index: 80;
  inset: 14px auto 14px 14px;
  width: calc(var(--rail) - 28px);
  color: var(--ink);
  background: rgba(251, 253, 252, .78);
  border-right: 1px solid var(--line);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 28px;
  box-shadow: 0 18px 45px rgba(35, 81, 71, .1);
  backdrop-filter: blur(22px) saturate(1.2);
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  padding: 16px 8px 14px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  font-family: var(--serif);
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .08em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--moss), var(--water));
  border-radius: 50% 50% 46% 54% / 62% 62% 38% 38%;
  font-size: .78rem;
  box-shadow: 0 8px 20px rgba(52, 117, 102, .24);
}

.brand > span:last-child { writing-mode: vertical-rl; }
.brand small { display: none; }

.global-nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 17px;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.global-nav a {
  position: relative;
  color: var(--muted);
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
  transition: color .3s var(--ease), transform .3s var(--ease);
}

.global-nav a::after {
  position: absolute;
  top: 0;
  right: -9px;
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--water), var(--clay));
  content: "";
  opacity: 0;
  transform: scaleY(0);
  transition: opacity .3s, transform .3s var(--ease);
}

.global-nav a:hover,
.global-nav a[aria-current="page"] { color: var(--ink); transform: translateY(-2px); }
.global-nav a:hover::after,
.global-nav a[aria-current="page"]::after { opacity: 1; transform: scaleY(1); }

.header-contact {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--moss);
  font-family: var(--latin);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
  writing-mode: vertical-rl;
}

.header-contact small { color: var(--clay); font-size: 8px; }
.menu-toggle { display: none; }

.hero {
  display: grid;
  grid-template-columns: minmax(420px, .92fr) minmax(520px, 1.08fr);
  min-height: calc(100svh - 32px);
  margin: 16px 18px 0 0;
  overflow: hidden;
  background: rgba(251, 253, 252, .88);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: 38px;
  box-shadow: var(--shadow-soft);
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 58px 5vw 34px 4vw;
}

.sample-label,
.section-kicker {
  margin-bottom: 18px;
  color: var(--moss);
  font-family: var(--latin);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.sample-label {
  width: fit-content;
  padding: 7px 12px;
  background: rgba(216, 240, 238, .66);
  border: 1px solid rgba(52, 117, 102, .1);
  border-radius: 999px;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 28px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.34;
  letter-spacing: -.045em;
}

.hero h1 span { display: block; white-space: nowrap; }

.lead {
  max-width: 600px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(.9rem, 1.25vw, 1.03rem);
  line-height: 2.15;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  align-items: center;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .06em;
  box-shadow: 0 10px 26px rgba(35, 81, 71, .08);
  transition: color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease), box-shadow .35s var(--ease);
}

.btn:hover { color: var(--white); background: var(--ink); transform: translateY(-3px); box-shadow: 0 16px 32px rgba(35, 81, 71, .16); }
.btn-primary { color: var(--white); background: linear-gradient(135deg, var(--moss), #4f9185); border-color: transparent; }
.btn-primary:hover { background: var(--clay); border-color: var(--clay); }
.btn-secondary { color: var(--ink); background: transparent; }

.text-link {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(25, 55, 47, .34);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .06em;
}

.text-link span { transition: transform .35s var(--ease); }
.text-link:hover span { transform: translate(4px, -4px); }

.hero-wordmark {
  display: flex;
  flex-direction: column;
  margin: auto 0 70px;
  font-family: var(--latin);
  font-size: clamp(3.7rem, 7.2vw, 8.5rem);
  font-weight: 300;
  line-height: .78;
  letter-spacing: -.075em;
}

.hero-wordmark span:last-child {
  align-self: flex-end;
  color: transparent;
  background: linear-gradient(90deg, var(--water), #b7ddd7);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-visual {
  position: relative;
  min-height: 660px;
  margin: 18px 18px 18px 0;
  overflow: hidden;
  background: var(--moss-dark);
  border-radius: 30px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}

.hero-visual::before {
  position: absolute;
  z-index: 1;
  top: -8%;
  right: -11%;
  width: 46%;
  aspect-ratio: 1;
  background: rgba(216, 240, 238, .2);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 50%;
  box-shadow: 0 0 70px rgba(216, 240, 238, .16);
  content: "";
  pointer-events: none;
}

.hero-backdrop {
  position: absolute;
  inset: -3%;
  width: 106%;
  height: 106%;
  object-fit: cover;
  filter: blur(15px) saturate(.72) brightness(.8);
  transform: scale(1.05);
  transition: opacity .55s var(--ease), transform 1s var(--ease), filter .8s var(--ease);
}

.hero-visual::after {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 22%, rgba(182, 231, 226, .22), transparent 31%),
    linear-gradient(180deg, rgba(20, 37, 31, .02), rgba(20, 37, 31, .24));
  content: "";
  pointer-events: none;
}

.hero-focus {
  position: absolute;
  z-index: 2;
  top: 23%;
  left: 50%;
  width: min(48%, 380px);
  aspect-ratio: .78;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 999px 999px 34px 34px;
  box-shadow: 0 28px 60px rgba(11, 36, 30, .26);
  transform: translateX(-50%);
}

.hero-focus img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .55s var(--ease), transform 1.1s var(--ease);
}

.hero-visual.is-switching .hero-backdrop,
.hero-visual.is-switching .hero-focus img { opacity: .08; transform: scale(1.1); }

.hero-vertical {
  position: absolute;
  z-index: 3;
  top: 37%;
  left: 11%;
  margin: 0;
  color: var(--white);
  font-family: var(--serif);
  font-size: .76rem;
  line-height: 1.9;
  letter-spacing: .12em;
  writing-mode: vertical-rl;
}

.hero-count {
  position: absolute;
  z-index: 3;
  right: 24px;
  bottom: 22px;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: .12em;
}

.hero-count span { color: var(--white); font-size: 1.4rem; font-weight: 300; }

.section,
.footer-inner {
  width: min(var(--max), calc(100% - 9vw));
  margin-inline: auto;
}

.section { padding: clamp(78px, 8vw, 112px) 0; }

.manifesto {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 7vw;
  align-items: end;
  min-height: 720px;
}

.manifesto > .section-kicker { grid-column: 1 / -1; align-self: end; margin-bottom: -4vw; }
.manifesto h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 4.5vw, 3.6rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.055em;
}

.manifesto h2 span { display: block; }

@media (min-width: 901px) {
  .manifesto h2 span { white-space: nowrap; }
}

.manifesto-copy { padding-bottom: 12px; }
.manifesto-copy p { margin-bottom: 22px; color: var(--muted); font-size: .86rem; line-height: 2.25; }
.manifesto-copy .text-link { margin-top: 12px; }

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .5fr);
  gap: 7vw;
  align-items: end;
  margin-bottom: 54px;
  padding-bottom: 26px;
  border-bottom: 0;
}

.section-heading::after {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  margin-top: 4px;
  background: linear-gradient(90deg, rgba(52, 117, 102, .42), rgba(141, 204, 202, .08));
  content: "";
}

.section-heading h2,
.page-hero h1 {
  margin-bottom: 0;
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.4vw, 6.2rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.05em;
}

.section-heading > p:last-child,
.intro-text,
.muted {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .82rem;
  line-height: 2.15;
}

.band {
  background: linear-gradient(135deg, rgba(251, 253, 252, .96), rgba(223, 242, 239, .7));
  box-shadow: 0 0 0 100vmax rgba(251, 253, 252, .82);
  clip-path: inset(0 -100vmax);
}

.grid-2, .grid-3, .grid-4 { display: grid; gap: 14px; background: transparent; border: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }

.card,
.reason-card,
.info-card,
.faq-item {
  min-width: 0;
  min-height: 250px;
  padding: 30px 26px 34px;
  background: rgba(251, 253, 252, .7);
  border: 1px solid rgba(255, 255, 255, .82);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  transition: color .4s var(--ease), background .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}

.band .card,
.band .reason-card,
.band .faq-item { background: rgba(251, 253, 252, .82); }

.card:hover,
.reason-card:hover,
.info-card:hover,
.faq-item:hover { color: var(--white); background: linear-gradient(145deg, var(--moss), #4c8f82); transform: translateY(-6px); box-shadow: 0 22px 45px rgba(35, 81, 71, .16); }

.card h3,
.reason-card h3,
.info-card h3,
.faq-item h3 {
  margin: 22px 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2vw, 2rem);
  font-weight: 500;
  line-height: 1.45;
}

.card p,
.reason-card p,
.info-card p,
.faq-item p,
.service-block p,
.case-card p,
.service-list li,
.footer-inner { color: var(--muted); }

.card:hover p,
.reason-card:hover p,
.info-card:hover p,
.faq-item:hover p { color: rgba(255, 255, 255, .78); }

.icon-number {
  display: inline-flex;
  align-items: center;
  color: var(--clay);
  font-family: var(--latin);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .1em;
}

.icon-number::after { width: 36px; height: 1px; margin-left: 12px; background: currentColor; content: ""; }

.visual-panel {
  position: relative;
  overflow: hidden;
  background: var(--sage);
  border-radius: 30px;
  box-shadow: var(--shadow-card);
}

.visual-panel img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .9s var(--ease), filter .6s var(--ease);
}

.visual-panel:hover img,
.case-card:hover img { transform: scale(1.04); }

.service-card { min-height: 280px; }

.case-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(251, 253, 252, .88);
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
}

.case-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(.82);
  transition: transform .85s var(--ease), filter .55s var(--ease);
}

.case-card:hover img { filter: saturate(1); }
.case-card-body { padding: 27px 25px 34px; }

.case-card h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.5vw, 2.8rem);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -.03em;
}

.case-card p { font-size: .78rem; line-height: 2; }

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  padding: 0 0 16px;
  margin: 0 0 20px;
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.meta-list li {
  color: var(--moss);
  font-family: var(--latin);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .08em;
}

.area-box,
.cta,
.phone-box {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(145deg, var(--moss-dark), #27675b 72%, #377b72);
  border-radius: 34px;
  box-shadow: 0 24px 65px rgba(23, 62, 54, .18);
}

.area-box { padding: clamp(45px, 7vw, 90px); }
.area-box::after,
.cta::after {
  position: absolute;
  right: -1vw;
  bottom: -5vw;
  color: rgba(255, 255, 255, .06);
  font-family: var(--latin);
  font-size: clamp(5rem, 13vw, 14rem);
  font-weight: 300;
  line-height: .8;
  letter-spacing: -.07em;
  content: "KYOTO";
  pointer-events: none;
}

.area-box h2,
.cta h2,
.phone-box h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  color: var(--white);
  font-family: var(--serif);
  font-size: clamp(2.5rem, 5vw, 5.7rem);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -.045em;
}

.area-box > p,
.cta p,
.phone-box p { position: relative; z-index: 1; color: rgba(255, 255, 255, .72); }

.area-tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.area-tags li {
  padding: 7px 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 999px;
  font-size: .68rem;
}

.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  padding: clamp(45px, 7vw, 84px);
  margin-top: clamp(65px, 9vw, 110px);
}

.cta::after { content: "CONTACT"; }
.cta > * { position: relative; z-index: 1; }
.cta .btn { color: var(--moss-dark); background: var(--white); border-color: var(--white); }
.cta .btn:hover { color: var(--white); background: var(--clay); border-color: var(--clay); }

.page-hero {
  min-height: 720px;
  padding: 80px 0;
  margin: 16px 18px 0 0;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(251, 253, 252, .96), rgba(223, 242, 239, .72));
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 38px;
  box-shadow: var(--shadow-soft);
}

.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 7vw;
  align-items: center;
  width: min(var(--max), calc(100% - 9vw));
  margin-inline: auto;
}

.page-hero h1 { margin-bottom: 30px; }
.page-hero .lead { max-width: 580px; }

.page-hero .visual-panel { aspect-ratio: 1 / .82; background: linear-gradient(145deg, var(--moss), var(--water)); }
.page-hero .visual-panel img {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 999px 999px 28px 28px;
  object-fit: cover;
  clip-path: inset(0 12% 0);
}

.service-block {
  display: grid;
  grid-template-columns: minmax(240px, .68fr) minmax(0, 1.32fr);
  gap: 7vw;
  margin-bottom: 14px;
  padding: 48px 38px 54px;
  background: rgba(251, 253, 252, .68);
  border: 1px solid rgba(255, 255, 255, .78);
  border-radius: 28px;
  box-shadow: var(--shadow-card);
  transition: padding .4s var(--ease), color .4s var(--ease), transform .4s var(--ease), box-shadow .4s var(--ease);
}

.service-block:last-of-type { border-bottom: 1px solid rgba(255, 255, 255, .78); }
.service-block:hover { color: var(--moss); transform: translateY(-5px); box-shadow: 0 22px 48px rgba(35, 81, 71, .13); }

.service-block h2 {
  margin-bottom: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.8vw, 4.5rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: -.04em;
}

.service-block h3 { margin-top: 26px; font-size: .72rem; font-weight: 500; letter-spacing: .08em; }

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 25px;
  padding: 0;
  margin: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.service-list li { padding: 10px 0; border-bottom: 1px solid var(--line); font-size: .72rem; }
.service-list li::before { margin-right: 10px; color: var(--clay); content: "↳"; }

.split {
  display: grid;
  grid-template-columns: minmax(380px, .92fr) minmax(0, 1.08fr);
  gap: 7vw;
  align-items: center;
}

.split .visual-panel img { aspect-ratio: 4 / 5; }
.split h2 { font-family: var(--serif); font-size: clamp(2.4rem, 4.7vw, 5.3rem); font-weight: 400; line-height: 1.35; letter-spacing: -.045em; }
.split p { color: var(--muted); font-size: .82rem; line-height: 2.2; }
.profile-sign { margin-top: 28px; color: var(--moss) !important; font-family: var(--serif); font-size: 1rem !important; font-weight: 500; }

.company-table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--line);
}

.company-table th,
.company-table td { padding: 21px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.company-table th { width: 24%; color: var(--moss); font-size: .7rem; font-weight: 500; letter-spacing: .06em; }
.company-table td { font-size: .82rem; }

.notice {
  padding: 13px 15px;
  margin-top: 20px;
  color: var(--muted);
  background: rgba(49, 91, 75, .06);
  border-left: 2px solid var(--clay);
  font-size: .68rem;
}

.phone-box { padding: clamp(38px, 5vw, 64px); }
.phone-box::after {
  position: absolute;
  right: -15%;
  bottom: -30%;
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  content: "";
}
.phone-box strong { display: block; margin: 22px 0; font-family: var(--latin); font-size: clamp(2.1rem, 4.6vw, 4.7rem); font-weight: 300; line-height: 1; letter-spacing: -.055em; }

.form-shell { padding: clamp(36px, 5vw, 62px); background: var(--white); border-top: 1px solid var(--line); }
.form-shell { border: 1px solid rgba(255, 255, 255, .84); border-radius: 30px; box-shadow: var(--shadow-card); }
.form-shell h2 { font-family: var(--serif); font-size: clamp(2rem, 2.8vw, 3.1rem); font-weight: 400; white-space: nowrap; }
.contact-form { display: grid; gap: 24px; margin-top: 38px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 25px; }

label { display: grid; gap: 7px; color: var(--moss); font-size: .68rem; font-weight: 500; letter-spacing: .05em; }
input, select, textarea {
  width: 100%;
  padding: 12px 2px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  font-size: .82rem;
}

input:focus, select:focus, textarea:focus { border-color: var(--moss); box-shadow: 0 2px 0 var(--moss); }
.form-note { color: var(--muted); font-size: .65rem; }
.submit-button { min-height: 58px; color: var(--white); background: var(--moss); border: 0; cursor: pointer; font-size: .76rem; font-weight: 500; letter-spacing: .05em; transition: background .35s var(--ease); }
.submit-button { border-radius: 999px; box-shadow: 0 12px 28px rgba(35, 81, 71, .15); }
.submit-button:hover { background: var(--clay); }

.site-footer {
  padding: 80px 0 35px;
  color: rgba(255, 255, 255, .72);
  background: linear-gradient(145deg, #163c34, #245f55);
  border-radius: 38px 38px 0 0;
}

.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 45px; align-items: start; }
.footer-brand { margin-bottom: 15px; color: var(--white); font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.footer-inner p { font-size: .72rem; line-height: 2; }
.footer-nav { display: grid; grid-template-columns: repeat(2, minmax(100px, 1fr)); gap: 10px 26px; font-size: .68rem; }
.footer-nav a { padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .16); }
.footer-copy { grid-column: 1 / -1; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); }

.reveal { transition: opacity .6s var(--ease), transform .75s var(--ease); }
.js .reveal { opacity: 0; transform: translateY(24px); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@keyframes soft-float {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, -10px); }
}

@keyframes soft-drift {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-12px, 16px, 0); }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-focus { animation: soft-float 6s ease-in-out infinite; }
  .hero-visual::before { animation: soft-drift 9s ease-in-out infinite; }
}

@media (max-width: 1120px) {
  .hero { grid-template-columns: minmax(370px, .9fr) minmax(440px, 1.1fr); }
  .hero-content { padding-inline: 4vw; }
  .hero-wordmark { font-size: clamp(3.4rem, 7vw, 6.5rem); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  :root { --rail: 0px; }
  html { scroll-padding-top: 74px; }
  body { margin-left: 0; padding-top: 72px; }

  .site-header { inset: 0 0 auto; width: 100%; height: 72px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0 0 20px 20px; box-shadow: 0 10px 30px rgba(35, 81, 71, .09); }
  .header-inner { flex-direction: row; justify-content: space-between; height: 72px; padding: 0 18px; }
  .brand { flex-direction: row; font-size: .8rem; }
  .brand > span:last-child { writing-mode: horizontal-tb; }
  .brand-mark { width: 36px; height: 36px; }

  .menu-toggle {
    position: relative;
    z-index: 2;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
  }

  .menu-toggle span:not(.sr-only) { position: absolute; left: 11px; width: 20px; height: 1px; background: var(--ink); transition: transform .35s var(--ease), top .35s var(--ease); }
  .menu-toggle span:first-child { top: 18px; }
  .menu-toggle span:nth-child(2) { top: 25px; }
  .menu-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

  .global-nav {
    position: fixed;
    z-index: 1;
    inset: 71px 0 0;
    flex: none;
    flex-direction: column;
    gap: 0;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    height: calc(100dvh - 71px);
    padding: 8vw;
    color: var(--white);
    background:
      radial-gradient(circle at 82% 12%, rgba(141, 204, 202, .18), transparent 28%),
      linear-gradient(145deg, var(--moss-dark), #245f55);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-18px);
    transition: opacity .4s var(--ease), visibility .4s, transform .4s var(--ease);
    overflow-y: auto;
  }

  body.menu-open .global-nav { opacity: 1; visibility: visible; transform: none; }
  .global-nav a { padding: 13px 0; color: rgba(255, 255, 255, .78); border-bottom: 1px solid rgba(255, 255, 255, .16); font-family: var(--serif); font-size: clamp(1.6rem, 7vw, 3rem); line-height: 1.4; writing-mode: horizontal-tb; }
  .global-nav a::after { display: none; }
  .global-nav a:hover, .global-nav a[aria-current="page"] { color: var(--white); transform: none; }
  .header-contact { display: none; }

  .demo-notice { position: static; max-width: none; margin: 9px 12px; }
  .demo-return { right: 12px; bottom: 12px; }

  .hero { grid-template-columns: 1fr; min-height: auto; margin: 10px 10px 0; border-radius: 28px; }
  .hero-content { min-height: 610px; padding: 70px 7vw 35px; }
  .hero-wordmark { margin: 70px 0 0; font-size: clamp(4.2rem, 14vw, 7rem); }
  .hero-visual { min-height: 680px; margin: 0 12px 12px; border-radius: 24px; }
  .hero-focus { width: min(52%, 350px); }

  .manifesto { grid-template-columns: 1fr; min-height: 620px; }
  .manifesto > .section-kicker { margin-bottom: -25px; }
  .manifesto h2 { font-size: clamp(2.8rem, 9vw, 5.3rem); }

  .section-heading,
  .page-hero-inner,
  .service-block,
  .split,
  .cta,
  .footer-inner { grid-template-columns: 1fr; }

  .section-heading { gap: 25px; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero { min-height: auto; margin: 10px 10px 0; border-radius: 28px; }
  .page-hero-inner { gap: 55px; }
  .page-hero .visual-panel { max-width: 680px; }

  .service-block { gap: 30px; }
  .service-block:hover { padding-inline: 38px; transform: none; }
  .split { gap: 55px; }
  .cta { align-items: start; }
  .footer-nav { justify-self: start; }
}

@media (max-width: 600px) {
  body { font-size: 15px; }
  .brand small { display: none; }
  .section, .footer-inner, .page-hero-inner { width: calc(100% - 36px); }
  .section { padding: 88px 0; }
  .hero-content { min-height: 560px; padding-top: 55px; }
  .hero h1 { font-size: clamp(2rem, 8.7vw, 3.4rem); }
  .hero-wordmark { font-size: clamp(3.75rem, 18vw, 5.4rem); }
  .hero-visual { min-height: 560px; }
  .hero-focus { top: 21%; width: 58%; }
  .hero-vertical { top: 32%; left: 8%; }

  .manifesto { min-height: 0; padding-block: 105px; }
  .manifesto h2 { font-size: clamp(2rem, 8vw, 2.4rem); }
  .manifesto-copy { margin-top: 36px; }

  .section-heading { margin-bottom: 38px; }
  .section-heading h2, .page-hero h1 { font-size: clamp(2.45rem, 12vw, 4rem); }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }

  .card, .reason-card, .info-card, .faq-item { min-height: 0; padding: 28px 22px 32px; border-radius: 20px; }
  .service-card { min-height: 0; }
  .case-card-body { padding-inline: 20px; }

  .page-hero { padding: 62px 0 75px; }
  .page-hero .visual-panel { aspect-ratio: 1 / .95; }
  .page-hero .visual-panel img { clip-path: inset(0 5% 0); }

  .service-block { padding: 36px 24px 42px; border-radius: 22px; }
  .service-block:hover { padding-inline: 24px; }
  .service-block h2 { font-size: clamp(2rem, 10vw, 3.2rem); }
  .service-list { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .split .visual-panel img { aspect-ratio: 4 / 4.8; }

  .area-box, .cta, .phone-box, .form-shell { padding: 38px 24px; }
  .area-box h2, .cta h2, .phone-box h2 { font-size: clamp(2.15rem, 10.5vw, 3.3rem); }
  .form-shell h2 { font-size: clamp(1.75rem, 7vw, 2rem); }
  .cta .btn { width: 100%; }

  .company-table, .company-table tbody, .company-table tr, .company-table th, .company-table td { display: block; width: 100%; }
  .company-table th { padding-bottom: 6px; border-bottom: 0; }
  .company-table td { padding-top: 6px; }

  .footer-nav { grid-template-columns: 1fr; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
