/* =========================================================
   ASIP Solutions — Corporate Site 2026
   ========================================================= */

:root {
  /* Original ASIP corporate palette (#6dbe44 green) */
  --ink: #111111;
  --ink-soft: #2a2a2a;
  --slate: #5a5a5a;
  --muted: #717171;
  --line: rgba(17, 17, 17, 0.12);
  --line-strong: rgba(17, 17, 17, 0.22);
  --paper: #f5f5f5;
  --white: #ffffff;
  --brand: #6dbe44;
  --brand-deep: #57a535;
  --brand-soft: #9ed47a;
  /* keep aliases used throughout stylesheets */
  --teal: var(--brand);
  --teal-deep: var(--brand-deep);
  --signal: var(--brand);
  --hero-scrim: linear-gradient(
    105deg,
    rgba(17, 17, 17, 0.78) 0%,
    rgba(17, 17, 17, 0.52) 48%,
    rgba(17, 17, 17, 0.22) 100%
  );
  --shadow-soft: 0 18px 50px rgba(17, 17, 17, 0.08);
  --radius: 4px;
  --max: 1120px;
  --header-h: 72px;
  --font-display: "Syne", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-nav-open {
  overflow: hidden;
}

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

a {
  color: var(--teal-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--teal);
}

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

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s ease;
}

.site-header.is-scrolled,
.site-header.is-solid,
body.is-subpage .site-header {
  background: rgba(17, 17, 17, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.site-header__inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo img {
  width: 148px;
  height: auto;
}

.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.15rem 1.6rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.site-nav a:hover {
  color: #fff;
}

.site-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 0;
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 1002;
}

.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 1.5px;
  margin: 5px auto;
  background: #fff;
  transition: transform 0.25s var(--ease), opacity 0.2s ease;
}

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

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

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

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 22, 0.45);
  z-index: 999;
}

/* ---------- Layout ---------- */
.section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section--tight {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.section--ink {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.88);
}

.section--white {
  background: var(--white);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.section-label {
  display: inline-block;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
}

.section--ink .section-label {
  color: #9ed47a;
}

.section-title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.section--ink .section-title {
  color: #fff;
}

.section-lead {
  max-width: none;
  margin: 0 0 2rem !important;
  color: var(--muted);
  font-size: 1.02rem;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.45rem;
  border-radius: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.btn--primary {
  background: var(--teal);
  color: #fff;
}

.btn--primary:hover {
  background: var(--teal-deep);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: var(--ink-soft);
  color: #fff;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
  background: var(--ink) center / cover no-repeat;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    var(--hero-scrim),
    url("../../images/banner.jpg") center / cover no-repeat;
  transform: scale(1.04);
  animation: hero-zoom 12s var(--ease) both;
}

.hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(to top, rgba(11, 26, 36, 0.55), transparent);
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: calc(var(--header-h) + 4rem) 0 4.5rem;
}

.hero__brand {
  margin: 0 0 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s 0.15s var(--ease) forwards;
}

.hero__brand span {
  display: block;
  font-size: 0.34em;
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-top: 0.55rem;
  opacity: 0.78;
}

.hero__title {
  margin: 0 0 1rem;
  max-width: 18em;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s 0.32s var(--ease) forwards;
}

.hero__text {
  margin: 0 0 1.75rem;
  max-width: 28rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1rem;
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s 0.48s var(--ease) forwards;
}

.hero__actions {
  opacity: 0;
  transform: translateY(22px);
  animation: rise 0.9s 0.62s var(--ease) forwards;
}

.hero__scroll {
  position: absolute;
  right: clamp(1.25rem, 4vw, 2.5rem);
  bottom: 1.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}

.hero__scroll:hover {
  color: #fff;
}

.hero__scroll-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.75), transparent);
  animation: scroll-line 1.8s ease-in-out infinite;
}

/* ---------- News ---------- */
.news-list {
  list-style: none;
  border-top: 1px solid var(--line);
}

.news-list__item {
  border-bottom: 1px solid var(--line);
}

.news-list__link {
  display: grid;
  grid-template-columns: 7.5rem 4.5rem 1fr;
  gap: 1rem;
  align-items: baseline;
  padding: 1.15rem 0;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.25s var(--ease);
}

.news-list__link:hover {
  color: var(--teal-deep);
  padding-left: 0.35rem;
}

.news-list__date {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.news-list__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  padding: 0.15rem 0.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
}

.news-list__text {
  font-weight: 500;
}

