/*
Theme Name: Marketing Shokunin
Theme URI: https://marketing-shokunin.com/
Author: Marketing Shokunin Inc.
Description: Custom WordPress theme for 株式会社マーケティング職人. Built from the AX-style static prototype for AI導入支援, Webマーケティング支援, コンテンツ制作, and AI顧問.
Version: 1.10.64
Requires at least: 6.4
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: marketing-shokunin
*/

/* v1.10.2: brand image replacement and hero crossfade. */
.ax-home-hero__media {
  position: absolute;
  inset: 0;
}

.ax-home-hero__media picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  animation: msHeroCrossfade 18s infinite;
}

.ax-home-hero__media picture:nth-child(1) {
  opacity: 1;
}

.ax-home-hero__media picture:nth-child(2) {
  animation-delay: 6s;
}

.ax-home-hero__media picture:nth-child(3) {
  animation-delay: 12s;
}

.ax-home-hero__slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0) contrast(1.04);
}

@keyframes msHeroCrossfade {
  0%,
  28% {
    opacity: 1;
  }

  36%,
  92% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ax-home-hero__media picture {
    animation: none;
    opacity: 0;
  }

  .ax-home-hero__media picture:first-child {
    opacity: 1;
  }
}

/* v1.10.1: visual alignment and responsive media hardening. */
.ax-home-hero > picture {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ax-home-hero > picture img,
.ax-home-hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.95) contrast(0.96);
}

.ax-about figure picture,
.ax-service-hero figure picture,
.ax-message figure picture,
.ax-download-detail__document figure picture,
.ax-news-grid figure picture,
.ax-article-grid figure picture {
  display: block;
  width: 100%;
  height: 100%;
}

.ax-about figure picture img,
.ax-service-hero figure picture img,
.ax-download-detail__document figure picture img,
.ax-news-grid figure picture img,
.ax-article-grid figure picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ax-service-output-grid--three,
.ax-download-steps .ax-service-output-grid,
.ax-contact-flow .ax-service-output-grid,
.ax-contact-related .ax-service-output-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.ax-flow-grid {
  align-items: stretch;
}

.ax-step {
  grid-template-rows: auto auto auto 1fr;
}

.ax-flow-grid h3 {
  min-height: 3.1em;
}

.ax-flow-grid p {
  min-height: 5.7em;
}

.ax-step ul {
  align-self: start;
}

.ax-message__inner {
  grid-template-columns: minmax(280px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(44px, 6vw, 78px);
}

.ax-message figure {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  justify-self: end;
  overflow: hidden;
}

.ax-message img,
.ax-message figure picture img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center 38%;
}

.ax-service-output-grid--three h3,
.ax-download-steps .ax-service-output-grid h3,
.ax-contact-flow .ax-service-output-grid h3,
.ax-contact-related .ax-service-output-grid h3 {
  min-height: 2.9em;
}

