/* 2026-08-22 desktop-only approved changes: logo stability and SERVICE. */

/* Client-logo marquee: stable item boxes prevent the recorded zoom bug. */
body main .clients .logo-marquee {
  contain: layout paint;
  overflow: hidden !important;
}

body main .clients .logo-track-clients,
body main .clients .logo-set,
body main .clients .client-logo,
body main .clients .client-logo img {
  min-width: 0;
  min-height: 0;
}

body main .clients .client-logo {
  flex: 0 0 176px !important;
  width: 176px !important;
  height: 76px !important;
  transform: none !important;
}

body main .clients .client-logo img {
  width: 142px !important;
  height: 56px !important;
  max-width: 142px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  transform: none !important;
  animation: none !important;
}

/* Service: three tab states, each rendering an equal three-card set. */
body main .service-section .floating-logo,
body main .service-section .service-main,
body main .service-section .service-subgrid {
  display: none !important;
}

body main .service-section .service-compare-panel {
  --service-accent: #12b9b4;
  --service-deep: #075fc8;
  display: block !important;
  opacity: 1;
  transition: opacity 0.12s ease, transform 0.12s ease;
}

body main .service-section .service-compare-panel[data-service-tone="coral"] {
  --service-accent: #ef5964;
  --service-deep: #d94351;
}

body main .service-section .service-compare-panel[data-service-tone="gold"] {
  --service-accent: #e0a100;
  --service-deep: #bc7900;
}

body main .service-section .service-compare-panel.is-switching {
  opacity: 0.45;
  transform: translateY(4px);
}

body main .service-section .service-tab {
  isolation: isolate;
  overflow: visible !important;
}