/* ---------- Vision ---------- */
.vision-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.vision-copy h3 {
  margin: 0 0 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.vision-copy p {
  color: var(--muted);
}

.vision-copy + .vision-copy {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.vision-visual {
  position: relative;
}

.vision-visual img {
  width: 100%;
  border-radius: var(--radius);
}

.vision-caption {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Solutions ---------- */
#solutions.section--ink {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(
      180deg,
      rgba(17, 17, 17, 0.88) 0%,
      rgba(17, 17, 17, 0.82) 55%,
      rgba(17, 17, 17, 0.9) 100%
    ),
    url("../../images/solutions-bg.jpg") center / cover no-repeat;
  background-color: var(--ink);
}

#solutions.section--ink > .container {
  position: relative;
  z-index: 1;
}

.solutions-intro {
  margin-bottom: 2.75rem;
}

.solutions-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.solutions-list li {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: rgba(17, 17, 17, 0.55);
  backdrop-filter: blur(4px);
}

.solutions-list__index {
  display: block;
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: #9ed47a;
}

.solutions-list h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.solutions-list p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
}

/* ---------- Profile ---------- */
.profile-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.profile-table {
  width: 100%;
  border-collapse: collapse;
}

.profile-table th,
.profile-table td {
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}

.profile-table th {
  width: 7.5rem;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
  padding-right: 1.25rem;
}

.profile-table td {
  color: var(--ink);
}

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-list li {
  position: relative;
  margin: 0;
  padding: 0.7rem 0 0.7rem 1.15rem;
  border-left: 2px solid var(--brand);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.7;
  background: linear-gradient(
    90deg,
    rgba(109, 190, 68, 0.06) 0%,
    rgba(109, 190, 68, 0) 48%
  );
}

.profile-list li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 1.05em;
  width: 7px;
  height: 2px;
  background: var(--brand);
}

.profile-list--dense {
  gap: 0;
}

.profile-list--dense li {
  padding: 0.55rem 0 0.55rem 1.15rem;
  border-left-color: rgba(109, 190, 68, 0.45);
  background: none;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--slate);
}

.profile-list--dense li + li {
  border-top: 1px solid var(--line);
}

.profile-list--dense li::before {
  top: 1.15em;
  width: 6px;
  background: var(--brand);
}

.profile-aside {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.75rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
  border-radius: var(--radius);
}

.profile-aside h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: #fff;
}

.profile-aside p {
  font-size: 0.95rem;
  line-height: 1.75;
}

.profile-aside__meta {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Contact ---------- */
.section--contact {
  background: var(--white);
  border-top: 1px solid var(--line);
}

.contact-head {
  margin-bottom: 0.25rem;
}

.contact-layout {
  display: block;
  width: 100%;
  max-width: none;
}

.contact-form-wrap {
  width: 100%;
  min-width: 0;
}

#mailformpro.contact-form,
#mailformpro {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: none;
}

#mailformpro dl.mailform {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#mailformpro dd.mfp {
  margin: 0;
  padding: 0 !important;
  width: auto;
  float: none;
  border: 0 !important;
}

#mailformpro input::placeholder,
#mailformpro textarea::placeholder {
  color: #9aa0a6;
  font-size: 0.92rem;
}

/* 必須マーク* をやや小さく強調 */
#mailformpro input[required]::placeholder,
#mailformpro textarea[required]::placeholder {
  color: #8a9096;
}

#mailformpro input[type="text"],
#mailformpro input[type="email"],
#mailformpro input[type="tel"],
#mailformpro select,
#mailformpro textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
  padding: 0.85rem 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#mailformpro input:hover,
#mailformpro select:hover,
#mailformpro textarea:hover {
  border-color: rgba(17, 17, 17, 0.35);
}

#mailformpro input:focus,
#mailformpro select:focus,
#mailformpro textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 2px rgba(109, 190, 68, 0.22);
}

#mailformpro dd.wharf {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 0.65rem;
  width: 100% !important;
}

#mailformpro dd.wharf input {
  width: 100% !important;
  max-width: none !important;
  float: none !important;
  min-width: 0;
}

#mailformpro textarea {
  min-height: 180px;
  resize: vertical;
}

#mailformpro .mfp-agree {
  margin-top: 0.15rem;
}

/*
 * 送信確認チェック
 * mailformpro.css は input+label 疑似要素方式。ネイティブ強制表示は崩れるためこちらに合わせる。
 */
#mailformpro .agree-check {
  position: relative;
  display: block;
  margin: 0;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  background: var(--white);
  transition: border-color 0.2s ease, background 0.2s ease;
}

#mailformpro .agree-check:hover {
  border-color: rgba(109, 190, 68, 0.5);
  background: #fbfef9;
}

#mailformpro .agree-check:has(#mfp_send_confirm:checked) {
  border-color: rgba(109, 190, 68, 0.65);
  background: rgba(109, 190, 68, 0.06);
}

/* フォーム内の実チェックは隠す（クリックは label[for] が担う） */
#mailformpro .agree-check #mfp_send_confirm {
  position: absolute !important;
  left: 1.15rem !important;
  top: 1.25rem !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