@media (max-width: 1100px) {
  .ax-service-output-grid--three,
  .ax-download-steps .ax-service-output-grid,
  .ax-contact-flow .ax-service-output-grid,
  .ax-contact-related .ax-service-output-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .ax-service-output-grid--three > article:last-child:nth-child(odd),
  .ax-download-steps .ax-service-output-grid > article:last-child:nth-child(odd),
  .ax-contact-flow .ax-service-output-grid > article:last-child:nth-child(odd),
  .ax-contact-related .ax-service-output-grid > article:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, calc((100% - 24px) / 2));
  }

  .ax-message__inner {
    grid-template-columns: 1fr;
  }

  .ax-message figure {
    width: min(100%, 380px);
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .ax-transfer .ms-header {
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .ax-transfer .ms-header-actions {
    gap: 8px;
  }

  .ax-transfer .ms-header-actions .ms-button {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
  }

  .ax-subpage-title {
    padding-top: 72px;
    padding-bottom: 46px;
  }

  .ax-subpage-title h1,
  .ax-subpage-title__label {
    font-size: 34px;
  }

  .ax-subpage-title span {
    display: block;
    margin: 6px 0 0;
  }

  .ms-page-breadcrumb {
    margin-top: 12px;
  }

  .ax-service-hero,
  .ax-detail-hero {
    padding-top: 44px;
    padding-bottom: 42px;
  }

  .ax-service-hero {
    gap: 28px;
  }

  .ax-detail-hero__inner {
    gap: 28px;
  }

  .ax-detail-hero h1 {
    margin-bottom: 16px;
    font-size: 32px;
  }

  .ax-detail-hero p {
    font-size: 14px;
    line-height: 1.85;
  }

  .ax-detail-body {
    padding-top: 42px;
    padding-bottom: 68px;
  }

  .ax-detail-body__inner {
    gap: 30px;
  }

  .ax-detail-body section {
    padding: 26px 22px;
  }

  .ax-list-section {
    padding-bottom: 72px;
  }

  .ax-list-lead {
    padding-bottom: 28px;
    font-size: 14px;
    line-height: 1.85;
  }

  .ax-category-tabs {
    margin-bottom: 34px;
  }

  .ax-news-grid,
  .ax-article-grid {
    gap: 30px;
  }

  .ax-news-grid figure,
  .ax-article-grid figure {
    margin-bottom: 12px;
  }

  .ax-contact-form-wrap {
    padding-top: 46px;
    padding-bottom: 72px;
  }

  .ax-contact-lead {
    margin-bottom: 36px;
    text-align: left;
    font-size: 14px;
    line-height: 1.85;
  }

  .ax-form {
    gap: 24px;
  }

  .ax-form input,
  .ax-form select {
    min-height: 56px;
  }

  .ax-form textarea {
    min-height: 220px;
  }

  .ax-submit {
    margin-top: 28px;
  }

  .ax-download-detail__grid {
    gap: 42px;
  }

  .ax-download-detail__document {
    gap: 22px;
  }

  .ax-service-table tr {
    padding: 16px;
    border: 1px solid #dfe4e6;
    border-top: 4px solid var(--ax-black);
    border-left: 1px solid #dfe4e6;
  }

  .ax-service-table th,
  .ax-service-table td {
    padding: 0 0 12px;
    overflow-wrap: normal;
    word-break: normal;
  }

  .ax-service-table th {
    color: var(--ax-black);
    font-size: 15px;
    line-height: 1.65;
    word-break: keep-all;
  }

  .ax-service-table td {
    font-size: 13px;
  }

  .ax-service-table tr > :last-child {
    padding-bottom: 0;
  }

  .ax-service-output-grid--three,
  .ax-download-steps .ax-service-output-grid,
  .ax-contact-flow .ax-service-output-grid,
  .ax-contact-related .ax-service-output-grid {
    grid-template-columns: 1fr;
  }

  .ax-service-output-grid--three > article:last-child:nth-child(odd),
  .ax-download-steps .ax-service-output-grid > article:last-child:nth-child(odd),
  .ax-contact-flow .ax-service-output-grid > article:last-child:nth-child(odd),
  .ax-contact-related .ax-service-output-grid > article:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }

  .ax-service-output-grid--three h3,
  .ax-download-steps .ax-service-output-grid h3,
  .ax-contact-flow .ax-service-output-grid h3,
  .ax-contact-related .ax-service-output-grid h3 {
    min-height: 0;
  }

  .ax-flow-grid h3,
  .ax-flow-grid p {
    min-height: 0;
  }

  .ax-step {
    grid-template-rows: auto;
  }

  .ax-message figure {
    width: min(100%, 320px);
  }
}

/* v1.10.4: case archive layout, mobile table, and image cache refresh support. */
.ax-case-guide .ax-band-inner {
  max-width: 960px;
}

.ax-case-guide .ax-table-scroll {
  overflow-x: visible;
}

.ax-case-guide .ax-service-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.ax-case-guide .ax-service-table tbody th {
  width: 26%;
}

.ax-case-guide .ax-service-table th,
.ax-case-guide .ax-service-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.ax-case-problem-grid,
.ax-case-problems .ax-service-output-grid {
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  max-width: 920px;
  margin-left: auto;
  margin-right: auto;
}

.ax-case-problem-grid article {
  min-width: 0;
}

.ax-case-problem-grid h3,
.ax-case-problems .ax-service-output-grid h3 {
  min-height: 0;
  word-break: keep-all;
  overflow-wrap: normal;
}

