.home-knowledge {
  padding-block: 40px 32px;
  background: #f6f0ea;
  color: #07131d;
  scroll-margin-top: 120px;
}

main > .home-knowledge::before {
  content: none;
}

.home-knowledge-inner {
  display: grid;
  grid-template-columns: 384px minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  max-width: 1536px;
  margin-inline: auto;
  padding-inline: clamp(24px, 7.23vw, 111px) clamp(24px, 6.64vw, 102px);
}

.home-knowledge-intro,
.home-knowledge-grid {
  min-width: 0;
}

.home-knowledge-intro {
  align-self: start;
  padding-top: 24px;
}

.home-knowledge-eyebrow {
  margin: 0 0 22px;
  color: #c43c16;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.15em;
}

.home-knowledge h2 {
  margin: 0 0 20px;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.home-knowledge h2 span {
  display: block;
}

.home-knowledge-lead {
  margin: 0 0 34px;
  max-width: 345px;
  color: #656e78;
  font-size: 20px;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.home-knowledge-all {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid #bcbcbf;
  border-radius: 13px;
  background: rgb(255 255 255 / 78%);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.home-knowledge-all svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

.home-knowledge-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.01fr) minmax(0, 1fr);
  gap: 18px;
}

.home-knowledge-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 210px;
  padding: 16px 21px 15px;
  border-radius: 12px;
  background: #fcfaf8;
  box-shadow: 0 6px 22px rgb(70 46 25 / 2%);
  text-decoration: none;
  transition: box-shadow 160ms ease, background-color 160ms ease;
}

.home-knowledge-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 36px;
}

.home-knowledge h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.03em;
}

.home-knowledge-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 1px solid #dedbd7;
  border-radius: 50%;
}

.home-knowledge-arrow svg {
  width: 16px;
  height: 16px;
}

.home-knowledge-diagram {
  position: relative;
  width: 100%;
  max-width: 385px;
  aspect-ratio: 385 / 135;
  margin: 8px auto 0;
}

.home-knowledge-diagram img {
  width: 100%;
  height: auto;
}

.home-knowledge-caption {
  position: absolute;
  top: 75%;
  width: 32%;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  transform: translateX(-50%);
}

.home-knowledge-diagram--sip .home-knowledge-caption:nth-child(1) { left: 13%; }
.home-knowledge-diagram--sip .home-knowledge-caption:nth-child(2) { left: 50%; }
.home-knowledge-diagram--sip .home-knowledge-caption:nth-child(3) { left: 87%; top: 69%; }

.home-knowledge-diagram--comparison .home-knowledge-caption,
.home-knowledge-diagram--sms .home-knowledge-caption {
  top: 74%;
  width: 48%;
  font-size: 12px;
}

.home-knowledge-diagram--comparison .home-knowledge-caption:first-child,
.home-knowledge-diagram--sms .home-knowledge-caption:first-child { left: 19%; }
.home-knowledge-diagram--comparison .home-knowledge-caption:last-child,
.home-knowledge-diagram--sms .home-knowledge-caption:last-child { left: 80%; }

.home-knowledge-caption small {
  display: block;
  margin-top: 3px;
  color: #68717b;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.4;
}

.home-knowledge-diagram--comparison::before {
  content: "";
  position: absolute;
  top: 7px;
  bottom: 7px;
  left: 50%;
  border-left: 1px dashed #bbb8b5;
}

.home-knowledge-versus {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid #dedbd7;
  border-radius: 50%;
  background: #fcfaf8;
  font-size: 10px;
  font-weight: 500;
  transform: translate(-50%, -50%);
}

.home-knowledge-card:hover {
  background-color: #fffdfb;
  box-shadow: 0 8px 24px rgb(70 46 25 / 7%);
}

.home-knowledge-all:hover {
  border-color: #8e9498;
  background-color: #fffdfb;
}

.home-knowledge :is(.home-knowledge-card, .home-knowledge-all):focus-visible {
  outline: 2px solid #c43c16;
  outline-offset: 4px;
}

.home-knowledge :is(.home-knowledge-card, .home-knowledge-all):active {
  background-color: #f4eae2;
}

@media (max-width: 1200px) {
  .home-knowledge-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }

  .home-knowledge-intro { max-width: 600px; padding-top: 0; }
  .home-knowledge h2 { font-size: 44px; }
  .home-knowledge h2 span { display: inline; }
  .home-knowledge-lead { max-width: 480px; margin-bottom: 24px; }
}

@media (max-width: 640px) {
  .home-knowledge { padding-block: 40px; }
  .home-knowledge-inner { padding-inline: 24px; gap: 28px; }
  .home-knowledge-eyebrow { margin-bottom: 18px; }
  .home-knowledge h2 { font-size: 36px; }
  .home-knowledge h2 span { display: block; }
  .home-knowledge-lead { font-size: 18px; letter-spacing: -0.015em; }
  .home-knowledge-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .home-knowledge-card { padding: 16px 18px 28px; }
  .home-knowledge h3 { font-size: 17px; letter-spacing: -0.025em; }
  .home-knowledge-diagram { margin-top: 12px; }
  .home-knowledge-caption small { max-width: 140px; margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .home-knowledge-card { transition: none; }
}
