/*
Theme Name: Metamol Renewal
Theme URI: https://metamol.co.jp/
Author: Codex
Description: A custom WordPress theme for the first phase of the Metamol website renewal.
Version: 1.2.8
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
Text Domain: metamol-renewal
*/

:root {
  --paper: #fbfcfd;
  --surface: #ffffff;
  --surface-soft: #eef6f8;
  --ink: #17222d;
  --muted: #627282;
  --line: #dce5ea;
  --blue: #0883d8;
  --cyan: #08a9a2;
  --red: #e73518;
  --orange: #ff8f1f;
  --gold: #f7b733;
  --shadow-soft: 0 18px 44px rgba(23, 34, 45, 0.12);
  --shadow-tight: 0 10px 24px rgba(23, 34, 45, 0.10);
  --max: 1180px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0;
  overflow-x: hidden;
}

body.no-scroll {
  overflow: hidden;
}

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

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(8, 169, 162, 0.48);
  outline-offset: 4px;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-140%);
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 4px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(251, 252, 253, 0.92);
  border-bottom: 1px solid rgba(220, 229, 234, 0.82);
  backdrop-filter: blur(18px);
}

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

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

.site-brand img {
  width: 52px;
  height: 44px;
  object-fit: contain;
}

.site-brand__text {
  display: grid;
  gap: 0;
  min-width: 0;
}

.site-brand__name {
  font-weight: 800;
  font-size: 1.02rem;
  white-space: nowrap;
}

.site-brand__tag {
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
}

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

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
}

.site-nav a {
  color: #273645;
  font-size: 0.9rem;
  font-weight: 700;
  transition: color 160ms ease;
}

.site-nav a:hover {
  color: var(--blue);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.button:hover,
.wp-block-button__link:hover {
  transform: translateY(-1px);
}

.button--primary,
.wp-block-button__link {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.button--primary:hover,
.wp-block-button__link:hover {
  background: #0e151c;
}

.button--accent {
  background: var(--orange);
  color: #231505;
  border-color: var(--orange);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.82);
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.88);
}

.button--line {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.button--small {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 0.84rem;
}

.phone-link {
  color: var(--blue);
  font-weight: 900;
}

.hero {
  position: relative;
  min-height: 82vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #dce8ed;
}

.hero__media,
.hero__media img,
.hero__scrim {
  position: absolute;
  inset: 0;
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__scrim {
  background:
    linear-gradient(90deg, rgba(251, 252, 253, 0.96) 0%, rgba(251, 252, 253, 0.84) 34%, rgba(251, 252, 253, 0.18) 64%, rgba(23, 34, 45, 0.12) 100%),
    linear-gradient(180deg, rgba(251, 252, 253, 0.0) 0%, rgba(251, 252, 253, 0.16) 64%, rgba(251, 252, 253, 0.88) 100%);
}

.hero__inner {
  position: relative;
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 128px 0 76px;
}

.hero__content {
  width: min(680px, 100%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 900;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  margin: 18px 0 0;
  font-size: 4.6rem;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero__lead {
  margin-top: 24px;
  color: #263849;
  font-size: 1.34rem;
  line-height: 1.72;
  font-weight: 700;
}

.hero__copy {
  margin-top: 16px;
  width: min(600px, 100%);
  color: #4b5c6b;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(640px, 100%);
  margin-top: 34px;
}

.hero__fact {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-tight);
}

.hero__fact span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.hero__fact strong {
  display: block;
  margin-top: 4px;
  font-size: 1.05rem;
  line-height: 1.35;
}

.section {
  padding: 100px 0;
}

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

.section--ink {
  background: #17222d;
  color: #fff;
}

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

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.55fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 46px;
}

.section__head--single {
  grid-template-columns: 1fr;
  width: min(760px, 100%);
}

.section__label {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.section--ink .section__label {
  color: var(--orange);
}

.section__title {
  margin: 10px 0 0;
  font-size: 2.55rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.section__desc {
  color: var(--muted);
  font-weight: 600;
}

.section--ink .section__desc {
  color: rgba(255, 255, 255, 0.72);
}

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

.service-card {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(23, 34, 45, 0.02);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 131, 216, 0.38);
  box-shadow: var(--shadow-soft);
}

.service-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dfe8ed;
}

.service-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

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

.service-card__body {
  padding: 20px;
}

.service-card__num {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
}

.service-card h3 {
  margin: 8px 0 8px;
  font-size: 1.25rem;
  line-height: 1.35;
}

.service-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

.service-card ul {
  display: grid;
  gap: 5px;
  margin-top: 16px;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 16px;
  color: #324353;
  font-size: 0.9rem;
  font-weight: 700;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

.flow-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}

.flow-copy {
  width: min(470px, 100%);
}

.flow-copy h2 {
  margin: 12px 0 0;
  font-size: 2.5rem;
  line-height: 1.24;
}

.flow-copy p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.74);
}