/* ラベル本体 */
#mailformpro .agree-check #mfp_send_confirm_label,
#mailformpro .agree-check #mfp_send_confirm + label {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0.05rem 0 0 1.9rem !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--slate) !important;
  font-size: 0.92rem !important;
  font-weight: 500 !important;
  line-height: 1.7 !important;
  cursor: pointer !important;
  white-space: normal !important;
}

/* 枠（四角） */
#mailformpro .agree-check #mfp_send_confirm + label::before {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0 !important;
  top: 0.22rem !important;
  width: 1.2rem !important;
  height: 1.2rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border: 1.5px solid var(--line-strong) !important;
  border-radius: 0 !important;
  background: #fff !important;
  background-image: none !important;
  transform: none !important;
  box-shadow: none !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease !important;
}

/* チェックの線（✓） */
#mailformpro .agree-check #mfp_send_confirm + label::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 0.38rem !important;
  top: 0.38rem !important;
  width: 0.34rem !important;
  height: 0.62rem !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-style: solid !important;
  border-color: transparent !important;
  border-width: 0 2px 2px 0 !important;
  background: transparent !important;
  transform: rotate(45deg) !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: 1 !important;
  transition: opacity 0.15s ease, border-color 0.15s ease !important;
}

/* チェック ON */
#mailformpro .agree-check #mfp_send_confirm:checked + label::before {
  background-color: #6dbe44 !important;
  border-color: #6dbe44 !important;
  box-shadow: none !important;
}

#mailformpro .agree-check #mfp_send_confirm:checked + label::after {
  border-color: #fff !important;
  opacity: 1 !important;
}

/* フォーカス */
#mailformpro .agree-check #mfp_send_confirm:focus + label::before,
#mailformpro .agree-check #mfp_send_confirm:focus-visible + label::before {
  border-color: #6dbe44 !important;
  box-shadow: 0 0 0 3px rgba(109, 190, 68, 0.28) !important;
}

#mailformpro .agree-check a {
  color: var(--brand-deep);
  text-underline-offset: 0.15em;
}

#mailformpro .agree-check a:hover {
  color: var(--brand);
}

#mailformpro label a {
  color: var(--brand-deep);
}

.mfp_buttons,
div.mfp_buttons,
#mailformpro .mfp_buttons {
  display: flex !important;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.7rem;
  clear: both;
  margin-top: 1.85rem;
  padding: 1.5rem 0 0 !important;
  border-top: 1px solid var(--line);
  text-align: left !important;
}

/* 送信・キャンセル（MFP が差し替える button） */
#mailformpro button[type="submit"],
#mailformpro button[type="reset"],
#mailformpro .mfp_buttons button,
#mailformpro button.mfp_element_button,
#mailformpro #mfp_button_send,
#mailformpro #mfp_button_cancel,
div.mfp_buttons button,
div.mfp_buttons #mfp_button_send,
div.mfp_buttons #mfp_button_cancel,
.button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  float: none !important;
  width: auto !important;
  min-height: 50px !important;
  min-width: 9.5rem;
  margin: 0 !important;
  padding: 0 1.5rem !important;
  border-radius: 0 !important;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.95rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#mailformpro button[type="submit"],
#mailformpro #mfp_button_send,
#mailformpro button.mfp_element_button#mfp_button_send,
div.mfp_buttons #mfp_button_send,
.button.special,
.button.icon {
  background: var(--brand) !important;
  border-color: var(--brand) !important;
  color: #fff !important;
}

#mailformpro button[type="submit"]:hover,
#mailformpro #mfp_button_send:hover,
div.mfp_buttons #mfp_button_send:hover,
.button:hover {
  background: var(--brand-deep) !important;
  border-color: var(--brand-deep) !important;
  color: #fff !important;
  transform: none;
}

#mailformpro button[type="reset"],
#mailformpro #mfp_button_cancel,
#mailformpro button.mfp_element_button#mfp_button_cancel,
div.mfp_buttons #mfp_button_cancel {
  display: inline-flex !important;
  background: transparent !important;
  border-color: var(--line-strong) !important;
  color: var(--slate) !important;
}

#mailformpro button[type="reset"]:hover,
#mailformpro #mfp_button_cancel:hover,
div.mfp_buttons #mfp_button_cancel:hover {
  border-color: var(--ink) !important;
  color: var(--ink) !important;
  background: transparent !important;
}

@media (max-width: 620px) {
  .mfp_buttons,
  div.mfp_buttons,
  #mailformpro .mfp_buttons {
    flex-direction: column;
    align-items: stretch;
  }

  #mailformpro .mfp_buttons button,
  #mailformpro #mfp_button_send,
  #mailformpro #mfp_button_cancel,
  div.mfp_buttons button {
    width: 100% !important;
    min-width: 0 !important;
  }
}