.ax-case-problem-grid p,
.ax-case-problems .ax-service-output-grid p {
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .ax-case-problem-grid,
  .ax-case-problems .ax-service-output-grid {
    grid-template-columns: 1fr;
    max-width: none;
  }

  .ax-case-problem-grid > article:last-child:nth-child(odd),
  .ax-case-problems .ax-service-output-grid > article:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

@media (max-width: 720px) {
  .ax-case-guide .ax-table-scroll {
    overflow-x: visible;
  }

  .ax-case-guide .ax-service-table {
    min-width: 0;
    table-layout: fixed;
  }

  .ax-case-guide .ax-service-table tbody th {
    width: auto;
    max-width: none;
  }

  .ax-case-guide .ax-service-table th,
  .ax-case-guide .ax-service-table td {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}

/* v1.10.5: balance the case archive sections inside the padded list wrapper. */
.ax-list-section > .ax-white-band,
.ax-list-section > .ax-gray-band {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.ax-case-guide .ax-band-inner {
  max-width: min(1120px, 100%);
}

.ax-case-guide .ax-table-scroll {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
}

.ax-case-guide .ax-service-table tbody th {
  width: 28%;
}

.ax-case-guide .ax-service-table th,
.ax-case-guide .ax-service-table td {
  padding: clamp(16px, 1.8vw, 24px);
}

.ax-case-problem-grid,
.ax-case-problems .ax-service-output-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: 1088px;
}

.ax-case-problem-grid article,
.ax-case-problems .ax-service-output-grid article {
  min-height: 228px;
  padding: clamp(26px, 2.2vw, 34px);
  align-content: start;
}

.ax-case-problem-grid h3,
.ax-case-problems .ax-service-output-grid h3 {
  margin-bottom: 16px;
  font-size: clamp(19px, 1.45vw, 22px);
  line-height: 1.55;
}

.ax-case-problem-grid p,
.ax-case-problems .ax-service-output-grid p {
  font-size: 15px;
  line-height: 1.95;
}

@media (max-width: 900px) {
  .ax-case-problem-grid,
  .ax-case-problems .ax-service-output-grid {
    grid-template-columns: 1fr;
    max-width: 640px;
  }

  .ax-case-problem-grid article,
  .ax-case-problems .ax-service-output-grid article {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .ax-case-guide .ax-service-table tbody th {
    width: auto;
    max-width: none;
  }

  .ax-case-guide .ax-service-table th,
  .ax-case-guide .ax-service-table td {
    display: block;
    width: auto;
    padding: 14px 16px;
  }
}

.ms-article-body .ms-table-scroll,
.ax-detail-body .ms-table-scroll {
  overflow-x: visible;
}

.ms-article-body .ms-table,
.ax-detail-body .ms-table {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  table-layout: fixed;
}

.ms-article-body .ms-table *,
.ax-detail-body .ms-table * {
  box-sizing: border-box;
  min-width: 0;
}

.ms-article-body .ms-table th,
.ms-article-body .ms-table td,
.ax-detail-body .ms-table th,
.ax-detail-body .ms-table td {
  overflow-wrap: anywhere;
  word-break: normal;
}

.ms-article-body .ms-table thead th,
.ax-detail-body .ms-table thead th {
  white-space: normal;
}

/* v1.10.62: keep table cells from awkward Japanese one-character breaks. */
.ms-article-body .ms-table th,
.ms-article-body .ms-table td,
.ax-detail-body .ms-table th,
.ax-detail-body .ms-table td {
  line-break: strict;
  word-break: auto-phrase;
}

/* v1.10.29: homepage hero slider, hero CTA contrast, and About image crop fix. */
.ax-home-hero.ms-hero-slider {
  position: relative;
  min-height: 620px;
  display: block;
  overflow: hidden;
  background: #0A0B0D;
  color: #fff;
  font-family: var(--ms-sans);
}

.ms-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

.ms-hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.ms-hero-slide__bg,
.ms-hero-slide__bg svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.ms-hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, 0.86), rgba(10, 11, 13, 0.46) 56%, rgba(10, 11, 13, 0.16)),
    linear-gradient(180deg, rgba(10, 11, 13, 0.04), rgba(10, 11, 13, 0.36));
}

.ax-home-hero .ms-hero-copy {
  position: absolute;
  top: 50%;
  left: max(48px, calc((100vw - var(--ax-max)) / 2));
  z-index: 2;
  width: min(620px, calc(100vw - 96px));
  margin: 0;
  padding: 0;
  color: #fff;
  transform: translateY(-50%);
}

