.pim-home-services {
  --ink: #10364c;
  --accent: #00679b;
  background: #eff5f7;
  color: var(--ink);
  padding: clamp(52px, 6vw, 96px) 0;
  scroll-margin-top: 96px;
}
.pim-home-services__inner, .pim-home-insights {
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.pim-home-services__intro {
  display: grid;
  grid-template-columns: 1.04fr .96fr;
  align-items: end;
  gap: clamp(24px, 6vw, 96px);
  margin-bottom: clamp(25px, 3vw, 42px);
}
.pim-home-services h2, .pim-home-insights h2 {
  margin: 0;
  color: #10364c;
  font-size: clamp(30px, 3.5vw, 51px);
  font-weight: 600;
  letter-spacing: -.035em;
  line-height: 1.12;
}
.pim-home-services__intro p, .pim-home-services__notice p, .pim-home-services__body p {
  margin: 0;
  color: #385266;
  line-height: 1.65;
}
.pim-home-services__intro p { max-width: 50ch; font-size: clamp(16px, 1.3vw, 19px); }
.pim-home-services__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
}
.pim-home-services__card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #d0dfe5;
  border-radius: 8px;
  background: white;
}
.pim-home-services__card > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.05;
  object-fit: cover;
  object-position: center 8%;
  filter: brightness(1.4);
}
.pim-home-services__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(19px, 2vw, 28px);
}
.pim-home-services__body h3, .pim-home-services__notice h3 {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.65vw, 25px);
  font-weight: 600;
  line-height: 1.26;
  letter-spacing: -.025em;
  color: var(--ink);
}
.pim-home-services__body h3 a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}
.pim-home-services__body h3 a::after { content: ""; position: absolute; inset: 0; }
.pim-home-services__body li a { position: relative; z-index: 1; }
.pim-home-services__arrow { flex: none; color: var(--accent); font-size: .9em; }
.pim-home-services__body p, .pim-home-services__notice p { font-size: 16px; }
.pim-home-services__body ul {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 4px 16px;
  border-top: 1px solid #dbe5e9;
  margin: auto 0 0;
  padding: 13px 0 0;
}
.pim-home-services__body p { margin-bottom: 23px; }
.pim-home-services__body li { margin: 0; padding: 0; }
.pim-home-services__body li a, .pim-home-insights header a {
  display: inline-block;
  padding-block: 5px;
  color: #005e8c;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.pim-home-services__notice {
  display: flex;
  gap: 22px 40px;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  padding: clamp(22px, 2.7vw, 36px);
  border-radius: 8px;
  background: #123a50;
}
.pim-home-services__notice h3 { color: white; margin-bottom: 7px; }
.pim-home-services__notice p { color: #e0ebf0; max-width: 74ch; }
.pim-home-services__notice a {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 4px;
  padding: 12px 18px;
  background: white;
  color: #123a50;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.pim-home-services a:focus-visible, .pim-home-insights header a:focus-visible {
  outline: 3px solid #1796c8;
  outline-offset: 3px;
}
.pim-home-services__body h3 a:hover { color: var(--accent); text-decoration: underline; }
.pim-home-services__notice a:hover { background: #e1f2fa; }
.pim-home-insights { padding-block: clamp(44px, 6vw, 80px); }
.pim-home-insights header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 24px; }
.pim-home-insights h2 { font-size: clamp(26px, 2.5vw, 36px); }
.pim-home-insights .blog-posts { margin-top: 0 !important; padding-top: 0 !important; }
@media (min-width: 701px) and (max-width: 1000px) {
  .pim-home-services__intro { grid-template-columns: 1fr 1fr; gap: 22px; }
  .pim-home-services__grid { grid-template-columns: 1fr; }
  .pim-home-services__card { display: grid; grid-template-columns: 28% 1fr; }
  .pim-home-services__card > img { height: 100%; min-height: 0; aspect-ratio: auto; }
}
@media (max-width: 700px) {
  .pim-home-services__inner, .pim-home-insights { width: calc(100% - 36px); }
  .pim-home-services__intro, .pim-home-services__grid { grid-template-columns: 1fr; }
  .pim-home-services__intro { gap: 16px; }
  .pim-home-services__grid { gap: 20px; }
  .pim-home-services__notice { align-items: flex-start; flex-direction: column; }
}