.flow-steps {
  display: grid;
  gap: 14px;
}

.flow-step {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 20px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
}

.flow-step__mark {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: var(--orange);
  font-weight: 900;
}

.flow-step h3 {
  margin: 0;
  font-size: 1.18rem;
}

.flow-step p {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.72);
}

.works-layout {
  display: grid;
  grid-template-columns: 0.76fr 1.24fr;
  gap: 42px;
  align-items: start;
}

.works-lead {
  position: sticky;
  top: 112px;
}

.works-lead__image {
  margin-top: 28px;
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8ed;
  box-shadow: var(--shadow-soft);
}

.works-lead__image img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.blog-list {
  display: grid;
  gap: 16px;
}

.blog-card {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 22px;
  align-items: stretch;
  min-height: 168px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-card:hover {
  transform: translateY(-3px);
  border-color: rgba(8, 169, 162, 0.36);
  box-shadow: var(--shadow-tight);
}

.blog-card__media {
  overflow: hidden;
  border-radius: 6px;
  background: #dfe8ed;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-card__body {
  display: grid;
  align-content: center;
  gap: 8px;
}

.blog-card__meta {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 900;
}

.blog-card h3 {
  margin: 0;
  font-size: 1.22rem;
  line-height: 1.42;
}

.blog-card p {
  color: var(--muted);
  font-size: 0.92rem;
}

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

.trust-card {
  min-height: 260px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trust-card h3 {
  margin: 0 0 14px;
  font-size: 1.16rem;
}

.trust-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.trust-card div {
  display: grid;
  gap: 2px;
}

.trust-card dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.trust-card dd {
  margin: 0;
  font-weight: 700;
}

.license-list {
  display: grid;
  gap: 9px;
  list-style: none;
}

.license-list li {
  padding-left: 16px;
  position: relative;
  color: #354555;
  font-weight: 700;
}

.license-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  background: var(--orange);
}

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 44px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(8, 131, 216, 0.14), rgba(255, 143, 31, 0.18)),
    var(--surface);
  border: 1px solid rgba(8, 131, 216, 0.16);
}

.cta-band h2 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.3;
}

.cta-band p {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 600;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.page-shell,
.post-shell {
  width: min(100% - 40px, 880px);
  margin: 0 auto;
  padding: 88px 0;
}

.page-shell h1,
.post-shell h1 {
  margin: 0 0 24px;
  font-size: 2.4rem;
  line-height: 1.28;
}

.entry-content > * + * {
  margin-top: 1.2em;
}

.entry-content a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sub-hero {
  background:
    linear-gradient(90deg, rgba(8, 169, 162, 0.08), rgba(255, 143, 31, 0.08)),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.sub-hero__inner {
  padding: 90px 0 78px;
}

.sub-hero h1 {
  margin: 10px 0 0;
  font-size: 3.3rem;
  line-height: 1.16;
  letter-spacing: 0;
}

.sub-hero p:not(.section__label) {
  width: min(760px, 100%);
  margin-top: 18px;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 700;
}

.anchor-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.anchor-row a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.72);
  color: #273645;
  font-size: 0.88rem;
  font-weight: 800;
}

.service-detail-list {
  display: grid;
  gap: 28px;
}