.ax-home-hero .ms-hero-copy > .ms-hero-eyebrow {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0;
}

.ax-home-hero .ms-hero-badge {
  display: inline-flex;
  min-height: 30px;
  margin: 0 0 22px;
  padding: 5px 14px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0;
}

.ax-home-hero .ms-hero-copy > .ms-hero-title,
.ax-home-hero h1.ms-hero-title {
  max-width: 760px;
  margin: 0 0 20px;
  color: #fff;
  font-family: "Noto Serif JP", "Shippori Mincho B1", "Yu Mincho", "YuMincho", serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0;
  text-wrap: balance;
}

.ms-hero-line {
  white-space: nowrap;
}

.ax-home-hero .ms-hero-copy > .ms-hero-sub {
  max-width: 560px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0;
}

.ms-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.ms-hero-button {
  min-width: 164px;
  min-height: 52px;
  padding: 13px 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ms-hero-button--solid {
  border: 1px solid #fff;
  background: #fff;
  color: #0A0B0D;
}

.ms-hero-button--solid:hover,
.ms-hero-button--solid:focus-visible {
  border-color: #E9E9E9;
  background: #E9E9E9;
  color: #0A0B0D;
}

.ms-hero-button--outline {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: transparent;
  color: #fff;
}

.ms-hero-button--outline:hover,
.ms-hero-button--outline:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #0A0B0D;
}

.ms-hero-button:focus-visible,
.ms-hero-dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.ms-hero-dots {
  position: absolute;
  left: max(48px, calc((100vw - var(--ax-max)) / 2));
  bottom: 32px;
  z-index: 3;
  display: flex;
  gap: 9px;
}