body main .service-section .service-tab.is-active:nth-child(1) {
  background: linear-gradient(118deg, #147cdb 0%, #18c8bc 100%) !important;
}

body main .service-section .service-tab.is-active:nth-child(2) {
  background: linear-gradient(118deg, #ff7a76 0%, #e84d61 100%) !important;
}

body main .service-section .service-tab.is-active:nth-child(3) {
  color: #172033 !important;
  background: linear-gradient(118deg, #f2ba1f 0%, #ffe879 100%) !important;
}

body main .service-section .service-tab.is-active:nth-child(1)::after {
  background: #18c2bd !important;
}

body main .service-section .service-tab.is-active:nth-child(2)::after {
  background: #e95061 !important;
}

body main .service-section .service-tab.is-active:nth-child(3)::after {
  background: #f4cc43 !important;
}

body main .service-section .service-tab.is-active::after {
  position: absolute !important;
  top: calc(100% - 1px) !important;
  left: 50% !important;
  z-index: 12 !important;
  display: block !important;
  width: 34px !important;
  height: 19px !important;
  content: "" !important;
  border: 0 !important;
  clip-path: polygon(0 0, 100% 0, 50% 100%) !important;
  transform: translateX(-50%) !important;
  filter: none !important;
}

body main .service-section .service-tab:not(.is-active)::after {
  display: none !important;
}

body main .service-section .service-compare-card {
  --compare-accent: var(--service-accent);
  --compare-deep: var(--service-deep);
}

body main .service-section .service-compare-blue,
body main .service-section .service-compare-coral,
body main .service-section .service-compare-gold {
  --compare-accent: var(--service-accent) !important;
  --compare-deep: var(--service-deep) !important;
}

body main .service-section .service-compare-card h4 {
  font-family: "Noto Serif JP", "Yu Mincho", serif !important;
  font-weight: 800 !important;
  letter-spacing: 0.045em !important;
}

body main .service-section .service-compare-desc,
body main .service-section .service-compare-tags {
  font-family: "Noto Sans JP", sans-serif !important;
}

body main .service-section .service-compare-tags li::before {
  flex: 0 0 13px !important;
  width: 13px !important;
  height: 13px !important;
  background: transparent !important;
  border: 1.5px solid currentColor !important;
  border-radius: 50% !important;
  box-shadow: inset 0 0 0 3px white, inset 0 0 0 5px currentColor;
}

body main .service-section .service-compare-coral .service-compare-visual img {
  filter: hue-rotate(128deg) saturate(1.45) drop-shadow(0 9px 15px rgba(220, 67, 81, 0.09)) !important;
}

body main .service-section .service-compare-gold .service-compare-visual img {
  filter: sepia(0.72) saturate(2.7) hue-rotate(350deg) drop-shadow(0 9px 15px rgba(205, 139, 0, 0.09)) !important;
}

body main .service-section .service-card-arrow,
body main .service-section .service-card-pagination {
  display: none;
}

@keyframes service-number-pop {
  0% { transform: scale(0.82); opacity: 0.55; }
  55% { transform: scale(1.1); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

body main .service-section .service-compare-num.is-animating {
  animation: service-number-pop 0.48s cubic-bezier(0.2, 0.8, 0.25, 1);
}

@media (min-width: 761px) {
  body main section.service-section {
    padding-top: 104px !important;
    padding-bottom: 104px !important;
  }

  body main .service-section .section-heading {
    margin-bottom: 34px !important;
  }

  body main .service-section .section-heading h2 {
    font-family: "Noto Serif JP", "Yu Mincho", serif !important;
    font-size: clamp(43px, 3.45vw, 58px) !important;
    font-weight: 800 !important;
    line-height: 1.32 !important;
    letter-spacing: 0.07em !important;
    background: linear-gradient(100deg, #075ac8 4%, #107bd8 58%, #0eb5b8 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  body main .service-section .section-heading > p:not(.section-eyebrow) {
    margin-top: 17px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 0.055em !important;
  }

  body main .service-section .service-tabs {
    position: relative;
    z-index: 10 !important;
    width: min(calc(100% - 90px), 1105px) !important;
    margin: 0 auto !important;
    overflow: visible !important;
  }

  body main .service-section .service-tab,
  body main .service-section .service-tab.is-active {
    width: calc(100% - 22px) !important;
    min-height: 126px !important;
    height: 126px !important;
    padding: 18px 20px 17px !important;
    border-radius: 22px 22px 0 0 !important;
  }

  body main .service-section .service-tab h3 {
    font-family: "Noto Serif JP", "Yu Mincho", serif !important;
    font-size: clamp(22px, 1.8vw, 29px) !important;
    font-weight: 800 !important;
    letter-spacing: 0.055em !important;
  }

  body main .service-section .service-tab p {
    margin-top: 7px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.035em !important;
  }

  body main .service-section .service-compare-panel {
    position: relative;
    z-index: 4 !important;
    width: min(calc(100% - 22px), 1220px) !important;
    min-height: 548px !important;
    margin: 0 auto !important;
    padding: 32px 28px 26px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), color-mix(in srgb, var(--service-accent) 3%, white)) !important;
    border: 1.5px solid color-mix(in srgb, var(--service-accent) 65%, white) !important;
    border-radius: 24px !important;
  }

  body main .service-section .service-compare-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    min-height: 488px !important;
  }

  body main .service-section .service-compare-card {
    position: relative !important;
    display: grid !important;
    grid-template-rows: 62px 76px 94px 55px 201px !important;
    min-height: 488px !important;
    padding: 0 clamp(24px, 2.2vw, 38px) !important;
    opacity: 1 !important;
    transform: none !important;
  }

  body main .service-section .service-compare-card + .service-compare-card {
    border-left: 2px dotted color-mix(in srgb, var(--service-accent) 43%, white) !important;
  }

  body main .service-section .service-compare-num {
    width: 50px !important;
    height: 50px !important;
    font-family: "Noto Serif JP", serif !important;
    font-size: 20px !important;
  }

  body main .service-section .service-compare-card h4 {
    align-self: center !important;
    padding-bottom: 15px !important;
    font-size: clamp(20px, 1.65vw, 26px) !important;
    line-height: 1.5 !important;
    white-space: nowrap !important;
  }

  body main .service-section .service-compare-desc {
    padding-top: 16px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    line-height: 1.95 !important;
    letter-spacing: 0.025em !important;
  }

  body main .service-section .service-compare-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 36px !important;
    gap: 8px !important;
    align-content: center !important;
  }

  body main .service-section .service-compare-tags li {
    min-height: 36px !important;
    padding: 6px 8px !important;
    font-size: 10.5px !important;
    white-space: nowrap !important;
  }

  body main .service-section .service-compare-visual {
    height: 196px !important;
    padding: 8px 0 0 !important;
    overflow: visible !important;
  }

  body main .service-section .service-compare-visual img {
    width: 94% !important;
    height: 100% !important;
    max-width: 285px !important;
    object-fit: contain !important;
  }
}

@media (max-width: 760px) {
  body main section.service-section {
    padding-top: 66px !important;
    padding-bottom: 54px !important;
  }

  body main .service-section .section-heading {
    margin-bottom: 28px !important;
  }

  body main .service-section .section-heading h2 {
    font-family: "Noto Serif JP", "Yu Mincho", serif !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1.45 !important;
    letter-spacing: 0.055em !important;
    background: linear-gradient(100deg, #075ac8, #107bd8 65%, #0eb5b8) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
  }

  body main .service-section .section-heading h2 .line {
    display: block !important;
  }

  body main .service-section .section-heading > p:not(.section-eyebrow) {
    margin-top: 17px !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    letter-spacing: 0.035em !important;
  }

  body main .service-section .service-tabs {
    position: relative;
    z-index: 10 !important;
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100vw !important;
    margin: 0 0 0 calc(50% - 50vw) !important;
    padding: 0 12px !important;
    overflow: visible !important;
    overscroll-behavior-x: contain;
    touch-action: pan-y;
  }

  body main .service-section .service-tab,
  body main .service-section .service-tab.is-active {
    display: grid !important;
    grid-template-columns: 34px minmax(0, 1fr) !important;
    min-width: 0 !important;
    width: 100% !important;
    min-height: 78px !important;
    height: 78px !important;
    padding: 13px 7px !important;
    border-radius: 12px 12px 0 0 !important;
    transform: none !important;
  }

  body main .service-section .service-tab-num,
  body main .service-section .service-tab.is-active .service-tab-num {
    width: 34px !important;
    height: 34px !important;
    font-size: 14px !important;
  }

  body main .service-section .service-tab h3 {
    font-family: "Noto Serif JP", "Yu Mincho", serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1.3 !important;
    letter-spacing: 0.02em !important;
    white-space: nowrap !important;
  }

  body main .service-section .service-tab p {
    display: none !important;
  }

  body main .service-section .service-tab.is-active::after {
    width: 25px !important;
    height: 14px !important;
  }

  body main .service-section .service-compare-panel {
    position: relative;
    z-index: 4 !important;
    width: 100vw !important;
    min-height: 472px !important;
    height: 472px !important;
    margin: 0 0 0 calc(50% - 50vw) !important;
    padding: 15px 0 48px !important;
    overflow: hidden !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    touch-action: pan-y;
  }

  body main .service-section .service-compare-panel::before {
    display: none !important;
  }

  body main .service-section .service-compare-grid {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    min-height: 405px !important;
    height: 405px !important;
    perspective: 900px;
  }

  body main .service-section .service-compare-card {
    position: absolute !important;
    top: 0 !important;
    left: 50% !important;
    z-index: 1;
    display: grid !important;
    grid-template-rows: 46px 58px 72px 38px 156px !important;
    grid-template-columns: minmax(0, 1fr) !important;
    box-sizing: border-box !important;
    width: calc(100% - 44px) !important;
    min-height: 398px !important;
    height: 398px !important;
    padding: 16px 20px 12px !important;
    overflow: hidden !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), color-mix(in srgb, var(--service-accent) 5%, white)) !important;
    border: 1.5px solid color-mix(in srgb, var(--service-accent) 78%, white) !important;
    border-radius: 16px !important;
    box-shadow: 0 14px 30px color-mix(in srgb, var(--service-accent) 13%, transparent) !important;
    opacity: 0;
    transform: translateX(-50%) scale(0.94);
    transition: transform 0.36s cubic-bezier(0.2, 0.75, 0.25, 1), opacity 0.28s ease;
    pointer-events: none;
  }

  body main .service-section .service-compare-card.is-active {
    z-index: 4;
    opacity: 1;
    transform: translateX(-50%) scale(1);
    pointer-events: auto;
  }

  body main .service-section .service-compare-card.is-side-prev {
    z-index: 2;
    opacity: 0.85;
    transform: translateX(-151%) rotateY(5deg) scale(0.97);
  }

  body main .service-section .service-compare-card.is-side-next {
    z-index: 2;
    opacity: 0.85;
    transform: translateX(51%) rotateY(-5deg) scale(0.97);
  }

  body main .service-section .service-compare-card.is-hidden {
    opacity: 0;
  }

  body main .service-section .service-compare-card + .service-compare-card {
    border-left: 1.5px solid color-mix(in srgb, var(--service-accent) 78%, white) !important;
  }

  body main .service-section .service-compare-header {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 46px !important;
  }

  body main .service-section .service-compare-num {
    display: grid !important;
    flex: 0 0 42px !important;
    width: 42px !important;
    height: 42px !important;
    font-family: "Noto Serif JP", serif !important;
    font-size: 17px !important;
    line-height: 1 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid color-mix(in srgb, var(--service-accent) 45%, white) !important;
    border-radius: 50% !important;
    box-shadow: 0 7px 16px color-mix(in srgb, var(--service-accent) 16%, transparent) !important;
    place-items: center !important;
  }

  body main .service-section .service-compare-card h4 {
    display: block !important;
    align-self: center !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 0 11px !important;
    font-size: clamp(18px, 5.1vw, 21px) !important;
    line-height: 1.55 !important;
    text-align: center !important;
    border-bottom: 2px dotted color-mix(in srgb, var(--service-accent) 58%, white) !important;
    white-space: nowrap !important;
  }

  body main .service-section .service-compare-desc {
    display: block !important;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding-top: 10px !important;
    font-size: 9.5px !important;
    font-weight: 700 !important;
    line-height: 1.8 !important;
    letter-spacing: 0.015em !important;
    text-align: center !important;
  }

  body main .service-section .service-compare-tags {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: 30px !important;
    gap: 5px !important;
    align-content: center !important;
    width: 100% !important;
    height: 38px !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
  }

  body main .service-section .service-compare-tags li {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 30px !important;
    padding: 4px 3px !important;
    gap: 4px !important;
    font-size: 8.5px !important;
    white-space: nowrap !important;
  }

  body main .service-section .service-compare-tags li::before {
    flex-basis: 10px !important;
    width: 10px !important;
    height: 10px !important;
    border-width: 1px !important;
    box-shadow: inset 0 0 0 2px white, inset 0 0 0 4px currentColor;
  }

  body main .service-section .service-compare-visual {
    display: grid !important;
    align-self: stretch !important;
    width: 100% !important;
    height: 160px !important;
    padding: 6px 0 0 !important;
    overflow: visible !important;
    place-items: center !important;
  }

  body main .service-section .service-compare-visual img {
    width: 94% !important;
    height: 100% !important;
    max-width: 255px !important;
    object-fit: contain !important;
  }

  body main .service-section .service-card-arrow {
    position: absolute;
    top: 194px;
    z-index: 8;
    display: grid;
    width: 30px;
    height: 48px;
    padding: 0;
    color: var(--service-deep);
    background: rgba(255, 255, 255, 0.82);
    border: 0;
    place-items: center;
  }

  body main .service-section .service-card-prev { left: 0; border-radius: 0 20px 20px 0; }
  body main .service-section .service-card-next { right: 0; border-radius: 20px 0 0 20px; }

  body main .service-section .service-card-arrow svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body main .service-section .service-card-pagination {
    position: absolute;
    bottom: 13px;
    left: 50%;
    z-index: 8;
    display: flex;
    gap: 11px;
    transform: translateX(-50%);
  }

  body main .service-section .service-card-pagination button {
    width: 9px;
    height: 9px;
    padding: 0;
    background: white;
    border: 1.5px solid var(--service-deep);
    border-radius: 50%;
  }

  body main .service-section .service-card-pagination button.is-active {
    background: var(--service-deep);
  }
}