.service-detail {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.service-detail__media {
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8ed;
}

.service-detail__media img,
.image-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-detail__body h2 {
  margin: 8px 0 12px;
  font-size: 2rem;
  line-height: 1.28;
}

.service-detail__body p {
  color: var(--muted);
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 20px;
  color: #314253;
  font-weight: 700;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 8px;
  height: 8px;
  background: var(--cyan);
}

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

.process-grid article,
.feature-card,
.empty-panel {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.process-grid span,
.feature-card span {
  color: var(--orange);
  font-size: 0.78rem;
  font-weight: 900;
}

.process-grid h3,
.feature-card h3,
.empty-panel h2 {
  margin: 8px 0 8px;
  font-size: 1.2rem;
  line-height: 1.38;
}

.process-grid p,
.feature-card p,
.empty-panel p {
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 46px;
  align-items: center;
}

.split-layout .section__desc {
  margin-top: 18px;
}

.image-panel {
  overflow: hidden;
  border-radius: 8px;
  background: #dfe8ed;
  box-shadow: var(--shadow-soft);
}

.info-table {
  display: grid;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.info-table div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}

.info-table dt {
  color: var(--muted);
  font-weight: 900;
}

.info-table dd {
  margin: 0;
  font-weight: 700;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 28px;
  align-items: start;
}

.contact-panel {
  min-height: 100%;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.contact-panel h2 {
  margin: 8px 0 16px;
  font-size: 1.65rem;
  line-height: 1.32;
}

.contact-panel p {
  color: var(--muted);
  font-weight: 700;
}

.contact-methods {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.contact-methods a {
  display: grid;
  gap: 2px;
  padding: 18px;
  border: 1px solid rgba(8, 131, 216, 0.2);
  border-radius: 8px;
  background: var(--surface-soft);
}

.contact-methods span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.contact-methods strong {
  color: var(--blue);
  font-size: 1.28rem;
}

.contact-panel--form .entry-content {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

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

.contact-form span {
  color: #314253;
  font-size: 0.9rem;
  font-weight: 900;
}

.contact-form em {
  color: var(--red);
  font-size: 0.76rem;
  font-style: normal;
}

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

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: rgba(8, 131, 216, 0.58);
  outline: 3px solid rgba(8, 131, 216, 0.14);
}

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

.form-notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 800;
}

.form-notice--success {
  border: 1px solid rgba(8, 169, 162, 0.28);
  background: rgba(8, 169, 162, 0.08);
  color: #087a76;
}

.form-notice--error {
  border: 1px solid rgba(231, 53, 24, 0.24);
  background: rgba(231, 53, 24, 0.08);
  color: #a92b18;
}

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

.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.faq-item summary {
  cursor: pointer;
  padding: 20px 24px;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 900;
}

.faq-item p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-weight: 700;
}

.policy-content {
  width: min(100% - 40px, 880px);
  display: grid;
  gap: 34px;
}

.policy-content section {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.policy-content h2 {
  margin: 0 0 10px;
  font-size: 1.35rem;
}

.policy-content p {
  color: var(--muted);
  font-weight: 700;
}

.site-footer {
  background: #0f171f;
  color: #fff;
}

.site-footer__inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 56px 0;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 48px;
}

.footer-brand {
  display: grid;
  gap: 18px;
  align-content: start;
}

.footer-brand img {
  width: 66px;
  height: 56px;
  object-fit: contain;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.68);
}

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

.footer-links h2 {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
}

.footer-links ul {
  display: grid;
  gap: 8px;
  list-style: none;
}

.footer-links a,
.footer-links li {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.9rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom-inner {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.82rem;
}

@media (max-width: 1120px) {
  .site-nav ul {
    gap: 12px;
  }

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

@media (max-width: 900px) {
  .site-header__inner {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: fixed;
    inset: 68px 0 auto 0;
    display: none;
    padding: 22px 20px 26px;
    background: rgba(251, 252, 253, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-soft);
  }

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

  .site-nav ul {
    display: grid;
    gap: 14px;
    width: min(100% - 12px, var(--max));
    margin: 0 auto;
  }

  .site-header__actions .button {
    display: none;
  }

  .hero {
    min-height: 76vh;
  }

  .hero__inner {
    padding: 110px 0 54px;
  }

  .hero h1 {
    font-size: 3.2rem;
  }

  .hero__lead {
    font-size: 1.08rem;
  }

  .hero__facts,
  .section__head,
  .flow-band,
  .works-layout,
  .trust-grid,
  .cta-band,
  .site-footer__inner,
  .service-detail,
  .split-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

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

  .works-lead {
    position: static;
  }

  .cta-band__actions {
    justify-content: flex-start;
  }
}

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

  .site-header__inner,
  .section__inner,
  .site-footer__inner,
  .site-footer__bottom-inner,
  .page-shell,
  .post-shell,
  .policy-content {
    width: min(100% - 28px, var(--max));
  }

  .site-brand__tag {
    display: none;
  }

  .phone-link {
    display: none;
  }

  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(251, 252, 253, 0.84) 0%, rgba(251, 252, 253, 0.72) 46%, rgba(251, 252, 253, 0.94) 100%),
      linear-gradient(90deg, rgba(251, 252, 253, 0.94), rgba(251, 252, 253, 0.34));
  }

  .hero__media img {
    object-position: 68% center;
  }

  .hero__inner {
    width: min(100% - 28px, var(--max));
    padding: 86px 0 42px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .hero__actions {
    display: grid;
  }

  .hero__facts {
    gap: 10px;
  }

  .hero__fact {
    min-height: auto;
  }

  .section {
    padding: 72px 0;
  }

  .section__title,
  .sub-hero h1,
  .flow-copy h2,
  .cta-band h2 {
    font-size: 2rem;
  }

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

  .service-detail {
    padding: 18px;
  }

  .service-detail__body h2,
  .contact-panel h2 {
    font-size: 1.55rem;
  }

  .process-grid,
  .feature-grid,
  .info-table div {
    grid-template-columns: 1fr;
  }

  .process-grid article,
  .feature-card,
  .contact-panel,
  .empty-panel {
    min-height: auto;
    padding: 20px;
  }

  .sub-hero__inner {
    padding: 68px 0 54px;
  }

  .flow-step {
    grid-template-columns: 1fr;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card__media {
    aspect-ratio: 16 / 10;
  }

  .cta-band {
    padding: 28px;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
