:root {
  --bg: #fbfdfb;
  --surface: #ffffff;
  --surface-soft: #eef7f1;
  --ink: #173532;
  --muted: #5f726f;
  --line: #d8e8de;
  --green: #347f70;
  --green-dark: #0f4a42;
  --blue: #3d82a6;
  --coral: #cf674e;
  --gold: #d7a93e;
  --shadow: 0 18px 48px rgba(23, 53, 50, 0.12);
  --radius: 8px;
  --content: 1120px;
  --hero-photo: url("assets/photos/jp-documents-desk.jpg");
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family:
    "Yu Gothic", "Hiragino Kaku Gothic ProN", "Meiryo", system-ui, sans-serif;
  line-height: 1.8;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: rgba(52, 127, 112, 0.18);
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(216, 232, 222, 0.7);
  background: rgba(251, 253, 251, 0.88);
  backdrop-filter: blur(14px);
  transition:
    box-shadow 180ms ease,
    background 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(251, 253, 251, 0.96);
  box-shadow: 0 8px 26px rgba(23, 53, 50, 0.08);
}

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

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

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

.brand-logo-only {
  gap: 0;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo-only .brand-mark {
  width: 54px;
  height: 54px;
  font-size: 15px;
}

.brand-name,
.brand-sub {
  display: block;
}

.brand-name {
  font-weight: 800;
  line-height: 1.35;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: #314c48;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  position: relative;
  transition: color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--green-dark);
}

.site-nav a:not(.nav-contact)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  border-radius: 999px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms var(--ease-out);
}

.site-nav a:not(.nav-contact):hover::after,
.site-nav a:not(.nav-contact):focus-visible::after {
  transform: scaleX(1);
}

.nav-contact {
  padding: 9px 14px;
  border: 1px solid var(--green);
  border-radius: var(--radius);
  color: var(--green-dark);
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms var(--ease-out);
}

.nav-contact:hover,
.nav-contact:focus-visible {
  background: var(--green-dark);
  color: #ffffff;
}

.menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  display: block;
  margin: 3px 0;
  background: currentColor;
  transition:
    transform 180ms var(--ease-out),
    opacity 180ms ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5px) rotate(-45deg);
}

.hero {
  min-height: min(680px, calc(100svh - 24px));
  display: grid;
  align-items: center;
  overflow: hidden;
  position: relative;
  background:
    linear-gradient(90deg, rgba(251, 253, 251, 0.98) 0%, rgba(251, 253, 251, 0.9) 46%, rgba(251, 253, 251, 0.36) 100%),
    radial-gradient(circle at 78% 23%, rgba(215, 169, 62, 0.2), transparent 30%),
    radial-gradient(circle at 96% 75%, rgba(61, 130, 166, 0.16), transparent 28%),
    var(--hero-photo);
  background-repeat: no-repeat;
  background-position:
    center,
    center,
    center,
    center right;
  background-size:
    cover,
    cover,
    cover,
    cover;
  animation: hero-photo-drift 18s var(--ease-out) infinite alternate;
}

.hero-inner {
  width: min(var(--content), calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 72px;
  animation: hero-copy-in 700ms var(--ease-out) both;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.35;
  letter-spacing: 0;
}

h1 {
  width: min(760px, 100%);
  margin-bottom: 22px;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 850;
}

h1 span {
  display: block;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 850;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  font-weight: 800;
}

.hero-lead {
  width: min(640px, 100%);
  margin-bottom: 30px;
  color: #365550;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 12px 19px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1.25;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease;
}

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

.button-primary {
  background: var(--green-dark);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 74, 66, 0.18);
}

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

.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
  color: var(--green-dark);
}

.hero-facts {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
}

.hero-facts div {
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid rgba(216, 232, 222, 0.92);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.hero-facts dt {
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-facts dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 800;
}

.notice-strip {
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.notice-label {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(207, 103, 78, 0.12);
  color: var(--coral);
  font-size: 12px;
  font-weight: 800;
}

.notice-inner p {
  margin: 0;
  color: #3d5652;
  font-size: 14px;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: var(--surface-soft);
}

.section-accent {
  background:
    linear-gradient(180deg, rgba(52, 127, 112, 0.1), rgba(52, 127, 112, 0.04)),
    #ffffff;
}

.split-grid,
.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: 56px;
  align-items: center;
}

.split-copy p,
.profile-grid p,
.section-heading p {
  color: var(--muted);
}

.split-visual {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
}

.split-visual img {
  width: min(430px, 100%);
  margin-inline: auto;
  transition:
    transform 700ms var(--ease-out),
    filter 700ms ease;
}

.split-visual:hover img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.section-heading {
  width: min(720px, 100%);
  margin-bottom: 34px;
}

.section-heading.compact {
  margin-bottom: 24px;
}

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

.service-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(216, 232, 222, 0.92);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 34px rgba(23, 53, 50, 0.06);
  overflow: hidden;
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 127, 112, 0.34);
  box-shadow: 0 22px 44px rgba(23, 53, 50, 0.1);
}