/* MailformPro legacy overrides (old CSS loads first) */
#mailformpro,
#mailformpro * {
  box-sizing: border-box;
}

#mailformpro dd.mfp {
  float: none !important;
  width: 100% !important;
  max-width: 100% !important;
  display: block !important;
}

#mailformpro dd.mfp.wharf {
  display: grid !important;
}

#mailformpro input[type="text"],
#mailformpro input[type="email"],
#mailformpro input[type="tel"],
#mailformpro select,
#mailformpro textarea {
  height: auto !important;
  min-height: 48px;
  box-shadow: none !important;
}

#mailformpro textarea {
  min-height: 180px !important;
}

div#mfp_thanks,
div.mfp_thanks {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-left: 3px solid var(--brand);
  background: rgba(109, 190, 68, 0.08);
  color: var(--ink);
  font-family: var(--font-body);
}

@media (max-width: 900px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

/* ---------- Legal / article pages ---------- */
.page-hero {
  padding: calc(var(--header-h) + 3.5rem) 0 2.5rem;
  background: var(--ink);
  color: #fff;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0.75rem 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.page-body {
  padding: 3.5rem 0 5rem;
}

.page-body .article {
  max-width: 42rem;
}

.page-body h2,
.page-body h3,
.page-body h4 {
  margin: 2rem 0 0.75rem;
  font-family: var(--font-display);
  line-height: 1.35;
  color: var(--ink);
}

.page-body h2:first-child,
.page-body h3:first-child,
.page-body h4:first-child {
  margin-top: 0;
}

.page-body h3 {
  font-size: 1.55rem;
}

.page-body h4 {
  font-size: 1.1rem;
}

.page-body p,
.page-body li {
  color: var(--slate);
}

.page-body ol,
.page-body ul {
  padding-left: 1.25rem;
  margin: 0 0 1em;
}

.page-body li + li {
  margin-top: 0.35rem;
}

.page-body hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 2rem 0;
}

.article-meta {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.page-actions {
  margin-top: 2.5rem;
}

.thanks-box {
  max-width: 36rem;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #111111;
  color: rgba(255, 255, 255, 0.7);
  padding-top: 3.5rem;
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}

.site-logo--footer img {
  width: 140px;
}

.site-footer__name {
  margin: 1rem 0 0.5rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.site-footer__address {
  font-size: 0.9rem;
  line-height: 1.75;
}

.site-footer__links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.site-footer nav ul,
.site-footer__legal {
  list-style: none;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer nav li + li,
.site-footer__legal li + li {
  margin-top: 0.55rem;
}

.site-footer__bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.1rem 0;
  text-align: center;
}

.site-footer__bar small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.02em;
}

/* ---------- Reveal motion ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* ---------- Animations ---------- */
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.02); }
}

@keyframes scroll-line {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.85; }
  50% { transform: scaleY(0.55); transform-origin: top; opacity: 0.35; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .vision-grid,
  .profile-layout,
  .contact-layout,
  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .solutions-list {
    grid-template-columns: 1fr;
  }

  .profile-aside {
    position: static;
  }

  .site-footer__links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(84vw, 320px);
    height: 100dvh;
    padding: 5.5rem 1.75rem 2rem;
    background: var(--ink);
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    z-index: 1001;
    box-shadow: -18px 0 40px rgba(0, 0, 0, 0.25);
  }

  .site-nav.is-open {
    transform: none;
  }

  .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.35rem;
  }

  .site-nav a {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.05rem;
  }

  .site-nav .nav-cta {
    margin-top: 0.75rem;
    text-align: center;
  }

  .news-list__link {
    grid-template-columns: 1fr auto;
    gap: 0.45rem 1rem;
  }

  .news-list__date {
    order: 1;
  }

  .news-list__tag {
    order: 2;
    justify-self: end;
  }

  .news-list__text {
    order: 3;
    grid-column: 1 / -1;
  }

  .profile-table th,
  .profile-table td {
    display: block;
    width: 100%;
    padding: 0;
  }

  .profile-table th {
    padding-top: 1rem;
    padding-bottom: 0.25rem;
  }

  .profile-table td {
    padding-bottom: 1rem;
  }

  .profile-table tr {
    border-bottom: 1px solid var(--line);
  }

  .profile-table th,
  .profile-table td {
    border: 0;
  }

  .hero__content {
    padding-bottom: 5.5rem;
  }

  .hero__scroll {
    left: 1.25rem;
    right: auto;
    flex-direction: row;
    gap: 0.75rem;
  }

  .hero__scroll-line {
    width: 36px;
    height: 1px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.75), transparent);
  }
}

@media (max-width: 520px) {
  .container,
  .site-header__inner,
  .hero__content,
  .site-footer__inner {
    width: min(100% - 1.75rem, var(--max));
  }

  .site-footer__links {
    grid-template-columns: 1fr;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
