.sd, .sd * { box-sizing: border-box; }
.sd {
  --sd-ink: #252020;
  --sd-paper: #fff;
  --sd-red: #be0e24;
  width: 100%;
  position: relative;
  isolation: isolate;
  color: var(--sd-ink);
  text-align: left;
  font: 400 16px/1.6 system-ui, "Microsoft YaHei", sans-serif;
  scroll-margin-top: 72px;
}
.sd-inner {
  width: min(100%, 1296px);
  margin-inline: auto;
  padding: clamp(38px, 4.2vw, 68px) clamp(22px, 4.2vw, 62px);
}
.sd h1 {
  margin: 0;
  letter-spacing: -.035em;
  font: 770 clamp(34px, 3.5vw, 56px)/1.12 system-ui, "Microsoft YaHei", sans-serif;
}
.sd-title-phrase { display: inline-block; white-space: nowrap; }
.sd-intro p {
  max-width: 58ch;
  margin: 14px 0 0;
  font-size: clamp(15px, 1.25vw, 18px);
  line-height: 1.65;
}
.sd-cards { display: grid; gap: 14px; }
.sd a.sd-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 24px 62px 24px 24px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.sd-card-title {
  display: block;
  font-size: clamp(21px, 1.82vw, 27px);
  font-weight: 740;
  letter-spacing: -.018em;
  line-height: 1.28;
  overflow-wrap: anywhere;
}
.sd-card-copy {
  display: block;
  max-width: 48ch;
  font-size: 15px;
  line-height: 1.58;
}
.sd-card-arrow {
  position: absolute;
  top: 50%;
  right: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  font: 500 22px/1 system-ui, sans-serif;
}
.sd-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 22px; }
.sd a.sd-inquiry, .sd a.sd-work {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}
.sd a.sd-inquiry {
  min-height: 46px;
  padding: 12px 17px;
  border-radius: 5px;
  background: var(--sd-red);
  color: #fff;
  text-decoration: none;
}
.sd a.sd-inquiry:hover { background: #9a0b1d; color: #fff; }
.sd a.sd-work { color: inherit; text-decoration: underline; text-underline-offset: 4px; }
.sd a:focus-visible { outline: 2px solid #e04555; outline-offset: 4px; }
.sd--c { background: #f4f0ee; }
.sd--c .sd-inner {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: 1fr auto;
}
.sd--c .sd-intro {
  grid-area: 1 / 1 / span 2;
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 378px;
  align-items: end;
  overflow: hidden;
  padding: 32px 31px 102px;
  border-radius: 11px 0 0 11px;
  color: #fff;
  background: #282021;
}
.sd--c .sd-photo, .sd--c .sd-intro::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
}
.sd--c .sd-photo {
  /* Keep the foreground monitors in frame and hide the photo's letterboxing. */
  top: -5.56%;
  height: 111.12%;
  object-fit: cover;
  object-position: left center;
}
.sd--c .sd-intro::after { background: linear-gradient(0deg, #140d10 2%, #140d10ee 26%, #190e14a1 62%, #21171a19 100%); content: ""; }
.sd--c h1 { font-size: clamp(31px, 2.65vw, 43px); }
.sd--c .sd-intro p { color: #f8edeb; font-size: 15px; }
.sd--c .sd-actions { grid-area: 2 / 1; z-index: 1; align-self: end; padding: 0 31px 33px; color: #fff8f6; }
.sd--c .sd-cards {
  grid-area: 1 / 2 / span 2;
  align-content: center;
  grid-template-rows: repeat(2, minmax(0, auto));
  gap: 10px;
  padding: 21px;
  border-radius: 0 11px 11px 0;
  border: 1px solid #e9ddda;
  border-left: 0;
  background: #fffaf7;
}
.sd--c .sd-card { min-height: 140px; border: 1px solid #eadad7; border-radius: 7px; background: #fff; }
.sd--c .sd-card-title, .sd--c .sd-card-arrow { color: #901426; }
.sd--c .sd-card-copy { color: #544745; }
.sd--c .sd-card-arrow { background: #f9efed; }
.sd--c .sd-card:hover { background: #fff3ee; border-color: #c9898b; }

@media (max-width: 1020px) {
  .sd { scroll-margin-top: 52px; }
}
@media (max-width: 660px) {
  .sd-inner { padding: 28px 17px 32px; }
  .sd h1 { font-size: clamp(29px, 7.5vw, 39px); letter-spacing: -.025em; }
  .sd-intro p { margin-top: 10px; font-size: 15px; }
  .sd .sd-card-copy { font-size: 14px; }
  .sd-cards { gap: 10px; }
  .sd a.sd-card { padding: 15px 53px 15px 16px; }
  .sd-card-arrow { width: 30px; height: 30px; right: 13px; font-size: 19px; }
  .sd a.sd-inquiry, .sd a.sd-work { font-size: 14px; }
  .sd--c .sd-inner { display: flex; flex-direction: column; }
  .sd--c .sd-intro { min-height: 260px; padding: 62px 19px 22px; border-radius: 8px 8px 0 0; }
  .sd--c .sd-cards { padding: 12px; border: 1px solid #e9ddda; border-top: 0; border-radius: 0; }
  .sd--c a.sd-card { min-height: 102px; }
  .sd--c .sd-actions { padding: 3px 12px 13px; align-self: stretch; color: var(--sd-ink); background: #fffaf7; border: 1px solid #e9ddda; border-top: 0; border-radius: 0 0 8px 8px; }
}
@media (max-width: 440px) {
  .sd .sd-card-copy { line-height: 1.5; }
  html[lang^="en"] .sd h1 { font-size: 31px; }
  html[lang^="en"] .sd-card-title { font-size: 20px; }
}
@media (prefers-reduced-motion: no-preference) {
  .sd-card { transition: background-color .16s ease, border-color .16s ease; }
}