.ms-hero-dot {
  width: 30px;
  height: 3px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 2px;
  appearance: none;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.ms-hero-dot.is-active {
  background: #fff;
}

.ax-about figure {
  overflow: visible;
  background: #f7f7f5;
}

.ax-about figure picture {
  height: auto;
}

.ax-about img,
.ax-about figure picture img {
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: contain;
  object-position: left center;
  background: #f7f7f5;
}

@media (max-width: 1100px) {
  .ax-home-hero.ms-hero-slider {
    min-height: 590px;
  }

  .ax-home-hero .ms-hero-copy > .ms-hero-title,
  .ax-home-hero h1.ms-hero-title {
    font-size: 40px;
  }
}

@media (max-width: 720px) {
  .ax-home-hero.ms-hero-slider {
    min-height: 590px;
  }

  .ax-home-hero .ms-hero-copy {
    left: 18px;
    width: calc(100% - 36px);
  }

  .ax-home-hero .ms-hero-copy > .ms-hero-title,
  .ax-home-hero h1.ms-hero-title {
    margin-bottom: 18px;
    font-size: 26px;
    line-height: 1.45;
    overflow-wrap: break-word;
  }

  .ax-home-hero .ms-hero-line {
    white-space: normal;
  }

  .ax-home-hero .ms-hero-copy > .ms-hero-sub {
    font-size: 15px;
    line-height: 1.85;
    overflow-wrap: break-word;
    word-break: keep-all;
    word-break: auto-phrase;
  }

  .ax-home-hero .ms-hero-copy > .ms-hero-sub br {
    display: none;
  }

  .ms-hero-actions {
    gap: 10px;
  }

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

  .ms-hero-dots {
    left: 18px;
    bottom: 24px;
  }
}

@media (max-width: 420px) {
  .ax-home-hero .ms-hero-copy > .ms-hero-title,
  .ax-home-hero h1.ms-hero-title {
    font-size: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-hero-slide {
    transition: none;
  }
}

/* v1.10.31: front-page copy line-break polish. */
.ax-about {
  grid-template-columns: minmax(520px, 1fr) minmax(420px, 0.96fr);
  gap: clamp(56px, 5vw, 84px);
}

.ax-about__copy {
  min-width: 0;
  max-width: 700px;
}

.ax-about h3.ms-copy-heading {
  max-width: 700px;
  margin-bottom: 24px;
  font-size: clamp(30px, 2.7vw, 40px);
  line-height: 1.38;
  text-wrap: balance;
}

.ax-about p.ms-copy-body,
.ax-message p.ms-copy-body {
  max-width: 760px;
  line-height: 2.05;
  line-break: strict;
  overflow-wrap: normal;
  word-break: auto-phrase;
}

.ax-message h3.ms-copy-heading {
  max-width: 780px;
  margin-bottom: 26px;
  text-wrap: balance;
}

.ax-message p.ms-flow-copy {
  line-height: 1.9;
  text-wrap: pretty;
}

.ms-copy-line {
  display: block;
}

.ax-about h3.ms-copy-heading .ms-copy-line {
  white-space: nowrap;
}

.ms-heading-phrase {
  display: inline;
}

.ms-nowrap {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .ax-about {
    grid-template-columns: 1fr;
  }

  .ax-about__copy,
  .ax-about h3.ms-copy-heading,
  .ax-about p.ms-copy-body,
  .ax-message h3.ms-copy-heading,
  .ax-message p.ms-copy-body {
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .ax-about h3.ms-copy-heading {
    font-size: 24px;
    line-height: 1.45;
  }

  .ax-message h3.ms-copy-heading {
    font-size: 29px;
    line-height: 1.5;
  }

  .ax-about p.ms-copy-body,
  .ax-message p.ms-copy-body {
    font-size: 14px;
    line-height: 2;
  }

  .ax-message p.ms-flow-copy {
    line-height: 1.85;
  }

  .ms-heading-phrase--mobile-line {
    display: block;
  }
}

@media (max-width: 360px) {
  .ax-about h3.ms-copy-heading {
    font-size: 22px;
  }
}

/* v1.10.34: keep footer SNS icons visually grouped. */
.ms-footer .ms-footer-social {
  display: flex;
  grid-template-columns: none;
  width: max-content;
  max-width: 100%;
  margin-top: 18px;
  gap: 14px;
  align-items: center;
  justify-content: flex-start;
}

.ms-footer .ms-footer-social a {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.32);
}

.ms-footer .ms-footer-social svg {
  width: 22px;
  height: 22px;
}

@media (max-width: 720px) {
  .ms-footer .ms-footer-social {
    gap: 12px;
  }

  .ms-footer .ms-footer-social a {
    width: 46px;
    height: 46px;
  }
}

/* v1.10.36: service page hub refresh. */
.ax-service-hero h1,
.ax-service-hero p,
.ms-service-section-head,
.ms-service-card,
.ms-service-themes,
.ms-service-guides,
.ms-service-final-cta {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.ms-service-section-head {
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.ms-service-section-head span {
  margin: 0 0 8px;
  color: #6f7477;
  font-size: 12px;
  font-weight: 800;
}

.ms-service-section-head h2 {
  text-wrap: balance;
}

.ms-service-section-head p {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--ax-black);
  font-size: 15px;
  line-height: 1.9;
}

.ms-service-strengths .ax-section-head {
  margin-bottom: 58px;
}

.ms-service-icon-circle {
  width: 112px;
  height: 112px;
  margin-bottom: 28px;
  overflow: visible;
  color: #0a0b0d;
  border: 1px solid rgba(10, 11, 13, 0.22);
  background: #fff;
}

.ms-service-icon-circle svg {
  width: 48px;
  height: 48px;
}

.ms-service-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.ms-service-card {
  min-width: 0;
  min-height: 545px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid #dfe4e6;
  background: #fff;
  color: var(--ax-black);
}

.ms-service-card__label {
  margin: 0 0 10px;
  color: #777d80;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

.ms-service-card h3 {
  margin: 0 0 18px;
  min-height: 3.05em;
  color: var(--ax-black);
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.35;
  font-weight: 800;
}

.ms-service-card p {
  margin: 0;
  color: var(--ax-black);
  font-size: 14px;
  line-height: 1.85;
}

.ms-service-card__catch {
  min-height: 4.2em;
  font-weight: 800;
}

.ms-service-card__body {
  min-height: 8.4em;
}

.ms-service-card p + p {
  margin-top: 16px;
}

.ms-service-card dl {
  min-height: 6.4em;
  margin: 0 0 18px;
  padding: 18px 0 0;
  border-top: 1px solid #e2e6e8;
}

.ms-service-card dt {
  margin: 0 0 8px;
  color: #6f7477;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.ms-service-card dd {
  margin: 0;
  color: var(--ax-black);
  font-size: 14px;
  line-height: 1.8;
}

.ms-service-card__related {
  min-height: 2.1em;
  margin: 0 0 14px;
}

.ms-service-card__related--empty {
  visibility: hidden;
}

.ms-service-card__related a {
  color: var(--ax-black);
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ms-service-card .ax-more {
  margin-top: auto;
}

.ms-service-note {
  max-width: 860px;
  margin: 28px auto 0;
  color: #5e6669;
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.ms-service-process-grid {
  margin-top: 48px;
  align-items: stretch;
}

.ms-service-process-grid .ax-step {
  grid-template-rows: auto minmax(3.3em, auto) minmax(5.9em, auto) auto;
}

.ms-service-process-grid h3 {
  min-height: 3.3em;
}

.ms-service-process-grid p {
  min-height: 5.9em;
}

.ms-service-process-grid .ax-step ul {
  min-height: 104px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.ms-service-timeline {
  margin-top: 48px;
  padding-top: 34px;
  border-top: 1px solid #dfe4e6;
}

.ms-service-timeline h3 {
  margin: 0 0 18px;
  color: var(--ax-black);
  font-size: 20px;
  line-height: 1.5;
  font-weight: 800;
}

.ms-service-timeline dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.ms-service-timeline div {
  padding: 18px;
  border: 1px solid #dfe4e6;
  background: #fff;
}

.ms-service-timeline dt {
  margin: 0 0 8px;
  color: #6f7477;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 800;
}

.ms-service-timeline dd {
  margin: 0;
  color: var(--ax-black);
  font-size: 14px;
  line-height: 1.7;
  font-weight: 800;
}

.ms-service-theme-grid {
  gap: 30px;
}

.ms-service-theme-grid article {
  min-height: 150px;
  padding: 24px 0 0;
  border-top: 1px solid #dfe4e6;
}

.ms-service-theme-grid h3 {
  font-size: 15px;
  line-height: 1.85;
}

.ms-service-guides {
  padding-top: 64px;
  padding-bottom: 64px;
}

.ms-service-guides .ax-section-head {
  margin-bottom: 22px;
}

.ms-service-guide-links {
  max-width: 920px;
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  list-style: none;
}

.ms-service-guide-links a {
  color: var(--ax-black);
  font-size: 13px;
  line-height: 1.7;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.ms-service-final-cta {
  text-align: center;
}

.ms-service-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.ms-service-cta-button {
  min-width: 180px;
  min-height: 52px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #0a0b0d;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ms-service-cta-button--primary {
  background: #0a0b0d;
  color: #fff;
}

.ms-service-cta-button--primary:hover {
  background: #2a2b2d;
}

.ms-service-cta-button--outline {
  background: transparent;
  color: #0a0b0d;
}

.ms-service-cta-button--outline:hover {
  background: #0a0b0d;
  color: #fff;
}

@media (max-width: 1100px) {
  .ms-footer nav {
    min-width: 0;
  }

  .ms-footer nav a {
    min-width: 0;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }

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

  .ms-service-card {
    min-height: 0;
  }

  .ms-service-card h3,
  .ms-service-card__catch,
  .ms-service-card__body,
  .ms-service-card dl {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .ms-service-section-head p {
    text-align: left;
    font-size: 14px;
    line-height: 1.85;
  }

  .ms-service-strengths .ax-section-head {
    margin-bottom: 42px;
  }

  .ms-service-card-grid,
  .ms-service-timeline dl {
    grid-template-columns: 1fr;
  }

  .ms-service-card {
    padding: 24px;
  }

  .ms-service-card__catch {
    min-height: 0;
  }

  .ms-service-card__related {
    min-height: 0;
  }

  .ms-service-process-grid .ax-step,
  .ms-service-process-grid h3,
  .ms-service-process-grid p,
  .ms-service-process-grid .ax-step ul {
    min-height: 0;
  }

  .ms-service-theme-grid {
    gap: 24px;
  }

  .ms-service-guide-links {
    justify-content: flex-start;
  }

  .ms-service-cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ms-service-cta-button {
    width: 100%;
  }
}

/* v1.10.38: typography balance polish across home, service, and company mobile views. */
.ms-mobile-only {
  display: none;
}

@media (max-width: 720px) {
  .ms-mobile-only {
    display: block;
  }

  .ax-service-cards h3 {
    font-size: 28px;
    line-height: 1.36;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .ax-common-cta h2 {
    max-width: calc(100% - 62px);
    font-size: 28px;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .ax-common-cta span,
  .ax-common-cta p {
    max-width: calc(100% - 62px);
  }

  .ax-about p.ms-copy-body .ms-copy-break {
    display: none;
  }

  .ax-about p.ms-copy-body,
  .ax-message p.ms-copy-body,
  .ax-company-page__lead p,
  .ax-company-depth .ax-section-head.centered p,
  .ax-company-depth .ax-service-output-grid p,
  .ax-company-support .ax-section-head.centered p,
  .ax-company-support .ax-service-table th,
  .ax-company-support .ax-service-table td {
    line-break: strict;
    overflow-wrap: normal;
    text-wrap: pretty;
    word-break: auto-phrase;
  }

  .ax-message h3.ms-copy-heading {
    max-width: 340px;
    margin-bottom: 22px;
    font-size: 27px;
    line-height: 1.42;
  }

  .ax-service-hero {
    width: min(calc(100% - 36px), var(--ax-max));
    margin-left: auto;
    margin-right: auto;
    padding: 44px 0 42px;
  }

  .ax-service-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(29px, 7.9vw, 31px);
    line-height: 1.28;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .ax-service-hero p {
    font-size: 14px;
    line-height: 1.85;
    line-break: strict;
    overflow-wrap: normal;
    text-wrap: pretty;
    word-break: auto-phrase;
  }

  .ms-service-section-head h2 {
    font-size: 26px;
    line-height: 1.38;
  }

  .ax-service-hero .label {
    margin-bottom: 14px;
  }

  .ax-company-depth .ax-section-head.centered p,
  .ax-company-support .ax-section-head.centered p {
    max-width: 34em;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }

  .ax-company-support .ax-service-table tbody th {
    white-space: nowrap;
  }
}

.ms-company-support-note {
  max-width: 760px;
  margin: 28px auto 0;
  color: var(--ax-black);
  font-size: 15px;
  line-height: 1.9;
  text-align: center;
}

.ax-section-head p .ms-nowrap {
  display: inline;
  margin-top: 0;
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
}

@media (max-width: 720px) {
  .ms-company-support-note {
    font-size: 13.5px;
    line-height: 1.95;
    text-align: left;
    line-break: strict;
    overflow-wrap: normal;
    text-wrap: pretty;
    word-break: auto-phrase;
  }
}

@media (min-width: 721px) {
  .ax-service-hero h1 {
    max-width: 720px;
  }
}

@media (min-width: 1101px) {
  .ax-service-hero {
    grid-template-columns: minmax(580px, 1fr) minmax(420px, 0.9fr);
    gap: 64px;
  }

  .ax-service-hero h1 {
    font-size: clamp(42px, 3.8vw, 50px);
    line-height: 1.22;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .ax-service-hero figure {
    width: 100%;
    max-width: 560px;
    justify-self: end;
  }
}

/* v1.10.55: service-page vertical alignment and plain legal-page hero cleanup. */
.ax-detail-hero--plain .ax-detail-hero__inner {
  display: block;
  max-width: 860px;
}

.ax-detail-hero--plain h1 {
  max-width: 760px;
}

.ax-detail-hero--plain p {
  max-width: 720px;
}

@media (min-width: 1101px) {
  .ms-service-card-grid {
    align-items: stretch;
  }

  .ms-service-card {
    min-height: 545px;
  }

  .ms-service-card h3 {
    min-height: 3.05em;
  }

  .ms-service-card__catch {
    min-height: 4.2em;
  }

  .ms-service-card__body {
    min-height: 8.4em;
  }

  .ms-service-card dl {
    min-height: 6.4em;
    margin-top: 0;
  }

  .ms-service-card__related {
    min-height: 2.1em;
  }

  .ms-service-process-grid {
    align-items: stretch;
  }

  .ms-service-process-grid .ax-step {
    grid-template-rows: auto minmax(3.3em, auto) minmax(5.9em, auto) auto;
  }

  .ms-service-process-grid h3 {
    min-height: 3.3em;
  }

  .ms-service-process-grid p {
    min-height: 5.9em;
  }

  .ms-service-process-grid .ax-step ul {
    min-height: 104px;
  }
}