.service-card img {
  width: 100%;
  height: 170px;
  object-fit: contain;
  margin-bottom: 22px;
  transition: transform 620ms var(--ease-out);
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.case-section {
  background: #ffffff;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(23, 53, 50, 0.07);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.case-card:hover {
  transform: translateY(-5px);
  border-color: rgba(52, 127, 112, 0.34);
  box-shadow: 0 24px 48px rgba(23, 53, 50, 0.12);
}

.case-card a {
  display: grid;
  height: 100%;
}

.case-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition:
    transform 700ms var(--ease-out),
    filter 700ms ease;
}

.case-card:hover img {
  transform: scale(1.04);
  filter: saturate(1.04);
}

.case-card h3,
.case-card p,
.case-card .case-tag,
.case-card .case-link {
  margin-inline: 20px;
}

.case-card .case-tag {
  width: fit-content;
  margin-top: 18px;
  margin-bottom: 12px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(52, 127, 112, 0.1);
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 850;
}

.case-card p {
  margin-bottom: 18px;
  color: var(--muted);
}

.case-link {
  align-self: end;
  margin-bottom: 22px;
  color: var(--coral);
  font-weight: 850;
  transition:
    transform 180ms var(--ease-out),
    color 180ms ease;
}

.case-card:hover .case-link {
  transform: translateX(4px);
  color: #b14f3a;
}

.case-page {
  background: var(--bg);
}

.case-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, #ffffff 0%, #f4faf6 100%);
}

.case-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(320px, 0.82fr);
  gap: 48px;
  align-items: center;
}

.case-hero-text {
  grid-template-columns: minmax(0, 860px);
}

.breadcrumb {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.breadcrumb a {
  color: var(--green-dark);
}

.case-page h1 {
  width: 100%;
  font-size: clamp(34px, 4vw, 52px);
}

.case-hero-photo {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.case-hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

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

.detail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.detail-card h2 {
  font-size: 24px;
}

.detail-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.check-list,
.detail-steps {
  margin: 0;
  padding-left: 1.25em;
  color: var(--muted);
}

.check-list li,
.detail-steps li {
  padding-left: 2px;
  margin-bottom: 8px;
}

.check-list li:last-child,
.detail-steps li:last-child {
  margin-bottom: 0;
}

.case-note {
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: #ffffff;
}

.case-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 34px 0 74px;
}

.field-section {
  padding: 76px 0;
}

.field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.field-list li {
  padding: 9px 13px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  color: #35544f;
  font-weight: 800;
  transition:
    transform 180ms var(--ease-out),
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.field-list li:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(23, 53, 50, 0.07);
}

.field-list li:nth-child(3n + 1) {
  border-color: rgba(52, 127, 112, 0.38);
}

.field-list li:nth-child(3n + 2) {
  border-color: rgba(61, 130, 166, 0.38);
}

.field-list li:nth-child(3n) {
  border-color: rgba(207, 103, 78, 0.34);
}

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

.flow-list li {
  min-width: 0;
  position: relative;
  padding: 24px 20px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid rgba(216, 232, 222, 0.95);
  transition:
    transform 220ms var(--ease-out),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.flow-list li:hover {
  transform: translateY(-4px);
  border-color: rgba(52, 127, 112, 0.32);
  box-shadow: 0 16px 30px rgba(23, 53, 50, 0.08);
}

.flow-list span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.flow-list p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

.profile-grid {
  align-items: start;
}

.profile-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff;
  box-shadow: var(--shadow);
  transition: transform 220ms var(--ease-out), box-shadow 220ms ease;
}

.profile-table:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 52px rgba(23, 53, 50, 0.13);
}

.profile-table div {
  display: grid;
  grid-template-columns: 150px 1fr;
  border-bottom: 1px solid var(--line);
}

.profile-table div:last-child {
  border-bottom: 0;
}

.profile-table span {
  padding: 16px 18px;
  background: #f1f8f4;
  color: #315550;
  font-weight: 800;
}

.profile-table p {
  margin: 0;
  padding: 16px 18px;
  overflow-wrap: anywhere;
  color: var(--ink);
}

.contact-section {
  padding: 92px 0;
  background:
    linear-gradient(180deg, rgba(238, 247, 241, 0.8), rgba(251, 253, 251, 1)),
    var(--bg);
  color: var(--ink);
}

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

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 46px;
  align-items: start;
}

.contact-copy {
  position: sticky;
  top: 112px;
}

.contact-info {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-info p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  transition:
    transform 180ms var(--ease-out),
    box-shadow 180ms ease;
}

.contact-info p:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 53, 50, 0.08);
}

.contact-info span {
  display: block;
  margin-bottom: 4px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.contact-info a {
  color: var(--ink);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.contact-form {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  transition:
    transform 220ms var(--ease-out),
    box-shadow 220ms ease;
}

.contact-form:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 54px rgba(23, 53, 50, 0.14);
}

.contact-form h3 {
  margin-bottom: 24px;
  font-size: clamp(24px, 3vw, 34px);
}

.contact-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
  color: #273f3b;
  font-size: 14px;
  font-weight: 800;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d7ddd9;
  border-radius: 999px;
  background: #fbfaf8;
  color: var(--green-dark);
  font: inherit;
  font-size: 15px;
  line-height: 1.4;
  outline: none;
  padding: 13px 16px;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
  border-radius: 24px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--green);
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(52, 127, 112, 0.12);
}

.button-submit {
  min-width: 260px;
  border-color: transparent;
  background: #f4c43d;
  color: #172c2a;
  box-shadow: 0 14px 26px rgba(215, 169, 62, 0.22);
  gap: 9px;
}

.button-submit:hover,
.button-submit:focus-visible {
  background: #e9b72c;
}

.button-submit.is-sending {
  pointer-events: none;
  opacity: 0.75;
}

.button-submit.is-sending::after {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(23, 44, 42, 0.3);
  border-top-color: #172c2a;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.form-status {
  min-height: 28px;
  margin: 14px 0 0;
  color: var(--green-dark);
  font-weight: 800;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 180ms ease,
    transform 180ms var(--ease-out);
}

.form-status.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 46px 0 24px;
  background: #0b302c;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto minmax(220px, 0.8fr);
  gap: 34px;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-brand .brand-mark {
  width: 52px;
  height: 52px;
  background: #ffffff;
  color: var(--green-dark);
}

.footer-brand strong {
  display: block;
  color: #ffffff;
  font-size: 17px;
}

.footer-brand p,
.footer-contact p,
.footer-bottom p {
  margin: 0;
}

.footer-nav {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.footer-nav a {
  transition:
    color 160ms ease,
    transform 160ms var(--ease-out);
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: #ffffff;
  transform: translateX(3px);
}

.footer-contact {
  display: grid;
  gap: 8px;
  justify-items: end;
  text-align: right;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 620ms ease,
    transform 620ms var(--ease-out),
    box-shadow 220ms ease,
    border-color 220ms ease,
    background 180ms ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-ready .service-card:nth-child(2):not(.is-visible),
.reveal-ready .case-card:nth-child(2):not(.is-visible),
.reveal-ready .flow-list li:nth-child(2):not(.is-visible) {
  transition-delay: 80ms;
}

.reveal-ready .service-card:nth-child(3):not(.is-visible),
.reveal-ready .case-card:nth-child(3):not(.is-visible),
.reveal-ready .flow-list li:nth-child(3):not(.is-visible) {
  transition-delay: 150ms;
}

.reveal-ready .flow-list li:nth-child(4):not(.is-visible) {
  transition-delay: 220ms;
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-photo-drift {
  from {
    background-position:
      center,
      center,
      center,
      center right;
  }

  to {
    background-position:
      center,
      52% 48%,
      94% 72%,
      52% center;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

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

  .site-nav {
    position: fixed;
    inset: 74px 20px auto 20px;
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

  .site-nav a {
    padding: 12px 10px;
  }

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

  .nav-contact {
    border: 0;
    border-radius: 0;
    color: inherit;
  }

  .hero {
    min-height: auto;
    animation: none;
    background:
      linear-gradient(180deg, rgba(251, 253, 251, 0.98) 0%, rgba(251, 253, 251, 0.92) 54%, rgba(251, 253, 251, 0.78) 100%),
      var(--hero-photo);
    background-repeat: no-repeat;
    background-position: center bottom;
    background-size: cover;
  }

  .hero-inner {
    padding: 78px 0 140px;
  }

  .service-grid,
  .case-grid,
  .flow-list,
  .split-grid,
  .profile-grid,
  .contact-layout,
  .case-hero-grid,
  .case-detail-grid {
    grid-template-columns: 1fr;
  }

  .split-grid,
  .profile-grid,
  .contact-layout,
  .case-hero-grid {
    gap: 34px;
  }

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

  .contact-copy {
    position: static;
  }

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

  .footer-contact {
    justify-items: start;
    text-align: left;
  }

  .service-card img {
    height: 150px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .hero-inner {
    width: min(100% - 28px, var(--content));
  }

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

  .brand-sub {
    font-size: 11px;
  }

  .hero-inner {
    padding-top: 62px;
  }

  h1 {
    font-size: 38px;
  }

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

  .hero-actions {
    display: grid;
  }

  .hero-facts {
    gap: 8px;
  }

  .notice-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .section,
  .contact-section {
    padding: 68px 0;
  }

  .case-hero {
    padding: 46px 0 38px;
  }

  .case-page h1 {
    font-size: 34px;
  }

  .case-nav {
    flex-direction: column;
  }

  .field-section {
    padding: 58px 0;
  }

  .profile-table div {
    grid-template-columns: 1fr;
  }

  .profile-table span,
  .profile-table p {
    padding: 12px 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 24px 18px;
  }

  .button-submit {
    width: 100%;
    min-width: 0;
  }

  .footer-brand {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

  .reveal-ready [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
